A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home3/analyti4/public_html/nerdingout/pastetool/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home3/analyti4/public_html/nerdingout/pastetool/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home3/analyti4/public_html/nerdingout/pastetool/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home3/analyti4/public_html/nerdingout/pastetool/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home3/analyti4/public_html/nerdingout/pastetool/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home3/analyti4/public_html/nerdingout/pastetool/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home3/analyti4/public_html/nerdingout/pastetool/application/models/Pastes.php
Line: 517
Function: syntax

File: /home3/analyti4/public_html/nerdingout/pastetool/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home3/analyti4/public_html/nerdingout/pastetool/index.php
Line: 315
Function: require_once

BlackKnight - NerdingOut Paste Tool (Stikked)

BlackKnight

From Black, 6 Years ago, written in Bash, viewed 66 times. This paste will go to meet its maker in 1 Second.
URL http://nerdingout.net/pastetool/view/3bdcc378 Embed
Download Paste or View Raw
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GnuTLS 3.6.2.
  4. #
  5. # Report bugs to <bugs@gnutls.org>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16.  
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20.   emulate sh
  21.   NULLCMD=:
  22.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23.   # is contrary to our usage.  Disable this feature.
  24.   alias -g '${1+"$@"}'='"$@"'
  25.   setopt NO_GLOB_SUBST
  26. else
  27.   case `(set -o) 2>/dev/null` in #(
  28.   *posix*) :
  29.     set -o posix ;; #(
  30.   *) :
  31.      ;;
  32. esac
  33. fi
  34.  
  35.  
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47.   as_echo='print -r --'
  48.   as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50.   as_echo='printf %s\n'
  51.   as_echo_n='printf %s'
  52. else
  53.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55.     as_echo_n='/usr/ucb/echo -n'
  56.   else
  57.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58.     as_echo_n_body='eval
  59.      arg=$1;
  60.      case $arg in #(
  61.      *"$as_nl"*)
  62.         expr "X$arg" : "X\\(.*\\)$as_nl";
  63.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64.      esac;
  65.      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66.    '
  67.     export as_echo_n_body
  68.     as_echo_n='sh -c $as_echo_n_body as_echo'
  69.   fi
  70.   export as_echo_body
  71.   as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73.  
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76.   PATH_SEPARATOR=:
  77.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79.       PATH_SEPARATOR=';'
  80.   }
  81. fi
  82.  
  83.  
  84. # IFS
  85. # We need space, tab and new line, in precisely that order.  Quoting is
  86. # there to prevent editors from complaining about space-tab.
  87. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  88. # splitting by setting IFS to empty value.)
  89. IFS=" ""        $as_nl"
  90.  
  91. # Find who we are.  Look in the path if we contain no directory separator.
  92. as_myself=
  93. case $0 in #((
  94.   *[\\/]* ) as_myself=$0 ;;
  95.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98.   IFS=$as_save_IFS
  99.   test -z "$as_dir" && as_dir=.
  100.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101.   done
  102. IFS=$as_save_IFS
  103.  
  104.      ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109.   as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113.   exit 1
  114. fi
  115.  
  116. # Unset variables that we do not need and which cause bugs (e.g. in
  117. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  118. # suppresses any "Segmentation fault" message there.  '((' could
  119. # trigger a bug in pdksh 5.2.14.
  120. for as_var in BASH_ENV ENV MAIL MAILPATH
  121. do eval test x\${$as_var+set} = xset \
  122.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  123. done
  124. PS1='$ '
  125. PS2='> '
  126. PS4='+ '
  127.  
  128. # NLS nuisances.
  129. LC_ALL=C
  130. export LC_ALL
  131. LANGUAGE=C
  132. export LANGUAGE
  133.  
  134. # CDPATH.
  135. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  136.  
  137. # Use a proper internal environment variable to ensure we don't fall
  138.   # into an infinite loop, continuously re-executing ourselves.
  139.   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  140.     _as_can_reexec=no; export _as_can_reexec;
  141.     # We cannot yet assume a decent shell, so we have to provide a
  142. # neutralization value for shells without unset; and this also
  143. # works around shells that cannot unset nonexistent variables.
  144. # Preserve -v and -x to the replacement shell.
  145. BASH_ENV=/dev/null
  146. ENV=/dev/null
  147. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  148. case $- in # ((((
  149.   *v*x* | *x*v* ) as_opts=-vx ;;
  150.   *v* ) as_opts=-v ;;
  151.   *x* ) as_opts=-x ;;
  152.   * ) as_opts= ;;
  153. esac
  154. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  155. # Admittedly, this is quite paranoid, since all the known shells bail
  156. # out after a failed `exec'.
  157. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  158. as_fn_exit 255
  159.   fi
  160.   # We don't want this to propagate to other subprocesses.
  161.           { _as_can_reexec=; unset _as_can_reexec;}
  162. if test "x$CONFIG_SHELL" = x; then
  163.   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  164.  emulate sh
  165.  NULLCMD=:
  166.  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  167.  # is contrary to our usage.  Disable this feature.
  168.  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  169.  setopt NO_GLOB_SUBST
  170. else
  171.  case \`(set -o) 2>/dev/null\` in #(
  172.  *posix*) :
  173.    set -o posix ;; #(
  174.  *) :
  175.     ;;
  176. esac
  177. fi
  178. "
  179.   as_required="as_fn_return () { (exit \$1); }
  180. as_fn_success () { as_fn_return 0; }
  181. as_fn_failure () { as_fn_return 1; }
  182. as_fn_ret_success () { return 0; }
  183. as_fn_ret_failure () { return 1; }
  184.  
  185. exitcode=0
  186. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  187. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  188. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  189. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  190. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  191.  
  192. else
  193.  exitcode=1; echo positional parameters were not saved.
  194. fi
  195. test x\$exitcode = x0 || exit 1
  196. test -x / || exit 1"
  197.   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  198.  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  199.  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  200.  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  201. test \$(( 1 + 1 )) = 2 || exit 1
  202.  
  203.  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  204.    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  205.    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  206.    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  207.    PATH=/empty FPATH=/empty; export PATH FPATH
  208.    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  209.      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  210.   if (eval "$as_required") 2>/dev/null; then :
  211.   as_have_required=yes
  212. else
  213.   as_have_required=no
  214. fi
  215.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  216.  
  217. else
  218.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  219. as_found=false
  220. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  221. do
  222.   IFS=$as_save_IFS
  223.   test -z "$as_dir" && as_dir=.
  224.   as_found=:
  225.   case $as_dir in #(
  226.          /*)
  227.            for as_base in sh bash ksh sh5; do
  228.              # Try only shells that exist, to save several forks.
  229.              as_shell=$as_dir/$as_base
  230.              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  231.                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  232.   CONFIG_SHELL=$as_shell as_have_required=yes
  233.                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  234.   break 2
  235. fi
  236. fi
  237.            done;;
  238.        esac
  239.   as_found=false
  240. done
  241. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  242.               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  243.   CONFIG_SHELL=$SHELL as_have_required=yes
  244. fi; }
  245. IFS=$as_save_IFS
  246.  
  247.  
  248.       if test "x$CONFIG_SHELL" != x; then :
  249.   export CONFIG_SHELL
  250.              # We cannot yet assume a decent shell, so we have to provide a
  251. # neutralization value for shells without unset; and this also
  252. # works around shells that cannot unset nonexistent variables.
  253. # Preserve -v and -x to the replacement shell.
  254. BASH_ENV=/dev/null
  255. ENV=/dev/null
  256. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  257. case $- in # ((((
  258.   *v*x* | *x*v* ) as_opts=-vx ;;
  259.   *v* ) as_opts=-v ;;
  260.   *x* ) as_opts=-x ;;
  261.   * ) as_opts= ;;
  262. esac
  263. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  264. # Admittedly, this is quite paranoid, since all the known shells bail
  265. # out after a failed `exec'.
  266. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  267. exit 255
  268. fi
  269.  
  270.     if test x$as_have_required = xno; then :
  271.   $as_echo "$0: This script requires a shell more modern than all"
  272.   $as_echo "$0: the shells that I found on your system."
  273.   if test x${ZSH_VERSION+set} = xset ; then
  274.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  275.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  276.   else
  277.     $as_echo "$0: Please tell bug-autoconf@gnu.org and bugs@gnutls.org
  278. $0: about your system, including any error possibly output
  279. $0: before this message. Then install a modern shell, or
  280. $0: manually run the script under such a shell if you do
  281. $0: have one."
  282.   fi
  283.   exit 1
  284. fi
  285. fi
  286. fi
  287. SHELL=${CONFIG_SHELL-/bin/sh}
  288. export SHELL
  289. # Unset more variables known to interfere with behavior of common tools.
  290. CLICOLOR_FORCE= GREP_OPTIONS=
  291. unset CLICOLOR_FORCE GREP_OPTIONS
  292.  
  293. ## --------------------- ##
  294. ## M4sh Shell Functions. ##
  295. ## --------------------- ##
  296. # as_fn_unset VAR
  297. # ---------------
  298. # Portably unset VAR.
  299. as_fn_unset ()
  300. {
  301.   { eval $1=; unset $1;}
  302. }
  303. as_unset=as_fn_unset
  304.  
  305. # as_fn_set_status STATUS
  306. # -----------------------
  307. # Set $? to STATUS, without forking.
  308. as_fn_set_status ()
  309. {
  310.   return $1
  311. } # as_fn_set_status
  312.  
  313. # as_fn_exit STATUS
  314. # -----------------
  315. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  316. as_fn_exit ()
  317. {
  318.   set +e
  319.   as_fn_set_status $1
  320.   exit $1
  321. } # as_fn_exit
  322.  
  323. # as_fn_mkdir_p
  324. # -------------
  325. # Create "$as_dir" as a directory, including parents if necessary.
  326. as_fn_mkdir_p ()
  327. {
  328.  
  329.   case $as_dir in #(
  330.   -*) as_dir=./$as_dir;;
  331.   esac
  332.   test -d "$as_dir" || eval $as_mkdir_p || {
  333.     as_dirs=
  334.     while :; do
  335.       case $as_dir in #(
  336.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  337.       *) as_qdir=$as_dir;;
  338.       esac
  339.       as_dirs="'$as_qdir' $as_dirs"
  340.       as_dir=`$as_dirname -- "$as_dir" ||
  341. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  342.          X"$as_dir" : 'X\(//\)[^/]' \| \
  343.          X"$as_dir" : 'X\(//\)$' \| \
  344.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  345. $as_echo X"$as_dir" |
  346.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  347.             s//\1/
  348.             q
  349.           }
  350.           /^X\(\/\/\)[^/].*/{
  351.             s//\1/
  352.             q
  353.           }
  354.           /^X\(\/\/\)$/{
  355.             s//\1/
  356.             q
  357.           }
  358.           /^X\(\/\).*/{
  359.             s//\1/
  360.             q
  361.           }
  362.           s/.*/./; q'`
  363.       test -d "$as_dir" && break
  364.     done
  365.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  366.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  367.  
  368.  
  369. } # as_fn_mkdir_p
  370.  
  371. # as_fn_executable_p FILE
  372. # -----------------------
  373. # Test if FILE is an executable regular file.
  374. as_fn_executable_p ()
  375. {
  376.   test -f "$1" && test -x "$1"
  377. } # as_fn_executable_p
  378. # as_fn_append VAR VALUE
  379. # ----------------------
  380. # Append the text in VALUE to the end of the definition contained in VAR. Take
  381. # advantage of any shell optimizations that allow amortized linear growth over
  382. # repeated appends, instead of the typical quadratic growth present in naive
  383. # implementations.
  384. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  385.   eval 'as_fn_append ()
  386.  {
  387.    eval $1+=\$2
  388.  }'
  389. else
  390.   as_fn_append ()
  391.   {
  392.     eval $1=\$$1\$2
  393.   }
  394. fi # as_fn_append
  395.  
  396. # as_fn_arith ARG...
  397. # ------------------
  398. # Perform arithmetic evaluation on the ARGs, and store the result in the
  399. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  400. # must be portable across $(()) and expr.
  401. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  402.   eval 'as_fn_arith ()
  403.  {
  404.    as_val=$(( $* ))
  405.  }'
  406. else
  407.   as_fn_arith ()
  408.   {
  409.     as_val=`expr "$@" || test $? -eq 1`
  410.   }
  411. fi # as_fn_arith
  412.  
  413.  
  414. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  415. # ----------------------------------------
  416. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  417. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  418. # script with STATUS, using 1 if that was 0.
  419. as_fn_error ()
  420. {
  421.   as_status=$1; test $as_status -eq 0 && as_status=1
  422.   if test "$4"; then
  423.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  424.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  425.   fi
  426.   $as_echo "$as_me: error: $2" >&2
  427.   as_fn_exit $as_status
  428. } # as_fn_error
  429.  
  430. if expr a : '\(a\)' >/dev/null 2>&1 &&
  431.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  432.   as_expr=expr
  433. else
  434.   as_expr=false
  435. fi
  436.  
  437. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  438.   as_basename=basename
  439. else
  440.   as_basename=false
  441. fi
  442.  
  443. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  444.   as_dirname=dirname
  445. else
  446.   as_dirname=false
  447. fi
  448.  
  449. as_me=`$as_basename -- "$0" ||
  450. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  451.          X"$0" : 'X\(//\)$' \| \
  452.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  453. $as_echo X/"$0" |
  454.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  455.             s//\1/
  456.             q
  457.           }
  458.           /^X\/\(\/\/\)$/{
  459.             s//\1/
  460.             q
  461.           }
  462.           /^X\/\(\/\).*/{
  463.             s//\1/
  464.             q
  465.           }
  466.           s/.*/./; q'`
  467.  
  468. # Avoid depending upon Character Ranges.
  469. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  470. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  471. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  472. as_cr_digits='0123456789'
  473. as_cr_alnum=$as_cr_Letters$as_cr_digits
  474.  
  475.  
  476.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  477.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  478.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  479.  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  480.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  481.   sed -n '
  482.    p
  483.    /[$]LINENO/=
  484.  ' <$as_myself |
  485.     sed '
  486.      s/[$]LINENO.*/&-/
  487.      t lineno
  488.      b
  489.      :lineno
  490.      N
  491.      :loop
  492.      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  493.      t loop
  494.      s/-\n.*//
  495.    ' >$as_me.lineno &&
  496.   chmod +x "$as_me.lineno" ||
  497.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  498.  
  499.   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  500.   # already done that, so ensure we don't try to do so again and fall
  501.   # in an infinite loop.  This has already happened in practice.
  502.   _as_can_reexec=no; export _as_can_reexec
  503.   # Don't try to exec as it changes $[0], causing all sort of problems
  504.   # (the dirname of $[0] is not the place where we might find the
  505.   # original and so on.  Autoconf is especially sensitive to this).
  506.   . "./$as_me.lineno"
  507.   # Exit status is that of the last command.
  508.   exit
  509. }
  510.  
  511. ECHO_C= ECHO_N= ECHO_T=
  512. case `echo -n x` in #(((((
  513. -n*)
  514.   case `echo 'xy\c'` in
  515.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  516.   xy)  ECHO_C='\c';;
  517.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  518.        ECHO_T=' ';;
  519.   esac;;
  520. *)
  521.   ECHO_N='-n';;
  522. esac
  523.  
  524. rm -f conf$$ conf$$.exe conf$$.file
  525. if test -d conf$$.dir; then
  526.   rm -f conf$$.dir/conf$$.file
  527. else
  528.   rm -f conf$$.dir
  529.   mkdir conf$$.dir 2>/dev/null
  530. fi
  531. if (echo >conf$$.file) 2>/dev/null; then
  532.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  533.     as_ln_s='ln -s'
  534.     # ... but there are two gotchas:
  535.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  536.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  537.     # In both cases, we have to default to `cp -pR'.
  538.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  539.       as_ln_s='cp -pR'
  540.   elif ln conf$$.file conf$$ 2>/dev/null; then
  541.     as_ln_s=ln
  542.   else
  543.     as_ln_s='cp -pR'
  544.   fi
  545. else
  546.   as_ln_s='cp -pR'
  547. fi
  548. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  549. rmdir conf$$.dir 2>/dev/null
  550.  
  551. if mkdir -p . 2>/dev/null; then
  552.   as_mkdir_p='mkdir -p "$as_dir"'
  553. else
  554.   test -d ./-p && rmdir ./-p
  555.   as_mkdir_p=false
  556. fi
  557.  
  558. as_test_x='test -x'
  559. as_executable_p=as_fn_executable_p
  560.  
  561. # Sed expression to map a string onto a valid CPP name.
  562. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  563.  
  564. # Sed expression to map a string onto a valid variable name.
  565. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  566.  
  567. SHELL=${CONFIG_SHELL-/bin/sh}
  568.  
  569.  
  570. test -n "$DJDIR" || exec 7<&0 </dev/null
  571. exec 6>&1
  572.  
  573. # Name of the host.
  574. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  575. # so uname gets run too.
  576. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  577.  
  578. #
  579. # Initializations.
  580. #
  581. ac_default_prefix=/usr/local
  582. ac_clean_files=
  583. ac_config_libobj_dir=.
  584. LIBOBJS=
  585. cross_compiling=no
  586. subdirs=
  587. MFLAGS=
  588. MAKEFLAGS=
  589.  
  590. # Identity of this package.
  591. PACKAGE_NAME='GnuTLS'
  592. PACKAGE_TARNAME='gnutls'
  593. PACKAGE_VERSION='3.6.2'
  594. PACKAGE_STRING='GnuTLS 3.6.2'
  595. PACKAGE_BUGREPORT='bugs@gnutls.org'
  596. PACKAGE_URL=''
  597.  
  598. # Factoring default headers for most tests.
  599. ac_includes_default="\
  600. #include <stdio.h>
  601. #ifdef HAVE_SYS_TYPES_H
  602. # include <sys/types.h>
  603. #endif
  604. #ifdef HAVE_SYS_STAT_H
  605. # include <sys/stat.h>
  606. #endif
  607. #ifdef STDC_HEADERS
  608. # include <stdlib.h>
  609. # include <stddef.h>
  610. #else
  611. # ifdef HAVE_STDLIB_H
  612. #  include <stdlib.h>
  613. # endif
  614. #endif
  615. #ifdef HAVE_STRING_H
  616. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  617. #  include <memory.h>
  618. # endif
  619. # include <string.h>
  620. #endif
  621. #ifdef HAVE_STRINGS_H
  622. # include <strings.h>
  623. #endif
  624. #ifdef HAVE_INTTYPES_H
  625. # include <inttypes.h>
  626. #endif
  627. #ifdef HAVE_STDINT_H
  628. # include <stdint.h>
  629. #endif
  630. #ifdef HAVE_UNISTD_H
  631. # include <unistd.h>
  632. #endif"
  633.  
  634. gl_header_list=
  635. gt_needs=
  636. gl_func_list=
  637. ac_subst_vars='unistringtests_LTLIBOBJS
  638. unistringtests_LIBOBJS
  639. unistring_LTLIBOBJS
  640. unistring_LIBOBJS
  641. ggltests_LTLIBOBJS
  642. ggltests_LIBOBJS
  643. ggl_LTLIBOBJS
  644. ggl_LIBOBJS
  645. gltests_LTLIBOBJS
  646. gltests_LIBOBJS
  647. gl_LTLIBOBJS
  648. gl_LIBOBJS
  649. CONFIG_INCLUDE
  650. am__EXEEXT_FALSE
  651. am__EXEEXT_TRUE
  652. LTLIBOBJS
  653. LIBOBJS
  654. YEAR
  655. NEEDS_LIBRT_FALSE
  656. NEEDS_LIBRT_TRUE
  657. LIBGNUTLS_CFLAGS
  658. LIBGNUTLS_LIBS
  659. HAVE_GUILD_FALSE
  660. HAVE_GUILD_TRUE
  661. HAVE_GUILE_FALSE
  662. HAVE_GUILE_TRUE
  663. guileobjectdir
  664. guileextensiondir
  665. GUILE_SITE
  666. GUILE_LDFLAGS
  667. GUILE_CFLAGS
  668. GUILE_TOOLS
  669. GUILE_CONFIG
  670. GUILE
  671. GUILD
  672. guile_snarf
  673. HAVE_PKCS11_TRUST_STORE_FALSE
  674. HAVE_PKCS11_TRUST_STORE_TRUE
  675. GNUTLS_REQUIRES_PRIVATE
  676. ac_cv_sizeof_unsigned_long_int
  677. DEFINE_SSIZE_T
  678. LIBOPTS_DIR
  679. LIBOPTS_CFLAGS
  680. LIBOPTS_LDADD
  681. NEED_LIBOPTS_FALSE
  682. NEED_LIBOPTS_TRUE
  683. INSTALL_LIBOPTS_FALSE
  684. INSTALL_LIBOPTS_TRUE
  685. POSIX_SHELL
  686. GL_GENERATE_STDNORETURN_H_FALSE
  687. GL_GENERATE_STDNORETURN_H_TRUE
  688. STDNORETURN_H
  689. TROUSERS_LIB
  690. ENABLE_TROUSERS_FALSE
  691. ENABLE_TROUSERS_TRUE
  692. TSS_CFLAGS
  693. TSS_LIBS
  694. ENABLE_PKCS11_FALSE
  695. ENABLE_PKCS11_TRUE
  696. P11_KIT_LIBS
  697. P11_KIT_CFLAGS
  698. ENABLE_DANE_FALSE
  699. ENABLE_DANE_TRUE
  700. UNBOUND_CFLAGS
  701. UNBOUND_LIBS
  702. HAVE_NETTLE_RSA_PSS_FALSE
  703. HAVE_NETTLE_RSA_PSS_TRUE
  704. ENABLE_NON_SUITEB_CURVES_FALSE
  705. ENABLE_NON_SUITEB_CURVES_TRUE
  706. HAVE_LIBIDN2_FALSE
  707. HAVE_LIBIDN2_TRUE
  708. LIBIDN2_LIBS
  709. LIBIDN2_CFLAGS
  710. WITH_OLD_NETTLE_FALSE
  711. WITH_OLD_NETTLE_TRUE
  712. HAVE_CMOCKA_FALSE
  713. HAVE_CMOCKA_TRUE
  714. CMOCKA_LIBS
  715. CMOCKA_CFLAGS
  716. FIPS140_LIBS
  717. ENABLE_FIPS140_FALSE
  718. ENABLE_FIPS140_TRUE
  719. LIBDL_PREFIX
  720. LTLIBDL
  721. LIBDL
  722. HAVE_LIBDL
  723. CXXCPP
  724. LT_SYS_LIBRARY_PATH
  725. OTOOL64
  726. OTOOL
  727. LIPO
  728. NMEDIT
  729. DSYMUTIL
  730. MANIFEST_TOOL
  731. DLLTOOL
  732. OBJDUMP
  733. NM
  734. ac_ct_DUMPBIN
  735. DUMPBIN
  736. LD
  737. FGREP
  738. LIBTOOL
  739. LN_S
  740. WERROR_CFLAGS
  741. WARN_CFLAGS
  742. WSTACK_CFLAGS
  743. WANT_TEST_SUITE_FALSE
  744. WANT_TEST_SUITE_TRUE
  745. unistringtests_WITNESS
  746. LIBUNISTRING_UNITYPES_H
  747. LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
  748. LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
  749. LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_FALSE
  750. LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_TRUE
  751. LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_FALSE
  752. LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_TRUE
  753. LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
  754. LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
  755. LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE
  756. LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE
  757. LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE
  758. LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE
  759. LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE
  760. LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE
  761. LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_FALSE
  762. LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_TRUE
  763. LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_FALSE
  764. LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_TRUE
  765. LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_FALSE
  766. LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_TRUE
  767. LIBUNISTRING_COMPILE_UNISTR_U32_CPY_FALSE
  768. LIBUNISTRING_COMPILE_UNISTR_U32_CPY_TRUE
  769. LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_FALSE
  770. LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_TRUE
  771. LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_FALSE
  772. LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_TRUE
  773. LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_FALSE
  774. LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_TRUE
  775. LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_FALSE
  776. LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_TRUE
  777. LIBUNISTRING_COMPILE_UNISTR_U16_CPY_FALSE
  778. LIBUNISTRING_COMPILE_UNISTR_U16_CPY_TRUE
  779. LIBUNISTRING_UNISTR_H
  780. LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE
  781. LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE
  782. LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_FALSE
  783. LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_TRUE
  784. LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_FALSE
  785. LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_TRUE
  786. LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE
  787. LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE
  788. LIBUNISTRING_COMPILE_UNINORM_NFKC_FALSE
  789. LIBUNISTRING_COMPILE_UNINORM_NFKC_TRUE
  790. LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE
  791. LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE
  792. LIBUNISTRING_COMPILE_UNINORM_NFC_FALSE
  793. LIBUNISTRING_COMPILE_UNINORM_NFC_TRUE
  794. LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE
  795. LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE
  796. LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_FALSE
  797. LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_TRUE
  798. LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE
  799. LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE
  800. LIBUNISTRING_UNINORM_H
  801. LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_FALSE
  802. LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_TRUE
  803. LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_FALSE
  804. LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_TRUE
  805. LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_FALSE
  806. LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_TRUE
  807. LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE
  808. LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE
  809. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_FALSE
  810. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_TRUE
  811. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_FALSE
  812. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_TRUE
  813. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE
  814. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE
  815. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE
  816. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE
  817. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_FALSE
  818. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_TRUE
  819. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_FALSE
  820. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_TRUE
  821. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_FALSE
  822. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_TRUE
  823. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_FALSE
  824. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_TRUE
  825. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_FALSE
  826. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_TRUE
  827. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_FALSE
  828. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_TRUE
  829. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_FALSE
  830. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_TRUE
  831. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_FALSE
  832. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_TRUE
  833. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_FALSE
  834. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_TRUE
  835. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_FALSE
  836. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_TRUE
  837. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_FALSE
  838. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_TRUE
  839. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_FALSE
  840. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_TRUE
  841. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_FALSE
  842. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_TRUE
  843. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_FALSE
  844. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_TRUE
  845. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_FALSE
  846. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_TRUE
  847. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_FALSE
  848. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_TRUE
  849. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_FALSE
  850. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_TRUE
  851. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_FALSE
  852. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_TRUE
  853. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_FALSE
  854. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_TRUE
  855. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_FALSE
  856. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_TRUE
  857. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_FALSE
  858. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_TRUE
  859. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_FALSE
  860. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_TRUE
  861. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_FALSE
  862. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_TRUE
  863. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_FALSE
  864. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_TRUE
  865. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_FALSE
  866. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_TRUE
  867. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_FALSE
  868. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_TRUE
  869. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_FALSE
  870. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_TRUE
  871. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_FALSE
  872. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_TRUE
  873. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_FALSE
  874. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_TRUE
  875. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_FALSE
  876. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_TRUE
  877. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_FALSE
  878. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_TRUE
  879. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_FALSE
  880. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_TRUE
  881. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_FALSE
  882. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_TRUE
  883. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_FALSE
  884. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_TRUE
  885. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_FALSE
  886. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_TRUE
  887. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_FALSE
  888. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_TRUE
  889. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_FALSE
  890. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_TRUE
  891. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_FALSE
  892. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_TRUE
  893. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_FALSE
  894. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_TRUE
  895. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_FALSE
  896. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_TRUE
  897. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_FALSE
  898. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_TRUE
  899. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_FALSE
  900. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_TRUE
  901. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_FALSE
  902. LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_TRUE
  903. LIBUNISTRING_UNICTYPE_H
  904. ggltests_WITNESS
  905. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
  906. NEXT_SIGNAL_H
  907. REPLACE_RAISE
  908. REPLACE_PTHREAD_SIGMASK
  909. HAVE_SIGHANDLER_T
  910. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
  911. HAVE_STRUCT_SIGACTION_SA_SIGACTION
  912. HAVE_SIGACTION
  913. HAVE_SIGINFO_T
  914. HAVE_SIGSET_T
  915. HAVE_RAISE
  916. HAVE_PTHREAD_SIGMASK
  917. HAVE_POSIX_SIGNALBLOCKING
  918. GNULIB_SIGACTION
  919. GNULIB_SIGPROCMASK
  920. GNULIB_SIGNAL_H_SIGPIPE
  921. GNULIB_RAISE
  922. GNULIB_PTHREAD_SIGMASK
  923. LIB_SELECT
  924. HAVE_SYS_SELECT_H
  925. NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
  926. NEXT_SYS_SELECT_H
  927. REPLACE_SELECT
  928. REPLACE_PSELECT
  929. HAVE_PSELECT
  930. GNULIB_SELECT
  931. GNULIB_PSELECT
  932. INET_PTON_LIB
  933. GETADDRINFO_LIB
  934. INET_NTOP_LIB
  935. SERVENT_LIB
  936. HOSTENT_LIB
  937. LIB_CLOCK_GETTIME
  938. NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
  939. NEXT_ARPA_INET_H
  940. HAVE_ARPA_INET_H
  941. REPLACE_INET_PTON
  942. REPLACE_INET_NTOP
  943. HAVE_DECL_INET_PTON
  944. HAVE_DECL_INET_NTOP
  945. GNULIB_INET_PTON
  946. GNULIB_INET_NTOP
  947. LIBTESTS_LIBDEPS
  948. abs_aux_dir
  949. NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
  950. NEXT_INTTYPES_H
  951. UINT64_MAX_EQ_ULONG_MAX
  952. UINT32_MAX_LT_UINTMAX_MAX
  953. PRIPTR_PREFIX
  954. PRI_MACROS_BROKEN
  955. INT64_MAX_EQ_LONG_MAX
  956. INT32_MAX_LT_INTMAX_MAX
  957. REPLACE_STRTOUMAX
  958. REPLACE_STRTOIMAX
  959. HAVE_DECL_STRTOUMAX
  960. HAVE_DECL_STRTOIMAX
  961. HAVE_DECL_IMAXDIV
  962. HAVE_DECL_IMAXABS
  963. GNULIB_STRTOUMAX
  964. GNULIB_STRTOIMAX
  965. GNULIB_IMAXDIV
  966. GNULIB_IMAXABS
  967. NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
  968. NEXT_FCNTL_H
  969. REPLACE_OPENAT
  970. REPLACE_OPEN
  971. REPLACE_FCNTL
  972. HAVE_OPENAT
  973. HAVE_FCNTL
  974. GNULIB_OPENAT
  975. GNULIB_OPEN
  976. GNULIB_NONBLOCKING
  977. GNULIB_FCNTL
  978. NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
  979. NEXT_CTYPE_H
  980. HAVE_ISBLANK
  981. GNULIB_ISBLANK
  982. gltests_WITNESS
  983. HAVE_WINT_T
  984. NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
  985. NEXT_WCHAR_H
  986. REPLACE_WCSWIDTH
  987. REPLACE_WCWIDTH
  988. REPLACE_WCSNRTOMBS
  989. REPLACE_WCSRTOMBS
  990. REPLACE_WCRTOMB
  991. REPLACE_MBSNRTOWCS
  992. REPLACE_MBSRTOWCS
  993. REPLACE_MBRLEN
  994. REPLACE_MBRTOWC
  995. REPLACE_MBSINIT
  996. REPLACE_WCTOB
  997. REPLACE_BTOWC
  998. REPLACE_MBSTATE_T
  999. HAVE_DECL_WCWIDTH
  1000. HAVE_DECL_WCTOB
  1001. HAVE_WCSWIDTH
  1002. HAVE_WCSTOK
  1003. HAVE_WCSSTR
  1004. HAVE_WCSPBRK
  1005. HAVE_WCSSPN
  1006. HAVE_WCSCSPN
  1007. HAVE_WCSRCHR
  1008. HAVE_WCSCHR
  1009. HAVE_WCSDUP
  1010. HAVE_WCSXFRM
  1011. HAVE_WCSCOLL
  1012. HAVE_WCSNCASECMP
  1013. HAVE_WCSCASECMP
  1014. HAVE_WCSNCMP
  1015. HAVE_WCSCMP
  1016. HAVE_WCSNCAT
  1017. HAVE_WCSCAT
  1018. HAVE_WCPNCPY
  1019. HAVE_WCSNCPY
  1020. HAVE_WCPCPY
  1021. HAVE_WCSCPY
  1022. HAVE_WCSNLEN
  1023. HAVE_WCSLEN
  1024. HAVE_WMEMSET
  1025. HAVE_WMEMMOVE
  1026. HAVE_WMEMCPY
  1027. HAVE_WMEMCMP
  1028. HAVE_WMEMCHR
  1029. HAVE_WCSNRTOMBS
  1030. HAVE_WCSRTOMBS
  1031. HAVE_WCRTOMB
  1032. HAVE_MBSNRTOWCS
  1033. HAVE_MBSRTOWCS
  1034. HAVE_MBRLEN
  1035. HAVE_MBRTOWC
  1036. HAVE_MBSINIT
  1037. HAVE_BTOWC
  1038. GNULIB_WCSWIDTH
  1039. GNULIB_WCSTOK
  1040. GNULIB_WCSSTR
  1041. GNULIB_WCSPBRK
  1042. GNULIB_WCSSPN
  1043. GNULIB_WCSCSPN
  1044. GNULIB_WCSRCHR
  1045. GNULIB_WCSCHR
  1046. GNULIB_WCSDUP
  1047. GNULIB_WCSXFRM
  1048. GNULIB_WCSCOLL
  1049. GNULIB_WCSNCASECMP
  1050. GNULIB_WCSCASECMP
  1051. GNULIB_WCSNCMP
  1052. GNULIB_WCSCMP
  1053. GNULIB_WCSNCAT
  1054. GNULIB_WCSCAT
  1055. GNULIB_WCPNCPY
  1056. GNULIB_WCSNCPY
  1057. GNULIB_WCPCPY
  1058. GNULIB_WCSCPY
  1059. GNULIB_WCSNLEN
  1060. GNULIB_WCSLEN
  1061. GNULIB_WMEMSET
  1062. GNULIB_WMEMMOVE
  1063. GNULIB_WMEMCPY
  1064. GNULIB_WMEMCMP
  1065. GNULIB_WMEMCHR
  1066. GNULIB_WCWIDTH
  1067. GNULIB_WCSNRTOMBS
  1068. GNULIB_WCSRTOMBS
  1069. GNULIB_WCRTOMB
  1070. GNULIB_MBSNRTOWCS
  1071. GNULIB_MBSRTOWCS
  1072. GNULIB_MBRLEN
  1073. GNULIB_MBRTOWC
  1074. GNULIB_MBSINIT
  1075. GNULIB_WCTOB
  1076. GNULIB_BTOWC
  1077. HAVE_FEATURES_H
  1078. VALGRIND
  1079. HAVE_UNISTD_H
  1080. NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
  1081. NEXT_UNISTD_H
  1082. UNISTD_H_DEFINES_STRUCT_TIMESPEC
  1083. PTHREAD_H_DEFINES_STRUCT_TIMESPEC
  1084. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
  1085. TIME_H_DEFINES_STRUCT_TIMESPEC
  1086. NEXT_AS_FIRST_DIRECTIVE_TIME_H
  1087. NEXT_TIME_H
  1088. REPLACE_LOCALTIME
  1089. REPLACE_GMTIME
  1090. REPLACE_TIMEGM
  1091. REPLACE_NANOSLEEP
  1092. REPLACE_MKTIME
  1093. REPLACE_LOCALTIME_R
  1094. HAVE_TIMEGM
  1095. HAVE_STRPTIME
  1096. HAVE_NANOSLEEP
  1097. HAVE_DECL_LOCALTIME_R
  1098. GNULIB_TIME_RZ
  1099. GNULIB_TIME_R
  1100. GNULIB_TIMEGM
  1101. GNULIB_STRPTIME
  1102. GNULIB_NANOSLEEP
  1103. GNULIB_MKTIME
  1104. HAVE_SYS_UIO_H
  1105. NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
  1106. NEXT_SYS_UIO_H
  1107. HAVE_WS2TCPIP_H
  1108. HAVE_SYS_SOCKET_H
  1109. NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
  1110. NEXT_SYS_SOCKET_H
  1111. HAVE_ACCEPT4
  1112. HAVE_SA_FAMILY_T
  1113. HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
  1114. HAVE_STRUCT_SOCKADDR_STORAGE
  1115. GNULIB_ACCEPT4
  1116. GNULIB_SHUTDOWN
  1117. GNULIB_SETSOCKOPT
  1118. GNULIB_SENDTO
  1119. GNULIB_RECVFROM
  1120. GNULIB_SEND
  1121. GNULIB_RECV
  1122. GNULIB_LISTEN
  1123. GNULIB_GETSOCKOPT
  1124. GNULIB_GETSOCKNAME
  1125. GNULIB_GETPEERNAME
  1126. GNULIB_BIND
  1127. GNULIB_ACCEPT
  1128. GNULIB_CONNECT
  1129. GNULIB_SOCKET
  1130. HAVE_STRINGS_H
  1131. NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
  1132. NEXT_STRINGS_H
  1133. NEXT_AS_FIRST_DIRECTIVE_STRING_H
  1134. NEXT_STRING_H
  1135. HAVE_DECL_STRNCASECMP
  1136. HAVE_STRCASECMP
  1137. HAVE_FFS
  1138. GNULIB_FFS
  1139. NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
  1140. NEXT_STDLIB_H
  1141. NEXT_AS_FIRST_DIRECTIVE_STDIO_H
  1142. NEXT_STDIO_H
  1143. GL_GENERATE_STDINT_H_FALSE
  1144. GL_GENERATE_STDINT_H_TRUE
  1145. STDINT_H
  1146. HAVE_SYS_INTTYPES_H
  1147. HAVE_SYS_BITYPES_H
  1148. HAVE_C99_STDINT_H
  1149. WINT_T_SUFFIX
  1150. WCHAR_T_SUFFIX
  1151. SIG_ATOMIC_T_SUFFIX
  1152. SIZE_T_SUFFIX
  1153. PTRDIFF_T_SUFFIX
  1154. HAVE_SIGNED_WINT_T
  1155. HAVE_SIGNED_WCHAR_T
  1156. HAVE_SIGNED_SIG_ATOMIC_T
  1157. BITSIZEOF_WINT_T
  1158. BITSIZEOF_WCHAR_T
  1159. BITSIZEOF_SIG_ATOMIC_T
  1160. BITSIZEOF_SIZE_T
  1161. BITSIZEOF_PTRDIFF_T
  1162. HAVE_STDINT_H
  1163. NEXT_AS_FIRST_DIRECTIVE_STDINT_H
  1164. NEXT_STDINT_H
  1165. HAVE_SYS_TYPES_H
  1166. HAVE_INTTYPES_H
  1167. HAVE_WCHAR_H
  1168. HAVE_UNSIGNED_LONG_LONG_INT
  1169. HAVE_LONG_LONG_INT
  1170. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
  1171. NEXT_STDDEF_H
  1172. GL_GENERATE_STDDEF_H_FALSE
  1173. GL_GENERATE_STDDEF_H_TRUE
  1174. STDDEF_H
  1175. HAVE_WCHAR_T
  1176. HAVE_MAX_ALIGN_T
  1177. REPLACE_NULL
  1178. HAVE__BOOL
  1179. GL_GENERATE_STDBOOL_H_FALSE
  1180. GL_GENERATE_STDBOOL_H_TRUE
  1181. STDBOOL_H
  1182. GL_GENERATE_STDALIGN_H_FALSE
  1183. GL_GENERATE_STDALIGN_H_TRUE
  1184. STDALIGN_H
  1185. PMCCABE
  1186. GL_GENERATE_NETINET_IN_H_FALSE
  1187. GL_GENERATE_NETINET_IN_H_TRUE
  1188. NETINET_IN_H
  1189. HAVE_NETINET_IN_H
  1190. NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
  1191. NEXT_NETINET_IN_H
  1192. HAVE_NETDB_H
  1193. NEXT_AS_FIRST_DIRECTIVE_NETDB_H
  1194. NEXT_NETDB_H
  1195. REPLACE_GAI_STRERROR
  1196. HAVE_DECL_GETNAMEINFO
  1197. HAVE_DECL_GETADDRINFO
  1198. HAVE_DECL_GAI_STRERROR
  1199. HAVE_DECL_FREEADDRINFO
  1200. HAVE_STRUCT_ADDRINFO
  1201. GNULIB_GETADDRINFO
  1202. APPLE_UNIVERSAL_BUILD
  1203. UNDEFINE_STRTOK_R
  1204. REPLACE_STRTOK_R
  1205. REPLACE_STRSIGNAL
  1206. REPLACE_STRNLEN
  1207. REPLACE_STRNDUP
  1208. REPLACE_STRNCAT
  1209. REPLACE_STRERROR_R
  1210. REPLACE_STRERROR
  1211. REPLACE_STRCHRNUL
  1212. REPLACE_STRCASESTR
  1213. REPLACE_STRSTR
  1214. REPLACE_STRDUP
  1215. REPLACE_STPNCPY
  1216. REPLACE_MEMMEM
  1217. REPLACE_MEMCHR
  1218. HAVE_STRVERSCMP
  1219. HAVE_DECL_STRSIGNAL
  1220. HAVE_DECL_STRERROR_R
  1221. HAVE_DECL_STRTOK_R
  1222. HAVE_STRCASESTR
  1223. HAVE_STRSEP
  1224. HAVE_STRPBRK
  1225. HAVE_DECL_STRNLEN
  1226. HAVE_DECL_STRNDUP
  1227. HAVE_DECL_STRDUP
  1228. HAVE_STRCHRNUL
  1229. HAVE_STPNCPY
  1230. HAVE_STPCPY
  1231. HAVE_RAWMEMCHR
  1232. HAVE_DECL_MEMRCHR
  1233. HAVE_MEMPCPY
  1234. HAVE_DECL_MEMMEM
  1235. HAVE_MEMCHR
  1236. HAVE_FFSLL
  1237. HAVE_FFSL
  1238. HAVE_MBSLEN
  1239. GNULIB_STRVERSCMP
  1240. GNULIB_STRSIGNAL
  1241. GNULIB_STRERROR_R
  1242. GNULIB_STRERROR
  1243. GNULIB_MBSTOK_R
  1244. GNULIB_MBSSEP
  1245. GNULIB_MBSSPN
  1246. GNULIB_MBSPBRK
  1247. GNULIB_MBSCSPN
  1248. GNULIB_MBSCASESTR
  1249. GNULIB_MBSPCASECMP
  1250. GNULIB_MBSNCASECMP
  1251. GNULIB_MBSCASECMP
  1252. GNULIB_MBSSTR
  1253. GNULIB_MBSRCHR
  1254. GNULIB_MBSCHR
  1255. GNULIB_MBSNLEN
  1256. GNULIB_MBSLEN
  1257. GNULIB_STRTOK_R
  1258. GNULIB_STRCASESTR
  1259. GNULIB_STRSTR
  1260. GNULIB_STRSEP
  1261. GNULIB_STRPBRK
  1262. GNULIB_STRNLEN
  1263. GNULIB_STRNDUP
  1264. GNULIB_STRNCAT
  1265. GNULIB_STRDUP
  1266. GNULIB_STRCHRNUL
  1267. GNULIB_STPNCPY
  1268. GNULIB_STPCPY
  1269. GNULIB_RAWMEMCHR
  1270. GNULIB_MEMRCHR
  1271. GNULIB_MEMPCPY
  1272. GNULIB_MEMMEM
  1273. GNULIB_MEMCHR
  1274. GNULIB_FFSLL
  1275. GNULIB_FFSL
  1276. REPLACE_WCTOMB
  1277. REPLACE_UNSETENV
  1278. REPLACE_STRTOD
  1279. REPLACE_SETENV
  1280. REPLACE_REALPATH
  1281. REPLACE_REALLOC
  1282. REPLACE_RANDOM_R
  1283. REPLACE_QSORT_R
  1284. REPLACE_PUTENV
  1285. REPLACE_PTSNAME_R
  1286. REPLACE_PTSNAME
  1287. REPLACE_MKSTEMP
  1288. REPLACE_MBTOWC
  1289. REPLACE_MALLOC
  1290. REPLACE_CANONICALIZE_FILE_NAME
  1291. REPLACE_CALLOC
  1292. HAVE_DECL_UNSETENV
  1293. HAVE_UNLOCKPT
  1294. HAVE_SYS_LOADAVG_H
  1295. HAVE_STRUCT_RANDOM_DATA
  1296. HAVE_STRTOULL
  1297. HAVE_STRTOLL
  1298. HAVE_STRTOD
  1299. HAVE_DECL_SETENV
  1300. HAVE_SETENV
  1301. HAVE_SECURE_GETENV
  1302. HAVE_RPMATCH
  1303. HAVE_REALPATH
  1304. HAVE_RANDOM_R
  1305. HAVE_RANDOM_H
  1306. HAVE_RANDOM
  1307. HAVE_QSORT_R
  1308. HAVE_PTSNAME_R
  1309. HAVE_PTSNAME
  1310. HAVE_POSIX_OPENPT
  1311. HAVE_MKSTEMPS
  1312. HAVE_MKSTEMP
  1313. HAVE_MKOSTEMPS
  1314. HAVE_MKOSTEMP
  1315. HAVE_MKDTEMP
  1316. HAVE_GRANTPT
  1317. HAVE_GETSUBOPT
  1318. HAVE_DECL_GETLOADAVG
  1319. HAVE_CANONICALIZE_FILE_NAME
  1320. HAVE_ATOLL
  1321. HAVE__EXIT
  1322. GNULIB_WCTOMB
  1323. GNULIB_UNSETENV
  1324. GNULIB_UNLOCKPT
  1325. GNULIB_SYSTEM_POSIX
  1326. GNULIB_STRTOULL
  1327. GNULIB_STRTOLL
  1328. GNULIB_STRTOD
  1329. GNULIB_SETENV
  1330. GNULIB_SECURE_GETENV
  1331. GNULIB_RPMATCH
  1332. GNULIB_REALPATH
  1333. GNULIB_REALLOC_POSIX
  1334. GNULIB_RANDOM_R
  1335. GNULIB_RANDOM
  1336. GNULIB_QSORT_R
  1337. GNULIB_PUTENV
  1338. GNULIB_PTSNAME_R
  1339. GNULIB_PTSNAME
  1340. GNULIB_POSIX_OPENPT
  1341. GNULIB_MKSTEMPS
  1342. GNULIB_MKSTEMP
  1343. GNULIB_MKOSTEMPS
  1344. GNULIB_MKOSTEMP
  1345. GNULIB_MKDTEMP
  1346. GNULIB_MBTOWC
  1347. GNULIB_MALLOC_POSIX
  1348. GNULIB_GRANTPT
  1349. GNULIB_GETSUBOPT
  1350. GNULIB_GETLOADAVG
  1351. GNULIB_CANONICALIZE_FILE_NAME
  1352. GNULIB_CALLOC_POSIX
  1353. GNULIB_ATOLL
  1354. GNULIB__EXIT
  1355. GL_GENERATE_LIMITS_H_FALSE
  1356. GL_GENERATE_LIMITS_H_TRUE
  1357. LIMITS_H
  1358. NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
  1359. NEXT_LIMITS_H
  1360. HAVE_LD_VERSION_SCRIPT_FALSE
  1361. HAVE_LD_VERSION_SCRIPT_TRUE
  1362. HAVE_LD_OUTPUT_DEF_FALSE
  1363. HAVE_LD_OUTPUT_DEF_TRUE
  1364. NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
  1365. NEXT_SYS_TIME_H
  1366. REPLACE_STRUCT_TIMEVAL
  1367. REPLACE_GETTIMEOFDAY
  1368. HAVE_TIMEZONE_T
  1369. HAVE_SYS_TIME_H
  1370. HAVE_STRUCT_TIMEVAL
  1371. HAVE_GETTIMEOFDAY
  1372. GNULIB_GETTIMEOFDAY
  1373. WINDOWS_64_BIT_OFF_T
  1374. NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
  1375. NEXT_SYS_TYPES_H
  1376. REPLACE_VSPRINTF
  1377. REPLACE_VSNPRINTF
  1378. REPLACE_VPRINTF
  1379. REPLACE_VFPRINTF
  1380. REPLACE_VDPRINTF
  1381. REPLACE_VASPRINTF
  1382. REPLACE_TMPFILE
  1383. REPLACE_STDIO_WRITE_FUNCS
  1384. REPLACE_STDIO_READ_FUNCS
  1385. REPLACE_SPRINTF
  1386. REPLACE_SNPRINTF
  1387. REPLACE_RENAMEAT
  1388. REPLACE_RENAME
  1389. REPLACE_REMOVE
  1390. REPLACE_PRINTF
  1391. REPLACE_POPEN
  1392. REPLACE_PERROR
  1393. REPLACE_OBSTACK_PRINTF
  1394. REPLACE_GETLINE
  1395. REPLACE_GETDELIM
  1396. REPLACE_FTELLO
  1397. REPLACE_FTELL
  1398. REPLACE_FSEEKO
  1399. REPLACE_FSEEK
  1400. REPLACE_FREOPEN
  1401. REPLACE_FPURGE
  1402. REPLACE_FPRINTF
  1403. REPLACE_FOPEN
  1404. REPLACE_FFLUSH
  1405. REPLACE_FDOPEN
  1406. REPLACE_FCLOSE
  1407. REPLACE_DPRINTF
  1408. HAVE_VDPRINTF
  1409. HAVE_VASPRINTF
  1410. HAVE_RENAMEAT
  1411. HAVE_POPEN
  1412. HAVE_PCLOSE
  1413. HAVE_FTELLO
  1414. HAVE_FSEEKO
  1415. HAVE_DPRINTF
  1416. HAVE_DECL_VSNPRINTF
  1417. HAVE_DECL_SNPRINTF
  1418. HAVE_DECL_OBSTACK_PRINTF
  1419. HAVE_DECL_GETLINE
  1420. HAVE_DECL_GETDELIM
  1421. HAVE_DECL_FTELLO
  1422. HAVE_DECL_FSEEKO
  1423. HAVE_DECL_FPURGE
  1424. GNULIB_VSPRINTF_POSIX
  1425. GNULIB_VSNPRINTF
  1426. GNULIB_VPRINTF_POSIX
  1427. GNULIB_VPRINTF
  1428. GNULIB_VFPRINTF_POSIX
  1429. GNULIB_VFPRINTF
  1430. GNULIB_VDPRINTF
  1431. GNULIB_VSCANF
  1432. GNULIB_VFSCANF
  1433. GNULIB_VASPRINTF
  1434. GNULIB_TMPFILE
  1435. GNULIB_STDIO_H_SIGPIPE
  1436. GNULIB_STDIO_H_NONBLOCKING
  1437. GNULIB_SPRINTF_POSIX
  1438. GNULIB_SNPRINTF
  1439. GNULIB_SCANF
  1440. GNULIB_RENAMEAT
  1441. GNULIB_RENAME
  1442. GNULIB_REMOVE
  1443. GNULIB_PUTS
  1444. GNULIB_PUTCHAR
  1445. GNULIB_PUTC
  1446. GNULIB_PRINTF_POSIX
  1447. GNULIB_PRINTF
  1448. GNULIB_POPEN
  1449. GNULIB_PERROR
  1450. GNULIB_PCLOSE
  1451. GNULIB_OBSTACK_PRINTF_POSIX
  1452. GNULIB_OBSTACK_PRINTF
  1453. GNULIB_GETLINE
  1454. GNULIB_GETDELIM
  1455. GNULIB_GETCHAR
  1456. GNULIB_GETC
  1457. GNULIB_FWRITE
  1458. GNULIB_FTELLO
  1459. GNULIB_FTELL
  1460. GNULIB_FSEEKO
  1461. GNULIB_FSEEK
  1462. GNULIB_FSCANF
  1463. GNULIB_FREOPEN
  1464. GNULIB_FREAD
  1465. GNULIB_FPUTS
  1466. GNULIB_FPUTC
  1467. GNULIB_FPURGE
  1468. GNULIB_FPRINTF_POSIX
  1469. GNULIB_FPRINTF
  1470. GNULIB_FOPEN
  1471. GNULIB_FGETS
  1472. GNULIB_FGETC
  1473. GNULIB_FFLUSH
  1474. GNULIB_FDOPEN
  1475. GNULIB_FCLOSE
  1476. GNULIB_DPRINTF
  1477. WINDOWS_64_BIT_ST_SIZE
  1478. NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
  1479. NEXT_SYS_STAT_H
  1480. HAVE_MSVC_INVALID_PARAMETER_HANDLER
  1481. REPLACE_UTIMENSAT
  1482. REPLACE_STAT
  1483. REPLACE_MKNOD
  1484. REPLACE_MKFIFO
  1485. REPLACE_MKDIR
  1486. REPLACE_LSTAT
  1487. REPLACE_FUTIMENS
  1488. REPLACE_FSTATAT
  1489. REPLACE_FSTAT
  1490. HAVE_UTIMENSAT
  1491. HAVE_MKNODAT
  1492. HAVE_MKNOD
  1493. HAVE_MKFIFOAT
  1494. HAVE_MKFIFO
  1495. HAVE_MKDIRAT
  1496. HAVE_LSTAT
  1497. HAVE_LCHMOD
  1498. HAVE_FUTIMENS
  1499. HAVE_FSTATAT
  1500. HAVE_FCHMODAT
  1501. GNULIB_UTIMENSAT
  1502. GNULIB_STAT
  1503. GNULIB_MKNODAT
  1504. GNULIB_MKNOD
  1505. GNULIB_MKFIFOAT
  1506. GNULIB_MKFIFO
  1507. GNULIB_MKDIRAT
  1508. GNULIB_LSTAT
  1509. GNULIB_LCHMOD
  1510. GNULIB_FUTIMENS
  1511. GNULIB_FSTATAT
  1512. GNULIB_FSTAT
  1513. GNULIB_FCHMODAT
  1514. REPLACE_ITOLD
  1515. GL_GENERATE_FLOAT_H_FALSE
  1516. GL_GENERATE_FLOAT_H_TRUE
  1517. FLOAT_H
  1518. NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
  1519. NEXT_FLOAT_H
  1520. EOVERFLOW_VALUE
  1521. EOVERFLOW_HIDDEN
  1522. ENOLINK_VALUE
  1523. ENOLINK_HIDDEN
  1524. EMULTIHOP_VALUE
  1525. EMULTIHOP_HIDDEN
  1526. GL_GENERATE_ERRNO_H_FALSE
  1527. GL_GENERATE_ERRNO_H_TRUE
  1528. ERRNO_H
  1529. NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
  1530. NEXT_ERRNO_H
  1531. PRAGMA_COLUMNS
  1532. PRAGMA_SYSTEM_HEADER
  1533. INCLUDE_NEXT_AS_FIRST_DIRECTIVE
  1534. INCLUDE_NEXT
  1535. GL_GENERATE_BYTESWAP_H_FALSE
  1536. GL_GENERATE_BYTESWAP_H_TRUE
  1537. BYTESWAP_H
  1538. GL_GENERATE_ALLOCA_H_FALSE
  1539. GL_GENERATE_ALLOCA_H_TRUE
  1540. ALLOCA_H
  1541. ALLOCA
  1542. LTALLOCA
  1543. GL_COND_LIBTOOL_FALSE
  1544. GL_COND_LIBTOOL_TRUE
  1545. HAVE_LIBUNISTRING_FALSE
  1546. HAVE_LIBUNISTRING_TRUE
  1547. LIBUNISTRING_PREFIX
  1548. LTLIBUNISTRING
  1549. LIBUNISTRING
  1550. HAVE_LIBUNISTRING
  1551. LIBNSL_PREFIX
  1552. LTLIBNSL
  1553. LIBNSL
  1554. HAVE_LIBNSL
  1555. LIBPTHREAD_PREFIX
  1556. LTLIBPTHREAD
  1557. LIBPTHREAD
  1558. HAVE_LIBPTHREAD
  1559. LIBRT_PREFIX
  1560. LTLIBRT
  1561. LIBRT
  1562. HAVE_LIBRT
  1563. HAVE_LIBCRYPTO_FALSE
  1564. HAVE_LIBCRYPTO_TRUE
  1565. LIBCRYPTO_PREFIX
  1566. LTLIBCRYPTO
  1567. LIBCRYPTO
  1568. HAVE_LIBCRYPTO
  1569. LIBSECCOMP_PREFIX
  1570. LTLIBSECCOMP
  1571. LIBSECCOMP
  1572. HAVE_LIBSECCOMP
  1573. HAVE_SECCOMP_TESTS_FALSE
  1574. HAVE_SECCOMP_TESTS_TRUE
  1575. HAVE_FORK_FALSE
  1576. HAVE_FORK_TRUE
  1577. POSUB
  1578. LTLIBINTL
  1579. LIBINTL
  1580. INTLLIBS
  1581. LTLIBICONV
  1582. LIBICONV
  1583. INTL_MACOSX_LIBS
  1584. XGETTEXT_EXTRA_OPTIONS
  1585. MSGMERGE
  1586. XGETTEXT_015
  1587. XGETTEXT
  1588. GMSGFMT_015
  1589. MSGFMT_015
  1590. GMSGFMT
  1591. MSGFMT
  1592. GETTEXT_MACRO_VERSION
  1593. USE_NLS
  1594. GTK_DOC_USE_REBASE_FALSE
  1595. GTK_DOC_USE_REBASE_TRUE
  1596. GTK_DOC_USE_LIBTOOL_FALSE
  1597. GTK_DOC_USE_LIBTOOL_TRUE
  1598. GTK_DOC_BUILD_PDF_FALSE
  1599. GTK_DOC_BUILD_PDF_TRUE
  1600. GTK_DOC_BUILD_HTML_FALSE
  1601. GTK_DOC_BUILD_HTML_TRUE
  1602. ENABLE_GTK_DOC_FALSE
  1603. ENABLE_GTK_DOC_TRUE
  1604. HAVE_GTK_DOC_FALSE
  1605. HAVE_GTK_DOC_TRUE
  1606. GTKDOC_DEPS_LIBS
  1607. GTKDOC_DEPS_CFLAGS
  1608. HTML_DIR
  1609. GTKDOC_MKPDF
  1610. GTKDOC_REBASE
  1611. GTKDOC_CHECK_PATH
  1612. GTKDOC_CHECK
  1613. ENABLE_DESTRUCTIVE_TESTS_FALSE
  1614. ENABLE_DESTRUCTIVE_TESTS_TRUE
  1615. ENABLE_TESTS_FALSE
  1616. ENABLE_TESTS_TRUE
  1617. LIBSOCKET
  1618. HAVE_WINSOCK2_H
  1619. UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
  1620. UNISTD_H_HAVE_WINSOCK2_H
  1621. REPLACE_WRITE
  1622. REPLACE_USLEEP
  1623. REPLACE_UNLINKAT
  1624. REPLACE_UNLINK
  1625. REPLACE_TTYNAME_R
  1626. REPLACE_SYMLINKAT
  1627. REPLACE_SYMLINK
  1628. REPLACE_SLEEP
  1629. REPLACE_RMDIR
  1630. REPLACE_READLINKAT
  1631. REPLACE_READLINK
  1632. REPLACE_READ
  1633. REPLACE_PWRITE
  1634. REPLACE_PREAD
  1635. REPLACE_LSEEK
  1636. REPLACE_LINKAT
  1637. REPLACE_LINK
  1638. REPLACE_LCHOWN
  1639. REPLACE_ISATTY
  1640. REPLACE_GETPAGESIZE
  1641. REPLACE_GETGROUPS
  1642. REPLACE_GETLOGIN_R
  1643. REPLACE_GETDTABLESIZE
  1644. REPLACE_GETDOMAINNAME
  1645. REPLACE_GETCWD
  1646. REPLACE_FTRUNCATE
  1647. REPLACE_FCHOWNAT
  1648. REPLACE_DUP2
  1649. REPLACE_DUP
  1650. REPLACE_CLOSE
  1651. REPLACE_CHOWN
  1652. HAVE_SYS_PARAM_H
  1653. HAVE_OS_H
  1654. HAVE_DECL_TTYNAME_R
  1655. HAVE_DECL_SETHOSTNAME
  1656. HAVE_DECL_GETUSERSHELL
  1657. HAVE_DECL_GETPAGESIZE
  1658. HAVE_DECL_GETLOGIN_R
  1659. HAVE_DECL_GETDOMAINNAME
  1660. HAVE_DECL_FDATASYNC
  1661. HAVE_DECL_FCHDIR
  1662. HAVE_DECL_ENVIRON
  1663. HAVE_USLEEP
  1664. HAVE_UNLINKAT
  1665. HAVE_SYMLINKAT
  1666. HAVE_SYMLINK
  1667. HAVE_SLEEP
  1668. HAVE_SETHOSTNAME
  1669. HAVE_READLINKAT
  1670. HAVE_READLINK
  1671. HAVE_PWRITE
  1672. HAVE_PREAD
  1673. HAVE_PIPE2
  1674. HAVE_PIPE
  1675. HAVE_LINKAT
  1676. HAVE_LINK
  1677. HAVE_LCHOWN
  1678. HAVE_GROUP_MEMBER
  1679. HAVE_GETPAGESIZE
  1680. HAVE_GETLOGIN
  1681. HAVE_GETHOSTNAME
  1682. HAVE_GETGROUPS
  1683. HAVE_GETDTABLESIZE
  1684. HAVE_FTRUNCATE
  1685. HAVE_FSYNC
  1686. HAVE_FDATASYNC
  1687. HAVE_FCHOWNAT
  1688. HAVE_FCHDIR
  1689. HAVE_FACCESSAT
  1690. HAVE_EUIDACCESS
  1691. HAVE_DUP3
  1692. HAVE_DUP2
  1693. HAVE_CHOWN
  1694. GNULIB_WRITE
  1695. GNULIB_USLEEP
  1696. GNULIB_UNLINKAT
  1697. GNULIB_UNLINK
  1698. GNULIB_UNISTD_H_SIGPIPE
  1699. GNULIB_UNISTD_H_NONBLOCKING
  1700. GNULIB_TTYNAME_R
  1701. GNULIB_SYMLINKAT
  1702. GNULIB_SYMLINK
  1703. GNULIB_SLEEP
  1704. GNULIB_SETHOSTNAME
  1705. GNULIB_RMDIR
  1706. GNULIB_READLINKAT
  1707. GNULIB_READLINK
  1708. GNULIB_READ
  1709. GNULIB_PWRITE
  1710. GNULIB_PREAD
  1711. GNULIB_PIPE2
  1712. GNULIB_PIPE
  1713. GNULIB_LSEEK
  1714. GNULIB_LINKAT
  1715. GNULIB_LINK
  1716. GNULIB_LCHOWN
  1717. GNULIB_ISATTY
  1718. GNULIB_GROUP_MEMBER
  1719. GNULIB_GETUSERSHELL
  1720. GNULIB_GETPAGESIZE
  1721. GNULIB_GETLOGIN_R
  1722. GNULIB_GETLOGIN
  1723. GNULIB_GETHOSTNAME
  1724. GNULIB_GETGROUPS
  1725. GNULIB_GETDTABLESIZE
  1726. GNULIB_GETDOMAINNAME
  1727. GNULIB_GETCWD
  1728. GNULIB_FTRUNCATE
  1729. GNULIB_FSYNC
  1730. GNULIB_FDATASYNC
  1731. GNULIB_FCHOWNAT
  1732. GNULIB_FCHDIR
  1733. GNULIB_FACCESSAT
  1734. GNULIB_EUIDACCESS
  1735. GNULIB_ENVIRON
  1736. GNULIB_DUP3
  1737. GNULIB_DUP2
  1738. GNULIB_DUP
  1739. GNULIB_CLOSE
  1740. GNULIB_CHOWN
  1741. GNULIB_CHDIR
  1742. ENABLE_OPENSSL_FALSE
  1743. ENABLE_OPENSSL_TRUE
  1744. ENABLE_SESSION_TICKETS_FALSE
  1745. ENABLE_SESSION_TICKETS_TRUE
  1746. ENABLE_OCSP_FALSE
  1747. ENABLE_OCSP_TRUE
  1748. ENABLE_ECDHE_FALSE
  1749. ENABLE_ECDHE_TRUE
  1750. ENABLE_DHE_FALSE
  1751. ENABLE_DHE_TRUE
  1752. ENABLE_ANON_FALSE
  1753. ENABLE_ANON_TRUE
  1754. ENABLE_PSK_FALSE
  1755. ENABLE_PSK_TRUE
  1756. ENABLE_SRP_FALSE
  1757. ENABLE_SRP_TRUE
  1758. ENABLE_HEARTBEAT_FALSE
  1759. ENABLE_HEARTBEAT_TRUE
  1760. ENABLE_ALPN_FALSE
  1761. ENABLE_ALPN_TRUE
  1762. ENABLE_DTLS_SRTP_FALSE
  1763. ENABLE_DTLS_SRTP_TRUE
  1764. ENABLE_SSL3_FALSE
  1765. ENABLE_SSL3_TRUE
  1766. ALLOW_SHA1_FALSE
  1767. ALLOW_SHA1_TRUE
  1768. ENABLE_MINITASN1_FALSE
  1769. ENABLE_MINITASN1_TRUE
  1770. LIBTASN1_LIBS
  1771. LIBTASN1_CFLAGS
  1772. GMP_LIBS
  1773. GMP_CFLAGS
  1774. ENABLE_NETTLE_FALSE
  1775. ENABLE_NETTLE_TRUE
  1776. HOGWEED_LIBS
  1777. HOGWEED_CFLAGS
  1778. NETTLE_LIBS
  1779. NETTLE_CFLAGS
  1780. DLL_SSL_VERSION
  1781. DLL_VERSION
  1782. CRYWRAP_PATCHLEVEL
  1783. CXX_LT_AGE
  1784. CXX_LT_REVISION
  1785. CXX_LT_CURRENT
  1786. LT_XSSL_AGE
  1787. LT_XSSL_REVISION
  1788. LT_XSSL_CURRENT
  1789. LT_DANE_AGE
  1790. LT_DANE_REVISION
  1791. LT_DANE_CURRENT
  1792. LT_SSL_AGE
  1793. LT_SSL_REVISION
  1794. LT_SSL_CURRENT
  1795. LT_AGE
  1796. LT_REVISION
  1797. LT_CURRENT
  1798. HAVE_GETENTROPY_FALSE
  1799. HAVE_GETENTROPY_TRUE
  1800. HAVE_GCC_FALSE
  1801. HAVE_GCC_TRUE
  1802. HAVE_GCC_GNU89_INLINE_OPTION_FALSE
  1803. HAVE_GCC_GNU89_INLINE_OPTION_TRUE
  1804. ASM_X86_FALSE
  1805. ASM_X86_TRUE
  1806. ASM_X86_32_FALSE
  1807. ASM_X86_32_TRUE
  1808. ASM_X86_64_FALSE
  1809. ASM_X86_64_TRUE
  1810. ASM_AARCH64_FALSE
  1811. ASM_AARCH64_TRUE
  1812. ENABLE_PADLOCK_FALSE
  1813. ENABLE_PADLOCK_TRUE
  1814. ENABLE_PADLOCK
  1815. DEFINE_IOVEC_T
  1816. ELF_FALSE
  1817. ELF_TRUE
  1818. MACOSX_FALSE
  1819. MACOSX_TRUE
  1820. WINDOWS_FALSE
  1821. WINDOWS_TRUE
  1822. ANDROID_FALSE
  1823. ANDROID_TRUE
  1824. ENABLE_CXX_FALSE
  1825. ENABLE_CXX_TRUE
  1826. NUMBER_VERSION
  1827. PATCH_VERSION
  1828. MINOR_VERSION
  1829. MAJOR_VERSION
  1830. AUTOGEN
  1831. ENABLE_TOOLS_FALSE
  1832. ENABLE_TOOLS_TRUE
  1833. ENABLE_MANPAGES_FALSE
  1834. ENABLE_MANPAGES_TRUE
  1835. ENABLE_DOC_FALSE
  1836. ENABLE_DOC_TRUE
  1837. MAINT
  1838. MAINTAINER_MODE_FALSE
  1839. MAINTAINER_MODE_TRUE
  1840. CODE_COVERAGE_RULES
  1841. CODE_COVERAGE_LDFLAGS
  1842. CODE_COVERAGE_LIBS
  1843. CODE_COVERAGE_CXXFLAGS
  1844. CODE_COVERAGE_CFLAGS
  1845. CODE_COVERAGE_CPPFLAGS
  1846. GENHTML
  1847. LCOV
  1848. GCOV
  1849. CODE_COVERAGE_ENABLED
  1850. CODE_COVERAGE_ENABLED_FALSE
  1851. CODE_COVERAGE_ENABLED_TRUE
  1852. SED
  1853. YFLAGS
  1854. YACC
  1855. am__fastdepCXX_FALSE
  1856. am__fastdepCXX_TRUE
  1857. CXXDEPMODE
  1858. ac_ct_CXX
  1859. CXXFLAGS
  1860. CXX
  1861. am__fastdepCCAS_FALSE
  1862. am__fastdepCCAS_TRUE
  1863. CCASDEPMODE
  1864. CCASFLAGS
  1865. CCAS
  1866. RANLIB
  1867. ARFLAGS
  1868. ac_ct_AR
  1869. AR
  1870. EGREP
  1871. GREP
  1872. CPP
  1873. am__fastdepCC_FALSE
  1874. am__fastdepCC_TRUE
  1875. CCDEPMODE
  1876. am__nodep
  1877. AMDEPBACKSLASH
  1878. AMDEP_FALSE
  1879. AMDEP_TRUE
  1880. am__quote
  1881. am__include
  1882. DEPDIR
  1883. OBJEXT
  1884. EXEEXT
  1885. ac_ct_CC
  1886. CPPFLAGS
  1887. LDFLAGS
  1888. CFLAGS
  1889. CC
  1890. PKG_CONFIG
  1891. AM_BACKSLASH
  1892. AM_DEFAULT_VERBOSITY
  1893. AM_DEFAULT_V
  1894. AM_V
  1895. am__untar
  1896. am__tar
  1897. AMTAR
  1898. am__leading_dot
  1899. SET_MAKE
  1900. AWK
  1901. mkdir_p
  1902. MKDIR_P
  1903. INSTALL_STRIP_PROGRAM
  1904. STRIP
  1905. install_sh
  1906. MAKEINFO
  1907. AUTOHEADER
  1908. AUTOMAKE
  1909. AUTOCONF
  1910. ACLOCAL
  1911. VERSION
  1912. PACKAGE
  1913. CYGPATH_W
  1914. am__isrc
  1915. INSTALL_DATA
  1916. INSTALL_SCRIPT
  1917. INSTALL_PROGRAM
  1918. host_os
  1919. host_vendor
  1920. host_cpu
  1921. host
  1922. build_os
  1923. build_vendor
  1924. build_cpu
  1925. build
  1926. target_alias
  1927. host_alias
  1928. build_alias
  1929. LIBS
  1930. ECHO_T
  1931. ECHO_N
  1932. ECHO_C
  1933. DEFS
  1934. mandir
  1935. localedir
  1936. libdir
  1937. psdir
  1938. pdfdir
  1939. dvidir
  1940. htmldir
  1941. infodir
  1942. docdir
  1943. oldincludedir
  1944. includedir
  1945. runstatedir
  1946. localstatedir
  1947. sharedstatedir
  1948. sysconfdir
  1949. datadir
  1950. datarootdir
  1951. libexecdir
  1952. sbindir
  1953. bindir
  1954. program_transform_name
  1955. prefix
  1956. exec_prefix
  1957. PACKAGE_URL
  1958. PACKAGE_BUGREPORT
  1959. PACKAGE_STRING
  1960. PACKAGE_VERSION
  1961. PACKAGE_TARNAME
  1962. PACKAGE_NAME
  1963. PATH_SEPARATOR
  1964. SHELL'
  1965. ac_subst_files=''
  1966. ac_user_opts='
  1967. enable_option_checking
  1968. enable_silent_rules
  1969. enable_dependency_tracking
  1970. enable_largefile
  1971. with_gcov
  1972. enable_code_coverage
  1973. enable_maintainer_mode
  1974. enable_doc
  1975. enable_manpages
  1976. enable_tools
  1977. enable_cxx
  1978. enable_hardware_acceleration
  1979. enable_padlock
  1980. with_nettle_mini
  1981. with_included_libtasn1
  1982. enable_sha1_support
  1983. enable_ssl3_support
  1984. enable_ssl2_support
  1985. enable_dtls_srtp_support
  1986. enable_alpn_support
  1987. enable_heartbeat_support
  1988. enable_srp_authentication
  1989. enable_psk_authentication
  1990. enable_anon_authentication
  1991. enable_dhe
  1992. enable_ecdhe
  1993. enable_cryptodev
  1994. enable_ocsp
  1995. enable_session_tickets
  1996. enable_openssl_compatibility
  1997. enable_tests
  1998. enable_destructive_tests
  1999. enable_fuzzer_target
  2000. with_html_dir
  2001. enable_gtk_doc
  2002. enable_gtk_doc_html
  2003. enable_gtk_doc_pdf
  2004. enable_nls
  2005. with_gnu_ld
  2006. enable_rpath
  2007. with_libiconv_prefix
  2008. with_libintl_prefix
  2009. enable_seccomp_tests
  2010. with_libseccomp_prefix
  2011. with_libcrypto_prefix
  2012. with_librt_prefix
  2013. with_libpthread_prefix
  2014. with_libnsl_prefix
  2015. with_included_unistring
  2016. with_libunistring_prefix
  2017. enable_ld_version_script
  2018. enable_valgrind_tests
  2019. enable_full_test_suite
  2020. enable_gcc_warnings
  2021. enable_static
  2022. enable_shared
  2023. with_pic
  2024. enable_fast_install
  2025. with_aix_soname
  2026. with_sysroot
  2027. enable_libtool_lock
  2028. with_libdl_prefix
  2029. enable_fips140_mode
  2030. with_fips140_key
  2031. with_idn
  2032. enable_non_suiteb_curves
  2033. enable_libdane
  2034. with_unbound_root_key_file
  2035. with_system_priority_file
  2036. with_default_priority_string
  2037. with_p11_kit
  2038. with_tpm
  2039. with_trousers_lib
  2040. enable_local_libopts
  2041. enable_libopts_install
  2042. with_autoopts_config
  2043. with_regex_header
  2044. with_libregex
  2045. with_libregex_cflags
  2046. with_libregex_libs
  2047. enable_optional_args
  2048. with_default_trust_store_pkcs11
  2049. with_default_trust_store_dir
  2050. with_default_trust_store_file
  2051. with_default_crl_file
  2052. with_default_blacklist_file
  2053. enable_guile
  2054. with_guile_site_dir
  2055. '
  2056.       ac_precious_vars='build_alias
  2057. host_alias
  2058. target_alias
  2059. PKG_CONFIG
  2060. CC
  2061. CFLAGS
  2062. LDFLAGS
  2063. LIBS
  2064. CPPFLAGS
  2065. CPP
  2066. CCAS
  2067. CCASFLAGS
  2068. CXX
  2069. CXXFLAGS
  2070. CCC
  2071. YACC
  2072. YFLAGS
  2073. NETTLE_CFLAGS
  2074. NETTLE_LIBS
  2075. HOGWEED_CFLAGS
  2076. HOGWEED_LIBS
  2077. GMP_CFLAGS
  2078. GMP_LIBS
  2079. LIBTASN1_CFLAGS
  2080. LIBTASN1_LIBS
  2081. GTKDOC_DEPS_CFLAGS
  2082. GTKDOC_DEPS_LIBS
  2083. LT_SYS_LIBRARY_PATH
  2084. CXXCPP
  2085. CMOCKA_CFLAGS
  2086. CMOCKA_LIBS
  2087. P11_KIT_CFLAGS
  2088. P11_KIT_LIBS'
  2089.  
  2090.  
  2091. # Initialize some variables set by options.
  2092. ac_init_help=
  2093. ac_init_version=false
  2094. ac_unrecognized_opts=
  2095. ac_unrecognized_sep=
  2096. # The variables have the same names as the options, with
  2097. # dashes changed to underlines.
  2098. cache_file=/dev/null
  2099. exec_prefix=NONE
  2100. no_create=
  2101. no_recursion=
  2102. prefix=NONE
  2103. program_prefix=NONE
  2104. program_suffix=NONE
  2105. program_transform_name=s,x,x,
  2106. silent=
  2107. site=
  2108. srcdir=
  2109. verbose=
  2110. x_includes=NONE
  2111. x_libraries=NONE
  2112.  
  2113. # Installation directory options.
  2114. # These are left unexpanded so users can "make install exec_prefix=/foo"
  2115. # and all the variables that are supposed to be based on exec_prefix
  2116. # by default will actually change.
  2117. # Use braces instead of parens because sh, perl, etc. also accept them.
  2118. # (The list follows the same order as the GNU Coding Standards.)
  2119. bindir='${exec_prefix}/bin'
  2120. sbindir='${exec_prefix}/sbin'
  2121. libexecdir='${exec_prefix}/libexec'
  2122. datarootdir='${prefix}/share'
  2123. datadir='${datarootdir}'
  2124. sysconfdir='${prefix}/etc'
  2125. sharedstatedir='${prefix}/com'
  2126. localstatedir='${prefix}/var'
  2127. runstatedir='${localstatedir}/run'
  2128. includedir='${prefix}/include'
  2129. oldincludedir='/usr/include'
  2130. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  2131. infodir='${datarootdir}/info'
  2132. htmldir='${docdir}'
  2133. dvidir='${docdir}'
  2134. pdfdir='${docdir}'
  2135. psdir='${docdir}'
  2136. libdir='${exec_prefix}/lib'
  2137. localedir='${datarootdir}/locale'
  2138. mandir='${datarootdir}/man'
  2139.  
  2140. ac_prev=
  2141. ac_dashdash=
  2142. for ac_option
  2143. do
  2144.   # If the previous option needs an argument, assign it.
  2145.   if test -n "$ac_prev"; then
  2146.     eval $ac_prev=\$ac_option
  2147.     ac_prev=
  2148.     continue
  2149.   fi
  2150.  
  2151.   case $ac_option in
  2152.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  2153.   *=)   ac_optarg= ;;
  2154.   *)    ac_optarg=yes ;;
  2155.   esac
  2156.  
  2157.   # Accept the important Cygnus configure options, so we can diagnose typos.
  2158.  
  2159.   case $ac_dashdash$ac_option in
  2160.   --)
  2161.     ac_dashdash=yes ;;
  2162.  
  2163.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  2164.     ac_prev=bindir ;;
  2165.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  2166.     bindir=$ac_optarg ;;
  2167.  
  2168.   -build | --build | --buil | --bui | --bu)
  2169.     ac_prev=build_alias ;;
  2170.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  2171.     build_alias=$ac_optarg ;;
  2172.  
  2173.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  2174.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2175.     ac_prev=cache_file ;;
  2176.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2177.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  2178.     cache_file=$ac_optarg ;;
  2179.  
  2180.   --config-cache | -C)
  2181.     cache_file=config.cache ;;
  2182.  
  2183.   -datadir | --datadir | --datadi | --datad)
  2184.     ac_prev=datadir ;;
  2185.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  2186.     datadir=$ac_optarg ;;
  2187.  
  2188.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  2189.   | --dataroo | --dataro | --datar)
  2190.     ac_prev=datarootdir ;;
  2191.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  2192.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  2193.     datarootdir=$ac_optarg ;;
  2194.  
  2195.   -disable-* | --disable-*)
  2196.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  2197.     # Reject names that are not valid shell variable names.
  2198.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  2199.       as_fn_error $? "invalid feature name: $ac_useropt"
  2200.     ac_useropt_orig=$ac_useropt
  2201.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  2202.     case $ac_user_opts in
  2203.       *"
  2204. "enable_$ac_useropt"
  2205. "*) ;;
  2206.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  2207.          ac_unrecognized_sep=', ';;
  2208.     esac
  2209.     eval enable_$ac_useropt=no ;;
  2210.  
  2211.   -docdir | --docdir | --docdi | --doc | --do)
  2212.     ac_prev=docdir ;;
  2213.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  2214.     docdir=$ac_optarg ;;
  2215.  
  2216.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  2217.     ac_prev=dvidir ;;
  2218.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  2219.     dvidir=$ac_optarg ;;
  2220.  
  2221.   -enable-* | --enable-*)
  2222.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  2223.     # Reject names that are not valid shell variable names.
  2224.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  2225.       as_fn_error $? "invalid feature name: $ac_useropt"
  2226.     ac_useropt_orig=$ac_useropt
  2227.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  2228.     case $ac_user_opts in
  2229.       *"
  2230. "enable_$ac_useropt"
  2231. "*) ;;
  2232.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  2233.          ac_unrecognized_sep=', ';;
  2234.     esac
  2235.     eval enable_$ac_useropt=\$ac_optarg ;;
  2236.  
  2237.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  2238.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  2239.   | --exec | --exe | --ex)
  2240.     ac_prev=exec_prefix ;;
  2241.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  2242.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  2243.   | --exec=* | --exe=* | --ex=*)
  2244.     exec_prefix=$ac_optarg ;;
  2245.  
  2246.   -gas | --gas | --ga | --g)
  2247.     # Obsolete; use --with-gas.
  2248.     with_gas=yes ;;
  2249.  
  2250.   -help | --help | --hel | --he | -h)
  2251.     ac_init_help=long ;;
  2252.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  2253.     ac_init_help=recursive ;;
  2254.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  2255.     ac_init_help=short ;;
  2256.  
  2257.   -host | --host | --hos | --ho)
  2258.     ac_prev=host_alias ;;
  2259.   -host=* | --host=* | --hos=* | --ho=*)
  2260.     host_alias=$ac_optarg ;;
  2261.  
  2262.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  2263.     ac_prev=htmldir ;;
  2264.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  2265.   | --ht=*)
  2266.     htmldir=$ac_optarg ;;
  2267.  
  2268.   -includedir | --includedir | --includedi | --included | --include \
  2269.   | --includ | --inclu | --incl | --inc)
  2270.     ac_prev=includedir ;;
  2271.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  2272.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  2273.     includedir=$ac_optarg ;;
  2274.  
  2275.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  2276.     ac_prev=infodir ;;
  2277.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  2278.     infodir=$ac_optarg ;;
  2279.  
  2280.   -libdir | --libdir | --libdi | --libd)
  2281.     ac_prev=libdir ;;
  2282.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  2283.     libdir=$ac_optarg ;;
  2284.  
  2285.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  2286.   | --libexe | --libex | --libe)
  2287.     ac_prev=libexecdir ;;
  2288.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  2289.   | --libexe=* | --libex=* | --libe=*)
  2290.     libexecdir=$ac_optarg ;;
  2291.  
  2292.   -localedir | --localedir | --localedi | --localed | --locale)
  2293.     ac_prev=localedir ;;
  2294.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  2295.     localedir=$ac_optarg ;;
  2296.  
  2297.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  2298.   | --localstate | --localstat | --localsta | --localst | --locals)
  2299.     ac_prev=localstatedir ;;
  2300.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  2301.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  2302.     localstatedir=$ac_optarg ;;
  2303.  
  2304.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  2305.     ac_prev=mandir ;;
  2306.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  2307.     mandir=$ac_optarg ;;
  2308.  
  2309.   -nfp | --nfp | --nf)
  2310.     # Obsolete; use --without-fp.
  2311.     with_fp=no ;;
  2312.  
  2313.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  2314.   | --no-cr | --no-c | -n)
  2315.     no_create=yes ;;
  2316.  
  2317.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  2318.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  2319.     no_recursion=yes ;;
  2320.  
  2321.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  2322.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  2323.   | --oldin | --oldi | --old | --ol | --o)
  2324.     ac_prev=oldincludedir ;;
  2325.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  2326.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  2327.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  2328.     oldincludedir=$ac_optarg ;;
  2329.  
  2330.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  2331.     ac_prev=prefix ;;
  2332.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  2333.     prefix=$ac_optarg ;;
  2334.  
  2335.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  2336.   | --program-pre | --program-pr | --program-p)
  2337.     ac_prev=program_prefix ;;
  2338.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  2339.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  2340.     program_prefix=$ac_optarg ;;
  2341.  
  2342.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  2343.   | --program-suf | --program-su | --program-s)
  2344.     ac_prev=program_suffix ;;
  2345.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  2346.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  2347.     program_suffix=$ac_optarg ;;
  2348.  
  2349.   -program-transform-name | --program-transform-name \
  2350.   | --program-transform-nam | --program-transform-na \
  2351.   | --program-transform-n | --program-transform- \
  2352.   | --program-transform | --program-transfor \
  2353.   | --program-transfo | --program-transf \
  2354.   | --program-trans | --program-tran \
  2355.   | --progr-tra | --program-tr | --program-t)
  2356.     ac_prev=program_transform_name ;;
  2357.   -program-transform-name=* | --program-transform-name=* \
  2358.   | --program-transform-nam=* | --program-transform-na=* \
  2359.   | --program-transform-n=* | --program-transform-=* \
  2360.   | --program-transform=* | --program-transfor=* \
  2361.   | --program-transfo=* | --program-transf=* \
  2362.   | --program-trans=* | --program-tran=* \
  2363.   | --progr-tra=* | --program-tr=* | --program-t=*)
  2364.     program_transform_name=$ac_optarg ;;
  2365.  
  2366.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  2367.     ac_prev=pdfdir ;;
  2368.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  2369.     pdfdir=$ac_optarg ;;
  2370.  
  2371.   -psdir | --psdir | --psdi | --psd | --ps)
  2372.     ac_prev=psdir ;;
  2373.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  2374.     psdir=$ac_optarg ;;
  2375.  
  2376.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2377.   | -silent | --silent | --silen | --sile | --sil)
  2378.     silent=yes ;;
  2379.  
  2380.   -runstatedir | --runstatedir | --runstatedi | --runstated \
  2381.   | --runstate | --runstat | --runsta | --runst | --runs \
  2382.   | --run | --ru | --r)
  2383.     ac_prev=runstatedir ;;
  2384.   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  2385.   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  2386.   | --run=* | --ru=* | --r=*)
  2387.     runstatedir=$ac_optarg ;;
  2388.  
  2389.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  2390.     ac_prev=sbindir ;;
  2391.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  2392.   | --sbi=* | --sb=*)
  2393.     sbindir=$ac_optarg ;;
  2394.  
  2395.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  2396.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  2397.   | --sharedst | --shareds | --shared | --share | --shar \
  2398.   | --sha | --sh)
  2399.     ac_prev=sharedstatedir ;;
  2400.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  2401.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  2402.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  2403.   | --sha=* | --sh=*)
  2404.     sharedstatedir=$ac_optarg ;;
  2405.  
  2406.   -site | --site | --sit)
  2407.     ac_prev=site ;;
  2408.   -site=* | --site=* | --sit=*)
  2409.     site=$ac_optarg ;;
  2410.  
  2411.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2412.     ac_prev=srcdir ;;
  2413.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2414.     srcdir=$ac_optarg ;;
  2415.  
  2416.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  2417.   | --syscon | --sysco | --sysc | --sys | --sy)
  2418.     ac_prev=sysconfdir ;;
  2419.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  2420.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  2421.     sysconfdir=$ac_optarg ;;
  2422.  
  2423.   -target | --target | --targe | --targ | --tar | --ta | --t)
  2424.     ac_prev=target_alias ;;
  2425.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  2426.     target_alias=$ac_optarg ;;
  2427.  
  2428.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  2429.     verbose=yes ;;
  2430.  
  2431.   -version | --version | --versio | --versi | --vers | -V)
  2432.     ac_init_version=: ;;
  2433.  
  2434.   -with-* | --with-*)
  2435.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  2436.     # Reject names that are not valid shell variable names.
  2437.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  2438.       as_fn_error $? "invalid package name: $ac_useropt"
  2439.     ac_useropt_orig=$ac_useropt
  2440.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  2441.     case $ac_user_opts in
  2442.       *"
  2443. "with_$ac_useropt"
  2444. "*) ;;
  2445.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  2446.          ac_unrecognized_sep=', ';;
  2447.     esac
  2448.     eval with_$ac_useropt=\$ac_optarg ;;
  2449.  
  2450.   -without-* | --without-*)
  2451.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  2452.     # Reject names that are not valid shell variable names.
  2453.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  2454.       as_fn_error $? "invalid package name: $ac_useropt"
  2455.     ac_useropt_orig=$ac_useropt
  2456.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  2457.     case $ac_user_opts in
  2458.       *"
  2459. "with_$ac_useropt"
  2460. "*) ;;
  2461.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  2462.          ac_unrecognized_sep=', ';;
  2463.     esac
  2464.     eval with_$ac_useropt=no ;;
  2465.  
  2466.   --x)
  2467.     # Obsolete; use --with-x.
  2468.     with_x=yes ;;
  2469.  
  2470.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  2471.   | --x-incl | --x-inc | --x-in | --x-i)
  2472.     ac_prev=x_includes ;;
  2473.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  2474.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  2475.     x_includes=$ac_optarg ;;
  2476.  
  2477.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  2478.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  2479.     ac_prev=x_libraries ;;
  2480.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  2481.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  2482.     x_libraries=$ac_optarg ;;
  2483.  
  2484.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  2485. Try \`$0 --help' for more information"
  2486.     ;;
  2487.  
  2488.   *=*)
  2489.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  2490.     # Reject names that are not valid shell variable names.
  2491.     case $ac_envvar in #(
  2492.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  2493.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  2494.    esac
  2495.    eval $ac_envvar=\$ac_optarg
  2496.    export $ac_envvar ;;
  2497.  
  2498.  *)
  2499.    # FIXME: should be removed in autoconf 3.0.
  2500.    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  2501.    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  2502.      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  2503.    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  2504.    ;;
  2505.  
  2506.  esac
  2507. done
  2508.  
  2509. if test -n "$ac_prev"; then
  2510.  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  2511.  as_fn_error $? "missing argument to $ac_option"
  2512. fi
  2513.  
  2514. if test -n "$ac_unrecognized_opts"; then
  2515.  case $enable_option_checking in
  2516.    no) ;;
  2517.    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  2518.    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  2519.  esac
  2520. fi
  2521.  
  2522. # Check all directory arguments for consistency.
  2523. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  2524.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  2525.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  2526.                 libdir localedir mandir runstatedir
  2527. do
  2528.  eval ac_val=\$$ac_var
  2529.  # Remove trailing slashes.
  2530.  case $ac_val in
  2531.    */ )
  2532.      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  2533.      eval $ac_var=\$ac_val;;
  2534.  esac
  2535.  # Be sure to have absolute directory names.
  2536.  case $ac_val in
  2537.    [\\/$]* | ?:[\\/]* )  continue;;
  2538.    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  2539.  esac
  2540.  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  2541. done
  2542.  
  2543. # There might be people who depend on the old broken behavior: `$host'
  2544. # used to hold the argument of --host etc.
  2545. # FIXME: To remove some day.
  2546. build=$build_alias
  2547. host=$host_alias
  2548. target=$target_alias
  2549.  
  2550. # FIXME: To remove some day.
  2551. if test "x$host_alias" != x; then
  2552.  if test "x$build_alias" = x; then
  2553.    cross_compiling=maybe
  2554.  elif test "x$build_alias" != "x$host_alias"; then
  2555.    cross_compiling=yes
  2556.  fi
  2557. fi
  2558.  
  2559. ac_tool_prefix=
  2560. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  2561.  
  2562. test "$silent" = yes && exec 6>/dev/null
  2563.  
  2564.  
  2565. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  2566. ac_ls_di=`ls -di .` &&
  2567. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  2568.  as_fn_error $? "working directory cannot be determined"
  2569. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  2570.  as_fn_error $? "pwd does not report name of working directory"
  2571.  
  2572.  
  2573. # Find the source files, if location was not specified.
  2574. if test -z "$srcdir"; then
  2575.  ac_srcdir_defaulted=yes
  2576.  # Try the directory containing this script, then the parent directory.
  2577.  ac_confdir=`$as_dirname -- "$as_myself" ||
  2578. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2579.          X"$as_myself" : 'X\(//\)[^/]' \| \
  2580.          X"$as_myself" : 'X\(//\)$' \| \
  2581.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  2582. $as_echo X"$as_myself" |
  2583.    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2584.             s//\1/
  2585.             q
  2586.           }
  2587.           /^X\(\/\/\)[^/].*/{
  2588.             s//\1/
  2589.             q
  2590.           }
  2591.           /^X\(\/\/\)$/{
  2592.             s//\1/
  2593.             q
  2594.           }
  2595.           /^X\(\/\).*/{
  2596.             s//\1/
  2597.             q
  2598.           }
  2599.           s/.*/./; q'`
  2600.  srcdir=$ac_confdir
  2601.  if test ! -r "$srcdir/$ac_unique_file"; then
  2602.    srcdir=..
  2603.  fi
  2604. else
  2605.  ac_srcdir_defaulted=no
  2606. fi
  2607. if test ! -r "$srcdir/$ac_unique_file"; then
  2608.  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  2609.  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  2610. fi
  2611. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  2612. ac_abs_confdir=`(
  2613.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  2614.         pwd)`
  2615. # When building in place, set srcdir=.
  2616. if test "$ac_abs_confdir" = "$ac_pwd"; then
  2617.  srcdir=.
  2618. fi
  2619. # Remove unnecessary trailing slashes from srcdir.
  2620. # Double slashes in file names in object file debugging info
  2621. # mess up M-x gdb in Emacs.
  2622. case $srcdir in
  2623. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  2624. esac
  2625. for ac_var in $ac_precious_vars; do
  2626.  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  2627.  eval ac_env_${ac_var}_value=\$${ac_var}
  2628.  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  2629.  eval ac_cv_env_${ac_var}_value=\$${ac_var}
  2630. done
  2631.  
  2632. #
  2633. # Report the --help message.
  2634. #
  2635. if test "$ac_init_help" = "long"; then
  2636.  # Omit some internal or obsolete options to make the list less imposing.
  2637.  # This message is too long to be a string in the A/UX 3.1 sh.
  2638.  cat <<_ACEOF
  2639. \`configure' configures GnuTLS 3.6.2 to adapt to many kinds of systems.
  2640.  
  2641. Usage: $0 [OPTION]... [VAR=VALUE]...
  2642.  
  2643. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  2644. VAR=VALUE.  See below for descriptions of some of the useful variables.
  2645.  
  2646. Defaults for the options are specified in brackets.
  2647.  
  2648. Configuration:
  2649.   -h, --help              display this help and exit
  2650.       --help=short        display options specific to this package
  2651.       --help=recursive    display the short help of all the included packages
  2652.   -V, --version           display version information and exit
  2653.   -q, --quiet, --silent   do not print \`checking ...' messages
  2654.      --cache-file=FILE   cache test results in FILE [disabled]
  2655.  -C, --config-cache      alias for \`--cache-file=config.cache'
  2656.   -n, --no-create         do not create output files
  2657.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  2658.  
  2659. Installation directories:
  2660.  --prefix=PREFIX         install architecture-independent files in PREFIX
  2661.                          [$ac_default_prefix]
  2662.  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  2663.                          [PREFIX]
  2664.  
  2665. By default, \`make install' will install all the files in
  2666. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  2667. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  2668. for instance \`--prefix=\$HOME'.
  2669.  
  2670. For better control, use the options below.
  2671.  
  2672. Fine tuning of the installation directories:
  2673.  --bindir=DIR            user executables [EPREFIX/bin]
  2674.  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  2675.  --libexecdir=DIR        program executables [EPREFIX/libexec]
  2676.  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  2677.  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  2678.  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  2679.  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  2680.  --libdir=DIR            object code libraries [EPREFIX/lib]
  2681.  --includedir=DIR        C header files [PREFIX/include]
  2682.  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  2683.  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  2684.  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  2685.  --infodir=DIR           info documentation [DATAROOTDIR/info]
  2686.  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  2687.  --mandir=DIR            man documentation [DATAROOTDIR/man]
  2688.  --docdir=DIR            documentation root [DATAROOTDIR/doc/gnutls]
  2689.  --htmldir=DIR           html documentation [DOCDIR]
  2690.  --dvidir=DIR            dvi documentation [DOCDIR]
  2691.  --pdfdir=DIR            pdf documentation [DOCDIR]
  2692.  --psdir=DIR             ps documentation [DOCDIR]
  2693. _ACEOF
  2694.  
  2695.  cat <<\_ACEOF
  2696.  
  2697. Program names:
  2698.  --program-prefix=PREFIX            prepend PREFIX to installed program names
  2699.  --program-suffix=SUFFIX            append SUFFIX to installed program names
  2700.  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  2701.  
  2702. System types:
  2703.  --build=BUILD     configure for building on BUILD [guessed]
  2704.  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  2705. _ACEOF
  2706. fi
  2707.  
  2708. if test -n "$ac_init_help"; then
  2709.  case $ac_init_help in
  2710.     short | recursive ) echo "Configuration of GnuTLS 3.6.2:";;
  2711.   esac
  2712.  cat <<\_ACEOF
  2713.  
  2714. Optional Features:
  2715.  --disable-option-checking  ignore unrecognized --enable/--with options
  2716.  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  2717.  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  2718.  --enable-silent-rules   less verbose build output (undo: "make V=1")
  2719.  --disable-silent-rules  verbose build output (undo: "make V=0")
  2720.  --enable-dependency-tracking
  2721.                          do not reject slow dependency extractors
  2722.  --disable-dependency-tracking
  2723.                          speeds up one-time build
  2724.  --disable-largefile     omit support for large files
  2725.  --enable-code-coverage  Whether to enable code coverage support
  2726.  --disable-maintainer-mode
  2727.                          disable make rules and dependencies not useful (and
  2728.                          sometimes confusing) to the casual installer
  2729.  --disable-doc           don't generate any documentation
  2730.   --enable-manpages       install manpages even if disable-doc is given
  2731.   --disable-tools         don't compile any tools
  2732.  --disable-cxx           unconditionally disable the C++ library
  2733.  --disable-hardware-acceleration
  2734.                          unconditionally disable hardware acceleration
  2735.  --disable-padlock       unconditionally disable padlock acceleration
  2736.  --enable-sha1-support   allow SHA1 as an acceptable hash for cert digital
  2737.                          signatures
  2738.  --disable-ssl3-support  disable support for the SSL 3.0 protocol
  2739.  --disable-ssl2-support  disable support for the SSL 2.0 client hello
  2740.  --disable-dtls-srtp-support
  2741.                          disable support for the DTLS-SRTP extension
  2742.  --disable-alpn-support  disable support for the Application Layer Protocol
  2743.                          Negotiation (ALPN) extension
  2744.  --disable-heartbeat-support
  2745.                          disable support for the heartbeat extension
  2746.  --disable-srp-authentication
  2747.                          disable the SRP authentication support
  2748.  --disable-psk-authentication
  2749.                          disable the PSK authentication support
  2750.  --disable-anon-authentication
  2751.                          disable the anonymous authentication support
  2752.  --disable-dhe           disable the DHE support
  2753.  --disable-ecdhe         disable the ECDHE support
  2754.  --enable-cryptodev      enable cryptodev support
  2755.  --disable-ocsp          disable OCSP support
  2756.  --disable-session-tickets
  2757.                          disable session tickets support
  2758.  --enable-openssl-compatibility
  2759.                          enable the OpenSSL compatibility library
  2760.  --disable-tests         don't compile or run any tests
  2761.   --enable-destructive-tests
  2762.                           compile and run tests which touch outside gnutls'
  2763.                          code boundary
  2764.  --enable-fuzzer-target  make a library intended for testing - not production
  2765.  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
  2766.  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
  2767.  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
  2768.  --disable-nls           do not use Native Language Support
  2769.  --disable-rpath         do not hardcode runtime library paths
  2770.  --enable-seccomp-tests  unconditionally enable tests with seccomp
  2771.  --enable-ld-version-script
  2772.                          enable linker version script (default is enabled
  2773.                          when possible)
  2774.  --disable-valgrind-tests
  2775.                          don't try to run self tests under valgrind
  2776.   --disable-full-test-suite
  2777.                           disable running very slow components of test suite
  2778.   --disable-gcc-warnings  turn off lots of GCC warnings (for developers)
  2779.   --enable-static[=PKGS]  build static libraries [default=no]
  2780.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  2781.   --enable-fast-install[=PKGS]
  2782.                           optimize for fast installation [default=yes]
  2783.   --disable-libtool-lock  avoid locking (might break parallel builds)
  2784.   --enable-fips140-mode   enable FIPS140-2 mode
  2785.   --disable-non-suiteb-curves
  2786.                           disable curves not in SuiteB
  2787.   --disable-libdane       disable the built of libdane
  2788.   --disable-nls           disable nls support in libopts
  2789.   --enable-local-libopts  Use the supplied libopts tearoff code
  2790.   --enable-libopts-install
  2791.                           Install libopts with client installation
  2792.   --disable-optional-args not wanting optional option args
  2793.   --enable-guile          build GNU Guile bindings
  2794.  
  2795. Optional Packages:
  2796.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  2797.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  2798.   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
  2799.   --with-nettle-mini      Link against a mini-nettle (that includes mini-gmp)
  2800.   --with-included-libtasn1
  2801.                           use the included libtasn1
  2802.   --with-html-dir=PATH    path to installed docs
  2803.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  2804.   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  2805.   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
  2806.  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
  2807.  --without-libintl-prefix     don't search for libintl in includedir and libdir
  2808.   --with-libseccomp-prefix[=DIR]  search for libseccomp in DIR/include and DIR/lib
  2809.   --without-libseccomp-prefix     don't search for libseccomp in includedir and libdir
  2810.  --with-libcrypto-prefix[=DIR]  search for libcrypto in DIR/include and DIR/lib
  2811.  --without-libcrypto-prefix     don't search for libcrypto in includedir and libdir
  2812.   --with-librt-prefix[=DIR]  search for librt in DIR/include and DIR/lib
  2813.   --without-librt-prefix     don't search for librt in includedir and libdir
  2814.  --with-libpthread-prefix[=DIR]  search for libpthread in DIR/include and DIR/lib
  2815.  --without-libpthread-prefix     don't search for libpthread in includedir and libdir
  2816.   --with-libnsl-prefix[=DIR]  search for libnsl in DIR/include and DIR/lib
  2817.   --without-libnsl-prefix     don't search for libnsl in includedir and libdir
  2818.  --with-included-unistring
  2819.                          disable linking with system libunistring
  2820.  --with-libunistring-prefix[=DIR]  search for libunistring in DIR/include and DIR/lib
  2821.  --without-libunistring-prefix     don't search for libunistring in includedir and libdir
  2822.   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  2823.                           both]
  2824.   --with-aix-soname=aix|svr4|both
  2825.                           shared library versioning (aka "SONAME") variant to
  2826.                           provide on AIX, [default=aix].
  2827.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  2828.   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
  2829.                           compiler's sysroot if not specified).
  2830.  --with-libdl-prefix[=DIR]  search for libdl in DIR/include and DIR/lib
  2831.  --without-libdl-prefix     don't search for libdl in includedir and libdir
  2832.   --with-fips140-key      specify the FIPS140 HMAC key for integrity
  2833.   --without-idn           disable support for IDNA
  2834.   --with-unbound-root-key-file
  2835.                           specify the unbound root key file
  2836.   --with-system-priority-file
  2837.                           specify the system priority file
  2838.   --with-default-priority-string
  2839.                           specify the default priority string (e.g. @SYSTEM)
  2840.   --without-p11-kit       Build without p11-kit and PKCS#11 support
  2841.   --without-tpm           Disable TPM (trousers) support.
  2842.   --with-trousers-lib=LIB set the location of the trousers library
  2843.   --with-autoopts-config  specify the config-info script
  2844.   --with-regex-header     a reg expr header is specified
  2845.   --with-libregex         libregex installation prefix
  2846.   --with-libregex-cflags  libregex compile flags
  2847.   --with-libregex-libs    libregex link command arguments
  2848.   --with-default-trust-store-pkcs11=URI
  2849.                           use the given pkcs11 uri as default trust store
  2850.   --with-default-trust-store-dir=DIR
  2851.                           use the given directory as default trust store
  2852.   --with-default-trust-store-file=FILE
  2853.                           use the given file default trust store
  2854.   --with-default-crl-file=FILE
  2855.                           use the given CRL file as default
  2856.   --with-default-blacklist-file=FILE
  2857.                           use the given certificate blacklist file as default
  2858.   --with-guile-site-dir   use the given directory as the Guile site (use with
  2859.                           care)
  2860.  
  2861. Some influential environment variables:
  2862.   PKG_CONFIG  path to pkg-config utility
  2863.   CC          C compiler command
  2864.   CFLAGS      C compiler flags
  2865.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  2866.               nonstandard directory <lib dir>
  2867.   LIBS        libraries to pass to the linker, e.g. -l<library>
  2868.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  2869.               you have headers in a nonstandard directory <include dir>
  2870.   CPP         C preprocessor
  2871.   CCAS        assembler compiler command (defaults to CC)
  2872.   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  2873.   CXX         C++ compiler command
  2874.   CXXFLAGS    C++ compiler flags
  2875.   YACC        The `Yet Another Compiler Compiler' implementation to use.
  2876.              Defaults to the first program found out of: `bison -y', `byacc',
  2877.              `yacc'.
  2878.   YFLAGS      The list of arguments that will be passed by default to $YACC.
  2879.               This script will default YFLAGS to the empty string to avoid a
  2880.               default value of `-d' given by some make applications.
  2881.  NETTLE_CFLAGS
  2882.              C compiler flags for NETTLE, overriding pkg-config
  2883.  NETTLE_LIBS linker flags for NETTLE, overriding pkg-config
  2884.  HOGWEED_CFLAGS
  2885.              C compiler flags for HOGWEED, overriding pkg-config
  2886.  HOGWEED_LIBS
  2887.              linker flags for HOGWEED, overriding pkg-config
  2888.  GMP_CFLAGS  C compiler flags for gmp
  2889.  GMP_LIBS    linker flags for gmp
  2890.  LIBTASN1_CFLAGS
  2891.              C compiler flags for LIBTASN1, overriding pkg-config
  2892.  LIBTASN1_LIBS
  2893.              linker flags for LIBTASN1, overriding pkg-config
  2894.  GTKDOC_DEPS_CFLAGS
  2895.              C compiler flags for GTKDOC_DEPS, overriding pkg-config
  2896.  GTKDOC_DEPS_LIBS
  2897.              linker flags for GTKDOC_DEPS, overriding pkg-config
  2898.  LT_SYS_LIBRARY_PATH
  2899.              User-defined run-time library search path.
  2900.  CXXCPP      C++ preprocessor
  2901.  CMOCKA_CFLAGS
  2902.              C compiler flags for CMOCKA, overriding pkg-config
  2903.  CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
  2904.  P11_KIT_CFLAGS
  2905.              C compiler flags for P11_KIT, overriding pkg-config
  2906.  P11_KIT_LIBS
  2907.              linker flags for P11_KIT, overriding pkg-config
  2908.  
  2909. Use these variables to override the choices made by `configure' or to help
  2910. it to find libraries and programs with nonstandard names/locations.
  2911.  
  2912. Report bugs to <bugs@gnutls.org>.
  2913. _ACEOF
  2914. ac_status=$?
  2915. fi
  2916.  
  2917. if test "$ac_init_help" = "recursive"; then
  2918.   # If there are subdirs, report their specific --help.
  2919.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  2920.     test -d "$ac_dir" ||
  2921.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2922.       continue
  2923.     ac_builddir=.
  2924.  
  2925. case "$ac_dir" in
  2926. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2927. *)
  2928.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2929.   # A ".." for each directory in $ac_dir_suffix.
  2930.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2931.   case $ac_top_builddir_sub in
  2932.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2933.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2934.   esac ;;
  2935. esac
  2936. ac_abs_top_builddir=$ac_pwd
  2937. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2938. # for backward compatibility:
  2939. ac_top_builddir=$ac_top_build_prefix
  2940.  
  2941. case $srcdir in
  2942.   .)  # We are building in place.
  2943.     ac_srcdir=.
  2944.     ac_top_srcdir=$ac_top_builddir_sub
  2945.     ac_abs_top_srcdir=$ac_pwd ;;
  2946.   [\\/]* | ?:[\\/]* )  # Absolute name.
  2947.     ac_srcdir=$srcdir$ac_dir_suffix;
  2948.     ac_top_srcdir=$srcdir
  2949.     ac_abs_top_srcdir=$srcdir ;;
  2950.   *) # Relative name.
  2951.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2952.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  2953.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2954. esac
  2955. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2956.  
  2957.     cd "$ac_dir" || { ac_status=$?; continue; }
  2958.     # Check for guested configure.
  2959.     if test -f "$ac_srcdir/configure.gnu"; then
  2960.       echo &&
  2961.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2962.     elif test -f "$ac_srcdir/configure"; then
  2963.       echo &&
  2964.       $SHELL "$ac_srcdir/configure" --help=recursive
  2965.     else
  2966.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2967.     fi || ac_status=$?
  2968.     cd "$ac_pwd" || { ac_status=$?; break; }
  2969.   done
  2970. fi
  2971.  
  2972. test -n "$ac_init_help" && exit $ac_status
  2973. if $ac_init_version; then
  2974.   cat <<\_ACEOF
  2975. GnuTLS configure 3.6.2
  2976. generated by GNU Autoconf 2.69
  2977.  
  2978. Copyright (C) 2012 Free Software Foundation, Inc.
  2979. This configure script is free software; the Free Software Foundation
  2980. gives unlimited permission to copy, distribute and modify it.
  2981. _ACEOF
  2982.   exit
  2983. fi
  2984.  
  2985. ## ------------------------ ##
  2986. ## Autoconf initialization. ##
  2987. ## ------------------------ ##
  2988.  
  2989. # ac_fn_c_try_compile LINENO
  2990. # --------------------------
  2991. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2992. ac_fn_c_try_compile ()
  2993. {
  2994.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2995.   rm -f conftest.$ac_objext
  2996.   if { { ac_try="$ac_compile"
  2997. case "(($ac_try" in
  2998.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2999.   *) ac_try_echo=$ac_try;;
  3000. esac
  3001. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3002. $as_echo "$ac_try_echo"; } >&5
  3003.   (eval "$ac_compile") 2>conftest.err
  3004.   ac_status=$?
  3005.   if test -s conftest.err; then
  3006.     grep -v '^ *+' conftest.err >conftest.er1
  3007.     cat conftest.er1 >&5
  3008.     mv -f conftest.er1 conftest.err
  3009.   fi
  3010.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3011.   test $ac_status = 0; } && {
  3012.          test -z "$ac_c_werror_flag" ||
  3013.          test ! -s conftest.err
  3014.        } && test -s conftest.$ac_objext; then :
  3015.   ac_retval=0
  3016. else
  3017.   $as_echo "$as_me: failed program was:" >&5
  3018. sed 's/^/| /' conftest.$ac_ext >&5
  3019.  
  3020.         ac_retval=1
  3021. fi
  3022.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3023.   as_fn_set_status $ac_retval
  3024.  
  3025. } # ac_fn_c_try_compile
  3026.  
  3027. # ac_fn_c_try_cpp LINENO
  3028. # ----------------------
  3029. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  3030. ac_fn_c_try_cpp ()
  3031. {
  3032.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3033.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  3034. case "(($ac_try" in
  3035.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3036.   *) ac_try_echo=$ac_try;;
  3037. esac
  3038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3039. $as_echo "$ac_try_echo"; } >&5
  3040.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  3041.   ac_status=$?
  3042.   if test -s conftest.err; then
  3043.     grep -v '^ *+' conftest.err >conftest.er1
  3044.     cat conftest.er1 >&5
  3045.     mv -f conftest.er1 conftest.err
  3046.   fi
  3047.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3048.   test $ac_status = 0; } > conftest.i && {
  3049.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3050.          test ! -s conftest.err
  3051.        }; then :
  3052.   ac_retval=0
  3053. else
  3054.   $as_echo "$as_me: failed program was:" >&5
  3055. sed 's/^/| /' conftest.$ac_ext >&5
  3056.  
  3057.     ac_retval=1
  3058. fi
  3059.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3060.   as_fn_set_status $ac_retval
  3061.  
  3062. } # ac_fn_c_try_cpp
  3063.  
  3064. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  3065. # -------------------------------------------------------
  3066. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  3067. # the include files in INCLUDES and setting the cache variable VAR
  3068. # accordingly.
  3069. ac_fn_c_check_header_mongrel ()
  3070. {
  3071.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3072.   if eval \${$3+:} false; then :
  3073.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3074. $as_echo_n "checking for $2... " >&6; }
  3075. if eval \${$3+:} false; then :
  3076.   $as_echo_n "(cached) " >&6
  3077. fi
  3078. eval ac_res=\$$3
  3079.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3080. $as_echo "$ac_res" >&6; }
  3081. else
  3082.   # Is the header compilable?
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  3084. $as_echo_n "checking $2 usability... " >&6; }
  3085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3086. /* end confdefs.h.  */
  3087. $4
  3088. #include <$2>
  3089. _ACEOF
  3090. if ac_fn_c_try_compile "$LINENO"; then :
  3091.   ac_header_compiler=yes
  3092. else
  3093.   ac_header_compiler=no
  3094. fi
  3095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  3097. $as_echo "$ac_header_compiler" >&6; }
  3098.  
  3099. # Is the header present?
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  3101. $as_echo_n "checking $2 presence... " >&6; }
  3102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3103. /* end confdefs.h.  */
  3104. #include <$2>
  3105. _ACEOF
  3106. if ac_fn_c_try_cpp "$LINENO"; then :
  3107.   ac_header_preproc=yes
  3108. else
  3109.   ac_header_preproc=no
  3110. fi
  3111. rm -f conftest.err conftest.i conftest.$ac_ext
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  3113. $as_echo "$ac_header_preproc" >&6; }
  3114.  
  3115. # So?  What about this header?
  3116. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  3117.   yes:no: )
  3118.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  3119. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3120.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  3121. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  3122.     ;;
  3123.   no:yes:* )
  3124.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  3125. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  3126.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  3127. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  3128.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  3129. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  3130.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  3131. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  3132.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  3133. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  3134. ( $as_echo "## ------------------------------ ##
  3135. ## Report this to bugs@gnutls.org ##
  3136. ## ------------------------------ ##"
  3137.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  3138.     ;;
  3139. esac
  3140.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3141. $as_echo_n "checking for $2... " >&6; }
  3142. if eval \${$3+:} false; then :
  3143.   $as_echo_n "(cached) " >&6
  3144. else
  3145.   eval "$3=\$ac_header_compiler"
  3146. fi
  3147. eval ac_res=\$$3
  3148.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3149. $as_echo "$ac_res" >&6; }
  3150. fi
  3151.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3152.  
  3153. } # ac_fn_c_check_header_mongrel
  3154.  
  3155. # ac_fn_c_try_run LINENO
  3156. # ----------------------
  3157. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  3158. # that executables *can* be run.
  3159. ac_fn_c_try_run ()
  3160. {
  3161.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3162.   if { { ac_try="$ac_link"
  3163. case "(($ac_try" in
  3164.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3165.   *) ac_try_echo=$ac_try;;
  3166. esac
  3167. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3168. $as_echo "$ac_try_echo"; } >&5
  3169.   (eval "$ac_link") 2>&5
  3170.   ac_status=$?
  3171.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3172.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  3173.   { { case "(($ac_try" in
  3174.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3175.   *) ac_try_echo=$ac_try;;
  3176. esac
  3177. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3178. $as_echo "$ac_try_echo"; } >&5
  3179.   (eval "$ac_try") 2>&5
  3180.   ac_status=$?
  3181.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3182.   test $ac_status = 0; }; }; then :
  3183.   ac_retval=0
  3184. else
  3185.   $as_echo "$as_me: program exited with status $ac_status" >&5
  3186.        $as_echo "$as_me: failed program was:" >&5
  3187. sed 's/^/| /' conftest.$ac_ext >&5
  3188.  
  3189.        ac_retval=$ac_status
  3190. fi
  3191.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  3192.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3193.   as_fn_set_status $ac_retval
  3194.  
  3195. } # ac_fn_c_try_run
  3196.  
  3197. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  3198. # -------------------------------------------------------
  3199. # Tests whether HEADER exists and can be compiled using the include files in
  3200. # INCLUDES, setting the cache variable VAR accordingly.
  3201. ac_fn_c_check_header_compile ()
  3202. {
  3203.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3204.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3205. $as_echo_n "checking for $2... " >&6; }
  3206. if eval \${$3+:} false; then :
  3207.   $as_echo_n "(cached) " >&6
  3208. else
  3209.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h.  */
  3211. $4
  3212. #include <$2>
  3213. _ACEOF
  3214. if ac_fn_c_try_compile "$LINENO"; then :
  3215.   eval "$3=yes"
  3216. else
  3217.   eval "$3=no"
  3218. fi
  3219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3220. fi
  3221. eval ac_res=\$$3
  3222.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3223. $as_echo "$ac_res" >&6; }
  3224.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3225.  
  3226. } # ac_fn_c_check_header_compile
  3227.  
  3228. # ac_fn_c_try_link LINENO
  3229. # -----------------------
  3230. # Try to link conftest.$ac_ext, and return whether this succeeded.
  3231. ac_fn_c_try_link ()
  3232. {
  3233.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3234.   rm -f conftest.$ac_objext conftest$ac_exeext
  3235.   if { { ac_try="$ac_link"
  3236. case "(($ac_try" in
  3237.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3238.   *) ac_try_echo=$ac_try;;
  3239. esac
  3240. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3241. $as_echo "$ac_try_echo"; } >&5
  3242.   (eval "$ac_link") 2>conftest.err
  3243.   ac_status=$?
  3244.   if test -s conftest.err; then
  3245.     grep -v '^ *+' conftest.err >conftest.er1
  3246.     cat conftest.er1 >&5
  3247.     mv -f conftest.er1 conftest.err
  3248.   fi
  3249.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3250.   test $ac_status = 0; } && {
  3251.          test -z "$ac_c_werror_flag" ||
  3252.          test ! -s conftest.err
  3253.        } && test -s conftest$ac_exeext && {
  3254.          test "$cross_compiling" = yes ||
  3255.          test -x conftest$ac_exeext
  3256.        }; then :
  3257.   ac_retval=0
  3258. else
  3259.   $as_echo "$as_me: failed program was:" >&5
  3260. sed 's/^/| /' conftest.$ac_ext >&5
  3261.  
  3262.         ac_retval=1
  3263. fi
  3264.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  3265.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  3266.   # interfere with the next link command; also delete a directory that is
  3267.   # left behind by Apple's compiler.  We do this before executing the actions.
  3268.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  3269.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3270.   as_fn_set_status $ac_retval
  3271.  
  3272. } # ac_fn_c_try_link
  3273.  
  3274. # ac_fn_cxx_try_compile LINENO
  3275. # ----------------------------
  3276. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  3277. ac_fn_cxx_try_compile ()
  3278. {
  3279.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3280.   rm -f conftest.$ac_objext
  3281.   if { { ac_try="$ac_compile"
  3282. case "(($ac_try" in
  3283.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3284.   *) ac_try_echo=$ac_try;;
  3285. esac
  3286. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3287. $as_echo "$ac_try_echo"; } >&5
  3288.   (eval "$ac_compile") 2>conftest.err
  3289.   ac_status=$?
  3290.   if test -s conftest.err; then
  3291.     grep -v '^ *+' conftest.err >conftest.er1
  3292.     cat conftest.er1 >&5
  3293.     mv -f conftest.er1 conftest.err
  3294.   fi
  3295.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3296.   test $ac_status = 0; } && {
  3297.          test -z "$ac_cxx_werror_flag" ||
  3298.          test ! -s conftest.err
  3299.        } && test -s conftest.$ac_objext; then :
  3300.   ac_retval=0
  3301. else
  3302.   $as_echo "$as_me: failed program was:" >&5
  3303. sed 's/^/| /' conftest.$ac_ext >&5
  3304.  
  3305.         ac_retval=1
  3306. fi
  3307.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3308.   as_fn_set_status $ac_retval
  3309.  
  3310. } # ac_fn_cxx_try_compile
  3311.  
  3312. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  3313. # ----------------------------------------------------
  3314. # Tries to find if the field MEMBER exists in type AGGR, after including
  3315. # INCLUDES, setting cache variable VAR accordingly.
  3316. ac_fn_c_check_member ()
  3317. {
  3318.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3319.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  3320. $as_echo_n "checking for $2.$3... " >&6; }
  3321. if eval \${$4+:} false; then :
  3322.   $as_echo_n "(cached) " >&6
  3323. else
  3324.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3325. /* end confdefs.h.  */
  3326. $5
  3327. int
  3328. main ()
  3329. {
  3330. static $2 ac_aggr;
  3331. if (ac_aggr.$3)
  3332. return 0;
  3333.   ;
  3334.   return 0;
  3335. }
  3336. _ACEOF
  3337. if ac_fn_c_try_compile "$LINENO"; then :
  3338.   eval "$4=yes"
  3339. else
  3340.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h.  */
  3342. $5
  3343. int
  3344. main ()
  3345. {
  3346. static $2 ac_aggr;
  3347. if (sizeof ac_aggr.$3)
  3348. return 0;
  3349.   ;
  3350.   return 0;
  3351. }
  3352. _ACEOF
  3353. if ac_fn_c_try_compile "$LINENO"; then :
  3354.   eval "$4=yes"
  3355. else
  3356.   eval "$4=no"
  3357. fi
  3358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3359. fi
  3360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3361. fi
  3362. eval ac_res=\$$4
  3363.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3364. $as_echo "$ac_res" >&6; }
  3365.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3366.  
  3367. } # ac_fn_c_check_member
  3368.  
  3369. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  3370. # --------------------------------------------
  3371. # Tries to find the compile-time value of EXPR in a program that includes
  3372. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  3373. # computed
  3374. ac_fn_c_compute_int ()
  3375. {
  3376.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3377.   if test "$cross_compiling" = yes; then
  3378.     # Depending upon the size, compute the lo and hi bounds.
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h.  */
  3381. $4
  3382. int
  3383. main ()
  3384. {
  3385. static int test_array [1 - 2 * !(($2) >= 0)];
  3386. test_array [0] = 0;
  3387. return test_array [0];
  3388.  
  3389.   ;
  3390.   return 0;
  3391. }
  3392. _ACEOF
  3393. if ac_fn_c_try_compile "$LINENO"; then :
  3394.   ac_lo=0 ac_mid=0
  3395.   while :; do
  3396.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3397. /* end confdefs.h.  */
  3398. $4
  3399. int
  3400. main ()
  3401. {
  3402. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  3403. test_array [0] = 0;
  3404. return test_array [0];
  3405.  
  3406.   ;
  3407.   return 0;
  3408. }
  3409. _ACEOF
  3410. if ac_fn_c_try_compile "$LINENO"; then :
  3411.   ac_hi=$ac_mid; break
  3412. else
  3413.   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  3414.                         if test $ac_lo -le $ac_mid; then
  3415.                           ac_lo= ac_hi=
  3416.                           break
  3417.                         fi
  3418.                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  3419. fi
  3420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3421.   done
  3422. else
  3423.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3424. /* end confdefs.h.  */
  3425. $4
  3426. int
  3427. main ()
  3428. {
  3429. static int test_array [1 - 2 * !(($2) < 0)];
  3430. test_array [0] = 0;
  3431. return test_array [0];
  3432.  
  3433.   ;
  3434.   return 0;
  3435. }
  3436. _ACEOF
  3437. if ac_fn_c_try_compile "$LINENO"; then :
  3438.   ac_hi=-1 ac_mid=-1
  3439.   while :; do
  3440.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3441. /* end confdefs.h.  */
  3442. $4
  3443. int
  3444. main ()
  3445. {
  3446. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  3447. test_array [0] = 0;
  3448. return test_array [0];
  3449.  
  3450.   ;
  3451.   return 0;
  3452. }
  3453. _ACEOF
  3454. if ac_fn_c_try_compile "$LINENO"; then :
  3455.   ac_lo=$ac_mid; break
  3456. else
  3457.   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  3458.                         if test $ac_mid -le $ac_hi; then
  3459.                           ac_lo= ac_hi=
  3460.                           break
  3461.                         fi
  3462.                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  3463. fi
  3464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3465.   done
  3466. else
  3467.   ac_lo= ac_hi=
  3468. fi
  3469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3470. fi
  3471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3472. # Binary search between lo and hi bounds.
  3473. while test "x$ac_lo" != "x$ac_hi"; do
  3474.   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  3475.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3476. /* end confdefs.h.  */
  3477. $4
  3478. int
  3479. main ()
  3480. {
  3481. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  3482. test_array [0] = 0;
  3483. return test_array [0];
  3484.  
  3485.   ;
  3486.   return 0;
  3487. }
  3488. _ACEOF
  3489. if ac_fn_c_try_compile "$LINENO"; then :
  3490.   ac_hi=$ac_mid
  3491. else
  3492.   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  3493. fi
  3494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3495. done
  3496. case $ac_lo in #((
  3497. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  3498. '') ac_retval=1 ;;
  3499. esac
  3500.   else
  3501.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3502. /* end confdefs.h.  */
  3503. $4
  3504. static long int longval () { return $2; }
  3505. static unsigned long int ulongval () { return $2; }
  3506. #include <stdio.h>
  3507. #include <stdlib.h>
  3508. int
  3509. main ()
  3510. {
  3511.  
  3512.   FILE *f = fopen ("conftest.val", "w");
  3513.   if (! f)
  3514.     return 1;
  3515.   if (($2) < 0)
  3516.     {
  3517.       long int i = longval ();
  3518.       if (i != ($2))
  3519.         return 1;
  3520.       fprintf (f, "%ld", i);
  3521.     }
  3522.   else
  3523.     {
  3524.       unsigned long int i = ulongval ();
  3525.       if (i != ($2))
  3526.         return 1;
  3527.       fprintf (f, "%lu", i);
  3528.     }
  3529.   /* Do not output a trailing newline, as this causes \r\n confusion
  3530.      on some platforms.  */
  3531.   return ferror (f) || fclose (f) != 0;
  3532.  
  3533.   ;
  3534.   return 0;
  3535. }
  3536. _ACEOF
  3537. if ac_fn_c_try_run "$LINENO"; then :
  3538.   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  3539. else
  3540.   ac_retval=1
  3541. fi
  3542. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3543.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  3544. rm -f conftest.val
  3545.  
  3546.   fi
  3547.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3548.   as_fn_set_status $ac_retval
  3549.  
  3550. } # ac_fn_c_compute_int
  3551.  
  3552. # ac_fn_c_check_func LINENO FUNC VAR
  3553. # ----------------------------------
  3554. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  3555. ac_fn_c_check_func ()
  3556. {
  3557.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3558.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3559. $as_echo_n "checking for $2... " >&6; }
  3560. if eval \${$3+:} false; then :
  3561.   $as_echo_n "(cached) " >&6
  3562. else
  3563.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3564. /* end confdefs.h.  */
  3565. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  3566.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  3567. #define $2 innocuous_$2
  3568.  
  3569. /* System header to define __stub macros and hopefully few prototypes,
  3570.     which can conflict with char $2 (); below.
  3571.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3572.     <limits.h> exists even on freestanding compilers.  */
  3573.  
  3574. #ifdef __STDC__
  3575. # include <limits.h>
  3576. #else
  3577. # include <assert.h>
  3578. #endif
  3579.  
  3580. #undef $2
  3581.  
  3582. /* Override any GCC internal prototype to avoid an error.
  3583.    Use char because int might match the return type of a GCC
  3584.    builtin and then its argument prototype would still apply.  */
  3585. #ifdef __cplusplus
  3586. extern "C"
  3587. #endif
  3588. char $2 ();
  3589. /* The GNU C library defines this for functions which it implements
  3590.     to always fail with ENOSYS.  Some functions are actually named
  3591.     something starting with __ and the normal name is an alias.  */
  3592. #if defined __stub_$2 || defined __stub___$2
  3593. choke me
  3594. #endif
  3595.  
  3596. int
  3597. main ()
  3598. {
  3599. return $2 ();
  3600.   ;
  3601.   return 0;
  3602. }
  3603. _ACEOF
  3604. if ac_fn_c_try_link "$LINENO"; then :
  3605.   eval "$3=yes"
  3606. else
  3607.   eval "$3=no"
  3608. fi
  3609. rm -f core conftest.err conftest.$ac_objext \
  3610.     conftest$ac_exeext conftest.$ac_ext
  3611. fi
  3612. eval ac_res=\$$3
  3613.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3614. $as_echo "$ac_res" >&6; }
  3615.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3616.  
  3617. } # ac_fn_c_check_func
  3618.  
  3619. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  3620. # -------------------------------------------
  3621. # Tests whether TYPE exists after having included INCLUDES, setting cache
  3622. # variable VAR accordingly.
  3623. ac_fn_c_check_type ()
  3624. {
  3625.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3626.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3627. $as_echo_n "checking for $2... " >&6; }
  3628. if eval \${$3+:} false; then :
  3629.   $as_echo_n "(cached) " >&6
  3630. else
  3631.   eval "$3=no"
  3632.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3633. /* end confdefs.h.  */
  3634. $4
  3635. int
  3636. main ()
  3637. {
  3638. if (sizeof ($2))
  3639.          return 0;
  3640.   ;
  3641.   return 0;
  3642. }
  3643. _ACEOF
  3644. if ac_fn_c_try_compile "$LINENO"; then :
  3645.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3646. /* end confdefs.h.  */
  3647. $4
  3648. int
  3649. main ()
  3650. {
  3651. if (sizeof (($2)))
  3652.             return 0;
  3653.   ;
  3654.   return 0;
  3655. }
  3656. _ACEOF
  3657. if ac_fn_c_try_compile "$LINENO"; then :
  3658.  
  3659. else
  3660.   eval "$3=yes"
  3661. fi
  3662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3663. fi
  3664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3665. fi
  3666. eval ac_res=\$$3
  3667.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3668. $as_echo "$ac_res" >&6; }
  3669.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3670.  
  3671. } # ac_fn_c_check_type
  3672.  
  3673. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  3674. # ---------------------------------------------
  3675. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  3676. # accordingly.
  3677. ac_fn_c_check_decl ()
  3678. {
  3679.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3680.   as_decl_name=`echo $2|sed 's/ *(.*//'`
  3681.   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  3682.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  3683. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  3684. if eval \${$3+:} false; then :
  3685.   $as_echo_n "(cached) " >&6
  3686. else
  3687.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3688. /* end confdefs.h.  */
  3689. $4
  3690. int
  3691. main ()
  3692. {
  3693. #ifndef $as_decl_name
  3694. #ifdef __cplusplus
  3695.   (void) $as_decl_use;
  3696. #else
  3697.   (void) $as_decl_name;
  3698. #endif
  3699. #endif
  3700.  
  3701.   ;
  3702.   return 0;
  3703. }
  3704. _ACEOF
  3705. if ac_fn_c_try_compile "$LINENO"; then :
  3706.   eval "$3=yes"
  3707. else
  3708.   eval "$3=no"
  3709. fi
  3710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3711. fi
  3712. eval ac_res=\$$3
  3713.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3714. $as_echo "$ac_res" >&6; }
  3715.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3716.  
  3717. } # ac_fn_c_check_decl
  3718.  
  3719. # ac_fn_cxx_try_cpp LINENO
  3720. # ------------------------
  3721. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  3722. ac_fn_cxx_try_cpp ()
  3723. {
  3724.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3725.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  3726. case "(($ac_try" in
  3727.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3728.   *) ac_try_echo=$ac_try;;
  3729. esac
  3730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3731. $as_echo "$ac_try_echo"; } >&5
  3732.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  3733.   ac_status=$?
  3734.   if test -s conftest.err; then
  3735.     grep -v '^ *+' conftest.err >conftest.er1
  3736.     cat conftest.er1 >&5
  3737.     mv -f conftest.er1 conftest.err
  3738.   fi
  3739.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3740.   test $ac_status = 0; } > conftest.i && {
  3741.          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3742.          test ! -s conftest.err
  3743.        }; then :
  3744.   ac_retval=0
  3745. else
  3746.   $as_echo "$as_me: failed program was:" >&5
  3747. sed 's/^/| /' conftest.$ac_ext >&5
  3748.  
  3749.     ac_retval=1
  3750. fi
  3751.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3752.   as_fn_set_status $ac_retval
  3753.  
  3754. } # ac_fn_cxx_try_cpp
  3755.  
  3756. # ac_fn_cxx_try_link LINENO
  3757. # -------------------------
  3758. # Try to link conftest.$ac_ext, and return whether this succeeded.
  3759. ac_fn_cxx_try_link ()
  3760. {
  3761.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3762.   rm -f conftest.$ac_objext conftest$ac_exeext
  3763.   if { { ac_try="$ac_link"
  3764. case "(($ac_try" in
  3765.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3766.   *) ac_try_echo=$ac_try;;
  3767. esac
  3768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3769. $as_echo "$ac_try_echo"; } >&5
  3770.   (eval "$ac_link") 2>conftest.err
  3771.   ac_status=$?
  3772.   if test -s conftest.err; then
  3773.     grep -v '^ *+' conftest.err >conftest.er1
  3774.     cat conftest.er1 >&5
  3775.     mv -f conftest.er1 conftest.err
  3776.   fi
  3777.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3778.   test $ac_status = 0; } && {
  3779.          test -z "$ac_cxx_werror_flag" ||
  3780.          test ! -s conftest.err
  3781.        } && test -s conftest$ac_exeext && {
  3782.          test "$cross_compiling" = yes ||
  3783.          test -x conftest$ac_exeext
  3784.        }; then :
  3785.   ac_retval=0
  3786. else
  3787.   $as_echo "$as_me: failed program was:" >&5
  3788. sed 's/^/| /' conftest.$ac_ext >&5
  3789.  
  3790.         ac_retval=1
  3791. fi
  3792.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  3793.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  3794.   # interfere with the next link command; also delete a directory that is
  3795.   # left behind by Apple's compiler.  We do this before executing the actions.
  3796.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  3797.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3798.   as_fn_set_status $ac_retval
  3799.  
  3800. } # ac_fn_cxx_try_link
  3801. cat >config.log <<_ACEOF
  3802. This file contains any messages produced by compilers while
  3803. running configure, to aid debugging if configure makes a mistake.
  3804.  
  3805. It was created by GnuTLS $as_me 3.6.2, which was
  3806. generated by GNU Autoconf 2.69.  Invocation command line was
  3807.  
  3808.   $ $0 $@
  3809.  
  3810. _ACEOF
  3811. exec 5>>config.log
  3812. {
  3813. cat <<_ASUNAME
  3814. ## --------- ##
  3815. ## Platform. ##
  3816. ## --------- ##
  3817.  
  3818. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  3819. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  3820. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  3821. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  3822. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  3823.  
  3824. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  3825. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  3826.  
  3827. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  3828. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  3829. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  3830. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  3831. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  3832. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  3833. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  3834.  
  3835. _ASUNAME
  3836.  
  3837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3838. for as_dir in $PATH
  3839. do
  3840.   IFS=$as_save_IFS
  3841.   test -z "$as_dir" && as_dir=.
  3842.     $as_echo "PATH: $as_dir"
  3843.   done
  3844. IFS=$as_save_IFS
  3845.  
  3846. } >&5
  3847.  
  3848. cat >&5 <<_ACEOF
  3849.  
  3850.  
  3851. ## ----------- ##
  3852. ## Core tests. ##
  3853. ## ----------- ##
  3854.  
  3855. _ACEOF
  3856.  
  3857.  
  3858. # Keep a trace of the command line.
  3859. # Strip out --no-create and --no-recursion so they do not pile up.
  3860. # Strip out --silent because we don't want to record it for future runs.
  3861. # Also quote any args containing shell meta-characters.
  3862. # Make two passes to allow for proper duplicate-argument suppression.
  3863. ac_configure_args=
  3864. ac_configure_args0=
  3865. ac_configure_args1=
  3866. ac_must_keep_next=false
  3867. for ac_pass in 1 2
  3868. do
  3869.   for ac_arg
  3870.   do
  3871.     case $ac_arg in
  3872.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  3873.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3874.     | -silent | --silent | --silen | --sile | --sil)
  3875.       continue ;;
  3876.     *\'*)
  3877.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  3878.     esac
  3879.     case $ac_pass in
  3880.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  3881.     2)
  3882.       as_fn_append ac_configure_args1 " '$ac_arg'"
  3883.       if test $ac_must_keep_next = true; then
  3884.         ac_must_keep_next=false # Got value, back to normal.
  3885.       else
  3886.         case $ac_arg in
  3887.           *=* | --config-cache | -C | -disable-* | --disable-* \
  3888.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  3889.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  3890.           | -with-* | --with-* | -without-* | --without-* | --x)
  3891.             case "$ac_configure_args0 " in
  3892.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  3893.             esac
  3894.             ;;
  3895.           -* ) ac_must_keep_next=true ;;
  3896.         esac
  3897.       fi
  3898.       as_fn_append ac_configure_args " '$ac_arg'"
  3899.       ;;
  3900.     esac
  3901.   done
  3902. done
  3903. { ac_configure_args0=; unset ac_configure_args0;}
  3904. { ac_configure_args1=; unset ac_configure_args1;}
  3905.  
  3906. # When interrupted or exit'd, cleanup temporary files, and complete
  3907. # config.log.  We remove comments because anyway the quotes in there
  3908. # would cause problems or look ugly.
  3909. # WARNING: Use '\'' to represent an apostrophe within the trap.
  3910. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  3911. trap 'exit_status=$?
  3912.  # Save into config.log some information that might help in debugging.
  3913.  {
  3914.    echo
  3915.  
  3916.    $as_echo "## ---------------- ##
  3917. ## Cache variables. ##
  3918. ## ---------------- ##"
  3919.    echo
  3920.    # The following way of writing the cache mishandles newlines in values,
  3921. (
  3922.  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  3923.    eval ac_val=\$$ac_var
  3924.    case $ac_val in #(
  3925.    *${as_nl}*)
  3926.      case $ac_var in #(
  3927.      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3928. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3929.      esac
  3930.      case $ac_var in #(
  3931.      _ | IFS | as_nl) ;; #(
  3932.      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3933.      *) { eval $ac_var=; unset $ac_var;} ;;
  3934.      esac ;;
  3935.    esac
  3936.  done
  3937.  (set) 2>&1 |
  3938.    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  3939.    *${as_nl}ac_space=\ *)
  3940.      sed -n \
  3941.         "s/'\''/'\''\\\\'\'''\''/g;
  3942.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  3943.      ;; #(
  3944.    *)
  3945.      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3946.      ;;
  3947.    esac |
  3948.    sort
  3949. )
  3950.    echo
  3951.  
  3952.    $as_echo "## ----------------- ##
  3953. ## Output variables. ##
  3954. ## ----------------- ##"
  3955.    echo
  3956.    for ac_var in $ac_subst_vars
  3957.    do
  3958.      eval ac_val=\$$ac_var
  3959.      case $ac_val in
  3960.      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3961.      esac
  3962.      $as_echo "$ac_var='\''$ac_val'\''"
  3963.    done | sort
  3964.    echo
  3965.  
  3966.    if test -n "$ac_subst_files"; then
  3967.      $as_echo "## ------------------- ##
  3968. ## File substitutions. ##
  3969. ## ------------------- ##"
  3970.      echo
  3971.      for ac_var in $ac_subst_files
  3972.      do
  3973.         eval ac_val=\$$ac_var
  3974.         case $ac_val in
  3975.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3976.         esac
  3977.         $as_echo "$ac_var='\''$ac_val'\''"
  3978.      done | sort
  3979.      echo
  3980.    fi
  3981.  
  3982.    if test -s confdefs.h; then
  3983.      $as_echo "## ----------- ##
  3984. ## confdefs.h. ##
  3985. ## ----------- ##"
  3986.      echo
  3987.      cat confdefs.h
  3988.      echo
  3989.    fi
  3990.    test "$ac_signal" != 0 &&
  3991.      $as_echo "$as_me: caught signal $ac_signal"
  3992.    $as_echo "$as_me: exit $exit_status"
  3993.  } >&5
  3994.  rm -f core *.core core.conftest.* &&
  3995.    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  3996.    exit $exit_status
  3997. ' 0
  3998. for ac_signal in 1 2 13 15; do
  3999.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  4000. done
  4001. ac_signal=0
  4002.  
  4003. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  4004. rm -f -r conftest* confdefs.h
  4005.  
  4006. $as_echo "/* confdefs.h */" > confdefs.h
  4007.  
  4008. # Predefined preprocessor variables.
  4009.  
  4010. cat >>confdefs.h <<_ACEOF
  4011. #define PACKAGE_NAME "$PACKAGE_NAME"
  4012. _ACEOF
  4013.  
  4014. cat >>confdefs.h <<_ACEOF
  4015. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  4016. _ACEOF
  4017.  
  4018. cat >>confdefs.h <<_ACEOF
  4019. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  4020. _ACEOF
  4021.  
  4022. cat >>confdefs.h <<_ACEOF
  4023. #define PACKAGE_STRING "$PACKAGE_STRING"
  4024. _ACEOF
  4025.  
  4026. cat >>confdefs.h <<_ACEOF
  4027. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  4028. _ACEOF
  4029.  
  4030. cat >>confdefs.h <<_ACEOF
  4031. #define PACKAGE_URL "$PACKAGE_URL"
  4032. _ACEOF
  4033.  
  4034.  
  4035. # Let the site file select an alternate cache file if it wants to.
  4036. # Prefer an explicitly selected file to automatically selected ones.
  4037. ac_site_file1=NONE
  4038. ac_site_file2=NONE
  4039. if test -n "$CONFIG_SITE"; then
  4040.   # We do not want a PATH search for config.site.
  4041.   case $CONFIG_SITE in #((
  4042.     -*)  ac_site_file1=./$CONFIG_SITE;;
  4043.     */*) ac_site_file1=$CONFIG_SITE;;
  4044.     *)   ac_site_file1=./$CONFIG_SITE;;
  4045.   esac
  4046. elif test "x$prefix" != xNONE; then
  4047.   ac_site_file1=$prefix/share/config.site
  4048.   ac_site_file2=$prefix/etc/config.site
  4049. else
  4050.   ac_site_file1=$ac_default_prefix/share/config.site
  4051.   ac_site_file2=$ac_default_prefix/etc/config.site
  4052. fi
  4053. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  4054. do
  4055.   test "x$ac_site_file" = xNONE && continue
  4056.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  4057.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  4058. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  4059.     sed 's/^/| /' "$ac_site_file" >&5
  4060.     . "$ac_site_file" \
  4061.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4063. as_fn_error $? "failed to load site script $ac_site_file
  4064. See \`config.log' for more details" "$LINENO" 5; }
  4065.  fi
  4066. done
  4067.  
  4068. if test -r "$cache_file"; then
  4069.  # Some versions of bash will fail to source /dev/null (special files
  4070.  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  4071.  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  4072.    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  4073. $as_echo "$as_me: loading cache $cache_file" >&6;}
  4074.    case $cache_file in
  4075.      [\\/]* | ?:[\\/]* ) . "$cache_file";;
  4076.      *)                      . "./$cache_file";;
  4077.    esac
  4078.  fi
  4079. else
  4080.  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  4081. $as_echo "$as_me: creating cache $cache_file" >&6;}
  4082.  >$cache_file
  4083. fi
  4084.  
  4085. gl_header_list="$gl_header_list sys/socket.h"
  4086. gt_needs="$gt_needs "
  4087. gl_func_list="$gl_func_list _set_invalid_parameter_handler"
  4088. gl_header_list="$gl_header_list sys/stat.h"
  4089. gl_func_list="$gl_func_list getdelim"
  4090. gl_header_list="$gl_header_list sys/time.h"
  4091. gl_func_list="$gl_func_list gettimeofday"
  4092. gl_header_list="$gl_header_list limits.h"
  4093. gl_header_list="$gl_header_list unistd.h"
  4094. gl_header_list="$gl_header_list sys/mman.h"
  4095. gl_func_list="$gl_func_list mprotect"
  4096. gl_header_list="$gl_header_list netdb.h"
  4097. gl_header_list="$gl_header_list netinet/in.h"
  4098. gl_func_list="$gl_func_list secure_getenv"
  4099. gl_func_list="$gl_func_list getuid"
  4100. gl_func_list="$gl_func_list geteuid"
  4101. gl_func_list="$gl_func_list getgid"
  4102. gl_func_list="$gl_func_list getegid"
  4103. gl_func_list="$gl_func_list snprintf"
  4104. gl_header_list="$gl_header_list wchar.h"
  4105. gl_header_list="$gl_header_list stdint.h"
  4106. gl_header_list="$gl_header_list strings.h"
  4107. gl_func_list="$gl_func_list strndup"
  4108. gl_header_list="$gl_header_list sys/uio.h"
  4109. gl_func_list="$gl_func_list localtime_r"
  4110. gl_func_list="$gl_func_list vasnprintf"
  4111. gl_header_list="$gl_header_list features.h"
  4112. gl_func_list="$gl_func_list symlink"
  4113. gl_header_list="$gl_header_list inttypes.h"
  4114. gl_func_list="$gl_func_list shutdown"
  4115. gl_header_list="$gl_header_list arpa/inet.h"
  4116. gl_header_list="$gl_header_list stdio_ext.h"
  4117. gl_header_list="$gl_header_list termios.h"
  4118. gl_func_list="$gl_func_list __fsetlocking"
  4119. gl_func_list="$gl_func_list tcgetattr"
  4120. gl_func_list="$gl_func_list tcsetattr"
  4121. gl_func_list="$gl_func_list getprogname"
  4122. gl_func_list="$gl_func_list getexecname"
  4123. gl_func_list="$gl_func_list nanotime"
  4124. gl_func_list="$gl_func_list tzset"
  4125. gl_header_list="$gl_header_list sys/select.h"
  4126. gl_func_list="$gl_func_list setenv"
  4127. gl_func_list="$gl_func_list strdup"
  4128. gl_func_list="$gl_func_list timegm"
  4129. # Check that the precious variables saved in the cache have kept the same
  4130. # value.
  4131. ac_cache_corrupted=false
  4132. for ac_var in $ac_precious_vars; do
  4133.  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  4134.  eval ac_new_set=\$ac_env_${ac_var}_set
  4135.  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  4136.  eval ac_new_val=\$ac_env_${ac_var}_value
  4137.  case $ac_old_set,$ac_new_set in
  4138.    set,)
  4139.      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  4140. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  4141.      ac_cache_corrupted=: ;;
  4142.    ,set)
  4143.      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  4144. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  4145.      ac_cache_corrupted=: ;;
  4146.    ,);;
  4147.    *)
  4148.      if test "x$ac_old_val" != "x$ac_new_val"; then
  4149.         # differences in whitespace do not lead to failure.
  4150.         ac_old_val_w=`echo x $ac_old_val`
  4151.         ac_new_val_w=`echo x $ac_new_val`
  4152.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  4153.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  4154. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  4155.           ac_cache_corrupted=:
  4156.         else
  4157.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  4158. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  4159.           eval $ac_var=\$ac_old_val
  4160.         fi
  4161.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  4162. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  4163.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  4164. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  4165.      fi;;
  4166.  esac
  4167.  # Pass precious variables to config.status.
  4168.  if test "$ac_new_set" = set; then
  4169.    case $ac_new_val in
  4170.    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  4171.    *) ac_arg=$ac_var=$ac_new_val ;;
  4172.    esac
  4173.    case " $ac_configure_args " in
  4174.      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  4175.      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  4176.    esac
  4177.  fi
  4178. done
  4179. if $ac_cache_corrupted; then
  4180.  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4181. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4182.  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  4183. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  4184.  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  4185. fi
  4186. ## -------------------- ##
  4187. ## Main body of script. ##
  4188. ## -------------------- ##
  4189.  
  4190. ac_ext=c
  4191. ac_cpp='$CPP $CPPFLAGS'
  4192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4195.  
  4196.  
  4197. ac_aux_dir=
  4198. for ac_dir in build-aux "$srcdir"/build-aux; do
  4199.  if test -f "$ac_dir/install-sh"; then
  4200.    ac_aux_dir=$ac_dir
  4201.    ac_install_sh="$ac_aux_dir/install-sh -c"
  4202.    break
  4203.  elif test -f "$ac_dir/install.sh"; then
  4204.    ac_aux_dir=$ac_dir
  4205.    ac_install_sh="$ac_aux_dir/install.sh -c"
  4206.    break
  4207.  elif test -f "$ac_dir/shtool"; then
  4208.    ac_aux_dir=$ac_dir
  4209.    ac_install_sh="$ac_aux_dir/shtool install -c"
  4210.    break
  4211.  fi
  4212. done
  4213. if test -z "$ac_aux_dir"; then
  4214.  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  4215. fi
  4216.  
  4217. # These three variables are undocumented and unsupported,
  4218. # and are intended to be withdrawn in a future Autoconf release.
  4219. # They can cause serious problems if a builder's source tree is in a directory
  4220. # whose full name contains unusual characters.
  4221. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  4222. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  4223. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  4224.  
  4225.  
  4226.  
  4227. # Make sure we can run config.sub.
  4228. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4229.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4230.  
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4232. $as_echo_n "checking build system type... " >&6; }
  4233. if ${ac_cv_build+:} false; then :
  4234.   $as_echo_n "(cached) " >&6
  4235. else
  4236.   ac_build_alias=$build_alias
  4237. test "x$ac_build_alias" = x &&
  4238.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4239. test "x$ac_build_alias" = x &&
  4240.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4241. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4242.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4243.  
  4244. fi
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4246. $as_echo "$ac_cv_build" >&6; }
  4247. case $ac_cv_build in
  4248. *-*-*) ;;
  4249. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4250. esac
  4251. build=$ac_cv_build
  4252. ac_save_IFS=$IFS; IFS='-'
  4253. set x $ac_cv_build
  4254. shift
  4255. build_cpu=$1
  4256. build_vendor=$2
  4257. shift; shift
  4258. # Remember, the first character of IFS is used to create $*,
  4259. # except with old shells:
  4260. build_os=$*
  4261. IFS=$ac_save_IFS
  4262. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4263.  
  4264.  
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4266. $as_echo_n "checking host system type... " >&6; }
  4267. if ${ac_cv_host+:} false; then :
  4268.   $as_echo_n "(cached) " >&6
  4269. else
  4270.   if test "x$host_alias" = x; then
  4271.   ac_cv_host=$ac_cv_build
  4272. else
  4273.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4274.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4275. fi
  4276.  
  4277. fi
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4279. $as_echo "$ac_cv_host" >&6; }
  4280. case $ac_cv_host in
  4281. *-*-*) ;;
  4282. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4283. esac
  4284. host=$ac_cv_host
  4285. ac_save_IFS=$IFS; IFS='-'
  4286. set x $ac_cv_host
  4287. shift
  4288. host_cpu=$1
  4289. host_vendor=$2
  4290. shift; shift
  4291. # Remember, the first character of IFS is used to create $*,
  4292. # except with old shells:
  4293. host_os=$*
  4294. IFS=$ac_save_IFS
  4295. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4296.  
  4297.  
  4298.  
  4299. am__api_version='1.15'
  4300.  
  4301. # Find a good install program.  We prefer a C program (faster),
  4302. # so one script is as good as another.  But avoid the broken or
  4303. # incompatible versions:
  4304. # SysV /etc/install, /usr/sbin/install
  4305. # SunOS /usr/etc/install
  4306. # IRIX /sbin/install
  4307. # AIX /bin/install
  4308. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4309. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4310. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4311. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4312. # OS/2's system install, which has a completely different semantic
  4313. # ./install, which can be erroneously created by make from ./install.sh.
  4314. # Reject install programs that cannot install multiple files.
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4316. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4317. if test -z "$INSTALL"; then
  4318. if ${ac_cv_path_install+:} false; then :
  4319.   $as_echo_n "(cached) " >&6
  4320. else
  4321.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4322. for as_dir in $PATH
  4323. do
  4324.   IFS=$as_save_IFS
  4325.   test -z "$as_dir" && as_dir=.
  4326.     # Account for people who put trailing slashes in PATH elements.
  4327. case $as_dir/ in #((
  4328.   ./ | .// | /[cC]/* | \
  4329.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4330.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4331.   /usr/ucb/* ) ;;
  4332.   *)
  4333.     # OSF1 and SCO ODT 3.0 have their own names for install.
  4334.     # Don't use installbsd from OSF since it installs stuff as root
  4335.     # by default.
  4336.     for ac_prog in ginstall scoinst install; do
  4337.       for ac_exec_ext in '' $ac_executable_extensions; do
  4338.         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4339.           if test $ac_prog = install &&
  4340.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4341.             # AIX install.  It has an incompatible calling convention.
  4342.             :
  4343.           elif test $ac_prog = install &&
  4344.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4345.             # program-specific install script used by HP pwplus--don't use.
  4346.             :
  4347.           else
  4348.             rm -rf conftest.one conftest.two conftest.dir
  4349.             echo one > conftest.one
  4350.             echo two > conftest.two
  4351.             mkdir conftest.dir
  4352.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4353.               test -s conftest.one && test -s conftest.two &&
  4354.               test -s conftest.dir/conftest.one &&
  4355.               test -s conftest.dir/conftest.two
  4356.             then
  4357.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4358.               break 3
  4359.             fi
  4360.           fi
  4361.         fi
  4362.       done
  4363.     done
  4364.     ;;
  4365. esac
  4366.  
  4367.   done
  4368. IFS=$as_save_IFS
  4369.  
  4370. rm -rf conftest.one conftest.two conftest.dir
  4371.  
  4372. fi
  4373.   if test "${ac_cv_path_install+set}" = set; then
  4374.     INSTALL=$ac_cv_path_install
  4375.   else
  4376.     # As a last resort, use the slow shell script.  Don't cache a
  4377.     # value for INSTALL within a source directory, because that will
  4378.     # break other packages using the cache if that directory is
  4379.     # removed, or if the value is a relative name.
  4380.     INSTALL=$ac_install_sh
  4381.   fi
  4382. fi
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4384. $as_echo "$INSTALL" >&6; }
  4385.  
  4386. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4387. # It thinks the first close brace ends the variable substitution.
  4388. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4389.  
  4390. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4391.  
  4392. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4393.  
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  4395. $as_echo_n "checking whether build environment is sane... " >&6; }
  4396. # Reject unsafe characters in $srcdir or the absolute working directory
  4397. # name.  Accept space and tab only in the latter.
  4398. am_lf='
  4399. '
  4400. case `pwd` in
  4401.   *[\\\"\#\$\&\'\`$am_lf]*)
  4402.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  4403. esac
  4404. case $srcdir in
  4405.   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
  4406.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  4407. esac
  4408.  
  4409. # Do 'set' in a subshell so we don't clobber the current shell's
  4410. # arguments.  Must try -L first in case configure is actually a
  4411. # symlink; some systems play weird games with the mod time of symlinks
  4412. # (eg FreeBSD returns the mod time of the symlink's containing
  4413. # directory).
  4414. if (
  4415.    am_has_slept=no
  4416.    for am_try in 1 2; do
  4417.      echo "timestamp, slept: $am_has_slept" > conftest.file
  4418.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  4419.      if test "$*" = "X"; then
  4420.         # -L didn't work.
  4421.         set X `ls -t "$srcdir/configure" conftest.file`
  4422.      fi
  4423.      if test "$*" != "X $srcdir/configure conftest.file" \
  4424.         && test "$*" != "X conftest.file $srcdir/configure"; then
  4425.  
  4426.         # If neither matched, then we have a broken ls.  This can happen
  4427.         # if, for instance, CONFIG_SHELL is bash and it inherits a
  4428.         # broken ls alias from the environment.  This has actually
  4429.         # happened.  Such a system could not be considered "sane".
  4430.         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  4431.  alias in your environment" "$LINENO" 5
  4432.      fi
  4433.      if test "$2" = conftest.file || test $am_try -eq 2; then
  4434.        break
  4435.      fi
  4436.      # Just in case.
  4437.      sleep 1
  4438.      am_has_slept=yes
  4439.    done
  4440.    test "$2" = conftest.file
  4441.    )
  4442. then
  4443.    # Ok.
  4444.    :
  4445. else
  4446.    as_fn_error $? "newly created file is older than distributed files!
  4447. Check your system clock" "$LINENO" 5
  4448. fi
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4450. $as_echo "yes" >&6; }
  4451. # If we didn't sleep, we still need to ensure time stamps of config.status and
  4452. # generated files are strictly newer.
  4453. am_sleep_pid=
  4454. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  4455.   ( sleep 1 ) &
  4456.   am_sleep_pid=$!
  4457. fi
  4458.  
  4459. rm -f conftest.file
  4460.  
  4461. test "$program_prefix" != NONE &&
  4462.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4463. # Use a double $ so make ignores it.
  4464. test "$program_suffix" != NONE &&
  4465.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4466. # Double any \ or $.
  4467. # By default was `s,x,x', remove it if useless.
  4468. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4469. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4470.  
  4471. # Expand $ac_aux_dir to an absolute path.
  4472. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  4473.  
  4474. if test x"${MISSING+set}" != xset; then
  4475.   case $am_aux_dir in
  4476.   *\ * | *\     *)
  4477.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  4478.   *)
  4479.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  4480.   esac
  4481. fi
  4482. # Use eval to expand $SHELL
  4483. if eval "$MISSING --is-lightweight"; then
  4484.   am_missing_run="$MISSING "
  4485. else
  4486.   am_missing_run=
  4487.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  4488. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  4489. fi
  4490.  
  4491. if test x"${install_sh+set}" != xset; then
  4492.   case $am_aux_dir in
  4493.   *\ * | *\     *)
  4494.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4495.   *)
  4496.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  4497.   esac
  4498. fi
  4499.  
  4500. # Installed binaries are usually stripped using 'strip' when the user
  4501. # run "make install-strip".  However 'strip' might not be the right
  4502. # tool to use in cross-compilation environments, therefore Automake
  4503. # will honor the 'STRIP' environment variable to overrule this program.
  4504. if test "$cross_compiling" != no; then
  4505.   if test -n "$ac_tool_prefix"; then
  4506.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4507. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4509. $as_echo_n "checking for $ac_word... " >&6; }
  4510. if ${ac_cv_prog_STRIP+:} false; then :
  4511.   $as_echo_n "(cached) " >&6
  4512. else
  4513.   if test -n "$STRIP"; then
  4514.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4515. else
  4516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4517. for as_dir in $PATH
  4518. do
  4519.   IFS=$as_save_IFS
  4520.   test -z "$as_dir" && as_dir=.
  4521.     for ac_exec_ext in '' $ac_executable_extensions; do
  4522.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4523.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4524.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4525.     break 2
  4526.   fi
  4527. done
  4528.   done
  4529. IFS=$as_save_IFS
  4530.  
  4531. fi
  4532. fi
  4533. STRIP=$ac_cv_prog_STRIP
  4534. if test -n "$STRIP"; then
  4535.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4536. $as_echo "$STRIP" >&6; }
  4537. else
  4538.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4539. $as_echo "no" >&6; }
  4540. fi
  4541.  
  4542.  
  4543. fi
  4544. if test -z "$ac_cv_prog_STRIP"; then
  4545.   ac_ct_STRIP=$STRIP
  4546.   # Extract the first word of "strip", so it can be a program name with args.
  4547. set dummy strip; ac_word=$2
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4549. $as_echo_n "checking for $ac_word... " >&6; }
  4550. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4551.   $as_echo_n "(cached) " >&6
  4552. else
  4553.   if test -n "$ac_ct_STRIP"; then
  4554.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4555. else
  4556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4557. for as_dir in $PATH
  4558. do
  4559.   IFS=$as_save_IFS
  4560.   test -z "$as_dir" && as_dir=.
  4561.     for ac_exec_ext in '' $ac_executable_extensions; do
  4562.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4563.     ac_cv_prog_ac_ct_STRIP="strip"
  4564.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4565.     break 2
  4566.   fi
  4567. done
  4568.   done
  4569. IFS=$as_save_IFS
  4570.  
  4571. fi
  4572. fi
  4573. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4574. if test -n "$ac_ct_STRIP"; then
  4575.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4576. $as_echo "$ac_ct_STRIP" >&6; }
  4577. else
  4578.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4579. $as_echo "no" >&6; }
  4580. fi
  4581.  
  4582.   if test "x$ac_ct_STRIP" = x; then
  4583.     STRIP=":"
  4584.   else
  4585.     case $cross_compiling:$ac_tool_warned in
  4586. yes:)
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4588. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4589. ac_tool_warned=yes ;;
  4590. esac
  4591.     STRIP=$ac_ct_STRIP
  4592.   fi
  4593. else
  4594.   STRIP="$ac_cv_prog_STRIP"
  4595. fi
  4596.  
  4597. fi
  4598. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4599.  
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  4601. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4602. if test -z "$MKDIR_P"; then
  4603.   if ${ac_cv_path_mkdir+:} false; then :
  4604.   $as_echo_n "(cached) " >&6
  4605. else
  4606.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4607. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4608. do
  4609.   IFS=$as_save_IFS
  4610.   test -z "$as_dir" && as_dir=.
  4611.     for ac_prog in mkdir gmkdir; do
  4612.          for ac_exec_ext in '' $ac_executable_extensions; do
  4613.            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  4614.            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4615.              'mkdir (GNU coreutils) '* | \
  4616.              'mkdir (coreutils) '* | \
  4617.              'mkdir (fileutils) '4.1*)
  4618.                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4619.                break 3;;
  4620.            esac
  4621.          done
  4622.        done
  4623.   done
  4624. IFS=$as_save_IFS
  4625.  
  4626. fi
  4627.  
  4628.   test -d ./--version && rmdir ./--version
  4629.   if test "${ac_cv_path_mkdir+set}" = set; then
  4630.     MKDIR_P="$ac_cv_path_mkdir -p"
  4631.   else
  4632.     # As a last resort, use the slow shell script.  Don't cache a
  4633.     # value for MKDIR_P within a source directory, because that will
  4634.     # break other packages using the cache if that directory is
  4635.     # removed, or if the value is a relative name.
  4636.     MKDIR_P="$ac_install_sh -d"
  4637.   fi
  4638. fi
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  4640. $as_echo "$MKDIR_P" >&6; }
  4641.  
  4642. for ac_prog in gawk mawk nawk awk
  4643. do
  4644.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4645. set dummy $ac_prog; ac_word=$2
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4647. $as_echo_n "checking for $ac_word... " >&6; }
  4648. if ${ac_cv_prog_AWK+:} false; then :
  4649.   $as_echo_n "(cached) " >&6
  4650. else
  4651.   if test -n "$AWK"; then
  4652.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4653. else
  4654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4655. for as_dir in $PATH
  4656. do
  4657.   IFS=$as_save_IFS
  4658.   test -z "$as_dir" && as_dir=.
  4659.     for ac_exec_ext in '' $ac_executable_extensions; do
  4660.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4661.     ac_cv_prog_AWK="$ac_prog"
  4662.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4663.     break 2
  4664.   fi
  4665. done
  4666.   done
  4667. IFS=$as_save_IFS
  4668.  
  4669. fi
  4670. fi
  4671. AWK=$ac_cv_prog_AWK
  4672. if test -n "$AWK"; then
  4673.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4674. $as_echo "$AWK" >&6; }
  4675. else
  4676.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4677. $as_echo "no" >&6; }
  4678. fi
  4679.  
  4680.  
  4681.   test -n "$AWK" && break
  4682. done
  4683.  
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4685. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4686. set x ${MAKE-make}
  4687. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4688. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4689.   $as_echo_n "(cached) " >&6
  4690. else
  4691.   cat >conftest.make <<\_ACEOF
  4692. SHELL = /bin/sh
  4693. all:
  4694.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  4695. _ACEOF
  4696. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4697. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4698.   *@@@%%%=?*=@@@%%%*)
  4699.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  4700.   *)
  4701.     eval ac_cv_prog_make_${ac_make}_set=no;;
  4702. esac
  4703. rm -f conftest.make
  4704. fi
  4705. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4706.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4707. $as_echo "yes" >&6; }
  4708.   SET_MAKE=
  4709. else
  4710.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712.   SET_MAKE="MAKE=${MAKE-make}"
  4713. fi
  4714.  
  4715. rm -rf .tst 2>/dev/null
  4716. mkdir .tst 2>/dev/null
  4717. if test -d .tst; then
  4718.   am__leading_dot=.
  4719. else
  4720.   am__leading_dot=_
  4721. fi
  4722. rmdir .tst 2>/dev/null
  4723.  
  4724. # Check whether --enable-silent-rules was given.
  4725. if test "${enable_silent_rules+set}" = set; then :
  4726.   enableval=$enable_silent_rules;
  4727. fi
  4728.  
  4729. case $enable_silent_rules in # (((
  4730.   yes) AM_DEFAULT_VERBOSITY=0;;
  4731.    no) AM_DEFAULT_VERBOSITY=1;;
  4732.     *) AM_DEFAULT_VERBOSITY=1;;
  4733. esac
  4734. am_make=${MAKE-make}
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4736. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4737. if ${am_cv_make_support_nested_variables+:} false; then :
  4738.   $as_echo_n "(cached) " >&6
  4739. else
  4740.   if $as_echo 'TRUE=$(BAR$(V))
  4741. BAR0=false
  4742. BAR1=true
  4743. V=1
  4744. am__doit:
  4745.         @$(TRUE)
  4746. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4747.   am_cv_make_support_nested_variables=yes
  4748. else
  4749.   am_cv_make_support_nested_variables=no
  4750. fi
  4751. fi
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4753. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4754. if test $am_cv_make_support_nested_variables = yes; then
  4755.     AM_V='$(V)'
  4756.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4757. else
  4758.   AM_V=$AM_DEFAULT_VERBOSITY
  4759.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4760. fi
  4761. AM_BACKSLASH='\'
  4762.  
  4763. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4764.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4765.   # is not polluted with repeated "-I."
  4766.   am__isrc=' -I$(srcdir)'
  4767.   # test to see if srcdir already configured
  4768.   if test -f $srcdir/config.status; then
  4769.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4770.   fi
  4771. fi
  4772.  
  4773. # test whether we have cygpath
  4774. if test -z "$CYGPATH_W"; then
  4775.   if (cygpath --version) >/dev/null 2>/dev/null; then
  4776.     CYGPATH_W='cygpath -w'
  4777.   else
  4778.     CYGPATH_W=echo
  4779.   fi
  4780. fi
  4781.  
  4782.  
  4783. # Define the identity of the package.
  4784.  PACKAGE='gnutls'
  4785.  VERSION='3.6.2'
  4786.  
  4787.  
  4788. cat >>confdefs.h <<_ACEOF
  4789. #define PACKAGE "$PACKAGE"
  4790. _ACEOF
  4791.  
  4792.  
  4793. cat >>confdefs.h <<_ACEOF
  4794. #define VERSION "$VERSION"
  4795. _ACEOF
  4796.  
  4797. # Some tools Automake needs.
  4798.  
  4799. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4800.  
  4801.  
  4802. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4803.  
  4804.  
  4805. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4806.  
  4807.  
  4808. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4809.  
  4810.  
  4811. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4812.  
  4813. # For better backward compatibility.  To be removed once Automake 1.9.x
  4814. # dies out for good.  For more background, see:
  4815. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4816. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4817. mkdir_p='$(MKDIR_P)'
  4818.  
  4819. # We need awk for the "check" target (and possibly the TAP driver).  The
  4820. # system "awk" is bad on some platforms.
  4821. # Always define AMTAR for backward compatibility.  Yes, it's still used
  4822. # in the wild :-(  We should find a proper way to deprecate it ...
  4823. AMTAR='$${TAR-tar}'
  4824.  
  4825.  
  4826. # We'll loop over all known methods to create a tar archive until one works.
  4827. _am_tools='gnutar  pax cpio none'
  4828.  
  4829. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4830.  
  4831.  
  4832.  
  4833.  
  4834.  
  4835.  
  4836. # POSIX will say in a future version that running "rm -f" with no argument
  4837. # is OK; and we want to be able to make that assumption in our Makefile
  4838. # recipes.  So use an aggressive probe to check that the usage we want is
  4839. # actually supported "in the wild" to an acceptable degree.
  4840. # See automake bug#10828.
  4841. # To make any issue more visible, cause the running configure to be aborted
  4842. # by default if the 'rm' program in use doesn't match our expectations; the
  4843. # user can still override this though.
  4844. if rm -f && rm -fr && rm -rf; then : OK; else
  4845.  cat >&2 <<'END'
  4846. Oops!
  4847.  
  4848. Your 'rm' program seems unable to run without file operands specified
  4849. on the command line, even when the '-f' option is present.  This is contrary
  4850. to the behaviour of most rm programs out there, and not conforming with
  4851. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4852.  
  4853. Please tell bug-automake@gnu.org about your system, including the value
  4854. of your $PATH and any error possibly output before this message.  This
  4855. can help us improve future automake versions.
  4856.  
  4857. END
  4858.  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4859.    echo 'Configuration will proceed anyway, since you have set the' >&2
  4860.    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4861.    echo >&2
  4862.  else
  4863.    cat >&2 <<'END'
  4864. Aborting the configuration process, to ensure you take notice of the issue.
  4865.  
  4866. You can download and install GNU coreutils to get an 'rm' implementation
  4867. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  4868.  
  4869. If you want to complete the configuration process using your problematic
  4870. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4871. to "yes", and re-run configure.
  4872.  
  4873. END
  4874.    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4875.  fi
  4876. fi
  4877.  
  4878. # Check whether --enable-silent-rules was given.
  4879. if test "${enable_silent_rules+set}" = set; then :
  4880.  enableval=$enable_silent_rules;
  4881. fi
  4882.  
  4883. case $enable_silent_rules in # (((
  4884.  yes) AM_DEFAULT_VERBOSITY=0;;
  4885.   no) AM_DEFAULT_VERBOSITY=1;;
  4886.    *) AM_DEFAULT_VERBOSITY=0;;
  4887. esac
  4888. am_make=${MAKE-make}
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4890. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4891. if ${am_cv_make_support_nested_variables+:} false; then :
  4892.  $as_echo_n "(cached) " >&6
  4893. else
  4894.  if $as_echo 'TRUE=$(BAR$(V))
  4895. BAR0=false
  4896. BAR1=true
  4897. V=1
  4898. am__doit:
  4899.         @$(TRUE)
  4900. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4901.  am_cv_make_support_nested_variables=yes
  4902. else
  4903.  am_cv_make_support_nested_variables=no
  4904. fi
  4905. fi
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4907. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4908. if test $am_cv_make_support_nested_variables = yes; then
  4909.    AM_V='$(V)'
  4910.  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4911. else
  4912.  AM_V=$AM_DEFAULT_VERBOSITY
  4913.  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4914. fi
  4915. AM_BACKSLASH='\'
  4916.  
  4917. ac_config_headers="$ac_config_headers config.h"
  4918.  
  4919.  
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
  4921. *** Checking for compilation programs...
  4922. " >&5
  4923. $as_echo "***
  4924. *** Checking for compilation programs...
  4925. " >&6; }
  4926.  
  4927.  
  4928.  
  4929. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4930.         if test -n "$ac_tool_prefix"; then
  4931.  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4932. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4934. $as_echo_n "checking for $ac_word... " >&6; }
  4935. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  4936.  $as_echo_n "(cached) " >&6
  4937. else
  4938.  case $PKG_CONFIG in
  4939.  [\\/]* | ?:[\\/]*)
  4940.  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4941.  ;;
  4942.  *)
  4943.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4944. for as_dir in $PATH
  4945. do
  4946.  IFS=$as_save_IFS
  4947.  test -z "$as_dir" && as_dir=.
  4948.    for ac_exec_ext in '' $ac_executable_extensions; do
  4949.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4950.    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4951.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4952.    break 2
  4953.  fi
  4954. done
  4955.  done
  4956. IFS=$as_save_IFS
  4957.  
  4958.  ;;
  4959. esac
  4960. fi
  4961. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4962. if test -n "$PKG_CONFIG"; then
  4963.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  4964. $as_echo "$PKG_CONFIG" >&6; }
  4965. else
  4966.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4967. $as_echo "no" >&6; }
  4968. fi
  4969.  
  4970.  
  4971. fi
  4972. if test -z "$ac_cv_path_PKG_CONFIG"; then
  4973.  ac_pt_PKG_CONFIG=$PKG_CONFIG
  4974.  # Extract the first word of "pkg-config", so it can be a program name with args.
  4975. set dummy pkg-config; ac_word=$2
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4977. $as_echo_n "checking for $ac_word... " >&6; }
  4978. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  4979.  $as_echo_n "(cached) " >&6
  4980. else
  4981.  case $ac_pt_PKG_CONFIG in
  4982.  [\\/]* | ?:[\\/]*)
  4983.  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4984.  ;;
  4985.  *)
  4986.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4987. for as_dir in $PATH
  4988. do
  4989.  IFS=$as_save_IFS
  4990.  test -z "$as_dir" && as_dir=.
  4991.    for ac_exec_ext in '' $ac_executable_extensions; do
  4992.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4993.    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4994.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4995.    break 2
  4996.  fi
  4997. done
  4998.  done
  4999. IFS=$as_save_IFS
  5000.  
  5001.  ;;
  5002. esac
  5003. fi
  5004. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5005. if test -n "$ac_pt_PKG_CONFIG"; then
  5006.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5007. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5008. else
  5009.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5010. $as_echo "no" >&6; }
  5011. fi
  5012.  
  5013.  if test "x$ac_pt_PKG_CONFIG" = x; then
  5014.    PKG_CONFIG=""
  5015.  else
  5016.    case $cross_compiling:$ac_tool_warned in
  5017. yes:)
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5019. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5020. ac_tool_warned=yes ;;
  5021. esac
  5022.    PKG_CONFIG=$ac_pt_PKG_CONFIG
  5023.  fi
  5024. else
  5025.  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5026. fi
  5027.  
  5028. fi
  5029. if test -n "$PKG_CONFIG"; then
  5030.         _pkg_min_version=0.9.0
  5031.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5032. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5033.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5034.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5035. $as_echo "yes" >&6; }
  5036.         else
  5037.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5038. $as_echo "no" >&6; }
  5039.                 PKG_CONFIG=""
  5040.         fi
  5041.  
  5042. fi
  5043. ac_ext=c
  5044. ac_cpp='$CPP $CPPFLAGS'
  5045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5048. if test -n "$ac_tool_prefix"; then
  5049.  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5050. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5052. $as_echo_n "checking for $ac_word... " >&6; }
  5053. if ${ac_cv_prog_CC+:} false; then :
  5054.  $as_echo_n "(cached) " >&6
  5055. else
  5056.  if test -n "$CC"; then
  5057.  ac_cv_prog_CC="$CC" # Let the user override the test.
  5058. else
  5059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5060. for as_dir in $PATH
  5061. do
  5062.  IFS=$as_save_IFS
  5063.  test -z "$as_dir" && as_dir=.
  5064.    for ac_exec_ext in '' $ac_executable_extensions; do
  5065.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5066.    ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5067.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5068.    break 2
  5069.  fi
  5070. done
  5071.  done
  5072. IFS=$as_save_IFS
  5073.  
  5074. fi
  5075. fi
  5076. CC=$ac_cv_prog_CC
  5077. if test -n "$CC"; then
  5078.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5079. $as_echo "$CC" >&6; }
  5080. else
  5081.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5082. $as_echo "no" >&6; }
  5083. fi
  5084.  
  5085.  
  5086. fi
  5087. if test -z "$ac_cv_prog_CC"; then
  5088.  ac_ct_CC=$CC
  5089.  # Extract the first word of "gcc", so it can be a program name with args.
  5090. set dummy gcc; ac_word=$2
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5092. $as_echo_n "checking for $ac_word... " >&6; }
  5093. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5094.  $as_echo_n "(cached) " >&6
  5095. else
  5096.  if test -n "$ac_ct_CC"; then
  5097.  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5098. else
  5099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5100. for as_dir in $PATH
  5101. do
  5102.  IFS=$as_save_IFS
  5103.  test -z "$as_dir" && as_dir=.
  5104.    for ac_exec_ext in '' $ac_executable_extensions; do
  5105.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5106.    ac_cv_prog_ac_ct_CC="gcc"
  5107.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5108.    break 2
  5109.  fi
  5110. done
  5111.  done
  5112. IFS=$as_save_IFS
  5113.  
  5114. fi
  5115. fi
  5116. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5117. if test -n "$ac_ct_CC"; then
  5118.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5119. $as_echo "$ac_ct_CC" >&6; }
  5120. else
  5121.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5122. $as_echo "no" >&6; }
  5123. fi
  5124.  
  5125.  if test "x$ac_ct_CC" = x; then
  5126.    CC=""
  5127.  else
  5128.    case $cross_compiling:$ac_tool_warned in
  5129. yes:)
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5131. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5132. ac_tool_warned=yes ;;
  5133. esac
  5134.    CC=$ac_ct_CC
  5135.  fi
  5136. else
  5137.  CC="$ac_cv_prog_CC"
  5138. fi
  5139.  
  5140. if test -z "$CC"; then
  5141.          if test -n "$ac_tool_prefix"; then
  5142.    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5143. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5145. $as_echo_n "checking for $ac_word... " >&6; }
  5146. if ${ac_cv_prog_CC+:} false; then :
  5147.  $as_echo_n "(cached) " >&6
  5148. else
  5149.  if test -n "$CC"; then
  5150.  ac_cv_prog_CC="$CC" # Let the user override the test.
  5151. else
  5152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5153. for as_dir in $PATH
  5154. do
  5155.  IFS=$as_save_IFS
  5156.  test -z "$as_dir" && as_dir=.
  5157.    for ac_exec_ext in '' $ac_executable_extensions; do
  5158.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5159.    ac_cv_prog_CC="${ac_tool_prefix}cc"
  5160.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5161.    break 2
  5162.  fi
  5163. done
  5164.  done
  5165. IFS=$as_save_IFS
  5166.  
  5167. fi
  5168. fi
  5169. CC=$ac_cv_prog_CC
  5170. if test -n "$CC"; then
  5171.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5172. $as_echo "$CC" >&6; }
  5173. else
  5174.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5175. $as_echo "no" >&6; }
  5176. fi
  5177.  
  5178.  
  5179.  fi
  5180. fi
  5181. if test -z "$CC"; then
  5182.  # Extract the first word of "cc", so it can be a program name with args.
  5183. set dummy cc; ac_word=$2
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5185. $as_echo_n "checking for $ac_word... " >&6; }
  5186. if ${ac_cv_prog_CC+:} false; then :
  5187.  $as_echo_n "(cached) " >&6
  5188. else
  5189.  if test -n "$CC"; then
  5190.  ac_cv_prog_CC="$CC" # Let the user override the test.
  5191. else
  5192.  ac_prog_rejected=no
  5193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5194. for as_dir in $PATH
  5195. do
  5196.  IFS=$as_save_IFS
  5197.  test -z "$as_dir" && as_dir=.
  5198.    for ac_exec_ext in '' $ac_executable_extensions; do
  5199.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5200.    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5201.       ac_prog_rejected=yes
  5202.       continue
  5203.     fi
  5204.    ac_cv_prog_CC="cc"
  5205.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5206.    break 2
  5207.  fi
  5208. done
  5209.  done
  5210. IFS=$as_save_IFS
  5211.  
  5212. if test $ac_prog_rejected = yes; then
  5213.  # We found a bogon in the path, so make sure we never use it.
  5214.  set dummy $ac_cv_prog_CC
  5215.  shift
  5216.  if test $# != 0; then
  5217.    # We chose a different compiler from the bogus one.
  5218.    # However, it has the same basename, so the bogon will be chosen
  5219.    # first if we set CC to just the basename; use the full file name.
  5220.    shift
  5221.    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5222.  fi
  5223. fi
  5224. fi
  5225. fi
  5226. CC=$ac_cv_prog_CC
  5227. if test -n "$CC"; then
  5228.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5229. $as_echo "$CC" >&6; }
  5230. else
  5231.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5232. $as_echo "no" >&6; }
  5233. fi
  5234.  
  5235.  
  5236. fi
  5237. if test -z "$CC"; then
  5238.  if test -n "$ac_tool_prefix"; then
  5239.  for ac_prog in cl.exe
  5240.  do
  5241.    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5242. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5244. $as_echo_n "checking for $ac_word... " >&6; }
  5245. if ${ac_cv_prog_CC+:} false; then :
  5246.  $as_echo_n "(cached) " >&6
  5247. else
  5248.  if test -n "$CC"; then
  5249.  ac_cv_prog_CC="$CC" # Let the user override the test.
  5250. else
  5251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5252. for as_dir in $PATH
  5253. do
  5254.  IFS=$as_save_IFS
  5255.  test -z "$as_dir" && as_dir=.
  5256.    for ac_exec_ext in '' $ac_executable_extensions; do
  5257.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5258.    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5259.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5260.    break 2
  5261.  fi
  5262. done
  5263.  done
  5264. IFS=$as_save_IFS
  5265.  
  5266. fi
  5267. fi
  5268. CC=$ac_cv_prog_CC
  5269. if test -n "$CC"; then
  5270.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5271. $as_echo "$CC" >&6; }
  5272. else
  5273.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5274. $as_echo "no" >&6; }
  5275. fi
  5276.  
  5277.  
  5278.    test -n "$CC" && break
  5279.  done
  5280. fi
  5281. if test -z "$CC"; then
  5282.  ac_ct_CC=$CC
  5283.  for ac_prog in cl.exe
  5284. do
  5285.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  5286. set dummy $ac_prog; ac_word=$2
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5288. $as_echo_n "checking for $ac_word... " >&6; }
  5289. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5290.  $as_echo_n "(cached) " >&6
  5291. else
  5292.  if test -n "$ac_ct_CC"; then
  5293.  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5294. else
  5295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5296. for as_dir in $PATH
  5297. do
  5298.  IFS=$as_save_IFS
  5299.  test -z "$as_dir" && as_dir=.
  5300.    for ac_exec_ext in '' $ac_executable_extensions; do
  5301.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5302.    ac_cv_prog_ac_ct_CC="$ac_prog"
  5303.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5304.    break 2
  5305.  fi
  5306. done
  5307.  done
  5308. IFS=$as_save_IFS
  5309.  
  5310. fi
  5311. fi
  5312. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5313. if test -n "$ac_ct_CC"; then
  5314.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5315. $as_echo "$ac_ct_CC" >&6; }
  5316. else
  5317.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5318. $as_echo "no" >&6; }
  5319. fi
  5320.  
  5321.  
  5322.  test -n "$ac_ct_CC" && break
  5323. done
  5324.  
  5325.  if test "x$ac_ct_CC" = x; then
  5326.    CC=""
  5327.  else
  5328.    case $cross_compiling:$ac_tool_warned in
  5329. yes:)
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5332. ac_tool_warned=yes ;;
  5333. esac
  5334.    CC=$ac_ct_CC
  5335.  fi
  5336. fi
  5337.  
  5338. fi
  5339.  
  5340.  
  5341. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5342. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5343. as_fn_error $? "no acceptable C compiler found in \$PATH
  5344. See \`config.log' for more details" "$LINENO" 5; }
  5345.  
  5346. # Provide some information about the compiler.
  5347. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5348. set X $ac_compile
  5349. ac_compiler=$2
  5350. for ac_option in --version -v -V -qversion; do
  5351.  { { ac_try="$ac_compiler $ac_option >&5"
  5352. case "(($ac_try" in
  5353.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5354.  *) ac_try_echo=$ac_try;;
  5355. esac
  5356. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5357. $as_echo "$ac_try_echo"; } >&5
  5358.  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5359.  ac_status=$?
  5360.  if test -s conftest.err; then
  5361.    sed '10a\
  5362. ... rest of stderr output deleted ...
  5363.          10q' conftest.err >conftest.er1
  5364.    cat conftest.er1 >&5
  5365.  fi
  5366.  rm -f conftest.er1 conftest.err
  5367.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5368.  test $ac_status = 0; }
  5369. done
  5370.  
  5371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5372. /* end confdefs.h.  */
  5373.  
  5374. int
  5375. main ()
  5376. {
  5377.  
  5378.  ;
  5379.  return 0;
  5380. }
  5381. _ACEOF
  5382. ac_clean_files_save=$ac_clean_files
  5383. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  5384. # Try to create an executable without -o first, disregard a.out.
  5385. # It will help us diagnose broken compilers, and finding out an intuition
  5386. # of exeext.
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  5388. $as_echo_n "checking whether the C compiler works... " >&6; }
  5389. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  5390.  
  5391. # The possible output files:
  5392. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  5393.  
  5394. ac_rmfiles=
  5395. for ac_file in $ac_files
  5396. do
  5397.  case $ac_file in
  5398.    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  5399.    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  5400.  esac
  5401. done
  5402. rm -f $ac_rmfiles
  5403.  
  5404. if { { ac_try="$ac_link_default"
  5405. case "(($ac_try" in
  5406.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5407.  *) ac_try_echo=$ac_try;;
  5408. esac
  5409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5410. $as_echo "$ac_try_echo"; } >&5
  5411.  (eval "$ac_link_default") 2>&5
  5412.  ac_status=$?
  5413.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5414.  test $ac_status = 0; }; then :
  5415.  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  5416. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  5417. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  5418. # so that the user can short-circuit this test for compilers unknown to
  5419. # Autoconf.
  5420. for ac_file in $ac_files ''
  5421. do
  5422.   test -f "$ac_file" || continue
  5423.   case $ac_file in
  5424.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  5425.         ;;
  5426.     [ab].out )
  5427.         # We found the default executable, but exeext='' is most
  5428.         # certainly right.
  5429.         break;;
  5430.     *.* )
  5431.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  5432.         then :; else
  5433.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5434.         fi
  5435.         # We set ac_cv_exeext here because the later test for it is not
  5436.         # safe: cross compilers may not add the suffix if given an `-o'
  5437.         # argument, so we may need to know it at that point already.
  5438.         # Even if this section looks crufty: it has the advantage of
  5439.         # actually working.
  5440.         break;;
  5441.     * )
  5442.         break;;
  5443.   esac
  5444. done
  5445. test "$ac_cv_exeext" = no && ac_cv_exeext=
  5446.  
  5447. else
  5448.   ac_file=''
  5449. fi
  5450. if test -z "$ac_file"; then :
  5451.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5452. $as_echo "no" >&6; }
  5453. $as_echo "$as_me: failed program was:" >&5
  5454. sed 's/^/| /' conftest.$ac_ext >&5
  5455.  
  5456. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5457. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5458. as_fn_error 77 "C compiler cannot create executables
  5459. See \`config.log' for more details" "$LINENO" 5; }
  5460. else
  5461.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5462. $as_echo "yes" >&6; }
  5463. fi
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  5465. $as_echo_n "checking for C compiler default output file name... " >&6; }
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  5467. $as_echo "$ac_file" >&6; }
  5468. ac_exeext=$ac_cv_exeext
  5469.  
  5470. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  5471. ac_clean_files=$ac_clean_files_save
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  5473. $as_echo_n "checking for suffix of executables... " >&6; }
  5474. if { { ac_try="$ac_link"
  5475. case "(($ac_try" in
  5476.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5477.  *) ac_try_echo=$ac_try;;
  5478. esac
  5479. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5480. $as_echo "$ac_try_echo"; } >&5
  5481.  (eval "$ac_link") 2>&5
  5482.  ac_status=$?
  5483.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5484.  test $ac_status = 0; }; then :
  5485.  # If both `conftest.exe' and `conftest' are `present' (well, observable)
  5486. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  5487. # work properly (i.e., refer to `conftest.exe'), while it won't with
  5488. # `rm'.
  5489. for ac_file in conftest.exe conftest conftest.*; do
  5490.  test -f "$ac_file" || continue
  5491.  case $ac_file in
  5492.    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  5493.    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5494.           break;;
  5495.    * ) break;;
  5496.  esac
  5497. done
  5498. else
  5499.  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5500. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5501. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  5502. See \`config.log' for more details" "$LINENO" 5; }
  5503. fi
  5504. rm -f conftest conftest$ac_cv_exeext
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  5506. $as_echo "$ac_cv_exeext" >&6; }
  5507.  
  5508. rm -f conftest.$ac_ext
  5509. EXEEXT=$ac_cv_exeext
  5510. ac_exeext=$EXEEXT
  5511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5512. /* end confdefs.h.  */
  5513. #include <stdio.h>
  5514. int
  5515. main ()
  5516. {
  5517. FILE *f = fopen ("conftest.out", "w");
  5518.  return ferror (f) || fclose (f) != 0;
  5519.  
  5520.   ;
  5521.   return 0;
  5522. }
  5523. _ACEOF
  5524. ac_clean_files="$ac_clean_files conftest.out"
  5525. # Check that the compiler produces executables we can run.  If not, either
  5526. # the compiler is broken, or we cross compile.
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  5528. $as_echo_n "checking whether we are cross compiling... " >&6; }
  5529. if test "$cross_compiling" != yes; then
  5530.   { { ac_try="$ac_link"
  5531. case "(($ac_try" in
  5532.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5533.   *) ac_try_echo=$ac_try;;
  5534. esac
  5535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5536. $as_echo "$ac_try_echo"; } >&5
  5537.   (eval "$ac_link") 2>&5
  5538.   ac_status=$?
  5539.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5540.   test $ac_status = 0; }
  5541.   if { ac_try='./conftest$ac_cv_exeext'
  5542.   { { case "(($ac_try" in
  5543.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5544.   *) ac_try_echo=$ac_try;;
  5545. esac
  5546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5547. $as_echo "$ac_try_echo"; } >&5
  5548.   (eval "$ac_try") 2>&5
  5549.   ac_status=$?
  5550.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5551.   test $ac_status = 0; }; }; then
  5552.     cross_compiling=no
  5553.   else
  5554.     if test "$cross_compiling" = maybe; then
  5555.         cross_compiling=yes
  5556.     else
  5557.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5558. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5559. as_fn_error $? "cannot run C compiled programs.
  5560. If you meant to cross compile, use \`--host'.
  5561. See \`config.log' for more details" "$LINENO" 5; }
  5562.     fi
  5563.   fi
  5564. fi
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  5566. $as_echo "$cross_compiling" >&6; }
  5567.  
  5568. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  5569. ac_clean_files=$ac_clean_files_save
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  5571. $as_echo_n "checking for suffix of object files... " >&6; }
  5572. if ${ac_cv_objext+:} false; then :
  5573.   $as_echo_n "(cached) " >&6
  5574. else
  5575.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5576. /* end confdefs.h.  */
  5577.  
  5578. int
  5579. main ()
  5580. {
  5581.  
  5582.   ;
  5583.   return 0;
  5584. }
  5585. _ACEOF
  5586. rm -f conftest.o conftest.obj
  5587. if { { ac_try="$ac_compile"
  5588. case "(($ac_try" in
  5589.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5590.   *) ac_try_echo=$ac_try;;
  5591. esac
  5592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5593. $as_echo "$ac_try_echo"; } >&5
  5594.   (eval "$ac_compile") 2>&5
  5595.   ac_status=$?
  5596.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5597.   test $ac_status = 0; }; then :
  5598.   for ac_file in conftest.o conftest.obj conftest.*; do
  5599.   test -f "$ac_file" || continue;
  5600.   case $ac_file in
  5601.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  5602.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  5603.        break;;
  5604.   esac
  5605. done
  5606. else
  5607.   $as_echo "$as_me: failed program was:" >&5
  5608. sed 's/^/| /' conftest.$ac_ext >&5
  5609.  
  5610. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5611. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5612. as_fn_error $? "cannot compute suffix of object files: cannot compile
  5613. See \`config.log' for more details" "$LINENO" 5; }
  5614. fi
  5615. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  5616. fi
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  5618. $as_echo "$ac_cv_objext" >&6; }
  5619. OBJEXT=$ac_cv_objext
  5620. ac_objext=$OBJEXT
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  5622. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5623. if ${ac_cv_c_compiler_gnu+:} false; then :
  5624.  $as_echo_n "(cached) " >&6
  5625. else
  5626.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5627. /* end confdefs.h.  */
  5628.  
  5629. int
  5630. main ()
  5631. {
  5632. #ifndef __GNUC__
  5633.       choke me
  5634. #endif
  5635.  
  5636.  ;
  5637.  return 0;
  5638. }
  5639. _ACEOF
  5640. if ac_fn_c_try_compile "$LINENO"; then :
  5641.  ac_compiler_gnu=yes
  5642. else
  5643.  ac_compiler_gnu=no
  5644. fi
  5645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5646. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5647.  
  5648. fi
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5650. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5651. if test $ac_compiler_gnu = yes; then
  5652.  GCC=yes
  5653. else
  5654.  GCC=
  5655. fi
  5656. ac_test_CFLAGS=${CFLAGS+set}
  5657. ac_save_CFLAGS=$CFLAGS
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5659. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5660. if ${ac_cv_prog_cc_g+:} false; then :
  5661.  $as_echo_n "(cached) " >&6
  5662. else
  5663.  ac_save_c_werror_flag=$ac_c_werror_flag
  5664.   ac_c_werror_flag=yes
  5665.   ac_cv_prog_cc_g=no
  5666.   CFLAGS="-g"
  5667.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5668. /* end confdefs.h.  */
  5669.  
  5670. int
  5671. main ()
  5672. {
  5673.  
  5674.  ;
  5675.  return 0;
  5676. }
  5677. _ACEOF
  5678. if ac_fn_c_try_compile "$LINENO"; then :
  5679.  ac_cv_prog_cc_g=yes
  5680. else
  5681.  CFLAGS=""
  5682.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5683. /* end confdefs.h.  */
  5684.  
  5685. int
  5686. main ()
  5687. {
  5688.  
  5689.  ;
  5690.  return 0;
  5691. }
  5692. _ACEOF
  5693. if ac_fn_c_try_compile "$LINENO"; then :
  5694.  
  5695. else
  5696.  ac_c_werror_flag=$ac_save_c_werror_flag
  5697.          CFLAGS="-g"
  5698.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5699. /* end confdefs.h.  */
  5700.  
  5701. int
  5702. main ()
  5703. {
  5704.  
  5705.  ;
  5706.  return 0;
  5707. }
  5708. _ACEOF
  5709. if ac_fn_c_try_compile "$LINENO"; then :
  5710.  ac_cv_prog_cc_g=yes
  5711. fi
  5712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5713. fi
  5714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5715. fi
  5716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5717.   ac_c_werror_flag=$ac_save_c_werror_flag
  5718. fi
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5720. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5721. if test "$ac_test_CFLAGS" = set; then
  5722.  CFLAGS=$ac_save_CFLAGS
  5723. elif test $ac_cv_prog_cc_g = yes; then
  5724.  if test "$GCC" = yes; then
  5725.    CFLAGS="-g -O2"
  5726.  else
  5727.    CFLAGS="-g"
  5728.  fi
  5729. else
  5730.  if test "$GCC" = yes; then
  5731.    CFLAGS="-O2"
  5732.  else
  5733.    CFLAGS=
  5734.  fi
  5735. fi
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5737. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5738. if ${ac_cv_prog_cc_c89+:} false; then :
  5739.  $as_echo_n "(cached) " >&6
  5740. else
  5741.  ac_cv_prog_cc_c89=no
  5742. ac_save_CC=$CC
  5743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5744. /* end confdefs.h.  */
  5745. #include <stdarg.h>
  5746. #include <stdio.h>
  5747. struct stat;
  5748. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5749. struct buf { int x; };
  5750. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5751. static char *e (p, i)
  5752.     char **p;
  5753.     int i;
  5754. {
  5755.  return p[i];
  5756. }
  5757. static char *f (char * (*g) (char **, int), char **p, ...)
  5758. {
  5759.  char *s;
  5760.  va_list v;
  5761.  va_start (v,p);
  5762.  s = g (p, va_arg (v,int));
  5763.  va_end (v);
  5764.  return s;
  5765. }
  5766.  
  5767. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5768.   function prototypes and stuff, but not '\xHH' hex character constants.
  5769.   These don't provoke an error unfortunately, instead are silently treated
  5770.   as 'x'.  The following induces an error, until -std is added to get
  5771.   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5772.   array size at least.  It's necessary to write '\x00'==0 to get something
  5773.   that's true only with -std.  */
  5774. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5775.  
  5776. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5777.   inside strings and character constants.  */
  5778. #define FOO(x) 'x'
  5779. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5780.  
  5781. int test (int i, double x);
  5782. struct s1 {int (*f) (int a);};
  5783. struct s2 {int (*f) (double a);};
  5784. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5785. int argc;
  5786. char **argv;
  5787. int
  5788. main ()
  5789. {
  5790. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5791.  ;
  5792.  return 0;
  5793. }
  5794. _ACEOF
  5795. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5796.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5797. do
  5798.  CC="$ac_save_CC $ac_arg"
  5799.  if ac_fn_c_try_compile "$LINENO"; then :
  5800.  ac_cv_prog_cc_c89=$ac_arg
  5801. fi
  5802. rm -f core conftest.err conftest.$ac_objext
  5803.  test "x$ac_cv_prog_cc_c89" != "xno" && break
  5804. done
  5805. rm -f conftest.$ac_ext
  5806. CC=$ac_save_CC
  5807.  
  5808. fi
  5809. # AC_CACHE_VAL
  5810. case "x$ac_cv_prog_cc_c89" in
  5811.  x)
  5812.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5813. $as_echo "none needed" >&6; } ;;
  5814.  xno)
  5815.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5816. $as_echo "unsupported" >&6; } ;;
  5817.  *)
  5818.    CC="$CC $ac_cv_prog_cc_c89"
  5819.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5820. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5821. esac
  5822. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5823.  
  5824. fi
  5825.  
  5826. ac_ext=c
  5827. ac_cpp='$CPP $CPPFLAGS'
  5828. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5829. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5830. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5831.  
  5832. ac_ext=c
  5833. ac_cpp='$CPP $CPPFLAGS'
  5834. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5835. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5836. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5838. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  5839. if ${am_cv_prog_cc_c_o+:} false; then :
  5840.  $as_echo_n "(cached) " >&6
  5841. else
  5842.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5843. /* end confdefs.h.  */
  5844.  
  5845. int
  5846. main ()
  5847. {
  5848.  
  5849.  ;
  5850.  return 0;
  5851. }
  5852. _ACEOF
  5853.  # Make sure it works both with $CC and with simple cc.
  5854.  # Following AC_PROG_CC_C_O, we do the test twice because some
  5855.  # compilers refuse to overwrite an existing .o file with -o,
  5856.  # though they will create one.
  5857.  am_cv_prog_cc_c_o=yes
  5858.  for am_i in 1 2; do
  5859.    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5860.   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5861.   ac_status=$?
  5862.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5863.   (exit $ac_status); } \
  5864.         && test -f conftest2.$ac_objext; then
  5865.      : OK
  5866.    else
  5867.      am_cv_prog_cc_c_o=no
  5868.      break
  5869.    fi
  5870.  done
  5871.  rm -f core conftest*
  5872.  unset am_i
  5873. fi
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5875. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  5876. if test "$am_cv_prog_cc_c_o" != yes; then
  5877.   # Losing compiler, so override with the script.
  5878.   # FIXME: It is wrong to rewrite CC.
  5879.   # But if we don't then we get into trouble of one sort or another.
  5880.   # A longer-term fix would be to have automake use am__CC in this case,
  5881.   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5882.   CC="$am_aux_dir/compile $CC"
  5883. fi
  5884. ac_ext=c
  5885. ac_cpp='$CPP $CPPFLAGS'
  5886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5889.  
  5890. DEPDIR="${am__leading_dot}deps"
  5891.  
  5892. ac_config_commands="$ac_config_commands depfiles"
  5893.  
  5894.  
  5895. am_make=${MAKE-make}
  5896. cat > confinc << 'END'
  5897. am__doit:
  5898.         @echo this is the am__doit target
  5899. .PHONY: am__doit
  5900. END
  5901. # If we don't find an include directive, just comment out the code.
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  5903. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  5904. am__include="#"
  5905. am__quote=
  5906. _am_result=none
  5907. # First try GNU make style include.
  5908. echo "include confinc" > confmf
  5909. # Ignore all kinds of additional output from 'make'.
  5910. case `$am_make -s -f confmf 2> /dev/null` in #(
  5911. *the\ am__doit\ target*)
  5912.  am__include=include
  5913.  am__quote=
  5914.  _am_result=GNU
  5915.  ;;
  5916. esac
  5917. # Now try BSD make style include.
  5918. if test "$am__include" = "#"; then
  5919.   echo '.include "confinc"' > confmf
  5920.   case `$am_make -s -f confmf 2> /dev/null` in #(
  5921.   *the\ am__doit\ target*)
  5922.     am__include=.include
  5923.     am__quote="\""
  5924.     _am_result=BSD
  5925.     ;;
  5926.   esac
  5927. fi
  5928.  
  5929.  
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  5931. $as_echo "$_am_result" >&6; }
  5932. rm -f confinc confmf
  5933.  
  5934. # Check whether --enable-dependency-tracking was given.
  5935. if test "${enable_dependency_tracking+set}" = set; then :
  5936.  enableval=$enable_dependency_tracking;
  5937. fi
  5938.  
  5939. if test "x$enable_dependency_tracking" != xno; then
  5940.  am_depcomp="$ac_aux_dir/depcomp"
  5941.  AMDEPBACKSLASH='\'
  5942.  am__nodep='_no'
  5943. fi
  5944. if test "x$enable_dependency_tracking" != xno; then
  5945.  AMDEP_TRUE=
  5946.  AMDEP_FALSE='#'
  5947. else
  5948.  AMDEP_TRUE='#'
  5949.  AMDEP_FALSE=
  5950. fi
  5951.  
  5952.  
  5953.  
  5954. depcc="$CC"   am_compiler_list=
  5955.  
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5957. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5958. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5959.  $as_echo_n "(cached) " >&6
  5960. else
  5961.  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5962.  # We make a subdir and do the tests there.  Otherwise we can end up
  5963.  # making bogus files that we don't know about and never remove.  For
  5964.  # instance it was reported that on HP-UX the gcc test will end up
  5965.  # making a dummy file named 'D' -- because '-MD' means "put the output
  5966.  # in D".
  5967.  rm -rf conftest.dir
  5968.  mkdir conftest.dir
  5969.  # Copy depcomp to subdir because otherwise we won't find it if we're
  5970.  # using a relative directory.
  5971.  cp "$am_depcomp" conftest.dir
  5972.  cd conftest.dir
  5973.  # We will build objects and dependencies in a subdirectory because
  5974.  # it helps to detect inapplicable dependency modes.  For instance
  5975.  # both Tru64's cc and ICC support -MD to output dependencies as a
  5976.  # side effect of compilation, but ICC will put the dependencies in
  5977.  # the current directory while Tru64 will put them in the object
  5978.  # directory.
  5979.  mkdir sub
  5980.  
  5981.  am_cv_CC_dependencies_compiler_type=none
  5982.  if test "$am_compiler_list" = ""; then
  5983.     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5984.  fi
  5985.  am__universal=false
  5986.  case " $depcc " in #(
  5987.     *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5988.     esac
  5989.  
  5990.  for depmode in $am_compiler_list; do
  5991.    # Setup a source with many dependencies, because some compilers
  5992.    # like to wrap large dependency lists on column 80 (with \), and
  5993.    # we should not choose a depcomp mode which is confused by this.
  5994.    #
  5995.    # We need to recreate these files for each test, as the compiler may
  5996.    # overwrite some of them when testing with obscure command lines.
  5997.    # This happens at least with the AIX C compiler.
  5998.    : > sub/conftest.c
  5999.    for i in 1 2 3 4 5 6; do
  6000.      echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6001.      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  6002.      # Solaris 10 /bin/sh.
  6003.      echo '/* dummy */' > sub/conftst$i.h
  6004.    done
  6005.    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6006.  
  6007.    # We check with '-c' and '-o' for the sake of the "dashmstdout"
  6008.    # mode.  It turns out that the SunPro C++ compiler does not properly
  6009.    # handle '-M -o', and we need to detect this.  Also, some Intel
  6010.    # versions had trouble with output in subdirs.
  6011.    am__obj=sub/conftest.${OBJEXT-o}
  6012.    am__minus_obj="-o $am__obj"
  6013.    case $depmode in
  6014.    gcc)
  6015.      # This depmode causes a compiler race in universal mode.
  6016.      test "$am__universal" = false || continue
  6017.      ;;
  6018.    nosideeffect)
  6019.      # After this tag, mechanisms are not by side-effect, so they'll
  6020.      # only be used when explicitly requested.
  6021.      if test "x$enable_dependency_tracking" = xyes; then
  6022.         continue
  6023.      else
  6024.         break
  6025.      fi
  6026.      ;;
  6027.    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  6028.      # This compiler won't grok '-c -o', but also, the minuso test has
  6029.      # not run yet.  These depmodes are late enough in the game, and
  6030.      # so weak that their functioning should not be impacted.
  6031.      am__obj=conftest.${OBJEXT-o}
  6032.      am__minus_obj=
  6033.      ;;
  6034.    none) break ;;
  6035.    esac
  6036.    if depmode=$depmode \
  6037.       source=sub/conftest.c object=$am__obj \
  6038.       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6039.       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6040.         >/dev/null 2>conftest.err &&
  6041.       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6042.       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6043.       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6044.       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6045.      # icc doesn't choke on unknown options, it will just issue warnings
  6046.      # or remarks (even with -Werror).  So we grep stderr for any message
  6047.      # that says an option was ignored or not supported.
  6048.      # When given -MP, icc 7.0 and 7.1 complain thusly:
  6049.      #   icc: Command line warning: ignoring option '-M'; no argument required
  6050.      # The diagnosis changed in icc 8.0:
  6051.      #   icc: Command line remark: option '-MP' not supported
  6052.      if (grep 'ignoring option' conftest.err ||
  6053.          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6054.        am_cv_CC_dependencies_compiler_type=$depmode
  6055.        break
  6056.      fi
  6057.    fi
  6058.  done
  6059.  
  6060.  cd ..
  6061.  rm -rf conftest.dir
  6062. else
  6063.  am_cv_CC_dependencies_compiler_type=none
  6064. fi
  6065.  
  6066. fi
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6068. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6069. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6070.  
  6071. if
  6072.  test "x$enable_dependency_tracking" != xno \
  6073.  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  6074.  am__fastdepCC_TRUE=
  6075.  am__fastdepCC_FALSE='#'
  6076. else
  6077.  am__fastdepCC_TRUE='#'
  6078.  am__fastdepCC_FALSE=
  6079. fi
  6080.  
  6081.  
  6082.  
  6083. ac_ext=c
  6084. ac_cpp='$CPP $CPPFLAGS'
  6085. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6086. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6087. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6089. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6090. # On Suns, sometimes $CPP names a directory.
  6091. if test -n "$CPP" && test -d "$CPP"; then
  6092.  CPP=
  6093. fi
  6094. if test -z "$CPP"; then
  6095.  if ${ac_cv_prog_CPP+:} false; then :
  6096.  $as_echo_n "(cached) " >&6
  6097. else
  6098.      # Double quotes because CPP needs to be expanded
  6099.    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6100.    do
  6101.      ac_preproc_ok=false
  6102. for ac_c_preproc_warn_flag in '' yes
  6103. do
  6104.  # Use a header file that comes with gcc, so configuring glibc
  6105.  # with a fresh cross-compiler works.
  6106.  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6107.  # <limits.h> exists even on freestanding compilers.
  6108.  # On the NeXT, cc -E runs the code through the compiler's parser,
  6109.  # not just through cpp. "Syntax error" is here to catch this case.
  6110.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6111. /* end confdefs.h.  */
  6112. #ifdef __STDC__
  6113. # include <limits.h>
  6114. #else
  6115. # include <assert.h>
  6116. #endif
  6117.                      Syntax error
  6118. _ACEOF
  6119. if ac_fn_c_try_cpp "$LINENO"; then :
  6120.  
  6121. else
  6122.  # Broken: fails on valid input.
  6123. continue
  6124. fi
  6125. rm -f conftest.err conftest.i conftest.$ac_ext
  6126.  
  6127.  # OK, works on sane cases.  Now check whether nonexistent headers
  6128.  # can be detected and how.
  6129.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6130. /* end confdefs.h.  */
  6131. #include <ac_nonexistent.h>
  6132. _ACEOF
  6133. if ac_fn_c_try_cpp "$LINENO"; then :
  6134.  # Broken: success on invalid input.
  6135. continue
  6136. else
  6137.  # Passes both tests.
  6138. ac_preproc_ok=:
  6139. break
  6140. fi
  6141. rm -f conftest.err conftest.i conftest.$ac_ext
  6142.  
  6143. done
  6144. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6145. rm -f conftest.i conftest.err conftest.$ac_ext
  6146. if $ac_preproc_ok; then :
  6147.  break
  6148. fi
  6149.  
  6150.    done
  6151.    ac_cv_prog_CPP=$CPP
  6152.  
  6153. fi
  6154.  CPP=$ac_cv_prog_CPP
  6155. else
  6156.  ac_cv_prog_CPP=$CPP
  6157. fi
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6159. $as_echo "$CPP" >&6; }
  6160. ac_preproc_ok=false
  6161. for ac_c_preproc_warn_flag in '' yes
  6162. do
  6163.  # Use a header file that comes with gcc, so configuring glibc
  6164.  # with a fresh cross-compiler works.
  6165.  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6166.  # <limits.h> exists even on freestanding compilers.
  6167.  # On the NeXT, cc -E runs the code through the compiler's parser,
  6168.  # not just through cpp. "Syntax error" is here to catch this case.
  6169.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6170. /* end confdefs.h.  */
  6171. #ifdef __STDC__
  6172. # include <limits.h>
  6173. #else
  6174. # include <assert.h>
  6175. #endif
  6176.                      Syntax error
  6177. _ACEOF
  6178. if ac_fn_c_try_cpp "$LINENO"; then :
  6179.  
  6180. else
  6181.  # Broken: fails on valid input.
  6182. continue
  6183. fi
  6184. rm -f conftest.err conftest.i conftest.$ac_ext
  6185.  
  6186.  # OK, works on sane cases.  Now check whether nonexistent headers
  6187.  # can be detected and how.
  6188.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6189. /* end confdefs.h.  */
  6190. #include <ac_nonexistent.h>
  6191. _ACEOF
  6192. if ac_fn_c_try_cpp "$LINENO"; then :
  6193.  # Broken: success on invalid input.
  6194. continue
  6195. else
  6196.  # Passes both tests.
  6197. ac_preproc_ok=:
  6198. break
  6199. fi
  6200. rm -f conftest.err conftest.i conftest.$ac_ext
  6201.  
  6202. done
  6203. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6204. rm -f conftest.i conftest.err conftest.$ac_ext
  6205. if $ac_preproc_ok; then :
  6206.  
  6207. else
  6208.  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6209. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6210. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6211. See \`config.log' for more details" "$LINENO" 5; }
  6212. fi
  6213.  
  6214. ac_ext=c
  6215. ac_cpp='$CPP $CPPFLAGS'
  6216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6219.  
  6220.  
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  6222. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  6223. if ${ac_cv_path_GREP+:} false; then :
  6224.   $as_echo_n "(cached) " >&6
  6225. else
  6226.   if test -z "$GREP"; then
  6227.   ac_path_GREP_found=false
  6228.   # Loop through the user's path and test for each of PROGNAME-LIST
  6229.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6230. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6231. do
  6232.   IFS=$as_save_IFS
  6233.   test -z "$as_dir" && as_dir=.
  6234.     for ac_prog in grep ggrep; do
  6235.     for ac_exec_ext in '' $ac_executable_extensions; do
  6236.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  6237.       as_fn_executable_p "$ac_path_GREP" || continue
  6238. # Check for GNU ac_path_GREP and select it if it is found.
  6239.   # Check for GNU $ac_path_GREP
  6240. case `"$ac_path_GREP" --version 2>&1` in
  6241. *GNU*)
  6242.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  6243. *)
  6244.   ac_count=0
  6245.   $as_echo_n 0123456789 >"conftest.in"
  6246.   while :
  6247.   do
  6248.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  6249.     mv "conftest.tmp" "conftest.in"
  6250.     cp "conftest.in" "conftest.nl"
  6251.     $as_echo 'GREP' >> "conftest.nl"
  6252.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6253.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6254.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  6255.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  6256.       # Best one so far, save it but keep looking for a better one
  6257.       ac_cv_path_GREP="$ac_path_GREP"
  6258.       ac_path_GREP_max=$ac_count
  6259.     fi
  6260.     # 10*(2^10) chars as input seems more than enough
  6261.     test $ac_count -gt 10 && break
  6262.   done
  6263.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6264. esac
  6265.  
  6266.       $ac_path_GREP_found && break 3
  6267.     done
  6268.   done
  6269.   done
  6270. IFS=$as_save_IFS
  6271.   if test -z "$ac_cv_path_GREP"; then
  6272.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6273.   fi
  6274. else
  6275.   ac_cv_path_GREP=$GREP
  6276. fi
  6277.  
  6278. fi
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  6280. $as_echo "$ac_cv_path_GREP" >&6; }
  6281.  GREP="$ac_cv_path_GREP"
  6282.  
  6283.  
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  6285. $as_echo_n "checking for egrep... " >&6; }
  6286. if ${ac_cv_path_EGREP+:} false; then :
  6287.   $as_echo_n "(cached) " >&6
  6288. else
  6289.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6290.    then ac_cv_path_EGREP="$GREP -E"
  6291.    else
  6292.      if test -z "$EGREP"; then
  6293.   ac_path_EGREP_found=false
  6294.   # Loop through the user's path and test for each of PROGNAME-LIST
  6295.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6296. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6297. do
  6298.   IFS=$as_save_IFS
  6299.   test -z "$as_dir" && as_dir=.
  6300.     for ac_prog in egrep; do
  6301.     for ac_exec_ext in '' $ac_executable_extensions; do
  6302.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  6303.       as_fn_executable_p "$ac_path_EGREP" || continue
  6304. # Check for GNU ac_path_EGREP and select it if it is found.
  6305.   # Check for GNU $ac_path_EGREP
  6306. case `"$ac_path_EGREP" --version 2>&1` in
  6307. *GNU*)
  6308.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6309. *)
  6310.   ac_count=0
  6311.   $as_echo_n 0123456789 >"conftest.in"
  6312.   while :
  6313.   do
  6314.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  6315.     mv "conftest.tmp" "conftest.in"
  6316.     cp "conftest.in" "conftest.nl"
  6317.     $as_echo 'EGREP' >> "conftest.nl"
  6318.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6319.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6320.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  6321.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6322.       # Best one so far, save it but keep looking for a better one
  6323.       ac_cv_path_EGREP="$ac_path_EGREP"
  6324.       ac_path_EGREP_max=$ac_count
  6325.     fi
  6326.     # 10*(2^10) chars as input seems more than enough
  6327.     test $ac_count -gt 10 && break
  6328.   done
  6329.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6330. esac
  6331.  
  6332.       $ac_path_EGREP_found && break 3
  6333.     done
  6334.   done
  6335.   done
  6336. IFS=$as_save_IFS
  6337.   if test -z "$ac_cv_path_EGREP"; then
  6338.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6339.   fi
  6340. else
  6341.   ac_cv_path_EGREP=$EGREP
  6342. fi
  6343.  
  6344.    fi
  6345. fi
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  6347. $as_echo "$ac_cv_path_EGREP" >&6; }
  6348.  EGREP="$ac_cv_path_EGREP"
  6349.  
  6350.  
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6352. $as_echo_n "checking for ANSI C header files... " >&6; }
  6353. if ${ac_cv_header_stdc+:} false; then :
  6354.   $as_echo_n "(cached) " >&6
  6355. else
  6356.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6357. /* end confdefs.h.  */
  6358. #include <stdlib.h>
  6359. #include <stdarg.h>
  6360. #include <string.h>
  6361. #include <float.h>
  6362.  
  6363. int
  6364. main ()
  6365. {
  6366.  
  6367.   ;
  6368.   return 0;
  6369. }
  6370. _ACEOF
  6371. if ac_fn_c_try_compile "$LINENO"; then :
  6372.   ac_cv_header_stdc=yes
  6373. else
  6374.   ac_cv_header_stdc=no
  6375. fi
  6376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6377.  
  6378. if test $ac_cv_header_stdc = yes; then
  6379.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6380.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6381. /* end confdefs.h.  */
  6382. #include <string.h>
  6383.  
  6384. _ACEOF
  6385. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6386.   $EGREP "memchr" >/dev/null 2>&1; then :
  6387.  
  6388. else
  6389.   ac_cv_header_stdc=no
  6390. fi
  6391. rm -f conftest*
  6392.  
  6393. fi
  6394.  
  6395. if test $ac_cv_header_stdc = yes; then
  6396.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6397.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6398. /* end confdefs.h.  */
  6399. #include <stdlib.h>
  6400.  
  6401. _ACEOF
  6402. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6403.   $EGREP "free" >/dev/null 2>&1; then :
  6404.  
  6405. else
  6406.   ac_cv_header_stdc=no
  6407. fi
  6408. rm -f conftest*
  6409.  
  6410. fi
  6411.  
  6412. if test $ac_cv_header_stdc = yes; then
  6413.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6414.   if test "$cross_compiling" = yes; then :
  6415.   :
  6416. else
  6417.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6418. /* end confdefs.h.  */
  6419. #include <ctype.h>
  6420. #include <stdlib.h>
  6421. #if ((' ' & 0x0FF) == 0x020)
  6422. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6423. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6424. #else
  6425. # define ISLOWER(c) \
  6426.                    (('a' <= (c) && (c) <= 'i') \
  6427.                      || ('j' <= (c) && (c) <= 'r') \
  6428.                      || ('s' <= (c) && (c) <= 'z'))
  6429. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6430. #endif
  6431.  
  6432. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6433. int
  6434. main ()
  6435. {
  6436.   int i;
  6437.   for (i = 0; i < 256; i++)
  6438.     if (XOR (islower (i), ISLOWER (i))
  6439.         || toupper (i) != TOUPPER (i))
  6440.       return 2;
  6441.   return 0;
  6442. }
  6443. _ACEOF
  6444. if ac_fn_c_try_run "$LINENO"; then :
  6445.  
  6446. else
  6447.   ac_cv_header_stdc=no
  6448. fi
  6449. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6450.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  6451. fi
  6452.  
  6453. fi
  6454. fi
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6456. $as_echo "$ac_cv_header_stdc" >&6; }
  6457. if test $ac_cv_header_stdc = yes; then
  6458.  
  6459. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6460.  
  6461. fi
  6462.  
  6463. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6464. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6465.                   inttypes.h stdint.h unistd.h
  6466. do :
  6467.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6468. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6469. "
  6470. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6471.   cat >>confdefs.h <<_ACEOF
  6472. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6473. _ACEOF
  6474.  
  6475. fi
  6476.  
  6477. done
  6478.  
  6479.  
  6480.  
  6481.   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  6482. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  6483.   MINIX=yes
  6484. else
  6485.   MINIX=
  6486. fi
  6487.  
  6488.  
  6489.   if test "$MINIX" = yes; then
  6490.  
  6491. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  6492.  
  6493.  
  6494. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  6495.  
  6496.  
  6497. $as_echo "#define _MINIX 1" >>confdefs.h
  6498.  
  6499.  
  6500. $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
  6501.  
  6502.   fi
  6503.  
  6504.  
  6505.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  6506. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  6507. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  6508.   $as_echo_n "(cached) " >&6
  6509. else
  6510.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6511. /* end confdefs.h.  */
  6512.  
  6513. #         define __EXTENSIONS__ 1
  6514.           $ac_includes_default
  6515. int
  6516. main ()
  6517. {
  6518.  
  6519.   ;
  6520.   return 0;
  6521. }
  6522. _ACEOF
  6523. if ac_fn_c_try_compile "$LINENO"; then :
  6524.   ac_cv_safe_to_define___extensions__=yes
  6525. else
  6526.   ac_cv_safe_to_define___extensions__=no
  6527. fi
  6528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6529. fi
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  6531. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  6532.   test $ac_cv_safe_to_define___extensions__ = yes &&
  6533.     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  6534.  
  6535.   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  6536.  
  6537.   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  6538.  
  6539.   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  6540.  
  6541.   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  6542.  
  6543.   $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  6544.  
  6545.   $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  6546.  
  6547.   $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  6548.  
  6549.   $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  6550.  
  6551.   $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  6552.  
  6553.   $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  6554.  
  6555.   $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  6556.  
  6557.   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  6558.  
  6559.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  6560. $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  6561. if ${ac_cv_should_define__xopen_source+:} false; then :
  6562.   $as_echo_n "(cached) " >&6
  6563. else
  6564.   ac_cv_should_define__xopen_source=no
  6565.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6566. /* end confdefs.h.  */
  6567.  
  6568.           #include <wchar.h>
  6569.           mbstate_t x;
  6570. int
  6571. main ()
  6572. {
  6573.  
  6574.   ;
  6575.   return 0;
  6576. }
  6577. _ACEOF
  6578. if ac_fn_c_try_compile "$LINENO"; then :
  6579.  
  6580. else
  6581.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6582. /* end confdefs.h.  */
  6583.  
  6584.              #define _XOPEN_SOURCE 500
  6585.              #include <wchar.h>
  6586.              mbstate_t x;
  6587. int
  6588. main ()
  6589. {
  6590.  
  6591.   ;
  6592.   return 0;
  6593. }
  6594. _ACEOF
  6595. if ac_fn_c_try_compile "$LINENO"; then :
  6596.   ac_cv_should_define__xopen_source=yes
  6597. fi
  6598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6599. fi
  6600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6601. fi
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  6603. $as_echo "$ac_cv_should_define__xopen_source" >&6; }
  6604.   test $ac_cv_should_define__xopen_source = yes &&
  6605.     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
  6606.  
  6607.  
  6608.  
  6609.  
  6610.  
  6611.  
  6612.  
  6613.  
  6614.  
  6615.  
  6616.  
  6617.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
  6618. $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
  6619. if ${gl_cv_c_amsterdam_compiler+:} false; then :
  6620.   $as_echo_n "(cached) " >&6
  6621. else
  6622.  
  6623.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6624. /* end confdefs.h.  */
  6625.  
  6626. #ifdef __ACK__
  6627. Amsterdam
  6628. #endif
  6629.  
  6630. _ACEOF
  6631. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6632.   $EGREP "Amsterdam" >/dev/null 2>&1; then :
  6633.   gl_cv_c_amsterdam_compiler=yes
  6634. else
  6635.   gl_cv_c_amsterdam_compiler=no
  6636. fi
  6637. rm -f conftest*
  6638.  
  6639.  
  6640. fi
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
  6642. $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
  6643.  
  6644.       if test $gl_cv_c_amsterdam_compiler = yes; then
  6645.     if test -z "$AR"; then
  6646.       AR='cc -c.a'
  6647.     fi
  6648.     if test -z "$ARFLAGS"; then
  6649.       ARFLAGS='-o'
  6650.     fi
  6651.   else
  6652.                                         if test -n "$ac_tool_prefix"; then
  6653.   for ac_prog in ar lib "link -lib"
  6654.   do
  6655.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6656. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6658. $as_echo_n "checking for $ac_word... " >&6; }
  6659. if ${ac_cv_prog_AR+:} false; then :
  6660.   $as_echo_n "(cached) " >&6
  6661. else
  6662.   if test -n "$AR"; then
  6663.   ac_cv_prog_AR="$AR" # Let the user override the test.
  6664. else
  6665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6666. for as_dir in $PATH
  6667. do
  6668.   IFS=$as_save_IFS
  6669.   test -z "$as_dir" && as_dir=.
  6670.     for ac_exec_ext in '' $ac_executable_extensions; do
  6671.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6672.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6673.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6674.     break 2
  6675.   fi
  6676. done
  6677.   done
  6678. IFS=$as_save_IFS
  6679.  
  6680. fi
  6681. fi
  6682. AR=$ac_cv_prog_AR
  6683. if test -n "$AR"; then
  6684.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6685. $as_echo "$AR" >&6; }
  6686. else
  6687.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6688. $as_echo "no" >&6; }
  6689. fi
  6690.  
  6691.  
  6692.     test -n "$AR" && break
  6693.   done
  6694. fi
  6695. if test -z "$AR"; then
  6696.   ac_ct_AR=$AR
  6697.   for ac_prog in ar lib "link -lib"
  6698. do
  6699.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6700. set dummy $ac_prog; ac_word=$2
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6702. $as_echo_n "checking for $ac_word... " >&6; }
  6703. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6704.   $as_echo_n "(cached) " >&6
  6705. else
  6706.   if test -n "$ac_ct_AR"; then
  6707.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6708. else
  6709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6710. for as_dir in $PATH
  6711. do
  6712.   IFS=$as_save_IFS
  6713.   test -z "$as_dir" && as_dir=.
  6714.     for ac_exec_ext in '' $ac_executable_extensions; do
  6715.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6716.     ac_cv_prog_ac_ct_AR="$ac_prog"
  6717.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6718.     break 2
  6719.   fi
  6720. done
  6721.   done
  6722. IFS=$as_save_IFS
  6723.  
  6724. fi
  6725. fi
  6726. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6727. if test -n "$ac_ct_AR"; then
  6728.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6729. $as_echo "$ac_ct_AR" >&6; }
  6730. else
  6731.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6732. $as_echo "no" >&6; }
  6733. fi
  6734.  
  6735.  
  6736.   test -n "$ac_ct_AR" && break
  6737. done
  6738.  
  6739.   if test "x$ac_ct_AR" = x; then
  6740.     AR="false"
  6741.   else
  6742.     case $cross_compiling:$ac_tool_warned in
  6743. yes:)
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6746. ac_tool_warned=yes ;;
  6747. esac
  6748.     AR=$ac_ct_AR
  6749.   fi
  6750. fi
  6751.  
  6752. : ${AR=ar}
  6753.  
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  6755. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  6756. if ${am_cv_ar_interface+:} false; then :
  6757.   $as_echo_n "(cached) " >&6
  6758. else
  6759.   ac_ext=c
  6760. ac_cpp='$CPP $CPPFLAGS'
  6761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6764.  
  6765.    am_cv_ar_interface=ar
  6766.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6767. /* end confdefs.h.  */
  6768. int some_variable = 0;
  6769. _ACEOF
  6770. if ac_fn_c_try_compile "$LINENO"; then :
  6771.   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  6772.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  6773.   (eval $am_ar_try) 2>&5
  6774.   ac_status=$?
  6775.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6776.   test $ac_status = 0; }
  6777.       if test "$ac_status" -eq 0; then
  6778.         am_cv_ar_interface=ar
  6779.       else
  6780.         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  6781.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  6782.   (eval $am_ar_try) 2>&5
  6783.   ac_status=$?
  6784.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6785.   test $ac_status = 0; }
  6786.         if test "$ac_status" -eq 0; then
  6787.           am_cv_ar_interface=lib
  6788.         else
  6789.           am_cv_ar_interface=unknown
  6790.         fi
  6791.       fi
  6792.       rm -f conftest.lib libconftest.a
  6793.  
  6794. fi
  6795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6796.    ac_ext=c
  6797. ac_cpp='$CPP $CPPFLAGS'
  6798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6801.  
  6802. fi
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  6804. $as_echo "$am_cv_ar_interface" >&6; }
  6805.  
  6806. case $am_cv_ar_interface in
  6807. ar)
  6808.   ;;
  6809. lib)
  6810.   # Microsoft lib, so override with the ar-lib wrapper script.
  6811.   # FIXME: It is wrong to rewrite AR.
  6812.   # But if we don't then we get into trouble of one sort or another.
  6813.   # A longer-term fix would be to have automake use am__AR in this case,
  6814.   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  6815.   # similar.
  6816.   AR="$am_aux_dir/ar-lib $AR"
  6817.   ;;
  6818. unknown)
  6819.   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  6820.   ;;
  6821. esac
  6822.  
  6823.   fi
  6824.  
  6825.         if test -n "$ac_tool_prefix"; then
  6826.   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6827. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6829. $as_echo_n "checking for $ac_word... " >&6; }
  6830. if ${ac_cv_prog_AR+:} false; then :
  6831.   $as_echo_n "(cached) " >&6
  6832. else
  6833.   if test -n "$AR"; then
  6834.   ac_cv_prog_AR="$AR" # Let the user override the test.
  6835. else
  6836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6837. for as_dir in $PATH
  6838. do
  6839.   IFS=$as_save_IFS
  6840.   test -z "$as_dir" && as_dir=.
  6841.     for ac_exec_ext in '' $ac_executable_extensions; do
  6842.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6843.     ac_cv_prog_AR="${ac_tool_prefix}ar"
  6844.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6845.     break 2
  6846.   fi
  6847. done
  6848.   done
  6849. IFS=$as_save_IFS
  6850.  
  6851. fi
  6852. fi
  6853. AR=$ac_cv_prog_AR
  6854. if test -n "$AR"; then
  6855.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6856. $as_echo "$AR" >&6; }
  6857. else
  6858.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6859. $as_echo "no" >&6; }
  6860. fi
  6861.  
  6862.  
  6863. fi
  6864. if test -z "$ac_cv_prog_AR"; then
  6865.   ac_ct_AR=$AR
  6866.   # Extract the first word of "ar", so it can be a program name with args.
  6867. set dummy ar; ac_word=$2
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6869. $as_echo_n "checking for $ac_word... " >&6; }
  6870. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6871.   $as_echo_n "(cached) " >&6
  6872. else
  6873.   if test -n "$ac_ct_AR"; then
  6874.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6875. else
  6876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6877. for as_dir in $PATH
  6878. do
  6879.   IFS=$as_save_IFS
  6880.   test -z "$as_dir" && as_dir=.
  6881.     for ac_exec_ext in '' $ac_executable_extensions; do
  6882.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6883.     ac_cv_prog_ac_ct_AR="ar"
  6884.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6885.     break 2
  6886.   fi
  6887. done
  6888.   done
  6889. IFS=$as_save_IFS
  6890.  
  6891. fi
  6892. fi
  6893. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6894. if test -n "$ac_ct_AR"; then
  6895.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6896. $as_echo "$ac_ct_AR" >&6; }
  6897. else
  6898.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6899. $as_echo "no" >&6; }
  6900. fi
  6901.  
  6902.   if test "x$ac_ct_AR" = x; then
  6903.     AR="ar"
  6904.   else
  6905.     case $cross_compiling:$ac_tool_warned in
  6906. yes:)
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6909. ac_tool_warned=yes ;;
  6910. esac
  6911.     AR=$ac_ct_AR
  6912.   fi
  6913. else
  6914.   AR="$ac_cv_prog_AR"
  6915. fi
  6916.  
  6917.   if test -z "$ARFLAGS"; then
  6918.     ARFLAGS='cr'
  6919.   fi
  6920.  
  6921.  
  6922.  
  6923.   if test -z "$RANLIB"; then
  6924.     if test $gl_cv_c_amsterdam_compiler = yes; then
  6925.       RANLIB=':'
  6926.     else
  6927.             if test -n "$ac_tool_prefix"; then
  6928.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6929. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6931. $as_echo_n "checking for $ac_word... " >&6; }
  6932. if ${ac_cv_prog_RANLIB+:} false; then :
  6933.   $as_echo_n "(cached) " >&6
  6934. else
  6935.   if test -n "$RANLIB"; then
  6936.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6937. else
  6938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6939. for as_dir in $PATH
  6940. do
  6941.   IFS=$as_save_IFS
  6942.   test -z "$as_dir" && as_dir=.
  6943.     for ac_exec_ext in '' $ac_executable_extensions; do
  6944.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6945.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6946.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6947.     break 2
  6948.   fi
  6949. done
  6950.   done
  6951. IFS=$as_save_IFS
  6952.  
  6953. fi
  6954. fi
  6955. RANLIB=$ac_cv_prog_RANLIB
  6956. if test -n "$RANLIB"; then
  6957.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6958. $as_echo "$RANLIB" >&6; }
  6959. else
  6960.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6961. $as_echo "no" >&6; }
  6962. fi
  6963.  
  6964.  
  6965. fi
  6966. if test -z "$ac_cv_prog_RANLIB"; then
  6967.   ac_ct_RANLIB=$RANLIB
  6968.   # Extract the first word of "ranlib", so it can be a program name with args.
  6969. set dummy ranlib; ac_word=$2
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6971. $as_echo_n "checking for $ac_word... " >&6; }
  6972. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6973.   $as_echo_n "(cached) " >&6
  6974. else
  6975.   if test -n "$ac_ct_RANLIB"; then
  6976.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6977. else
  6978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6979. for as_dir in $PATH
  6980. do
  6981.   IFS=$as_save_IFS
  6982.   test -z "$as_dir" && as_dir=.
  6983.     for ac_exec_ext in '' $ac_executable_extensions; do
  6984.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6985.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  6986.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6987.     break 2
  6988.   fi
  6989. done
  6990.   done
  6991. IFS=$as_save_IFS
  6992.  
  6993. fi
  6994. fi
  6995. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6996. if test -n "$ac_ct_RANLIB"; then
  6997.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6998. $as_echo "$ac_ct_RANLIB" >&6; }
  6999. else
  7000.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7001. $as_echo "no" >&6; }
  7002. fi
  7003.  
  7004.   if test "x$ac_ct_RANLIB" = x; then
  7005.     RANLIB=":"
  7006.   else
  7007.     case $cross_compiling:$ac_tool_warned in
  7008. yes:)
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7010. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7011. ac_tool_warned=yes ;;
  7012. esac
  7013.     RANLIB=$ac_ct_RANLIB
  7014.   fi
  7015. else
  7016.   RANLIB="$ac_cv_prog_RANLIB"
  7017. fi
  7018.  
  7019.     fi
  7020.   fi
  7021.  
  7022.  
  7023.  
  7024.  
  7025.  
  7026.   # IEEE behaviour is the default on all CPUs except Alpha and SH
  7027.   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
  7028.   # and the GCC 4.1.2 manual).
  7029.   case "$host_cpu" in
  7030.     alpha*)
  7031.       # On Alpha systems, a compiler option provides the behaviour.
  7032.       # See the ieee(3) manual page, also available at
  7033.       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
  7034.       if test -n "$GCC"; then
  7035.         # GCC has the option -mieee.
  7036.         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
  7037.         CPPFLAGS="$CPPFLAGS -mieee"
  7038.       else
  7039.         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
  7040.         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
  7041.         CPPFLAGS="$CPPFLAGS -ieee"
  7042.       fi
  7043.       ;;
  7044.     sh*)
  7045.       if test -n "$GCC"; then
  7046.         # GCC has the option -mieee.
  7047.         CPPFLAGS="$CPPFLAGS -mieee"
  7048.       fi
  7049.       ;;
  7050.   esac
  7051.  
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  7053. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  7054. if ${ac_cv_sys_largefile_source+:} false; then :
  7055.   $as_echo_n "(cached) " >&6
  7056. else
  7057.   while :; do
  7058.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7059. /* end confdefs.h.  */
  7060. #include <sys/types.h> /* for off_t */
  7061.      #include <stdio.h>
  7062. int
  7063. main ()
  7064. {
  7065. int (*fp) (FILE *, off_t, int) = fseeko;
  7066.      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  7067.   ;
  7068.   return 0;
  7069. }
  7070. _ACEOF
  7071. if ac_fn_c_try_link "$LINENO"; then :
  7072.   ac_cv_sys_largefile_source=no; break
  7073. fi
  7074. rm -f core conftest.err conftest.$ac_objext \
  7075.     conftest$ac_exeext conftest.$ac_ext
  7076.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7077. /* end confdefs.h.  */
  7078. #define _LARGEFILE_SOURCE 1
  7079. #include <sys/types.h> /* for off_t */
  7080.      #include <stdio.h>
  7081. int
  7082. main ()
  7083. {
  7084. int (*fp) (FILE *, off_t, int) = fseeko;
  7085.      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  7086.   ;
  7087.   return 0;
  7088. }
  7089. _ACEOF
  7090. if ac_fn_c_try_link "$LINENO"; then :
  7091.   ac_cv_sys_largefile_source=1; break
  7092. fi
  7093. rm -f core conftest.err conftest.$ac_objext \
  7094.     conftest$ac_exeext conftest.$ac_ext
  7095.   ac_cv_sys_largefile_source=unknown
  7096.   break
  7097. done
  7098. fi
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  7100. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  7101. case $ac_cv_sys_largefile_source in #(
  7102.   no | unknown) ;;
  7103.   *)
  7104. cat >>confdefs.h <<_ACEOF
  7105. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  7106. _ACEOF
  7107. ;;
  7108. esac
  7109. rm -rf conftest*
  7110.  
  7111. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  7112. # in glibc 2.1.3, but that breaks too many other things.
  7113. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  7114. if test $ac_cv_sys_largefile_source != unknown; then
  7115.  
  7116. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  7117.  
  7118. fi
  7119.  
  7120. # Check whether --enable-largefile was given.
  7121. if test "${enable_largefile+set}" = set; then :
  7122.   enableval=$enable_largefile;
  7123. fi
  7124.  
  7125. if test "$enable_largefile" != no; then
  7126.  
  7127.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7128. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7129. if ${ac_cv_sys_largefile_CC+:} false; then :
  7130.   $as_echo_n "(cached) " >&6
  7131. else
  7132.   ac_cv_sys_largefile_CC=no
  7133.      if test "$GCC" != yes; then
  7134.        ac_save_CC=$CC
  7135.        while :; do
  7136.          # IRIX 6.2 and later do not support large files by default,
  7137.          # so use the C compiler's -n32 option if that helps.
  7138.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7139. /* end confdefs.h.  */
  7140. #include <sys/types.h>
  7141.  /* Check that off_t can represent 2**63 - 1 correctly.
  7142.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7143.    since some C++ compilers masquerading as C compilers
  7144.    incorrectly reject 9223372036854775807.  */
  7145. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7146.  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7147.                       && LARGE_OFF_T % 2147483647 == 1)
  7148.                      ? 1 : -1];
  7149. int
  7150. main ()
  7151. {
  7152.  
  7153.  ;
  7154.  return 0;
  7155. }
  7156. _ACEOF
  7157.         if ac_fn_c_try_compile "$LINENO"; then :
  7158.  break
  7159. fi
  7160. rm -f core conftest.err conftest.$ac_objext
  7161.         CC="$CC -n32"
  7162.         if ac_fn_c_try_compile "$LINENO"; then :
  7163.  ac_cv_sys_largefile_CC=' -n32'; break
  7164. fi
  7165. rm -f core conftest.err conftest.$ac_objext
  7166.         break
  7167.       done
  7168.       CC=$ac_save_CC
  7169.       rm -f conftest.$ac_ext
  7170.    fi
  7171. fi
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7173. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7174.  if test "$ac_cv_sys_largefile_CC" != no; then
  7175.    CC=$CC$ac_cv_sys_largefile_CC
  7176.  fi
  7177.  
  7178.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7179. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7180. if ${ac_cv_sys_file_offset_bits+:} false; then :
  7181.  $as_echo_n "(cached) " >&6
  7182. else
  7183.  while :; do
  7184.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7185. /* end confdefs.h.  */
  7186. #include <sys/types.h>
  7187. /* Check that off_t can represent 2**63 - 1 correctly.
  7188.    We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7189.     since some C++ compilers masquerading as C compilers
  7190.     incorrectly reject 9223372036854775807.  */
  7191. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7192.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7193.                        && LARGE_OFF_T % 2147483647 == 1)
  7194.                       ? 1 : -1];
  7195. int
  7196. main ()
  7197. {
  7198.  
  7199.   ;
  7200.   return 0;
  7201. }
  7202. _ACEOF
  7203. if ac_fn_c_try_compile "$LINENO"; then :
  7204.   ac_cv_sys_file_offset_bits=no; break
  7205. fi
  7206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7207.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7208. /* end confdefs.h.  */
  7209. #define _FILE_OFFSET_BITS 64
  7210. #include <sys/types.h>
  7211.  /* Check that off_t can represent 2**63 - 1 correctly.
  7212.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7213.    since some C++ compilers masquerading as C compilers
  7214.    incorrectly reject 9223372036854775807.  */
  7215. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7216.  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7217.                       && LARGE_OFF_T % 2147483647 == 1)
  7218.                      ? 1 : -1];
  7219. int
  7220. main ()
  7221. {
  7222.  
  7223.  ;
  7224.  return 0;
  7225. }
  7226. _ACEOF
  7227. if ac_fn_c_try_compile "$LINENO"; then :
  7228.  ac_cv_sys_file_offset_bits=64; break
  7229. fi
  7230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7231.  ac_cv_sys_file_offset_bits=unknown
  7232.  break
  7233. done
  7234. fi
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7236. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7237. case $ac_cv_sys_file_offset_bits in #(
  7238.  no | unknown) ;;
  7239.  *)
  7240. cat >>confdefs.h <<_ACEOF
  7241. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7242. _ACEOF
  7243. ;;
  7244. esac
  7245. rm -rf conftest*
  7246.  if test $ac_cv_sys_file_offset_bits = unknown; then
  7247.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7248. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7249. if ${ac_cv_sys_large_files+:} false; then :
  7250.  $as_echo_n "(cached) " >&6
  7251. else
  7252.  while :; do
  7253.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7254. /* end confdefs.h.  */
  7255. #include <sys/types.h>
  7256. /* Check that off_t can represent 2**63 - 1 correctly.
  7257.    We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7258.     since some C++ compilers masquerading as C compilers
  7259.     incorrectly reject 9223372036854775807.  */
  7260. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7261.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7262.                        && LARGE_OFF_T % 2147483647 == 1)
  7263.                       ? 1 : -1];
  7264. int
  7265. main ()
  7266. {
  7267.  
  7268.   ;
  7269.   return 0;
  7270. }
  7271. _ACEOF
  7272. if ac_fn_c_try_compile "$LINENO"; then :
  7273.   ac_cv_sys_large_files=no; break
  7274. fi
  7275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7276.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7277. /* end confdefs.h.  */
  7278. #define _LARGE_FILES 1
  7279. #include <sys/types.h>
  7280.  /* Check that off_t can represent 2**63 - 1 correctly.
  7281.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7282.    since some C++ compilers masquerading as C compilers
  7283.    incorrectly reject 9223372036854775807.  */
  7284. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7285.  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7286.                       && LARGE_OFF_T % 2147483647 == 1)
  7287.                      ? 1 : -1];
  7288. int
  7289. main ()
  7290. {
  7291.  
  7292.  ;
  7293.  return 0;
  7294. }
  7295. _ACEOF
  7296. if ac_fn_c_try_compile "$LINENO"; then :
  7297.  ac_cv_sys_large_files=1; break
  7298. fi
  7299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7300.  ac_cv_sys_large_files=unknown
  7301.  break
  7302. done
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7305. $as_echo "$ac_cv_sys_large_files" >&6; }
  7306. case $ac_cv_sys_large_files in #(
  7307.  no | unknown) ;;
  7308.  *)
  7309. cat >>confdefs.h <<_ACEOF
  7310. #define _LARGE_FILES $ac_cv_sys_large_files
  7311. _ACEOF
  7312. ;;
  7313. esac
  7314. rm -rf conftest*
  7315.  fi
  7316.  
  7317.  
  7318. $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
  7319.  
  7320. fi
  7321.  
  7322.  
  7323.  
  7324.  # Pre-early section.
  7325.  
  7326.  
  7327.  
  7328.  # Code from module absolute-header:
  7329.  # Code from module alloca:
  7330.  # Code from module alloca-opt:
  7331.  # Code from module alloca-opt-tests:
  7332.  # Code from module binary-io:
  7333.  # Code from module binary-io-tests:
  7334.  # Code from module byteswap:
  7335.  # Code from module byteswap-tests:
  7336.  # Code from module c-ctype:
  7337.  # Code from module c-ctype-tests:
  7338.  # Code from module ctype:
  7339.  # Code from module ctype-tests:
  7340.  # Code from module errno:
  7341.  # Code from module errno-tests:
  7342.  # Code from module extensions:
  7343.  # Code from module extern-inline:
  7344.  # Code from module fcntl-h:
  7345.  # Code from module fcntl-h-tests:
  7346.  # Code from module fdopen:
  7347.  # Code from module fdopen-tests:
  7348.  # Code from module fgetc-tests:
  7349.  # Code from module float:
  7350.  # Code from module float-tests:
  7351.  # Code from module fpieee:
  7352.  
  7353.  # Code from module fpucw:
  7354.  # Code from module fputc-tests:
  7355.  # Code from module fread-tests:
  7356.  # Code from module fstat:
  7357.  # Code from module fstat-tests:
  7358.  # Code from module ftell:
  7359.  # Code from module ftell-tests:
  7360.  # Code from module ftello:
  7361.  
  7362.  # Code from module ftello-tests:
  7363.  # Code from module func:
  7364.  # Code from module func-tests:
  7365.  # Code from module fwrite-tests:
  7366.  # Code from module gendocs:
  7367.  # Code from module getdelim:
  7368.  # Code from module getdelim-tests:
  7369.  # Code from module getline:
  7370.  # Code from module getline-tests:
  7371.  # Code from module getpagesize:
  7372.  # Code from module gettext-h:
  7373.  # Code from module gettimeofday:
  7374.  # Code from module gettimeofday-tests:
  7375.  # Code from module gnumakefile:
  7376.  # Code from module hash-pjw-bare:
  7377.  # Code from module havelib:
  7378.  # Code from module include_next:
  7379.  # Code from module intprops:
  7380.  # Code from module intprops-tests:
  7381.  # Code from module inttypes:
  7382.  # Code from module inttypes-incomplete:
  7383.  # Code from module inttypes-tests:
  7384.  # Code from module largefile:
  7385.  
  7386.  # Code from module lib-msvc-compat:
  7387.  # Code from module lib-symbol-versions:
  7388.  # Code from module limits-h:
  7389.  # Code from module limits-h-tests:
  7390.  # Code from module lseek:
  7391.  # Code from module maintainer-makefile:
  7392.  # Code from module malloc-posix:
  7393.  # Code from module manywarnings:
  7394.  # Code from module memchr:
  7395.  # Code from module memchr-tests:
  7396.  # Code from module memmem-simple:
  7397.  # Code from module minmax:
  7398.  # Code from module msvc-inval:
  7399.  # Code from module msvc-nothrow:
  7400.  # Code from module multiarch:
  7401.  # Code from module netdb:
  7402.  # Code from module netdb-tests:
  7403.  # Code from module netinet_in:
  7404.  # Code from module netinet_in-tests:
  7405.  # Code from module pmccabe2html:
  7406.  # Code from module read-file:
  7407.  # Code from module read-file-tests:
  7408.  # Code from module realloc-posix:
  7409.  # Code from module secure_getenv:
  7410.  # Code from module size_max:
  7411.  # Code from module snippet/_Noreturn:
  7412.  # Code from module snippet/arg-nonnull:
  7413.  # Code from module snippet/c++defs:
  7414.  # Code from module snippet/warn-on-use:
  7415.  # Code from module snprintf:
  7416.  # Code from module snprintf-tests:
  7417.  # Code from module socklen:
  7418.  # Code from module ssize_t:
  7419.  # Code from module stdalign:
  7420.  # Code from module stdalign-tests:
  7421.  # Code from module stdbool:
  7422.  # Code from module stdbool-tests:
  7423.  # Code from module stddef:
  7424.  # Code from module stddef-tests:
  7425.  # Code from module stdint:
  7426.  # Code from module stdint-tests:
  7427.  # Code from module stdio:
  7428.  # Code from module stdio-tests:
  7429.  # Code from module stdlib:
  7430.  # Code from module stdlib-tests:
  7431.  # Code from module strcase:
  7432.  # Code from module string:
  7433.  # Code from module string-tests:
  7434.  # Code from module strings:
  7435.  # Code from module strings-tests:
  7436.  # Code from module strndup:
  7437.  # Code from module strnlen:
  7438.  # Code from module strnlen-tests:
  7439.  # Code from module strtok_r:
  7440.  # Code from module strverscmp:
  7441.  # Code from module strverscmp-tests:
  7442.  # Code from module sys_socket:
  7443.  # Code from module sys_socket-tests:
  7444.  # Code from module sys_stat:
  7445.  # Code from module sys_stat-tests:
  7446.  # Code from module sys_time:
  7447.  # Code from module sys_time-tests:
  7448.  # Code from module sys_types:
  7449.  # Code from module sys_types-tests:
  7450.  # Code from module sys_uio:
  7451.  # Code from module sys_uio-tests:
  7452.  # Code from module test-framework-sh:
  7453.  # Code from module test-framework-sh-tests:
  7454.  # Code from module time:
  7455.  # Code from module time-tests:
  7456.  # Code from module time_r:
  7457.  # Code from module unistd:
  7458.  # Code from module unistd-tests:
  7459.  # Code from module useless-if-before-free:
  7460.  # Code from module valgrind-tests:
  7461.  # Code from module vasnprintf:
  7462.  # Code from module vasnprintf-tests:
  7463.  # Code from module vasprintf:
  7464.  # Code from module vasprintf-tests:
  7465.  # Code from module vc-list-files:
  7466.  # Code from module vc-list-files-tests:
  7467.  # Code from module verify:
  7468.  # Code from module verify-tests:
  7469.  # Code from module vsnprintf:
  7470.  # Code from module vsnprintf-tests:
  7471.  # Code from module warnings:
  7472.  # Code from module wchar:
  7473.  # Code from module wchar-tests:
  7474.  # Code from module xsize:
  7475.  
  7476.  
  7477.  
  7478.  # Pre-early section.
  7479.  
  7480.  
  7481.  
  7482.  # Code from module absolute-header:
  7483.  # Code from module accept:
  7484.  # Code from module alloca:
  7485.  # Code from module alloca-opt:
  7486.  # Code from module arpa_inet:
  7487.  # Code from module bind:
  7488.  # Code from module c-ctype:
  7489.  # Code from module clock-time:
  7490.  # Code from module close:
  7491.  # Code from module connect:
  7492.  # Code from module dirname-lgpl:
  7493.  # Code from module dosname:
  7494.  # Code from module double-slash-root:
  7495.  # Code from module dup2:
  7496.  # Code from module environ:
  7497.  # Code from module errno:
  7498.  # Code from module error:
  7499.  # Code from module exitfail:
  7500.  # Code from module extensions:
  7501.  # Code from module extern-inline:
  7502.  # Code from module fd-hook:
  7503.  # Code from module flexmember:
  7504.  # Code from module float:
  7505.  # Code from module fseek:
  7506.  # Code from module fseeko:
  7507.  
  7508.  # Code from module fstat:
  7509.  # Code from module ftell:
  7510.  # Code from module ftello:
  7511.  
  7512.  # Code from module getaddrinfo:
  7513.  # Code from module getdelim:
  7514.  # Code from module getline:
  7515.  # Code from module getpass:
  7516.  # Code from module getpeername:
  7517.  # Code from module getprogname:
  7518.  # Code from module gettext-h:
  7519.  # Code from module gettime:
  7520.  # Code from module gettimeofday:
  7521.  # Code from module hostent:
  7522.  # Code from module include_next:
  7523.  # Code from module inet_ntop:
  7524.  # Code from module inet_pton:
  7525.  # Code from module intprops:
  7526.  # Code from module largefile:
  7527.  
  7528.  # Code from module limits-h:
  7529.  # Code from module listen:
  7530.  # Code from module lseek:
  7531.  # Code from module malloc-posix:
  7532.  # Code from module malloca:
  7533.  # Code from module memchr:
  7534.  # Code from module minmax:
  7535.  # Code from module mktime:
  7536.  # Code from module mktime-internal:
  7537.  # Code from module msvc-inval:
  7538.  # Code from module msvc-nothrow:
  7539.  # Code from module multiarch:
  7540.  # Code from module netdb:
  7541.  # Code from module netinet_in:
  7542.  # Code from module parse-datetime:
  7543.  # Code from module progname:
  7544.  # Code from module read-file:
  7545.  # Code from module realloc-posix:
  7546.  # Code from module recv:
  7547.  # Code from module recvfrom:
  7548.  # Code from module select:
  7549.  # Code from module send:
  7550.  # Code from module sendto:
  7551.  # Code from module servent:
  7552.  # Code from module setenv:
  7553.  # Code from module setsockopt:
  7554.  # Code from module shutdown:
  7555.  # Code from module signal-h:
  7556.  # Code from module size_max:
  7557.  # Code from module snippet/_Noreturn:
  7558.  # Code from module snippet/arg-nonnull:
  7559.  # Code from module snippet/c++defs:
  7560.  # Code from module snippet/warn-on-use:
  7561.  # Code from module snprintf:
  7562.  # Code from module socket:
  7563.  # Code from module socketlib:
  7564.  # Code from module sockets:
  7565.  # Code from module socklen:
  7566.  # Code from module ssize_t:
  7567.  # Code from module stdalign:
  7568.  # Code from module stdbool:
  7569.  # Code from module stddef:
  7570.  # Code from module stdint:
  7571.  # Code from module stdio:
  7572.  # Code from module stdlib:
  7573.  # Code from module strdup-posix:
  7574.  # Code from module strerror:
  7575.  # Code from module strerror-override:
  7576.  # Code from module strftime:
  7577.  # Code from module string:
  7578.  # Code from module sys_select:
  7579.  # Code from module sys_socket:
  7580.  # Code from module sys_stat:
  7581.  # Code from module sys_time:
  7582.  # Code from module sys_types:
  7583.  # Code from module sys_uio:
  7584.  # Code from module time:
  7585.  # Code from module time_r:
  7586.  # Code from module time_rz:
  7587.  # Code from module timegm:
  7588.  # Code from module timespec:
  7589.  # Code from module unistd:
  7590.  # Code from module unsetenv:
  7591.  # Code from module vasnprintf:
  7592.  # Code from module verify:
  7593.  # Code from module wchar:
  7594.  # Code from module xalloc:
  7595.  # Code from module xalloc-die:
  7596.  # Code from module xalloc-oversized:
  7597.  # Code from module xsize:
  7598.  
  7599.  
  7600.  
  7601.  
  7602.  # Pre-early section.
  7603.  
  7604.  
  7605.  
  7606.  # Code from module absolute-header:
  7607.  # Code from module array-mergesort:
  7608.  # Code from module gperf:
  7609.  # Code from module include_next:
  7610.  # Code from module inline:
  7611.  # Code from module limits-h:
  7612.  # Code from module multiarch:
  7613.  # Code from module snippet/unused-parameter:
  7614.  # Code from module ssize_t:
  7615.  # Code from module stdbool:
  7616.  # Code from module stdint:
  7617.  # Code from module sys_types:
  7618.  # Code from module unictype/base:
  7619.  # Code from module unictype/category-C:
  7620.  # Code from module unictype/category-Cc:
  7621.  # Code from module unictype/category-Cf:
  7622.  # Code from module unictype/category-Cn:
  7623.  # Code from module unictype/category-Co:
  7624.  # Code from module unictype/category-Cs:
  7625.  # Code from module unictype/category-L:
  7626.  # Code from module unictype/category-LC:
  7627.  # Code from module unictype/category-Ll:
  7628.  # Code from module unictype/category-Lm:
  7629.  # Code from module unictype/category-Lo:
  7630.  # Code from module unictype/category-Lt:
  7631.  # Code from module unictype/category-Lu:
  7632.  # Code from module unictype/category-M:
  7633.  # Code from module unictype/category-Mc:
  7634.  # Code from module unictype/category-Me:
  7635.  # Code from module unictype/category-Mn:
  7636.  # Code from module unictype/category-N:
  7637.  # Code from module unictype/category-Nd:
  7638.  # Code from module unictype/category-Nl:
  7639.  # Code from module unictype/category-No:
  7640.  # Code from module unictype/category-P:
  7641.  # Code from module unictype/category-Pc:
  7642.  # Code from module unictype/category-Pd:
  7643.  # Code from module unictype/category-Pe:
  7644.  # Code from module unictype/category-Pf:
  7645.  # Code from module unictype/category-Pi:
  7646.  # Code from module unictype/category-Po:
  7647.  # Code from module unictype/category-Ps:
  7648.  # Code from module unictype/category-S:
  7649.  # Code from module unictype/category-Sc:
  7650.  # Code from module unictype/category-Sk:
  7651.  # Code from module unictype/category-Sm:
  7652.  # Code from module unictype/category-So:
  7653.  # Code from module unictype/category-Z:
  7654.  # Code from module unictype/category-Zl:
  7655.  # Code from module unictype/category-Zp:
  7656.  # Code from module unictype/category-Zs:
  7657.  # Code from module unictype/category-all:
  7658.  # Code from module unictype/category-and:
  7659.  # Code from module unictype/category-and-not:
  7660.  # Code from module unictype/category-byname:
  7661.  # Code from module unictype/category-longname:
  7662.  # Code from module unictype/category-name:
  7663.  # Code from module unictype/category-none:
  7664.  # Code from module unictype/category-of:
  7665.  # Code from module unictype/category-or:
  7666.  # Code from module unictype/category-test:
  7667.  # Code from module unictype/category-test-withtable:
  7668.  # Code from module unictype/combining-class:
  7669.  # Code from module unictype/property-default-ignorable-code-point:
  7670.  # Code from module unictype/property-join-control:
  7671.  # Code from module unictype/property-not-a-character:
  7672.  # Code from module uninorm/base:
  7673.  # Code from module uninorm/canonical-decomposition:
  7674.  # Code from module uninorm/compat-decomposition:
  7675.  # Code from module uninorm/composition:
  7676.  # Code from module uninorm/decompose-internal:
  7677.  # Code from module uninorm/decomposition:
  7678.  # Code from module uninorm/decomposition-table:
  7679.  # Code from module uninorm/nfc:
  7680.  # Code from module uninorm/nfd:
  7681.  # Code from module uninorm/nfkc:
  7682.  # Code from module uninorm/nfkd:
  7683.  # Code from module uninorm/u16-normalize:
  7684.  # Code from module uninorm/u32-normalize:
  7685.  # Code from module uninorm/u8-normalize:
  7686.  # Code from module unistr/base:
  7687.  # Code from module unistr/u16-cpy:
  7688.  # Code from module unistr/u16-mbtouc-unsafe:
  7689.  # Code from module unistr/u16-mbtoucr:
  7690.  # Code from module unistr/u16-to-u8:
  7691.  # Code from module unistr/u16-uctomb:
  7692.  # Code from module unistr/u32-cpy:
  7693.  # Code from module unistr/u32-mbtouc-unsafe:
  7694.  # Code from module unistr/u32-to-u8:
  7695.  # Code from module unistr/u32-uctomb:
  7696.  # Code from module unistr/u8-check:
  7697.  # Code from module unistr/u8-cpy:
  7698.  # Code from module unistr/u8-mbtouc-unsafe:
  7699.  # Code from module unistr/u8-mbtoucr:
  7700.  # Code from module unistr/u8-to-u16:
  7701.  # Code from module unistr/u8-to-u32:
  7702.  # Code from module unistr/u8-uctomb:
  7703.  # Code from module unitypes:
  7704.  
  7705. # By default we simply use the C compiler to build assembly code.
  7706.  
  7707. test "${CCAS+set}" = set || CCAS=$CC
  7708. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  7709.  
  7710.  
  7711.  
  7712. depcc="$CCAS"   am_compiler_list=
  7713.  
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7715. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7716. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  7717.  $as_echo_n "(cached) " >&6
  7718. else
  7719.  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7720.  # We make a subdir and do the tests there.  Otherwise we can end up
  7721.  # making bogus files that we don't know about and never remove.  For
  7722.   # instance it was reported that on HP-UX the gcc test will end up
  7723.   # making a dummy file named 'D' -- because '-MD' means "put the output
  7724.   # in D".
  7725.   rm -rf conftest.dir
  7726.   mkdir conftest.dir
  7727.   # Copy depcomp to subdir because otherwise we won't find it if we're
  7728.   # using a relative directory.
  7729.   cp "$am_depcomp" conftest.dir
  7730.   cd conftest.dir
  7731.   # We will build objects and dependencies in a subdirectory because
  7732.   # it helps to detect inapplicable dependency modes.  For instance
  7733.   # both Tru64's cc and ICC support -MD to output dependencies as a
  7734.   # side effect of compilation, but ICC will put the dependencies in
  7735.   # the current directory while Tru64 will put them in the object
  7736.   # directory.
  7737.   mkdir sub
  7738.  
  7739.   am_cv_CCAS_dependencies_compiler_type=none
  7740.   if test "$am_compiler_list" = ""; then
  7741.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7742.   fi
  7743.   am__universal=false
  7744.  
  7745.  
  7746.   for depmode in $am_compiler_list; do
  7747.     # Setup a source with many dependencies, because some compilers
  7748.     # like to wrap large dependency lists on column 80 (with \), and
  7749.     # we should not choose a depcomp mode which is confused by this.
  7750.     #
  7751.     # We need to recreate these files for each test, as the compiler may
  7752.     # overwrite some of them when testing with obscure command lines.
  7753.     # This happens at least with the AIX C compiler.
  7754.     : > sub/conftest.c
  7755.     for i in 1 2 3 4 5 6; do
  7756.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7757.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  7758.       # Solaris 10 /bin/sh.
  7759.       echo '/* dummy */' > sub/conftst$i.h
  7760.     done
  7761.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7762.  
  7763.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  7764.     # mode.  It turns out that the SunPro C++ compiler does not properly
  7765.     # handle '-M -o', and we need to detect this.  Also, some Intel
  7766.     # versions had trouble with output in subdirs.
  7767.     am__obj=sub/conftest.${OBJEXT-o}
  7768.     am__minus_obj="-o $am__obj"
  7769.     case $depmode in
  7770.     gcc)
  7771.       # This depmode causes a compiler race in universal mode.
  7772.       test "$am__universal" = false || continue
  7773.       ;;
  7774.     nosideeffect)
  7775.       # After this tag, mechanisms are not by side-effect, so they'll
  7776.       # only be used when explicitly requested.
  7777.       if test "x$enable_dependency_tracking" = xyes; then
  7778.         continue
  7779.       else
  7780.         break
  7781.       fi
  7782.       ;;
  7783.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7784.       # This compiler won't grok '-c -o', but also, the minuso test has
  7785.       # not run yet.  These depmodes are late enough in the game, and
  7786.       # so weak that their functioning should not be impacted.
  7787.       am__obj=conftest.${OBJEXT-o}
  7788.       am__minus_obj=
  7789.       ;;
  7790.     none) break ;;
  7791.     esac
  7792.     if depmode=$depmode \
  7793.        source=sub/conftest.c object=$am__obj \
  7794.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7795.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7796.          >/dev/null 2>conftest.err &&
  7797.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7798.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7799.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7800.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7801.       # icc doesn't choke on unknown options, it will just issue warnings
  7802.       # or remarks (even with -Werror).  So we grep stderr for any message
  7803.       # that says an option was ignored or not supported.
  7804.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  7805.       #   icc: Command line warning: ignoring option '-M'; no argument required
  7806.       # The diagnosis changed in icc 8.0:
  7807.       #   icc: Command line remark: option '-MP' not supported
  7808.       if (grep 'ignoring option' conftest.err ||
  7809.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7810.         am_cv_CCAS_dependencies_compiler_type=$depmode
  7811.         break
  7812.       fi
  7813.     fi
  7814.   done
  7815.  
  7816.   cd ..
  7817.   rm -rf conftest.dir
  7818. else
  7819.   am_cv_CCAS_dependencies_compiler_type=none
  7820. fi
  7821.  
  7822. fi
  7823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  7824. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  7825. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  7826.  
  7827.  if
  7828.   test "x$enable_dependency_tracking" != xno \
  7829.   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  7830.   am__fastdepCCAS_TRUE=
  7831.   am__fastdepCCAS_FALSE='#'
  7832. else
  7833.   am__fastdepCCAS_TRUE='#'
  7834.   am__fastdepCCAS_FALSE=
  7835. fi
  7836.  
  7837.  
  7838. if test -n "$ac_tool_prefix"; then
  7839.   for ac_prog in ar lib "link -lib"
  7840.   do
  7841.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7842. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7844. $as_echo_n "checking for $ac_word... " >&6; }
  7845. if ${ac_cv_prog_AR+:} false; then :
  7846.   $as_echo_n "(cached) " >&6
  7847. else
  7848.   if test -n "$AR"; then
  7849.   ac_cv_prog_AR="$AR" # Let the user override the test.
  7850. else
  7851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7852. for as_dir in $PATH
  7853. do
  7854.   IFS=$as_save_IFS
  7855.   test -z "$as_dir" && as_dir=.
  7856.     for ac_exec_ext in '' $ac_executable_extensions; do
  7857.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7858.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7859.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7860.     break 2
  7861.   fi
  7862. done
  7863.   done
  7864. IFS=$as_save_IFS
  7865.  
  7866. fi
  7867. fi
  7868. AR=$ac_cv_prog_AR
  7869. if test -n "$AR"; then
  7870.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7871. $as_echo "$AR" >&6; }
  7872. else
  7873.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7874. $as_echo "no" >&6; }
  7875. fi
  7876.  
  7877.  
  7878.     test -n "$AR" && break
  7879.   done
  7880. fi
  7881. if test -z "$AR"; then
  7882.   ac_ct_AR=$AR
  7883.   for ac_prog in ar lib "link -lib"
  7884. do
  7885.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7886. set dummy $ac_prog; ac_word=$2
  7887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7888. $as_echo_n "checking for $ac_word... " >&6; }
  7889. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7890.   $as_echo_n "(cached) " >&6
  7891. else
  7892.   if test -n "$ac_ct_AR"; then
  7893.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7894. else
  7895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7896. for as_dir in $PATH
  7897. do
  7898.   IFS=$as_save_IFS
  7899.   test -z "$as_dir" && as_dir=.
  7900.     for ac_exec_ext in '' $ac_executable_extensions; do
  7901.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7902.     ac_cv_prog_ac_ct_AR="$ac_prog"
  7903.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7904.     break 2
  7905.   fi
  7906. done
  7907.   done
  7908. IFS=$as_save_IFS
  7909.  
  7910. fi
  7911. fi
  7912. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7913. if test -n "$ac_ct_AR"; then
  7914.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7915. $as_echo "$ac_ct_AR" >&6; }
  7916. else
  7917.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7918. $as_echo "no" >&6; }
  7919. fi
  7920.  
  7921.  
  7922.   test -n "$ac_ct_AR" && break
  7923. done
  7924.  
  7925.   if test "x$ac_ct_AR" = x; then
  7926.     AR="false"
  7927.   else
  7928.     case $cross_compiling:$ac_tool_warned in
  7929. yes:)
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7931. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7932. ac_tool_warned=yes ;;
  7933. esac
  7934.     AR=$ac_ct_AR
  7935.   fi
  7936. fi
  7937.  
  7938. : ${AR=ar}
  7939.  
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  7941. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  7942. if ${am_cv_ar_interface+:} false; then :
  7943.   $as_echo_n "(cached) " >&6
  7944. else
  7945.   ac_ext=c
  7946. ac_cpp='$CPP $CPPFLAGS'
  7947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7950.  
  7951.    am_cv_ar_interface=ar
  7952.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7953. /* end confdefs.h.  */
  7954. int some_variable = 0;
  7955. _ACEOF
  7956. if ac_fn_c_try_compile "$LINENO"; then :
  7957.   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  7958.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  7959.   (eval $am_ar_try) 2>&5
  7960.   ac_status=$?
  7961.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7962.   test $ac_status = 0; }
  7963.       if test "$ac_status" -eq 0; then
  7964.         am_cv_ar_interface=ar
  7965.       else
  7966.         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  7967.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  7968.   (eval $am_ar_try) 2>&5
  7969.   ac_status=$?
  7970.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7971.   test $ac_status = 0; }
  7972.         if test "$ac_status" -eq 0; then
  7973.           am_cv_ar_interface=lib
  7974.         else
  7975.           am_cv_ar_interface=unknown
  7976.         fi
  7977.       fi
  7978.       rm -f conftest.lib libconftest.a
  7979.  
  7980. fi
  7981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7982.    ac_ext=c
  7983. ac_cpp='$CPP $CPPFLAGS'
  7984. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7985. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7986. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7987.  
  7988. fi
  7989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  7990. $as_echo "$am_cv_ar_interface" >&6; }
  7991.  
  7992. case $am_cv_ar_interface in
  7993. ar)
  7994.   ;;
  7995. lib)
  7996.   # Microsoft lib, so override with the ar-lib wrapper script.
  7997.   # FIXME: It is wrong to rewrite AR.
  7998.   # But if we don't then we get into trouble of one sort or another.
  7999.   # A longer-term fix would be to have automake use am__AR in this case,
  8000.   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  8001.   # similar.
  8002.   AR="$am_aux_dir/ar-lib $AR"
  8003.   ;;
  8004. unknown)
  8005.   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  8006.   ;;
  8007. esac
  8008.  
  8009. ac_ext=cpp
  8010. ac_cpp='$CXXCPP $CPPFLAGS'
  8011. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8012. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8013. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8014. if test -z "$CXX"; then
  8015.   if test -n "$CCC"; then
  8016.     CXX=$CCC
  8017.   else
  8018.     if test -n "$ac_tool_prefix"; then
  8019.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  8020.   do
  8021.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8022. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8024. $as_echo_n "checking for $ac_word... " >&6; }
  8025. if ${ac_cv_prog_CXX+:} false; then :
  8026.   $as_echo_n "(cached) " >&6
  8027. else
  8028.   if test -n "$CXX"; then
  8029.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  8030. else
  8031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8032. for as_dir in $PATH
  8033. do
  8034.   IFS=$as_save_IFS
  8035.   test -z "$as_dir" && as_dir=.
  8036.     for ac_exec_ext in '' $ac_executable_extensions; do
  8037.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8038.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  8039.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8040.     break 2
  8041.   fi
  8042. done
  8043.   done
  8044. IFS=$as_save_IFS
  8045.  
  8046. fi
  8047. fi
  8048. CXX=$ac_cv_prog_CXX
  8049. if test -n "$CXX"; then
  8050.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  8051. $as_echo "$CXX" >&6; }
  8052. else
  8053.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8054. $as_echo "no" >&6; }
  8055. fi
  8056.  
  8057.  
  8058.     test -n "$CXX" && break
  8059.   done
  8060. fi
  8061. if test -z "$CXX"; then
  8062.   ac_ct_CXX=$CXX
  8063.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  8064. do
  8065.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  8066. set dummy $ac_prog; ac_word=$2
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8068. $as_echo_n "checking for $ac_word... " >&6; }
  8069. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  8070.   $as_echo_n "(cached) " >&6
  8071. else
  8072.   if test -n "$ac_ct_CXX"; then
  8073.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  8074. else
  8075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8076. for as_dir in $PATH
  8077. do
  8078.   IFS=$as_save_IFS
  8079.   test -z "$as_dir" && as_dir=.
  8080.     for ac_exec_ext in '' $ac_executable_extensions; do
  8081.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8082.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  8083.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8084.     break 2
  8085.   fi
  8086. done
  8087.   done
  8088. IFS=$as_save_IFS
  8089.  
  8090. fi
  8091. fi
  8092. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  8093. if test -n "$ac_ct_CXX"; then
  8094.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  8095. $as_echo "$ac_ct_CXX" >&6; }
  8096. else
  8097.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8098. $as_echo "no" >&6; }
  8099. fi
  8100.  
  8101.  
  8102.   test -n "$ac_ct_CXX" && break
  8103. done
  8104.  
  8105.   if test "x$ac_ct_CXX" = x; then
  8106.     CXX="g++"
  8107.   else
  8108.     case $cross_compiling:$ac_tool_warned in
  8109. yes:)
  8110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8111. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8112. ac_tool_warned=yes ;;
  8113. esac
  8114.     CXX=$ac_ct_CXX
  8115.   fi
  8116. fi
  8117.  
  8118.   fi
  8119. fi
  8120. # Provide some information about the compiler.
  8121. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  8122. set X $ac_compile
  8123. ac_compiler=$2
  8124. for ac_option in --version -v -V -qversion; do
  8125.   { { ac_try="$ac_compiler $ac_option >&5"
  8126. case "(($ac_try" in
  8127.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8128.   *) ac_try_echo=$ac_try;;
  8129. esac
  8130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8131. $as_echo "$ac_try_echo"; } >&5
  8132.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  8133.   ac_status=$?
  8134.   if test -s conftest.err; then
  8135.     sed '10a\
  8136. ... rest of stderr output deleted ...
  8137.         10q' conftest.err >conftest.er1
  8138.     cat conftest.er1 >&5
  8139.   fi
  8140.   rm -f conftest.er1 conftest.err
  8141.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8142.   test $ac_status = 0; }
  8143. done
  8144.  
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  8146. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  8147. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  8148.   $as_echo_n "(cached) " >&6
  8149. else
  8150.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8151. /* end confdefs.h.  */
  8152.  
  8153. int
  8154. main ()
  8155. {
  8156. #ifndef __GNUC__
  8157.        choke me
  8158. #endif
  8159.  
  8160.   ;
  8161.   return 0;
  8162. }
  8163. _ACEOF
  8164. if ac_fn_cxx_try_compile "$LINENO"; then :
  8165.   ac_compiler_gnu=yes
  8166. else
  8167.   ac_compiler_gnu=no
  8168. fi
  8169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8170. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  8171.  
  8172. fi
  8173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  8174. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  8175. if test $ac_compiler_gnu = yes; then
  8176.   GXX=yes
  8177. else
  8178.   GXX=
  8179. fi
  8180. ac_test_CXXFLAGS=${CXXFLAGS+set}
  8181. ac_save_CXXFLAGS=$CXXFLAGS
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  8183. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  8184. if ${ac_cv_prog_cxx_g+:} false; then :
  8185.   $as_echo_n "(cached) " >&6
  8186. else
  8187.   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  8188.    ac_cxx_werror_flag=yes
  8189.    ac_cv_prog_cxx_g=no
  8190.    CXXFLAGS="-g"
  8191.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8192. /* end confdefs.h.  */
  8193.  
  8194. int
  8195. main ()
  8196. {
  8197.  
  8198.   ;
  8199.   return 0;
  8200. }
  8201. _ACEOF
  8202. if ac_fn_cxx_try_compile "$LINENO"; then :
  8203.   ac_cv_prog_cxx_g=yes
  8204. else
  8205.   CXXFLAGS=""
  8206.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8207. /* end confdefs.h.  */
  8208.  
  8209. int
  8210. main ()
  8211. {
  8212.  
  8213.   ;
  8214.   return 0;
  8215. }
  8216. _ACEOF
  8217. if ac_fn_cxx_try_compile "$LINENO"; then :
  8218.  
  8219. else
  8220.   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  8221.          CXXFLAGS="-g"
  8222.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8223. /* end confdefs.h.  */
  8224.  
  8225. int
  8226. main ()
  8227. {
  8228.  
  8229.   ;
  8230.   return 0;
  8231. }
  8232. _ACEOF
  8233. if ac_fn_cxx_try_compile "$LINENO"; then :
  8234.   ac_cv_prog_cxx_g=yes
  8235. fi
  8236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8237. fi
  8238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8239. fi
  8240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8241.    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  8242. fi
  8243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  8244. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  8245. if test "$ac_test_CXXFLAGS" = set; then
  8246.   CXXFLAGS=$ac_save_CXXFLAGS
  8247. elif test $ac_cv_prog_cxx_g = yes; then
  8248.   if test "$GXX" = yes; then
  8249.     CXXFLAGS="-g -O2"
  8250.   else
  8251.     CXXFLAGS="-g"
  8252.   fi
  8253. else
  8254.   if test "$GXX" = yes; then
  8255.     CXXFLAGS="-O2"
  8256.   else
  8257.     CXXFLAGS=
  8258.   fi
  8259. fi
  8260. ac_ext=c
  8261. ac_cpp='$CPP $CPPFLAGS'
  8262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8265.  
  8266. depcc="$CXX"  am_compiler_list=
  8267.  
  8268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  8269. $as_echo_n "checking dependency style of $depcc... " >&6; }
  8270. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  8271.   $as_echo_n "(cached) " >&6
  8272. else
  8273.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8274.   # We make a subdir and do the tests there.  Otherwise we can end up
  8275.   # making bogus files that we don't know about and never remove.  For
  8276.   # instance it was reported that on HP-UX the gcc test will end up
  8277.   # making a dummy file named 'D' -- because '-MD' means "put the output
  8278.   # in D".
  8279.   rm -rf conftest.dir
  8280.   mkdir conftest.dir
  8281.   # Copy depcomp to subdir because otherwise we won't find it if we're
  8282.   # using a relative directory.
  8283.   cp "$am_depcomp" conftest.dir
  8284.   cd conftest.dir
  8285.   # We will build objects and dependencies in a subdirectory because
  8286.   # it helps to detect inapplicable dependency modes.  For instance
  8287.   # both Tru64's cc and ICC support -MD to output dependencies as a
  8288.   # side effect of compilation, but ICC will put the dependencies in
  8289.   # the current directory while Tru64 will put them in the object
  8290.   # directory.
  8291.   mkdir sub
  8292.  
  8293.   am_cv_CXX_dependencies_compiler_type=none
  8294.   if test "$am_compiler_list" = ""; then
  8295.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8296.   fi
  8297.   am__universal=false
  8298.   case " $depcc " in #(
  8299.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8300.      esac
  8301.  
  8302.   for depmode in $am_compiler_list; do
  8303.     # Setup a source with many dependencies, because some compilers
  8304.     # like to wrap large dependency lists on column 80 (with \), and
  8305.     # we should not choose a depcomp mode which is confused by this.
  8306.     #
  8307.     # We need to recreate these files for each test, as the compiler may
  8308.     # overwrite some of them when testing with obscure command lines.
  8309.     # This happens at least with the AIX C compiler.
  8310.     : > sub/conftest.c
  8311.     for i in 1 2 3 4 5 6; do
  8312.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8313.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  8314.       # Solaris 10 /bin/sh.
  8315.       echo '/* dummy */' > sub/conftst$i.h
  8316.     done
  8317.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8318.  
  8319.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  8320.     # mode.  It turns out that the SunPro C++ compiler does not properly
  8321.     # handle '-M -o', and we need to detect this.  Also, some Intel
  8322.     # versions had trouble with output in subdirs.
  8323.     am__obj=sub/conftest.${OBJEXT-o}
  8324.     am__minus_obj="-o $am__obj"
  8325.     case $depmode in
  8326.     gcc)
  8327.       # This depmode causes a compiler race in universal mode.
  8328.       test "$am__universal" = false || continue
  8329.       ;;
  8330.     nosideeffect)
  8331.       # After this tag, mechanisms are not by side-effect, so they'll
  8332.       # only be used when explicitly requested.
  8333.       if test "x$enable_dependency_tracking" = xyes; then
  8334.         continue
  8335.       else
  8336.         break
  8337.       fi
  8338.       ;;
  8339.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  8340.       # This compiler won't grok '-c -o', but also, the minuso test has
  8341.       # not run yet.  These depmodes are late enough in the game, and
  8342.       # so weak that their functioning should not be impacted.
  8343.       am__obj=conftest.${OBJEXT-o}
  8344.       am__minus_obj=
  8345.       ;;
  8346.     none) break ;;
  8347.     esac
  8348.     if depmode=$depmode \
  8349.        source=sub/conftest.c object=$am__obj \
  8350.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8351.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8352.          >/dev/null 2>conftest.err &&
  8353.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8354.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8355.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8356.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8357.       # icc doesn't choke on unknown options, it will just issue warnings
  8358.       # or remarks (even with -Werror).  So we grep stderr for any message
  8359.       # that says an option was ignored or not supported.
  8360.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  8361.       #   icc: Command line warning: ignoring option '-M'; no argument required
  8362.       # The diagnosis changed in icc 8.0:
  8363.       #   icc: Command line remark: option '-MP' not supported
  8364.       if (grep 'ignoring option' conftest.err ||
  8365.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8366.         am_cv_CXX_dependencies_compiler_type=$depmode
  8367.         break
  8368.       fi
  8369.     fi
  8370.   done
  8371.  
  8372.   cd ..
  8373.   rm -rf conftest.dir
  8374. else
  8375.   am_cv_CXX_dependencies_compiler_type=none
  8376. fi
  8377.  
  8378. fi
  8379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  8380. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  8381. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  8382.  
  8383.  if
  8384.   test "x$enable_dependency_tracking" != xno \
  8385.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  8386.   am__fastdepCXX_TRUE=
  8387.   am__fastdepCXX_FALSE='#'
  8388. else
  8389.   am__fastdepCXX_TRUE='#'
  8390.   am__fastdepCXX_FALSE=
  8391. fi
  8392.  
  8393.  
  8394.  
  8395. for ac_prog in 'bison -y' byacc
  8396. do
  8397.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  8398. set dummy $ac_prog; ac_word=$2
  8399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8400. $as_echo_n "checking for $ac_word... " >&6; }
  8401. if ${ac_cv_prog_YACC+:} false; then :
  8402.   $as_echo_n "(cached) " >&6
  8403. else
  8404.   if test -n "$YACC"; then
  8405.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  8406. else
  8407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8408. for as_dir in $PATH
  8409. do
  8410.   IFS=$as_save_IFS
  8411.   test -z "$as_dir" && as_dir=.
  8412.     for ac_exec_ext in '' $ac_executable_extensions; do
  8413.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8414.     ac_cv_prog_YACC="$ac_prog"
  8415.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8416.     break 2
  8417.   fi
  8418. done
  8419.   done
  8420. IFS=$as_save_IFS
  8421.  
  8422. fi
  8423. fi
  8424. YACC=$ac_cv_prog_YACC
  8425. if test -n "$YACC"; then
  8426.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  8427. $as_echo "$YACC" >&6; }
  8428. else
  8429.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8430. $as_echo "no" >&6; }
  8431. fi
  8432.  
  8433.  
  8434.   test -n "$YACC" && break
  8435. done
  8436. test -n "$YACC" || YACC="yacc"
  8437.  
  8438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  8439. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  8440. if ${ac_cv_path_SED+:} false; then :
  8441.   $as_echo_n "(cached) " >&6
  8442. else
  8443.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  8444.      for ac_i in 1 2 3 4 5 6 7; do
  8445.        ac_script="$ac_script$as_nl$ac_script"
  8446.      done
  8447.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  8448.      { ac_script=; unset ac_script;}
  8449.      if test -z "$SED"; then
  8450.   ac_path_SED_found=false
  8451.   # Loop through the user's path and test for each of PROGNAME-LIST
  8452.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8453. for as_dir in $PATH
  8454. do
  8455.   IFS=$as_save_IFS
  8456.   test -z "$as_dir" && as_dir=.
  8457.     for ac_prog in sed gsed; do
  8458.     for ac_exec_ext in '' $ac_executable_extensions; do
  8459.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  8460.       as_fn_executable_p "$ac_path_SED" || continue
  8461. # Check for GNU ac_path_SED and select it if it is found.
  8462.   # Check for GNU $ac_path_SED
  8463. case `"$ac_path_SED" --version 2>&1` in
  8464. *GNU*)
  8465.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  8466. *)
  8467.   ac_count=0
  8468.   $as_echo_n 0123456789 >"conftest.in"
  8469.   while :
  8470.   do
  8471.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  8472.     mv "conftest.tmp" "conftest.in"
  8473.     cp "conftest.in" "conftest.nl"
  8474.     $as_echo '' >> "conftest.nl"
  8475.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8476.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8477.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  8478.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  8479.       # Best one so far, save it but keep looking for a better one
  8480.       ac_cv_path_SED="$ac_path_SED"
  8481.       ac_path_SED_max=$ac_count
  8482.     fi
  8483.     # 10*(2^10) chars as input seems more than enough
  8484.     test $ac_count -gt 10 && break
  8485.   done
  8486.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8487. esac
  8488.  
  8489.       $ac_path_SED_found && break 3
  8490.     done
  8491.   done
  8492.   done
  8493. IFS=$as_save_IFS
  8494.   if test -z "$ac_cv_path_SED"; then
  8495.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  8496.   fi
  8497. else
  8498.   ac_cv_path_SED=$SED
  8499. fi
  8500.  
  8501. fi
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  8503. $as_echo "$ac_cv_path_SED" >&6; }
  8504.  SED="$ac_cv_path_SED"
  8505.   rm -f conftest.sed
  8506.  
  8507.  
  8508.  
  8509.  
  8510. #
  8511. # Require C99 support
  8512. #
  8513.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  8514. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  8515. if ${ac_cv_prog_cc_c99+:} false; then :
  8516.   $as_echo_n "(cached) " >&6
  8517. else
  8518.   ac_cv_prog_cc_c99=no
  8519. ac_save_CC=$CC
  8520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8521. /* end confdefs.h.  */
  8522. #include <stdarg.h>
  8523. #include <stdbool.h>
  8524. #include <stdlib.h>
  8525. #include <wchar.h>
  8526. #include <stdio.h>
  8527.  
  8528. // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  8529. #define debug(...) fprintf (stderr, __VA_ARGS__)
  8530. #define showlist(...) puts (#__VA_ARGS__)
  8531. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  8532. static void
  8533. test_varargs_macros (void)
  8534. {
  8535.   int x = 1234;
  8536.   int y = 5678;
  8537.   debug ("Flag");
  8538.   debug ("X = %d\n", x);
  8539.   showlist (The first, second, and third items.);
  8540.   report (x>y, "x is %d but y is %d", x, y);
  8541. }
  8542.  
  8543. // Check long long types.
  8544. #define BIG64 18446744073709551615ull
  8545. #define BIG32 4294967295ul
  8546. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  8547. #if !BIG_OK
  8548.   your preprocessor is broken;
  8549. #endif
  8550. #if BIG_OK
  8551. #else
  8552.   your preprocessor is broken;
  8553. #endif
  8554. static long long int bignum = -9223372036854775807LL;
  8555. static unsigned long long int ubignum = BIG64;
  8556.  
  8557. struct incomplete_array
  8558. {
  8559.   int datasize;
  8560.   double data[];
  8561. };
  8562.  
  8563. struct named_init {
  8564.   int number;
  8565.   const wchar_t *name;
  8566.   double average;
  8567. };
  8568.  
  8569. typedef const char *ccp;
  8570.  
  8571. static inline int
  8572. test_restrict (ccp restrict text)
  8573. {
  8574.   // See if C++-style comments work.
  8575.   // Iterate through items via the restricted pointer.
  8576.   // Also check for declarations in for loops.
  8577.   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  8578.     continue;
  8579.   return 0;
  8580. }
  8581.  
  8582. // Check varargs and va_copy.
  8583. static void
  8584. test_varargs (const char *format, ...)
  8585. {
  8586.   va_list args;
  8587.   va_start (args, format);
  8588.   va_list args_copy;
  8589.   va_copy (args_copy, args);
  8590.  
  8591.   const char *str;
  8592.   int number;
  8593.   float fnumber;
  8594.  
  8595.   while (*format)
  8596.     {
  8597.       switch (*format++)
  8598.         {
  8599.         case 's': // string
  8600.           str = va_arg (args_copy, const char *);
  8601.           break;
  8602.         case 'd': // int
  8603.           number = va_arg (args_copy, int);
  8604.           break;
  8605.         case 'f': // float
  8606.           fnumber = va_arg (args_copy, double);
  8607.           break;
  8608.         default:
  8609.           break;
  8610.         }
  8611.     }
  8612.   va_end (args_copy);
  8613.   va_end (args);
  8614. }
  8615.  
  8616. int
  8617. main ()
  8618. {
  8619.  
  8620.   // Check bool.
  8621.   _Bool success = false;
  8622.  
  8623.   // Check restrict.
  8624.   if (test_restrict ("String literal") == 0)
  8625.     success = true;
  8626.   char *restrict newvar = "Another string";
  8627.  
  8628.   // Check varargs.
  8629.   test_varargs ("s, d' f .", "string", 65, 34.234);
  8630.   test_varargs_macros ();
  8631.  
  8632.   // Check flexible array members.
  8633.   struct incomplete_array *ia =
  8634.     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  8635.   ia->datasize = 10;
  8636.   for (int i = 0; i < ia->datasize; ++i)
  8637.     ia->data[i] = i * 1.234;
  8638.  
  8639.   // Check named initializers.
  8640.   struct named_init ni = {
  8641.     .number = 34,
  8642.     .name = L"Test wide string",
  8643.     .average = 543.34343,
  8644.   };
  8645.  
  8646.   ni.number = 58;
  8647.  
  8648.   int dynamic_array[ni.number];
  8649.   dynamic_array[ni.number - 1] = 543;
  8650.  
  8651.   // work around unused variable warnings
  8652.   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  8653.           || dynamic_array[ni.number - 1] != 543);
  8654.  
  8655.   ;
  8656.   return 0;
  8657. }
  8658. _ACEOF
  8659. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  8660. do
  8661.   CC="$ac_save_CC $ac_arg"
  8662.   if ac_fn_c_try_compile "$LINENO"; then :
  8663.   ac_cv_prog_cc_c99=$ac_arg
  8664. fi
  8665. rm -f core conftest.err conftest.$ac_objext
  8666.   test "x$ac_cv_prog_cc_c99" != "xno" && break
  8667. done
  8668. rm -f conftest.$ac_ext
  8669. CC=$ac_save_CC
  8670.  
  8671. fi
  8672. # AC_CACHE_VAL
  8673. case "x$ac_cv_prog_cc_c99" in
  8674.   x)
  8675.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  8676. $as_echo "none needed" >&6; } ;;
  8677.   xno)
  8678.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  8679. $as_echo "unsupported" >&6; } ;;
  8680.   *)
  8681.     CC="$CC $ac_cv_prog_cc_c99"
  8682.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  8683. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  8684. esac
  8685. if test "x$ac_cv_prog_cc_c99" != xno; then :
  8686.  
  8687. fi
  8688.  
  8689.  
  8690. if test "$ac_cv_prog_cc_c99" = "no"; then
  8691.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support C99. It may not be able to compile the project." >&5
  8692. $as_echo "$as_me: WARNING: Compiler does not support C99. It may not be able to compile the project." >&2;}
  8693. fi
  8694.  
  8695.  
  8696.  
  8697.  
  8698.         # allow to override gcov location
  8699.  
  8700. # Check whether --with-gcov was given.
  8701. if test "${with_gcov+set}" = set; then :
  8702.   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
  8703. else
  8704.   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
  8705. fi
  8706.  
  8707.  
  8708.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
  8709. $as_echo_n "checking whether to build with code coverage support... " >&6; }
  8710.         # Check whether --enable-code-coverage was given.
  8711. if test "${enable_code_coverage+set}" = set; then :
  8712.   enableval=$enable_code_coverage;
  8713. else
  8714.   enable_code_coverage=no
  8715. fi
  8716.  
  8717.  
  8718.          if test x$enable_code_coverage = xyes; then
  8719.   CODE_COVERAGE_ENABLED_TRUE=
  8720.   CODE_COVERAGE_ENABLED_FALSE='#'
  8721. else
  8722.   CODE_COVERAGE_ENABLED_TRUE='#'
  8723.   CODE_COVERAGE_ENABLED_FALSE=
  8724. fi
  8725.  
  8726.         CODE_COVERAGE_ENABLED=$enable_code_coverage
  8727.  
  8728.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
  8729. $as_echo "$enable_code_coverage" >&6; }
  8730.  
  8731.         if  test "$enable_code_coverage" = "yes" ; then :
  8732.  
  8733.                 # check for gcov
  8734.                 if test -n "$ac_tool_prefix"; then
  8735.   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  8736. set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  8737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8738. $as_echo_n "checking for $ac_word... " >&6; }
  8739. if ${ac_cv_prog_GCOV+:} false; then :
  8740.   $as_echo_n "(cached) " >&6
  8741. else
  8742.   if test -n "$GCOV"; then
  8743.   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
  8744. else
  8745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8746. for as_dir in $PATH
  8747. do
  8748.   IFS=$as_save_IFS
  8749.   test -z "$as_dir" && as_dir=.
  8750.     for ac_exec_ext in '' $ac_executable_extensions; do
  8751.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8752.     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  8753.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8754.     break 2
  8755.   fi
  8756. done
  8757.   done
  8758. IFS=$as_save_IFS
  8759.  
  8760. fi
  8761. fi
  8762. GCOV=$ac_cv_prog_GCOV
  8763. if test -n "$GCOV"; then
  8764.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  8765. $as_echo "$GCOV" >&6; }
  8766. else
  8767.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8768. $as_echo "no" >&6; }
  8769. fi
  8770.  
  8771.  
  8772. fi
  8773. if test -z "$ac_cv_prog_GCOV"; then
  8774.   ac_ct_GCOV=$GCOV
  8775.   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  8776. set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  8777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8778. $as_echo_n "checking for $ac_word... " >&6; }
  8779. if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
  8780.   $as_echo_n "(cached) " >&6
  8781. else
  8782.   if test -n "$ac_ct_GCOV"; then
  8783.   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
  8784. else
  8785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8786. for as_dir in $PATH
  8787. do
  8788.   IFS=$as_save_IFS
  8789.   test -z "$as_dir" && as_dir=.
  8790.     for ac_exec_ext in '' $ac_executable_extensions; do
  8791.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8792.     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  8793.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8794.     break 2
  8795.   fi
  8796. done
  8797.   done
  8798. IFS=$as_save_IFS
  8799.  
  8800. fi
  8801. fi
  8802. ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
  8803. if test -n "$ac_ct_GCOV"; then
  8804.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
  8805. $as_echo "$ac_ct_GCOV" >&6; }
  8806. else
  8807.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8808. $as_echo "no" >&6; }
  8809. fi
  8810.  
  8811.   if test "x$ac_ct_GCOV" = x; then
  8812.     GCOV=":"
  8813.   else
  8814.     case $cross_compiling:$ac_tool_warned in
  8815. yes:)
  8816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8818. ac_tool_warned=yes ;;
  8819. esac
  8820.     GCOV=$ac_ct_GCOV
  8821.   fi
  8822. else
  8823.   GCOV="$ac_cv_prog_GCOV"
  8824. fi
  8825.  
  8826.                 if test "X$GCOV" = "X:"; then :
  8827.   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
  8828. fi
  8829.  
  8830.  
  8831.                                 if  test "$GCC" = "no" ; then :
  8832.  
  8833.                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
  8834.  
  8835. fi
  8836.  
  8837.                 # Extract the first word of "lcov", so it can be a program name with args.
  8838. set dummy lcov; ac_word=$2
  8839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8840. $as_echo_n "checking for $ac_word... " >&6; }
  8841. if ${ac_cv_prog_LCOV+:} false; then :
  8842.   $as_echo_n "(cached) " >&6
  8843. else
  8844.   if test -n "$LCOV"; then
  8845.   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
  8846. else
  8847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8848. for as_dir in $PATH
  8849. do
  8850.   IFS=$as_save_IFS
  8851.   test -z "$as_dir" && as_dir=.
  8852.     for ac_exec_ext in '' $ac_executable_extensions; do
  8853.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8854.     ac_cv_prog_LCOV="lcov"
  8855.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8856.     break 2
  8857.   fi
  8858. done
  8859.   done
  8860. IFS=$as_save_IFS
  8861.  
  8862. fi
  8863. fi
  8864. LCOV=$ac_cv_prog_LCOV
  8865. if test -n "$LCOV"; then
  8866.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  8867. $as_echo "$LCOV" >&6; }
  8868. else
  8869.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8870. $as_echo "no" >&6; }
  8871. fi
  8872.  
  8873.  
  8874.                 # Extract the first word of "genhtml", so it can be a program name with args.
  8875. set dummy genhtml; ac_word=$2
  8876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8877. $as_echo_n "checking for $ac_word... " >&6; }
  8878. if ${ac_cv_prog_GENHTML+:} false; then :
  8879.   $as_echo_n "(cached) " >&6
  8880. else
  8881.   if test -n "$GENHTML"; then
  8882.   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
  8883. else
  8884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8885. for as_dir in $PATH
  8886. do
  8887.   IFS=$as_save_IFS
  8888.   test -z "$as_dir" && as_dir=.
  8889.     for ac_exec_ext in '' $ac_executable_extensions; do
  8890.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8891.     ac_cv_prog_GENHTML="genhtml"
  8892.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8893.     break 2
  8894.   fi
  8895. done
  8896.   done
  8897. IFS=$as_save_IFS
  8898.  
  8899. fi
  8900. fi
  8901. GENHTML=$ac_cv_prog_GENHTML
  8902. if test -n "$GENHTML"; then
  8903.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  8904. $as_echo "$GENHTML" >&6; }
  8905. else
  8906.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8907. $as_echo "no" >&6; }
  8908. fi
  8909.  
  8910.  
  8911.  
  8912.                 if  test -z "$LCOV" ; then :
  8913.  
  8914.                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
  8915.  
  8916. fi
  8917.  
  8918.                 if  test -z "$GENHTML" ; then :
  8919.  
  8920.                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
  8921.  
  8922. fi
  8923.  
  8924.                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
  8925.                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  8926.                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  8927.                 CODE_COVERAGE_LIBS="-lgcov"
  8928.                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
  8929.  
  8930.  
  8931.  
  8932.  
  8933.  
  8934.  
  8935.  
  8936.                 CODE_COVERAGE_RULES_CHECK='
  8937.         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
  8938.         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
  8939. '
  8940.                 CODE_COVERAGE_RULES_CAPTURE='
  8941.         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
  8942.         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
  8943.         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
  8944.         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
  8945.         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
  8946. '
  8947.                 CODE_COVERAGE_RULES_CLEAN='
  8948. clean: code-coverage-clean
  8949. distclean: code-coverage-clean
  8950. code-coverage-clean:
  8951.         -$(LCOV) --directory $(top_builddir) -z
  8952.         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
  8953.         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
  8954. '
  8955.  
  8956. else
  8957.  
  8958.                 CODE_COVERAGE_RULES_CHECK='
  8959.         @echo "Need to reconfigure with --enable-code-coverage"
  8960. '
  8961.                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
  8962.                 CODE_COVERAGE_RULES_CLEAN=''
  8963.  
  8964. fi
  8965.  
  8966. CODE_COVERAGE_RULES='
  8967. # Code coverage
  8968. #
  8969. # Optional:
  8970. #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
  8971. #    Multiple directories may be specified, separated by whitespace.
  8972. #    (Default: $(top_builddir))
  8973. #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
  8974. #    by lcov for code coverage. (Default:
  8975. #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
  8976. #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
  8977. #    reports to be created. (Default:
  8978. #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
  8979. #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
  8980. #    set to 0 to disable it and leave empty to stay with the default.
  8981. #    (Default: empty)
  8982. #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
  8983. #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
  8984. #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
  8985. #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
  8986. #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
  8987. #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
  8988. #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
  8989. #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
  8990. #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
  8991. #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
  8992. #    lcov instance. (Default: empty)
  8993. #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
  8994. #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
  8995. #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
  8996. #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
  8997. #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
  8998. #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
  8999. #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
  9000. #
  9001. # The generated report will be titled using the $(PACKAGE_NAME) and
  9002. # $(PACKAGE_VERSION). In order to add the current git hash to the title,
  9003. # use the git-version-gen script, available online.
  9004.  
  9005. # Optional variables
  9006. CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
  9007. CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
  9008. CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
  9009. CODE_COVERAGE_BRANCH_COVERAGE ?=
  9010. CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
  9011. --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
  9012. CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
  9013. CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
  9014. CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
  9015. CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
  9016. CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
  9017. CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
  9018. CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
  9019. $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
  9020. --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
  9021. CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
  9022. CODE_COVERAGE_IGNORE_PATTERN ?=
  9023.  
  9024. GITIGNOREFILES ?=
  9025. GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
  9026.  
  9027. code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
  9028. code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
  9029. code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
  9030. $(CODE_COVERAGE_OUTPUT_FILE);
  9031. code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
  9032. code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
  9033. code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
  9034. $(CODE_COVERAGE_IGNORE_PATTERN);
  9035. code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
  9036. code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
  9037. code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
  9038. code_coverage_quiet = $(code_coverage_quiet_$(V))
  9039. code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
  9040. code_coverage_quiet_0 = --quiet
  9041.  
  9042. # sanitizes the test-name: replaces with underscores: dashes and dots
  9043. code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
  9044.  
  9045. # Use recursive makes in order to ignore errors during check
  9046. check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
  9047.  
  9048. # Capture code coverage data
  9049. code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
  9050.  
  9051. # Hook rule executed before code-coverage-capture, overridable by the user
  9052. code-coverage-capture-hook:
  9053.  
  9054. '"$CODE_COVERAGE_RULES_CLEAN"'
  9055.  
  9056. A''M_DISTCHECK_CONFIGURE_FLAGS ?=
  9057. A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
  9058.  
  9059. .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
  9060. '
  9061.  
  9062.  
  9063.  
  9064.  
  9065.  
  9066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  9067. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  9068.     # Check whether --enable-maintainer-mode was given.
  9069. if test "${enable_maintainer_mode+set}" = set; then :
  9070.   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  9071. else
  9072.   USE_MAINTAINER_MODE=yes
  9073. fi
  9074.  
  9075.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  9076. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  9077.    if test $USE_MAINTAINER_MODE = yes; then
  9078.   MAINTAINER_MODE_TRUE=
  9079.   MAINTAINER_MODE_FALSE='#'
  9080. else
  9081.   MAINTAINER_MODE_TRUE='#'
  9082.   MAINTAINER_MODE_FALSE=
  9083. fi
  9084.  
  9085.   MAINT=$MAINTAINER_MODE_TRUE
  9086.  
  9087.  
  9088.  
  9089. # Check whether --enable-doc was given.
  9090. if test "${enable_doc+set}" = set; then :
  9091.   enableval=$enable_doc; enable_doc=$enableval
  9092. else
  9093.   enable_doc=yes
  9094. fi
  9095.  
  9096.  if test "$enable_doc" != "no"; then
  9097.   ENABLE_DOC_TRUE=
  9098.   ENABLE_DOC_FALSE='#'
  9099. else
  9100.   ENABLE_DOC_TRUE='#'
  9101.   ENABLE_DOC_FALSE=
  9102. fi
  9103.  
  9104.  
  9105. # Check whether --enable-manpages was given.
  9106. if test "${enable_manpages+set}" = set; then :
  9107.   enableval=$enable_manpages; enable_manpages=$enableval
  9108. else
  9109.   enable_manpages=auto
  9110. fi
  9111.  
  9112.  
  9113. if test "${enable_manpages}" = "auto";then
  9114.   enable_manpages="${enable_doc}"
  9115. fi
  9116.  
  9117.  if test "$enable_manpages" != "no"; then
  9118.   ENABLE_MANPAGES_TRUE=
  9119.   ENABLE_MANPAGES_FALSE='#'
  9120. else
  9121.   ENABLE_MANPAGES_TRUE='#'
  9122.   ENABLE_MANPAGES_FALSE=
  9123. fi
  9124.  
  9125.  
  9126. # Check whether --enable-tools was given.
  9127. if test "${enable_tools+set}" = set; then :
  9128.   enableval=$enable_tools; enable_tools=$enableval
  9129. else
  9130.   enable_tools=yes
  9131. fi
  9132.  
  9133.  if test "$enable_tools" != "no"; then
  9134.   ENABLE_TOOLS_TRUE=
  9135.   ENABLE_TOOLS_FALSE='#'
  9136. else
  9137.   ENABLE_TOOLS_TRUE='#'
  9138.   ENABLE_TOOLS_FALSE=
  9139. fi
  9140.  
  9141.  
  9142. if test "$enable_tools" != "no" || test "$enable_doc" != "no"; then
  9143.   # Extract the first word of "autogen", so it can be a program name with args.
  9144. set dummy autogen; ac_word=$2
  9145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9146. $as_echo_n "checking for $ac_word... " >&6; }
  9147. if ${ac_cv_prog_AUTOGEN+:} false; then :
  9148.   $as_echo_n "(cached) " >&6
  9149. else
  9150.   if test -n "$AUTOGEN"; then
  9151.   ac_cv_prog_AUTOGEN="$AUTOGEN" # Let the user override the test.
  9152. else
  9153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9154. for as_dir in $PATH
  9155. do
  9156.   IFS=$as_save_IFS
  9157.   test -z "$as_dir" && as_dir=.
  9158.     for ac_exec_ext in '' $ac_executable_extensions; do
  9159.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9160.     ac_cv_prog_AUTOGEN="autogen"
  9161.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9162.     break 2
  9163.   fi
  9164. done
  9165.   done
  9166. IFS=$as_save_IFS
  9167.  
  9168.   test -z "$ac_cv_prog_AUTOGEN" && ac_cv_prog_AUTOGEN=":"
  9169. fi
  9170. fi
  9171. AUTOGEN=$ac_cv_prog_AUTOGEN
  9172. if test -n "$AUTOGEN"; then
  9173.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  9174. $as_echo "$AUTOGEN" >&6; }
  9175. else
  9176.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9177. $as_echo "no" >&6; }
  9178. fi
  9179.  
  9180.  
  9181.  
  9182.   if test x"$AUTOGEN" = "x:"; then
  9183.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  9184. ***
  9185. *** autogen not found. Will not link against libopts.
  9186. *** " >&5
  9187. $as_echo "$as_me: WARNING:
  9188. ***
  9189. *** autogen not found. Will not link against libopts.
  9190. *** " >&2;}
  9191.     included_libopts=yes
  9192.   fi
  9193. fi
  9194.  
  9195. # For includes/gnutls/gnutls.h.in.
  9196. MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
  9197.  
  9198. MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
  9199.  
  9200. PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\([0-9]*\).*/\1/g'`
  9201.  
  9202. NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
  9203.  
  9204.  
  9205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  9206. $as_echo_n "checking for inline... " >&6; }
  9207. if ${ac_cv_c_inline+:} false; then :
  9208.   $as_echo_n "(cached) " >&6
  9209. else
  9210.   ac_cv_c_inline=no
  9211. for ac_kw in inline __inline__ __inline; do
  9212.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9213. /* end confdefs.h.  */
  9214. #ifndef __cplusplus
  9215. typedef int foo_t;
  9216. static $ac_kw foo_t static_foo () {return 0; }
  9217. $ac_kw foo_t foo () {return 0; }
  9218. #endif
  9219.  
  9220. _ACEOF
  9221. if ac_fn_c_try_compile "$LINENO"; then :
  9222.   ac_cv_c_inline=$ac_kw
  9223. fi
  9224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9225.   test "$ac_cv_c_inline" != no && break
  9226. done
  9227.  
  9228. fi
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  9230. $as_echo "$ac_cv_c_inline" >&6; }
  9231.  
  9232. case $ac_cv_c_inline in
  9233.   inline | yes) ;;
  9234.   *)
  9235.     case $ac_cv_c_inline in
  9236.       no) ac_val=;;
  9237.       *) ac_val=$ac_cv_c_inline;;
  9238.     esac
  9239.     cat >>confdefs.h <<_ACEOF
  9240. #ifndef __cplusplus
  9241. #define inline $ac_val
  9242. #endif
  9243. _ACEOF
  9244.     ;;
  9245. esac
  9246.  
  9247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9248. $as_echo_n "checking for ANSI C header files... " >&6; }
  9249. if ${ac_cv_header_stdc+:} false; then :
  9250.   $as_echo_n "(cached) " >&6
  9251. else
  9252.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9253. /* end confdefs.h.  */
  9254. #include <stdlib.h>
  9255. #include <stdarg.h>
  9256. #include <string.h>
  9257. #include <float.h>
  9258.  
  9259. int
  9260. main ()
  9261. {
  9262.  
  9263.   ;
  9264.   return 0;
  9265. }
  9266. _ACEOF
  9267. if ac_fn_c_try_compile "$LINENO"; then :
  9268.   ac_cv_header_stdc=yes
  9269. else
  9270.   ac_cv_header_stdc=no
  9271. fi
  9272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9273.  
  9274. if test $ac_cv_header_stdc = yes; then
  9275.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9276.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9277. /* end confdefs.h.  */
  9278. #include <string.h>
  9279.  
  9280. _ACEOF
  9281. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9282.   $EGREP "memchr" >/dev/null 2>&1; then :
  9283.  
  9284. else
  9285.   ac_cv_header_stdc=no
  9286. fi
  9287. rm -f conftest*
  9288.  
  9289. fi
  9290.  
  9291. if test $ac_cv_header_stdc = yes; then
  9292.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9293.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9294. /* end confdefs.h.  */
  9295. #include <stdlib.h>
  9296.  
  9297. _ACEOF
  9298. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9299.   $EGREP "free" >/dev/null 2>&1; then :
  9300.  
  9301. else
  9302.   ac_cv_header_stdc=no
  9303. fi
  9304. rm -f conftest*
  9305.  
  9306. fi
  9307.  
  9308. if test $ac_cv_header_stdc = yes; then
  9309.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9310.   if test "$cross_compiling" = yes; then :
  9311.   :
  9312. else
  9313.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9314. /* end confdefs.h.  */
  9315. #include <ctype.h>
  9316. #include <stdlib.h>
  9317. #if ((' ' & 0x0FF) == 0x020)
  9318. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9319. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9320. #else
  9321. # define ISLOWER(c) \
  9322.                    (('a' <= (c) && (c) <= 'i') \
  9323.                      || ('j' <= (c) && (c) <= 'r') \
  9324.                      || ('s' <= (c) && (c) <= 'z'))
  9325. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9326. #endif
  9327.  
  9328. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9329. int
  9330. main ()
  9331. {
  9332.   int i;
  9333.   for (i = 0; i < 256; i++)
  9334.     if (XOR (islower (i), ISLOWER (i))
  9335.         || toupper (i) != TOUPPER (i))
  9336.       return 2;
  9337.   return 0;
  9338. }
  9339. _ACEOF
  9340. if ac_fn_c_try_run "$LINENO"; then :
  9341.  
  9342. else
  9343.   ac_cv_header_stdc=no
  9344. fi
  9345. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9346.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  9347. fi
  9348.  
  9349. fi
  9350. fi
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9352. $as_echo "$ac_cv_header_stdc" >&6; }
  9353. if test $ac_cv_header_stdc = yes; then
  9354.  
  9355. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9356.  
  9357. fi
  9358.  
  9359.  
  9360. # For the C++ code
  9361. # Check whether --enable-cxx was given.
  9362. if test "${enable_cxx+set}" = set; then :
  9363.   enableval=$enable_cxx; use_cxx=$enableval
  9364. else
  9365.   use_cxx=yes
  9366. fi
  9367.  
  9368. if test "$use_cxx" != "no"; then
  9369.   ac_ext=cpp
  9370. ac_cpp='$CXXCPP $CPPFLAGS'
  9371. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9372. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9373. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9374.  
  9375.  
  9376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9377. /* end confdefs.h.  */
  9378.  
  9379. int
  9380. main ()
  9381. {
  9382.  
  9383.   ;
  9384.   return 0;
  9385. }
  9386. _ACEOF
  9387. if ac_fn_cxx_try_compile "$LINENO"; then :
  9388.   use_cxx=yes
  9389. else
  9390.   use_cxx=no
  9391. fi
  9392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9393.   ac_ext=c
  9394. ac_cpp='$CPP $CPPFLAGS'
  9395. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9396. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9397. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9398.  
  9399. fi
  9400.  if test "$use_cxx" != "no"; then
  9401.   ENABLE_CXX_TRUE=
  9402.   ENABLE_CXX_FALSE='#'
  9403. else
  9404.   ENABLE_CXX_TRUE='#'
  9405.   ENABLE_CXX_FALSE=
  9406. fi
  9407.  
  9408.  
  9409. use_accel=yes
  9410. case "$host" in
  9411.   *android*)
  9412.     have_android=yes
  9413.     have_elf=yes
  9414.   ;;
  9415.   *mingw32* | *mingw64*)
  9416.     have_win=yes
  9417.   ;;
  9418.   *darwin*)
  9419.     have_macosx=yes
  9420.   ;;
  9421.   *solaris*)
  9422.     have_elf=yes
  9423.     use_accel=no
  9424.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  9425. ***
  9426. *** In solaris hardware acceleration is disabled by default due to issues
  9427. *** with the assembler. Use --enable-hardware-acceleration to enable it.
  9428. *** " >&5
  9429. $as_echo "$as_me: WARNING:
  9430. ***
  9431. *** In solaris hardware acceleration is disabled by default due to issues
  9432. *** with the assembler. Use --enable-hardware-acceleration to enable it.
  9433. *** " >&2;}
  9434.   ;;
  9435.   *)
  9436.     have_elf=yes
  9437.   ;;
  9438. esac
  9439.  
  9440.  if test "$have_android" = yes; then
  9441.   ANDROID_TRUE=
  9442.   ANDROID_FALSE='#'
  9443. else
  9444.   ANDROID_TRUE='#'
  9445.   ANDROID_FALSE=
  9446. fi
  9447.  
  9448.  if test "$have_win" = yes; then
  9449.   WINDOWS_TRUE=
  9450.   WINDOWS_FALSE='#'
  9451. else
  9452.   WINDOWS_TRUE='#'
  9453.   WINDOWS_FALSE=
  9454. fi
  9455.  
  9456.  if test "$have_macosx" = yes; then
  9457.   MACOSX_TRUE=
  9458.   MACOSX_FALSE='#'
  9459. else
  9460.   MACOSX_TRUE='#'
  9461.   MACOSX_FALSE=
  9462. fi
  9463.  
  9464.  if test "$have_elf" = yes; then
  9465.   ELF_TRUE=
  9466.   ELF_FALSE='#'
  9467. else
  9468.   ELF_TRUE='#'
  9469.   ELF_FALSE=
  9470. fi
  9471.  
  9472.  
  9473. # Check whether --enable-hardware-acceleration was given.
  9474. if test "${enable_hardware_acceleration+set}" = set; then :
  9475.   enableval=$enable_hardware_acceleration; use_accel=$enableval
  9476. fi
  9477.  
  9478. hw_accel=none
  9479.  
  9480.  
  9481. use_padlock=no
  9482. if test "$use_accel" != "no"; then
  9483. case $host_cpu in
  9484.   armv8 | aarch64)
  9485.       hw_accel="aarch64"
  9486.       case $host_os in
  9487.         *_ilp32)
  9488.                   hw_accel="none"
  9489.         ;;
  9490.       esac
  9491.   ;;
  9492.   i?86 | x86_64 | amd64)
  9493.       for ac_header in cpuid.h
  9494. do :
  9495.   ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
  9496. if test "x$ac_cv_header_cpuid_h" = xyes; then :
  9497.   cat >>confdefs.h <<_ACEOF
  9498. #define HAVE_CPUID_H 1
  9499. _ACEOF
  9500.  
  9501. fi
  9502.  
  9503. done
  9504.  
  9505.       if test "$host_cpu" = "x86_64" || test "$host_cpu" = "amd64"; then
  9506.         hw_accel="x86-64"
  9507.       else
  9508.         hw_accel="x86"
  9509.       fi
  9510.       use_padlock=yes
  9511.   ;;
  9512.   *)
  9513.   ;;
  9514. esac
  9515.  
  9516. fi
  9517.  
  9518. ac_fn_c_check_member "$LINENO" "struct iovec" "iov_basea" "ac_cv_member_struct_iovec_iov_basea" "#include <sys/uio.h>
  9519.  
  9520. "
  9521. if test "x$ac_cv_member_struct_iovec_iov_basea" = xyes; then :
  9522.  
  9523. cat >>confdefs.h <<_ACEOF
  9524. #define HAVE_STRUCT_IOVEC_IOV_BASEA 1
  9525. _ACEOF
  9526.  
  9527.  
  9528.         DEFINE_IOVEC_T="#include <sys/uio.h>
  9529. typedef struct iovec giovec_t;"
  9530.  
  9531.  
  9532. else
  9533.  
  9534.         DEFINE_IOVEC_T="typedef struct {
  9535.    void *iov_base;
  9536.    size_t iov_len;
  9537. } giovec_t;"
  9538.  
  9539.  
  9540. fi
  9541.  
  9542.  
  9543.  
  9544. for ac_header in netinet/tcp.h
  9545. do :
  9546.   ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
  9547. if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
  9548.   cat >>confdefs.h <<_ACEOF
  9549. #define HAVE_NETINET_TCP_H 1
  9550. _ACEOF
  9551.  
  9552. fi
  9553.  
  9554. done
  9555.  
  9556. for ac_header in stdatomic.h
  9557. do :
  9558.   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
  9559. if test "x$ac_cv_header_stdatomic_h" = xyes; then :
  9560.   cat >>confdefs.h <<_ACEOF
  9561. #define HAVE_STDATOMIC_H 1
  9562. _ACEOF
  9563.  
  9564. fi
  9565.  
  9566. done
  9567.  
  9568.  
  9569. for ac_header in threads.h
  9570. do :
  9571.   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
  9572. if test "x$ac_cv_header_threads_h" = xyes; then :
  9573.   cat >>confdefs.h <<_ACEOF
  9574. #define HAVE_THREADS_H 1
  9575. _ACEOF
  9576.  
  9577. fi
  9578.  
  9579. done
  9580.  
  9581.  
  9582. # Check whether --enable-padlock was given.
  9583. if test "${enable_padlock+set}" = set; then :
  9584.   enableval=$enable_padlock; use_padlock=$enableval
  9585. fi
  9586.  
  9587.  
  9588. if test "$use_padlock" != "no"; then
  9589.  
  9590. $as_echo "#define ENABLE_PADLOCK 1" >>confdefs.h
  9591.  
  9592.  
  9593. fi
  9594.  if test "$use_padlock" = "yes"; then
  9595.   ENABLE_PADLOCK_TRUE=
  9596.   ENABLE_PADLOCK_FALSE='#'
  9597. else
  9598.   ENABLE_PADLOCK_TRUE='#'
  9599.   ENABLE_PADLOCK_FALSE=
  9600. fi
  9601.  
  9602.  if test x"$hw_accel" = x"aarch64"; then
  9603.   ASM_AARCH64_TRUE=
  9604.   ASM_AARCH64_FALSE='#'
  9605. else
  9606.   ASM_AARCH64_TRUE='#'
  9607.   ASM_AARCH64_FALSE=
  9608. fi
  9609.  
  9610.  if test x"$hw_accel" = x"x86-64"; then
  9611.   ASM_X86_64_TRUE=
  9612.   ASM_X86_64_FALSE='#'
  9613. else
  9614.   ASM_X86_64_TRUE='#'
  9615.   ASM_X86_64_FALSE=
  9616. fi
  9617.  
  9618.  if test x"$hw_accel" = x"x86"; then
  9619.   ASM_X86_32_TRUE=
  9620.   ASM_X86_32_FALSE='#'
  9621. else
  9622.   ASM_X86_32_TRUE='#'
  9623.   ASM_X86_32_FALSE=
  9624. fi
  9625.  
  9626.  if test x"$hw_accel" = x"x86" || test x"$hw_accel" = x"x86-64"; then
  9627.   ASM_X86_TRUE=
  9628.   ASM_X86_FALSE='#'
  9629. else
  9630.   ASM_X86_TRUE='#'
  9631.   ASM_X86_FALSE=
  9632. fi
  9633.  
  9634.  if test "$gnu89_inline" = "yes"]; then
  9635.   HAVE_GCC_GNU89_INLINE_OPTION_TRUE=
  9636.   HAVE_GCC_GNU89_INLINE_OPTION_FALSE='#'
  9637. else
  9638.   HAVE_GCC_GNU89_INLINE_OPTION_TRUE='#'
  9639.   HAVE_GCC_GNU89_INLINE_OPTION_FALSE=
  9640. fi
  9641.  
  9642.  if test "$GCC" = "yes"; then
  9643.   HAVE_GCC_TRUE=
  9644.   HAVE_GCC_FALSE='#'
  9645. else
  9646.   HAVE_GCC_TRUE='#'
  9647.   HAVE_GCC_FALSE=
  9648. fi
  9649.  
  9650.  
  9651. rnd_variant="auto-detect"
  9652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom" >&5
  9653. $as_echo_n "checking for getrandom... " >&6; }
  9654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9655. /* end confdefs.h.  */
  9656.  
  9657.            #include <sys/random.h>
  9658. int
  9659. main ()
  9660. {
  9661.  
  9662.                    getrandom(0, 0, 0);
  9663.  
  9664.   ;
  9665.   return 0;
  9666. }
  9667. _ACEOF
  9668. if ac_fn_c_try_link "$LINENO"; then :
  9669.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9670. $as_echo "yes" >&6; }
  9671.  
  9672. $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
  9673.  
  9674.                    rnd_variant=getrandom
  9675. else
  9676.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9677. $as_echo "no" >&6; }
  9678. fi
  9679. rm -f core conftest.err conftest.$ac_objext \
  9680.     conftest$ac_exeext conftest.$ac_ext
  9681.  
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getentropy" >&5
  9683. $as_echo_n "checking for getentropy... " >&6; }
  9684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9685. /* end confdefs.h.  */
  9686.  
  9687.            #include <unistd.h>
  9688.            #ifdef __linux__
  9689.            #error 1
  9690.            #endif
  9691.  
  9692. int
  9693. main ()
  9694. {
  9695.  
  9696.                    getentropy(0, 0);
  9697.  
  9698.   ;
  9699.   return 0;
  9700. }
  9701. _ACEOF
  9702. if ac_fn_c_try_link "$LINENO"; then :
  9703.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9704. $as_echo "yes" >&6; }
  9705.  
  9706. $as_echo "#define HAVE_GETENTROPY 1" >>confdefs.h
  9707.  
  9708.                    rnd_variant=getentropy
  9709. else
  9710.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9711. $as_echo "no" >&6; }
  9712. fi
  9713. rm -f core conftest.err conftest.$ac_objext \
  9714.     conftest$ac_exeext conftest.$ac_ext
  9715.  
  9716.  if test "$rnd_variant" = "getentropy"; then
  9717.   HAVE_GETENTROPY_TRUE=
  9718.   HAVE_GETENTROPY_FALSE='#'
  9719. else
  9720.   HAVE_GETENTROPY_TRUE='#'
  9721.   HAVE_GETENTROPY_FALSE=
  9722. fi
  9723.  
  9724.  
  9725.  
  9726.   # Library code modified:                              REVISION++
  9727.   # Interfaces changed/added/removed:   CURRENT++       REVISION=0
  9728.   # Interfaces added:                             AGE++
  9729.   #   + add new version symbol in libgnutls.map, see Symbol and library versioning
  9730.   #     in CONTRIBUTION.md for more info.
  9731.   #
  9732.   # Interfaces removed:                           AGE=0 (+bump all symbol versions in .map)
  9733.   LT_CURRENT=50
  9734.  
  9735.   LT_REVISION=2
  9736.  
  9737.   LT_AGE=20
  9738.  
  9739.  
  9740.   LT_SSL_CURRENT=27
  9741.  
  9742.   LT_SSL_REVISION=2
  9743.  
  9744.   LT_SSL_AGE=0
  9745.  
  9746.  
  9747.   LT_DANE_CURRENT=4
  9748.  
  9749.   LT_DANE_REVISION=1
  9750.  
  9751.   LT_DANE_AGE=4
  9752.  
  9753.  
  9754.   LT_XSSL_CURRENT=0
  9755.  
  9756.   LT_XSSL_REVISION=0
  9757.  
  9758.   LT_XSSL_AGE=0
  9759.  
  9760.  
  9761.   CXX_LT_CURRENT=29
  9762.  
  9763.   CXX_LT_REVISION=0
  9764.  
  9765.   CXX_LT_AGE=1
  9766.  
  9767.  
  9768.   CRYWRAP_PATCHLEVEL=3
  9769.  
  9770.  
  9771.   # Used when creating the Windows libgnutls-XX.def files.
  9772.   DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
  9773.  
  9774.   DLL_SSL_VERSION=`expr ${LT_SSL_CURRENT} - ${LT_SSL_AGE}`
  9775.  
  9776.  
  9777.  
  9778. pkg_failed=no
  9779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NETTLE" >&5
  9780. $as_echo_n "checking for NETTLE... " >&6; }
  9781.  
  9782. if test -n "$PKG_CONFIG"; then
  9783.     if test -n "$NETTLE_CFLAGS"; then
  9784.         pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
  9785.     else
  9786.         if test -n "$PKG_CONFIG" && \
  9787.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 3.1\""; } >&5
  9788.   ($PKG_CONFIG --exists --print-errors "nettle >= 3.1") 2>&5
  9789.   ac_status=$?
  9790.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9791.   test $ac_status = 0; }; then
  9792.   pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle >= 3.1" 2>/dev/null`
  9793. else
  9794.   pkg_failed=yes
  9795. fi
  9796.     fi
  9797. else
  9798.         pkg_failed=untried
  9799. fi
  9800. if test -n "$PKG_CONFIG"; then
  9801.     if test -n "$NETTLE_LIBS"; then
  9802.         pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
  9803.     else
  9804.         if test -n "$PKG_CONFIG" && \
  9805.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 3.1\""; } >&5
  9806.   ($PKG_CONFIG --exists --print-errors "nettle >= 3.1") 2>&5
  9807.   ac_status=$?
  9808.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9809.   test $ac_status = 0; }; then
  9810.   pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle >= 3.1" 2>/dev/null`
  9811. else
  9812.   pkg_failed=yes
  9813. fi
  9814.     fi
  9815. else
  9816.         pkg_failed=untried
  9817. fi
  9818.  
  9819.  
  9820.  
  9821. if test $pkg_failed = yes; then
  9822.  
  9823. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9824.         _pkg_short_errors_supported=yes
  9825. else
  9826.         _pkg_short_errors_supported=no
  9827. fi
  9828.         if test $_pkg_short_errors_supported = yes; then
  9829.                 NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nettle >= 3.1"`
  9830.         else
  9831.                 NETTLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nettle >= 3.1"`
  9832.         fi
  9833.         # Put the nasty error message in config.log where it belongs
  9834.         echo "$NETTLE_PKG_ERRORS" >&5
  9835.  
  9836.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9837. $as_echo "no" >&6; }
  9838.  
  9839. as_fn_error $? "
  9840.  ***
  9841.  *** Libnettle 3.1 was not found.
  9842. " "$LINENO" 5
  9843.  
  9844. elif test $pkg_failed = untried; then
  9845.  
  9846. as_fn_error $? "
  9847.  ***
  9848.  *** Libnettle 3.1 was not found.
  9849. " "$LINENO" 5
  9850.  
  9851. else
  9852.         NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
  9853.         NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
  9854.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9855. $as_echo "yes" >&6; }
  9856.         cryptolib="nettle"
  9857. fi
  9858.  
  9859. pkg_failed=no
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HOGWEED" >&5
  9861. $as_echo_n "checking for HOGWEED... " >&6; }
  9862.  
  9863. if test -n "$PKG_CONFIG"; then
  9864.     if test -n "$HOGWEED_CFLAGS"; then
  9865.         pkg_cv_HOGWEED_CFLAGS="$HOGWEED_CFLAGS"
  9866.     else
  9867.         if test -n "$PKG_CONFIG" && \
  9868.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 3.1\""; } >&5
  9869.   ($PKG_CONFIG --exists --print-errors "hogweed >= 3.1") 2>&5
  9870.   ac_status=$?
  9871.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9872.   test $ac_status = 0; }; then
  9873.   pkg_cv_HOGWEED_CFLAGS=`$PKG_CONFIG --cflags "hogweed >= 3.1" 2>/dev/null`
  9874. else
  9875.   pkg_failed=yes
  9876. fi
  9877.     fi
  9878. else
  9879.         pkg_failed=untried
  9880. fi
  9881. if test -n "$PKG_CONFIG"; then
  9882.     if test -n "$HOGWEED_LIBS"; then
  9883.         pkg_cv_HOGWEED_LIBS="$HOGWEED_LIBS"
  9884.     else
  9885.         if test -n "$PKG_CONFIG" && \
  9886.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 3.1\""; } >&5
  9887.   ($PKG_CONFIG --exists --print-errors "hogweed >= 3.1") 2>&5
  9888.   ac_status=$?
  9889.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9890.   test $ac_status = 0; }; then
  9891.   pkg_cv_HOGWEED_LIBS=`$PKG_CONFIG --libs "hogweed >= 3.1" 2>/dev/null`
  9892. else
  9893.   pkg_failed=yes
  9894. fi
  9895.     fi
  9896. else
  9897.         pkg_failed=untried
  9898. fi
  9899.  
  9900.  
  9901.  
  9902. if test $pkg_failed = yes; then
  9903.  
  9904. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9905.         _pkg_short_errors_supported=yes
  9906. else
  9907.         _pkg_short_errors_supported=no
  9908. fi
  9909.         if test $_pkg_short_errors_supported = yes; then
  9910.                 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hogweed >= 3.1"`
  9911.         else
  9912.                 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hogweed >= 3.1"`
  9913.         fi
  9914.         # Put the nasty error message in config.log where it belongs
  9915.         echo "$HOGWEED_PKG_ERRORS" >&5
  9916.  
  9917.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9918. $as_echo "no" >&6; }
  9919.  
  9920. as_fn_error $? "
  9921.  ***
  9922.  *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
  9923. " "$LINENO" 5
  9924.  
  9925. elif test $pkg_failed = untried; then
  9926.  
  9927. as_fn_error $? "
  9928.  ***
  9929.  *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
  9930. " "$LINENO" 5
  9931.  
  9932. else
  9933.         HOGWEED_CFLAGS=$pkg_cv_HOGWEED_CFLAGS
  9934.         HOGWEED_LIBS=$pkg_cv_HOGWEED_LIBS
  9935.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9936. $as_echo "yes" >&6; }
  9937.         :
  9938. fi
  9939.    if test "$cryptolib" = "nettle"; then
  9940.   ENABLE_NETTLE_TRUE=
  9941.   ENABLE_NETTLE_FALSE='#'
  9942. else
  9943.   ENABLE_NETTLE_TRUE='#'
  9944.   ENABLE_NETTLE_FALSE=
  9945. fi
  9946.  
  9947.  
  9948. $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
  9949.  
  9950.  
  9951.   GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed"
  9952.  
  9953.  
  9954. # Check whether --with-nettle-mini was given.
  9955. if test "${with_nettle_mini+set}" = set; then :
  9956.   withval=$with_nettle_mini; mini_nettle=$withval
  9957. else
  9958.   mini_nettle=no
  9959. fi
  9960.  
  9961.  
  9962.  
  9963.  
  9964.   if test "$mini_nettle" != no;then
  9965.     GMP_CFLAGS=""
  9966.     GMP_LIBS=""
  9967.   else
  9968.     if test x$GMP_LIBS = x; then
  9969.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_cmp in -lgmp" >&5
  9970. $as_echo_n "checking for __gmpz_cmp in -lgmp... " >&6; }
  9971. if ${ac_cv_lib_gmp___gmpz_cmp+:} false; then :
  9972.   $as_echo_n "(cached) " >&6
  9973. else
  9974.   ac_check_lib_save_LIBS=$LIBS
  9975. LIBS="-lgmp  $LIBS"
  9976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9977. /* end confdefs.h.  */
  9978.  
  9979. /* Override any GCC internal prototype to avoid an error.
  9980.    Use char because int might match the return type of a GCC
  9981.    builtin and then its argument prototype would still apply.  */
  9982. #ifdef __cplusplus
  9983. extern "C"
  9984. #endif
  9985. char __gmpz_cmp ();
  9986. int
  9987. main ()
  9988. {
  9989. return __gmpz_cmp ();
  9990.   ;
  9991.   return 0;
  9992. }
  9993. _ACEOF
  9994. if ac_fn_c_try_link "$LINENO"; then :
  9995.   ac_cv_lib_gmp___gmpz_cmp=yes
  9996. else
  9997.   ac_cv_lib_gmp___gmpz_cmp=no
  9998. fi
  9999. rm -f core conftest.err conftest.$ac_objext \
  10000.     conftest$ac_exeext conftest.$ac_ext
  10001. LIBS=$ac_check_lib_save_LIBS
  10002. fi
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_cmp" >&5
  10004. $as_echo "$ac_cv_lib_gmp___gmpz_cmp" >&6; }
  10005. if test "x$ac_cv_lib_gmp___gmpz_cmp" = xyes; then :
  10006.   GMP_LIBS="-lgmp"
  10007. else
  10008.   as_fn_error $? "
  10009. ***
  10010. *** gmp was not found.
  10011. " "$LINENO" 5
  10012. fi
  10013.  
  10014.     fi
  10015.   fi
  10016.  
  10017.  
  10018.  
  10019. LIBTASN1_MINIMUM=4.9
  10020.  
  10021. # Check whether --with-included-libtasn1 was given.
  10022. if test "${with_included_libtasn1+set}" = set; then :
  10023.   withval=$with_included_libtasn1; included_libtasn1=$withval
  10024. else
  10025.   included_libtasn1=no
  10026. fi
  10027.  
  10028.   if test "$included_libtasn1" = "no"; then
  10029.  
  10030. pkg_failed=no
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTASN1" >&5
  10032. $as_echo_n "checking for LIBTASN1... " >&6; }
  10033.  
  10034. if test -n "$PKG_CONFIG"; then
  10035.     if test -n "$LIBTASN1_CFLAGS"; then
  10036.         pkg_cv_LIBTASN1_CFLAGS="$LIBTASN1_CFLAGS"
  10037.     else
  10038.         if test -n "$PKG_CONFIG" && \
  10039.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= \$LIBTASN1_MINIMUM\""; } >&5
  10040.   ($PKG_CONFIG --exists --print-errors "libtasn1 >= $LIBTASN1_MINIMUM") 2>&5
  10041.   ac_status=$?
  10042.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10043.   test $ac_status = 0; }; then
  10044.   pkg_cv_LIBTASN1_CFLAGS=`$PKG_CONFIG --cflags "libtasn1 >= $LIBTASN1_MINIMUM" 2>/dev/null`
  10045. else
  10046.   pkg_failed=yes
  10047. fi
  10048.     fi
  10049. else
  10050.         pkg_failed=untried
  10051. fi
  10052. if test -n "$PKG_CONFIG"; then
  10053.     if test -n "$LIBTASN1_LIBS"; then
  10054.         pkg_cv_LIBTASN1_LIBS="$LIBTASN1_LIBS"
  10055.     else
  10056.         if test -n "$PKG_CONFIG" && \
  10057.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= \$LIBTASN1_MINIMUM\""; } >&5
  10058.   ($PKG_CONFIG --exists --print-errors "libtasn1 >= $LIBTASN1_MINIMUM") 2>&5
  10059.   ac_status=$?
  10060.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10061.   test $ac_status = 0; }; then
  10062.   pkg_cv_LIBTASN1_LIBS=`$PKG_CONFIG --libs "libtasn1 >= $LIBTASN1_MINIMUM" 2>/dev/null`
  10063. else
  10064.   pkg_failed=yes
  10065. fi
  10066.     fi
  10067. else
  10068.         pkg_failed=untried
  10069. fi
  10070.  
  10071.  
  10072.  
  10073. if test $pkg_failed = yes; then
  10074.  
  10075. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10076.         _pkg_short_errors_supported=yes
  10077. else
  10078.         _pkg_short_errors_supported=no
  10079. fi
  10080.         if test $_pkg_short_errors_supported = yes; then
  10081.                 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libtasn1 >= $LIBTASN1_MINIMUM"`
  10082.         else
  10083.                 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libtasn1 >= $LIBTASN1_MINIMUM"`
  10084.         fi
  10085.         # Put the nasty error message in config.log where it belongs
  10086.         echo "$LIBTASN1_PKG_ERRORS" >&5
  10087.  
  10088.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10089. $as_echo "no" >&6; }
  10090.                 included_libtasn1=yes
  10091. elif test $pkg_failed = untried; then
  10092.         included_libtasn1=yes
  10093. else
  10094.         LIBTASN1_CFLAGS=$pkg_cv_LIBTASN1_CFLAGS
  10095.         LIBTASN1_LIBS=$pkg_cv_LIBTASN1_LIBS
  10096.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10097. $as_echo "yes" >&6; }
  10098.         :
  10099. fi
  10100.     if test "$included_libtasn1" = yes; then
  10101.       as_fn_error $? "
  10102.  ***
  10103.  *** Libtasn1 $LIBTASN1_MINIMUM was not found. To use the included one, use --with-included-libtasn1
  10104.  " "$LINENO" 5
  10105.     fi
  10106.   fi
  10107.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
  10108. $as_echo_n "checking whether to use the included minitasn1... " >&6; }
  10109.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
  10110. $as_echo "$included_libtasn1" >&6; }
  10111.    if test "$included_libtasn1" = "yes"; then
  10112.   ENABLE_MINITASN1_TRUE=
  10113.   ENABLE_MINITASN1_FALSE='#'
  10114. else
  10115.   ENABLE_MINITASN1_TRUE='#'
  10116.   ENABLE_MINITASN1_FALSE=
  10117. fi
  10118.  
  10119.  
  10120.   if test "$included_libtasn1" = "no"; then
  10121.     GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
  10122.   fi
  10123.  
  10124.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
  10125. $as_echo_n "checking whether C99 macros are supported... " >&6; }
  10126.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10127. /* end confdefs.h.  */
  10128.  
  10129. int
  10130. main ()
  10131. {
  10132.  
  10133.     #define test_mac(...)
  10134.     int z,y,x;
  10135.     test_mac(x,y,z);
  10136.     return 0;
  10137.  
  10138.   ;
  10139.   return 0;
  10140. }
  10141. _ACEOF
  10142. if ac_fn_c_try_compile "$LINENO"; then :
  10143.  
  10144.  
  10145. $as_echo "#define C99_MACROS 1" >>confdefs.h
  10146.  
  10147.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10148. $as_echo "yes" >&6; }
  10149.  
  10150. else
  10151.  
  10152.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10153. $as_echo "no" >&6; }
  10154.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
  10155. $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
  10156.  
  10157. fi
  10158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10159.  
  10160.   ac_allow_sha1=no
  10161.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow SHA1 as an acceptable hash for cert digital signatures" >&5
  10162. $as_echo_n "checking whether to allow SHA1 as an acceptable hash for cert digital signatures... " >&6; }
  10163.   # Check whether --enable-sha1-support was given.
  10164. if test "${enable_sha1_support+set}" = set; then :
  10165.   enableval=$enable_sha1_support; ac_allow_sha1=$enableval
  10166. fi
  10167.  
  10168.   if test x$ac_allow_sha1 != xno; then
  10169.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10170. $as_echo "no" >&6; }
  10171.  
  10172. $as_echo "#define ALLOW_SHA1 1" >>confdefs.h
  10173.  
  10174.   else
  10175.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10176. $as_echo "yes" >&6; }
  10177.   fi
  10178.    if test "$ac_allow_sha1" != "no"; then
  10179.   ALLOW_SHA1_TRUE=
  10180.   ALLOW_SHA1_FALSE='#'
  10181. else
  10182.   ALLOW_SHA1_TRUE='#'
  10183.   ALLOW_SHA1_FALSE=
  10184. fi
  10185.  
  10186.  
  10187.   ac_enable_ssl3=yes
  10188.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable the SSL 3.0 protocol" >&5
  10189. $as_echo_n "checking whether to disable the SSL 3.0 protocol... " >&6; }
  10190.   # Check whether --enable-ssl3-support was given.
  10191. if test "${enable_ssl3_support+set}" = set; then :
  10192.   enableval=$enable_ssl3_support; ac_enable_ssl3=$enableval
  10193. fi
  10194.  
  10195.   if test x$ac_enable_ssl3 != xno; then
  10196.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10197. $as_echo "no" >&6; }
  10198.  
  10199. $as_echo "#define ENABLE_SSL3 1" >>confdefs.h
  10200.  
  10201.   else
  10202.    ac_full=0
  10203.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10204. $as_echo "yes" >&6; }
  10205.   fi
  10206.    if test "$ac_enable_ssl3" != "no"; then
  10207.   ENABLE_SSL3_TRUE=
  10208.   ENABLE_SSL3_FALSE='#'
  10209. else
  10210.   ENABLE_SSL3_TRUE='#'
  10211.   ENABLE_SSL3_FALSE=
  10212. fi
  10213.  
  10214.  
  10215.   ac_enable_ssl2=yes
  10216.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable the SSL 2.0 client hello" >&5
  10217. $as_echo_n "checking whether to disable the SSL 2.0 client hello... " >&6; }
  10218.   # Check whether --enable-ssl2-support was given.
  10219. if test "${enable_ssl2_support+set}" = set; then :
  10220.   enableval=$enable_ssl2_support; ac_enable_ssl2=$enableval
  10221. fi
  10222.  
  10223.   if test x$ac_enable_ssl2 != xno; then
  10224.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10225. $as_echo "no" >&6; }
  10226.  
  10227. $as_echo "#define ENABLE_SSL2 1" >>confdefs.h
  10228.  
  10229.   else
  10230.    ac_full=0
  10231.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10232. $as_echo "yes" >&6; }
  10233.   fi
  10234.    if test "$ac_enable_ssl2" != "no"; then
  10235.   ENABLE_SSL3_TRUE=
  10236.   ENABLE_SSL3_FALSE='#'
  10237. else
  10238.   ENABLE_SSL3_TRUE='#'
  10239.   ENABLE_SSL3_FALSE=
  10240. fi
  10241.  
  10242.  
  10243.   ac_enable_srtp=yes
  10244.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DTLS-SRTP extension" >&5
  10245. $as_echo_n "checking whether to disable DTLS-SRTP extension... " >&6; }
  10246.   # Check whether --enable-dtls-srtp-support was given.
  10247. if test "${enable_dtls_srtp_support+set}" = set; then :
  10248.   enableval=$enable_dtls_srtp_support; ac_enable_srtp=$enableval
  10249. fi
  10250.  
  10251.   if test x$ac_enable_srtp != xno; then
  10252.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10253. $as_echo "no" >&6; }
  10254.  
  10255. $as_echo "#define ENABLE_DTLS_SRTP 1" >>confdefs.h
  10256.  
  10257.   else
  10258.    ac_full=0
  10259.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10260. $as_echo "yes" >&6; }
  10261.   fi
  10262.    if test "$ac_enable_srtp" != "no"; then
  10263.   ENABLE_DTLS_SRTP_TRUE=
  10264.   ENABLE_DTLS_SRTP_FALSE='#'
  10265. else
  10266.   ENABLE_DTLS_SRTP_TRUE='#'
  10267.   ENABLE_DTLS_SRTP_FALSE=
  10268. fi
  10269.  
  10270.  
  10271.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ALPN extension" >&5
  10272. $as_echo_n "checking whether to disable ALPN extension... " >&6; }
  10273.   # Check whether --enable-alpn-support was given.
  10274. if test "${enable_alpn_support+set}" = set; then :
  10275.   enableval=$enable_alpn_support; ac_enable_alpn=$enableval
  10276. else
  10277.   ac_enable_alpn=yes
  10278. fi
  10279.  
  10280.   if test x$ac_enable_alpn != xno; then
  10281.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10282. $as_echo "no" >&6; }
  10283.  
  10284. $as_echo "#define ENABLE_ALPN 1" >>confdefs.h
  10285.  
  10286.   else
  10287.    ac_full=0
  10288.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10289. $as_echo "yes" >&6; }
  10290.   fi
  10291.    if test "$ac_enable_alpn" != "no"; then
  10292.   ENABLE_ALPN_TRUE=
  10293.   ENABLE_ALPN_FALSE='#'
  10294. else
  10295.   ENABLE_ALPN_TRUE='#'
  10296.   ENABLE_ALPN_FALSE=
  10297. fi
  10298.  
  10299.  
  10300.   ac_enable_heartbeat=yes
  10301.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS heartbeat support" >&5
  10302. $as_echo_n "checking whether to enable TLS heartbeat support... " >&6; }
  10303.   # Check whether --enable-heartbeat-support was given.
  10304. if test "${enable_heartbeat_support+set}" = set; then :
  10305.   enableval=$enable_heartbeat_support; ac_enable_heartbeat=$enableval
  10306. fi
  10307.  
  10308.   if test x$ac_enable_heartbeat != xno; then
  10309.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10310. $as_echo "yes" >&6; }
  10311.  
  10312. $as_echo "#define ENABLE_HEARTBEAT 1" >>confdefs.h
  10313.  
  10314.   else
  10315.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10316. $as_echo "no" >&6; }
  10317.   fi
  10318.    if test "$ac_enable_heartbeat" != "no"; then
  10319.   ENABLE_HEARTBEAT_TRUE=
  10320.   ENABLE_HEARTBEAT_FALSE='#'
  10321. else
  10322.   ENABLE_HEARTBEAT_TRUE='#'
  10323.   ENABLE_HEARTBEAT_FALSE=
  10324. fi
  10325.  
  10326.  
  10327.   ac_enable_srp=yes
  10328.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
  10329. $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
  10330.   # Check whether --enable-srp-authentication was given.
  10331. if test "${enable_srp_authentication+set}" = set; then :
  10332.   enableval=$enable_srp_authentication; ac_enable_srp=$enableval
  10333. fi
  10334.  
  10335.   if test x$ac_enable_srp != xno; then
  10336.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10337. $as_echo "no" >&6; }
  10338.  
  10339. $as_echo "#define ENABLE_SRP 1" >>confdefs.h
  10340.  
  10341.   else
  10342.    ac_full=0
  10343.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10344. $as_echo "yes" >&6; }
  10345.   fi
  10346.    if test "$ac_enable_srp" != "no"; then
  10347.   ENABLE_SRP_TRUE=
  10348.   ENABLE_SRP_FALSE='#'
  10349. else
  10350.   ENABLE_SRP_TRUE='#'
  10351.   ENABLE_SRP_FALSE=
  10352. fi
  10353.  
  10354.  
  10355.   ac_enable_psk=yes
  10356.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
  10357. $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
  10358.   # Check whether --enable-psk-authentication was given.
  10359. if test "${enable_psk_authentication+set}" = set; then :
  10360.   enableval=$enable_psk_authentication; ac_enable_psk=$enableval
  10361. fi
  10362.  
  10363.   if test x$ac_enable_psk != xno; then
  10364.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10365. $as_echo "no" >&6; }
  10366.  
  10367. $as_echo "#define ENABLE_PSK 1" >>confdefs.h
  10368.  
  10369.   else
  10370.    ac_full=0
  10371.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10372. $as_echo "yes" >&6; }
  10373.   fi
  10374.    if test "$ac_enable_psk" != "no"; then
  10375.   ENABLE_PSK_TRUE=
  10376.   ENABLE_PSK_FALSE='#'
  10377. else
  10378.   ENABLE_PSK_TRUE='#'
  10379.   ENABLE_PSK_FALSE=
  10380. fi
  10381.  
  10382.  
  10383.   ac_enable_anon=yes
  10384.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
  10385. $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
  10386.   # Check whether --enable-anon-authentication was given.
  10387. if test "${enable_anon_authentication+set}" = set; then :
  10388.   enableval=$enable_anon_authentication; ac_enable_anon=$enableval
  10389. fi
  10390.  
  10391.   if test x$ac_enable_anon != xno; then
  10392.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10393. $as_echo "no" >&6; }
  10394.  
  10395. $as_echo "#define ENABLE_ANON 1" >>confdefs.h
  10396.  
  10397.   else
  10398.    ac_full=0
  10399.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10400. $as_echo "yes" >&6; }
  10401.   fi
  10402.    if test "$ac_enable_anon" != "no"; then
  10403.   ENABLE_ANON_TRUE=
  10404.   ENABLE_ANON_FALSE='#'
  10405. else
  10406.   ENABLE_ANON_TRUE='#'
  10407.   ENABLE_ANON_FALSE=
  10408. fi
  10409.  
  10410.  
  10411.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DHE support" >&5
  10412. $as_echo_n "checking whether to disable DHE support... " >&6; }
  10413.   # Check whether --enable-dhe was given.
  10414. if test "${enable_dhe+set}" = set; then :
  10415.   enableval=$enable_dhe; ac_enable_dhe=$enableval
  10416. else
  10417.   ac_enable_dhe=yes
  10418. fi
  10419.  
  10420.   if test x$ac_enable_dhe != xno; then
  10421.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10422. $as_echo "no" >&6; }
  10423.  
  10424. $as_echo "#define ENABLE_DHE 1" >>confdefs.h
  10425.  
  10426.   else
  10427.    ac_full=0
  10428.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10429. $as_echo "yes" >&6; }
  10430.   fi
  10431.    if test "$ac_enable_dhe" != "no"; then
  10432.   ENABLE_DHE_TRUE=
  10433.   ENABLE_DHE_FALSE='#'
  10434. else
  10435.   ENABLE_DHE_TRUE='#'
  10436.   ENABLE_DHE_FALSE=
  10437. fi
  10438.  
  10439.  
  10440.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ECDHE support" >&5
  10441. $as_echo_n "checking whether to disable ECDHE support... " >&6; }
  10442.   # Check whether --enable-ecdhe was given.
  10443. if test "${enable_ecdhe+set}" = set; then :
  10444.   enableval=$enable_ecdhe; ac_enable_ecdhe=$enableval
  10445. else
  10446.   ac_enable_ecdhe=yes
  10447. fi
  10448.  
  10449.   if test x$ac_enable_ecdhe != xno; then
  10450.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10451. $as_echo "no" >&6; }
  10452.  
  10453. $as_echo "#define ENABLE_ECDHE 1" >>confdefs.h
  10454.  
  10455.   else
  10456.    ac_full=0
  10457.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10458. $as_echo "yes" >&6; }
  10459.   fi
  10460.    if test "$ac_enable_ecdhe" != "no"; then
  10461.   ENABLE_ECDHE_TRUE=
  10462.   ENABLE_ECDHE_FALSE='#'
  10463. else
  10464.   ENABLE_ECDHE_TRUE='#'
  10465.   ENABLE_ECDHE_FALSE=
  10466. fi
  10467.  
  10468.  
  10469.   # For cryptodev
  10470.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
  10471. $as_echo_n "checking whether to add cryptodev support... " >&6; }
  10472.   # Check whether --enable-cryptodev was given.
  10473. if test "${enable_cryptodev+set}" = set; then :
  10474.   enableval=$enable_cryptodev; enable_cryptodev=$enableval
  10475. else
  10476.   enable_cryptodev=no
  10477. fi
  10478.  
  10479.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
  10480. $as_echo "$enable_cryptodev" >&6; }
  10481.  
  10482.   if test "$enable_cryptodev" = "yes"; then
  10483.  
  10484. $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
  10485.  
  10486.   fi
  10487.  
  10488.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OCSP support" >&5
  10489. $as_echo_n "checking whether to disable OCSP support... " >&6; }
  10490.   # Check whether --enable-ocsp was given.
  10491. if test "${enable_ocsp+set}" = set; then :
  10492.   enableval=$enable_ocsp; ac_enable_ocsp=$enableval
  10493. else
  10494.   ac_enable_ocsp=yes
  10495. fi
  10496.  
  10497.   if test x$ac_enable_ocsp != xno; then
  10498.    ac_enable_ocsp=yes
  10499.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10500. $as_echo "no" >&6; }
  10501.  
  10502. $as_echo "#define ENABLE_OCSP 1" >>confdefs.h
  10503.  
  10504.   else
  10505.    ac_full=0
  10506.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10507. $as_echo "yes" >&6; }
  10508.   fi
  10509.    if test "$ac_enable_ocsp" != "no"; then
  10510.   ENABLE_OCSP_TRUE=
  10511.   ENABLE_OCSP_FALSE='#'
  10512. else
  10513.   ENABLE_OCSP_TRUE='#'
  10514.   ENABLE_OCSP_FALSE=
  10515. fi
  10516.  
  10517.  
  10518.  
  10519.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable session tickets support" >&5
  10520. $as_echo_n "checking whether to disable session tickets support... " >&6; }
  10521.   # Check whether --enable-session-tickets was given.
  10522. if test "${enable_session_tickets+set}" = set; then :
  10523.   enableval=$enable_session_tickets; ac_enable_session_tickets=$enableval
  10524. else
  10525.   ac_enable_session_tickets=yes
  10526. fi
  10527.  
  10528.   if test x$ac_enable_session_tickets != xno; then
  10529.    ac_enable_session_tickets=yes
  10530.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10531. $as_echo "no" >&6; }
  10532.  
  10533. $as_echo "#define ENABLE_SESSION_TICKETS 1" >>confdefs.h
  10534.  
  10535.   else
  10536.    ac_full=0
  10537.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10538. $as_echo "yes" >&6; }
  10539.   fi
  10540.    if test "$ac_enable_session_tickets" != "no"; then
  10541.   ENABLE_SESSION_TICKETS_TRUE=
  10542.   ENABLE_SESSION_TICKETS_FALSE='#'
  10543. else
  10544.   ENABLE_SESSION_TICKETS_TRUE='#'
  10545.   ENABLE_SESSION_TICKETS_FALSE=
  10546. fi
  10547.  
  10548.  
  10549.   # For storing integers in pointers without warnings
  10550.   # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
  10551.   # The cast to long int works around a bug in the HP C Compiler
  10552. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10553. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10554. # This bug is HP SR number 8606223364.
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  10556. $as_echo_n "checking size of void *... " >&6; }
  10557. if ${ac_cv_sizeof_void_p+:} false; then :
  10558.   $as_echo_n "(cached) " >&6
  10559. else
  10560.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
  10561.  
  10562. else
  10563.   if test "$ac_cv_type_void_p" = yes; then
  10564.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10565. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10566. as_fn_error 77 "cannot compute sizeof (void *)
  10567. See \`config.log' for more details" "$LINENO" 5; }
  10568.   else
  10569.     ac_cv_sizeof_void_p=0
  10570.   fi
  10571. fi
  10572.  
  10573. fi
  10574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  10575. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  10576.  
  10577.  
  10578.  
  10579. cat >>confdefs.h <<_ACEOF
  10580. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  10581. _ACEOF
  10582.  
  10583.  
  10584.  # The cast to long int works around a bug in the HP C Compiler
  10585. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10586. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10587. # This bug is HP SR number 8606223364.
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  10589. $as_echo_n "checking size of long long... " >&6; }
  10590. if ${ac_cv_sizeof_long_long+:} false; then :
  10591.  $as_echo_n "(cached) " >&6
  10592. else
  10593.  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
  10594.  
  10595. else
  10596.  if test "$ac_cv_type_long_long" = yes; then
  10597.     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10598. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10599. as_fn_error 77 "cannot compute sizeof (long long)
  10600. See \`config.log' for more details" "$LINENO" 5; }
  10601.   else
  10602.     ac_cv_sizeof_long_long=0
  10603.   fi
  10604. fi
  10605.  
  10606. fi
  10607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  10608. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  10609.  
  10610.  
  10611.  
  10612. cat >>confdefs.h <<_ACEOF
  10613. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10614. _ACEOF
  10615.  
  10616.  
  10617.  # The cast to long int works around a bug in the HP C Compiler
  10618. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10619. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10620. # This bug is HP SR number 8606223364.
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10622. $as_echo_n "checking size of long... " >&6; }
  10623. if ${ac_cv_sizeof_long+:} false; then :
  10624.   $as_echo_n "(cached) " >&6
  10625. else
  10626.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
  10627.  
  10628. else
  10629.   if test "$ac_cv_type_long" = yes; then
  10630.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10631. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10632. as_fn_error 77 "cannot compute sizeof (long)
  10633. See \`config.log' for more details" "$LINENO" 5; }
  10634.   else
  10635.     ac_cv_sizeof_long=0
  10636.   fi
  10637. fi
  10638.  
  10639. fi
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10641. $as_echo "$ac_cv_sizeof_long" >&6; }
  10642.  
  10643.  
  10644.  
  10645. cat >>confdefs.h <<_ACEOF
  10646. #define SIZEOF_LONG $ac_cv_sizeof_long
  10647. _ACEOF
  10648.  
  10649.  
  10650.  # The cast to long int works around a bug in the HP C Compiler
  10651. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10652. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10653. # This bug is HP SR number 8606223364.
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10655. $as_echo_n "checking size of int... " >&6; }
  10656. if ${ac_cv_sizeof_int+:} false; then :
  10657.  $as_echo_n "(cached) " >&6
  10658. else
  10659.  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
  10660.  
  10661. else
  10662.  if test "$ac_cv_type_int" = yes; then
  10663.     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10664. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10665. as_fn_error 77 "cannot compute sizeof (int)
  10666. See \`config.log' for more details" "$LINENO" 5; }
  10667.   else
  10668.     ac_cv_sizeof_int=0
  10669.   fi
  10670. fi
  10671.  
  10672. fi
  10673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10674. $as_echo "$ac_cv_sizeof_int" >&6; }
  10675.  
  10676.  
  10677.  
  10678. cat >>confdefs.h <<_ACEOF
  10679. #define SIZEOF_INT $ac_cv_sizeof_int
  10680. _ACEOF
  10681.  
  10682.  
  10683.  if test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long;then
  10684.  
  10685. $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
  10686.  
  10687.  elif test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long_long;then
  10688.  
  10689. $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long long)" >>confdefs.h
  10690.  
  10691.   else
  10692.      $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
  10693.  
  10694.   fi
  10695.  
  10696.  
  10697.  
  10698.  GNULIB_CHDIR=0;
  10699.  GNULIB_CHOWN=0;
  10700.  GNULIB_CLOSE=0;
  10701.  GNULIB_DUP=0;
  10702.  GNULIB_DUP2=0;
  10703.  GNULIB_DUP3=0;
  10704.  GNULIB_ENVIRON=0;
  10705.  GNULIB_EUIDACCESS=0;
  10706.  GNULIB_FACCESSAT=0;
  10707.  GNULIB_FCHDIR=0;
  10708.  GNULIB_FCHOWNAT=0;
  10709.  GNULIB_FDATASYNC=0;
  10710.  GNULIB_FSYNC=0;
  10711.  GNULIB_FTRUNCATE=0;
  10712.  GNULIB_GETCWD=0;
  10713.  GNULIB_GETDOMAINNAME=0;
  10714.  GNULIB_GETDTABLESIZE=0;
  10715.  GNULIB_GETGROUPS=0;
  10716.  GNULIB_GETHOSTNAME=0;
  10717.  GNULIB_GETLOGIN=0;
  10718.  GNULIB_GETLOGIN_R=0;
  10719.  GNULIB_GETPAGESIZE=0;
  10720.  GNULIB_GETUSERSHELL=0;
  10721.  GNULIB_GROUP_MEMBER=0;
  10722.  GNULIB_ISATTY=0;
  10723.  GNULIB_LCHOWN=0;
  10724.  GNULIB_LINK=0;
  10725.  GNULIB_LINKAT=0;
  10726.  GNULIB_LSEEK=0;
  10727.  GNULIB_PIPE=0;
  10728.  GNULIB_PIPE2=0;
  10729.  GNULIB_PREAD=0;
  10730.  GNULIB_PWRITE=0;
  10731.  GNULIB_READ=0;
  10732.  GNULIB_READLINK=0;
  10733.  GNULIB_READLINKAT=0;
  10734.  GNULIB_RMDIR=0;
  10735.  GNULIB_SETHOSTNAME=0;
  10736.  GNULIB_SLEEP=0;
  10737.  GNULIB_SYMLINK=0;
  10738.  GNULIB_SYMLINKAT=0;
  10739.  GNULIB_TTYNAME_R=0;
  10740.  GNULIB_UNISTD_H_NONBLOCKING=0;
  10741.  GNULIB_UNISTD_H_SIGPIPE=0;
  10742.  GNULIB_UNLINK=0;
  10743.  GNULIB_UNLINKAT=0;
  10744.  GNULIB_USLEEP=0;
  10745.  GNULIB_WRITE=0;
  10746.    HAVE_CHOWN=1;
  10747.  HAVE_DUP2=1;
  10748.  HAVE_DUP3=1;
  10749.  HAVE_EUIDACCESS=1;
  10750.  HAVE_FACCESSAT=1;
  10751.  HAVE_FCHDIR=1;
  10752.  HAVE_FCHOWNAT=1;
  10753.  HAVE_FDATASYNC=1;
  10754.  HAVE_FSYNC=1;
  10755.  HAVE_FTRUNCATE=1;
  10756.  HAVE_GETDTABLESIZE=1;
  10757.  HAVE_GETGROUPS=1;
  10758.  HAVE_GETHOSTNAME=1;
  10759.  HAVE_GETLOGIN=1;
  10760.  HAVE_GETPAGESIZE=1;
  10761.  HAVE_GROUP_MEMBER=1;
  10762.  HAVE_LCHOWN=1;
  10763.  HAVE_LINK=1;
  10764.  HAVE_LINKAT=1;
  10765.  HAVE_PIPE=1;
  10766.  HAVE_PIPE2=1;
  10767.  HAVE_PREAD=1;
  10768.  HAVE_PWRITE=1;
  10769.  HAVE_READLINK=1;
  10770.  HAVE_READLINKAT=1;
  10771.  HAVE_SETHOSTNAME=1;
  10772.  HAVE_SLEEP=1;
  10773.  HAVE_SYMLINK=1;
  10774.  HAVE_SYMLINKAT=1;
  10775.  HAVE_UNLINKAT=1;
  10776.  HAVE_USLEEP=1;
  10777.  HAVE_DECL_ENVIRON=1;
  10778.  HAVE_DECL_FCHDIR=1;
  10779.  HAVE_DECL_FDATASYNC=1;
  10780.  HAVE_DECL_GETDOMAINNAME=1;
  10781.  HAVE_DECL_GETLOGIN_R=1;
  10782.  HAVE_DECL_GETPAGESIZE=1;
  10783.  HAVE_DECL_GETUSERSHELL=1;
  10784.  HAVE_DECL_SETHOSTNAME=1;
  10785.  HAVE_DECL_TTYNAME_R=1;
  10786.  HAVE_OS_H=0;
  10787.  HAVE_SYS_PARAM_H=0;
  10788.  REPLACE_CHOWN=0;
  10789.  REPLACE_CLOSE=0;
  10790.  REPLACE_DUP=0;
  10791.  REPLACE_DUP2=0;
  10792.  REPLACE_FCHOWNAT=0;
  10793.  REPLACE_FTRUNCATE=0;
  10794.  REPLACE_GETCWD=0;
  10795.  REPLACE_GETDOMAINNAME=0;
  10796.  REPLACE_GETDTABLESIZE=0;
  10797.  REPLACE_GETLOGIN_R=0;
  10798.  REPLACE_GETGROUPS=0;
  10799.  REPLACE_GETPAGESIZE=0;
  10800.  REPLACE_ISATTY=0;
  10801.  REPLACE_LCHOWN=0;
  10802.  REPLACE_LINK=0;
  10803.  REPLACE_LINKAT=0;
  10804.  REPLACE_LSEEK=0;
  10805.  REPLACE_PREAD=0;
  10806.  REPLACE_PWRITE=0;
  10807.  REPLACE_READ=0;
  10808.  REPLACE_READLINK=0;
  10809.  REPLACE_READLINKAT=0;
  10810.  REPLACE_RMDIR=0;
  10811.  REPLACE_SLEEP=0;
  10812.  REPLACE_SYMLINK=0;
  10813.  REPLACE_SYMLINKAT=0;
  10814.  REPLACE_TTYNAME_R=0;
  10815.  REPLACE_UNLINK=0;
  10816.  REPLACE_UNLINKAT=0;
  10817.  REPLACE_USLEEP=0;
  10818.  REPLACE_WRITE=0;
  10819.  UNISTD_H_HAVE_WINSOCK2_H=0;
  10820.  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
  10821.  
  10822.  
  10823.  
  10824.  
  10825.  
  10826.  
  10827.  for ac_header in $gl_header_list
  10828. do :
  10829.  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10830. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10831. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10832.  cat >>confdefs.h <<_ACEOF
  10833. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10834. _ACEOF
  10835.  
  10836. fi
  10837.  
  10838. done
  10839.  
  10840.  
  10841.  
  10842.  
  10843.  
  10844.  
  10845.  
  10846.  
  10847.  
  10848.  
  10849.  :
  10850.  
  10851.  
  10852.  
  10853.  
  10854.  
  10855.  if test $ac_cv_header_sys_socket_h != yes; then
  10856.                    for ac_header in winsock2.h
  10857. do :
  10858.  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  10859. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  10860.  cat >>confdefs.h <<_ACEOF
  10861. #define HAVE_WINSOCK2_H 1
  10862. _ACEOF
  10863.  
  10864. fi
  10865.  
  10866. done
  10867.  
  10868.  fi
  10869.  if test "$ac_cv_header_winsock2_h" = yes; then
  10870.    HAVE_WINSOCK2_H=1
  10871.    UNISTD_H_HAVE_WINSOCK2_H=1
  10872.    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  10873.  else
  10874.    HAVE_WINSOCK2_H=0
  10875.  fi
  10876.  
  10877.   LIBSOCKET=
  10878.  if test $HAVE_WINSOCK2_H = 1; then
  10879.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
  10880. $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
  10881. if ${gl_cv_func_wsastartup+:} false; then :
  10882.  $as_echo_n "(cached) " >&6
  10883. else
  10884.  
  10885.      gl_save_LIBS="$LIBS"
  10886.      LIBS="$LIBS -lws2_32"
  10887.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10888. /* end confdefs.h.  */
  10889.  
  10890. #ifdef HAVE_WINSOCK2_H
  10891. # include <winsock2.h>
  10892. #endif
  10893. int
  10894. main ()
  10895. {
  10896.  
  10897.          WORD wVersionRequested = MAKEWORD(1, 1);
  10898.          WSADATA wsaData;
  10899.          int err = WSAStartup(wVersionRequested, &wsaData);
  10900.          WSACleanup ();
  10901.  ;
  10902.  return 0;
  10903. }
  10904. _ACEOF
  10905. if ac_fn_c_try_link "$LINENO"; then :
  10906.  gl_cv_func_wsastartup=yes
  10907. else
  10908.  gl_cv_func_wsastartup=no
  10909. fi
  10910. rm -f core conftest.err conftest.$ac_objext \
  10911.    conftest$ac_exeext conftest.$ac_ext
  10912.      LIBS="$gl_save_LIBS"
  10913.  
  10914. fi
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
  10916. $as_echo "$gl_cv_func_wsastartup" >&6; }
  10917.    if test "$gl_cv_func_wsastartup" = "yes"; then
  10918.  
  10919. $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
  10920.  
  10921.      LIBSOCKET='-lws2_32'
  10922.    fi
  10923.  else
  10924.                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
  10925. $as_echo_n "checking for library containing setsockopt... " >&6; }
  10926. if ${gl_cv_lib_socket+:} false; then :
  10927.  $as_echo_n "(cached) " >&6
  10928. else
  10929.  
  10930.      gl_cv_lib_socket=
  10931.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10932. /* end confdefs.h.  */
  10933. extern
  10934. #ifdef __cplusplus
  10935. "C"
  10936. #endif
  10937. char setsockopt();
  10938. int
  10939. main ()
  10940. {
  10941. setsockopt();
  10942.  ;
  10943.  return 0;
  10944. }
  10945. _ACEOF
  10946. if ac_fn_c_try_link "$LINENO"; then :
  10947.  
  10948. else
  10949.  gl_save_LIBS="$LIBS"
  10950.         LIBS="$gl_save_LIBS -lsocket"
  10951.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10952. /* end confdefs.h.  */
  10953. extern
  10954. #ifdef __cplusplus
  10955. "C"
  10956. #endif
  10957. char setsockopt();
  10958. int
  10959. main ()
  10960. {
  10961. setsockopt();
  10962.  ;
  10963.  return 0;
  10964. }
  10965. _ACEOF
  10966. if ac_fn_c_try_link "$LINENO"; then :
  10967.  gl_cv_lib_socket="-lsocket"
  10968. fi
  10969. rm -f core conftest.err conftest.$ac_objext \
  10970.    conftest$ac_exeext conftest.$ac_ext
  10971.         if test -z "$gl_cv_lib_socket"; then
  10972.           LIBS="$gl_save_LIBS -lnetwork"
  10973.           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10974. /* end confdefs.h.  */
  10975. extern
  10976. #ifdef __cplusplus
  10977. "C"
  10978. #endif
  10979. char setsockopt();
  10980. int
  10981. main ()
  10982. {
  10983. setsockopt();
  10984.  ;
  10985.  return 0;
  10986. }
  10987. _ACEOF
  10988. if ac_fn_c_try_link "$LINENO"; then :
  10989.  gl_cv_lib_socket="-lnetwork"
  10990. fi
  10991. rm -f core conftest.err conftest.$ac_objext \
  10992.    conftest$ac_exeext conftest.$ac_ext
  10993.           if test -z "$gl_cv_lib_socket"; then
  10994.             LIBS="$gl_save_LIBS -lnet"
  10995.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10996. /* end confdefs.h.  */
  10997. extern
  10998. #ifdef __cplusplus
  10999. "C"
  11000. #endif
  11001. char setsockopt();
  11002. int
  11003. main ()
  11004. {
  11005. setsockopt();
  11006.  ;
  11007.  return 0;
  11008. }
  11009. _ACEOF
  11010. if ac_fn_c_try_link "$LINENO"; then :
  11011.  gl_cv_lib_socket="-lnet"
  11012. fi
  11013. rm -f core conftest.err conftest.$ac_objext \
  11014.    conftest$ac_exeext conftest.$ac_ext
  11015.           fi
  11016.         fi
  11017.         LIBS="$gl_save_LIBS"
  11018.  
  11019. fi
  11020. rm -f core conftest.err conftest.$ac_objext \
  11021.    conftest$ac_exeext conftest.$ac_ext
  11022.      if test -z "$gl_cv_lib_socket"; then
  11023.        gl_cv_lib_socket="none needed"
  11024.      fi
  11025.  
  11026. fi
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
  11028. $as_echo "$gl_cv_lib_socket" >&6; }
  11029.    if test "$gl_cv_lib_socket" != "none needed"; then
  11030.      LIBSOCKET="$gl_cv_lib_socket"
  11031.    fi
  11032.  fi
  11033.  
  11034.  
  11035.  
  11036.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
  11037. $as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
  11038.  # Check whether --enable-openssl-compatibility was given.
  11039. if test "${enable_openssl_compatibility+set}" = set; then :
  11040.  enableval=$enable_openssl_compatibility; enable_openssl=$enableval
  11041. else
  11042.  enable_openssl=no
  11043. fi
  11044.  
  11045.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
  11046. $as_echo "$enable_openssl" >&6; }
  11047.   if test "$enable_openssl" = "yes"; then
  11048.  ENABLE_OPENSSL_TRUE=
  11049.  ENABLE_OPENSSL_FALSE='#'
  11050. else
  11051.   ENABLE_OPENSSL_TRUE='#'
  11052.   ENABLE_OPENSSL_FALSE=
  11053. fi
  11054.  
  11055.  
  11056.   # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
  11057.  
  11058.  
  11059.  
  11060.  
  11061.   :
  11062.  
  11063.  
  11064.  
  11065.  
  11066. # Check whether --enable-tests was given.
  11067. if test "${enable_tests+set}" = set; then :
  11068.   enableval=$enable_tests; enable_tests=$enableval
  11069. else
  11070.   enable_tests=$enable_tools
  11071. fi
  11072.  
  11073.  if test "$enable_tests" != "no"; then
  11074.   ENABLE_TESTS_TRUE=
  11075.   ENABLE_TESTS_FALSE='#'
  11076. else
  11077.   ENABLE_TESTS_TRUE='#'
  11078.   ENABLE_TESTS_FALSE=
  11079. fi
  11080.  
  11081.  
  11082. # Check whether --enable-destructive-tests was given.
  11083. if test "${enable_destructive_tests+set}" = set; then :
  11084.   enableval=$enable_destructive_tests; enable_destructive_tests=$enableval
  11085. else
  11086.   enable_destructive_tests=no
  11087. fi
  11088.  
  11089.  if test "$enable_destructive_tests" != "no"; then
  11090.   ENABLE_DESTRUCTIVE_TESTS_TRUE=
  11091.   ENABLE_DESTRUCTIVE_TESTS_FALSE='#'
  11092. else
  11093.   ENABLE_DESTRUCTIVE_TESTS_TRUE='#'
  11094.   ENABLE_DESTRUCTIVE_TESTS_FALSE=
  11095. fi
  11096.  
  11097.  
  11098. # Check whether --enable-fuzzer-target was given.
  11099. if test "${enable_fuzzer_target+set}" = set; then :
  11100.   enableval=$enable_fuzzer_target; enable_fuzzer_target=$enableval
  11101. else
  11102.   enable_fuzzer_target=no
  11103. fi
  11104.  
  11105. if test "$enable_fuzzer_target" != "no";then
  11106.  
  11107. $as_echo "#define FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION 1" >>confdefs.h
  11108.  
  11109. fi
  11110.  
  11111.  
  11112.  
  11113.  
  11114.   gtk_doc_requires="gtk-doc >= 1.1"
  11115.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
  11116. $as_echo_n "checking for gtk-doc... " >&6; }
  11117.   if test -n "$PKG_CONFIG" && \
  11118.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
  11119.   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
  11120.   ac_status=$?
  11121.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11122.   test $ac_status = 0; }; then
  11123.   have_gtk_doc=yes
  11124. else
  11125.   have_gtk_doc=no
  11126. fi
  11127.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
  11128. $as_echo "$have_gtk_doc" >&6; }
  11129.  
  11130.   if test "$have_gtk_doc" = "no"; then
  11131.       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  11132.  You will not be able to create source packages with 'make dist'
  11133.  because $gtk_doc_requires is not found." >&5
  11134. $as_echo "$as_me: WARNING:
  11135.  You will not be able to create source packages with 'make dist'
  11136.  because $gtk_doc_requires is not found." >&2;}
  11137.   fi
  11138.  
  11139.             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
  11140. set dummy gtkdoc-check; ac_word=$2
  11141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11142. $as_echo_n "checking for $ac_word... " >&6; }
  11143. if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
  11144.   $as_echo_n "(cached) " >&6
  11145. else
  11146.   if test -n "$GTKDOC_CHECK"; then
  11147.   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
  11148. else
  11149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11150. for as_dir in $PATH
  11151. do
  11152.   IFS=$as_save_IFS
  11153.   test -z "$as_dir" && as_dir=.
  11154.     for ac_exec_ext in '' $ac_executable_extensions; do
  11155.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11156.     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
  11157.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11158.     break 2
  11159.   fi
  11160. done
  11161.   done
  11162. IFS=$as_save_IFS
  11163.  
  11164. fi
  11165. fi
  11166. GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
  11167. if test -n "$GTKDOC_CHECK"; then
  11168.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
  11169. $as_echo "$GTKDOC_CHECK" >&6; }
  11170. else
  11171.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11172. $as_echo "no" >&6; }
  11173. fi
  11174.  
  11175.  
  11176.   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
  11177. set dummy gtkdoc-check; ac_word=$2
  11178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11179. $as_echo_n "checking for $ac_word... " >&6; }
  11180. if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
  11181.   $as_echo_n "(cached) " >&6
  11182. else
  11183.   case $GTKDOC_CHECK_PATH in
  11184.   [\\/]* | ?:[\\/]*)
  11185.   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
  11186.   ;;
  11187.   *)
  11188.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11189. for as_dir in $PATH
  11190. do
  11191.   IFS=$as_save_IFS
  11192.   test -z "$as_dir" && as_dir=.
  11193.     for ac_exec_ext in '' $ac_executable_extensions; do
  11194.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11195.     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
  11196.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11197.     break 2
  11198.   fi
  11199. done
  11200.   done
  11201. IFS=$as_save_IFS
  11202.  
  11203.   ;;
  11204. esac
  11205. fi
  11206. GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
  11207. if test -n "$GTKDOC_CHECK_PATH"; then
  11208.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
  11209. $as_echo "$GTKDOC_CHECK_PATH" >&6; }
  11210. else
  11211.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11212. $as_echo "no" >&6; }
  11213. fi
  11214.  
  11215.  
  11216.   for ac_prog in gtkdoc-rebase
  11217. do
  11218.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  11219. set dummy $ac_prog; ac_word=$2
  11220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11221. $as_echo_n "checking for $ac_word... " >&6; }
  11222. if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
  11223.   $as_echo_n "(cached) " >&6
  11224. else
  11225.   case $GTKDOC_REBASE in
  11226.   [\\/]* | ?:[\\/]*)
  11227.   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
  11228.   ;;
  11229.   *)
  11230.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11231. for as_dir in $PATH
  11232. do
  11233.   IFS=$as_save_IFS
  11234.   test -z "$as_dir" && as_dir=.
  11235.     for ac_exec_ext in '' $ac_executable_extensions; do
  11236.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11237.     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
  11238.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11239.     break 2
  11240.   fi
  11241. done
  11242.   done
  11243. IFS=$as_save_IFS
  11244.  
  11245.   ;;
  11246. esac
  11247. fi
  11248. GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
  11249. if test -n "$GTKDOC_REBASE"; then
  11250.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
  11251. $as_echo "$GTKDOC_REBASE" >&6; }
  11252. else
  11253.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11254. $as_echo "no" >&6; }
  11255. fi
  11256.  
  11257.  
  11258.   test -n "$GTKDOC_REBASE" && break
  11259. done
  11260. test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
  11261.  
  11262.   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
  11263. set dummy gtkdoc-mkpdf; ac_word=$2
  11264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11265. $as_echo_n "checking for $ac_word... " >&6; }
  11266. if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
  11267.   $as_echo_n "(cached) " >&6
  11268. else
  11269.   case $GTKDOC_MKPDF in
  11270.   [\\/]* | ?:[\\/]*)
  11271.   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
  11272.   ;;
  11273.   *)
  11274.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11275. for as_dir in $PATH
  11276. do
  11277.   IFS=$as_save_IFS
  11278.   test -z "$as_dir" && as_dir=.
  11279.     for ac_exec_ext in '' $ac_executable_extensions; do
  11280.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11281.     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
  11282.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11283.     break 2
  11284.   fi
  11285. done
  11286.   done
  11287. IFS=$as_save_IFS
  11288.  
  11289.   ;;
  11290. esac
  11291. fi
  11292. GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
  11293. if test -n "$GTKDOC_MKPDF"; then
  11294.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
  11295. $as_echo "$GTKDOC_MKPDF" >&6; }
  11296. else
  11297.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11298. $as_echo "no" >&6; }
  11299. fi
  11300.  
  11301.  
  11302.  
  11303.  
  11304. # Check whether --with-html-dir was given.
  11305. if test "${with_html_dir+set}" = set; then :
  11306.   withval=$with_html_dir;
  11307. else
  11308.   with_html_dir='${datadir}/gtk-doc/html'
  11309. fi
  11310.  
  11311.   HTML_DIR="$with_html_dir"
  11312.  
  11313.  
  11314.     # Check whether --enable-gtk-doc was given.
  11315. if test "${enable_gtk_doc+set}" = set; then :
  11316.   enableval=$enable_gtk_doc;
  11317. else
  11318.   enable_gtk_doc=no
  11319. fi
  11320.  
  11321.  
  11322.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
  11323. $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
  11324.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
  11325. $as_echo "$enable_gtk_doc" >&6; }
  11326.  
  11327.   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
  11328.     as_fn_error $? "
  11329.  You must have $gtk_doc_requires installed to build documentation for
  11330.  $PACKAGE_NAME. Please install gtk-doc or disable building the
  11331.  documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
  11332.   fi
  11333.  
  11334.     if test "x$PACKAGE_NAME" != "xglib"; then
  11335.  
  11336. pkg_failed=no
  11337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
  11338. $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
  11339.  
  11340. if test -n "$PKG_CONFIG"; then
  11341.     if test -n "$GTKDOC_DEPS_CFLAGS"; then
  11342.         pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
  11343.     else
  11344.         if test -n "$PKG_CONFIG" && \
  11345.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
  11346.   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
  11347.   ac_status=$?
  11348.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11349.   test $ac_status = 0; }; then
  11350.   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
  11351. else
  11352.   pkg_failed=yes
  11353. fi
  11354.     fi
  11355. else
  11356.         pkg_failed=untried
  11357. fi
  11358. if test -n "$PKG_CONFIG"; then
  11359.     if test -n "$GTKDOC_DEPS_LIBS"; then
  11360.         pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
  11361.     else
  11362.         if test -n "$PKG_CONFIG" && \
  11363.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
  11364.   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
  11365.   ac_status=$?
  11366.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11367.   test $ac_status = 0; }; then
  11368.   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
  11369. else
  11370.   pkg_failed=yes
  11371. fi
  11372.     fi
  11373. else
  11374.         pkg_failed=untried
  11375. fi
  11376.  
  11377.  
  11378.  
  11379. if test $pkg_failed = yes; then
  11380.  
  11381. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11382.         _pkg_short_errors_supported=yes
  11383. else
  11384.         _pkg_short_errors_supported=no
  11385. fi
  11386.         if test $_pkg_short_errors_supported = yes; then
  11387.                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
  11388.         else
  11389.                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
  11390.         fi
  11391.         # Put the nasty error message in config.log where it belongs
  11392.         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
  11393.  
  11394.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11395. $as_echo "no" >&6; }
  11396.                 :
  11397. elif test $pkg_failed = untried; then
  11398.         :
  11399. else
  11400.         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
  11401.         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
  11402.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11403. $as_echo "yes" >&6; }
  11404.         :
  11405. fi
  11406.   fi
  11407.  
  11408.     # Check whether --enable-gtk-doc-html was given.
  11409. if test "${enable_gtk_doc_html+set}" = set; then :
  11410.   enableval=$enable_gtk_doc_html;
  11411. else
  11412.   enable_gtk_doc_html=yes
  11413. fi
  11414.  
  11415.     # Check whether --enable-gtk-doc-pdf was given.
  11416. if test "${enable_gtk_doc_pdf+set}" = set; then :
  11417.   enableval=$enable_gtk_doc_pdf;
  11418. else
  11419.   enable_gtk_doc_pdf=no
  11420. fi
  11421.  
  11422.  
  11423.   if test -z "$GTKDOC_MKPDF"; then
  11424.     enable_gtk_doc_pdf=no
  11425.   fi
  11426.  
  11427.   if test -z "$AM_DEFAULT_VERBOSITY"; then
  11428.     AM_DEFAULT_VERBOSITY=1
  11429.   fi
  11430.  
  11431.  
  11432.    if test x$have_gtk_doc = xyes; then
  11433.   HAVE_GTK_DOC_TRUE=
  11434.   HAVE_GTK_DOC_FALSE='#'
  11435. else
  11436.   HAVE_GTK_DOC_TRUE='#'
  11437.   HAVE_GTK_DOC_FALSE=
  11438. fi
  11439.  
  11440.    if test x$enable_gtk_doc = xyes; then
  11441.   ENABLE_GTK_DOC_TRUE=
  11442.   ENABLE_GTK_DOC_FALSE='#'
  11443. else
  11444.   ENABLE_GTK_DOC_TRUE='#'
  11445.   ENABLE_GTK_DOC_FALSE=
  11446. fi
  11447.  
  11448.    if test x$enable_gtk_doc_html = xyes; then
  11449.   GTK_DOC_BUILD_HTML_TRUE=
  11450.   GTK_DOC_BUILD_HTML_FALSE='#'
  11451. else
  11452.   GTK_DOC_BUILD_HTML_TRUE='#'
  11453.   GTK_DOC_BUILD_HTML_FALSE=
  11454. fi
  11455.  
  11456.    if test x$enable_gtk_doc_pdf = xyes; then
  11457.   GTK_DOC_BUILD_PDF_TRUE=
  11458.   GTK_DOC_BUILD_PDF_FALSE='#'
  11459. else
  11460.   GTK_DOC_BUILD_PDF_TRUE='#'
  11461.   GTK_DOC_BUILD_PDF_FALSE=
  11462. fi
  11463.  
  11464.    if test -n "$LIBTOOL"; then
  11465.   GTK_DOC_USE_LIBTOOL_TRUE=
  11466.   GTK_DOC_USE_LIBTOOL_FALSE='#'
  11467. else
  11468.   GTK_DOC_USE_LIBTOOL_TRUE='#'
  11469.   GTK_DOC_USE_LIBTOOL_FALSE=
  11470. fi
  11471.  
  11472.    if test -n "$GTKDOC_REBASE"; then
  11473.   GTK_DOC_USE_REBASE_TRUE=
  11474.   GTK_DOC_USE_REBASE_FALSE='#'
  11475. else
  11476.   GTK_DOC_USE_REBASE_TRUE='#'
  11477.   GTK_DOC_USE_REBASE_FALSE=
  11478. fi
  11479.  
  11480.  
  11481.  
  11482.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  11483. $as_echo_n "checking whether NLS is requested... " >&6; }
  11484.     # Check whether --enable-nls was given.
  11485. if test "${enable_nls+set}" = set; then :
  11486.   enableval=$enable_nls; USE_NLS=$enableval
  11487. else
  11488.   USE_NLS=yes
  11489. fi
  11490.  
  11491.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11492. $as_echo "$USE_NLS" >&6; }
  11493.  
  11494.  
  11495.  
  11496.  
  11497.       GETTEXT_MACRO_VERSION=0.19
  11498.  
  11499.  
  11500.  
  11501.  
  11502. # Prepare PATH_SEPARATOR.
  11503. # The user is always right.
  11504. if test "${PATH_SEPARATOR+set}" != set; then
  11505.   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  11506.   # contains only /bin. Note that ksh looks also at the FPATH variable,
  11507.   # so we have to set that as well for the test.
  11508.   PATH_SEPARATOR=:
  11509.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  11510.     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  11511.            || PATH_SEPARATOR=';'
  11512.        }
  11513. fi
  11514.  
  11515. # Find out how to test for executable files. Don't use a zero-byte file,
  11516. # as systems may use methods other than mode bits to determine executability.
  11517. cat >conf$$.file <<_ASEOF
  11518. #! /bin/sh
  11519. exit 0
  11520. _ASEOF
  11521. chmod +x conf$$.file
  11522. if test -x conf$$.file >/dev/null 2>&1; then
  11523.   ac_executable_p="test -x"
  11524. else
  11525.   ac_executable_p="test -f"
  11526. fi
  11527. rm -f conf$$.file
  11528.  
  11529. # Extract the first word of "msgfmt", so it can be a program name with args.
  11530. set dummy msgfmt; ac_word=$2
  11531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11532. $as_echo_n "checking for $ac_word... " >&6; }
  11533. if ${ac_cv_path_MSGFMT+:} false; then :
  11534.   $as_echo_n "(cached) " >&6
  11535. else
  11536.   case "$MSGFMT" in
  11537.   [\\/]* | ?:[\\/]*)
  11538.     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  11539.     ;;
  11540.   *)
  11541.     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11542.     for ac_dir in $PATH; do
  11543.       IFS="$ac_save_IFS"
  11544.       test -z "$ac_dir" && ac_dir=.
  11545.       for ac_exec_ext in '' $ac_executable_extensions; do
  11546.         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11547.           echo "$as_me: trying $ac_dir/$ac_word..." >&5
  11548.           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  11549.      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  11550.             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  11551.             break 2
  11552.           fi
  11553.         fi
  11554.       done
  11555.     done
  11556.     IFS="$ac_save_IFS"
  11557.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  11558.     ;;
  11559. esac
  11560. fi
  11561. MSGFMT="$ac_cv_path_MSGFMT"
  11562. if test "$MSGFMT" != ":"; then
  11563.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  11564. $as_echo "$MSGFMT" >&6; }
  11565. else
  11566.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11567. $as_echo "no" >&6; }
  11568. fi
  11569.  
  11570.   # Extract the first word of "gmsgfmt", so it can be a program name with args.
  11571. set dummy gmsgfmt; ac_word=$2
  11572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11573. $as_echo_n "checking for $ac_word... " >&6; }
  11574. if ${ac_cv_path_GMSGFMT+:} false; then :
  11575.   $as_echo_n "(cached) " >&6
  11576. else
  11577.   case $GMSGFMT in
  11578.   [\\/]* | ?:[\\/]*)
  11579.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  11580.   ;;
  11581.   *)
  11582.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11583. for as_dir in $PATH
  11584. do
  11585.   IFS=$as_save_IFS
  11586.   test -z "$as_dir" && as_dir=.
  11587.     for ac_exec_ext in '' $ac_executable_extensions; do
  11588.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11589.     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  11590.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11591.     break 2
  11592.   fi
  11593. done
  11594.   done
  11595. IFS=$as_save_IFS
  11596.  
  11597.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  11598.   ;;
  11599. esac
  11600. fi
  11601. GMSGFMT=$ac_cv_path_GMSGFMT
  11602. if test -n "$GMSGFMT"; then
  11603.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  11604. $as_echo "$GMSGFMT" >&6; }
  11605. else
  11606.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11607. $as_echo "no" >&6; }
  11608. fi
  11609.  
  11610.  
  11611.  
  11612.     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  11613.     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  11614.     *) MSGFMT_015=$MSGFMT ;;
  11615.   esac
  11616.  
  11617.   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  11618.     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  11619.     *) GMSGFMT_015=$GMSGFMT ;;
  11620.   esac
  11621.  
  11622.  
  11623.  
  11624. # Prepare PATH_SEPARATOR.
  11625. # The user is always right.
  11626. if test "${PATH_SEPARATOR+set}" != set; then
  11627.   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  11628.   # contains only /bin. Note that ksh looks also at the FPATH variable,
  11629.   # so we have to set that as well for the test.
  11630.   PATH_SEPARATOR=:
  11631.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  11632.     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  11633.            || PATH_SEPARATOR=';'
  11634.        }
  11635. fi
  11636.  
  11637. # Find out how to test for executable files. Don't use a zero-byte file,
  11638. # as systems may use methods other than mode bits to determine executability.
  11639. cat >conf$$.file <<_ASEOF
  11640. #! /bin/sh
  11641. exit 0
  11642. _ASEOF
  11643. chmod +x conf$$.file
  11644. if test -x conf$$.file >/dev/null 2>&1; then
  11645.   ac_executable_p="test -x"
  11646. else
  11647.   ac_executable_p="test -f"
  11648. fi
  11649. rm -f conf$$.file
  11650.  
  11651. # Extract the first word of "xgettext", so it can be a program name with args.
  11652. set dummy xgettext; ac_word=$2
  11653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11654. $as_echo_n "checking for $ac_word... " >&6; }
  11655. if ${ac_cv_path_XGETTEXT+:} false; then :
  11656.   $as_echo_n "(cached) " >&6
  11657. else
  11658.   case "$XGETTEXT" in
  11659.   [\\/]* | ?:[\\/]*)
  11660.     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  11661.     ;;
  11662.   *)
  11663.     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11664.     for ac_dir in $PATH; do
  11665.       IFS="$ac_save_IFS"
  11666.       test -z "$ac_dir" && ac_dir=.
  11667.       for ac_exec_ext in '' $ac_executable_extensions; do
  11668.         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11669.           echo "$as_me: trying $ac_dir/$ac_word..." >&5
  11670.           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  11671.      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  11672.             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  11673.             break 2
  11674.           fi
  11675.         fi
  11676.       done
  11677.     done
  11678.     IFS="$ac_save_IFS"
  11679.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  11680.     ;;
  11681. esac
  11682. fi
  11683. XGETTEXT="$ac_cv_path_XGETTEXT"
  11684. if test "$XGETTEXT" != ":"; then
  11685.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  11686. $as_echo "$XGETTEXT" >&6; }
  11687. else
  11688.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11689. $as_echo "no" >&6; }
  11690. fi
  11691.  
  11692.     rm -f messages.po
  11693.  
  11694.     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  11695.     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  11696.     *) XGETTEXT_015=$XGETTEXT ;;
  11697.   esac
  11698.  
  11699.  
  11700.  
  11701. # Prepare PATH_SEPARATOR.
  11702. # The user is always right.
  11703. if test "${PATH_SEPARATOR+set}" != set; then
  11704.   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  11705.   # contains only /bin. Note that ksh looks also at the FPATH variable,
  11706.   # so we have to set that as well for the test.
  11707.   PATH_SEPARATOR=:
  11708.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  11709.     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  11710.            || PATH_SEPARATOR=';'
  11711.        }
  11712. fi
  11713.  
  11714. # Find out how to test for executable files. Don't use a zero-byte file,
  11715. # as systems may use methods other than mode bits to determine executability.
  11716. cat >conf$$.file <<_ASEOF
  11717. #! /bin/sh
  11718. exit 0
  11719. _ASEOF
  11720. chmod +x conf$$.file
  11721. if test -x conf$$.file >/dev/null 2>&1; then
  11722.   ac_executable_p="test -x"
  11723. else
  11724.   ac_executable_p="test -f"
  11725. fi
  11726. rm -f conf$$.file
  11727.  
  11728. # Extract the first word of "msgmerge", so it can be a program name with args.
  11729. set dummy msgmerge; ac_word=$2
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11731. $as_echo_n "checking for $ac_word... " >&6; }
  11732. if ${ac_cv_path_MSGMERGE+:} false; then :
  11733.   $as_echo_n "(cached) " >&6
  11734. else
  11735.   case "$MSGMERGE" in
  11736.   [\\/]* | ?:[\\/]*)
  11737.     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  11738.     ;;
  11739.   *)
  11740.     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11741.     for ac_dir in $PATH; do
  11742.       IFS="$ac_save_IFS"
  11743.       test -z "$ac_dir" && ac_dir=.
  11744.       for ac_exec_ext in '' $ac_executable_extensions; do
  11745.         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11746.           echo "$as_me: trying $ac_dir/$ac_word..." >&5
  11747.           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  11748.             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  11749.             break 2
  11750.           fi
  11751.         fi
  11752.       done
  11753.     done
  11754.     IFS="$ac_save_IFS"
  11755.   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  11756.     ;;
  11757. esac
  11758. fi
  11759. MSGMERGE="$ac_cv_path_MSGMERGE"
  11760. if test "$MSGMERGE" != ":"; then
  11761.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  11762. $as_echo "$MSGMERGE" >&6; }
  11763. else
  11764.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11765. $as_echo "no" >&6; }
  11766. fi
  11767.  
  11768.  
  11769.         test -n "$localedir" || localedir='${datadir}/locale'
  11770.  
  11771.  
  11772.     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  11773.  
  11774.  
  11775.   ac_config_commands="$ac_config_commands po-directories"
  11776.  
  11777.  
  11778.  
  11779.       if test "X$prefix" = "XNONE"; then
  11780.     acl_final_prefix="$ac_default_prefix"
  11781.   else
  11782.     acl_final_prefix="$prefix"
  11783.   fi
  11784.   if test "X$exec_prefix" = "XNONE"; then
  11785.     acl_final_exec_prefix='${prefix}'
  11786.   else
  11787.     acl_final_exec_prefix="$exec_prefix"
  11788.   fi
  11789.   acl_save_prefix="$prefix"
  11790.   prefix="$acl_final_prefix"
  11791.   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11792.   prefix="$acl_save_prefix"
  11793.  
  11794.  
  11795.  
  11796. # Check whether --with-gnu-ld was given.
  11797. if test "${with_gnu_ld+set}" = set; then :
  11798.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11799. else
  11800.   with_gnu_ld=no
  11801. fi
  11802.  
  11803. # Prepare PATH_SEPARATOR.
  11804. # The user is always right.
  11805. if test "${PATH_SEPARATOR+set}" != set; then
  11806.   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  11807.   # contains only /bin. Note that ksh looks also at the FPATH variable,
  11808.   # so we have to set that as well for the test.
  11809.   PATH_SEPARATOR=:
  11810.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  11811.     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  11812.            || PATH_SEPARATOR=';'
  11813.        }
  11814. fi
  11815.  
  11816. ac_prog=ld
  11817. if test "$GCC" = yes; then
  11818.   # Check if gcc -print-prog-name=ld gives a path.
  11819.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11820. $as_echo_n "checking for ld used by $CC... " >&6; }
  11821.   case $host in
  11822.   *-*-mingw*)
  11823.     # gcc leaves a trailing carriage return which upsets mingw
  11824.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11825.   *)
  11826.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11827.   esac
  11828.   case $ac_prog in
  11829.     # Accept absolute paths.
  11830.     [\\/]* | ?:[\\/]*)
  11831.       re_direlt='/[^/][^/]*/\.\./'
  11832.       # Canonicalize the pathname of ld
  11833.       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
  11834.       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
  11835.         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11836.       done
  11837.       test -z "$LD" && LD="$ac_prog"
  11838.       ;;
  11839.   "")
  11840.     # If it fails, then pretend we aren't using GCC.
  11841.     ac_prog=ld
  11842.     ;;
  11843.   *)
  11844.     # If it is relative, then search for the first ld in PATH.
  11845.     with_gnu_ld=unknown
  11846.     ;;
  11847.   esac
  11848. elif test "$with_gnu_ld" = yes; then
  11849.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11850. $as_echo_n "checking for GNU ld... " >&6; }
  11851. else
  11852.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11853. $as_echo_n "checking for non-GNU ld... " >&6; }
  11854. fi
  11855. if ${acl_cv_path_LD+:} false; then :
  11856.   $as_echo_n "(cached) " >&6
  11857. else
  11858.   if test -z "$LD"; then
  11859.   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11860.   for ac_dir in $PATH; do
  11861.     IFS="$acl_save_ifs"
  11862.     test -z "$ac_dir" && ac_dir=.
  11863.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11864.       acl_cv_path_LD="$ac_dir/$ac_prog"
  11865.       # Check to see if the program is GNU ld.  I'd rather use --version,
  11866.       # but apparently some variants of GNU ld only accept -v.
  11867.       # Break only if it was the GNU/non-GNU ld that we prefer.
  11868.       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
  11869.       *GNU* | *'with BFD'*)
  11870.         test "$with_gnu_ld" != no && break
  11871.         ;;
  11872.       *)
  11873.         test "$with_gnu_ld" != yes && break
  11874.         ;;
  11875.       esac
  11876.     fi
  11877.   done
  11878.   IFS="$acl_save_ifs"
  11879. else
  11880.   acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11881. fi
  11882. fi
  11883.  
  11884. LD="$acl_cv_path_LD"
  11885. if test -n "$LD"; then
  11886.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11887. $as_echo "$LD" >&6; }
  11888. else
  11889.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11890. $as_echo "no" >&6; }
  11891. fi
  11892. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11894. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11895. if ${acl_cv_prog_gnu_ld+:} false; then :
  11896.   $as_echo_n "(cached) " >&6
  11897. else
  11898.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11899. case `$LD -v 2>&1 </dev/null` in
  11900. *GNU* | *'with BFD'*)
  11901.   acl_cv_prog_gnu_ld=yes
  11902.   ;;
  11903. *)
  11904.   acl_cv_prog_gnu_ld=no
  11905.   ;;
  11906. esac
  11907. fi
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  11909. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11910. with_gnu_ld=$acl_cv_prog_gnu_ld
  11911.  
  11912.  
  11913.  
  11914.  
  11915.                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  11916. $as_echo_n "checking for shared library run path origin... " >&6; }
  11917. if ${acl_cv_rpath+:} false; then :
  11918.   $as_echo_n "(cached) " >&6
  11919. else
  11920.  
  11921.     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11922.     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11923.     . ./conftest.sh
  11924.     rm -f ./conftest.sh
  11925.     acl_cv_rpath=done
  11926.  
  11927. fi
  11928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  11929. $as_echo "$acl_cv_rpath" >&6; }
  11930.   wl="$acl_cv_wl"
  11931.   acl_libext="$acl_cv_libext"
  11932.   acl_shlibext="$acl_cv_shlibext"
  11933.   acl_libname_spec="$acl_cv_libname_spec"
  11934.   acl_library_names_spec="$acl_cv_library_names_spec"
  11935.   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11936.   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11937.   acl_hardcode_direct="$acl_cv_hardcode_direct"
  11938.   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11939.     # Check whether --enable-rpath was given.
  11940. if test "${enable_rpath+set}" = set; then :
  11941.   enableval=$enable_rpath; :
  11942. else
  11943.   enable_rpath=yes
  11944. fi
  11945.  
  11946.  
  11947.  
  11948.  
  11949.   acl_libdirstem=lib
  11950.   acl_libdirstem2=
  11951.   case "$host_os" in
  11952.     solaris*)
  11953.                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  11954. $as_echo_n "checking for 64-bit host... " >&6; }
  11955. if ${gl_cv_solaris_64bit+:} false; then :
  11956.   $as_echo_n "(cached) " >&6
  11957. else
  11958.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11959. /* end confdefs.h.  */
  11960.  
  11961. #ifdef _LP64
  11962. sixtyfour bits
  11963. #endif
  11964.  
  11965. _ACEOF
  11966. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11967.   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
  11968.   gl_cv_solaris_64bit=yes
  11969. else
  11970.   gl_cv_solaris_64bit=no
  11971. fi
  11972. rm -f conftest*
  11973.  
  11974.  
  11975. fi
  11976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  11977. $as_echo "$gl_cv_solaris_64bit" >&6; }
  11978.       if test $gl_cv_solaris_64bit = yes; then
  11979.         acl_libdirstem=lib/64
  11980.         case "$host_cpu" in
  11981.           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
  11982.           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  11983.         esac
  11984.       fi
  11985.       ;;
  11986.     *)
  11987.       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11988.       if test -n "$searchpath"; then
  11989.         acl_save_IFS="${IFS=    }"; IFS=":"
  11990.         for searchdir in $searchpath; do
  11991.           if test -d "$searchdir"; then
  11992.             case "$searchdir" in
  11993.               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11994.               */../ | */.. )
  11995.                 # Better ignore directories of this form. They are misleading.
  11996.                 ;;
  11997.               *) searchdir=`cd "$searchdir" && pwd`
  11998.                  case "$searchdir" in
  11999.                    */lib64 ) acl_libdirstem=lib64 ;;
  12000.                  esac ;;
  12001.             esac
  12002.           fi
  12003.         done
  12004.         IFS="$acl_save_IFS"
  12005.       fi
  12006.       ;;
  12007.   esac
  12008.   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  12009.  
  12010.  
  12011.  
  12012.  
  12013.  
  12014.  
  12015.  
  12016.  
  12017.  
  12018.  
  12019.  
  12020.  
  12021.     use_additional=yes
  12022.  
  12023.   acl_save_prefix="$prefix"
  12024.   prefix="$acl_final_prefix"
  12025.   acl_save_exec_prefix="$exec_prefix"
  12026.   exec_prefix="$acl_final_exec_prefix"
  12027.  
  12028.     eval additional_includedir=\"$includedir\"
  12029.     eval additional_libdir=\"$libdir\"
  12030.  
  12031.   exec_prefix="$acl_save_exec_prefix"
  12032.   prefix="$acl_save_prefix"
  12033.  
  12034.  
  12035. # Check whether --with-libiconv-prefix was given.
  12036. if test "${with_libiconv_prefix+set}" = set; then :
  12037.   withval=$with_libiconv_prefix;
  12038.     if test "X$withval" = "Xno"; then
  12039.       use_additional=no
  12040.     else
  12041.       if test "X$withval" = "X"; then
  12042.  
  12043.   acl_save_prefix="$prefix"
  12044.   prefix="$acl_final_prefix"
  12045.   acl_save_exec_prefix="$exec_prefix"
  12046.   exec_prefix="$acl_final_exec_prefix"
  12047.  
  12048.           eval additional_includedir=\"$includedir\"
  12049.           eval additional_libdir=\"$libdir\"
  12050.  
  12051.   exec_prefix="$acl_save_exec_prefix"
  12052.   prefix="$acl_save_prefix"
  12053.  
  12054.       else
  12055.         additional_includedir="$withval/include"
  12056.         additional_libdir="$withval/$acl_libdirstem"
  12057.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  12058.            && ! test -d "$withval/$acl_libdirstem"; then
  12059.           additional_libdir="$withval/$acl_libdirstem2"
  12060.         fi
  12061.       fi
  12062.     fi
  12063.  
  12064. fi
  12065.  
  12066.       LIBICONV=
  12067.   LTLIBICONV=
  12068.   INCICONV=
  12069.   LIBICONV_PREFIX=
  12070.       HAVE_LIBICONV=
  12071.   rpathdirs=
  12072.   ltrpathdirs=
  12073.   names_already_handled=
  12074.   names_next_round='iconv '
  12075.   while test -n "$names_next_round"; do
  12076.     names_this_round="$names_next_round"
  12077.     names_next_round=
  12078.     for name in $names_this_round; do
  12079.       already_handled=
  12080.       for n in $names_already_handled; do
  12081.         if test "$n" = "$name"; then
  12082.           already_handled=yes
  12083.           break
  12084.         fi
  12085.       done
  12086.       if test -z "$already_handled"; then
  12087.         names_already_handled="$names_already_handled $name"
  12088.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  12089.         eval value=\"\$HAVE_LIB$uppername\"
  12090.         if test -n "$value"; then
  12091.           if test "$value" = yes; then
  12092.             eval value=\"\$LIB$uppername\"
  12093.             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12094.             eval value=\"\$LTLIB$uppername\"
  12095.             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12096.           else
  12097.                                     :
  12098.           fi
  12099.         else
  12100.                               found_dir=
  12101.           found_la=
  12102.           found_so=
  12103.           found_a=
  12104.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  12105.           if test -n "$acl_shlibext"; then
  12106.             shrext=".$acl_shlibext"             # typically: shrext=.so
  12107.           else
  12108.             shrext=
  12109.           fi
  12110.           if test $use_additional = yes; then
  12111.             dir="$additional_libdir"
  12112.                                     if test -n "$acl_shlibext"; then
  12113.               if test -f "$dir/$libname$shrext"; then
  12114.                 found_dir="$dir"
  12115.                 found_so="$dir/$libname$shrext"
  12116.               else
  12117.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12118.                   ver=`(cd "$dir" && \
  12119.                         for f in "$libname$shrext".*; do echo "$f"; done \
  12120.                         | sed -e "s,^$libname$shrext\\\\.,," \
  12121.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12122.                         | sed 1q ) 2>/dev/null`
  12123.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12124.                     found_dir="$dir"
  12125.                     found_so="$dir/$libname$shrext.$ver"
  12126.                   fi
  12127.                 else
  12128.                   eval library_names=\"$acl_library_names_spec\"
  12129.                   for f in $library_names; do
  12130.                     if test -f "$dir/$f"; then
  12131.                       found_dir="$dir"
  12132.                       found_so="$dir/$f"
  12133.                       break
  12134.                     fi
  12135.                   done
  12136.                 fi
  12137.               fi
  12138.             fi
  12139.                         if test "X$found_dir" = "X"; then
  12140.               if test -f "$dir/$libname.$acl_libext"; then
  12141.                 found_dir="$dir"
  12142.                 found_a="$dir/$libname.$acl_libext"
  12143.               fi
  12144.             fi
  12145.             if test "X$found_dir" != "X"; then
  12146.               if test -f "$dir/$libname.la"; then
  12147.                 found_la="$dir/$libname.la"
  12148.               fi
  12149.             fi
  12150.           fi
  12151.           if test "X$found_dir" = "X"; then
  12152.             for x in $LDFLAGS $LTLIBICONV; do
  12153.  
  12154.   acl_save_prefix="$prefix"
  12155.   prefix="$acl_final_prefix"
  12156.   acl_save_exec_prefix="$exec_prefix"
  12157.   exec_prefix="$acl_final_exec_prefix"
  12158.   eval x=\"$x\"
  12159.   exec_prefix="$acl_save_exec_prefix"
  12160.   prefix="$acl_save_prefix"
  12161.  
  12162.               case "$x" in
  12163.                 -L*)
  12164.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  12165.                                     if test -n "$acl_shlibext"; then
  12166.                     if test -f "$dir/$libname$shrext"; then
  12167.                       found_dir="$dir"
  12168.                       found_so="$dir/$libname$shrext"
  12169.                     else
  12170.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12171.                         ver=`(cd "$dir" && \
  12172.                               for f in "$libname$shrext".*; do echo "$f"; done \
  12173.                               | sed -e "s,^$libname$shrext\\\\.,," \
  12174.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12175.                               | sed 1q ) 2>/dev/null`
  12176.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12177.                           found_dir="$dir"
  12178.                           found_so="$dir/$libname$shrext.$ver"
  12179.                         fi
  12180.                       else
  12181.                         eval library_names=\"$acl_library_names_spec\"
  12182.                         for f in $library_names; do
  12183.                           if test -f "$dir/$f"; then
  12184.                             found_dir="$dir"
  12185.                             found_so="$dir/$f"
  12186.                             break
  12187.                           fi
  12188.                         done
  12189.                       fi
  12190.                     fi
  12191.                   fi
  12192.                                     if test "X$found_dir" = "X"; then
  12193.                     if test -f "$dir/$libname.$acl_libext"; then
  12194.                       found_dir="$dir"
  12195.                       found_a="$dir/$libname.$acl_libext"
  12196.                     fi
  12197.                   fi
  12198.                   if test "X$found_dir" != "X"; then
  12199.                     if test -f "$dir/$libname.la"; then
  12200.                       found_la="$dir/$libname.la"
  12201.                     fi
  12202.                   fi
  12203.                   ;;
  12204.               esac
  12205.               if test "X$found_dir" != "X"; then
  12206.                 break
  12207.               fi
  12208.             done
  12209.           fi
  12210.           if test "X$found_dir" != "X"; then
  12211.                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12212.             if test "X$found_so" != "X"; then
  12213.                                                         if test "$enable_rpath" = no \
  12214.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  12215.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  12216.                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12217.               else
  12218.                                                                                 haveit=
  12219.                 for x in $ltrpathdirs; do
  12220.                   if test "X$x" = "X$found_dir"; then
  12221.                     haveit=yes
  12222.                     break
  12223.                   fi
  12224.                 done
  12225.                 if test -z "$haveit"; then
  12226.                   ltrpathdirs="$ltrpathdirs $found_dir"
  12227.                 fi
  12228.                                 if test "$acl_hardcode_direct" = yes; then
  12229.                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12230.                 else
  12231.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12232.                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12233.                                                             haveit=
  12234.                     for x in $rpathdirs; do
  12235.                       if test "X$x" = "X$found_dir"; then
  12236.                         haveit=yes
  12237.                         break
  12238.                       fi
  12239.                     done
  12240.                     if test -z "$haveit"; then
  12241.                       rpathdirs="$rpathdirs $found_dir"
  12242.                     fi
  12243.                   else
  12244.                                                                                 haveit=
  12245.                     for x in $LDFLAGS $LIBICONV; do
  12246.  
  12247.   acl_save_prefix="$prefix"
  12248.   prefix="$acl_final_prefix"
  12249.   acl_save_exec_prefix="$exec_prefix"
  12250.   exec_prefix="$acl_final_exec_prefix"
  12251.   eval x=\"$x\"
  12252.   exec_prefix="$acl_save_exec_prefix"
  12253.   prefix="$acl_save_prefix"
  12254.  
  12255.                       if test "X$x" = "X-L$found_dir"; then
  12256.                         haveit=yes
  12257.                         break
  12258.                       fi
  12259.                     done
  12260.                     if test -z "$haveit"; then
  12261.                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12262.                     fi
  12263.                     if test "$acl_hardcode_minus_L" != no; then
  12264.                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12265.                     else
  12266.                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12267.                     fi
  12268.                   fi
  12269.                 fi
  12270.               fi
  12271.             else
  12272.               if test "X$found_a" != "X"; then
  12273.                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12274.               else
  12275.                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12276.               fi
  12277.             fi
  12278.                         additional_includedir=
  12279.             case "$found_dir" in
  12280.               */$acl_libdirstem | */$acl_libdirstem/)
  12281.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12282.                 if test "$name" = 'iconv'; then
  12283.                   LIBICONV_PREFIX="$basedir"
  12284.                 fi
  12285.                 additional_includedir="$basedir/include"
  12286.                 ;;
  12287.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  12288.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  12289.                 if test "$name" = 'iconv'; then
  12290.                   LIBICONV_PREFIX="$basedir"
  12291.                 fi
  12292.                 additional_includedir="$basedir/include"
  12293.                 ;;
  12294.             esac
  12295.             if test "X$additional_includedir" != "X"; then
  12296.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  12297.                 haveit=
  12298.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  12299.                   if test -n "$GCC"; then
  12300.                     case $host_os in
  12301.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12302.                     esac
  12303.                   fi
  12304.                 fi
  12305.                 if test -z "$haveit"; then
  12306.                   for x in $CPPFLAGS $INCICONV; do
  12307.  
  12308.   acl_save_prefix="$prefix"
  12309.   prefix="$acl_final_prefix"
  12310.   acl_save_exec_prefix="$exec_prefix"
  12311.   exec_prefix="$acl_final_exec_prefix"
  12312.   eval x=\"$x\"
  12313.   exec_prefix="$acl_save_exec_prefix"
  12314.   prefix="$acl_save_prefix"
  12315.  
  12316.                     if test "X$x" = "X-I$additional_includedir"; then
  12317.                       haveit=yes
  12318.                       break
  12319.                     fi
  12320.                   done
  12321.                   if test -z "$haveit"; then
  12322.                     if test -d "$additional_includedir"; then
  12323.                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12324.                     fi
  12325.                   fi
  12326.                 fi
  12327.               fi
  12328.             fi
  12329.                         if test -n "$found_la"; then
  12330.                                                         save_libdir="$libdir"
  12331.               case "$found_la" in
  12332.                 */* | *\\*) . "$found_la" ;;
  12333.                 *) . "./$found_la" ;;
  12334.               esac
  12335.               libdir="$save_libdir"
  12336.                             for dep in $dependency_libs; do
  12337.                 case "$dep" in
  12338.                   -L*)
  12339.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12340.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  12341.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  12342.                       haveit=
  12343.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  12344.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  12345.                         if test -n "$GCC"; then
  12346.                           case $host_os in
  12347.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12348.                           esac
  12349.                         fi
  12350.                       fi
  12351.                       if test -z "$haveit"; then
  12352.                         haveit=
  12353.                         for x in $LDFLAGS $LIBICONV; do
  12354.  
  12355.   acl_save_prefix="$prefix"
  12356.   prefix="$acl_final_prefix"
  12357.   acl_save_exec_prefix="$exec_prefix"
  12358.   exec_prefix="$acl_final_exec_prefix"
  12359.   eval x=\"$x\"
  12360.   exec_prefix="$acl_save_exec_prefix"
  12361.   prefix="$acl_save_prefix"
  12362.  
  12363.                           if test "X$x" = "X-L$additional_libdir"; then
  12364.                             haveit=yes
  12365.                             break
  12366.                           fi
  12367.                         done
  12368.                         if test -z "$haveit"; then
  12369.                           if test -d "$additional_libdir"; then
  12370.                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12371.                           fi
  12372.                         fi
  12373.                         haveit=
  12374.                         for x in $LDFLAGS $LTLIBICONV; do
  12375.  
  12376.   acl_save_prefix="$prefix"
  12377.   prefix="$acl_final_prefix"
  12378.   acl_save_exec_prefix="$exec_prefix"
  12379.   exec_prefix="$acl_final_exec_prefix"
  12380.   eval x=\"$x\"
  12381.   exec_prefix="$acl_save_exec_prefix"
  12382.   prefix="$acl_save_prefix"
  12383.  
  12384.                           if test "X$x" = "X-L$additional_libdir"; then
  12385.                             haveit=yes
  12386.                             break
  12387.                           fi
  12388.                         done
  12389.                         if test -z "$haveit"; then
  12390.                           if test -d "$additional_libdir"; then
  12391.                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12392.                           fi
  12393.                         fi
  12394.                       fi
  12395.                     fi
  12396.                     ;;
  12397.                   -R*)
  12398.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12399.                     if test "$enable_rpath" != no; then
  12400.                                                                   haveit=
  12401.                       for x in $rpathdirs; do
  12402.                         if test "X$x" = "X$dir"; then
  12403.                           haveit=yes
  12404.                           break
  12405.                         fi
  12406.                       done
  12407.                       if test -z "$haveit"; then
  12408.                         rpathdirs="$rpathdirs $dir"
  12409.                       fi
  12410.                                                                   haveit=
  12411.                       for x in $ltrpathdirs; do
  12412.                         if test "X$x" = "X$dir"; then
  12413.                           haveit=yes
  12414.                           break
  12415.                         fi
  12416.                       done
  12417.                       if test -z "$haveit"; then
  12418.                         ltrpathdirs="$ltrpathdirs $dir"
  12419.                       fi
  12420.                     fi
  12421.                     ;;
  12422.                   -l*)
  12423.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12424.                     ;;
  12425.                   *.la)
  12426.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12427.                     ;;
  12428.                   *)
  12429.                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12430.                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12431.                     ;;
  12432.                 esac
  12433.               done
  12434.             fi
  12435.           else
  12436.                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12437.             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12438.           fi
  12439.         fi
  12440.       fi
  12441.     done
  12442.   done
  12443.   if test "X$rpathdirs" != "X"; then
  12444.     if test -n "$acl_hardcode_libdir_separator"; then
  12445.                         alldirs=
  12446.       for found_dir in $rpathdirs; do
  12447.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12448.       done
  12449.             acl_save_libdir="$libdir"
  12450.       libdir="$alldirs"
  12451.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12452.       libdir="$acl_save_libdir"
  12453.       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12454.     else
  12455.             for found_dir in $rpathdirs; do
  12456.         acl_save_libdir="$libdir"
  12457.         libdir="$found_dir"
  12458.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12459.         libdir="$acl_save_libdir"
  12460.         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12461.       done
  12462.     fi
  12463.   fi
  12464.   if test "X$ltrpathdirs" != "X"; then
  12465.             for found_dir in $ltrpathdirs; do
  12466.       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12467.     done
  12468.   fi
  12469.  
  12470.  
  12471.  
  12472.  
  12473.  
  12474.  
  12475.  
  12476.  
  12477.  
  12478.  
  12479.  
  12480.  
  12481.  
  12482.  
  12483.  
  12484.  
  12485.  
  12486.  
  12487.  
  12488.  
  12489.  
  12490.  
  12491.  
  12492.  
  12493.  
  12494.  
  12495.  
  12496.  
  12497.  
  12498.  
  12499.  
  12500.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  12501. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  12502. if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
  12503.   $as_echo_n "(cached) " >&6
  12504. else
  12505.   gt_save_LIBS="$LIBS"
  12506.      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12507.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12508. /* end confdefs.h.  */
  12509. #include <CoreFoundation/CFPreferences.h>
  12510. int
  12511. main ()
  12512. {
  12513. CFPreferencesCopyAppValue(NULL, NULL)
  12514.   ;
  12515.   return 0;
  12516. }
  12517. _ACEOF
  12518. if ac_fn_c_try_link "$LINENO"; then :
  12519.   gt_cv_func_CFPreferencesCopyAppValue=yes
  12520. else
  12521.   gt_cv_func_CFPreferencesCopyAppValue=no
  12522. fi
  12523. rm -f core conftest.err conftest.$ac_objext \
  12524.     conftest$ac_exeext conftest.$ac_ext
  12525.      LIBS="$gt_save_LIBS"
  12526. fi
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  12528. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  12529.   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  12530.  
  12531. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  12532.  
  12533.   fi
  12534.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  12535. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  12536. if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
  12537.   $as_echo_n "(cached) " >&6
  12538. else
  12539.   gt_save_LIBS="$LIBS"
  12540.      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12541.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12542. /* end confdefs.h.  */
  12543. #include <CoreFoundation/CFLocale.h>
  12544. int
  12545. main ()
  12546. {
  12547. CFLocaleCopyCurrent();
  12548.   ;
  12549.   return 0;
  12550. }
  12551. _ACEOF
  12552. if ac_fn_c_try_link "$LINENO"; then :
  12553.   gt_cv_func_CFLocaleCopyCurrent=yes
  12554. else
  12555.   gt_cv_func_CFLocaleCopyCurrent=no
  12556. fi
  12557. rm -f core conftest.err conftest.$ac_objext \
  12558.     conftest$ac_exeext conftest.$ac_ext
  12559.      LIBS="$gt_save_LIBS"
  12560. fi
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  12562. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  12563.   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12564.  
  12565. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  12566.  
  12567.   fi
  12568.   INTL_MACOSX_LIBS=
  12569.   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12570.     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  12571.   fi
  12572.  
  12573.  
  12574.  
  12575.  
  12576.  
  12577.  
  12578.   LIBINTL=
  12579.   LTLIBINTL=
  12580.   POSUB=
  12581.  
  12582.     case " $gt_needs " in
  12583.     *" need-formatstring-macros "*) gt_api_version=3 ;;
  12584.     *" need-ngettext "*) gt_api_version=2 ;;
  12585.     *) gt_api_version=1 ;;
  12586.   esac
  12587.   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  12588.   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  12589.  
  12590.     if test "$USE_NLS" = "yes"; then
  12591.     gt_use_preinstalled_gnugettext=no
  12592.  
  12593.  
  12594.         if test $gt_api_version -ge 3; then
  12595.           gt_revision_test_code='
  12596. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  12597. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  12598. #endif
  12599. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  12600. '
  12601.         else
  12602.           gt_revision_test_code=
  12603.         fi
  12604.         if test $gt_api_version -ge 2; then
  12605.           gt_expression_test_code=' + * ngettext ("", "", 0)'
  12606.         else
  12607.           gt_expression_test_code=
  12608.         fi
  12609.  
  12610.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  12611. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  12612. if eval \${$gt_func_gnugettext_libc+:} false; then :
  12613.   $as_echo_n "(cached) " >&6
  12614. else
  12615.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12616. /* end confdefs.h.  */
  12617.  
  12618. #include <libintl.h>
  12619. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  12620. extern int _nl_msg_cat_cntr;
  12621. extern int *_nl_domain_bindings;
  12622. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
  12623. #else
  12624. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  12625. #endif
  12626. $gt_revision_test_code
  12627.  
  12628. int
  12629. main ()
  12630. {
  12631.  
  12632. bindtextdomain ("", "");
  12633. return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  12634.  
  12635.   ;
  12636.   return 0;
  12637. }
  12638. _ACEOF
  12639. if ac_fn_c_try_link "$LINENO"; then :
  12640.   eval "$gt_func_gnugettext_libc=yes"
  12641. else
  12642.   eval "$gt_func_gnugettext_libc=no"
  12643. fi
  12644. rm -f core conftest.err conftest.$ac_objext \
  12645.     conftest$ac_exeext conftest.$ac_ext
  12646. fi
  12647. eval ac_res=\$$gt_func_gnugettext_libc
  12648.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12649. $as_echo "$ac_res" >&6; }
  12650.  
  12651.         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  12652.  
  12653.  
  12654.  
  12655.  
  12656.  
  12657.           am_save_CPPFLAGS="$CPPFLAGS"
  12658.  
  12659.   for element in $INCICONV; do
  12660.     haveit=
  12661.     for x in $CPPFLAGS; do
  12662.  
  12663.   acl_save_prefix="$prefix"
  12664.   prefix="$acl_final_prefix"
  12665.   acl_save_exec_prefix="$exec_prefix"
  12666.   exec_prefix="$acl_final_exec_prefix"
  12667.   eval x=\"$x\"
  12668.   exec_prefix="$acl_save_exec_prefix"
  12669.   prefix="$acl_save_prefix"
  12670.  
  12671.       if test "X$x" = "X$element"; then
  12672.         haveit=yes
  12673.         break
  12674.       fi
  12675.     done
  12676.     if test -z "$haveit"; then
  12677.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12678.     fi
  12679.   done
  12680.  
  12681.  
  12682.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  12683. $as_echo_n "checking for iconv... " >&6; }
  12684. if ${am_cv_func_iconv+:} false; then :
  12685.   $as_echo_n "(cached) " >&6
  12686. else
  12687.  
  12688.     am_cv_func_iconv="no, consider installing GNU libiconv"
  12689.     am_cv_lib_iconv=no
  12690.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12691. /* end confdefs.h.  */
  12692.  
  12693. #include <stdlib.h>
  12694. #include <iconv.h>
  12695.  
  12696. int
  12697. main ()
  12698. {
  12699. iconv_t cd = iconv_open("","");
  12700.            iconv(cd,NULL,NULL,NULL,NULL);
  12701.            iconv_close(cd);
  12702.   ;
  12703.   return 0;
  12704. }
  12705. _ACEOF
  12706. if ac_fn_c_try_link "$LINENO"; then :
  12707.   am_cv_func_iconv=yes
  12708. fi
  12709. rm -f core conftest.err conftest.$ac_objext \
  12710.     conftest$ac_exeext conftest.$ac_ext
  12711.     if test "$am_cv_func_iconv" != yes; then
  12712.       am_save_LIBS="$LIBS"
  12713.       LIBS="$LIBS $LIBICONV"
  12714.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12715. /* end confdefs.h.  */
  12716.  
  12717. #include <stdlib.h>
  12718. #include <iconv.h>
  12719.  
  12720. int
  12721. main ()
  12722. {
  12723. iconv_t cd = iconv_open("","");
  12724.              iconv(cd,NULL,NULL,NULL,NULL);
  12725.              iconv_close(cd);
  12726.   ;
  12727.   return 0;
  12728. }
  12729. _ACEOF
  12730. if ac_fn_c_try_link "$LINENO"; then :
  12731.   am_cv_lib_iconv=yes
  12732.         am_cv_func_iconv=yes
  12733. fi
  12734. rm -f core conftest.err conftest.$ac_objext \
  12735.     conftest$ac_exeext conftest.$ac_ext
  12736.       LIBS="$am_save_LIBS"
  12737.     fi
  12738.  
  12739. fi
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  12741. $as_echo "$am_cv_func_iconv" >&6; }
  12742.   if test "$am_cv_func_iconv" = yes; then
  12743.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  12744. $as_echo_n "checking for working iconv... " >&6; }
  12745. if ${am_cv_func_iconv_works+:} false; then :
  12746.   $as_echo_n "(cached) " >&6
  12747. else
  12748.  
  12749.                   am_save_LIBS="$LIBS"
  12750.       if test $am_cv_lib_iconv = yes; then
  12751.         LIBS="$LIBS $LIBICONV"
  12752.       fi
  12753.       if test "$cross_compiling" = yes; then :
  12754.  
  12755.          case "$host_os" in
  12756.            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12757.            *)            am_cv_func_iconv_works="guessing yes" ;;
  12758.          esac
  12759.  
  12760. else
  12761.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12762. /* end confdefs.h.  */
  12763.  
  12764. #include <iconv.h>
  12765. #include <string.h>
  12766. int main ()
  12767. {
  12768.   int result = 0;
  12769.   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12770.      returns.  */
  12771.   {
  12772.     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12773.     if (cd_utf8_to_88591 != (iconv_t)(-1))
  12774.       {
  12775.         static const char input[] = "\342\202\254"; /* EURO SIGN */
  12776.         char buf[10];
  12777.         const char *inptr = input;
  12778.         size_t inbytesleft = strlen (input);
  12779.         char *outptr = buf;
  12780.         size_t outbytesleft = sizeof (buf);
  12781.         size_t res = iconv (cd_utf8_to_88591,
  12782.                             (char **) &inptr, &inbytesleft,
  12783.                             &outptr, &outbytesleft);
  12784.         if (res == 0)
  12785.           result |= 1;
  12786.         iconv_close (cd_utf8_to_88591);
  12787.       }
  12788.   }
  12789.   /* Test against Solaris 10 bug: Failures are not distinguishable from
  12790.      successful returns.  */
  12791.   {
  12792.     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  12793.     if (cd_ascii_to_88591 != (iconv_t)(-1))
  12794.       {
  12795.         static const char input[] = "\263";
  12796.         char buf[10];
  12797.         const char *inptr = input;
  12798.         size_t inbytesleft = strlen (input);
  12799.         char *outptr = buf;
  12800.         size_t outbytesleft = sizeof (buf);
  12801.         size_t res = iconv (cd_ascii_to_88591,
  12802.                             (char **) &inptr, &inbytesleft,
  12803.                             &outptr, &outbytesleft);
  12804.         if (res == 0)
  12805.           result |= 2;
  12806.         iconv_close (cd_ascii_to_88591);
  12807.       }
  12808.   }
  12809.   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
  12810.   {
  12811.     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
  12812.     if (cd_88591_to_utf8 != (iconv_t)(-1))
  12813.       {
  12814.         static const char input[] = "\304";
  12815.         static char buf[2] = { (char)0xDE, (char)0xAD };
  12816.         const char *inptr = input;
  12817.         size_t inbytesleft = 1;
  12818.         char *outptr = buf;
  12819.         size_t outbytesleft = 1;
  12820.         size_t res = iconv (cd_88591_to_utf8,
  12821.                             (char **) &inptr, &inbytesleft,
  12822.                             &outptr, &outbytesleft);
  12823.         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
  12824.           result |= 4;
  12825.         iconv_close (cd_88591_to_utf8);
  12826.       }
  12827.   }
  12828. #if 0 /* This bug could be worked around by the caller.  */
  12829.   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
  12830.   {
  12831.     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12832.     if (cd_88591_to_utf8 != (iconv_t)(-1))
  12833.       {
  12834.         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12835.         char buf[50];
  12836.         const char *inptr = input;
  12837.         size_t inbytesleft = strlen (input);
  12838.         char *outptr = buf;
  12839.         size_t outbytesleft = sizeof (buf);
  12840.         size_t res = iconv (cd_88591_to_utf8,
  12841.                             (char **) &inptr, &inbytesleft,
  12842.                             &outptr, &outbytesleft);
  12843.         if ((int)res > 0)
  12844.           result |= 8;
  12845.         iconv_close (cd_88591_to_utf8);
  12846.       }
  12847.   }
  12848. #endif
  12849.   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12850.      provided.  */
  12851.   if (/* Try standardized names.  */
  12852.       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12853.       /* Try IRIX, OSF/1 names.  */
  12854.       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12855.       /* Try AIX names.  */
  12856.       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12857.       /* Try HP-UX names.  */
  12858.       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12859.     result |= 16;
  12860.   return result;
  12861. }
  12862. _ACEOF
  12863. if ac_fn_c_try_run "$LINENO"; then :
  12864.   am_cv_func_iconv_works=yes
  12865. else
  12866.   am_cv_func_iconv_works=no
  12867. fi
  12868. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12869.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  12870. fi
  12871.  
  12872.       LIBS="$am_save_LIBS"
  12873.  
  12874. fi
  12875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  12876. $as_echo "$am_cv_func_iconv_works" >&6; }
  12877.     case "$am_cv_func_iconv_works" in
  12878.       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12879.       *)   am_func_iconv=yes ;;
  12880.     esac
  12881.   else
  12882.     am_func_iconv=no am_cv_lib_iconv=no
  12883.   fi
  12884.   if test "$am_func_iconv" = yes; then
  12885.  
  12886. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  12887.  
  12888.   fi
  12889.   if test "$am_cv_lib_iconv" = yes; then
  12890.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  12891. $as_echo_n "checking how to link with libiconv... " >&6; }
  12892.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  12893. $as_echo "$LIBICONV" >&6; }
  12894.   else
  12895.             CPPFLAGS="$am_save_CPPFLAGS"
  12896.     LIBICONV=
  12897.     LTLIBICONV=
  12898.   fi
  12899.  
  12900.  
  12901.  
  12902.  
  12903.  
  12904.  
  12905.  
  12906.  
  12907.  
  12908.  
  12909.  
  12910.     use_additional=yes
  12911.  
  12912.   acl_save_prefix="$prefix"
  12913.   prefix="$acl_final_prefix"
  12914.   acl_save_exec_prefix="$exec_prefix"
  12915.   exec_prefix="$acl_final_exec_prefix"
  12916.  
  12917.     eval additional_includedir=\"$includedir\"
  12918.     eval additional_libdir=\"$libdir\"
  12919.  
  12920.   exec_prefix="$acl_save_exec_prefix"
  12921.   prefix="$acl_save_prefix"
  12922.  
  12923.  
  12924. # Check whether --with-libintl-prefix was given.
  12925. if test "${with_libintl_prefix+set}" = set; then :
  12926.   withval=$with_libintl_prefix;
  12927.     if test "X$withval" = "Xno"; then
  12928.       use_additional=no
  12929.     else
  12930.       if test "X$withval" = "X"; then
  12931.  
  12932.   acl_save_prefix="$prefix"
  12933.   prefix="$acl_final_prefix"
  12934.   acl_save_exec_prefix="$exec_prefix"
  12935.   exec_prefix="$acl_final_exec_prefix"
  12936.  
  12937.           eval additional_includedir=\"$includedir\"
  12938.           eval additional_libdir=\"$libdir\"
  12939.  
  12940.   exec_prefix="$acl_save_exec_prefix"
  12941.   prefix="$acl_save_prefix"
  12942.  
  12943.       else
  12944.         additional_includedir="$withval/include"
  12945.         additional_libdir="$withval/$acl_libdirstem"
  12946.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  12947.            && ! test -d "$withval/$acl_libdirstem"; then
  12948.           additional_libdir="$withval/$acl_libdirstem2"
  12949.         fi
  12950.       fi
  12951.     fi
  12952.  
  12953. fi
  12954.  
  12955.       LIBINTL=
  12956.   LTLIBINTL=
  12957.   INCINTL=
  12958.   LIBINTL_PREFIX=
  12959.       HAVE_LIBINTL=
  12960.   rpathdirs=
  12961.   ltrpathdirs=
  12962.   names_already_handled=
  12963.   names_next_round='intl '
  12964.   while test -n "$names_next_round"; do
  12965.     names_this_round="$names_next_round"
  12966.     names_next_round=
  12967.     for name in $names_this_round; do
  12968.       already_handled=
  12969.       for n in $names_already_handled; do
  12970.         if test "$n" = "$name"; then
  12971.           already_handled=yes
  12972.           break
  12973.         fi
  12974.       done
  12975.       if test -z "$already_handled"; then
  12976.         names_already_handled="$names_already_handled $name"
  12977.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  12978.         eval value=\"\$HAVE_LIB$uppername\"
  12979.         if test -n "$value"; then
  12980.           if test "$value" = yes; then
  12981.             eval value=\"\$LIB$uppername\"
  12982.             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  12983.             eval value=\"\$LTLIB$uppername\"
  12984.             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  12985.           else
  12986.                                     :
  12987.           fi
  12988.         else
  12989.                               found_dir=
  12990.           found_la=
  12991.           found_so=
  12992.           found_a=
  12993.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  12994.           if test -n "$acl_shlibext"; then
  12995.             shrext=".$acl_shlibext"             # typically: shrext=.so
  12996.           else
  12997.             shrext=
  12998.           fi
  12999.           if test $use_additional = yes; then
  13000.             dir="$additional_libdir"
  13001.                                     if test -n "$acl_shlibext"; then
  13002.               if test -f "$dir/$libname$shrext"; then
  13003.                 found_dir="$dir"
  13004.                 found_so="$dir/$libname$shrext"
  13005.               else
  13006.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13007.                   ver=`(cd "$dir" && \
  13008.                         for f in "$libname$shrext".*; do echo "$f"; done \
  13009.                         | sed -e "s,^$libname$shrext\\\\.,," \
  13010.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13011.                         | sed 1q ) 2>/dev/null`
  13012.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13013.                     found_dir="$dir"
  13014.                     found_so="$dir/$libname$shrext.$ver"
  13015.                   fi
  13016.                 else
  13017.                   eval library_names=\"$acl_library_names_spec\"
  13018.                   for f in $library_names; do
  13019.                     if test -f "$dir/$f"; then
  13020.                       found_dir="$dir"
  13021.                       found_so="$dir/$f"
  13022.                       break
  13023.                     fi
  13024.                   done
  13025.                 fi
  13026.               fi
  13027.             fi
  13028.                         if test "X$found_dir" = "X"; then
  13029.               if test -f "$dir/$libname.$acl_libext"; then
  13030.                 found_dir="$dir"
  13031.                 found_a="$dir/$libname.$acl_libext"
  13032.               fi
  13033.             fi
  13034.             if test "X$found_dir" != "X"; then
  13035.               if test -f "$dir/$libname.la"; then
  13036.                 found_la="$dir/$libname.la"
  13037.               fi
  13038.             fi
  13039.           fi
  13040.           if test "X$found_dir" = "X"; then
  13041.             for x in $LDFLAGS $LTLIBINTL; do
  13042.  
  13043.   acl_save_prefix="$prefix"
  13044.   prefix="$acl_final_prefix"
  13045.   acl_save_exec_prefix="$exec_prefix"
  13046.   exec_prefix="$acl_final_exec_prefix"
  13047.   eval x=\"$x\"
  13048.   exec_prefix="$acl_save_exec_prefix"
  13049.   prefix="$acl_save_prefix"
  13050.  
  13051.               case "$x" in
  13052.                 -L*)
  13053.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  13054.                                     if test -n "$acl_shlibext"; then
  13055.                     if test -f "$dir/$libname$shrext"; then
  13056.                       found_dir="$dir"
  13057.                       found_so="$dir/$libname$shrext"
  13058.                     else
  13059.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13060.                         ver=`(cd "$dir" && \
  13061.                               for f in "$libname$shrext".*; do echo "$f"; done \
  13062.                               | sed -e "s,^$libname$shrext\\\\.,," \
  13063.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13064.                               | sed 1q ) 2>/dev/null`
  13065.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13066.                           found_dir="$dir"
  13067.                           found_so="$dir/$libname$shrext.$ver"
  13068.                         fi
  13069.                       else
  13070.                         eval library_names=\"$acl_library_names_spec\"
  13071.                         for f in $library_names; do
  13072.                           if test -f "$dir/$f"; then
  13073.                             found_dir="$dir"
  13074.                             found_so="$dir/$f"
  13075.                             break
  13076.                           fi
  13077.                         done
  13078.                       fi
  13079.                     fi
  13080.                   fi
  13081.                                     if test "X$found_dir" = "X"; then
  13082.                     if test -f "$dir/$libname.$acl_libext"; then
  13083.                       found_dir="$dir"
  13084.                       found_a="$dir/$libname.$acl_libext"
  13085.                     fi
  13086.                   fi
  13087.                   if test "X$found_dir" != "X"; then
  13088.                     if test -f "$dir/$libname.la"; then
  13089.                       found_la="$dir/$libname.la"
  13090.                     fi
  13091.                   fi
  13092.                   ;;
  13093.               esac
  13094.               if test "X$found_dir" != "X"; then
  13095.                 break
  13096.               fi
  13097.             done
  13098.           fi
  13099.           if test "X$found_dir" != "X"; then
  13100.                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  13101.             if test "X$found_so" != "X"; then
  13102.                                                         if test "$enable_rpath" = no \
  13103.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  13104.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  13105.                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13106.               else
  13107.                                                                                 haveit=
  13108.                 for x in $ltrpathdirs; do
  13109.                   if test "X$x" = "X$found_dir"; then
  13110.                     haveit=yes
  13111.                     break
  13112.                   fi
  13113.                 done
  13114.                 if test -z "$haveit"; then
  13115.                   ltrpathdirs="$ltrpathdirs $found_dir"
  13116.                 fi
  13117.                                 if test "$acl_hardcode_direct" = yes; then
  13118.                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13119.                 else
  13120.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13121.                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13122.                                                             haveit=
  13123.                     for x in $rpathdirs; do
  13124.                       if test "X$x" = "X$found_dir"; then
  13125.                         haveit=yes
  13126.                         break
  13127.                       fi
  13128.                     done
  13129.                     if test -z "$haveit"; then
  13130.                       rpathdirs="$rpathdirs $found_dir"
  13131.                     fi
  13132.                   else
  13133.                                                                                 haveit=
  13134.                     for x in $LDFLAGS $LIBINTL; do
  13135.  
  13136.   acl_save_prefix="$prefix"
  13137.   prefix="$acl_final_prefix"
  13138.   acl_save_exec_prefix="$exec_prefix"
  13139.   exec_prefix="$acl_final_exec_prefix"
  13140.   eval x=\"$x\"
  13141.   exec_prefix="$acl_save_exec_prefix"
  13142.   prefix="$acl_save_prefix"
  13143.  
  13144.                       if test "X$x" = "X-L$found_dir"; then
  13145.                         haveit=yes
  13146.                         break
  13147.                       fi
  13148.                     done
  13149.                     if test -z "$haveit"; then
  13150.                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  13151.                     fi
  13152.                     if test "$acl_hardcode_minus_L" != no; then
  13153.                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13154.                     else
  13155.                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13156.                     fi
  13157.                   fi
  13158.                 fi
  13159.               fi
  13160.             else
  13161.               if test "X$found_a" != "X"; then
  13162.                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  13163.               else
  13164.                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  13165.               fi
  13166.             fi
  13167.                         additional_includedir=
  13168.             case "$found_dir" in
  13169.               */$acl_libdirstem | */$acl_libdirstem/)
  13170.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13171.                 if test "$name" = 'intl'; then
  13172.                   LIBINTL_PREFIX="$basedir"
  13173.                 fi
  13174.                 additional_includedir="$basedir/include"
  13175.                 ;;
  13176.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  13177.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  13178.                 if test "$name" = 'intl'; then
  13179.                   LIBINTL_PREFIX="$basedir"
  13180.                 fi
  13181.                 additional_includedir="$basedir/include"
  13182.                 ;;
  13183.             esac
  13184.             if test "X$additional_includedir" != "X"; then
  13185.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  13186.                 haveit=
  13187.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  13188.                   if test -n "$GCC"; then
  13189.                     case $host_os in
  13190.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13191.                     esac
  13192.                   fi
  13193.                 fi
  13194.                 if test -z "$haveit"; then
  13195.                   for x in $CPPFLAGS $INCINTL; do
  13196.  
  13197.   acl_save_prefix="$prefix"
  13198.   prefix="$acl_final_prefix"
  13199.   acl_save_exec_prefix="$exec_prefix"
  13200.   exec_prefix="$acl_final_exec_prefix"
  13201.   eval x=\"$x\"
  13202.   exec_prefix="$acl_save_exec_prefix"
  13203.   prefix="$acl_save_prefix"
  13204.  
  13205.                     if test "X$x" = "X-I$additional_includedir"; then
  13206.                       haveit=yes
  13207.                       break
  13208.                     fi
  13209.                   done
  13210.                   if test -z "$haveit"; then
  13211.                     if test -d "$additional_includedir"; then
  13212.                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  13213.                     fi
  13214.                   fi
  13215.                 fi
  13216.               fi
  13217.             fi
  13218.                         if test -n "$found_la"; then
  13219.                                                         save_libdir="$libdir"
  13220.               case "$found_la" in
  13221.                 */* | *\\*) . "$found_la" ;;
  13222.                 *) . "./$found_la" ;;
  13223.               esac
  13224.               libdir="$save_libdir"
  13225.                             for dep in $dependency_libs; do
  13226.                 case "$dep" in
  13227.                   -L*)
  13228.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13229.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  13230.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  13231.                       haveit=
  13232.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  13233.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  13234.                         if test -n "$GCC"; then
  13235.                           case $host_os in
  13236.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13237.                           esac
  13238.                         fi
  13239.                       fi
  13240.                       if test -z "$haveit"; then
  13241.                         haveit=
  13242.                         for x in $LDFLAGS $LIBINTL; do
  13243.  
  13244.   acl_save_prefix="$prefix"
  13245.   prefix="$acl_final_prefix"
  13246.   acl_save_exec_prefix="$exec_prefix"
  13247.   exec_prefix="$acl_final_exec_prefix"
  13248.   eval x=\"$x\"
  13249.   exec_prefix="$acl_save_exec_prefix"
  13250.   prefix="$acl_save_prefix"
  13251.  
  13252.                           if test "X$x" = "X-L$additional_libdir"; then
  13253.                             haveit=yes
  13254.                             break
  13255.                           fi
  13256.                         done
  13257.                         if test -z "$haveit"; then
  13258.                           if test -d "$additional_libdir"; then
  13259.                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  13260.                           fi
  13261.                         fi
  13262.                         haveit=
  13263.                         for x in $LDFLAGS $LTLIBINTL; do
  13264.  
  13265.   acl_save_prefix="$prefix"
  13266.   prefix="$acl_final_prefix"
  13267.   acl_save_exec_prefix="$exec_prefix"
  13268.   exec_prefix="$acl_final_exec_prefix"
  13269.   eval x=\"$x\"
  13270.   exec_prefix="$acl_save_exec_prefix"
  13271.   prefix="$acl_save_prefix"
  13272.  
  13273.                           if test "X$x" = "X-L$additional_libdir"; then
  13274.                             haveit=yes
  13275.                             break
  13276.                           fi
  13277.                         done
  13278.                         if test -z "$haveit"; then
  13279.                           if test -d "$additional_libdir"; then
  13280.                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  13281.                           fi
  13282.                         fi
  13283.                       fi
  13284.                     fi
  13285.                     ;;
  13286.                   -R*)
  13287.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13288.                     if test "$enable_rpath" != no; then
  13289.                                                                   haveit=
  13290.                       for x in $rpathdirs; do
  13291.                         if test "X$x" = "X$dir"; then
  13292.                           haveit=yes
  13293.                           break
  13294.                         fi
  13295.                       done
  13296.                       if test -z "$haveit"; then
  13297.                         rpathdirs="$rpathdirs $dir"
  13298.                       fi
  13299.                                                                   haveit=
  13300.                       for x in $ltrpathdirs; do
  13301.                         if test "X$x" = "X$dir"; then
  13302.                           haveit=yes
  13303.                           break
  13304.                         fi
  13305.                       done
  13306.                       if test -z "$haveit"; then
  13307.                         ltrpathdirs="$ltrpathdirs $dir"
  13308.                       fi
  13309.                     fi
  13310.                     ;;
  13311.                   -l*)
  13312.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13313.                     ;;
  13314.                   *.la)
  13315.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13316.                     ;;
  13317.                   *)
  13318.                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  13319.                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  13320.                     ;;
  13321.                 esac
  13322.               done
  13323.             fi
  13324.           else
  13325.                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13326.             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  13327.           fi
  13328.         fi
  13329.       fi
  13330.     done
  13331.   done
  13332.   if test "X$rpathdirs" != "X"; then
  13333.     if test -n "$acl_hardcode_libdir_separator"; then
  13334.                         alldirs=
  13335.       for found_dir in $rpathdirs; do
  13336.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13337.       done
  13338.             acl_save_libdir="$libdir"
  13339.       libdir="$alldirs"
  13340.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13341.       libdir="$acl_save_libdir"
  13342.       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13343.     else
  13344.             for found_dir in $rpathdirs; do
  13345.         acl_save_libdir="$libdir"
  13346.         libdir="$found_dir"
  13347.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13348.         libdir="$acl_save_libdir"
  13349.         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13350.       done
  13351.     fi
  13352.   fi
  13353.   if test "X$ltrpathdirs" != "X"; then
  13354.             for found_dir in $ltrpathdirs; do
  13355.       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  13356.     done
  13357.   fi
  13358.  
  13359.  
  13360.  
  13361.  
  13362.  
  13363.  
  13364.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  13365. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  13366. if eval \${$gt_func_gnugettext_libintl+:} false; then :
  13367.   $as_echo_n "(cached) " >&6
  13368. else
  13369.   gt_save_CPPFLAGS="$CPPFLAGS"
  13370.             CPPFLAGS="$CPPFLAGS $INCINTL"
  13371.             gt_save_LIBS="$LIBS"
  13372.             LIBS="$LIBS $LIBINTL"
  13373.                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13374. /* end confdefs.h.  */
  13375.  
  13376. #include <libintl.h>
  13377. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  13378. extern int _nl_msg_cat_cntr;
  13379. extern
  13380. #ifdef __cplusplus
  13381. "C"
  13382. #endif
  13383. const char *_nl_expand_alias (const char *);
  13384. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
  13385. #else
  13386. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  13387. #endif
  13388. $gt_revision_test_code
  13389.  
  13390. int
  13391. main ()
  13392. {
  13393.  
  13394. bindtextdomain ("", "");
  13395. return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  13396.  
  13397.   ;
  13398.   return 0;
  13399. }
  13400. _ACEOF
  13401. if ac_fn_c_try_link "$LINENO"; then :
  13402.   eval "$gt_func_gnugettext_libintl=yes"
  13403. else
  13404.   eval "$gt_func_gnugettext_libintl=no"
  13405. fi
  13406. rm -f core conftest.err conftest.$ac_objext \
  13407.     conftest$ac_exeext conftest.$ac_ext
  13408.                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  13409.               LIBS="$LIBS $LIBICONV"
  13410.               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13411. /* end confdefs.h.  */
  13412.  
  13413. #include <libintl.h>
  13414. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  13415. extern int _nl_msg_cat_cntr;
  13416. extern
  13417. #ifdef __cplusplus
  13418. "C"
  13419. #endif
  13420. const char *_nl_expand_alias (const char *);
  13421. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
  13422. #else
  13423. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  13424. #endif
  13425. $gt_revision_test_code
  13426.  
  13427. int
  13428. main ()
  13429. {
  13430.  
  13431. bindtextdomain ("", "");
  13432. return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  13433.  
  13434.   ;
  13435.   return 0;
  13436. }
  13437. _ACEOF
  13438. if ac_fn_c_try_link "$LINENO"; then :
  13439.   LIBINTL="$LIBINTL $LIBICONV"
  13440.                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  13441.                  eval "$gt_func_gnugettext_libintl=yes"
  13442.  
  13443. fi
  13444. rm -f core conftest.err conftest.$ac_objext \
  13445.     conftest$ac_exeext conftest.$ac_ext
  13446.             fi
  13447.             CPPFLAGS="$gt_save_CPPFLAGS"
  13448.             LIBS="$gt_save_LIBS"
  13449. fi
  13450. eval ac_res=\$$gt_func_gnugettext_libintl
  13451.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13452. $as_echo "$ac_res" >&6; }
  13453.         fi
  13454.  
  13455.                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  13456.            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  13457.                 && test "$PACKAGE" != gettext-runtime \
  13458.                 && test "$PACKAGE" != gettext-tools; }; then
  13459.           gt_use_preinstalled_gnugettext=yes
  13460.         else
  13461.                     LIBINTL=
  13462.           LTLIBINTL=
  13463.           INCINTL=
  13464.         fi
  13465.  
  13466.  
  13467.  
  13468.     if test -n "$INTL_MACOSX_LIBS"; then
  13469.       if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13470.          || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13471.                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  13472.         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  13473.       fi
  13474.     fi
  13475.  
  13476.     if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13477.        || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13478.  
  13479. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  13480.  
  13481.     else
  13482.       USE_NLS=no
  13483.     fi
  13484.   fi
  13485.  
  13486.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  13487. $as_echo_n "checking whether to use NLS... " >&6; }
  13488.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  13489. $as_echo "$USE_NLS" >&6; }
  13490.   if test "$USE_NLS" = "yes"; then
  13491.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  13492. $as_echo_n "checking where the gettext function comes from... " >&6; }
  13493.     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13494.       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13495.         gt_source="external libintl"
  13496.       else
  13497.         gt_source="libc"
  13498.       fi
  13499.     else
  13500.       gt_source="included intl directory"
  13501.     fi
  13502.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  13503. $as_echo "$gt_source" >&6; }
  13504.   fi
  13505.  
  13506.   if test "$USE_NLS" = "yes"; then
  13507.  
  13508.     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13509.       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13510.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  13511. $as_echo_n "checking how to link with libintl... " >&6; }
  13512.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  13513. $as_echo "$LIBINTL" >&6; }
  13514.  
  13515.   for element in $INCINTL; do
  13516.     haveit=
  13517.     for x in $CPPFLAGS; do
  13518.  
  13519.   acl_save_prefix="$prefix"
  13520.   prefix="$acl_final_prefix"
  13521.   acl_save_exec_prefix="$exec_prefix"
  13522.   exec_prefix="$acl_final_exec_prefix"
  13523.   eval x=\"$x\"
  13524.   exec_prefix="$acl_save_exec_prefix"
  13525.   prefix="$acl_save_prefix"
  13526.  
  13527.       if test "X$x" = "X$element"; then
  13528.         haveit=yes
  13529.         break
  13530.       fi
  13531.     done
  13532.     if test -z "$haveit"; then
  13533.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13534.     fi
  13535.   done
  13536.  
  13537.       fi
  13538.  
  13539.  
  13540. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  13541.  
  13542.  
  13543. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  13544.  
  13545.     fi
  13546.  
  13547.         POSUB=po
  13548.   fi
  13549.  
  13550.  
  13551.  
  13552.     INTLLIBS="$LIBINTL"
  13553.  
  13554.  
  13555.  
  13556.  
  13557.  
  13558.  
  13559.  
  13560.  
  13561.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  13562. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  13563. if ${ac_cv_c_bigendian+:} false; then :
  13564.   $as_echo_n "(cached) " >&6
  13565. else
  13566.   ac_cv_c_bigendian=unknown
  13567.     # See if we're dealing with a universal compiler.
  13568.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13569. /* end confdefs.h.  */
  13570. #ifndef __APPLE_CC__
  13571.                not a universal capable compiler
  13572.              #endif
  13573.              typedef int dummy;
  13574.  
  13575. _ACEOF
  13576. if ac_fn_c_try_compile "$LINENO"; then :
  13577.  
  13578.         # Check for potential -arch flags.  It is not universal unless
  13579.         # there are at least two -arch flags with different values.
  13580.         ac_arch=
  13581.         ac_prev=
  13582.         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  13583.          if test -n "$ac_prev"; then
  13584.            case $ac_word in
  13585.              i?86 | x86_64 | ppc | ppc64)
  13586.                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  13587.                  ac_arch=$ac_word
  13588.                else
  13589.                  ac_cv_c_bigendian=universal
  13590.                  break
  13591.                fi
  13592.                ;;
  13593.            esac
  13594.            ac_prev=
  13595.          elif test "x$ac_word" = "x-arch"; then
  13596.            ac_prev=arch
  13597.          fi
  13598.        done
  13599. fi
  13600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13601.     if test $ac_cv_c_bigendian = unknown; then
  13602.       # See if sys/param.h defines the BYTE_ORDER macro.
  13603.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13604. /* end confdefs.h.  */
  13605. #include <sys/types.h>
  13606.              #include <sys/param.h>
  13607.  
  13608. int
  13609. main ()
  13610. {
  13611. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  13612.                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  13613.                      && LITTLE_ENDIAN)
  13614.               bogus endian macros
  13615.              #endif
  13616.  
  13617.   ;
  13618.   return 0;
  13619. }
  13620. _ACEOF
  13621. if ac_fn_c_try_compile "$LINENO"; then :
  13622.   # It does; now see whether it defined to BIG_ENDIAN or not.
  13623.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13624. /* end confdefs.h.  */
  13625. #include <sys/types.h>
  13626.                 #include <sys/param.h>
  13627.  
  13628. int
  13629. main ()
  13630. {
  13631. #if BYTE_ORDER != BIG_ENDIAN
  13632.                  not big endian
  13633.                 #endif
  13634.  
  13635.   ;
  13636.   return 0;
  13637. }
  13638. _ACEOF
  13639. if ac_fn_c_try_compile "$LINENO"; then :
  13640.   ac_cv_c_bigendian=yes
  13641. else
  13642.   ac_cv_c_bigendian=no
  13643. fi
  13644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13645. fi
  13646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13647.     fi
  13648.     if test $ac_cv_c_bigendian = unknown; then
  13649.       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  13650.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13651. /* end confdefs.h.  */
  13652. #include <limits.h>
  13653.  
  13654. int
  13655. main ()
  13656. {
  13657. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  13658.               bogus endian macros
  13659.              #endif
  13660.  
  13661.   ;
  13662.   return 0;
  13663. }
  13664. _ACEOF
  13665. if ac_fn_c_try_compile "$LINENO"; then :
  13666.   # It does; now see whether it defined to _BIG_ENDIAN or not.
  13667.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13668. /* end confdefs.h.  */
  13669. #include <limits.h>
  13670.  
  13671. int
  13672. main ()
  13673. {
  13674. #ifndef _BIG_ENDIAN
  13675.                  not big endian
  13676.                 #endif
  13677.  
  13678.   ;
  13679.   return 0;
  13680. }
  13681. _ACEOF
  13682. if ac_fn_c_try_compile "$LINENO"; then :
  13683.   ac_cv_c_bigendian=yes
  13684. else
  13685.   ac_cv_c_bigendian=no
  13686. fi
  13687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13688. fi
  13689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13690.     fi
  13691.     if test $ac_cv_c_bigendian = unknown; then
  13692.       # Compile a test program.
  13693.       if test "$cross_compiling" = yes; then :
  13694.   # Try to guess by grepping values from an object file.
  13695.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13696. /* end confdefs.h.  */
  13697. short int ascii_mm[] =
  13698.                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  13699.                 short int ascii_ii[] =
  13700.                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  13701.                 int use_ascii (int i) {
  13702.                   return ascii_mm[i] + ascii_ii[i];
  13703.                 }
  13704.                 short int ebcdic_ii[] =
  13705.                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  13706.                 short int ebcdic_mm[] =
  13707.                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  13708.                 int use_ebcdic (int i) {
  13709.                   return ebcdic_mm[i] + ebcdic_ii[i];
  13710.                 }
  13711.                 extern int foo;
  13712.  
  13713. int
  13714. main ()
  13715. {
  13716. return use_ascii (foo) == use_ebcdic (foo);
  13717.   ;
  13718.   return 0;
  13719. }
  13720. _ACEOF
  13721. if ac_fn_c_try_compile "$LINENO"; then :
  13722.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  13723.               ac_cv_c_bigendian=yes
  13724.             fi
  13725.             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  13726.               if test "$ac_cv_c_bigendian" = unknown; then
  13727.                 ac_cv_c_bigendian=no
  13728.               else
  13729.                 # finding both strings is unlikely to happen, but who knows?
  13730.                 ac_cv_c_bigendian=unknown
  13731.               fi
  13732.             fi
  13733. fi
  13734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13735. else
  13736.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13737. /* end confdefs.h.  */
  13738. $ac_includes_default
  13739. int
  13740. main ()
  13741. {
  13742.  
  13743.              /* Are we little or big endian?  From Harbison&Steele.  */
  13744.              union
  13745.              {
  13746.                long int l;
  13747.                char c[sizeof (long int)];
  13748.              } u;
  13749.              u.l = 1;
  13750.              return u.c[sizeof (long int) - 1] == 1;
  13751.  
  13752.   ;
  13753.   return 0;
  13754. }
  13755. _ACEOF
  13756. if ac_fn_c_try_run "$LINENO"; then :
  13757.   ac_cv_c_bigendian=no
  13758. else
  13759.   ac_cv_c_bigendian=yes
  13760. fi
  13761. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13762.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  13763. fi
  13764.  
  13765.     fi
  13766. fi
  13767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  13768. $as_echo "$ac_cv_c_bigendian" >&6; }
  13769.  case $ac_cv_c_bigendian in #(
  13770.    yes)
  13771.      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  13772. ;; #(
  13773.    no)
  13774.       ;; #(
  13775.    universal)
  13776.  
  13777. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  13778.  
  13779.      ;; #(
  13780.    *)
  13781.      as_fn_error $? "unknown endianness
  13782. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  13783.  esac
  13784.  
  13785.  
  13786. for ac_func in fork setitimer inet_ntop inet_pton getrusage getpwuid_r nanosleep daemon getpid clock_gettime localtime fmemopen vasprintf mmap fmemopen
  13787. do :
  13788.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13789. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13790. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13791.   cat >>confdefs.h <<_ACEOF
  13792. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13793. _ACEOF
  13794.  
  13795. fi
  13796. done
  13797.  
  13798. if test "$ac_cv_func_vasprintf" != "yes";then
  13799.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
  13800. $as_echo_n "checking for va_copy... " >&6; }
  13801.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13802. /* end confdefs.h.  */
  13803.  
  13804.         #include <stdarg.h>
  13805.         va_list a;
  13806. int
  13807. main ()
  13808. {
  13809.  
  13810.         va_list b;
  13811.         va_copy(b,a);
  13812.         va_end(b);
  13813.   ;
  13814.   return 0;
  13815. }
  13816. _ACEOF
  13817. if ac_fn_c_try_link "$LINENO"; then :
  13818.  
  13819. $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
  13820.  
  13821.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
  13822. $as_echo "va_copy" >&6; }
  13823. else
  13824.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13825. /* end confdefs.h.  */
  13826.  
  13827.                 #include <stdarg.h>
  13828.                 va_list a;
  13829. int
  13830. main ()
  13831. {
  13832.  
  13833.                 va_list b;
  13834.                 __va_copy(b,a);
  13835.                 va_end(b);
  13836.   ;
  13837.   return 0;
  13838. }
  13839. _ACEOF
  13840. if ac_fn_c_try_link "$LINENO"; then :
  13841.  
  13842. $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
  13843.  
  13844.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
  13845. $as_echo "__va_copy" >&6; }
  13846. else
  13847.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13848. $as_echo "no" >&6; }
  13849.                 as_fn_error $? "Your system lacks vasprintf() and va_copy()" "$LINENO" 5
  13850. fi
  13851. rm -f core conftest.err conftest.$ac_objext \
  13852.     conftest$ac_exeext conftest.$ac_ext
  13853.  
  13854. fi
  13855. rm -f core conftest.err conftest.$ac_objext \
  13856.     conftest$ac_exeext conftest.$ac_ext
  13857. fi
  13858.  
  13859.  if test "$ac_cv_func_fork" != "no"; then
  13860.   HAVE_FORK_TRUE=
  13861.   HAVE_FORK_FALSE='#'
  13862. else
  13863.   HAVE_FORK_TRUE='#'
  13864.   HAVE_FORK_FALSE=
  13865. fi
  13866.  
  13867.  
  13868. for ac_func in __register_atfork secure_getenv
  13869. do :
  13870.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13871. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13872. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13873.   cat >>confdefs.h <<_ACEOF
  13874. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13875. _ACEOF
  13876.  
  13877. fi
  13878. done
  13879.  
  13880.  
  13881. # Check whether --enable-seccomp-tests was given.
  13882. if test "${enable_seccomp_tests+set}" = set; then :
  13883.   enableval=$enable_seccomp_tests; seccomp_tests=$enableval
  13884. else
  13885.   seccomp_tests=no
  13886. fi
  13887.  
  13888.  
  13889.  if test "$seccomp_tests" = "yes"; then
  13890.   HAVE_SECCOMP_TESTS_TRUE=
  13891.   HAVE_SECCOMP_TESTS_FALSE='#'
  13892. else
  13893.   HAVE_SECCOMP_TESTS_TRUE='#'
  13894.   HAVE_SECCOMP_TESTS_FALSE=
  13895. fi
  13896.  
  13897.  
  13898. # check for libseccomp - used in test programs
  13899.  
  13900.  
  13901.  
  13902.  
  13903.  
  13904.  
  13905.  
  13906.  
  13907.  
  13908.  
  13909.  
  13910.  
  13911.  
  13912.     use_additional=yes
  13913.  
  13914.   acl_save_prefix="$prefix"
  13915.   prefix="$acl_final_prefix"
  13916.   acl_save_exec_prefix="$exec_prefix"
  13917.   exec_prefix="$acl_final_exec_prefix"
  13918.  
  13919.     eval additional_includedir=\"$includedir\"
  13920.     eval additional_libdir=\"$libdir\"
  13921.  
  13922.   exec_prefix="$acl_save_exec_prefix"
  13923.   prefix="$acl_save_prefix"
  13924.  
  13925.  
  13926. # Check whether --with-libseccomp-prefix was given.
  13927. if test "${with_libseccomp_prefix+set}" = set; then :
  13928.   withval=$with_libseccomp_prefix;
  13929.     if test "X$withval" = "Xno"; then
  13930.       use_additional=no
  13931.     else
  13932.       if test "X$withval" = "X"; then
  13933.  
  13934.   acl_save_prefix="$prefix"
  13935.   prefix="$acl_final_prefix"
  13936.   acl_save_exec_prefix="$exec_prefix"
  13937.   exec_prefix="$acl_final_exec_prefix"
  13938.  
  13939.           eval additional_includedir=\"$includedir\"
  13940.           eval additional_libdir=\"$libdir\"
  13941.  
  13942.   exec_prefix="$acl_save_exec_prefix"
  13943.   prefix="$acl_save_prefix"
  13944.  
  13945.       else
  13946.         additional_includedir="$withval/include"
  13947.         additional_libdir="$withval/$acl_libdirstem"
  13948.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  13949.            && ! test -d "$withval/$acl_libdirstem"; then
  13950.           additional_libdir="$withval/$acl_libdirstem2"
  13951.         fi
  13952.       fi
  13953.     fi
  13954.  
  13955. fi
  13956.  
  13957.       LIBSECCOMP=
  13958.   LTLIBSECCOMP=
  13959.   INCSECCOMP=
  13960.   LIBSECCOMP_PREFIX=
  13961.       HAVE_LIBSECCOMP=
  13962.   rpathdirs=
  13963.   ltrpathdirs=
  13964.   names_already_handled=
  13965.   names_next_round='seccomp '
  13966.   while test -n "$names_next_round"; do
  13967.     names_this_round="$names_next_round"
  13968.     names_next_round=
  13969.     for name in $names_this_round; do
  13970.       already_handled=
  13971.       for n in $names_already_handled; do
  13972.         if test "$n" = "$name"; then
  13973.           already_handled=yes
  13974.           break
  13975.         fi
  13976.       done
  13977.       if test -z "$already_handled"; then
  13978.         names_already_handled="$names_already_handled $name"
  13979.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  13980.         eval value=\"\$HAVE_LIB$uppername\"
  13981.         if test -n "$value"; then
  13982.           if test "$value" = yes; then
  13983.             eval value=\"\$LIB$uppername\"
  13984.             test -z "$value" || LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$value"
  13985.             eval value=\"\$LTLIB$uppername\"
  13986.             test -z "$value" || LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }$value"
  13987.           else
  13988.                                     :
  13989.           fi
  13990.         else
  13991.                               found_dir=
  13992.           found_la=
  13993.           found_so=
  13994.           found_a=
  13995.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  13996.           if test -n "$acl_shlibext"; then
  13997.             shrext=".$acl_shlibext"             # typically: shrext=.so
  13998.           else
  13999.             shrext=
  14000.           fi
  14001.           if test $use_additional = yes; then
  14002.             dir="$additional_libdir"
  14003.                                     if test -n "$acl_shlibext"; then
  14004.               if test -f "$dir/$libname$shrext"; then
  14005.                 found_dir="$dir"
  14006.                 found_so="$dir/$libname$shrext"
  14007.               else
  14008.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14009.                   ver=`(cd "$dir" && \
  14010.                         for f in "$libname$shrext".*; do echo "$f"; done \
  14011.                         | sed -e "s,^$libname$shrext\\\\.,," \
  14012.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14013.                         | sed 1q ) 2>/dev/null`
  14014.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14015.                     found_dir="$dir"
  14016.                     found_so="$dir/$libname$shrext.$ver"
  14017.                   fi
  14018.                 else
  14019.                   eval library_names=\"$acl_library_names_spec\"
  14020.                   for f in $library_names; do
  14021.                     if test -f "$dir/$f"; then
  14022.                       found_dir="$dir"
  14023.                       found_so="$dir/$f"
  14024.                       break
  14025.                     fi
  14026.                   done
  14027.                 fi
  14028.               fi
  14029.             fi
  14030.                         if test "X$found_dir" = "X"; then
  14031.               if test -f "$dir/$libname.$acl_libext"; then
  14032.                 found_dir="$dir"
  14033.                 found_a="$dir/$libname.$acl_libext"
  14034.               fi
  14035.             fi
  14036.             if test "X$found_dir" != "X"; then
  14037.               if test -f "$dir/$libname.la"; then
  14038.                 found_la="$dir/$libname.la"
  14039.               fi
  14040.             fi
  14041.           fi
  14042.           if test "X$found_dir" = "X"; then
  14043.             for x in $LDFLAGS $LTLIBSECCOMP; do
  14044.  
  14045.   acl_save_prefix="$prefix"
  14046.   prefix="$acl_final_prefix"
  14047.   acl_save_exec_prefix="$exec_prefix"
  14048.   exec_prefix="$acl_final_exec_prefix"
  14049.   eval x=\"$x\"
  14050.   exec_prefix="$acl_save_exec_prefix"
  14051.   prefix="$acl_save_prefix"
  14052.  
  14053.               case "$x" in
  14054.                 -L*)
  14055.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  14056.                                     if test -n "$acl_shlibext"; then
  14057.                     if test -f "$dir/$libname$shrext"; then
  14058.                       found_dir="$dir"
  14059.                       found_so="$dir/$libname$shrext"
  14060.                     else
  14061.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14062.                         ver=`(cd "$dir" && \
  14063.                               for f in "$libname$shrext".*; do echo "$f"; done \
  14064.                               | sed -e "s,^$libname$shrext\\\\.,," \
  14065.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14066.                               | sed 1q ) 2>/dev/null`
  14067.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14068.                           found_dir="$dir"
  14069.                           found_so="$dir/$libname$shrext.$ver"
  14070.                         fi
  14071.                       else
  14072.                         eval library_names=\"$acl_library_names_spec\"
  14073.                         for f in $library_names; do
  14074.                           if test -f "$dir/$f"; then
  14075.                             found_dir="$dir"
  14076.                             found_so="$dir/$f"
  14077.                             break
  14078.                           fi
  14079.                         done
  14080.                       fi
  14081.                     fi
  14082.                   fi
  14083.                                     if test "X$found_dir" = "X"; then
  14084.                     if test -f "$dir/$libname.$acl_libext"; then
  14085.                       found_dir="$dir"
  14086.                       found_a="$dir/$libname.$acl_libext"
  14087.                     fi
  14088.                   fi
  14089.                   if test "X$found_dir" != "X"; then
  14090.                     if test -f "$dir/$libname.la"; then
  14091.                       found_la="$dir/$libname.la"
  14092.                     fi
  14093.                   fi
  14094.                   ;;
  14095.               esac
  14096.               if test "X$found_dir" != "X"; then
  14097.                 break
  14098.               fi
  14099.             done
  14100.           fi
  14101.           if test "X$found_dir" != "X"; then
  14102.                         LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }-L$found_dir -l$name"
  14103.             if test "X$found_so" != "X"; then
  14104.                                                         if test "$enable_rpath" = no \
  14105.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  14106.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  14107.                                 LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_so"
  14108.               else
  14109.                                                                                 haveit=
  14110.                 for x in $ltrpathdirs; do
  14111.                   if test "X$x" = "X$found_dir"; then
  14112.                     haveit=yes
  14113.                     break
  14114.                   fi
  14115.                 done
  14116.                 if test -z "$haveit"; then
  14117.                   ltrpathdirs="$ltrpathdirs $found_dir"
  14118.                 fi
  14119.                                 if test "$acl_hardcode_direct" = yes; then
  14120.                                                       LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_so"
  14121.                 else
  14122.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  14123.                                                             LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_so"
  14124.                                                             haveit=
  14125.                     for x in $rpathdirs; do
  14126.                       if test "X$x" = "X$found_dir"; then
  14127.                         haveit=yes
  14128.                         break
  14129.                       fi
  14130.                     done
  14131.                     if test -z "$haveit"; then
  14132.                       rpathdirs="$rpathdirs $found_dir"
  14133.                     fi
  14134.                   else
  14135.                                                                                 haveit=
  14136.                     for x in $LDFLAGS $LIBSECCOMP; do
  14137.  
  14138.   acl_save_prefix="$prefix"
  14139.   prefix="$acl_final_prefix"
  14140.   acl_save_exec_prefix="$exec_prefix"
  14141.   exec_prefix="$acl_final_exec_prefix"
  14142.   eval x=\"$x\"
  14143.   exec_prefix="$acl_save_exec_prefix"
  14144.   prefix="$acl_save_prefix"
  14145.  
  14146.                       if test "X$x" = "X-L$found_dir"; then
  14147.                         haveit=yes
  14148.                         break
  14149.                       fi
  14150.                     done
  14151.                     if test -z "$haveit"; then
  14152.                       LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-L$found_dir"
  14153.                     fi
  14154.                     if test "$acl_hardcode_minus_L" != no; then
  14155.                                                                                         LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_so"
  14156.                     else
  14157.                                                                                                                                                                                 LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-l$name"
  14158.                     fi
  14159.                   fi
  14160.                 fi
  14161.               fi
  14162.             else
  14163.               if test "X$found_a" != "X"; then
  14164.                                 LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_a"
  14165.               else
  14166.                                                 LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-L$found_dir -l$name"
  14167.               fi
  14168.             fi
  14169.                         additional_includedir=
  14170.             case "$found_dir" in
  14171.               */$acl_libdirstem | */$acl_libdirstem/)
  14172.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  14173.                 if test "$name" = 'seccomp'; then
  14174.                   LIBSECCOMP_PREFIX="$basedir"
  14175.                 fi
  14176.                 additional_includedir="$basedir/include"
  14177.                 ;;
  14178.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  14179.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  14180.                 if test "$name" = 'seccomp'; then
  14181.                   LIBSECCOMP_PREFIX="$basedir"
  14182.                 fi
  14183.                 additional_includedir="$basedir/include"
  14184.                 ;;
  14185.             esac
  14186.             if test "X$additional_includedir" != "X"; then
  14187.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  14188.                 haveit=
  14189.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  14190.                   if test -n "$GCC"; then
  14191.                     case $host_os in
  14192.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  14193.                     esac
  14194.                   fi
  14195.                 fi
  14196.                 if test -z "$haveit"; then
  14197.                   for x in $CPPFLAGS $INCSECCOMP; do
  14198.  
  14199.   acl_save_prefix="$prefix"
  14200.   prefix="$acl_final_prefix"
  14201.   acl_save_exec_prefix="$exec_prefix"
  14202.   exec_prefix="$acl_final_exec_prefix"
  14203.   eval x=\"$x\"
  14204.   exec_prefix="$acl_save_exec_prefix"
  14205.   prefix="$acl_save_prefix"
  14206.  
  14207.                     if test "X$x" = "X-I$additional_includedir"; then
  14208.                       haveit=yes
  14209.                       break
  14210.                     fi
  14211.                   done
  14212.                   if test -z "$haveit"; then
  14213.                     if test -d "$additional_includedir"; then
  14214.                                             INCSECCOMP="${INCSECCOMP}${INCSECCOMP:+ }-I$additional_includedir"
  14215.                     fi
  14216.                   fi
  14217.                 fi
  14218.               fi
  14219.             fi
  14220.                         if test -n "$found_la"; then
  14221.                                                         save_libdir="$libdir"
  14222.               case "$found_la" in
  14223.                 */* | *\\*) . "$found_la" ;;
  14224.                 *) . "./$found_la" ;;
  14225.               esac
  14226.               libdir="$save_libdir"
  14227.                             for dep in $dependency_libs; do
  14228.                 case "$dep" in
  14229.                   -L*)
  14230.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  14231.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  14232.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  14233.                       haveit=
  14234.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  14235.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  14236.                         if test -n "$GCC"; then
  14237.                           case $host_os in
  14238.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  14239.                           esac
  14240.                         fi
  14241.                       fi
  14242.                       if test -z "$haveit"; then
  14243.                         haveit=
  14244.                         for x in $LDFLAGS $LIBSECCOMP; do
  14245.  
  14246.   acl_save_prefix="$prefix"
  14247.   prefix="$acl_final_prefix"
  14248.   acl_save_exec_prefix="$exec_prefix"
  14249.   exec_prefix="$acl_final_exec_prefix"
  14250.   eval x=\"$x\"
  14251.   exec_prefix="$acl_save_exec_prefix"
  14252.   prefix="$acl_save_prefix"
  14253.  
  14254.                           if test "X$x" = "X-L$additional_libdir"; then
  14255.                             haveit=yes
  14256.                             break
  14257.                           fi
  14258.                         done
  14259.                         if test -z "$haveit"; then
  14260.                           if test -d "$additional_libdir"; then
  14261.                                                         LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-L$additional_libdir"
  14262.                           fi
  14263.                         fi
  14264.                         haveit=
  14265.                         for x in $LDFLAGS $LTLIBSECCOMP; do
  14266.  
  14267.   acl_save_prefix="$prefix"
  14268.   prefix="$acl_final_prefix"
  14269.   acl_save_exec_prefix="$exec_prefix"
  14270.   exec_prefix="$acl_final_exec_prefix"
  14271.   eval x=\"$x\"
  14272.   exec_prefix="$acl_save_exec_prefix"
  14273.   prefix="$acl_save_prefix"
  14274.  
  14275.                           if test "X$x" = "X-L$additional_libdir"; then
  14276.                             haveit=yes
  14277.                             break
  14278.                           fi
  14279.                         done
  14280.                         if test -z "$haveit"; then
  14281.                           if test -d "$additional_libdir"; then
  14282.                                                         LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }-L$additional_libdir"
  14283.                           fi
  14284.                         fi
  14285.                       fi
  14286.                     fi
  14287.                     ;;
  14288.                   -R*)
  14289.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  14290.                     if test "$enable_rpath" != no; then
  14291.                                                                   haveit=
  14292.                       for x in $rpathdirs; do
  14293.                         if test "X$x" = "X$dir"; then
  14294.                           haveit=yes
  14295.                           break
  14296.                         fi
  14297.                       done
  14298.                       if test -z "$haveit"; then
  14299.                         rpathdirs="$rpathdirs $dir"
  14300.                       fi
  14301.                                                                   haveit=
  14302.                       for x in $ltrpathdirs; do
  14303.                         if test "X$x" = "X$dir"; then
  14304.                           haveit=yes
  14305.                           break
  14306.                         fi
  14307.                       done
  14308.                       if test -z "$haveit"; then
  14309.                         ltrpathdirs="$ltrpathdirs $dir"
  14310.                       fi
  14311.                     fi
  14312.                     ;;
  14313.                   -l*)
  14314.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  14315.                     ;;
  14316.                   *.la)
  14317.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  14318.                     ;;
  14319.                   *)
  14320.                                         LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$dep"
  14321.                     LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }$dep"
  14322.                     ;;
  14323.                 esac
  14324.               done
  14325.             fi
  14326.           else
  14327.                                                             LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-l$name"
  14328.             LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }-l$name"
  14329.           fi
  14330.         fi
  14331.       fi
  14332.     done
  14333.   done
  14334.   if test "X$rpathdirs" != "X"; then
  14335.     if test -n "$acl_hardcode_libdir_separator"; then
  14336.                         alldirs=
  14337.       for found_dir in $rpathdirs; do
  14338.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  14339.       done
  14340.             acl_save_libdir="$libdir"
  14341.       libdir="$alldirs"
  14342.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  14343.       libdir="$acl_save_libdir"
  14344.       LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$flag"
  14345.     else
  14346.             for found_dir in $rpathdirs; do
  14347.         acl_save_libdir="$libdir"
  14348.         libdir="$found_dir"
  14349.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  14350.         libdir="$acl_save_libdir"
  14351.         LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$flag"
  14352.       done
  14353.     fi
  14354.   fi
  14355.   if test "X$ltrpathdirs" != "X"; then
  14356.             for found_dir in $ltrpathdirs; do
  14357.       LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }-R$found_dir"
  14358.     done
  14359.   fi
  14360.  
  14361.  
  14362.  
  14363.  
  14364.  
  14365.  
  14366.  
  14367.         ac_save_CPPFLAGS="$CPPFLAGS"
  14368.  
  14369.   for element in $INCSECCOMP; do
  14370.     haveit=
  14371.     for x in $CPPFLAGS; do
  14372.  
  14373.   acl_save_prefix="$prefix"
  14374.   prefix="$acl_final_prefix"
  14375.   acl_save_exec_prefix="$exec_prefix"
  14376.   exec_prefix="$acl_final_exec_prefix"
  14377.   eval x=\"$x\"
  14378.   exec_prefix="$acl_save_exec_prefix"
  14379.   prefix="$acl_save_prefix"
  14380.  
  14381.       if test "X$x" = "X$element"; then
  14382.         haveit=yes
  14383.         break
  14384.       fi
  14385.     done
  14386.     if test -z "$haveit"; then
  14387.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  14388.     fi
  14389.   done
  14390.  
  14391.  
  14392.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp" >&5
  14393. $as_echo_n "checking for libseccomp... " >&6; }
  14394. if ${ac_cv_libseccomp+:} false; then :
  14395.   $as_echo_n "(cached) " >&6
  14396. else
  14397.  
  14398.     ac_save_LIBS="$LIBS"
  14399.                                 case " $LIBSECCOMP" in
  14400.       *" -l"*) LIBS="$LIBS $LIBSECCOMP" ;;
  14401.       *)       LIBS="$LIBSECCOMP $LIBS" ;;
  14402.     esac
  14403.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14404. /* end confdefs.h.  */
  14405. #include <seccomp.h>
  14406.  
  14407. int
  14408. main ()
  14409. {
  14410. seccomp_init(0);
  14411.   ;
  14412.   return 0;
  14413. }
  14414. _ACEOF
  14415. if ac_fn_c_try_link "$LINENO"; then :
  14416.   ac_cv_libseccomp=yes
  14417. else
  14418.   ac_cv_libseccomp='no'
  14419. fi
  14420. rm -f core conftest.err conftest.$ac_objext \
  14421.     conftest$ac_exeext conftest.$ac_ext
  14422.     LIBS="$ac_save_LIBS"
  14423.  
  14424. fi
  14425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libseccomp" >&5
  14426. $as_echo "$ac_cv_libseccomp" >&6; }
  14427.   if test "$ac_cv_libseccomp" = yes; then
  14428.     HAVE_LIBSECCOMP=yes
  14429.  
  14430. $as_echo "#define HAVE_LIBSECCOMP 1" >>confdefs.h
  14431.  
  14432.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libseccomp" >&5
  14433. $as_echo_n "checking how to link with libseccomp... " >&6; }
  14434.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSECCOMP" >&5
  14435. $as_echo "$LIBSECCOMP" >&6; }
  14436.   else
  14437.     HAVE_LIBSECCOMP=no
  14438.             CPPFLAGS="$ac_save_CPPFLAGS"
  14439.     LIBSECCOMP=
  14440.     LTLIBSECCOMP=
  14441.     LIBSECCOMP_PREFIX=
  14442.   fi
  14443.  
  14444.  
  14445.  
  14446.  
  14447.  
  14448.  
  14449.  
  14450.  
  14451. # check for libcrypto - used in test programs
  14452.  
  14453.  
  14454.  
  14455.  
  14456.  
  14457.  
  14458.  
  14459.  
  14460.  
  14461.  
  14462.  
  14463.  
  14464.  
  14465.     use_additional=yes
  14466.  
  14467.   acl_save_prefix="$prefix"
  14468.   prefix="$acl_final_prefix"
  14469.   acl_save_exec_prefix="$exec_prefix"
  14470.   exec_prefix="$acl_final_exec_prefix"
  14471.  
  14472.     eval additional_includedir=\"$includedir\"
  14473.     eval additional_libdir=\"$libdir\"
  14474.  
  14475.   exec_prefix="$acl_save_exec_prefix"
  14476.   prefix="$acl_save_prefix"
  14477.  
  14478.  
  14479. # Check whether --with-libcrypto-prefix was given.
  14480. if test "${with_libcrypto_prefix+set}" = set; then :
  14481.   withval=$with_libcrypto_prefix;
  14482.     if test "X$withval" = "Xno"; then
  14483.       use_additional=no
  14484.     else
  14485.       if test "X$withval" = "X"; then
  14486.  
  14487.   acl_save_prefix="$prefix"
  14488.   prefix="$acl_final_prefix"
  14489.   acl_save_exec_prefix="$exec_prefix"
  14490.   exec_prefix="$acl_final_exec_prefix"
  14491.  
  14492.           eval additional_includedir=\"$includedir\"
  14493.           eval additional_libdir=\"$libdir\"
  14494.  
  14495.   exec_prefix="$acl_save_exec_prefix"
  14496.   prefix="$acl_save_prefix"
  14497.  
  14498.       else
  14499.         additional_includedir="$withval/include"
  14500.         additional_libdir="$withval/$acl_libdirstem"
  14501.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  14502.            && ! test -d "$withval/$acl_libdirstem"; then
  14503.           additional_libdir="$withval/$acl_libdirstem2"
  14504.         fi
  14505.       fi
  14506.     fi
  14507.  
  14508. fi
  14509.  
  14510.       LIBCRYPTO=
  14511.   LTLIBCRYPTO=
  14512.   INCCRYPTO=
  14513.   LIBCRYPTO_PREFIX=
  14514.       HAVE_LIBCRYPTO=
  14515.   rpathdirs=
  14516.   ltrpathdirs=
  14517.   names_already_handled=
  14518.   names_next_round='crypto '
  14519.   while test -n "$names_next_round"; do
  14520.     names_this_round="$names_next_round"
  14521.     names_next_round=
  14522.     for name in $names_this_round; do
  14523.       already_handled=
  14524.       for n in $names_already_handled; do
  14525.         if test "$n" = "$name"; then
  14526.           already_handled=yes
  14527.           break
  14528.         fi
  14529.       done
  14530.       if test -z "$already_handled"; then
  14531.         names_already_handled="$names_already_handled $name"
  14532.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  14533.         eval value=\"\$HAVE_LIB$uppername\"
  14534.         if test -n "$value"; then
  14535.           if test "$value" = yes; then
  14536.             eval value=\"\$LIB$uppername\"
  14537.             test -z "$value" || LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$value"
  14538.             eval value=\"\$LTLIB$uppername\"
  14539.             test -z "$value" || LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }$value"
  14540.           else
  14541.                                     :
  14542.           fi
  14543.         else
  14544.                               found_dir=
  14545.           found_la=
  14546.           found_so=
  14547.           found_a=
  14548.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  14549.           if test -n "$acl_shlibext"; then
  14550.             shrext=".$acl_shlibext"             # typically: shrext=.so
  14551.           else
  14552.             shrext=
  14553.           fi
  14554.           if test $use_additional = yes; then
  14555.             dir="$additional_libdir"
  14556.                                     if test -n "$acl_shlibext"; then
  14557.               if test -f "$dir/$libname$shrext"; then
  14558.                 found_dir="$dir"
  14559.                 found_so="$dir/$libname$shrext"
  14560.               else
  14561.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14562.                   ver=`(cd "$dir" && \
  14563.                         for f in "$libname$shrext".*; do echo "$f"; done \
  14564.                         | sed -e "s,^$libname$shrext\\\\.,," \
  14565.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14566.                         | sed 1q ) 2>/dev/null`
  14567.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14568.                     found_dir="$dir"
  14569.                     found_so="$dir/$libname$shrext.$ver"
  14570.                   fi
  14571.                 else
  14572.                   eval library_names=\"$acl_library_names_spec\"
  14573.                   for f in $library_names; do
  14574.                     if test -f "$dir/$f"; then
  14575.                       found_dir="$dir"
  14576.                       found_so="$dir/$f"
  14577.                       break
  14578.                     fi
  14579.                   done
  14580.                 fi
  14581.               fi
  14582.             fi
  14583.                         if test "X$found_dir" = "X"; then
  14584.               if test -f "$dir/$libname.$acl_libext"; then
  14585.                 found_dir="$dir"
  14586.                 found_a="$dir/$libname.$acl_libext"
  14587.               fi
  14588.             fi
  14589.             if test "X$found_dir" != "X"; then
  14590.               if test -f "$dir/$libname.la"; then
  14591.                 found_la="$dir/$libname.la"
  14592.               fi
  14593.             fi
  14594.           fi
  14595.           if test "X$found_dir" = "X"; then
  14596.             for x in $LDFLAGS $LTLIBCRYPTO; do
  14597.  
  14598.   acl_save_prefix="$prefix"
  14599.   prefix="$acl_final_prefix"
  14600.   acl_save_exec_prefix="$exec_prefix"
  14601.   exec_prefix="$acl_final_exec_prefix"
  14602.   eval x=\"$x\"
  14603.   exec_prefix="$acl_save_exec_prefix"
  14604.   prefix="$acl_save_prefix"
  14605.  
  14606.               case "$x" in
  14607.                 -L*)
  14608.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  14609.                                     if test -n "$acl_shlibext"; then
  14610.                     if test -f "$dir/$libname$shrext"; then
  14611.                       found_dir="$dir"
  14612.                       found_so="$dir/$libname$shrext"
  14613.                     else
  14614.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14615.                         ver=`(cd "$dir" && \
  14616.                               for f in "$libname$shrext".*; do echo "$f"; done \
  14617.                               | sed -e "s,^$libname$shrext\\\\.,," \
  14618.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14619.                               | sed 1q ) 2>/dev/null`
  14620.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14621.                           found_dir="$dir"
  14622.                           found_so="$dir/$libname$shrext.$ver"
  14623.                         fi
  14624.                       else
  14625.                         eval library_names=\"$acl_library_names_spec\"
  14626.                         for f in $library_names; do
  14627.                           if test -f "$dir/$f"; then
  14628.                             found_dir="$dir"
  14629.                             found_so="$dir/$f"
  14630.                             break
  14631.                           fi
  14632.                         done
  14633.                       fi
  14634.                     fi
  14635.                   fi
  14636.                                     if test "X$found_dir" = "X"; then
  14637.                     if test -f "$dir/$libname.$acl_libext"; then
  14638.                       found_dir="$dir"
  14639.                       found_a="$dir/$libname.$acl_libext"
  14640.                     fi
  14641.                   fi
  14642.                   if test "X$found_dir" != "X"; then
  14643.                     if test -f "$dir/$libname.la"; then
  14644.                       found_la="$dir/$libname.la"
  14645.                     fi
  14646.                   fi
  14647.                   ;;
  14648.               esac
  14649.               if test "X$found_dir" != "X"; then
  14650.                 break
  14651.               fi
  14652.             done
  14653.           fi
  14654.           if test "X$found_dir" != "X"; then
  14655.                         LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }-L$found_dir -l$name"
  14656.             if test "X$found_so" != "X"; then
  14657.                                                         if test "$enable_rpath" = no \
  14658.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  14659.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  14660.                                 LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_so"
  14661.               else
  14662.                                                                                 haveit=
  14663.                 for x in $ltrpathdirs; do
  14664.                   if test "X$x" = "X$found_dir"; then
  14665.                     haveit=yes
  14666.                     break
  14667.                   fi
  14668.                 done
  14669.                 if test -z "$haveit"; then
  14670.                   ltrpathdirs="$ltrpathdirs $found_dir"
  14671.                 fi
  14672.                                 if test "$acl_hardcode_direct" = yes; then
  14673.                                                       LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_so"
  14674.                 else
  14675.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  14676.                                                             LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_so"
  14677.                                                             haveit=
  14678.                     for x in $rpathdirs; do
  14679.                       if test "X$x" = "X$found_dir"; then
  14680.                         haveit=yes
  14681.                         break
  14682.                       fi
  14683.                     done
  14684.                     if test -z "$haveit"; then
  14685.                       rpathdirs="$rpathdirs $found_dir"
  14686.                     fi
  14687.                   else
  14688.                                                                                 haveit=
  14689.                     for x in $LDFLAGS $LIBCRYPTO; do
  14690.  
  14691.   acl_save_prefix="$prefix"
  14692.   prefix="$acl_final_prefix"
  14693.   acl_save_exec_prefix="$exec_prefix"
  14694.   exec_prefix="$acl_final_exec_prefix"
  14695.   eval x=\"$x\"
  14696.   exec_prefix="$acl_save_exec_prefix"
  14697.   prefix="$acl_save_prefix"
  14698.  
  14699.                       if test "X$x" = "X-L$found_dir"; then
  14700.                         haveit=yes
  14701.                         break
  14702.                       fi
  14703.                     done
  14704.                     if test -z "$haveit"; then
  14705.                       LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-L$found_dir"
  14706.                     fi
  14707.                     if test "$acl_hardcode_minus_L" != no; then
  14708.                                                                                         LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_so"
  14709.                     else
  14710.                                                                                                                                                                                 LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-l$name"
  14711.                     fi
  14712.                   fi
  14713.                 fi
  14714.               fi
  14715.             else
  14716.               if test "X$found_a" != "X"; then
  14717.                                 LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_a"
  14718.               else
  14719.                                                 LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-L$found_dir -l$name"
  14720.               fi
  14721.             fi
  14722.                         additional_includedir=
  14723.             case "$found_dir" in
  14724.               */$acl_libdirstem | */$acl_libdirstem/)
  14725.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  14726.                 if test "$name" = 'crypto'; then
  14727.                   LIBCRYPTO_PREFIX="$basedir"
  14728.                 fi
  14729.                 additional_includedir="$basedir/include"
  14730.                 ;;
  14731.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  14732.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  14733.                 if test "$name" = 'crypto'; then
  14734.                   LIBCRYPTO_PREFIX="$basedir"
  14735.                 fi
  14736.                 additional_includedir="$basedir/include"
  14737.                 ;;
  14738.             esac
  14739.             if test "X$additional_includedir" != "X"; then
  14740.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  14741.                 haveit=
  14742.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  14743.                   if test -n "$GCC"; then
  14744.                     case $host_os in
  14745.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  14746.                     esac
  14747.                   fi
  14748.                 fi
  14749.                 if test -z "$haveit"; then
  14750.                   for x in $CPPFLAGS $INCCRYPTO; do
  14751.  
  14752.   acl_save_prefix="$prefix"
  14753.   prefix="$acl_final_prefix"
  14754.   acl_save_exec_prefix="$exec_prefix"
  14755.   exec_prefix="$acl_final_exec_prefix"
  14756.   eval x=\"$x\"
  14757.   exec_prefix="$acl_save_exec_prefix"
  14758.   prefix="$acl_save_prefix"
  14759.  
  14760.                     if test "X$x" = "X-I$additional_includedir"; then
  14761.                       haveit=yes
  14762.                       break
  14763.                     fi
  14764.                   done
  14765.                   if test -z "$haveit"; then
  14766.                     if test -d "$additional_includedir"; then
  14767.                                             INCCRYPTO="${INCCRYPTO}${INCCRYPTO:+ }-I$additional_includedir"
  14768.                     fi
  14769.                   fi
  14770.                 fi
  14771.               fi
  14772.             fi
  14773.                         if test -n "$found_la"; then
  14774.                                                         save_libdir="$libdir"
  14775.               case "$found_la" in
  14776.                 */* | *\\*) . "$found_la" ;;
  14777.                 *) . "./$found_la" ;;
  14778.               esac
  14779.               libdir="$save_libdir"
  14780.                             for dep in $dependency_libs; do
  14781.                 case "$dep" in
  14782.                   -L*)
  14783.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  14784.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  14785.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  14786.                       haveit=
  14787.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  14788.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  14789.                         if test -n "$GCC"; then
  14790.                           case $host_os in
  14791.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  14792.                           esac
  14793.                         fi
  14794.                       fi
  14795.                       if test -z "$haveit"; then
  14796.                         haveit=
  14797.                         for x in $LDFLAGS $LIBCRYPTO; do
  14798.  
  14799.   acl_save_prefix="$prefix"
  14800.   prefix="$acl_final_prefix"
  14801.   acl_save_exec_prefix="$exec_prefix"
  14802.   exec_prefix="$acl_final_exec_prefix"
  14803.   eval x=\"$x\"
  14804.   exec_prefix="$acl_save_exec_prefix"
  14805.   prefix="$acl_save_prefix"
  14806.  
  14807.                           if test "X$x" = "X-L$additional_libdir"; then
  14808.                             haveit=yes
  14809.                             break
  14810.                           fi
  14811.                         done
  14812.                         if test -z "$haveit"; then
  14813.                           if test -d "$additional_libdir"; then
  14814.                                                         LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-L$additional_libdir"
  14815.                           fi
  14816.                         fi
  14817.                         haveit=
  14818.                         for x in $LDFLAGS $LTLIBCRYPTO; do
  14819.  
  14820.   acl_save_prefix="$prefix"
  14821.   prefix="$acl_final_prefix"
  14822.   acl_save_exec_prefix="$exec_prefix"
  14823.   exec_prefix="$acl_final_exec_prefix"
  14824.   eval x=\"$x\"
  14825.   exec_prefix="$acl_save_exec_prefix"
  14826.   prefix="$acl_save_prefix"
  14827.  
  14828.                           if test "X$x" = "X-L$additional_libdir"; then
  14829.                             haveit=yes
  14830.                             break
  14831.                           fi
  14832.                         done
  14833.                         if test -z "$haveit"; then
  14834.                           if test -d "$additional_libdir"; then
  14835.                                                         LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }-L$additional_libdir"
  14836.                           fi
  14837.                         fi
  14838.                       fi
  14839.                     fi
  14840.                     ;;
  14841.                   -R*)
  14842.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  14843.                     if test "$enable_rpath" != no; then
  14844.                                                                   haveit=
  14845.                       for x in $rpathdirs; do
  14846.                         if test "X$x" = "X$dir"; then
  14847.                           haveit=yes
  14848.                           break
  14849.                         fi
  14850.                       done
  14851.                       if test -z "$haveit"; then
  14852.                         rpathdirs="$rpathdirs $dir"
  14853.                       fi
  14854.                                                                   haveit=
  14855.                       for x in $ltrpathdirs; do
  14856.                         if test "X$x" = "X$dir"; then
  14857.                           haveit=yes
  14858.                           break
  14859.                         fi
  14860.                       done
  14861.                       if test -z "$haveit"; then
  14862.                         ltrpathdirs="$ltrpathdirs $dir"
  14863.                       fi
  14864.                     fi
  14865.                     ;;
  14866.                   -l*)
  14867.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  14868.                     ;;
  14869.                   *.la)
  14870.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  14871.                     ;;
  14872.                   *)
  14873.                                         LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$dep"
  14874.                     LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }$dep"
  14875.                     ;;
  14876.                 esac
  14877.               done
  14878.             fi
  14879.           else
  14880.                                                             LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-l$name"
  14881.             LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }-l$name"
  14882.           fi
  14883.         fi
  14884.       fi
  14885.     done
  14886.   done
  14887.   if test "X$rpathdirs" != "X"; then
  14888.     if test -n "$acl_hardcode_libdir_separator"; then
  14889.                         alldirs=
  14890.       for found_dir in $rpathdirs; do
  14891.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  14892.       done
  14893.             acl_save_libdir="$libdir"
  14894.       libdir="$alldirs"
  14895.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  14896.       libdir="$acl_save_libdir"
  14897.       LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$flag"
  14898.     else
  14899.             for found_dir in $rpathdirs; do
  14900.         acl_save_libdir="$libdir"
  14901.         libdir="$found_dir"
  14902.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  14903.         libdir="$acl_save_libdir"
  14904.         LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$flag"
  14905.       done
  14906.     fi
  14907.   fi
  14908.   if test "X$ltrpathdirs" != "X"; then
  14909.             for found_dir in $ltrpathdirs; do
  14910.       LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }-R$found_dir"
  14911.     done
  14912.   fi
  14913.  
  14914.  
  14915.  
  14916.  
  14917.  
  14918.  
  14919.  
  14920.         ac_save_CPPFLAGS="$CPPFLAGS"
  14921.  
  14922.   for element in $INCCRYPTO; do
  14923.     haveit=
  14924.     for x in $CPPFLAGS; do
  14925.  
  14926.   acl_save_prefix="$prefix"
  14927.   prefix="$acl_final_prefix"
  14928.   acl_save_exec_prefix="$exec_prefix"
  14929.   exec_prefix="$acl_final_exec_prefix"
  14930.   eval x=\"$x\"
  14931.   exec_prefix="$acl_save_exec_prefix"
  14932.   prefix="$acl_save_prefix"
  14933.  
  14934.       if test "X$x" = "X$element"; then
  14935.         haveit=yes
  14936.         break
  14937.       fi
  14938.     done
  14939.     if test -z "$haveit"; then
  14940.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  14941.     fi
  14942.   done
  14943.  
  14944.  
  14945.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5
  14946. $as_echo_n "checking for libcrypto... " >&6; }
  14947. if ${ac_cv_libcrypto+:} false; then :
  14948.   $as_echo_n "(cached) " >&6
  14949. else
  14950.  
  14951.     ac_save_LIBS="$LIBS"
  14952.                                 case " $LIBCRYPTO" in
  14953.       *" -l"*) LIBS="$LIBS $LIBCRYPTO" ;;
  14954.       *)       LIBS="$LIBCRYPTO $LIBS" ;;
  14955.     esac
  14956.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14957. /* end confdefs.h.  */
  14958. #include <openssl/evp.h>
  14959.  
  14960. int
  14961. main ()
  14962. {
  14963. EVP_CIPHER_CTX_init(NULL);
  14964.   ;
  14965.   return 0;
  14966. }
  14967. _ACEOF
  14968. if ac_fn_c_try_link "$LINENO"; then :
  14969.   ac_cv_libcrypto=yes
  14970. else
  14971.   ac_cv_libcrypto='no'
  14972. fi
  14973. rm -f core conftest.err conftest.$ac_objext \
  14974.     conftest$ac_exeext conftest.$ac_ext
  14975.     LIBS="$ac_save_LIBS"
  14976.  
  14977. fi
  14978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libcrypto" >&5
  14979. $as_echo "$ac_cv_libcrypto" >&6; }
  14980.   if test "$ac_cv_libcrypto" = yes; then
  14981.     HAVE_LIBCRYPTO=yes
  14982.  
  14983. $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
  14984.  
  14985.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libcrypto" >&5
  14986. $as_echo_n "checking how to link with libcrypto... " >&6; }
  14987.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBCRYPTO" >&5
  14988. $as_echo "$LIBCRYPTO" >&6; }
  14989.   else
  14990.     HAVE_LIBCRYPTO=no
  14991.             CPPFLAGS="$ac_save_CPPFLAGS"
  14992.     LIBCRYPTO=
  14993.     LTLIBCRYPTO=
  14994.     LIBCRYPTO_PREFIX=
  14995.   fi
  14996.  
  14997.  
  14998.  
  14999.  
  15000.  
  15001.  
  15002.  
  15003.  
  15004.  if test "$HAVE_LIBCRYPTO" = "yes"; then
  15005.   HAVE_LIBCRYPTO_TRUE=
  15006.   HAVE_LIBCRYPTO_FALSE='#'
  15007. else
  15008.   HAVE_LIBCRYPTO_TRUE='#'
  15009.   HAVE_LIBCRYPTO_FALSE=
  15010. fi
  15011.  
  15012.  
  15013.  
  15014.  
  15015.  
  15016.  
  15017.  
  15018.  
  15019.  
  15020.  
  15021.  
  15022.  
  15023.  
  15024.  
  15025.  
  15026.     use_additional=yes
  15027.  
  15028.   acl_save_prefix="$prefix"
  15029.   prefix="$acl_final_prefix"
  15030.   acl_save_exec_prefix="$exec_prefix"
  15031.   exec_prefix="$acl_final_exec_prefix"
  15032.  
  15033.     eval additional_includedir=\"$includedir\"
  15034.     eval additional_libdir=\"$libdir\"
  15035.  
  15036.   exec_prefix="$acl_save_exec_prefix"
  15037.   prefix="$acl_save_prefix"
  15038.  
  15039.  
  15040. # Check whether --with-librt-prefix was given.
  15041. if test "${with_librt_prefix+set}" = set; then :
  15042.   withval=$with_librt_prefix;
  15043.     if test "X$withval" = "Xno"; then
  15044.       use_additional=no
  15045.     else
  15046.       if test "X$withval" = "X"; then
  15047.  
  15048.   acl_save_prefix="$prefix"
  15049.   prefix="$acl_final_prefix"
  15050.   acl_save_exec_prefix="$exec_prefix"
  15051.   exec_prefix="$acl_final_exec_prefix"
  15052.  
  15053.           eval additional_includedir=\"$includedir\"
  15054.           eval additional_libdir=\"$libdir\"
  15055.  
  15056.   exec_prefix="$acl_save_exec_prefix"
  15057.   prefix="$acl_save_prefix"
  15058.  
  15059.       else
  15060.         additional_includedir="$withval/include"
  15061.         additional_libdir="$withval/$acl_libdirstem"
  15062.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  15063.            && ! test -d "$withval/$acl_libdirstem"; then
  15064.           additional_libdir="$withval/$acl_libdirstem2"
  15065.         fi
  15066.       fi
  15067.     fi
  15068.  
  15069. fi
  15070.  
  15071.       LIBRT=
  15072.   LTLIBRT=
  15073.   INCRT=
  15074.   LIBRT_PREFIX=
  15075.       HAVE_LIBRT=
  15076.   rpathdirs=
  15077.   ltrpathdirs=
  15078.   names_already_handled=
  15079.   names_next_round='rt '
  15080.   while test -n "$names_next_round"; do
  15081.     names_this_round="$names_next_round"
  15082.     names_next_round=
  15083.     for name in $names_this_round; do
  15084.       already_handled=
  15085.       for n in $names_already_handled; do
  15086.         if test "$n" = "$name"; then
  15087.           already_handled=yes
  15088.           break
  15089.         fi
  15090.       done
  15091.       if test -z "$already_handled"; then
  15092.         names_already_handled="$names_already_handled $name"
  15093.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  15094.         eval value=\"\$HAVE_LIB$uppername\"
  15095.         if test -n "$value"; then
  15096.           if test "$value" = yes; then
  15097.             eval value=\"\$LIB$uppername\"
  15098.             test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
  15099.             eval value=\"\$LTLIB$uppername\"
  15100.             test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
  15101.           else
  15102.                                     :
  15103.           fi
  15104.         else
  15105.                               found_dir=
  15106.           found_la=
  15107.           found_so=
  15108.           found_a=
  15109.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  15110.           if test -n "$acl_shlibext"; then
  15111.             shrext=".$acl_shlibext"             # typically: shrext=.so
  15112.           else
  15113.             shrext=
  15114.           fi
  15115.           if test $use_additional = yes; then
  15116.             dir="$additional_libdir"
  15117.                                     if test -n "$acl_shlibext"; then
  15118.               if test -f "$dir/$libname$shrext"; then
  15119.                 found_dir="$dir"
  15120.                 found_so="$dir/$libname$shrext"
  15121.               else
  15122.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15123.                   ver=`(cd "$dir" && \
  15124.                         for f in "$libname$shrext".*; do echo "$f"; done \
  15125.                         | sed -e "s,^$libname$shrext\\\\.,," \
  15126.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15127.                         | sed 1q ) 2>/dev/null`
  15128.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15129.                     found_dir="$dir"
  15130.                     found_so="$dir/$libname$shrext.$ver"
  15131.                   fi
  15132.                 else
  15133.                   eval library_names=\"$acl_library_names_spec\"
  15134.                   for f in $library_names; do
  15135.                     if test -f "$dir/$f"; then
  15136.                       found_dir="$dir"
  15137.                       found_so="$dir/$f"
  15138.                       break
  15139.                     fi
  15140.                   done
  15141.                 fi
  15142.               fi
  15143.             fi
  15144.                         if test "X$found_dir" = "X"; then
  15145.               if test -f "$dir/$libname.$acl_libext"; then
  15146.                 found_dir="$dir"
  15147.                 found_a="$dir/$libname.$acl_libext"
  15148.               fi
  15149.             fi
  15150.             if test "X$found_dir" != "X"; then
  15151.               if test -f "$dir/$libname.la"; then
  15152.                 found_la="$dir/$libname.la"
  15153.               fi
  15154.             fi
  15155.           fi
  15156.           if test "X$found_dir" = "X"; then
  15157.             for x in $LDFLAGS $LTLIBRT; do
  15158.  
  15159.   acl_save_prefix="$prefix"
  15160.   prefix="$acl_final_prefix"
  15161.   acl_save_exec_prefix="$exec_prefix"
  15162.   exec_prefix="$acl_final_exec_prefix"
  15163.   eval x=\"$x\"
  15164.   exec_prefix="$acl_save_exec_prefix"
  15165.   prefix="$acl_save_prefix"
  15166.  
  15167.               case "$x" in
  15168.                 -L*)
  15169.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  15170.                                     if test -n "$acl_shlibext"; then
  15171.                     if test -f "$dir/$libname$shrext"; then
  15172.                       found_dir="$dir"
  15173.                       found_so="$dir/$libname$shrext"
  15174.                     else
  15175.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15176.                         ver=`(cd "$dir" && \
  15177.                               for f in "$libname$shrext".*; do echo "$f"; done \
  15178.                               | sed -e "s,^$libname$shrext\\\\.,," \
  15179.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15180.                               | sed 1q ) 2>/dev/null`
  15181.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15182.                           found_dir="$dir"
  15183.                           found_so="$dir/$libname$shrext.$ver"
  15184.                         fi
  15185.                       else
  15186.                         eval library_names=\"$acl_library_names_spec\"
  15187.                         for f in $library_names; do
  15188.                           if test -f "$dir/$f"; then
  15189.                             found_dir="$dir"
  15190.                             found_so="$dir/$f"
  15191.                             break
  15192.                           fi
  15193.                         done
  15194.                       fi
  15195.                     fi
  15196.                   fi
  15197.                                     if test "X$found_dir" = "X"; then
  15198.                     if test -f "$dir/$libname.$acl_libext"; then
  15199.                       found_dir="$dir"
  15200.                       found_a="$dir/$libname.$acl_libext"
  15201.                     fi
  15202.                   fi
  15203.                   if test "X$found_dir" != "X"; then
  15204.                     if test -f "$dir/$libname.la"; then
  15205.                       found_la="$dir/$libname.la"
  15206.                     fi
  15207.                   fi
  15208.                   ;;
  15209.               esac
  15210.               if test "X$found_dir" != "X"; then
  15211.                 break
  15212.               fi
  15213.             done
  15214.           fi
  15215.           if test "X$found_dir" != "X"; then
  15216.                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
  15217.             if test "X$found_so" != "X"; then
  15218.                                                         if test "$enable_rpath" = no \
  15219.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  15220.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  15221.                                 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  15222.               else
  15223.                                                                                 haveit=
  15224.                 for x in $ltrpathdirs; do
  15225.                   if test "X$x" = "X$found_dir"; then
  15226.                     haveit=yes
  15227.                     break
  15228.                   fi
  15229.                 done
  15230.                 if test -z "$haveit"; then
  15231.                   ltrpathdirs="$ltrpathdirs $found_dir"
  15232.                 fi
  15233.                                 if test "$acl_hardcode_direct" = yes; then
  15234.                                                       LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  15235.                 else
  15236.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15237.                                                             LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  15238.                                                             haveit=
  15239.                     for x in $rpathdirs; do
  15240.                       if test "X$x" = "X$found_dir"; then
  15241.                         haveit=yes
  15242.                         break
  15243.                       fi
  15244.                     done
  15245.                     if test -z "$haveit"; then
  15246.                       rpathdirs="$rpathdirs $found_dir"
  15247.                     fi
  15248.                   else
  15249.                                                                                 haveit=
  15250.                     for x in $LDFLAGS $LIBRT; do
  15251.  
  15252.   acl_save_prefix="$prefix"
  15253.   prefix="$acl_final_prefix"
  15254.   acl_save_exec_prefix="$exec_prefix"
  15255.   exec_prefix="$acl_final_exec_prefix"
  15256.   eval x=\"$x\"
  15257.   exec_prefix="$acl_save_exec_prefix"
  15258.   prefix="$acl_save_prefix"
  15259.  
  15260.                       if test "X$x" = "X-L$found_dir"; then
  15261.                         haveit=yes
  15262.                         break
  15263.                       fi
  15264.                     done
  15265.                     if test -z "$haveit"; then
  15266.                       LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
  15267.                     fi
  15268.                     if test "$acl_hardcode_minus_L" != no; then
  15269.                                                                                         LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  15270.                     else
  15271.                                                                                                                                                                                 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
  15272.                     fi
  15273.                   fi
  15274.                 fi
  15275.               fi
  15276.             else
  15277.               if test "X$found_a" != "X"; then
  15278.                                 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
  15279.               else
  15280.                                                 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
  15281.               fi
  15282.             fi
  15283.                         additional_includedir=
  15284.             case "$found_dir" in
  15285.               */$acl_libdirstem | */$acl_libdirstem/)
  15286.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15287.                 if test "$name" = 'rt'; then
  15288.                   LIBRT_PREFIX="$basedir"
  15289.                 fi
  15290.                 additional_includedir="$basedir/include"
  15291.                 ;;
  15292.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  15293.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  15294.                 if test "$name" = 'rt'; then
  15295.                   LIBRT_PREFIX="$basedir"
  15296.                 fi
  15297.                 additional_includedir="$basedir/include"
  15298.                 ;;
  15299.             esac
  15300.             if test "X$additional_includedir" != "X"; then
  15301.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  15302.                 haveit=
  15303.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  15304.                   if test -n "$GCC"; then
  15305.                     case $host_os in
  15306.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15307.                     esac
  15308.                   fi
  15309.                 fi
  15310.                 if test -z "$haveit"; then
  15311.                   for x in $CPPFLAGS $INCRT; do
  15312.  
  15313.   acl_save_prefix="$prefix"
  15314.   prefix="$acl_final_prefix"
  15315.   acl_save_exec_prefix="$exec_prefix"
  15316.   exec_prefix="$acl_final_exec_prefix"
  15317.   eval x=\"$x\"
  15318.   exec_prefix="$acl_save_exec_prefix"
  15319.   prefix="$acl_save_prefix"
  15320.  
  15321.                     if test "X$x" = "X-I$additional_includedir"; then
  15322.                       haveit=yes
  15323.                       break
  15324.                     fi
  15325.                   done
  15326.                   if test -z "$haveit"; then
  15327.                     if test -d "$additional_includedir"; then
  15328.                                             INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
  15329.                     fi
  15330.                   fi
  15331.                 fi
  15332.               fi
  15333.             fi
  15334.                         if test -n "$found_la"; then
  15335.                                                         save_libdir="$libdir"
  15336.               case "$found_la" in
  15337.                 */* | *\\*) . "$found_la" ;;
  15338.                 *) . "./$found_la" ;;
  15339.               esac
  15340.               libdir="$save_libdir"
  15341.                             for dep in $dependency_libs; do
  15342.                 case "$dep" in
  15343.                   -L*)
  15344.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15345.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  15346.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  15347.                       haveit=
  15348.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  15349.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  15350.                         if test -n "$GCC"; then
  15351.                           case $host_os in
  15352.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15353.                           esac
  15354.                         fi
  15355.                       fi
  15356.                       if test -z "$haveit"; then
  15357.                         haveit=
  15358.                         for x in $LDFLAGS $LIBRT; do
  15359.  
  15360.   acl_save_prefix="$prefix"
  15361.   prefix="$acl_final_prefix"
  15362.   acl_save_exec_prefix="$exec_prefix"
  15363.   exec_prefix="$acl_final_exec_prefix"
  15364.   eval x=\"$x\"
  15365.   exec_prefix="$acl_save_exec_prefix"
  15366.   prefix="$acl_save_prefix"
  15367.  
  15368.                           if test "X$x" = "X-L$additional_libdir"; then
  15369.                             haveit=yes
  15370.                             break
  15371.                           fi
  15372.                         done
  15373.                         if test -z "$haveit"; then
  15374.                           if test -d "$additional_libdir"; then
  15375.                                                         LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
  15376.                           fi
  15377.                         fi
  15378.                         haveit=
  15379.                         for x in $LDFLAGS $LTLIBRT; do
  15380.  
  15381.   acl_save_prefix="$prefix"
  15382.   prefix="$acl_final_prefix"
  15383.   acl_save_exec_prefix="$exec_prefix"
  15384.   exec_prefix="$acl_final_exec_prefix"
  15385.   eval x=\"$x\"
  15386.   exec_prefix="$acl_save_exec_prefix"
  15387.   prefix="$acl_save_prefix"
  15388.  
  15389.                           if test "X$x" = "X-L$additional_libdir"; then
  15390.                             haveit=yes
  15391.                             break
  15392.                           fi
  15393.                         done
  15394.                         if test -z "$haveit"; then
  15395.                           if test -d "$additional_libdir"; then
  15396.                                                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
  15397.                           fi
  15398.                         fi
  15399.                       fi
  15400.                     fi
  15401.                     ;;
  15402.                   -R*)
  15403.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15404.                     if test "$enable_rpath" != no; then
  15405.                                                                   haveit=
  15406.                       for x in $rpathdirs; do
  15407.                         if test "X$x" = "X$dir"; then
  15408.                           haveit=yes
  15409.                           break
  15410.                         fi
  15411.                       done
  15412.                       if test -z "$haveit"; then
  15413.                         rpathdirs="$rpathdirs $dir"
  15414.                       fi
  15415.                                                                   haveit=
  15416.                       for x in $ltrpathdirs; do
  15417.                         if test "X$x" = "X$dir"; then
  15418.                           haveit=yes
  15419.                           break
  15420.                         fi
  15421.                       done
  15422.                       if test -z "$haveit"; then
  15423.                         ltrpathdirs="$ltrpathdirs $dir"
  15424.                       fi
  15425.                     fi
  15426.                     ;;
  15427.                   -l*)
  15428.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15429.                     ;;
  15430.                   *.la)
  15431.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15432.                     ;;
  15433.                   *)
  15434.                                         LIBRT="${LIBRT}${LIBRT:+ }$dep"
  15435.                     LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
  15436.                     ;;
  15437.                 esac
  15438.               done
  15439.             fi
  15440.           else
  15441.                                                             LIBRT="${LIBRT}${LIBRT:+ }-l$name"
  15442.             LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
  15443.           fi
  15444.         fi
  15445.       fi
  15446.     done
  15447.   done
  15448.   if test "X$rpathdirs" != "X"; then
  15449.     if test -n "$acl_hardcode_libdir_separator"; then
  15450.                         alldirs=
  15451.       for found_dir in $rpathdirs; do
  15452.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15453.       done
  15454.             acl_save_libdir="$libdir"
  15455.       libdir="$alldirs"
  15456.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15457.       libdir="$acl_save_libdir"
  15458.       LIBRT="${LIBRT}${LIBRT:+ }$flag"
  15459.     else
  15460.             for found_dir in $rpathdirs; do
  15461.         acl_save_libdir="$libdir"
  15462.         libdir="$found_dir"
  15463.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15464.         libdir="$acl_save_libdir"
  15465.         LIBRT="${LIBRT}${LIBRT:+ }$flag"
  15466.       done
  15467.     fi
  15468.   fi
  15469.   if test "X$ltrpathdirs" != "X"; then
  15470.             for found_dir in $ltrpathdirs; do
  15471.       LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
  15472.     done
  15473.   fi
  15474.  
  15475.  
  15476.  
  15477.  
  15478.  
  15479.  
  15480.  
  15481.         ac_save_CPPFLAGS="$CPPFLAGS"
  15482.  
  15483.   for element in $INCRT; do
  15484.     haveit=
  15485.     for x in $CPPFLAGS; do
  15486.  
  15487.   acl_save_prefix="$prefix"
  15488.   prefix="$acl_final_prefix"
  15489.   acl_save_exec_prefix="$exec_prefix"
  15490.   exec_prefix="$acl_final_exec_prefix"
  15491.   eval x=\"$x\"
  15492.   exec_prefix="$acl_save_exec_prefix"
  15493.   prefix="$acl_save_prefix"
  15494.  
  15495.       if test "X$x" = "X$element"; then
  15496.         haveit=yes
  15497.         break
  15498.       fi
  15499.     done
  15500.     if test -z "$haveit"; then
  15501.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15502.     fi
  15503.   done
  15504.  
  15505.  
  15506.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
  15507. $as_echo_n "checking for librt... " >&6; }
  15508. if ${ac_cv_librt+:} false; then :
  15509.   $as_echo_n "(cached) " >&6
  15510. else
  15511.  
  15512.     ac_save_LIBS="$LIBS"
  15513.                                 case " $LIBRT" in
  15514.       *" -l"*) LIBS="$LIBS $LIBRT" ;;
  15515.       *)       LIBS="$LIBRT $LIBS" ;;
  15516.     esac
  15517.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15518. /* end confdefs.h.  */
  15519. #include <time.h>
  15520. #include <signal.h>
  15521.  
  15522. int
  15523. main ()
  15524. {
  15525. timer_create (0,0,0);
  15526.   ;
  15527.   return 0;
  15528. }
  15529. _ACEOF
  15530. if ac_fn_c_try_link "$LINENO"; then :
  15531.   ac_cv_librt=yes
  15532. else
  15533.   ac_cv_librt='no'
  15534. fi
  15535. rm -f core conftest.err conftest.$ac_objext \
  15536.     conftest$ac_exeext conftest.$ac_ext
  15537.     LIBS="$ac_save_LIBS"
  15538.  
  15539. fi
  15540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
  15541. $as_echo "$ac_cv_librt" >&6; }
  15542.   if test "$ac_cv_librt" = yes; then
  15543.     HAVE_LIBRT=yes
  15544.  
  15545. $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
  15546.  
  15547.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
  15548. $as_echo_n "checking how to link with librt... " >&6; }
  15549.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
  15550. $as_echo "$LIBRT" >&6; }
  15551.   else
  15552.     HAVE_LIBRT=no
  15553.             CPPFLAGS="$ac_save_CPPFLAGS"
  15554.     LIBRT=
  15555.     LTLIBRT=
  15556.     LIBRT_PREFIX=
  15557.   fi
  15558.  
  15559.  
  15560.  
  15561.  
  15562.  
  15563.  
  15564.  
  15565.  
  15566. if test "$have_win" != "yes";then
  15567.   for ac_func in pthread_mutex_lock
  15568. do :
  15569.   ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
  15570. if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
  15571.   cat >>confdefs.h <<_ACEOF
  15572. #define HAVE_PTHREAD_MUTEX_LOCK 1
  15573. _ACEOF
  15574.  
  15575. fi
  15576. done
  15577.  
  15578.   if test "$ac_cv_func_pthread_mutex_lock" != "yes";then
  15579.  
  15580.  
  15581.  
  15582.  
  15583.  
  15584.  
  15585.  
  15586.  
  15587.  
  15588.  
  15589.  
  15590.  
  15591.  
  15592.     use_additional=yes
  15593.  
  15594.   acl_save_prefix="$prefix"
  15595.   prefix="$acl_final_prefix"
  15596.   acl_save_exec_prefix="$exec_prefix"
  15597.   exec_prefix="$acl_final_exec_prefix"
  15598.  
  15599.     eval additional_includedir=\"$includedir\"
  15600.     eval additional_libdir=\"$libdir\"
  15601.  
  15602.   exec_prefix="$acl_save_exec_prefix"
  15603.   prefix="$acl_save_prefix"
  15604.  
  15605.  
  15606. # Check whether --with-libpthread-prefix was given.
  15607. if test "${with_libpthread_prefix+set}" = set; then :
  15608.   withval=$with_libpthread_prefix;
  15609.     if test "X$withval" = "Xno"; then
  15610.       use_additional=no
  15611.     else
  15612.       if test "X$withval" = "X"; then
  15613.  
  15614.   acl_save_prefix="$prefix"
  15615.   prefix="$acl_final_prefix"
  15616.   acl_save_exec_prefix="$exec_prefix"
  15617.   exec_prefix="$acl_final_exec_prefix"
  15618.  
  15619.           eval additional_includedir=\"$includedir\"
  15620.           eval additional_libdir=\"$libdir\"
  15621.  
  15622.   exec_prefix="$acl_save_exec_prefix"
  15623.   prefix="$acl_save_prefix"
  15624.  
  15625.       else
  15626.         additional_includedir="$withval/include"
  15627.         additional_libdir="$withval/$acl_libdirstem"
  15628.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  15629.            && ! test -d "$withval/$acl_libdirstem"; then
  15630.           additional_libdir="$withval/$acl_libdirstem2"
  15631.         fi
  15632.       fi
  15633.     fi
  15634.  
  15635. fi
  15636.  
  15637.       LIBPTHREAD=
  15638.   LTLIBPTHREAD=
  15639.   INCPTHREAD=
  15640.   LIBPTHREAD_PREFIX=
  15641.       HAVE_LIBPTHREAD=
  15642.   rpathdirs=
  15643.   ltrpathdirs=
  15644.   names_already_handled=
  15645.   names_next_round='pthread '
  15646.   while test -n "$names_next_round"; do
  15647.     names_this_round="$names_next_round"
  15648.     names_next_round=
  15649.     for name in $names_this_round; do
  15650.       already_handled=
  15651.       for n in $names_already_handled; do
  15652.         if test "$n" = "$name"; then
  15653.           already_handled=yes
  15654.           break
  15655.         fi
  15656.       done
  15657.       if test -z "$already_handled"; then
  15658.         names_already_handled="$names_already_handled $name"
  15659.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  15660.         eval value=\"\$HAVE_LIB$uppername\"
  15661.         if test -n "$value"; then
  15662.           if test "$value" = yes; then
  15663.             eval value=\"\$LIB$uppername\"
  15664.             test -z "$value" || LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$value"
  15665.             eval value=\"\$LTLIB$uppername\"
  15666.             test -z "$value" || LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$value"
  15667.           else
  15668.                                     :
  15669.           fi
  15670.         else
  15671.                               found_dir=
  15672.           found_la=
  15673.           found_so=
  15674.           found_a=
  15675.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  15676.           if test -n "$acl_shlibext"; then
  15677.             shrext=".$acl_shlibext"             # typically: shrext=.so
  15678.           else
  15679.             shrext=
  15680.           fi
  15681.           if test $use_additional = yes; then
  15682.             dir="$additional_libdir"
  15683.                                     if test -n "$acl_shlibext"; then
  15684.               if test -f "$dir/$libname$shrext"; then
  15685.                 found_dir="$dir"
  15686.                 found_so="$dir/$libname$shrext"
  15687.               else
  15688.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15689.                   ver=`(cd "$dir" && \
  15690.                         for f in "$libname$shrext".*; do echo "$f"; done \
  15691.                         | sed -e "s,^$libname$shrext\\\\.,," \
  15692.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15693.                         | sed 1q ) 2>/dev/null`
  15694.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15695.                     found_dir="$dir"
  15696.                     found_so="$dir/$libname$shrext.$ver"
  15697.                   fi
  15698.                 else
  15699.                   eval library_names=\"$acl_library_names_spec\"
  15700.                   for f in $library_names; do
  15701.                     if test -f "$dir/$f"; then
  15702.                       found_dir="$dir"
  15703.                       found_so="$dir/$f"
  15704.                       break
  15705.                     fi
  15706.                   done
  15707.                 fi
  15708.               fi
  15709.             fi
  15710.                         if test "X$found_dir" = "X"; then
  15711.               if test -f "$dir/$libname.$acl_libext"; then
  15712.                 found_dir="$dir"
  15713.                 found_a="$dir/$libname.$acl_libext"
  15714.               fi
  15715.             fi
  15716.             if test "X$found_dir" != "X"; then
  15717.               if test -f "$dir/$libname.la"; then
  15718.                 found_la="$dir/$libname.la"
  15719.               fi
  15720.             fi
  15721.           fi
  15722.           if test "X$found_dir" = "X"; then
  15723.             for x in $LDFLAGS $LTLIBPTHREAD; do
  15724.  
  15725.   acl_save_prefix="$prefix"
  15726.   prefix="$acl_final_prefix"
  15727.   acl_save_exec_prefix="$exec_prefix"
  15728.   exec_prefix="$acl_final_exec_prefix"
  15729.   eval x=\"$x\"
  15730.   exec_prefix="$acl_save_exec_prefix"
  15731.   prefix="$acl_save_prefix"
  15732.  
  15733.               case "$x" in
  15734.                 -L*)
  15735.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  15736.                                     if test -n "$acl_shlibext"; then
  15737.                     if test -f "$dir/$libname$shrext"; then
  15738.                       found_dir="$dir"
  15739.                       found_so="$dir/$libname$shrext"
  15740.                     else
  15741.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15742.                         ver=`(cd "$dir" && \
  15743.                               for f in "$libname$shrext".*; do echo "$f"; done \
  15744.                               | sed -e "s,^$libname$shrext\\\\.,," \
  15745.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15746.                               | sed 1q ) 2>/dev/null`
  15747.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15748.                           found_dir="$dir"
  15749.                           found_so="$dir/$libname$shrext.$ver"
  15750.                         fi
  15751.                       else
  15752.                         eval library_names=\"$acl_library_names_spec\"
  15753.                         for f in $library_names; do
  15754.                           if test -f "$dir/$f"; then
  15755.                             found_dir="$dir"
  15756.                             found_so="$dir/$f"
  15757.                             break
  15758.                           fi
  15759.                         done
  15760.                       fi
  15761.                     fi
  15762.                   fi
  15763.                                     if test "X$found_dir" = "X"; then
  15764.                     if test -f "$dir/$libname.$acl_libext"; then
  15765.                       found_dir="$dir"
  15766.                       found_a="$dir/$libname.$acl_libext"
  15767.                     fi
  15768.                   fi
  15769.                   if test "X$found_dir" != "X"; then
  15770.                     if test -f "$dir/$libname.la"; then
  15771.                       found_la="$dir/$libname.la"
  15772.                     fi
  15773.                   fi
  15774.                   ;;
  15775.               esac
  15776.               if test "X$found_dir" != "X"; then
  15777.                 break
  15778.               fi
  15779.             done
  15780.           fi
  15781.           if test "X$found_dir" != "X"; then
  15782.                         LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$found_dir -l$name"
  15783.             if test "X$found_so" != "X"; then
  15784.                                                         if test "$enable_rpath" = no \
  15785.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  15786.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  15787.                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
  15788.               else
  15789.                                                                                 haveit=
  15790.                 for x in $ltrpathdirs; do
  15791.                   if test "X$x" = "X$found_dir"; then
  15792.                     haveit=yes
  15793.                     break
  15794.                   fi
  15795.                 done
  15796.                 if test -z "$haveit"; then
  15797.                   ltrpathdirs="$ltrpathdirs $found_dir"
  15798.                 fi
  15799.                                 if test "$acl_hardcode_direct" = yes; then
  15800.                                                       LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
  15801.                 else
  15802.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15803.                                                             LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
  15804.                                                             haveit=
  15805.                     for x in $rpathdirs; do
  15806.                       if test "X$x" = "X$found_dir"; then
  15807.                         haveit=yes
  15808.                         break
  15809.                       fi
  15810.                     done
  15811.                     if test -z "$haveit"; then
  15812.                       rpathdirs="$rpathdirs $found_dir"
  15813.                     fi
  15814.                   else
  15815.                                                                                 haveit=
  15816.                     for x in $LDFLAGS $LIBPTHREAD; do
  15817.  
  15818.   acl_save_prefix="$prefix"
  15819.   prefix="$acl_final_prefix"
  15820.   acl_save_exec_prefix="$exec_prefix"
  15821.   exec_prefix="$acl_final_exec_prefix"
  15822.   eval x=\"$x\"
  15823.   exec_prefix="$acl_save_exec_prefix"
  15824.   prefix="$acl_save_prefix"
  15825.  
  15826.                       if test "X$x" = "X-L$found_dir"; then
  15827.                         haveit=yes
  15828.                         break
  15829.                       fi
  15830.                     done
  15831.                     if test -z "$haveit"; then
  15832.                       LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir"
  15833.                     fi
  15834.                     if test "$acl_hardcode_minus_L" != no; then
  15835.                                                                                         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
  15836.                     else
  15837.                                                                                                                                                                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
  15838.                     fi
  15839.                   fi
  15840.                 fi
  15841.               fi
  15842.             else
  15843.               if test "X$found_a" != "X"; then
  15844.                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_a"
  15845.               else
  15846.                                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir -l$name"
  15847.               fi
  15848.             fi
  15849.                         additional_includedir=
  15850.             case "$found_dir" in
  15851.               */$acl_libdirstem | */$acl_libdirstem/)
  15852.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15853.                 if test "$name" = 'pthread'; then
  15854.                   LIBPTHREAD_PREFIX="$basedir"
  15855.                 fi
  15856.                 additional_includedir="$basedir/include"
  15857.                 ;;
  15858.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  15859.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  15860.                 if test "$name" = 'pthread'; then
  15861.                   LIBPTHREAD_PREFIX="$basedir"
  15862.                 fi
  15863.                 additional_includedir="$basedir/include"
  15864.                 ;;
  15865.             esac
  15866.             if test "X$additional_includedir" != "X"; then
  15867.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  15868.                 haveit=
  15869.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  15870.                   if test -n "$GCC"; then
  15871.                     case $host_os in
  15872.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15873.                     esac
  15874.                   fi
  15875.                 fi
  15876.                 if test -z "$haveit"; then
  15877.                   for x in $CPPFLAGS $INCPTHREAD; do
  15878.  
  15879.   acl_save_prefix="$prefix"
  15880.   prefix="$acl_final_prefix"
  15881.   acl_save_exec_prefix="$exec_prefix"
  15882.   exec_prefix="$acl_final_exec_prefix"
  15883.   eval x=\"$x\"
  15884.   exec_prefix="$acl_save_exec_prefix"
  15885.   prefix="$acl_save_prefix"
  15886.  
  15887.                     if test "X$x" = "X-I$additional_includedir"; then
  15888.                       haveit=yes
  15889.                       break
  15890.                     fi
  15891.                   done
  15892.                   if test -z "$haveit"; then
  15893.                     if test -d "$additional_includedir"; then
  15894.                                             INCPTHREAD="${INCPTHREAD}${INCPTHREAD:+ }-I$additional_includedir"
  15895.                     fi
  15896.                   fi
  15897.                 fi
  15898.               fi
  15899.             fi
  15900.                         if test -n "$found_la"; then
  15901.                                                         save_libdir="$libdir"
  15902.               case "$found_la" in
  15903.                 */* | *\\*) . "$found_la" ;;
  15904.                 *) . "./$found_la" ;;
  15905.               esac
  15906.               libdir="$save_libdir"
  15907.                             for dep in $dependency_libs; do
  15908.                 case "$dep" in
  15909.                   -L*)
  15910.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15911.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  15912.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  15913.                       haveit=
  15914.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  15915.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  15916.                         if test -n "$GCC"; then
  15917.                           case $host_os in
  15918.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15919.                           esac
  15920.                         fi
  15921.                       fi
  15922.                       if test -z "$haveit"; then
  15923.                         haveit=
  15924.                         for x in $LDFLAGS $LIBPTHREAD; do
  15925.  
  15926.   acl_save_prefix="$prefix"
  15927.   prefix="$acl_final_prefix"
  15928.   acl_save_exec_prefix="$exec_prefix"
  15929.   exec_prefix="$acl_final_exec_prefix"
  15930.   eval x=\"$x\"
  15931.   exec_prefix="$acl_save_exec_prefix"
  15932.   prefix="$acl_save_prefix"
  15933.  
  15934.                           if test "X$x" = "X-L$additional_libdir"; then
  15935.                             haveit=yes
  15936.                             break
  15937.                           fi
  15938.                         done
  15939.                         if test -z "$haveit"; then
  15940.                           if test -d "$additional_libdir"; then
  15941.                                                         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$additional_libdir"
  15942.                           fi
  15943.                         fi
  15944.                         haveit=
  15945.                         for x in $LDFLAGS $LTLIBPTHREAD; do
  15946.  
  15947.   acl_save_prefix="$prefix"
  15948.   prefix="$acl_final_prefix"
  15949.   acl_save_exec_prefix="$exec_prefix"
  15950.   exec_prefix="$acl_final_exec_prefix"
  15951.   eval x=\"$x\"
  15952.   exec_prefix="$acl_save_exec_prefix"
  15953.   prefix="$acl_save_prefix"
  15954.  
  15955.                           if test "X$x" = "X-L$additional_libdir"; then
  15956.                             haveit=yes
  15957.                             break
  15958.                           fi
  15959.                         done
  15960.                         if test -z "$haveit"; then
  15961.                           if test -d "$additional_libdir"; then
  15962.                                                         LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$additional_libdir"
  15963.                           fi
  15964.                         fi
  15965.                       fi
  15966.                     fi
  15967.                     ;;
  15968.                   -R*)
  15969.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15970.                     if test "$enable_rpath" != no; then
  15971.                                                                   haveit=
  15972.                       for x in $rpathdirs; do
  15973.                         if test "X$x" = "X$dir"; then
  15974.                           haveit=yes
  15975.                           break
  15976.                         fi
  15977.                       done
  15978.                       if test -z "$haveit"; then
  15979.                         rpathdirs="$rpathdirs $dir"
  15980.                       fi
  15981.                                                                   haveit=
  15982.                       for x in $ltrpathdirs; do
  15983.                         if test "X$x" = "X$dir"; then
  15984.                           haveit=yes
  15985.                           break
  15986.                         fi
  15987.                       done
  15988.                       if test -z "$haveit"; then
  15989.                         ltrpathdirs="$ltrpathdirs $dir"
  15990.                       fi
  15991.                     fi
  15992.                     ;;
  15993.                   -l*)
  15994.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15995.                     ;;
  15996.                   *.la)
  15997.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15998.                     ;;
  15999.                   *)
  16000.                                         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$dep"
  16001.                     LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$dep"
  16002.                     ;;
  16003.                 esac
  16004.               done
  16005.             fi
  16006.           else
  16007.                                                             LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
  16008.             LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-l$name"
  16009.           fi
  16010.         fi
  16011.       fi
  16012.     done
  16013.   done
  16014.   if test "X$rpathdirs" != "X"; then
  16015.     if test -n "$acl_hardcode_libdir_separator"; then
  16016.                         alldirs=
  16017.       for found_dir in $rpathdirs; do
  16018.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  16019.       done
  16020.             acl_save_libdir="$libdir"
  16021.       libdir="$alldirs"
  16022.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16023.       libdir="$acl_save_libdir"
  16024.       LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
  16025.     else
  16026.             for found_dir in $rpathdirs; do
  16027.         acl_save_libdir="$libdir"
  16028.         libdir="$found_dir"
  16029.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16030.         libdir="$acl_save_libdir"
  16031.         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
  16032.       done
  16033.     fi
  16034.   fi
  16035.   if test "X$ltrpathdirs" != "X"; then
  16036.             for found_dir in $ltrpathdirs; do
  16037.       LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-R$found_dir"
  16038.     done
  16039.   fi
  16040.  
  16041.  
  16042.  
  16043.  
  16044.  
  16045.  
  16046.  
  16047.         ac_save_CPPFLAGS="$CPPFLAGS"
  16048.  
  16049.   for element in $INCPTHREAD; do
  16050.     haveit=
  16051.     for x in $CPPFLAGS; do
  16052.  
  16053.   acl_save_prefix="$prefix"
  16054.   prefix="$acl_final_prefix"
  16055.   acl_save_exec_prefix="$exec_prefix"
  16056.   exec_prefix="$acl_final_exec_prefix"
  16057.   eval x=\"$x\"
  16058.   exec_prefix="$acl_save_exec_prefix"
  16059.   prefix="$acl_save_prefix"
  16060.  
  16061.       if test "X$x" = "X$element"; then
  16062.         haveit=yes
  16063.         break
  16064.       fi
  16065.     done
  16066.     if test -z "$haveit"; then
  16067.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16068.     fi
  16069.   done
  16070.  
  16071.  
  16072.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpthread" >&5
  16073. $as_echo_n "checking for libpthread... " >&6; }
  16074. if ${ac_cv_libpthread+:} false; then :
  16075.   $as_echo_n "(cached) " >&6
  16076. else
  16077.  
  16078.     ac_save_LIBS="$LIBS"
  16079.                                 case " $LIBPTHREAD" in
  16080.       *" -l"*) LIBS="$LIBS $LIBPTHREAD" ;;
  16081.       *)       LIBS="$LIBPTHREAD $LIBS" ;;
  16082.     esac
  16083.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16084. /* end confdefs.h.  */
  16085. #include <pthread.h>
  16086. int
  16087. main ()
  16088. {
  16089. pthread_mutex_lock (0);
  16090.   ;
  16091.   return 0;
  16092. }
  16093. _ACEOF
  16094. if ac_fn_c_try_link "$LINENO"; then :
  16095.   ac_cv_libpthread=yes
  16096. else
  16097.   ac_cv_libpthread='no'
  16098. fi
  16099. rm -f core conftest.err conftest.$ac_objext \
  16100.     conftest$ac_exeext conftest.$ac_ext
  16101.     LIBS="$ac_save_LIBS"
  16102.  
  16103. fi
  16104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpthread" >&5
  16105. $as_echo "$ac_cv_libpthread" >&6; }
  16106.   if test "$ac_cv_libpthread" = yes; then
  16107.     HAVE_LIBPTHREAD=yes
  16108.  
  16109. $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
  16110.  
  16111.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpthread" >&5
  16112. $as_echo_n "checking how to link with libpthread... " >&6; }
  16113.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPTHREAD" >&5
  16114. $as_echo "$LIBPTHREAD" >&6; }
  16115.   else
  16116.     HAVE_LIBPTHREAD=no
  16117.             CPPFLAGS="$ac_save_CPPFLAGS"
  16118.     LIBPTHREAD=
  16119.     LTLIBPTHREAD=
  16120.     LIBPTHREAD_PREFIX=
  16121.   fi
  16122.  
  16123.  
  16124.  
  16125.  
  16126.  
  16127.  
  16128.  
  16129.   fi
  16130. fi
  16131.  
  16132. if test "$ac_cv_func_nanosleep" != "yes";then
  16133.  
  16134.  
  16135.  
  16136.  
  16137.  
  16138.  
  16139.  
  16140.  
  16141.  
  16142.  
  16143.  
  16144.  
  16145.  
  16146.     use_additional=yes
  16147.  
  16148.   acl_save_prefix="$prefix"
  16149.   prefix="$acl_final_prefix"
  16150.   acl_save_exec_prefix="$exec_prefix"
  16151.   exec_prefix="$acl_final_exec_prefix"
  16152.  
  16153.     eval additional_includedir=\"$includedir\"
  16154.     eval additional_libdir=\"$libdir\"
  16155.  
  16156.   exec_prefix="$acl_save_exec_prefix"
  16157.   prefix="$acl_save_prefix"
  16158.  
  16159.  
  16160. # Check whether --with-librt-prefix was given.
  16161. if test "${with_librt_prefix+set}" = set; then :
  16162.   withval=$with_librt_prefix;
  16163.     if test "X$withval" = "Xno"; then
  16164.       use_additional=no
  16165.     else
  16166.       if test "X$withval" = "X"; then
  16167.  
  16168.   acl_save_prefix="$prefix"
  16169.   prefix="$acl_final_prefix"
  16170.   acl_save_exec_prefix="$exec_prefix"
  16171.   exec_prefix="$acl_final_exec_prefix"
  16172.  
  16173.           eval additional_includedir=\"$includedir\"
  16174.           eval additional_libdir=\"$libdir\"
  16175.  
  16176.   exec_prefix="$acl_save_exec_prefix"
  16177.   prefix="$acl_save_prefix"
  16178.  
  16179.       else
  16180.         additional_includedir="$withval/include"
  16181.         additional_libdir="$withval/$acl_libdirstem"
  16182.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  16183.            && ! test -d "$withval/$acl_libdirstem"; then
  16184.           additional_libdir="$withval/$acl_libdirstem2"
  16185.         fi
  16186.       fi
  16187.     fi
  16188.  
  16189. fi
  16190.  
  16191.       LIBRT=
  16192.   LTLIBRT=
  16193.   INCRT=
  16194.   LIBRT_PREFIX=
  16195.       HAVE_LIBRT=
  16196.   rpathdirs=
  16197.   ltrpathdirs=
  16198.   names_already_handled=
  16199.   names_next_round='rt '
  16200.   while test -n "$names_next_round"; do
  16201.     names_this_round="$names_next_round"
  16202.     names_next_round=
  16203.     for name in $names_this_round; do
  16204.       already_handled=
  16205.       for n in $names_already_handled; do
  16206.         if test "$n" = "$name"; then
  16207.           already_handled=yes
  16208.           break
  16209.         fi
  16210.       done
  16211.       if test -z "$already_handled"; then
  16212.         names_already_handled="$names_already_handled $name"
  16213.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  16214.         eval value=\"\$HAVE_LIB$uppername\"
  16215.         if test -n "$value"; then
  16216.           if test "$value" = yes; then
  16217.             eval value=\"\$LIB$uppername\"
  16218.             test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
  16219.             eval value=\"\$LTLIB$uppername\"
  16220.             test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
  16221.           else
  16222.                                     :
  16223.           fi
  16224.         else
  16225.                               found_dir=
  16226.           found_la=
  16227.           found_so=
  16228.           found_a=
  16229.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  16230.           if test -n "$acl_shlibext"; then
  16231.             shrext=".$acl_shlibext"             # typically: shrext=.so
  16232.           else
  16233.             shrext=
  16234.           fi
  16235.           if test $use_additional = yes; then
  16236.             dir="$additional_libdir"
  16237.                                     if test -n "$acl_shlibext"; then
  16238.               if test -f "$dir/$libname$shrext"; then
  16239.                 found_dir="$dir"
  16240.                 found_so="$dir/$libname$shrext"
  16241.               else
  16242.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16243.                   ver=`(cd "$dir" && \
  16244.                         for f in "$libname$shrext".*; do echo "$f"; done \
  16245.                         | sed -e "s,^$libname$shrext\\\\.,," \
  16246.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16247.                         | sed 1q ) 2>/dev/null`
  16248.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16249.                     found_dir="$dir"
  16250.                     found_so="$dir/$libname$shrext.$ver"
  16251.                   fi
  16252.                 else
  16253.                   eval library_names=\"$acl_library_names_spec\"
  16254.                   for f in $library_names; do
  16255.                     if test -f "$dir/$f"; then
  16256.                       found_dir="$dir"
  16257.                       found_so="$dir/$f"
  16258.                       break
  16259.                     fi
  16260.                   done
  16261.                 fi
  16262.               fi
  16263.             fi
  16264.                         if test "X$found_dir" = "X"; then
  16265.               if test -f "$dir/$libname.$acl_libext"; then
  16266.                 found_dir="$dir"
  16267.                 found_a="$dir/$libname.$acl_libext"
  16268.               fi
  16269.             fi
  16270.             if test "X$found_dir" != "X"; then
  16271.               if test -f "$dir/$libname.la"; then
  16272.                 found_la="$dir/$libname.la"
  16273.               fi
  16274.             fi
  16275.           fi
  16276.           if test "X$found_dir" = "X"; then
  16277.             for x in $LDFLAGS $LTLIBRT; do
  16278.  
  16279.   acl_save_prefix="$prefix"
  16280.   prefix="$acl_final_prefix"
  16281.   acl_save_exec_prefix="$exec_prefix"
  16282.   exec_prefix="$acl_final_exec_prefix"
  16283.   eval x=\"$x\"
  16284.   exec_prefix="$acl_save_exec_prefix"
  16285.   prefix="$acl_save_prefix"
  16286.  
  16287.               case "$x" in
  16288.                 -L*)
  16289.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  16290.                                     if test -n "$acl_shlibext"; then
  16291.                     if test -f "$dir/$libname$shrext"; then
  16292.                       found_dir="$dir"
  16293.                       found_so="$dir/$libname$shrext"
  16294.                     else
  16295.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16296.                         ver=`(cd "$dir" && \
  16297.                               for f in "$libname$shrext".*; do echo "$f"; done \
  16298.                               | sed -e "s,^$libname$shrext\\\\.,," \
  16299.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16300.                               | sed 1q ) 2>/dev/null`
  16301.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16302.                           found_dir="$dir"
  16303.                           found_so="$dir/$libname$shrext.$ver"
  16304.                         fi
  16305.                       else
  16306.                         eval library_names=\"$acl_library_names_spec\"
  16307.                         for f in $library_names; do
  16308.                           if test -f "$dir/$f"; then
  16309.                             found_dir="$dir"
  16310.                             found_so="$dir/$f"
  16311.                             break
  16312.                           fi
  16313.                         done
  16314.                       fi
  16315.                     fi
  16316.                   fi
  16317.                                     if test "X$found_dir" = "X"; then
  16318.                     if test -f "$dir/$libname.$acl_libext"; then
  16319.                       found_dir="$dir"
  16320.                       found_a="$dir/$libname.$acl_libext"
  16321.                     fi
  16322.                   fi
  16323.                   if test "X$found_dir" != "X"; then
  16324.                     if test -f "$dir/$libname.la"; then
  16325.                       found_la="$dir/$libname.la"
  16326.                     fi
  16327.                   fi
  16328.                   ;;
  16329.               esac
  16330.               if test "X$found_dir" != "X"; then
  16331.                 break
  16332.               fi
  16333.             done
  16334.           fi
  16335.           if test "X$found_dir" != "X"; then
  16336.                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
  16337.             if test "X$found_so" != "X"; then
  16338.                                                         if test "$enable_rpath" = no \
  16339.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  16340.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  16341.                                 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  16342.               else
  16343.                                                                                 haveit=
  16344.                 for x in $ltrpathdirs; do
  16345.                   if test "X$x" = "X$found_dir"; then
  16346.                     haveit=yes
  16347.                     break
  16348.                   fi
  16349.                 done
  16350.                 if test -z "$haveit"; then
  16351.                   ltrpathdirs="$ltrpathdirs $found_dir"
  16352.                 fi
  16353.                                 if test "$acl_hardcode_direct" = yes; then
  16354.                                                       LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  16355.                 else
  16356.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  16357.                                                             LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  16358.                                                             haveit=
  16359.                     for x in $rpathdirs; do
  16360.                       if test "X$x" = "X$found_dir"; then
  16361.                         haveit=yes
  16362.                         break
  16363.                       fi
  16364.                     done
  16365.                     if test -z "$haveit"; then
  16366.                       rpathdirs="$rpathdirs $found_dir"
  16367.                     fi
  16368.                   else
  16369.                                                                                 haveit=
  16370.                     for x in $LDFLAGS $LIBRT; do
  16371.  
  16372.   acl_save_prefix="$prefix"
  16373.   prefix="$acl_final_prefix"
  16374.   acl_save_exec_prefix="$exec_prefix"
  16375.   exec_prefix="$acl_final_exec_prefix"
  16376.   eval x=\"$x\"
  16377.   exec_prefix="$acl_save_exec_prefix"
  16378.   prefix="$acl_save_prefix"
  16379.  
  16380.                       if test "X$x" = "X-L$found_dir"; then
  16381.                         haveit=yes
  16382.                         break
  16383.                       fi
  16384.                     done
  16385.                     if test -z "$haveit"; then
  16386.                       LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
  16387.                     fi
  16388.                     if test "$acl_hardcode_minus_L" != no; then
  16389.                                                                                         LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  16390.                     else
  16391.                                                                                                                                                                                 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
  16392.                     fi
  16393.                   fi
  16394.                 fi
  16395.               fi
  16396.             else
  16397.               if test "X$found_a" != "X"; then
  16398.                                 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
  16399.               else
  16400.                                                 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
  16401.               fi
  16402.             fi
  16403.                         additional_includedir=
  16404.             case "$found_dir" in
  16405.               */$acl_libdirstem | */$acl_libdirstem/)
  16406.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  16407.                 if test "$name" = 'rt'; then
  16408.                   LIBRT_PREFIX="$basedir"
  16409.                 fi
  16410.                 additional_includedir="$basedir/include"
  16411.                 ;;
  16412.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  16413.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  16414.                 if test "$name" = 'rt'; then
  16415.                   LIBRT_PREFIX="$basedir"
  16416.                 fi
  16417.                 additional_includedir="$basedir/include"
  16418.                 ;;
  16419.             esac
  16420.             if test "X$additional_includedir" != "X"; then
  16421.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  16422.                 haveit=
  16423.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  16424.                   if test -n "$GCC"; then
  16425.                     case $host_os in
  16426.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16427.                     esac
  16428.                   fi
  16429.                 fi
  16430.                 if test -z "$haveit"; then
  16431.                   for x in $CPPFLAGS $INCRT; do
  16432.  
  16433.   acl_save_prefix="$prefix"
  16434.   prefix="$acl_final_prefix"
  16435.   acl_save_exec_prefix="$exec_prefix"
  16436.   exec_prefix="$acl_final_exec_prefix"
  16437.   eval x=\"$x\"
  16438.   exec_prefix="$acl_save_exec_prefix"
  16439.   prefix="$acl_save_prefix"
  16440.  
  16441.                     if test "X$x" = "X-I$additional_includedir"; then
  16442.                       haveit=yes
  16443.                       break
  16444.                     fi
  16445.                   done
  16446.                   if test -z "$haveit"; then
  16447.                     if test -d "$additional_includedir"; then
  16448.                                             INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
  16449.                     fi
  16450.                   fi
  16451.                 fi
  16452.               fi
  16453.             fi
  16454.                         if test -n "$found_la"; then
  16455.                                                         save_libdir="$libdir"
  16456.               case "$found_la" in
  16457.                 */* | *\\*) . "$found_la" ;;
  16458.                 *) . "./$found_la" ;;
  16459.               esac
  16460.               libdir="$save_libdir"
  16461.                             for dep in $dependency_libs; do
  16462.                 case "$dep" in
  16463.                   -L*)
  16464.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  16465.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  16466.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  16467.                       haveit=
  16468.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  16469.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  16470.                         if test -n "$GCC"; then
  16471.                           case $host_os in
  16472.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16473.                           esac
  16474.                         fi
  16475.                       fi
  16476.                       if test -z "$haveit"; then
  16477.                         haveit=
  16478.                         for x in $LDFLAGS $LIBRT; do
  16479.  
  16480.   acl_save_prefix="$prefix"
  16481.   prefix="$acl_final_prefix"
  16482.   acl_save_exec_prefix="$exec_prefix"
  16483.   exec_prefix="$acl_final_exec_prefix"
  16484.   eval x=\"$x\"
  16485.   exec_prefix="$acl_save_exec_prefix"
  16486.   prefix="$acl_save_prefix"
  16487.  
  16488.                           if test "X$x" = "X-L$additional_libdir"; then
  16489.                             haveit=yes
  16490.                             break
  16491.                           fi
  16492.                         done
  16493.                         if test -z "$haveit"; then
  16494.                           if test -d "$additional_libdir"; then
  16495.                                                         LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
  16496.                           fi
  16497.                         fi
  16498.                         haveit=
  16499.                         for x in $LDFLAGS $LTLIBRT; do
  16500.  
  16501.   acl_save_prefix="$prefix"
  16502.   prefix="$acl_final_prefix"
  16503.   acl_save_exec_prefix="$exec_prefix"
  16504.   exec_prefix="$acl_final_exec_prefix"
  16505.   eval x=\"$x\"
  16506.   exec_prefix="$acl_save_exec_prefix"
  16507.   prefix="$acl_save_prefix"
  16508.  
  16509.                           if test "X$x" = "X-L$additional_libdir"; then
  16510.                             haveit=yes
  16511.                             break
  16512.                           fi
  16513.                         done
  16514.                         if test -z "$haveit"; then
  16515.                           if test -d "$additional_libdir"; then
  16516.                                                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
  16517.                           fi
  16518.                         fi
  16519.                       fi
  16520.                     fi
  16521.                     ;;
  16522.                   -R*)
  16523.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  16524.                     if test "$enable_rpath" != no; then
  16525.                                                                   haveit=
  16526.                       for x in $rpathdirs; do
  16527.                         if test "X$x" = "X$dir"; then
  16528.                           haveit=yes
  16529.                           break
  16530.                         fi
  16531.                       done
  16532.                       if test -z "$haveit"; then
  16533.                         rpathdirs="$rpathdirs $dir"
  16534.                       fi
  16535.                                                                   haveit=
  16536.                       for x in $ltrpathdirs; do
  16537.                         if test "X$x" = "X$dir"; then
  16538.                           haveit=yes
  16539.                           break
  16540.                         fi
  16541.                       done
  16542.                       if test -z "$haveit"; then
  16543.                         ltrpathdirs="$ltrpathdirs $dir"
  16544.                       fi
  16545.                     fi
  16546.                     ;;
  16547.                   -l*)
  16548.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16549.                     ;;
  16550.                   *.la)
  16551.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16552.                     ;;
  16553.                   *)
  16554.                                         LIBRT="${LIBRT}${LIBRT:+ }$dep"
  16555.                     LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
  16556.                     ;;
  16557.                 esac
  16558.               done
  16559.             fi
  16560.           else
  16561.                                                             LIBRT="${LIBRT}${LIBRT:+ }-l$name"
  16562.             LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
  16563.           fi
  16564.         fi
  16565.       fi
  16566.     done
  16567.   done
  16568.   if test "X$rpathdirs" != "X"; then
  16569.     if test -n "$acl_hardcode_libdir_separator"; then
  16570.                         alldirs=
  16571.       for found_dir in $rpathdirs; do
  16572.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  16573.       done
  16574.             acl_save_libdir="$libdir"
  16575.       libdir="$alldirs"
  16576.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16577.       libdir="$acl_save_libdir"
  16578.       LIBRT="${LIBRT}${LIBRT:+ }$flag"
  16579.     else
  16580.             for found_dir in $rpathdirs; do
  16581.         acl_save_libdir="$libdir"
  16582.         libdir="$found_dir"
  16583.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16584.         libdir="$acl_save_libdir"
  16585.         LIBRT="${LIBRT}${LIBRT:+ }$flag"
  16586.       done
  16587.     fi
  16588.   fi
  16589.   if test "X$ltrpathdirs" != "X"; then
  16590.             for found_dir in $ltrpathdirs; do
  16591.       LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
  16592.     done
  16593.   fi
  16594.  
  16595.  
  16596.  
  16597.  
  16598.  
  16599.  
  16600.  
  16601.         ac_save_CPPFLAGS="$CPPFLAGS"
  16602.  
  16603.   for element in $INCRT; do
  16604.     haveit=
  16605.     for x in $CPPFLAGS; do
  16606.  
  16607.   acl_save_prefix="$prefix"
  16608.   prefix="$acl_final_prefix"
  16609.   acl_save_exec_prefix="$exec_prefix"
  16610.   exec_prefix="$acl_final_exec_prefix"
  16611.   eval x=\"$x\"
  16612.   exec_prefix="$acl_save_exec_prefix"
  16613.   prefix="$acl_save_prefix"
  16614.  
  16615.       if test "X$x" = "X$element"; then
  16616.         haveit=yes
  16617.         break
  16618.       fi
  16619.     done
  16620.     if test -z "$haveit"; then
  16621.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16622.     fi
  16623.   done
  16624.  
  16625.  
  16626.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
  16627. $as_echo_n "checking for librt... " >&6; }
  16628. if ${ac_cv_librt+:} false; then :
  16629.   $as_echo_n "(cached) " >&6
  16630. else
  16631.  
  16632.     ac_save_LIBS="$LIBS"
  16633.                                 case " $LIBRT" in
  16634.       *" -l"*) LIBS="$LIBS $LIBRT" ;;
  16635.       *)       LIBS="$LIBRT $LIBS" ;;
  16636.     esac
  16637.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16638. /* end confdefs.h.  */
  16639. #include <time.h>
  16640. int
  16641. main ()
  16642. {
  16643. nanosleep (0, 0);
  16644.   ;
  16645.   return 0;
  16646. }
  16647. _ACEOF
  16648. if ac_fn_c_try_link "$LINENO"; then :
  16649.   ac_cv_librt=yes
  16650. else
  16651.   ac_cv_librt='no'
  16652. fi
  16653. rm -f core conftest.err conftest.$ac_objext \
  16654.     conftest$ac_exeext conftest.$ac_ext
  16655.     LIBS="$ac_save_LIBS"
  16656.  
  16657. fi
  16658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
  16659. $as_echo "$ac_cv_librt" >&6; }
  16660.   if test "$ac_cv_librt" = yes; then
  16661.     HAVE_LIBRT=yes
  16662.  
  16663. $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
  16664.  
  16665.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
  16666. $as_echo_n "checking how to link with librt... " >&6; }
  16667.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
  16668. $as_echo "$LIBRT" >&6; }
  16669.   else
  16670.     HAVE_LIBRT=no
  16671.             CPPFLAGS="$ac_save_CPPFLAGS"
  16672.     LIBRT=
  16673.     LTLIBRT=
  16674.     LIBRT_PREFIX=
  16675.   fi
  16676.  
  16677.  
  16678.  
  16679.  
  16680.  
  16681.  
  16682.  
  16683.   gnutls_needs_librt=yes
  16684. fi
  16685.  
  16686. if test "$ac_cv_func_inet_pton" != "yes";then
  16687.  
  16688.  
  16689.  
  16690.  
  16691.  
  16692.  
  16693.  
  16694.  
  16695.  
  16696.  
  16697.  
  16698.  
  16699.  
  16700.     use_additional=yes
  16701.  
  16702.   acl_save_prefix="$prefix"
  16703.   prefix="$acl_final_prefix"
  16704.   acl_save_exec_prefix="$exec_prefix"
  16705.   exec_prefix="$acl_final_exec_prefix"
  16706.  
  16707.     eval additional_includedir=\"$includedir\"
  16708.     eval additional_libdir=\"$libdir\"
  16709.  
  16710.   exec_prefix="$acl_save_exec_prefix"
  16711.   prefix="$acl_save_prefix"
  16712.  
  16713.  
  16714. # Check whether --with-libnsl-prefix was given.
  16715. if test "${with_libnsl_prefix+set}" = set; then :
  16716.   withval=$with_libnsl_prefix;
  16717.     if test "X$withval" = "Xno"; then
  16718.       use_additional=no
  16719.     else
  16720.       if test "X$withval" = "X"; then
  16721.  
  16722.   acl_save_prefix="$prefix"
  16723.   prefix="$acl_final_prefix"
  16724.   acl_save_exec_prefix="$exec_prefix"
  16725.   exec_prefix="$acl_final_exec_prefix"
  16726.  
  16727.           eval additional_includedir=\"$includedir\"
  16728.           eval additional_libdir=\"$libdir\"
  16729.  
  16730.   exec_prefix="$acl_save_exec_prefix"
  16731.   prefix="$acl_save_prefix"
  16732.  
  16733.       else
  16734.         additional_includedir="$withval/include"
  16735.         additional_libdir="$withval/$acl_libdirstem"
  16736.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  16737.            && ! test -d "$withval/$acl_libdirstem"; then
  16738.           additional_libdir="$withval/$acl_libdirstem2"
  16739.         fi
  16740.       fi
  16741.     fi
  16742.  
  16743. fi
  16744.  
  16745.       LIBNSL=
  16746.   LTLIBNSL=
  16747.   INCNSL=
  16748.   LIBNSL_PREFIX=
  16749.       HAVE_LIBNSL=
  16750.   rpathdirs=
  16751.   ltrpathdirs=
  16752.   names_already_handled=
  16753.   names_next_round='nsl '
  16754.   while test -n "$names_next_round"; do
  16755.     names_this_round="$names_next_round"
  16756.     names_next_round=
  16757.     for name in $names_this_round; do
  16758.       already_handled=
  16759.       for n in $names_already_handled; do
  16760.         if test "$n" = "$name"; then
  16761.           already_handled=yes
  16762.           break
  16763.         fi
  16764.       done
  16765.       if test -z "$already_handled"; then
  16766.         names_already_handled="$names_already_handled $name"
  16767.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  16768.         eval value=\"\$HAVE_LIB$uppername\"
  16769.         if test -n "$value"; then
  16770.           if test "$value" = yes; then
  16771.             eval value=\"\$LIB$uppername\"
  16772.             test -z "$value" || LIBNSL="${LIBNSL}${LIBNSL:+ }$value"
  16773.             eval value=\"\$LTLIB$uppername\"
  16774.             test -z "$value" || LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }$value"
  16775.           else
  16776.                                     :
  16777.           fi
  16778.         else
  16779.                               found_dir=
  16780.           found_la=
  16781.           found_so=
  16782.           found_a=
  16783.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  16784.           if test -n "$acl_shlibext"; then
  16785.             shrext=".$acl_shlibext"             # typically: shrext=.so
  16786.           else
  16787.             shrext=
  16788.           fi
  16789.           if test $use_additional = yes; then
  16790.             dir="$additional_libdir"
  16791.                                     if test -n "$acl_shlibext"; then
  16792.               if test -f "$dir/$libname$shrext"; then
  16793.                 found_dir="$dir"
  16794.                 found_so="$dir/$libname$shrext"
  16795.               else
  16796.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16797.                   ver=`(cd "$dir" && \
  16798.                         for f in "$libname$shrext".*; do echo "$f"; done \
  16799.                         | sed -e "s,^$libname$shrext\\\\.,," \
  16800.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16801.                         | sed 1q ) 2>/dev/null`
  16802.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16803.                     found_dir="$dir"
  16804.                     found_so="$dir/$libname$shrext.$ver"
  16805.                   fi
  16806.                 else
  16807.                   eval library_names=\"$acl_library_names_spec\"
  16808.                   for f in $library_names; do
  16809.                     if test -f "$dir/$f"; then
  16810.                       found_dir="$dir"
  16811.                       found_so="$dir/$f"
  16812.                       break
  16813.                     fi
  16814.                   done
  16815.                 fi
  16816.               fi
  16817.             fi
  16818.                         if test "X$found_dir" = "X"; then
  16819.               if test -f "$dir/$libname.$acl_libext"; then
  16820.                 found_dir="$dir"
  16821.                 found_a="$dir/$libname.$acl_libext"
  16822.               fi
  16823.             fi
  16824.             if test "X$found_dir" != "X"; then
  16825.               if test -f "$dir/$libname.la"; then
  16826.                 found_la="$dir/$libname.la"
  16827.               fi
  16828.             fi
  16829.           fi
  16830.           if test "X$found_dir" = "X"; then
  16831.             for x in $LDFLAGS $LTLIBNSL; do
  16832.  
  16833.   acl_save_prefix="$prefix"
  16834.   prefix="$acl_final_prefix"
  16835.   acl_save_exec_prefix="$exec_prefix"
  16836.   exec_prefix="$acl_final_exec_prefix"
  16837.   eval x=\"$x\"
  16838.   exec_prefix="$acl_save_exec_prefix"
  16839.   prefix="$acl_save_prefix"
  16840.  
  16841.               case "$x" in
  16842.                 -L*)
  16843.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  16844.                                     if test -n "$acl_shlibext"; then
  16845.                     if test -f "$dir/$libname$shrext"; then
  16846.                       found_dir="$dir"
  16847.                       found_so="$dir/$libname$shrext"
  16848.                     else
  16849.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16850.                         ver=`(cd "$dir" && \
  16851.                               for f in "$libname$shrext".*; do echo "$f"; done \
  16852.                               | sed -e "s,^$libname$shrext\\\\.,," \
  16853.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16854.                               | sed 1q ) 2>/dev/null`
  16855.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16856.                           found_dir="$dir"
  16857.                           found_so="$dir/$libname$shrext.$ver"
  16858.                         fi
  16859.                       else
  16860.                         eval library_names=\"$acl_library_names_spec\"
  16861.                         for f in $library_names; do
  16862.                           if test -f "$dir/$f"; then
  16863.                             found_dir="$dir"
  16864.                             found_so="$dir/$f"
  16865.                             break
  16866.                           fi
  16867.                         done
  16868.                       fi
  16869.                     fi
  16870.                   fi
  16871.                                     if test "X$found_dir" = "X"; then
  16872.                     if test -f "$dir/$libname.$acl_libext"; then
  16873.                       found_dir="$dir"
  16874.                       found_a="$dir/$libname.$acl_libext"
  16875.                     fi
  16876.                   fi
  16877.                   if test "X$found_dir" != "X"; then
  16878.                     if test -f "$dir/$libname.la"; then
  16879.                       found_la="$dir/$libname.la"
  16880.                     fi
  16881.                   fi
  16882.                   ;;
  16883.               esac
  16884.               if test "X$found_dir" != "X"; then
  16885.                 break
  16886.               fi
  16887.             done
  16888.           fi
  16889.           if test "X$found_dir" != "X"; then
  16890.                         LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-L$found_dir -l$name"
  16891.             if test "X$found_so" != "X"; then
  16892.                                                         if test "$enable_rpath" = no \
  16893.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  16894.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  16895.                                 LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
  16896.               else
  16897.                                                                                 haveit=
  16898.                 for x in $ltrpathdirs; do
  16899.                   if test "X$x" = "X$found_dir"; then
  16900.                     haveit=yes
  16901.                     break
  16902.                   fi
  16903.                 done
  16904.                 if test -z "$haveit"; then
  16905.                   ltrpathdirs="$ltrpathdirs $found_dir"
  16906.                 fi
  16907.                                 if test "$acl_hardcode_direct" = yes; then
  16908.                                                       LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
  16909.                 else
  16910.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  16911.                                                             LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
  16912.                                                             haveit=
  16913.                     for x in $rpathdirs; do
  16914.                       if test "X$x" = "X$found_dir"; then
  16915.                         haveit=yes
  16916.                         break
  16917.                       fi
  16918.                     done
  16919.                     if test -z "$haveit"; then
  16920.                       rpathdirs="$rpathdirs $found_dir"
  16921.                     fi
  16922.                   else
  16923.                                                                                 haveit=
  16924.                     for x in $LDFLAGS $LIBNSL; do
  16925.  
  16926.   acl_save_prefix="$prefix"
  16927.   prefix="$acl_final_prefix"
  16928.   acl_save_exec_prefix="$exec_prefix"
  16929.   exec_prefix="$acl_final_exec_prefix"
  16930.   eval x=\"$x\"
  16931.   exec_prefix="$acl_save_exec_prefix"
  16932.   prefix="$acl_save_prefix"
  16933.  
  16934.                       if test "X$x" = "X-L$found_dir"; then
  16935.                         haveit=yes
  16936.                         break
  16937.                       fi
  16938.                     done
  16939.                     if test -z "$haveit"; then
  16940.                       LIBNSL="${LIBNSL}${LIBNSL:+ }-L$found_dir"
  16941.                     fi
  16942.                     if test "$acl_hardcode_minus_L" != no; then
  16943.                                                                                         LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
  16944.                     else
  16945.                                                                                                                                                                                 LIBNSL="${LIBNSL}${LIBNSL:+ }-l$name"
  16946.                     fi
  16947.                   fi
  16948.                 fi
  16949.               fi
  16950.             else
  16951.               if test "X$found_a" != "X"; then
  16952.                                 LIBNSL="${LIBNSL}${LIBNSL:+ }$found_a"
  16953.               else
  16954.                                                 LIBNSL="${LIBNSL}${LIBNSL:+ }-L$found_dir -l$name"
  16955.               fi
  16956.             fi
  16957.                         additional_includedir=
  16958.             case "$found_dir" in
  16959.               */$acl_libdirstem | */$acl_libdirstem/)
  16960.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  16961.                 if test "$name" = 'nsl'; then
  16962.                   LIBNSL_PREFIX="$basedir"
  16963.                 fi
  16964.                 additional_includedir="$basedir/include"
  16965.                 ;;
  16966.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  16967.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  16968.                 if test "$name" = 'nsl'; then
  16969.                   LIBNSL_PREFIX="$basedir"
  16970.                 fi
  16971.                 additional_includedir="$basedir/include"
  16972.                 ;;
  16973.             esac
  16974.             if test "X$additional_includedir" != "X"; then
  16975.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  16976.                 haveit=
  16977.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  16978.                   if test -n "$GCC"; then
  16979.                     case $host_os in
  16980.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16981.                     esac
  16982.                   fi
  16983.                 fi
  16984.                 if test -z "$haveit"; then
  16985.                   for x in $CPPFLAGS $INCNSL; do
  16986.  
  16987.   acl_save_prefix="$prefix"
  16988.   prefix="$acl_final_prefix"
  16989.   acl_save_exec_prefix="$exec_prefix"
  16990.   exec_prefix="$acl_final_exec_prefix"
  16991.   eval x=\"$x\"
  16992.   exec_prefix="$acl_save_exec_prefix"
  16993.   prefix="$acl_save_prefix"
  16994.  
  16995.                     if test "X$x" = "X-I$additional_includedir"; then
  16996.                       haveit=yes
  16997.                       break
  16998.                     fi
  16999.                   done
  17000.                   if test -z "$haveit"; then
  17001.                     if test -d "$additional_includedir"; then
  17002.                                             INCNSL="${INCNSL}${INCNSL:+ }-I$additional_includedir"
  17003.                     fi
  17004.                   fi
  17005.                 fi
  17006.               fi
  17007.             fi
  17008.                         if test -n "$found_la"; then
  17009.                                                         save_libdir="$libdir"
  17010.               case "$found_la" in
  17011.                 */* | *\\*) . "$found_la" ;;
  17012.                 *) . "./$found_la" ;;
  17013.               esac
  17014.               libdir="$save_libdir"
  17015.                             for dep in $dependency_libs; do
  17016.                 case "$dep" in
  17017.                   -L*)
  17018.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17019.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  17020.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  17021.                       haveit=
  17022.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  17023.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  17024.                         if test -n "$GCC"; then
  17025.                           case $host_os in
  17026.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17027.                           esac
  17028.                         fi
  17029.                       fi
  17030.                       if test -z "$haveit"; then
  17031.                         haveit=
  17032.                         for x in $LDFLAGS $LIBNSL; do
  17033.  
  17034.   acl_save_prefix="$prefix"
  17035.   prefix="$acl_final_prefix"
  17036.   acl_save_exec_prefix="$exec_prefix"
  17037.   exec_prefix="$acl_final_exec_prefix"
  17038.   eval x=\"$x\"
  17039.   exec_prefix="$acl_save_exec_prefix"
  17040.   prefix="$acl_save_prefix"
  17041.  
  17042.                           if test "X$x" = "X-L$additional_libdir"; then
  17043.                             haveit=yes
  17044.                             break
  17045.                           fi
  17046.                         done
  17047.                         if test -z "$haveit"; then
  17048.                           if test -d "$additional_libdir"; then
  17049.                                                         LIBNSL="${LIBNSL}${LIBNSL:+ }-L$additional_libdir"
  17050.                           fi
  17051.                         fi
  17052.                         haveit=
  17053.                         for x in $LDFLAGS $LTLIBNSL; do
  17054.  
  17055.   acl_save_prefix="$prefix"
  17056.   prefix="$acl_final_prefix"
  17057.   acl_save_exec_prefix="$exec_prefix"
  17058.   exec_prefix="$acl_final_exec_prefix"
  17059.   eval x=\"$x\"
  17060.   exec_prefix="$acl_save_exec_prefix"
  17061.   prefix="$acl_save_prefix"
  17062.  
  17063.                           if test "X$x" = "X-L$additional_libdir"; then
  17064.                             haveit=yes
  17065.                             break
  17066.                           fi
  17067.                         done
  17068.                         if test -z "$haveit"; then
  17069.                           if test -d "$additional_libdir"; then
  17070.                                                         LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-L$additional_libdir"
  17071.                           fi
  17072.                         fi
  17073.                       fi
  17074.                     fi
  17075.                     ;;
  17076.                   -R*)
  17077.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17078.                     if test "$enable_rpath" != no; then
  17079.                                                                   haveit=
  17080.                       for x in $rpathdirs; do
  17081.                         if test "X$x" = "X$dir"; then
  17082.                           haveit=yes
  17083.                           break
  17084.                         fi
  17085.                       done
  17086.                       if test -z "$haveit"; then
  17087.                         rpathdirs="$rpathdirs $dir"
  17088.                       fi
  17089.                                                                   haveit=
  17090.                       for x in $ltrpathdirs; do
  17091.                         if test "X$x" = "X$dir"; then
  17092.                           haveit=yes
  17093.                           break
  17094.                         fi
  17095.                       done
  17096.                       if test -z "$haveit"; then
  17097.                         ltrpathdirs="$ltrpathdirs $dir"
  17098.                       fi
  17099.                     fi
  17100.                     ;;
  17101.                   -l*)
  17102.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17103.                     ;;
  17104.                   *.la)
  17105.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17106.                     ;;
  17107.                   *)
  17108.                                         LIBNSL="${LIBNSL}${LIBNSL:+ }$dep"
  17109.                     LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }$dep"
  17110.                     ;;
  17111.                 esac
  17112.               done
  17113.             fi
  17114.           else
  17115.                                                             LIBNSL="${LIBNSL}${LIBNSL:+ }-l$name"
  17116.             LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-l$name"
  17117.           fi
  17118.         fi
  17119.       fi
  17120.     done
  17121.   done
  17122.   if test "X$rpathdirs" != "X"; then
  17123.     if test -n "$acl_hardcode_libdir_separator"; then
  17124.                         alldirs=
  17125.       for found_dir in $rpathdirs; do
  17126.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17127.       done
  17128.             acl_save_libdir="$libdir"
  17129.       libdir="$alldirs"
  17130.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17131.       libdir="$acl_save_libdir"
  17132.       LIBNSL="${LIBNSL}${LIBNSL:+ }$flag"
  17133.     else
  17134.             for found_dir in $rpathdirs; do
  17135.         acl_save_libdir="$libdir"
  17136.         libdir="$found_dir"
  17137.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17138.         libdir="$acl_save_libdir"
  17139.         LIBNSL="${LIBNSL}${LIBNSL:+ }$flag"
  17140.       done
  17141.     fi
  17142.   fi
  17143.   if test "X$ltrpathdirs" != "X"; then
  17144.             for found_dir in $ltrpathdirs; do
  17145.       LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-R$found_dir"
  17146.     done
  17147.   fi
  17148.  
  17149.  
  17150.  
  17151.  
  17152.  
  17153.  
  17154.  
  17155.         ac_save_CPPFLAGS="$CPPFLAGS"
  17156.  
  17157.   for element in $INCNSL; do
  17158.     haveit=
  17159.     for x in $CPPFLAGS; do
  17160.  
  17161.   acl_save_prefix="$prefix"
  17162.   prefix="$acl_final_prefix"
  17163.   acl_save_exec_prefix="$exec_prefix"
  17164.   exec_prefix="$acl_final_exec_prefix"
  17165.   eval x=\"$x\"
  17166.   exec_prefix="$acl_save_exec_prefix"
  17167.   prefix="$acl_save_prefix"
  17168.  
  17169.       if test "X$x" = "X$element"; then
  17170.         haveit=yes
  17171.         break
  17172.       fi
  17173.     done
  17174.     if test -z "$haveit"; then
  17175.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17176.     fi
  17177.   done
  17178.  
  17179.  
  17180.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
  17181. $as_echo_n "checking for libnsl... " >&6; }
  17182. if ${ac_cv_libnsl+:} false; then :
  17183.   $as_echo_n "(cached) " >&6
  17184. else
  17185.  
  17186.     ac_save_LIBS="$LIBS"
  17187.                                 case " $LIBNSL" in
  17188.       *" -l"*) LIBS="$LIBS $LIBNSL" ;;
  17189.       *)       LIBS="$LIBNSL $LIBS" ;;
  17190.     esac
  17191.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17192. /* end confdefs.h.  */
  17193. #include <arpa/inet.h>
  17194. int
  17195. main ()
  17196. {
  17197. inet_pton(0,0,0);
  17198.   ;
  17199.   return 0;
  17200. }
  17201. _ACEOF
  17202. if ac_fn_c_try_link "$LINENO"; then :
  17203.   ac_cv_libnsl=yes
  17204. else
  17205.   ac_cv_libnsl='no'
  17206. fi
  17207. rm -f core conftest.err conftest.$ac_objext \
  17208.     conftest$ac_exeext conftest.$ac_ext
  17209.     LIBS="$ac_save_LIBS"
  17210.  
  17211. fi
  17212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnsl" >&5
  17213. $as_echo "$ac_cv_libnsl" >&6; }
  17214.   if test "$ac_cv_libnsl" = yes; then
  17215.     HAVE_LIBNSL=yes
  17216.  
  17217. $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
  17218.  
  17219.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnsl" >&5
  17220. $as_echo_n "checking how to link with libnsl... " >&6; }
  17221.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNSL" >&5
  17222. $as_echo "$LIBNSL" >&6; }
  17223.   else
  17224.     HAVE_LIBNSL=no
  17225.             CPPFLAGS="$ac_save_CPPFLAGS"
  17226.     LIBNSL=
  17227.     LTLIBNSL=
  17228.     LIBNSL_PREFIX=
  17229.   fi
  17230.  
  17231.  
  17232.  
  17233.  
  17234.  
  17235.  
  17236.  
  17237. fi
  17238.  
  17239. if test "$ac_cv_func_clock_gettime" != "yes";then
  17240.  
  17241.  
  17242.  
  17243.  
  17244.  
  17245.  
  17246.  
  17247.  
  17248.  
  17249.  
  17250.  
  17251.  
  17252.  
  17253.     use_additional=yes
  17254.  
  17255.   acl_save_prefix="$prefix"
  17256.   prefix="$acl_final_prefix"
  17257.   acl_save_exec_prefix="$exec_prefix"
  17258.   exec_prefix="$acl_final_exec_prefix"
  17259.  
  17260.     eval additional_includedir=\"$includedir\"
  17261.     eval additional_libdir=\"$libdir\"
  17262.  
  17263.   exec_prefix="$acl_save_exec_prefix"
  17264.   prefix="$acl_save_prefix"
  17265.  
  17266.  
  17267. # Check whether --with-librt-prefix was given.
  17268. if test "${with_librt_prefix+set}" = set; then :
  17269.   withval=$with_librt_prefix;
  17270.     if test "X$withval" = "Xno"; then
  17271.       use_additional=no
  17272.     else
  17273.       if test "X$withval" = "X"; then
  17274.  
  17275.   acl_save_prefix="$prefix"
  17276.   prefix="$acl_final_prefix"
  17277.   acl_save_exec_prefix="$exec_prefix"
  17278.   exec_prefix="$acl_final_exec_prefix"
  17279.  
  17280.           eval additional_includedir=\"$includedir\"
  17281.           eval additional_libdir=\"$libdir\"
  17282.  
  17283.   exec_prefix="$acl_save_exec_prefix"
  17284.   prefix="$acl_save_prefix"
  17285.  
  17286.       else
  17287.         additional_includedir="$withval/include"
  17288.         additional_libdir="$withval/$acl_libdirstem"
  17289.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  17290.            && ! test -d "$withval/$acl_libdirstem"; then
  17291.           additional_libdir="$withval/$acl_libdirstem2"
  17292.         fi
  17293.       fi
  17294.     fi
  17295.  
  17296. fi
  17297.  
  17298.       LIBRT=
  17299.   LTLIBRT=
  17300.   INCRT=
  17301.   LIBRT_PREFIX=
  17302.       HAVE_LIBRT=
  17303.   rpathdirs=
  17304.   ltrpathdirs=
  17305.   names_already_handled=
  17306.   names_next_round='rt '
  17307.   while test -n "$names_next_round"; do
  17308.     names_this_round="$names_next_round"
  17309.     names_next_round=
  17310.     for name in $names_this_round; do
  17311.       already_handled=
  17312.       for n in $names_already_handled; do
  17313.         if test "$n" = "$name"; then
  17314.           already_handled=yes
  17315.           break
  17316.         fi
  17317.       done
  17318.       if test -z "$already_handled"; then
  17319.         names_already_handled="$names_already_handled $name"
  17320.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  17321.         eval value=\"\$HAVE_LIB$uppername\"
  17322.         if test -n "$value"; then
  17323.           if test "$value" = yes; then
  17324.             eval value=\"\$LIB$uppername\"
  17325.             test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
  17326.             eval value=\"\$LTLIB$uppername\"
  17327.             test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
  17328.           else
  17329.                                     :
  17330.           fi
  17331.         else
  17332.                               found_dir=
  17333.           found_la=
  17334.           found_so=
  17335.           found_a=
  17336.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  17337.           if test -n "$acl_shlibext"; then
  17338.             shrext=".$acl_shlibext"             # typically: shrext=.so
  17339.           else
  17340.             shrext=
  17341.           fi
  17342.           if test $use_additional = yes; then
  17343.             dir="$additional_libdir"
  17344.                                     if test -n "$acl_shlibext"; then
  17345.               if test -f "$dir/$libname$shrext"; then
  17346.                 found_dir="$dir"
  17347.                 found_so="$dir/$libname$shrext"
  17348.               else
  17349.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17350.                   ver=`(cd "$dir" && \
  17351.                         for f in "$libname$shrext".*; do echo "$f"; done \
  17352.                         | sed -e "s,^$libname$shrext\\\\.,," \
  17353.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17354.                         | sed 1q ) 2>/dev/null`
  17355.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17356.                     found_dir="$dir"
  17357.                     found_so="$dir/$libname$shrext.$ver"
  17358.                   fi
  17359.                 else
  17360.                   eval library_names=\"$acl_library_names_spec\"
  17361.                   for f in $library_names; do
  17362.                     if test -f "$dir/$f"; then
  17363.                       found_dir="$dir"
  17364.                       found_so="$dir/$f"
  17365.                       break
  17366.                     fi
  17367.                   done
  17368.                 fi
  17369.               fi
  17370.             fi
  17371.                         if test "X$found_dir" = "X"; then
  17372.               if test -f "$dir/$libname.$acl_libext"; then
  17373.                 found_dir="$dir"
  17374.                 found_a="$dir/$libname.$acl_libext"
  17375.               fi
  17376.             fi
  17377.             if test "X$found_dir" != "X"; then
  17378.               if test -f "$dir/$libname.la"; then
  17379.                 found_la="$dir/$libname.la"
  17380.               fi
  17381.             fi
  17382.           fi
  17383.           if test "X$found_dir" = "X"; then
  17384.             for x in $LDFLAGS $LTLIBRT; do
  17385.  
  17386.   acl_save_prefix="$prefix"
  17387.   prefix="$acl_final_prefix"
  17388.   acl_save_exec_prefix="$exec_prefix"
  17389.   exec_prefix="$acl_final_exec_prefix"
  17390.   eval x=\"$x\"
  17391.   exec_prefix="$acl_save_exec_prefix"
  17392.   prefix="$acl_save_prefix"
  17393.  
  17394.               case "$x" in
  17395.                 -L*)
  17396.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  17397.                                     if test -n "$acl_shlibext"; then
  17398.                     if test -f "$dir/$libname$shrext"; then
  17399.                       found_dir="$dir"
  17400.                       found_so="$dir/$libname$shrext"
  17401.                     else
  17402.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17403.                         ver=`(cd "$dir" && \
  17404.                               for f in "$libname$shrext".*; do echo "$f"; done \
  17405.                               | sed -e "s,^$libname$shrext\\\\.,," \
  17406.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17407.                               | sed 1q ) 2>/dev/null`
  17408.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17409.                           found_dir="$dir"
  17410.                           found_so="$dir/$libname$shrext.$ver"
  17411.                         fi
  17412.                       else
  17413.                         eval library_names=\"$acl_library_names_spec\"
  17414.                         for f in $library_names; do
  17415.                           if test -f "$dir/$f"; then
  17416.                             found_dir="$dir"
  17417.                             found_so="$dir/$f"
  17418.                             break
  17419.                           fi
  17420.                         done
  17421.                       fi
  17422.                     fi
  17423.                   fi
  17424.                                     if test "X$found_dir" = "X"; then
  17425.                     if test -f "$dir/$libname.$acl_libext"; then
  17426.                       found_dir="$dir"
  17427.                       found_a="$dir/$libname.$acl_libext"
  17428.                     fi
  17429.                   fi
  17430.                   if test "X$found_dir" != "X"; then
  17431.                     if test -f "$dir/$libname.la"; then
  17432.                       found_la="$dir/$libname.la"
  17433.                     fi
  17434.                   fi
  17435.                   ;;
  17436.               esac
  17437.               if test "X$found_dir" != "X"; then
  17438.                 break
  17439.               fi
  17440.             done
  17441.           fi
  17442.           if test "X$found_dir" != "X"; then
  17443.                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
  17444.             if test "X$found_so" != "X"; then
  17445.                                                         if test "$enable_rpath" = no \
  17446.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  17447.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  17448.                                 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  17449.               else
  17450.                                                                                 haveit=
  17451.                 for x in $ltrpathdirs; do
  17452.                   if test "X$x" = "X$found_dir"; then
  17453.                     haveit=yes
  17454.                     break
  17455.                   fi
  17456.                 done
  17457.                 if test -z "$haveit"; then
  17458.                   ltrpathdirs="$ltrpathdirs $found_dir"
  17459.                 fi
  17460.                                 if test "$acl_hardcode_direct" = yes; then
  17461.                                                       LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  17462.                 else
  17463.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  17464.                                                             LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  17465.                                                             haveit=
  17466.                     for x in $rpathdirs; do
  17467.                       if test "X$x" = "X$found_dir"; then
  17468.                         haveit=yes
  17469.                         break
  17470.                       fi
  17471.                     done
  17472.                     if test -z "$haveit"; then
  17473.                       rpathdirs="$rpathdirs $found_dir"
  17474.                     fi
  17475.                   else
  17476.                                                                                 haveit=
  17477.                     for x in $LDFLAGS $LIBRT; do
  17478.  
  17479.   acl_save_prefix="$prefix"
  17480.   prefix="$acl_final_prefix"
  17481.   acl_save_exec_prefix="$exec_prefix"
  17482.   exec_prefix="$acl_final_exec_prefix"
  17483.   eval x=\"$x\"
  17484.   exec_prefix="$acl_save_exec_prefix"
  17485.   prefix="$acl_save_prefix"
  17486.  
  17487.                       if test "X$x" = "X-L$found_dir"; then
  17488.                         haveit=yes
  17489.                         break
  17490.                       fi
  17491.                     done
  17492.                     if test -z "$haveit"; then
  17493.                       LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
  17494.                     fi
  17495.                     if test "$acl_hardcode_minus_L" != no; then
  17496.                                                                                         LIBRT="${LIBRT}${LIBRT:+ }$found_so"
  17497.                     else
  17498.                                                                                                                                                                                 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
  17499.                     fi
  17500.                   fi
  17501.                 fi
  17502.               fi
  17503.             else
  17504.               if test "X$found_a" != "X"; then
  17505.                                 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
  17506.               else
  17507.                                                 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
  17508.               fi
  17509.             fi
  17510.                         additional_includedir=
  17511.             case "$found_dir" in
  17512.               */$acl_libdirstem | */$acl_libdirstem/)
  17513.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  17514.                 if test "$name" = 'rt'; then
  17515.                   LIBRT_PREFIX="$basedir"
  17516.                 fi
  17517.                 additional_includedir="$basedir/include"
  17518.                 ;;
  17519.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  17520.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  17521.                 if test "$name" = 'rt'; then
  17522.                   LIBRT_PREFIX="$basedir"
  17523.                 fi
  17524.                 additional_includedir="$basedir/include"
  17525.                 ;;
  17526.             esac
  17527.             if test "X$additional_includedir" != "X"; then
  17528.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  17529.                 haveit=
  17530.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  17531.                   if test -n "$GCC"; then
  17532.                     case $host_os in
  17533.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17534.                     esac
  17535.                   fi
  17536.                 fi
  17537.                 if test -z "$haveit"; then
  17538.                   for x in $CPPFLAGS $INCRT; do
  17539.  
  17540.   acl_save_prefix="$prefix"
  17541.   prefix="$acl_final_prefix"
  17542.   acl_save_exec_prefix="$exec_prefix"
  17543.   exec_prefix="$acl_final_exec_prefix"
  17544.   eval x=\"$x\"
  17545.   exec_prefix="$acl_save_exec_prefix"
  17546.   prefix="$acl_save_prefix"
  17547.  
  17548.                     if test "X$x" = "X-I$additional_includedir"; then
  17549.                       haveit=yes
  17550.                       break
  17551.                     fi
  17552.                   done
  17553.                   if test -z "$haveit"; then
  17554.                     if test -d "$additional_includedir"; then
  17555.                                             INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
  17556.                     fi
  17557.                   fi
  17558.                 fi
  17559.               fi
  17560.             fi
  17561.                         if test -n "$found_la"; then
  17562.                                                         save_libdir="$libdir"
  17563.               case "$found_la" in
  17564.                 */* | *\\*) . "$found_la" ;;
  17565.                 *) . "./$found_la" ;;
  17566.               esac
  17567.               libdir="$save_libdir"
  17568.                             for dep in $dependency_libs; do
  17569.                 case "$dep" in
  17570.                   -L*)
  17571.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17572.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  17573.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  17574.                       haveit=
  17575.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  17576.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  17577.                         if test -n "$GCC"; then
  17578.                           case $host_os in
  17579.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17580.                           esac
  17581.                         fi
  17582.                       fi
  17583.                       if test -z "$haveit"; then
  17584.                         haveit=
  17585.                         for x in $LDFLAGS $LIBRT; do
  17586.  
  17587.   acl_save_prefix="$prefix"
  17588.   prefix="$acl_final_prefix"
  17589.   acl_save_exec_prefix="$exec_prefix"
  17590.   exec_prefix="$acl_final_exec_prefix"
  17591.   eval x=\"$x\"
  17592.   exec_prefix="$acl_save_exec_prefix"
  17593.   prefix="$acl_save_prefix"
  17594.  
  17595.                           if test "X$x" = "X-L$additional_libdir"; then
  17596.                             haveit=yes
  17597.                             break
  17598.                           fi
  17599.                         done
  17600.                         if test -z "$haveit"; then
  17601.                           if test -d "$additional_libdir"; then
  17602.                                                         LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
  17603.                           fi
  17604.                         fi
  17605.                         haveit=
  17606.                         for x in $LDFLAGS $LTLIBRT; do
  17607.  
  17608.   acl_save_prefix="$prefix"
  17609.   prefix="$acl_final_prefix"
  17610.   acl_save_exec_prefix="$exec_prefix"
  17611.   exec_prefix="$acl_final_exec_prefix"
  17612.   eval x=\"$x\"
  17613.   exec_prefix="$acl_save_exec_prefix"
  17614.   prefix="$acl_save_prefix"
  17615.  
  17616.                           if test "X$x" = "X-L$additional_libdir"; then
  17617.                             haveit=yes
  17618.                             break
  17619.                           fi
  17620.                         done
  17621.                         if test -z "$haveit"; then
  17622.                           if test -d "$additional_libdir"; then
  17623.                                                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
  17624.                           fi
  17625.                         fi
  17626.                       fi
  17627.                     fi
  17628.                     ;;
  17629.                   -R*)
  17630.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17631.                     if test "$enable_rpath" != no; then
  17632.                                                                   haveit=
  17633.                       for x in $rpathdirs; do
  17634.                         if test "X$x" = "X$dir"; then
  17635.                           haveit=yes
  17636.                           break
  17637.                         fi
  17638.                       done
  17639.                       if test -z "$haveit"; then
  17640.                         rpathdirs="$rpathdirs $dir"
  17641.                       fi
  17642.                                                                   haveit=
  17643.                       for x in $ltrpathdirs; do
  17644.                         if test "X$x" = "X$dir"; then
  17645.                           haveit=yes
  17646.                           break
  17647.                         fi
  17648.                       done
  17649.                       if test -z "$haveit"; then
  17650.                         ltrpathdirs="$ltrpathdirs $dir"
  17651.                       fi
  17652.                     fi
  17653.                     ;;
  17654.                   -l*)
  17655.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17656.                     ;;
  17657.                   *.la)
  17658.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17659.                     ;;
  17660.                   *)
  17661.                                         LIBRT="${LIBRT}${LIBRT:+ }$dep"
  17662.                     LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
  17663.                     ;;
  17664.                 esac
  17665.               done
  17666.             fi
  17667.           else
  17668.                                                             LIBRT="${LIBRT}${LIBRT:+ }-l$name"
  17669.             LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
  17670.           fi
  17671.         fi
  17672.       fi
  17673.     done
  17674.   done
  17675.   if test "X$rpathdirs" != "X"; then
  17676.     if test -n "$acl_hardcode_libdir_separator"; then
  17677.                         alldirs=
  17678.       for found_dir in $rpathdirs; do
  17679.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17680.       done
  17681.             acl_save_libdir="$libdir"
  17682.       libdir="$alldirs"
  17683.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17684.       libdir="$acl_save_libdir"
  17685.       LIBRT="${LIBRT}${LIBRT:+ }$flag"
  17686.     else
  17687.             for found_dir in $rpathdirs; do
  17688.         acl_save_libdir="$libdir"
  17689.         libdir="$found_dir"
  17690.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17691.         libdir="$acl_save_libdir"
  17692.         LIBRT="${LIBRT}${LIBRT:+ }$flag"
  17693.       done
  17694.     fi
  17695.   fi
  17696.   if test "X$ltrpathdirs" != "X"; then
  17697.             for found_dir in $ltrpathdirs; do
  17698.       LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
  17699.     done
  17700.   fi
  17701.  
  17702.  
  17703.  
  17704.  
  17705.  
  17706.  
  17707.  
  17708.         ac_save_CPPFLAGS="$CPPFLAGS"
  17709.  
  17710.   for element in $INCRT; do
  17711.     haveit=
  17712.     for x in $CPPFLAGS; do
  17713.  
  17714.   acl_save_prefix="$prefix"
  17715.   prefix="$acl_final_prefix"
  17716.   acl_save_exec_prefix="$exec_prefix"
  17717.   exec_prefix="$acl_final_exec_prefix"
  17718.   eval x=\"$x\"
  17719.   exec_prefix="$acl_save_exec_prefix"
  17720.   prefix="$acl_save_prefix"
  17721.  
  17722.       if test "X$x" = "X$element"; then
  17723.         haveit=yes
  17724.         break
  17725.       fi
  17726.     done
  17727.     if test -z "$haveit"; then
  17728.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17729.     fi
  17730.   done
  17731.  
  17732.  
  17733.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
  17734. $as_echo_n "checking for librt... " >&6; }
  17735. if ${ac_cv_librt+:} false; then :
  17736.   $as_echo_n "(cached) " >&6
  17737. else
  17738.  
  17739.     ac_save_LIBS="$LIBS"
  17740.                                 case " $LIBRT" in
  17741.       *" -l"*) LIBS="$LIBS $LIBRT" ;;
  17742.       *)       LIBS="$LIBRT $LIBS" ;;
  17743.     esac
  17744.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17745. /* end confdefs.h.  */
  17746. #include <time.h>
  17747. int
  17748. main ()
  17749. {
  17750. clock_gettime (0, 0);
  17751.   ;
  17752.   return 0;
  17753. }
  17754. _ACEOF
  17755. if ac_fn_c_try_link "$LINENO"; then :
  17756.   ac_cv_librt=yes
  17757. else
  17758.   ac_cv_librt='no'
  17759. fi
  17760. rm -f core conftest.err conftest.$ac_objext \
  17761.     conftest$ac_exeext conftest.$ac_ext
  17762.     LIBS="$ac_save_LIBS"
  17763.  
  17764. fi
  17765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
  17766. $as_echo "$ac_cv_librt" >&6; }
  17767.   if test "$ac_cv_librt" = yes; then
  17768.     HAVE_LIBRT=yes
  17769.  
  17770. $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
  17771.  
  17772.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
  17773. $as_echo_n "checking how to link with librt... " >&6; }
  17774.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
  17775. $as_echo "$LIBRT" >&6; }
  17776.   else
  17777.     HAVE_LIBRT=no
  17778.             CPPFLAGS="$ac_save_CPPFLAGS"
  17779.     LIBRT=
  17780.     LTLIBRT=
  17781.     LIBRT_PREFIX=
  17782.   fi
  17783.  
  17784.  
  17785.  
  17786.  
  17787.  
  17788.  
  17789.  
  17790.   gnutls_needs_librt=yes
  17791. fi
  17792.  
  17793.  
  17794. # Check whether --with-included-unistring was given.
  17795. if test "${with_included_unistring+set}" = set; then :
  17796.   withval=$with_included_unistring; included_unistring="$withval"
  17797. else
  17798.   included_unistring=no
  17799. fi
  17800.  
  17801.  
  17802. if test "$included_unistring" = yes;then
  17803.   ac_have_unistring=no
  17804. else
  17805.  
  17806.  
  17807.  
  17808.  
  17809.  
  17810.  
  17811.  
  17812.  
  17813.  
  17814.  
  17815.  
  17816.  
  17817.  
  17818.     use_additional=yes
  17819.  
  17820.   acl_save_prefix="$prefix"
  17821.   prefix="$acl_final_prefix"
  17822.   acl_save_exec_prefix="$exec_prefix"
  17823.   exec_prefix="$acl_final_exec_prefix"
  17824.  
  17825.     eval additional_includedir=\"$includedir\"
  17826.     eval additional_libdir=\"$libdir\"
  17827.  
  17828.   exec_prefix="$acl_save_exec_prefix"
  17829.   prefix="$acl_save_prefix"
  17830.  
  17831.  
  17832. # Check whether --with-libunistring-prefix was given.
  17833. if test "${with_libunistring_prefix+set}" = set; then :
  17834.   withval=$with_libunistring_prefix;
  17835.     if test "X$withval" = "Xno"; then
  17836.       use_additional=no
  17837.     else
  17838.       if test "X$withval" = "X"; then
  17839.  
  17840.   acl_save_prefix="$prefix"
  17841.   prefix="$acl_final_prefix"
  17842.   acl_save_exec_prefix="$exec_prefix"
  17843.   exec_prefix="$acl_final_exec_prefix"
  17844.  
  17845.           eval additional_includedir=\"$includedir\"
  17846.           eval additional_libdir=\"$libdir\"
  17847.  
  17848.   exec_prefix="$acl_save_exec_prefix"
  17849.   prefix="$acl_save_prefix"
  17850.  
  17851.       else
  17852.         additional_includedir="$withval/include"
  17853.         additional_libdir="$withval/$acl_libdirstem"
  17854.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  17855.            && ! test -d "$withval/$acl_libdirstem"; then
  17856.           additional_libdir="$withval/$acl_libdirstem2"
  17857.         fi
  17858.       fi
  17859.     fi
  17860.  
  17861. fi
  17862.  
  17863.       LIBUNISTRING=
  17864.   LTLIBUNISTRING=
  17865.   INCUNISTRING=
  17866.   LIBUNISTRING_PREFIX=
  17867.       HAVE_LIBUNISTRING=
  17868.   rpathdirs=
  17869.   ltrpathdirs=
  17870.   names_already_handled=
  17871.   names_next_round='unistring '
  17872.   while test -n "$names_next_round"; do
  17873.     names_this_round="$names_next_round"
  17874.     names_next_round=
  17875.     for name in $names_this_round; do
  17876.       already_handled=
  17877.       for n in $names_already_handled; do
  17878.         if test "$n" = "$name"; then
  17879.           already_handled=yes
  17880.           break
  17881.         fi
  17882.       done
  17883.       if test -z "$already_handled"; then
  17884.         names_already_handled="$names_already_handled $name"
  17885.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  17886.         eval value=\"\$HAVE_LIB$uppername\"
  17887.         if test -n "$value"; then
  17888.           if test "$value" = yes; then
  17889.             eval value=\"\$LIB$uppername\"
  17890.             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
  17891.             eval value=\"\$LTLIB$uppername\"
  17892.             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
  17893.           else
  17894.                                     :
  17895.           fi
  17896.         else
  17897.                               found_dir=
  17898.           found_la=
  17899.           found_so=
  17900.           found_a=
  17901.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  17902.           if test -n "$acl_shlibext"; then
  17903.             shrext=".$acl_shlibext"             # typically: shrext=.so
  17904.           else
  17905.             shrext=
  17906.           fi
  17907.           if test $use_additional = yes; then
  17908.             dir="$additional_libdir"
  17909.                                     if test -n "$acl_shlibext"; then
  17910.               if test -f "$dir/$libname$shrext"; then
  17911.                 found_dir="$dir"
  17912.                 found_so="$dir/$libname$shrext"
  17913.               else
  17914.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17915.                   ver=`(cd "$dir" && \
  17916.                         for f in "$libname$shrext".*; do echo "$f"; done \
  17917.                         | sed -e "s,^$libname$shrext\\\\.,," \
  17918.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17919.                         | sed 1q ) 2>/dev/null`
  17920.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17921.                     found_dir="$dir"
  17922.                     found_so="$dir/$libname$shrext.$ver"
  17923.                   fi
  17924.                 else
  17925.                   eval library_names=\"$acl_library_names_spec\"
  17926.                   for f in $library_names; do
  17927.                     if test -f "$dir/$f"; then
  17928.                       found_dir="$dir"
  17929.                       found_so="$dir/$f"
  17930.                       break
  17931.                     fi
  17932.                   done
  17933.                 fi
  17934.               fi
  17935.             fi
  17936.                         if test "X$found_dir" = "X"; then
  17937.               if test -f "$dir/$libname.$acl_libext"; then
  17938.                 found_dir="$dir"
  17939.                 found_a="$dir/$libname.$acl_libext"
  17940.               fi
  17941.             fi
  17942.             if test "X$found_dir" != "X"; then
  17943.               if test -f "$dir/$libname.la"; then
  17944.                 found_la="$dir/$libname.la"
  17945.               fi
  17946.             fi
  17947.           fi
  17948.           if test "X$found_dir" = "X"; then
  17949.             for x in $LDFLAGS $LTLIBUNISTRING; do
  17950.  
  17951.   acl_save_prefix="$prefix"
  17952.   prefix="$acl_final_prefix"
  17953.   acl_save_exec_prefix="$exec_prefix"
  17954.   exec_prefix="$acl_final_exec_prefix"
  17955.   eval x=\"$x\"
  17956.   exec_prefix="$acl_save_exec_prefix"
  17957.   prefix="$acl_save_prefix"
  17958.  
  17959.               case "$x" in
  17960.                 -L*)
  17961.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  17962.                                     if test -n "$acl_shlibext"; then
  17963.                     if test -f "$dir/$libname$shrext"; then
  17964.                       found_dir="$dir"
  17965.                       found_so="$dir/$libname$shrext"
  17966.                     else
  17967.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17968.                         ver=`(cd "$dir" && \
  17969.                               for f in "$libname$shrext".*; do echo "$f"; done \
  17970.                               | sed -e "s,^$libname$shrext\\\\.,," \
  17971.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17972.                               | sed 1q ) 2>/dev/null`
  17973.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17974.                           found_dir="$dir"
  17975.                           found_so="$dir/$libname$shrext.$ver"
  17976.                         fi
  17977.                       else
  17978.                         eval library_names=\"$acl_library_names_spec\"
  17979.                         for f in $library_names; do
  17980.                           if test -f "$dir/$f"; then
  17981.                             found_dir="$dir"
  17982.                             found_so="$dir/$f"
  17983.                             break
  17984.                           fi
  17985.                         done
  17986.                       fi
  17987.                     fi
  17988.                   fi
  17989.                                     if test "X$found_dir" = "X"; then
  17990.                     if test -f "$dir/$libname.$acl_libext"; then
  17991.                       found_dir="$dir"
  17992.                       found_a="$dir/$libname.$acl_libext"
  17993.                     fi
  17994.                   fi
  17995.                   if test "X$found_dir" != "X"; then
  17996.                     if test -f "$dir/$libname.la"; then
  17997.                       found_la="$dir/$libname.la"
  17998.                     fi
  17999.                   fi
  18000.                   ;;
  18001.               esac
  18002.               if test "X$found_dir" != "X"; then
  18003.                 break
  18004.               fi
  18005.             done
  18006.           fi
  18007.           if test "X$found_dir" != "X"; then
  18008.                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
  18009.             if test "X$found_so" != "X"; then
  18010.                                                         if test "$enable_rpath" = no \
  18011.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  18012.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  18013.                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
  18014.               else
  18015.                                                                                 haveit=
  18016.                 for x in $ltrpathdirs; do
  18017.                   if test "X$x" = "X$found_dir"; then
  18018.                     haveit=yes
  18019.                     break
  18020.                   fi
  18021.                 done
  18022.                 if test -z "$haveit"; then
  18023.                   ltrpathdirs="$ltrpathdirs $found_dir"
  18024.                 fi
  18025.                                 if test "$acl_hardcode_direct" = yes; then
  18026.                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
  18027.                 else
  18028.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  18029.                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
  18030.                                                             haveit=
  18031.                     for x in $rpathdirs; do
  18032.                       if test "X$x" = "X$found_dir"; then
  18033.                         haveit=yes
  18034.                         break
  18035.                       fi
  18036.                     done
  18037.                     if test -z "$haveit"; then
  18038.                       rpathdirs="$rpathdirs $found_dir"
  18039.                     fi
  18040.                   else
  18041.                                                                                 haveit=
  18042.                     for x in $LDFLAGS $LIBUNISTRING; do
  18043.  
  18044.   acl_save_prefix="$prefix"
  18045.   prefix="$acl_final_prefix"
  18046.   acl_save_exec_prefix="$exec_prefix"
  18047.   exec_prefix="$acl_final_exec_prefix"
  18048.   eval x=\"$x\"
  18049.   exec_prefix="$acl_save_exec_prefix"
  18050.   prefix="$acl_save_prefix"
  18051.  
  18052.                       if test "X$x" = "X-L$found_dir"; then
  18053.                         haveit=yes
  18054.                         break
  18055.                       fi
  18056.                     done
  18057.                     if test -z "$haveit"; then
  18058.                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
  18059.                     fi
  18060.                     if test "$acl_hardcode_minus_L" != no; then
  18061.                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
  18062.                     else
  18063.                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
  18064.                     fi
  18065.                   fi
  18066.                 fi
  18067.               fi
  18068.             else
  18069.               if test "X$found_a" != "X"; then
  18070.                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
  18071.               else
  18072.                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
  18073.               fi
  18074.             fi
  18075.                         additional_includedir=
  18076.             case "$found_dir" in
  18077.               */$acl_libdirstem | */$acl_libdirstem/)
  18078.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  18079.                 if test "$name" = 'unistring'; then
  18080.                   LIBUNISTRING_PREFIX="$basedir"
  18081.                 fi
  18082.                 additional_includedir="$basedir/include"
  18083.                 ;;
  18084.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  18085.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  18086.                 if test "$name" = 'unistring'; then
  18087.                   LIBUNISTRING_PREFIX="$basedir"
  18088.                 fi
  18089.                 additional_includedir="$basedir/include"
  18090.                 ;;
  18091.             esac
  18092.             if test "X$additional_includedir" != "X"; then
  18093.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  18094.                 haveit=
  18095.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  18096.                   if test -n "$GCC"; then
  18097.                     case $host_os in
  18098.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  18099.                     esac
  18100.                   fi
  18101.                 fi
  18102.                 if test -z "$haveit"; then
  18103.                   for x in $CPPFLAGS $INCUNISTRING; do
  18104.  
  18105.   acl_save_prefix="$prefix"
  18106.   prefix="$acl_final_prefix"
  18107.   acl_save_exec_prefix="$exec_prefix"
  18108.   exec_prefix="$acl_final_exec_prefix"
  18109.   eval x=\"$x\"
  18110.   exec_prefix="$acl_save_exec_prefix"
  18111.   prefix="$acl_save_prefix"
  18112.  
  18113.                     if test "X$x" = "X-I$additional_includedir"; then
  18114.                       haveit=yes
  18115.                       break
  18116.                     fi
  18117.                   done
  18118.                   if test -z "$haveit"; then
  18119.                     if test -d "$additional_includedir"; then
  18120.                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
  18121.                     fi
  18122.                   fi
  18123.                 fi
  18124.               fi
  18125.             fi
  18126.                         if test -n "$found_la"; then
  18127.                                                         save_libdir="$libdir"
  18128.               case "$found_la" in
  18129.                 */* | *\\*) . "$found_la" ;;
  18130.                 *) . "./$found_la" ;;
  18131.               esac
  18132.               libdir="$save_libdir"
  18133.                             for dep in $dependency_libs; do
  18134.                 case "$dep" in
  18135.                   -L*)
  18136.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  18137.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  18138.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  18139.                       haveit=
  18140.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  18141.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  18142.                         if test -n "$GCC"; then
  18143.                           case $host_os in
  18144.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  18145.                           esac
  18146.                         fi
  18147.                       fi
  18148.                       if test -z "$haveit"; then
  18149.                         haveit=
  18150.                         for x in $LDFLAGS $LIBUNISTRING; do
  18151.  
  18152.   acl_save_prefix="$prefix"
  18153.   prefix="$acl_final_prefix"
  18154.   acl_save_exec_prefix="$exec_prefix"
  18155.   exec_prefix="$acl_final_exec_prefix"
  18156.   eval x=\"$x\"
  18157.   exec_prefix="$acl_save_exec_prefix"
  18158.   prefix="$acl_save_prefix"
  18159.  
  18160.                           if test "X$x" = "X-L$additional_libdir"; then
  18161.                             haveit=yes
  18162.                             break
  18163.                           fi
  18164.                         done
  18165.                         if test -z "$haveit"; then
  18166.                           if test -d "$additional_libdir"; then
  18167.                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
  18168.                           fi
  18169.                         fi
  18170.                         haveit=
  18171.                         for x in $LDFLAGS $LTLIBUNISTRING; do
  18172.  
  18173.   acl_save_prefix="$prefix"
  18174.   prefix="$acl_final_prefix"
  18175.   acl_save_exec_prefix="$exec_prefix"
  18176.   exec_prefix="$acl_final_exec_prefix"
  18177.   eval x=\"$x\"
  18178.   exec_prefix="$acl_save_exec_prefix"
  18179.   prefix="$acl_save_prefix"
  18180.  
  18181.                           if test "X$x" = "X-L$additional_libdir"; then
  18182.                             haveit=yes
  18183.                             break
  18184.                           fi
  18185.                         done
  18186.                         if test -z "$haveit"; then
  18187.                           if test -d "$additional_libdir"; then
  18188.                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
  18189.                           fi
  18190.                         fi
  18191.                       fi
  18192.                     fi
  18193.                     ;;
  18194.                   -R*)
  18195.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  18196.                     if test "$enable_rpath" != no; then
  18197.                                                                   haveit=
  18198.                       for x in $rpathdirs; do
  18199.                         if test "X$x" = "X$dir"; then
  18200.                           haveit=yes
  18201.                           break
  18202.                         fi
  18203.                       done
  18204.                       if test -z "$haveit"; then
  18205.                         rpathdirs="$rpathdirs $dir"
  18206.                       fi
  18207.                                                                   haveit=
  18208.                       for x in $ltrpathdirs; do
  18209.                         if test "X$x" = "X$dir"; then
  18210.                           haveit=yes
  18211.                           break
  18212.                         fi
  18213.                       done
  18214.                       if test -z "$haveit"; then
  18215.                         ltrpathdirs="$ltrpathdirs $dir"
  18216.                       fi
  18217.                     fi
  18218.                     ;;
  18219.                   -l*)
  18220.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  18221.                     ;;
  18222.                   *.la)
  18223.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  18224.                     ;;
  18225.                   *)
  18226.                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
  18227.                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
  18228.                     ;;
  18229.                 esac
  18230.               done
  18231.             fi
  18232.           else
  18233.                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
  18234.             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
  18235.           fi
  18236.         fi
  18237.       fi
  18238.     done
  18239.   done
  18240.   if test "X$rpathdirs" != "X"; then
  18241.     if test -n "$acl_hardcode_libdir_separator"; then
  18242.                         alldirs=
  18243.       for found_dir in $rpathdirs; do
  18244.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  18245.       done
  18246.             acl_save_libdir="$libdir"
  18247.       libdir="$alldirs"
  18248.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  18249.       libdir="$acl_save_libdir"
  18250.       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
  18251.     else
  18252.             for found_dir in $rpathdirs; do
  18253.         acl_save_libdir="$libdir"
  18254.         libdir="$found_dir"
  18255.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  18256.         libdir="$acl_save_libdir"
  18257.         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
  18258.       done
  18259.     fi
  18260.   fi
  18261.   if test "X$ltrpathdirs" != "X"; then
  18262.             for found_dir in $ltrpathdirs; do
  18263.       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
  18264.     done
  18265.   fi
  18266.  
  18267.  
  18268.  
  18269.  
  18270.  
  18271.  
  18272.  
  18273.         ac_save_CPPFLAGS="$CPPFLAGS"
  18274.  
  18275.   for element in $INCUNISTRING; do
  18276.     haveit=
  18277.     for x in $CPPFLAGS; do
  18278.  
  18279.   acl_save_prefix="$prefix"
  18280.   prefix="$acl_final_prefix"
  18281.   acl_save_exec_prefix="$exec_prefix"
  18282.   exec_prefix="$acl_final_exec_prefix"
  18283.   eval x=\"$x\"
  18284.   exec_prefix="$acl_save_exec_prefix"
  18285.   prefix="$acl_save_prefix"
  18286.  
  18287.       if test "X$x" = "X$element"; then
  18288.         haveit=yes
  18289.         break
  18290.       fi
  18291.     done
  18292.     if test -z "$haveit"; then
  18293.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  18294.     fi
  18295.   done
  18296.  
  18297.  
  18298.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
  18299. $as_echo_n "checking for libunistring... " >&6; }
  18300. if ${ac_cv_libunistring+:} false; then :
  18301.   $as_echo_n "(cached) " >&6
  18302. else
  18303.  
  18304.     ac_save_LIBS="$LIBS"
  18305.                                 case " $LIBUNISTRING" in
  18306.       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
  18307.       *)       LIBS="$LIBUNISTRING $LIBS" ;;
  18308.     esac
  18309.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18310. /* end confdefs.h.  */
  18311. #include <uninorm.h>
  18312. int
  18313. main ()
  18314. {
  18315. u8_normalize(0, 0, 0, 0, 0);
  18316.   ;
  18317.   return 0;
  18318. }
  18319. _ACEOF
  18320. if ac_fn_c_try_link "$LINENO"; then :
  18321.   ac_cv_libunistring=yes
  18322. else
  18323.   ac_cv_libunistring='no'
  18324. fi
  18325. rm -f core conftest.err conftest.$ac_objext \
  18326.     conftest$ac_exeext conftest.$ac_ext
  18327.     LIBS="$ac_save_LIBS"
  18328.  
  18329. fi
  18330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
  18331. $as_echo "$ac_cv_libunistring" >&6; }
  18332.   if test "$ac_cv_libunistring" = yes; then
  18333.     HAVE_LIBUNISTRING=yes
  18334.  
  18335. $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
  18336.  
  18337.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
  18338. $as_echo_n "checking how to link with libunistring... " >&6; }
  18339.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
  18340. $as_echo "$LIBUNISTRING" >&6; }
  18341.   else
  18342.     HAVE_LIBUNISTRING=no
  18343.             CPPFLAGS="$ac_save_CPPFLAGS"
  18344.     LIBUNISTRING=
  18345.     LTLIBUNISTRING=
  18346.     LIBUNISTRING_PREFIX=
  18347.   fi
  18348.  
  18349.  
  18350.  
  18351.  
  18352.  
  18353.  
  18354.  
  18355.  
  18356.   if test "$HAVE_LIBUNISTRING" = "yes";then
  18357.     included_unistring=no
  18358.     ac_have_unistring=yes
  18359.   else
  18360.       as_fn_error $? "
  18361.  ***
  18362.  *** Libunistring was not found. To use the included one, use --with-included-unistring
  18363.  " "$LINENO" 5
  18364.   fi
  18365. fi
  18366.  
  18367.  if test "$ac_have_unistring" = "yes"; then
  18368.   HAVE_LIBUNISTRING_TRUE=
  18369.   HAVE_LIBUNISTRING_FALSE='#'
  18370. else
  18371.   HAVE_LIBUNISTRING_TRUE='#'
  18372.   HAVE_LIBUNISTRING_FALSE=
  18373. fi
  18374.  
  18375.  
  18376.  
  18377.  
  18378.  
  18379.  
  18380.  
  18381.           LIBC_FATAL_STDERR_=1
  18382.   export LIBC_FATAL_STDERR_
  18383.  
  18384. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  18385. if test "x$ac_cv_type_size_t" = xyes; then :
  18386.  
  18387. else
  18388.  
  18389. cat >>confdefs.h <<_ACEOF
  18390. #define size_t unsigned int
  18391. _ACEOF
  18392.  
  18393. fi
  18394.  
  18395. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  18396. # for constant arguments.  Useless!
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  18398. $as_echo_n "checking for working alloca.h... " >&6; }
  18399. if ${ac_cv_working_alloca_h+:} false; then :
  18400.   $as_echo_n "(cached) " >&6
  18401. else
  18402.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18403. /* end confdefs.h.  */
  18404. #include <alloca.h>
  18405. int
  18406. main ()
  18407. {
  18408. char *p = (char *) alloca (2 * sizeof (int));
  18409.                           if (p) return 0;
  18410.   ;
  18411.   return 0;
  18412. }
  18413. _ACEOF
  18414. if ac_fn_c_try_link "$LINENO"; then :
  18415.   ac_cv_working_alloca_h=yes
  18416. else
  18417.   ac_cv_working_alloca_h=no
  18418. fi
  18419. rm -f core conftest.err conftest.$ac_objext \
  18420.     conftest$ac_exeext conftest.$ac_ext
  18421. fi
  18422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  18423. $as_echo "$ac_cv_working_alloca_h" >&6; }
  18424. if test $ac_cv_working_alloca_h = yes; then
  18425.  
  18426. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  18427.  
  18428. fi
  18429.  
  18430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  18431. $as_echo_n "checking for alloca... " >&6; }
  18432. if ${ac_cv_func_alloca_works+:} false; then :
  18433.   $as_echo_n "(cached) " >&6
  18434. else
  18435.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18436. /* end confdefs.h.  */
  18437. #ifdef __GNUC__
  18438. # define alloca __builtin_alloca
  18439. #else
  18440. # ifdef _MSC_VER
  18441. #  include <malloc.h>
  18442. #  define alloca _alloca
  18443. # else
  18444. #  ifdef HAVE_ALLOCA_H
  18445. #   include <alloca.h>
  18446. #  else
  18447. #   ifdef _AIX
  18448.  #pragma alloca
  18449. #   else
  18450. #    ifndef alloca /* predefined by HP cc +Olibcalls */
  18451. void *alloca (size_t);
  18452. #    endif
  18453. #   endif
  18454. #  endif
  18455. # endif
  18456. #endif
  18457.  
  18458. int
  18459. main ()
  18460. {
  18461. char *p = (char *) alloca (1);
  18462.                                     if (p) return 0;
  18463.   ;
  18464.   return 0;
  18465. }
  18466. _ACEOF
  18467. if ac_fn_c_try_link "$LINENO"; then :
  18468.   ac_cv_func_alloca_works=yes
  18469. else
  18470.   ac_cv_func_alloca_works=no
  18471. fi
  18472. rm -f core conftest.err conftest.$ac_objext \
  18473.     conftest$ac_exeext conftest.$ac_ext
  18474. fi
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  18476. $as_echo "$ac_cv_func_alloca_works" >&6; }
  18477.  
  18478. if test $ac_cv_func_alloca_works = yes; then
  18479.  
  18480. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  18481.  
  18482. else
  18483.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  18484. # that cause trouble.  Some versions do not even contain alloca or
  18485. # contain a buggy version.  If you still want to use their alloca,
  18486. # use ar to extract alloca.o from them instead of compiling alloca.c.
  18487.  
  18488.  
  18489.  
  18490.  
  18491.  
  18492. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  18493.  
  18494. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  18495.  
  18496.  
  18497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  18498. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  18499. if ${ac_cv_os_cray+:} false; then :
  18500.   $as_echo_n "(cached) " >&6
  18501. else
  18502.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18503. /* end confdefs.h.  */
  18504. #if defined CRAY && ! defined CRAY2
  18505. webecray
  18506. #else
  18507. wenotbecray
  18508. #endif
  18509.  
  18510. _ACEOF
  18511. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18512.   $EGREP "webecray" >/dev/null 2>&1; then :
  18513.   ac_cv_os_cray=yes
  18514. else
  18515.   ac_cv_os_cray=no
  18516. fi
  18517. rm -f conftest*
  18518.  
  18519. fi
  18520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  18521. $as_echo "$ac_cv_os_cray" >&6; }
  18522. if test $ac_cv_os_cray = yes; then
  18523.   for ac_func in _getb67 GETB67 getb67; do
  18524.     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18525. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18526. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18527.  
  18528. cat >>confdefs.h <<_ACEOF
  18529. #define CRAY_STACKSEG_END $ac_func
  18530. _ACEOF
  18531.  
  18532.     break
  18533. fi
  18534.  
  18535.   done
  18536. fi
  18537.  
  18538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  18539. $as_echo_n "checking stack direction for C alloca... " >&6; }
  18540. if ${ac_cv_c_stack_direction+:} false; then :
  18541.   $as_echo_n "(cached) " >&6
  18542. else
  18543.   if test "$cross_compiling" = yes; then :
  18544.   ac_cv_c_stack_direction=0
  18545. else
  18546.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18547. /* end confdefs.h.  */
  18548. $ac_includes_default
  18549. int
  18550. find_stack_direction (int *addr, int depth)
  18551. {
  18552.   int dir, dummy = 0;
  18553.   if (! addr)
  18554.     addr = &dummy;
  18555.   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  18556.   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  18557.   return dir + dummy;
  18558. }
  18559.  
  18560. int
  18561. main (int argc, char **argv)
  18562. {
  18563.   return find_stack_direction (0, argc + !argv + 20) < 0;
  18564. }
  18565. _ACEOF
  18566. if ac_fn_c_try_run "$LINENO"; then :
  18567.   ac_cv_c_stack_direction=1
  18568. else
  18569.   ac_cv_c_stack_direction=-1
  18570. fi
  18571. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18572.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  18573. fi
  18574.  
  18575. fi
  18576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  18577. $as_echo "$ac_cv_c_stack_direction" >&6; }
  18578. cat >>confdefs.h <<_ACEOF
  18579. #define STACK_DIRECTION $ac_cv_c_stack_direction
  18580. _ACEOF
  18581.  
  18582.  
  18583. fi
  18584.  
  18585.  
  18586.  
  18587.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
  18588. $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
  18589. if ${gl_cv_have_include_next+:} false; then :
  18590.   $as_echo_n "(cached) " >&6
  18591. else
  18592.   rm -rf conftestd1a conftestd1b conftestd2
  18593.      mkdir conftestd1a conftestd1b conftestd2
  18594.                                                   cat <<EOF > conftestd1a/conftest.h
  18595. #define DEFINED_IN_CONFTESTD1
  18596. #include_next <conftest.h>
  18597. #ifdef DEFINED_IN_CONFTESTD2
  18598. int foo;
  18599. #else
  18600. #error "include_next doesn't work"
  18601. #endif
  18602. EOF
  18603.      cat <<EOF > conftestd1b/conftest.h
  18604. #define DEFINED_IN_CONFTESTD1
  18605. #include <stdio.h>
  18606. #include_next <conftest.h>
  18607. #ifdef DEFINED_IN_CONFTESTD2
  18608. int foo;
  18609. #else
  18610. #error "include_next doesn't work"
  18611. #endif
  18612. EOF
  18613.      cat <<EOF > conftestd2/conftest.h
  18614. #ifndef DEFINED_IN_CONFTESTD1
  18615. #error "include_next test doesn't work"
  18616. #endif
  18617. #define DEFINED_IN_CONFTESTD2
  18618. EOF
  18619.      gl_save_CPPFLAGS="$CPPFLAGS"
  18620.      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
  18621.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18622. /* end confdefs.h.  */
  18623. #include <conftest.h>
  18624. _ACEOF
  18625. if ac_fn_c_try_compile "$LINENO"; then :
  18626.   gl_cv_have_include_next=yes
  18627. else
  18628.   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
  18629.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18630. /* end confdefs.h.  */
  18631. #include <conftest.h>
  18632. _ACEOF
  18633. if ac_fn_c_try_compile "$LINENO"; then :
  18634.   gl_cv_have_include_next=buggy
  18635. else
  18636.   gl_cv_have_include_next=no
  18637. fi
  18638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18639.  
  18640. fi
  18641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18642.      CPPFLAGS="$gl_save_CPPFLAGS"
  18643.      rm -rf conftestd1a conftestd1b conftestd2
  18644.  
  18645. fi
  18646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
  18647. $as_echo "$gl_cv_have_include_next" >&6; }
  18648.   PRAGMA_SYSTEM_HEADER=
  18649.   if test $gl_cv_have_include_next = yes; then
  18650.     INCLUDE_NEXT=include_next
  18651.     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  18652.     if test -n "$GCC"; then
  18653.       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
  18654.     fi
  18655.   else
  18656.     if test $gl_cv_have_include_next = buggy; then
  18657.       INCLUDE_NEXT=include
  18658.       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  18659.     else
  18660.       INCLUDE_NEXT=include
  18661.       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
  18662.     fi
  18663.   fi
  18664.  
  18665.  
  18666.  
  18667.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
  18668. $as_echo_n "checking whether system header files limit the line length... " >&6; }
  18669. if ${gl_cv_pragma_columns+:} false; then :
  18670.   $as_echo_n "(cached) " >&6
  18671. else
  18672.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18673. /* end confdefs.h.  */
  18674.  
  18675. #ifdef __TANDEM
  18676. choke me
  18677. #endif
  18678.  
  18679. _ACEOF
  18680. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18681.   $EGREP "choke me" >/dev/null 2>&1; then :
  18682.   gl_cv_pragma_columns=yes
  18683. else
  18684.   gl_cv_pragma_columns=no
  18685. fi
  18686. rm -f conftest*
  18687.  
  18688.  
  18689. fi
  18690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
  18691. $as_echo "$gl_cv_pragma_columns" >&6; }
  18692.   if test $gl_cv_pragma_columns = yes; then
  18693.     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
  18694.   else
  18695.     PRAGMA_COLUMNS=
  18696.   fi
  18697.  
  18698.  
  18699.  
  18700.  
  18701.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
  18702. $as_echo_n "checking for complete errno.h... " >&6; }
  18703. if ${gl_cv_header_errno_h_complete+:} false; then :
  18704.   $as_echo_n "(cached) " >&6
  18705. else
  18706.  
  18707.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18708. /* end confdefs.h.  */
  18709.  
  18710. #include <errno.h>
  18711. #if !defined ETXTBSY
  18712. booboo
  18713. #endif
  18714. #if !defined ENOMSG
  18715. booboo
  18716. #endif
  18717. #if !defined EIDRM
  18718. booboo
  18719. #endif
  18720. #if !defined ENOLINK
  18721. booboo
  18722. #endif
  18723. #if !defined EPROTO
  18724. booboo
  18725. #endif
  18726. #if !defined EMULTIHOP
  18727. booboo
  18728. #endif
  18729. #if !defined EBADMSG
  18730. booboo
  18731. #endif
  18732. #if !defined EOVERFLOW
  18733. booboo
  18734. #endif
  18735. #if !defined ENOTSUP
  18736. booboo
  18737. #endif
  18738. #if !defined ENETRESET
  18739. booboo
  18740. #endif
  18741. #if !defined ECONNABORTED
  18742. booboo
  18743. #endif
  18744. #if !defined ESTALE
  18745. booboo
  18746. #endif
  18747. #if !defined EDQUOT
  18748. booboo
  18749. #endif
  18750. #if !defined ECANCELED
  18751. booboo
  18752. #endif
  18753. #if !defined EOWNERDEAD
  18754. booboo
  18755. #endif
  18756. #if !defined ENOTRECOVERABLE
  18757. booboo
  18758. #endif
  18759. #if !defined EILSEQ
  18760. booboo
  18761. #endif
  18762.  
  18763. _ACEOF
  18764. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18765.   $EGREP "booboo" >/dev/null 2>&1; then :
  18766.   gl_cv_header_errno_h_complete=no
  18767. else
  18768.   gl_cv_header_errno_h_complete=yes
  18769. fi
  18770. rm -f conftest*
  18771.  
  18772.  
  18773. fi
  18774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
  18775. $as_echo "$gl_cv_header_errno_h_complete" >&6; }
  18776.   if test $gl_cv_header_errno_h_complete = yes; then
  18777.     ERRNO_H=''
  18778.   else
  18779.  
  18780.  
  18781.  
  18782.  
  18783.  
  18784.  
  18785.  
  18786.  
  18787.      if test $gl_cv_have_include_next = yes; then
  18788.        gl_cv_next_errno_h='<'errno.h'>'
  18789.      else
  18790.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
  18791. $as_echo_n "checking absolute name of <errno.h>... " >&6; }
  18792. if ${gl_cv_next_errno_h+:} false; then :
  18793.   $as_echo_n "(cached) " >&6
  18794. else
  18795.  
  18796.  
  18797.  
  18798.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18799. /* end confdefs.h.  */
  18800. #include <errno.h>
  18801. _ACEOF
  18802.                 case "$host_os" in
  18803.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18804.     *)    gl_absname_cpp="$ac_cpp" ;;
  18805.   esac
  18806.  
  18807.   case "$host_os" in
  18808.     mingw*)
  18809.                                           gl_dirsep_regex='[/\\]'
  18810.       ;;
  18811.     *)
  18812.       gl_dirsep_regex='\/'
  18813.       ;;
  18814.   esac
  18815.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  18816.   gl_header_literal_regex=`echo 'errno.h' \
  18817.                            | sed -e "$gl_make_literal_regex_sed"`
  18818.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  18819.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  18820.      s|^/[^/]|//&|
  18821.      p
  18822.      q
  18823.    }'
  18824.  
  18825.         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18826.   sed -n "$gl_absolute_header_sed"`
  18827.  
  18828.            gl_header=$gl_cv_absolute_errno_h
  18829.            gl_cv_next_errno_h='"'$gl_header'"'
  18830.  
  18831.  
  18832. fi
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
  18834. $as_echo "$gl_cv_next_errno_h" >&6; }
  18835.      fi
  18836.      NEXT_ERRNO_H=$gl_cv_next_errno_h
  18837.  
  18838.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18839.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18840.        gl_next_as_first_directive='<'errno.h'>'
  18841.      else
  18842.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18843.        gl_next_as_first_directive=$gl_cv_next_errno_h
  18844.      fi
  18845.      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
  18846.  
  18847.  
  18848.  
  18849.  
  18850.     ERRNO_H='errno.h'
  18851.   fi
  18852.  
  18853.    if test -n "$ERRNO_H"; then
  18854.   GL_GENERATE_ERRNO_H_TRUE=
  18855.   GL_GENERATE_ERRNO_H_FALSE='#'
  18856. else
  18857.   GL_GENERATE_ERRNO_H_TRUE='#'
  18858.   GL_GENERATE_ERRNO_H_FALSE=
  18859. fi
  18860.  
  18861.  
  18862.   if test -n "$ERRNO_H"; then
  18863.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
  18864. $as_echo_n "checking for EMULTIHOP value... " >&6; }
  18865. if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
  18866.   $as_echo_n "(cached) " >&6
  18867. else
  18868.  
  18869.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18870. /* end confdefs.h.  */
  18871.  
  18872. #include <errno.h>
  18873. #ifdef EMULTIHOP
  18874. yes
  18875. #endif
  18876.  
  18877. _ACEOF
  18878. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18879.   $EGREP "yes" >/dev/null 2>&1; then :
  18880.   gl_cv_header_errno_h_EMULTIHOP=yes
  18881. else
  18882.   gl_cv_header_errno_h_EMULTIHOP=no
  18883. fi
  18884. rm -f conftest*
  18885.  
  18886.       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
  18887.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18888. /* end confdefs.h.  */
  18889.  
  18890. #define _XOPEN_SOURCE_EXTENDED 1
  18891. #include <errno.h>
  18892. #ifdef EMULTIHOP
  18893. yes
  18894. #endif
  18895.  
  18896. _ACEOF
  18897. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18898.   $EGREP "yes" >/dev/null 2>&1; then :
  18899.   gl_cv_header_errno_h_EMULTIHOP=hidden
  18900. fi
  18901. rm -f conftest*
  18902.  
  18903.         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
  18904.                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
  18905. #define _XOPEN_SOURCE_EXTENDED 1
  18906. #include <errno.h>
  18907. /* The following two lines are a workaround against an autoconf-2.52 bug.  */
  18908. #include <stdio.h>
  18909. #include <stdlib.h>
  18910. "; then :
  18911.  
  18912. fi
  18913.  
  18914.         fi
  18915.       fi
  18916.  
  18917. fi
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
  18919. $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
  18920.     case $gl_cv_header_errno_h_EMULTIHOP in
  18921.       yes | no)
  18922.         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
  18923.         ;;
  18924.       *)
  18925.         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
  18926.         ;;
  18927.     esac
  18928.  
  18929.  
  18930.   fi
  18931.  
  18932.  
  18933.   if test -n "$ERRNO_H"; then
  18934.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
  18935. $as_echo_n "checking for ENOLINK value... " >&6; }
  18936. if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
  18937.   $as_echo_n "(cached) " >&6
  18938. else
  18939.  
  18940.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18941. /* end confdefs.h.  */
  18942.  
  18943. #include <errno.h>
  18944. #ifdef ENOLINK
  18945. yes
  18946. #endif
  18947.  
  18948. _ACEOF
  18949. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18950.   $EGREP "yes" >/dev/null 2>&1; then :
  18951.   gl_cv_header_errno_h_ENOLINK=yes
  18952. else
  18953.   gl_cv_header_errno_h_ENOLINK=no
  18954. fi
  18955. rm -f conftest*
  18956.  
  18957.       if test $gl_cv_header_errno_h_ENOLINK = no; then
  18958.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18959. /* end confdefs.h.  */
  18960.  
  18961. #define _XOPEN_SOURCE_EXTENDED 1
  18962. #include <errno.h>
  18963. #ifdef ENOLINK
  18964. yes
  18965. #endif
  18966.  
  18967. _ACEOF
  18968. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18969.   $EGREP "yes" >/dev/null 2>&1; then :
  18970.   gl_cv_header_errno_h_ENOLINK=hidden
  18971. fi
  18972. rm -f conftest*
  18973.  
  18974.         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
  18975.                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
  18976. #define _XOPEN_SOURCE_EXTENDED 1
  18977. #include <errno.h>
  18978. /* The following two lines are a workaround against an autoconf-2.52 bug.  */
  18979. #include <stdio.h>
  18980. #include <stdlib.h>
  18981. "; then :
  18982.  
  18983. fi
  18984.  
  18985.         fi
  18986.       fi
  18987.  
  18988. fi
  18989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
  18990. $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
  18991.     case $gl_cv_header_errno_h_ENOLINK in
  18992.       yes | no)
  18993.         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
  18994.         ;;
  18995.       *)
  18996.         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
  18997.         ;;
  18998.     esac
  18999.  
  19000.  
  19001.   fi
  19002.  
  19003.  
  19004.   if test -n "$ERRNO_H"; then
  19005.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
  19006. $as_echo_n "checking for EOVERFLOW value... " >&6; }
  19007. if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
  19008.   $as_echo_n "(cached) " >&6
  19009. else
  19010.  
  19011.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19012. /* end confdefs.h.  */
  19013.  
  19014. #include <errno.h>
  19015. #ifdef EOVERFLOW
  19016. yes
  19017. #endif
  19018.  
  19019. _ACEOF
  19020. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19021.   $EGREP "yes" >/dev/null 2>&1; then :
  19022.   gl_cv_header_errno_h_EOVERFLOW=yes
  19023. else
  19024.   gl_cv_header_errno_h_EOVERFLOW=no
  19025. fi
  19026. rm -f conftest*
  19027.  
  19028.       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
  19029.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19030. /* end confdefs.h.  */
  19031.  
  19032. #define _XOPEN_SOURCE_EXTENDED 1
  19033. #include <errno.h>
  19034. #ifdef EOVERFLOW
  19035. yes
  19036. #endif
  19037.  
  19038. _ACEOF
  19039. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19040.   $EGREP "yes" >/dev/null 2>&1; then :
  19041.   gl_cv_header_errno_h_EOVERFLOW=hidden
  19042. fi
  19043. rm -f conftest*
  19044.  
  19045.         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
  19046.                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
  19047. #define _XOPEN_SOURCE_EXTENDED 1
  19048. #include <errno.h>
  19049. /* The following two lines are a workaround against an autoconf-2.52 bug.  */
  19050. #include <stdio.h>
  19051. #include <stdlib.h>
  19052. "; then :
  19053.  
  19054. fi
  19055.  
  19056.         fi
  19057.       fi
  19058.  
  19059. fi
  19060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
  19061. $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
  19062.     case $gl_cv_header_errno_h_EOVERFLOW in
  19063.       yes | no)
  19064.         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
  19065.         ;;
  19066.       *)
  19067.         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
  19068.         ;;
  19069.     esac
  19070.  
  19071.  
  19072.   fi
  19073.  
  19074.  
  19075.  
  19076.  
  19077.  
  19078.  
  19079.      GNULIB_FCHMODAT=0;
  19080.   GNULIB_FSTAT=0;
  19081.   GNULIB_FSTATAT=0;
  19082.   GNULIB_FUTIMENS=0;
  19083.   GNULIB_LCHMOD=0;
  19084.   GNULIB_LSTAT=0;
  19085.   GNULIB_MKDIRAT=0;
  19086.   GNULIB_MKFIFO=0;
  19087.   GNULIB_MKFIFOAT=0;
  19088.   GNULIB_MKNOD=0;
  19089.   GNULIB_MKNODAT=0;
  19090.   GNULIB_STAT=0;
  19091.   GNULIB_UTIMENSAT=0;
  19092.     HAVE_FCHMODAT=1;
  19093.   HAVE_FSTATAT=1;
  19094.   HAVE_FUTIMENS=1;
  19095.   HAVE_LCHMOD=1;
  19096.   HAVE_LSTAT=1;
  19097.   HAVE_MKDIRAT=1;
  19098.   HAVE_MKFIFO=1;
  19099.   HAVE_MKFIFOAT=1;
  19100.   HAVE_MKNOD=1;
  19101.   HAVE_MKNODAT=1;
  19102.   HAVE_UTIMENSAT=1;
  19103.   REPLACE_FSTAT=0;
  19104.   REPLACE_FSTATAT=0;
  19105.   REPLACE_FUTIMENS=0;
  19106.   REPLACE_LSTAT=0;
  19107.   REPLACE_MKDIR=0;
  19108.   REPLACE_MKFIFO=0;
  19109.   REPLACE_MKNOD=0;
  19110.   REPLACE_STAT=0;
  19111.   REPLACE_UTIMENSAT=0;
  19112.  
  19113.  
  19114.  
  19115.  
  19116.  
  19117.   for ac_func in $gl_func_list
  19118. do :
  19119.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19120. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19121. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  19122.   cat >>confdefs.h <<_ACEOF
  19123. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19124. _ACEOF
  19125.  
  19126. fi
  19127. done
  19128.  
  19129.  
  19130.  
  19131.  
  19132.  
  19133.  
  19134.  
  19135.   :
  19136.  
  19137.  
  19138.  
  19139.  
  19140.  
  19141.   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
  19142.     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
  19143.  
  19144. $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
  19145.  
  19146.   else
  19147.     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
  19148.   fi
  19149.  
  19150.  
  19151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  19152. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  19153. if ${ac_cv_header_stat_broken+:} false; then :
  19154.   $as_echo_n "(cached) " >&6
  19155. else
  19156.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19157. /* end confdefs.h.  */
  19158. #include <sys/types.h>
  19159. #include <sys/stat.h>
  19160.  
  19161. #if defined S_ISBLK && defined S_IFDIR
  19162. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  19163. #endif
  19164.  
  19165. #if defined S_ISBLK && defined S_IFCHR
  19166. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  19167. #endif
  19168.  
  19169. #if defined S_ISLNK && defined S_IFREG
  19170. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  19171. #endif
  19172.  
  19173. #if defined S_ISSOCK && defined S_IFREG
  19174. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  19175. #endif
  19176.  
  19177. _ACEOF
  19178. if ac_fn_c_try_compile "$LINENO"; then :
  19179.   ac_cv_header_stat_broken=no
  19180. else
  19181.   ac_cv_header_stat_broken=yes
  19182. fi
  19183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19184. fi
  19185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  19186. $as_echo "$ac_cv_header_stat_broken" >&6; }
  19187. if test $ac_cv_header_stat_broken = yes; then
  19188.  
  19189. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  19190.  
  19191. fi
  19192.  
  19193.  
  19194.  
  19195.  
  19196.  
  19197.  
  19198. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  19199. if test "x$ac_cv_type_mode_t" = xyes; then :
  19200.  
  19201. else
  19202.  
  19203. cat >>confdefs.h <<_ACEOF
  19204. #define mode_t int
  19205. _ACEOF
  19206.  
  19207. fi
  19208.  
  19209.  
  19210.  
  19211.   case "$host_os" in
  19212.     mingw*)
  19213.                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
  19214. $as_echo_n "checking for 64-bit off_t... " >&6; }
  19215. if ${gl_cv_type_off_t_64+:} false; then :
  19216.   $as_echo_n "(cached) " >&6
  19217. else
  19218.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19219. /* end confdefs.h.  */
  19220. #include <sys/types.h>
  19221.                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
  19222.  
  19223. int
  19224. main ()
  19225. {
  19226.  
  19227.   ;
  19228.   return 0;
  19229. }
  19230. _ACEOF
  19231. if ac_fn_c_try_compile "$LINENO"; then :
  19232.   gl_cv_type_off_t_64=yes
  19233. else
  19234.   gl_cv_type_off_t_64=no
  19235. fi
  19236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19237.  
  19238. fi
  19239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
  19240. $as_echo "$gl_cv_type_off_t_64" >&6; }
  19241.       if test $gl_cv_type_off_t_64 = no; then
  19242.         WINDOWS_64_BIT_OFF_T=1
  19243.       else
  19244.         WINDOWS_64_BIT_OFF_T=0
  19245.       fi
  19246.                   WINDOWS_64_BIT_ST_SIZE=1
  19247.       ;;
  19248.     *)
  19249.                                                       WINDOWS_64_BIT_OFF_T=0
  19250.       WINDOWS_64_BIT_ST_SIZE=0
  19251.       ;;
  19252.   esac
  19253.  
  19254.  
  19255.  
  19256.  
  19257.  
  19258.  
  19259.  
  19260.  
  19261.  
  19262.  
  19263.  
  19264.  
  19265.   :
  19266.  
  19267.  
  19268.  
  19269.  
  19270.  
  19271.  
  19272.  
  19273.  
  19274.      if test $gl_cv_have_include_next = yes; then
  19275.        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  19276.      else
  19277.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
  19278. $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
  19279. if ${gl_cv_next_sys_stat_h+:} false; then :
  19280.   $as_echo_n "(cached) " >&6
  19281. else
  19282.  
  19283.              if test $ac_cv_header_sys_stat_h = yes; then
  19284.  
  19285.  
  19286.  
  19287.  
  19288.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19289. /* end confdefs.h.  */
  19290. #include <sys/stat.h>
  19291. _ACEOF
  19292.                 case "$host_os" in
  19293.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  19294.     *)    gl_absname_cpp="$ac_cpp" ;;
  19295.   esac
  19296.  
  19297.   case "$host_os" in
  19298.     mingw*)
  19299.                                           gl_dirsep_regex='[/\\]'
  19300.       ;;
  19301.     *)
  19302.       gl_dirsep_regex='\/'
  19303.       ;;
  19304.   esac
  19305.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  19306.   gl_header_literal_regex=`echo 'sys/stat.h' \
  19307.                            | sed -e "$gl_make_literal_regex_sed"`
  19308.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  19309.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  19310.      s|^/[^/]|//&|
  19311.      p
  19312.      q
  19313.    }'
  19314.  
  19315.         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  19316.   sed -n "$gl_absolute_header_sed"`
  19317.  
  19318.            gl_header=$gl_cv_absolute_sys_stat_h
  19319.            gl_cv_next_sys_stat_h='"'$gl_header'"'
  19320.           else
  19321.                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  19322.              fi
  19323.  
  19324.  
  19325. fi
  19326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
  19327. $as_echo "$gl_cv_next_sys_stat_h" >&6; }
  19328.      fi
  19329.      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
  19330.  
  19331.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  19332.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  19333.        gl_next_as_first_directive='<'sys/stat.h'>'
  19334.      else
  19335.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  19336.        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
  19337.      fi
  19338.      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
  19339.  
  19340.  
  19341.  
  19342.  
  19343.  
  19344.  
  19345.  
  19346.  
  19347.  
  19348.  
  19349.  
  19350.   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
  19351.  
  19352. $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
  19353.  
  19354.   fi
  19355.  
  19356.       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
  19357.     #include <sys/stat.h>
  19358. "
  19359. if test "x$ac_cv_type_nlink_t" = xyes; then :
  19360.  
  19361. else
  19362.  
  19363. $as_echo "#define nlink_t int" >>confdefs.h
  19364.  
  19365. fi
  19366.  
  19367.  
  19368.  
  19369.     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
  19370.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  19371.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  19372. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  19373. if eval \${$as_gl_Symbol+:} false; then :
  19374.   $as_echo_n "(cached) " >&6
  19375. else
  19376.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19377. /* end confdefs.h.  */
  19378. #include <sys/stat.h>
  19379.  
  19380. int
  19381. main ()
  19382. {
  19383. #undef $gl_func
  19384.   (void) $gl_func;
  19385.   ;
  19386.   return 0;
  19387. }
  19388. _ACEOF
  19389. if ac_fn_c_try_compile "$LINENO"; then :
  19390.   eval "$as_gl_Symbol=yes"
  19391. else
  19392.   eval "$as_gl_Symbol=no"
  19393. fi
  19394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19395. fi
  19396. eval ac_res=\$$as_gl_Symbol
  19397.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19398. $as_echo "$ac_res" >&6; }
  19399.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  19400.   cat >>confdefs.h <<_ACEOF
  19401. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  19402. _ACEOF
  19403.  
  19404.                      eval ac_cv_have_decl_$gl_func=yes
  19405. fi
  19406.       done
  19407.  
  19408.  
  19409.  
  19410.   GNULIB_DPRINTF=0;
  19411.   GNULIB_FCLOSE=0;
  19412.   GNULIB_FDOPEN=0;
  19413.   GNULIB_FFLUSH=0;
  19414.   GNULIB_FGETC=0;
  19415.   GNULIB_FGETS=0;
  19416.   GNULIB_FOPEN=0;
  19417.   GNULIB_FPRINTF=0;
  19418.   GNULIB_FPRINTF_POSIX=0;
  19419.   GNULIB_FPURGE=0;
  19420.   GNULIB_FPUTC=0;
  19421.   GNULIB_FPUTS=0;
  19422.   GNULIB_FREAD=0;
  19423.   GNULIB_FREOPEN=0;
  19424.   GNULIB_FSCANF=0;
  19425.   GNULIB_FSEEK=0;
  19426.   GNULIB_FSEEKO=0;
  19427.   GNULIB_FTELL=0;
  19428.   GNULIB_FTELLO=0;
  19429.   GNULIB_FWRITE=0;
  19430.   GNULIB_GETC=0;
  19431.   GNULIB_GETCHAR=0;
  19432.   GNULIB_GETDELIM=0;
  19433.   GNULIB_GETLINE=0;
  19434.   GNULIB_OBSTACK_PRINTF=0;
  19435.   GNULIB_OBSTACK_PRINTF_POSIX=0;
  19436.   GNULIB_PCLOSE=0;
  19437.   GNULIB_PERROR=0;
  19438.   GNULIB_POPEN=0;
  19439.   GNULIB_PRINTF=0;
  19440.   GNULIB_PRINTF_POSIX=0;
  19441.   GNULIB_PUTC=0;
  19442.   GNULIB_PUTCHAR=0;
  19443.   GNULIB_PUTS=0;
  19444.   GNULIB_REMOVE=0;
  19445.   GNULIB_RENAME=0;
  19446.   GNULIB_RENAMEAT=0;
  19447.   GNULIB_SCANF=0;
  19448.   GNULIB_SNPRINTF=0;
  19449.   GNULIB_SPRINTF_POSIX=0;
  19450.   GNULIB_STDIO_H_NONBLOCKING=0;
  19451.   GNULIB_STDIO_H_SIGPIPE=0;
  19452.   GNULIB_TMPFILE=0;
  19453.   GNULIB_VASPRINTF=0;
  19454.   GNULIB_VFSCANF=0;
  19455.   GNULIB_VSCANF=0;
  19456.   GNULIB_VDPRINTF=0;
  19457.   GNULIB_VFPRINTF=0;
  19458.   GNULIB_VFPRINTF_POSIX=0;
  19459.   GNULIB_VPRINTF=0;
  19460.   GNULIB_VPRINTF_POSIX=0;
  19461.   GNULIB_VSNPRINTF=0;
  19462.   GNULIB_VSPRINTF_POSIX=0;
  19463.     HAVE_DECL_FPURGE=1;
  19464.   HAVE_DECL_FSEEKO=1;
  19465.   HAVE_DECL_FTELLO=1;
  19466.   HAVE_DECL_GETDELIM=1;
  19467.   HAVE_DECL_GETLINE=1;
  19468.   HAVE_DECL_OBSTACK_PRINTF=1;
  19469.   HAVE_DECL_SNPRINTF=1;
  19470.   HAVE_DECL_VSNPRINTF=1;
  19471.   HAVE_DPRINTF=1;
  19472.   HAVE_FSEEKO=1;
  19473.   HAVE_FTELLO=1;
  19474.   HAVE_PCLOSE=1;
  19475.   HAVE_POPEN=1;
  19476.   HAVE_RENAMEAT=1;
  19477.   HAVE_VASPRINTF=1;
  19478.   HAVE_VDPRINTF=1;
  19479.   REPLACE_DPRINTF=0;
  19480.   REPLACE_FCLOSE=0;
  19481.   REPLACE_FDOPEN=0;
  19482.   REPLACE_FFLUSH=0;
  19483.   REPLACE_FOPEN=0;
  19484.   REPLACE_FPRINTF=0;
  19485.   REPLACE_FPURGE=0;
  19486.   REPLACE_FREOPEN=0;
  19487.   REPLACE_FSEEK=0;
  19488.   REPLACE_FSEEKO=0;
  19489.   REPLACE_FTELL=0;
  19490.   REPLACE_FTELLO=0;
  19491.   REPLACE_GETDELIM=0;
  19492.   REPLACE_GETLINE=0;
  19493.   REPLACE_OBSTACK_PRINTF=0;
  19494.   REPLACE_PERROR=0;
  19495.   REPLACE_POPEN=0;
  19496.   REPLACE_PRINTF=0;
  19497.   REPLACE_REMOVE=0;
  19498.   REPLACE_RENAME=0;
  19499.   REPLACE_RENAMEAT=0;
  19500.   REPLACE_SNPRINTF=0;
  19501.   REPLACE_SPRINTF=0;
  19502.   REPLACE_STDIO_READ_FUNCS=0;
  19503.   REPLACE_STDIO_WRITE_FUNCS=0;
  19504.   REPLACE_TMPFILE=0;
  19505.   REPLACE_VASPRINTF=0;
  19506.   REPLACE_VDPRINTF=0;
  19507.   REPLACE_VFPRINTF=0;
  19508.   REPLACE_VPRINTF=0;
  19509.   REPLACE_VSNPRINTF=0;
  19510.   REPLACE_VSPRINTF=0;
  19511.  
  19512.  
  19513.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
  19514. $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
  19515. if ${gl_cv_var_stdin_large_offset+:} false; then :
  19516.   $as_echo_n "(cached) " >&6
  19517. else
  19518.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19519. /* end confdefs.h.  */
  19520. #include <stdio.h>
  19521. int
  19522. main ()
  19523. {
  19524. #if defined __SL64 && defined __SCLE /* cygwin */
  19525.   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
  19526.      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
  19527.      it is easier to do a version check than building a runtime test.  */
  19528. # include <cygwin/version.h>
  19529. # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
  19530.   choke me
  19531. # endif
  19532. #endif
  19533.   ;
  19534.   return 0;
  19535. }
  19536. _ACEOF
  19537. if ac_fn_c_try_link "$LINENO"; then :
  19538.   gl_cv_var_stdin_large_offset=yes
  19539. else
  19540.   gl_cv_var_stdin_large_offset=no
  19541. fi
  19542. rm -f core conftest.err conftest.$ac_objext \
  19543.     conftest$ac_exeext conftest.$ac_ext
  19544. fi
  19545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
  19546. $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
  19547.  
  19548.  
  19549.  
  19550. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  19551. if test "x$ac_cv_type_pid_t" = xyes; then :
  19552.  
  19553. else
  19554.  
  19555. cat >>confdefs.h <<_ACEOF
  19556. #define pid_t int
  19557. _ACEOF
  19558.  
  19559. fi
  19560.  
  19561.  
  19562.  
  19563.  
  19564.  
  19565.  
  19566.  
  19567.  
  19568.  
  19569.  
  19570.  
  19571.  
  19572.  
  19573.  
  19574.  
  19575.  
  19576.  
  19577.      if test $gl_cv_have_include_next = yes; then
  19578.        gl_cv_next_sys_types_h='<'sys/types.h'>'
  19579.      else
  19580.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
  19581. $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
  19582. if ${gl_cv_next_sys_types_h+:} false; then :
  19583.   $as_echo_n "(cached) " >&6
  19584. else
  19585.  
  19586.  
  19587.  
  19588.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19589. /* end confdefs.h.  */
  19590. #include <sys/types.h>
  19591. _ACEOF
  19592.                 case "$host_os" in
  19593.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  19594.     *)    gl_absname_cpp="$ac_cpp" ;;
  19595.   esac
  19596.  
  19597.   case "$host_os" in
  19598.     mingw*)
  19599.                                           gl_dirsep_regex='[/\\]'
  19600.       ;;
  19601.     *)
  19602.       gl_dirsep_regex='\/'
  19603.       ;;
  19604.   esac
  19605.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  19606.   gl_header_literal_regex=`echo 'sys/types.h' \
  19607.                            | sed -e "$gl_make_literal_regex_sed"`
  19608.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  19609.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  19610.      s|^/[^/]|//&|
  19611.      p
  19612.      q
  19613.    }'
  19614.  
  19615.         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  19616.   sed -n "$gl_absolute_header_sed"`
  19617.  
  19618.            gl_header=$gl_cv_absolute_sys_types_h
  19619.            gl_cv_next_sys_types_h='"'$gl_header'"'
  19620.  
  19621.  
  19622. fi
  19623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
  19624. $as_echo "$gl_cv_next_sys_types_h" >&6; }
  19625.      fi
  19626.      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
  19627.  
  19628.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  19629.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  19630.        gl_next_as_first_directive='<'sys/types.h'>'
  19631.      else
  19632.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  19633.        gl_next_as_first_directive=$gl_cv_next_sys_types_h
  19634.      fi
  19635.      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
  19636.  
  19637.  
  19638.  
  19639.  
  19640.  
  19641.  
  19642.  
  19643.  
  19644.  
  19645.  
  19646.  
  19647.  
  19648.       ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
  19649. if test "x$ac_cv_have_decl_ftello" = xyes; then :
  19650.   ac_have_decl=1
  19651. else
  19652.   ac_have_decl=0
  19653. fi
  19654.  
  19655. cat >>confdefs.h <<_ACEOF
  19656. #define HAVE_DECL_FTELLO $ac_have_decl
  19657. _ACEOF
  19658.  
  19659.  
  19660.  
  19661.  
  19662.  
  19663.  
  19664.  
  19665.  
  19666.  
  19667.  
  19668.  
  19669.   :
  19670.  
  19671.  
  19672.  
  19673.  
  19674.  
  19675.   if test $ac_cv_have_decl_ftello = no; then
  19676.     HAVE_DECL_FTELLO=0
  19677.   fi
  19678.  
  19679.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
  19680. $as_echo_n "checking for ftello... " >&6; }
  19681. if ${gl_cv_func_ftello+:} false; then :
  19682.   $as_echo_n "(cached) " >&6
  19683. else
  19684.  
  19685.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19686. /* end confdefs.h.  */
  19687. #include <stdio.h>
  19688. int
  19689. main ()
  19690. {
  19691. ftello (stdin);
  19692.   ;
  19693.   return 0;
  19694. }
  19695. _ACEOF
  19696. if ac_fn_c_try_link "$LINENO"; then :
  19697.   gl_cv_func_ftello=yes
  19698. else
  19699.   gl_cv_func_ftello=no
  19700. fi
  19701. rm -f core conftest.err conftest.$ac_objext \
  19702.     conftest$ac_exeext conftest.$ac_ext
  19703.  
  19704. fi
  19705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
  19706. $as_echo "$gl_cv_func_ftello" >&6; }
  19707.   if test $gl_cv_func_ftello = no; then
  19708.     HAVE_FTELLO=0
  19709.   else
  19710.     if test $WINDOWS_64_BIT_OFF_T = 1; then
  19711.       REPLACE_FTELLO=1
  19712.     fi
  19713.     if test $gl_cv_var_stdin_large_offset = no; then
  19714.       REPLACE_FTELLO=1
  19715.     fi
  19716.     if test $REPLACE_FTELLO = 0; then
  19717.  
  19718.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
  19719. $as_echo_n "checking whether ftello works... " >&6; }
  19720. if ${gl_cv_func_ftello_works+:} false; then :
  19721.   $as_echo_n "(cached) " >&6
  19722. else
  19723.  
  19724.                               case "$host_os" in
  19725.                       # Guess no on Solaris.
  19726.             solaris*) gl_cv_func_ftello_works="guessing no" ;;
  19727.                       # Guess yes otherwise.
  19728.             *)        gl_cv_func_ftello_works="guessing yes" ;;
  19729.           esac
  19730.           if test "$cross_compiling" = yes; then :
  19731.   :
  19732. else
  19733.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19734. /* end confdefs.h.  */
  19735.  
  19736. #include <stdio.h>
  19737. #include <stdlib.h>
  19738. #include <string.h>
  19739. #define TESTFILE "conftest.tmp"
  19740. int
  19741. main (void)
  19742. {
  19743.   FILE *fp;
  19744.  
  19745.   /* Create a file with some contents.  */
  19746.   fp = fopen (TESTFILE, "w");
  19747.   if (fp == NULL)
  19748.     return 70;
  19749.   if (fwrite ("foogarsh", 1, 8, fp) < 8)
  19750.     return 71;
  19751.   if (fclose (fp))
  19752.     return 72;
  19753.  
  19754.   /* The file's contents is now "foogarsh".  */
  19755.  
  19756.  /* Try writing after reading to EOF.  */
  19757.  fp = fopen (TESTFILE, "r+");
  19758.  if (fp == NULL)
  19759.    return 73;
  19760.  if (fseek (fp, -1, SEEK_END))
  19761.    return 74;
  19762.  if (!(getc (fp) == 'h'))
  19763.    return 1;
  19764.  if (!(getc (fp) == EOF))
  19765.    return 2;
  19766.  if (!(ftell (fp) == 8))
  19767.    return 3;
  19768.  if (!(ftell (fp) == 8))
  19769.    return 4;
  19770.  if (!(putc ('!', fp) == '!'))
  19771.    return 5;
  19772.  if (!(ftell (fp) == 9))
  19773.    return 6;
  19774.  if (!(fclose (fp) == 0))
  19775.    return 7;
  19776.  fp = fopen (TESTFILE, "r");
  19777.  if (fp == NULL)
  19778.    return 75;
  19779.  {
  19780.    char buf[10];
  19781.    if (!(fread (buf, 1, 10, fp) == 9))
  19782.      return 10;
  19783.    if (!(memcmp (buf, "foogarsh!", 9) == 0))
  19784.      return 11;
  19785.  }
  19786.  if (!(fclose (fp) == 0))
  19787.    return 12;
  19788.  
  19789.  /* The file's contents is now "foogarsh!".  */
  19790.  
  19791.   return 0;
  19792. }
  19793. _ACEOF
  19794. if ac_fn_c_try_run "$LINENO"; then :
  19795.   gl_cv_func_ftello_works=yes
  19796. else
  19797.   gl_cv_func_ftello_works=no
  19798. fi
  19799. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19800.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  19801. fi
  19802.  
  19803.  
  19804. fi
  19805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
  19806. $as_echo "$gl_cv_func_ftello_works" >&6; }
  19807.       case "$gl_cv_func_ftello_works" in
  19808.         *yes) ;;
  19809.         *)
  19810.           REPLACE_FTELLO=1
  19811.  
  19812. $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
  19813.  
  19814.           ;;
  19815.       esac
  19816.     fi
  19817.   fi
  19818.  
  19819.  
  19820.       ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
  19821. if test "x$ac_cv_have_decl_getdelim" = xyes; then :
  19822.   ac_have_decl=1
  19823. else
  19824.   ac_have_decl=0
  19825. fi
  19826.  
  19827. cat >>confdefs.h <<_ACEOF
  19828. #define HAVE_DECL_GETDELIM $ac_have_decl
  19829. _ACEOF
  19830.  
  19831.  
  19832.  
  19833.  
  19834.  
  19835.  
  19836.  
  19837.  
  19838.       ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
  19839. if test "x$ac_cv_have_decl_getline" = xyes; then :
  19840.   ac_have_decl=1
  19841. else
  19842.   ac_have_decl=0
  19843. fi
  19844.  
  19845. cat >>confdefs.h <<_ACEOF
  19846. #define HAVE_DECL_GETLINE $ac_have_decl
  19847. _ACEOF
  19848.  
  19849.  
  19850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  19851. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  19852. if ${ac_cv_c_restrict+:} false; then :
  19853.   $as_echo_n "(cached) " >&6
  19854. else
  19855.   ac_cv_c_restrict=no
  19856.    # The order here caters to the fact that C++ does not require restrict.
  19857.    for ac_kw in __restrict __restrict__ _Restrict restrict; do
  19858.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19859. /* end confdefs.h.  */
  19860. typedef int *int_ptr;
  19861.            int foo (int_ptr $ac_kw ip) { return ip[0]; }
  19862.            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
  19863.            int bar (int ip[$ac_kw]) { return ip[0]; }
  19864.  
  19865. int
  19866. main ()
  19867. {
  19868. int s[1];
  19869.            int *$ac_kw t = s;
  19870.            t[0] = 0;
  19871.            return foo (t) + bar (t);
  19872.  
  19873.   ;
  19874.   return 0;
  19875. }
  19876. _ACEOF
  19877. if ac_fn_c_try_compile "$LINENO"; then :
  19878.   ac_cv_c_restrict=$ac_kw
  19879. fi
  19880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19881.      test "$ac_cv_c_restrict" != no && break
  19882.    done
  19883.  
  19884. fi
  19885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  19886. $as_echo "$ac_cv_c_restrict" >&6; }
  19887.  
  19888.  case $ac_cv_c_restrict in
  19889.    restrict) ;;
  19890.    no) $as_echo "#define restrict /**/" >>confdefs.h
  19891.  ;;
  19892.    *)  cat >>confdefs.h <<_ACEOF
  19893. #define restrict $ac_cv_c_restrict
  19894. _ACEOF
  19895.  ;;
  19896.  esac
  19897.  
  19898.  
  19899.   GNULIB_GETTIMEOFDAY=0;
  19900.     HAVE_GETTIMEOFDAY=1;
  19901.   HAVE_STRUCT_TIMEVAL=1;
  19902.   HAVE_SYS_TIME_H=1;
  19903.   HAVE_TIMEZONE_T=0;
  19904.   REPLACE_GETTIMEOFDAY=0;
  19905.   REPLACE_STRUCT_TIMEVAL=0;
  19906.  
  19907.  
  19908.  
  19909.  
  19910.  
  19911.  
  19912.  
  19913.  
  19914.  
  19915.  
  19916.   :
  19917.  
  19918.  
  19919.  
  19920.  
  19921.  
  19922.  
  19923.  
  19924.  
  19925.  
  19926.  
  19927.  
  19928.   :
  19929.  
  19930.  
  19931.  
  19932.  
  19933.  
  19934.  
  19935.  
  19936.  
  19937.      if test $gl_cv_have_include_next = yes; then
  19938.        gl_cv_next_sys_time_h='<'sys/time.h'>'
  19939.      else
  19940.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
  19941. $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
  19942. if ${gl_cv_next_sys_time_h+:} false; then :
  19943.   $as_echo_n "(cached) " >&6
  19944. else
  19945.  
  19946.              if test $ac_cv_header_sys_time_h = yes; then
  19947.  
  19948.  
  19949.  
  19950.  
  19951.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19952. /* end confdefs.h.  */
  19953. #include <sys/time.h>
  19954. _ACEOF
  19955.                 case "$host_os" in
  19956.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  19957.     *)    gl_absname_cpp="$ac_cpp" ;;
  19958.   esac
  19959.  
  19960.   case "$host_os" in
  19961.     mingw*)
  19962.                                           gl_dirsep_regex='[/\\]'
  19963.       ;;
  19964.     *)
  19965.       gl_dirsep_regex='\/'
  19966.       ;;
  19967.   esac
  19968.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  19969.   gl_header_literal_regex=`echo 'sys/time.h' \
  19970.                            | sed -e "$gl_make_literal_regex_sed"`
  19971.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  19972.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  19973.      s|^/[^/]|//&|
  19974.      p
  19975.      q
  19976.    }'
  19977.  
  19978.         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  19979.   sed -n "$gl_absolute_header_sed"`
  19980.  
  19981.            gl_header=$gl_cv_absolute_sys_time_h
  19982.            gl_cv_next_sys_time_h='"'$gl_header'"'
  19983.           else
  19984.                gl_cv_next_sys_time_h='<'sys/time.h'>'
  19985.              fi
  19986.  
  19987.  
  19988. fi
  19989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
  19990. $as_echo "$gl_cv_next_sys_time_h" >&6; }
  19991.      fi
  19992.      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
  19993.  
  19994.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  19995.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  19996.        gl_next_as_first_directive='<'sys/time.h'>'
  19997.      else
  19998.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  19999.        gl_next_as_first_directive=$gl_cv_next_sys_time_h
  20000.      fi
  20001.      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
  20002.  
  20003.  
  20004.  
  20005.  
  20006.  
  20007.   if test $ac_cv_header_sys_time_h != yes; then
  20008.     HAVE_SYS_TIME_H=0
  20009.   fi
  20010.  
  20011.  
  20012.  
  20013.  
  20014.  
  20015.   :
  20016.  
  20017.  
  20018.  
  20019.  
  20020.  
  20021.   if test $ac_cv_header_sys_socket_h != yes; then
  20022.                     for ac_header in winsock2.h
  20023. do :
  20024.   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  20025. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  20026.   cat >>confdefs.h <<_ACEOF
  20027. #define HAVE_WINSOCK2_H 1
  20028. _ACEOF
  20029.  
  20030. fi
  20031.  
  20032. done
  20033.  
  20034.   fi
  20035.   if test "$ac_cv_header_winsock2_h" = yes; then
  20036.     HAVE_WINSOCK2_H=1
  20037.     UNISTD_H_HAVE_WINSOCK2_H=1
  20038.     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  20039.   else
  20040.     HAVE_WINSOCK2_H=0
  20041.   fi
  20042.  
  20043.  
  20044.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  20045. $as_echo_n "checking for struct timeval... " >&6; }
  20046. if ${gl_cv_sys_struct_timeval+:} false; then :
  20047.   $as_echo_n "(cached) " >&6
  20048. else
  20049.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20050. /* end confdefs.h.  */
  20051. #if HAVE_SYS_TIME_H
  20052.              #include <sys/time.h>
  20053.             #endif
  20054.             #include <time.h>
  20055.             #if HAVE_WINSOCK2_H
  20056.             # include <winsock2.h>
  20057.             #endif
  20058.  
  20059. int
  20060. main ()
  20061. {
  20062. static struct timeval x; x.tv_sec = x.tv_usec;
  20063.   ;
  20064.   return 0;
  20065. }
  20066. _ACEOF
  20067. if ac_fn_c_try_compile "$LINENO"; then :
  20068.   gl_cv_sys_struct_timeval=yes
  20069. else
  20070.   gl_cv_sys_struct_timeval=no
  20071. fi
  20072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20073.  
  20074. fi
  20075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
  20076. $as_echo "$gl_cv_sys_struct_timeval" >&6; }
  20077.   if test $gl_cv_sys_struct_timeval != yes; then
  20078.     HAVE_STRUCT_TIMEVAL=0
  20079.   else
  20080.                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
  20081. $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
  20082. if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
  20083.   $as_echo_n "(cached) " >&6
  20084. else
  20085.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20086. /* end confdefs.h.  */
  20087. #if HAVE_SYS_TIME_H
  20088.                #include <sys/time.h>
  20089.               #endif
  20090.               #include <time.h>
  20091.               #if HAVE_WINSOCK2_H
  20092.               # include <winsock2.h>
  20093.               #endif
  20094.  
  20095. int
  20096. main ()
  20097. {
  20098. static struct timeval x;
  20099.               typedef int verify_tv_sec_type[
  20100.                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
  20101.               ];
  20102.  
  20103.   ;
  20104.   return 0;
  20105. }
  20106. _ACEOF
  20107. if ac_fn_c_try_compile "$LINENO"; then :
  20108.   gl_cv_sys_struct_timeval_tv_sec=yes
  20109. else
  20110.   gl_cv_sys_struct_timeval_tv_sec=no
  20111. fi
  20112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20113.  
  20114. fi
  20115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
  20116. $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
  20117.     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
  20118.       REPLACE_STRUCT_TIMEVAL=1
  20119.     fi
  20120.   fi
  20121.  
  20122.  
  20123.     for gl_func in gettimeofday; do
  20124.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  20125.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  20126. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  20127. if eval \${$as_gl_Symbol+:} false; then :
  20128.   $as_echo_n "(cached) " >&6
  20129. else
  20130.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20131. /* end confdefs.h.  */
  20132.  
  20133. #if HAVE_SYS_TIME_H
  20134. # include <sys/time.h>
  20135. #endif
  20136. #include <time.h>
  20137.  
  20138. int
  20139. main ()
  20140. {
  20141. #undef $gl_func
  20142.   (void) $gl_func;
  20143.   ;
  20144.   return 0;
  20145. }
  20146. _ACEOF
  20147. if ac_fn_c_try_compile "$LINENO"; then :
  20148.   eval "$as_gl_Symbol=yes"
  20149. else
  20150.   eval "$as_gl_Symbol=no"
  20151. fi
  20152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20153. fi
  20154. eval ac_res=\$$as_gl_Symbol
  20155.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20156. $as_echo "$ac_res" >&6; }
  20157.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  20158.   cat >>confdefs.h <<_ACEOF
  20159. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  20160. _ACEOF
  20161.  
  20162.                      eval ac_cv_have_decl_$gl_func=yes
  20163. fi
  20164.       done
  20165.  
  20166.  
  20167.  
  20168.  
  20169.  
  20170.  
  20171.  
  20172.  
  20173.  
  20174.  
  20175.  
  20176.  
  20177.  
  20178.  
  20179.  
  20180.  
  20181.  
  20182.  
  20183.  
  20184.  
  20185.  
  20186.  
  20187.   :
  20188.  
  20189.  
  20190.  
  20191.  
  20192.  
  20193.  
  20194.  
  20195.  
  20196.      if test $gl_cv_have_include_next = yes; then
  20197.        gl_cv_next_limits_h='<'limits.h'>'
  20198.      else
  20199.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
  20200. $as_echo_n "checking absolute name of <limits.h>... " >&6; }
  20201. if ${gl_cv_next_limits_h+:} false; then :
  20202.   $as_echo_n "(cached) " >&6
  20203. else
  20204.  
  20205.              if test $ac_cv_header_limits_h = yes; then
  20206.  
  20207.  
  20208.  
  20209.  
  20210.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20211. /* end confdefs.h.  */
  20212. #include <limits.h>
  20213. _ACEOF
  20214.                 case "$host_os" in
  20215.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  20216.     *)    gl_absname_cpp="$ac_cpp" ;;
  20217.   esac
  20218.  
  20219.   case "$host_os" in
  20220.     mingw*)
  20221.                                           gl_dirsep_regex='[/\\]'
  20222.       ;;
  20223.     *)
  20224.       gl_dirsep_regex='\/'
  20225.       ;;
  20226.   esac
  20227.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  20228.   gl_header_literal_regex=`echo 'limits.h' \
  20229.                            | sed -e "$gl_make_literal_regex_sed"`
  20230.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  20231.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  20232.      s|^/[^/]|//&|
  20233.      p
  20234.      q
  20235.    }'
  20236.  
  20237.         gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  20238.   sed -n "$gl_absolute_header_sed"`
  20239.  
  20240.            gl_header=$gl_cv_absolute_limits_h
  20241.            gl_cv_next_limits_h='"'$gl_header'"'
  20242.           else
  20243.                gl_cv_next_limits_h='<'limits.h'>'
  20244.              fi
  20245.  
  20246.  
  20247. fi
  20248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
  20249. $as_echo "$gl_cv_next_limits_h" >&6; }
  20250.      fi
  20251.      NEXT_LIMITS_H=$gl_cv_next_limits_h
  20252.  
  20253.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  20254.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  20255.        gl_next_as_first_directive='<'limits.h'>'
  20256.      else
  20257.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  20258.        gl_next_as_first_directive=$gl_cv_next_limits_h
  20259.      fi
  20260.      NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
  20261.  
  20262.  
  20263.  
  20264.  
  20265.  
  20266.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
  20267. $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
  20268. if ${gl_cv_header_limits_width+:} false; then :
  20269.   $as_echo_n "(cached) " >&6
  20270. else
  20271.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20272. /* end confdefs.h.  */
  20273. #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
  20274.                            #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
  20275.                           #endif
  20276.                           #include <limits.h>
  20277.                           int ullw = ULLONG_WIDTH;
  20278. int
  20279. main ()
  20280. {
  20281.  
  20282.   ;
  20283.   return 0;
  20284. }
  20285. _ACEOF
  20286. if ac_fn_c_try_compile "$LINENO"; then :
  20287.   gl_cv_header_limits_width=yes
  20288. else
  20289.   gl_cv_header_limits_width=no
  20290. fi
  20291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20292. fi
  20293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
  20294. $as_echo "$gl_cv_header_limits_width" >&6; }
  20295.   if test "$gl_cv_header_limits_width" = yes; then
  20296.     LIMITS_H=
  20297.   else
  20298.     LIMITS_H=limits.h
  20299.   fi
  20300.  
  20301.    if test -n "$LIMITS_H"; then
  20302.   GL_GENERATE_LIMITS_H_TRUE=
  20303.   GL_GENERATE_LIMITS_H_FALSE='#'
  20304. else
  20305.   GL_GENERATE_LIMITS_H_TRUE='#'
  20306.   GL_GENERATE_LIMITS_H_FALSE=
  20307. fi
  20308.  
  20309.  
  20310.  
  20311.  
  20312.  
  20313.  
  20314.  
  20315.  
  20316.   GNULIB__EXIT=0;
  20317.   GNULIB_ATOLL=0;
  20318.   GNULIB_CALLOC_POSIX=0;
  20319.   GNULIB_CANONICALIZE_FILE_NAME=0;
  20320.   GNULIB_GETLOADAVG=0;
  20321.   GNULIB_GETSUBOPT=0;
  20322.   GNULIB_GRANTPT=0;
  20323.   GNULIB_MALLOC_POSIX=0;
  20324.   GNULIB_MBTOWC=0;
  20325.   GNULIB_MKDTEMP=0;
  20326.   GNULIB_MKOSTEMP=0;
  20327.   GNULIB_MKOSTEMPS=0;
  20328.   GNULIB_MKSTEMP=0;
  20329.   GNULIB_MKSTEMPS=0;
  20330.   GNULIB_POSIX_OPENPT=0;
  20331.   GNULIB_PTSNAME=0;
  20332.   GNULIB_PTSNAME_R=0;
  20333.   GNULIB_PUTENV=0;
  20334.   GNULIB_QSORT_R=0;
  20335.   GNULIB_RANDOM=0;
  20336.   GNULIB_RANDOM_R=0;
  20337.   GNULIB_REALLOC_POSIX=0;
  20338.   GNULIB_REALPATH=0;
  20339.   GNULIB_RPMATCH=0;
  20340.   GNULIB_SECURE_GETENV=0;
  20341.   GNULIB_SETENV=0;
  20342.   GNULIB_STRTOD=0;
  20343.   GNULIB_STRTOLL=0;
  20344.   GNULIB_STRTOULL=0;
  20345.   GNULIB_SYSTEM_POSIX=0;
  20346.   GNULIB_UNLOCKPT=0;
  20347.   GNULIB_UNSETENV=0;
  20348.   GNULIB_WCTOMB=0;
  20349.     HAVE__EXIT=1;
  20350.   HAVE_ATOLL=1;
  20351.   HAVE_CANONICALIZE_FILE_NAME=1;
  20352.   HAVE_DECL_GETLOADAVG=1;
  20353.   HAVE_GETSUBOPT=1;
  20354.   HAVE_GRANTPT=1;
  20355.   HAVE_MKDTEMP=1;
  20356.   HAVE_MKOSTEMP=1;
  20357.   HAVE_MKOSTEMPS=1;
  20358.   HAVE_MKSTEMP=1;
  20359.   HAVE_MKSTEMPS=1;
  20360.   HAVE_POSIX_OPENPT=1;
  20361.   HAVE_PTSNAME=1;
  20362.   HAVE_PTSNAME_R=1;
  20363.   HAVE_QSORT_R=1;
  20364.   HAVE_RANDOM=1;
  20365.   HAVE_RANDOM_H=1;
  20366.   HAVE_RANDOM_R=1;
  20367.   HAVE_REALPATH=1;
  20368.   HAVE_RPMATCH=1;
  20369.   HAVE_SECURE_GETENV=1;
  20370.   HAVE_SETENV=1;
  20371.   HAVE_DECL_SETENV=1;
  20372.   HAVE_STRTOD=1;
  20373.   HAVE_STRTOLL=1;
  20374.   HAVE_STRTOULL=1;
  20375.   HAVE_STRUCT_RANDOM_DATA=1;
  20376.   HAVE_SYS_LOADAVG_H=0;
  20377.   HAVE_UNLOCKPT=1;
  20378.   HAVE_DECL_UNSETENV=1;
  20379.   REPLACE_CALLOC=0;
  20380.   REPLACE_CANONICALIZE_FILE_NAME=0;
  20381.   REPLACE_MALLOC=0;
  20382.   REPLACE_MBTOWC=0;
  20383.   REPLACE_MKSTEMP=0;
  20384.   REPLACE_PTSNAME=0;
  20385.   REPLACE_PTSNAME_R=0;
  20386.   REPLACE_PUTENV=0;
  20387.   REPLACE_QSORT_R=0;
  20388.   REPLACE_RANDOM_R=0;
  20389.   REPLACE_REALLOC=0;
  20390.   REPLACE_REALPATH=0;
  20391.   REPLACE_SETENV=0;
  20392.   REPLACE_STRTOD=0;
  20393.   REPLACE_UNSETENV=0;
  20394.   REPLACE_WCTOMB=0;
  20395.  
  20396.  
  20397.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
  20398. $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
  20399. if ${gl_cv_func_malloc_posix+:} false; then :
  20400.   $as_echo_n "(cached) " >&6
  20401. else
  20402.  
  20403.                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20404. /* end confdefs.h.  */
  20405.  
  20406. int
  20407. main ()
  20408. {
  20409. #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
  20410.              choke me
  20411.              #endif
  20412.  
  20413.   ;
  20414.   return 0;
  20415. }
  20416. _ACEOF
  20417. if ac_fn_c_try_compile "$LINENO"; then :
  20418.   gl_cv_func_malloc_posix=yes
  20419. else
  20420.   gl_cv_func_malloc_posix=no
  20421. fi
  20422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20423.  
  20424. fi
  20425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
  20426. $as_echo "$gl_cv_func_malloc_posix" >&6; }
  20427.  
  20428.  
  20429.  
  20430.  
  20431.  
  20432.  
  20433.  
  20434.  
  20435.  
  20436.  
  20437.  
  20438.  
  20439.   GNULIB_FFSL=0;
  20440.   GNULIB_FFSLL=0;
  20441.   GNULIB_MEMCHR=0;
  20442.   GNULIB_MEMMEM=0;
  20443.   GNULIB_MEMPCPY=0;
  20444.   GNULIB_MEMRCHR=0;
  20445.   GNULIB_RAWMEMCHR=0;
  20446.   GNULIB_STPCPY=0;
  20447.   GNULIB_STPNCPY=0;
  20448.   GNULIB_STRCHRNUL=0;
  20449.   GNULIB_STRDUP=0;
  20450.   GNULIB_STRNCAT=0;
  20451.   GNULIB_STRNDUP=0;
  20452.   GNULIB_STRNLEN=0;
  20453.   GNULIB_STRPBRK=0;
  20454.   GNULIB_STRSEP=0;
  20455.   GNULIB_STRSTR=0;
  20456.   GNULIB_STRCASESTR=0;
  20457.   GNULIB_STRTOK_R=0;
  20458.   GNULIB_MBSLEN=0;
  20459.   GNULIB_MBSNLEN=0;
  20460.   GNULIB_MBSCHR=0;
  20461.   GNULIB_MBSRCHR=0;
  20462.   GNULIB_MBSSTR=0;
  20463.   GNULIB_MBSCASECMP=0;
  20464.   GNULIB_MBSNCASECMP=0;
  20465.   GNULIB_MBSPCASECMP=0;
  20466.   GNULIB_MBSCASESTR=0;
  20467.   GNULIB_MBSCSPN=0;
  20468.   GNULIB_MBSPBRK=0;
  20469.   GNULIB_MBSSPN=0;
  20470.   GNULIB_MBSSEP=0;
  20471.   GNULIB_MBSTOK_R=0;
  20472.   GNULIB_STRERROR=0;
  20473.   GNULIB_STRERROR_R=0;
  20474.   GNULIB_STRSIGNAL=0;
  20475.   GNULIB_STRVERSCMP=0;
  20476.   HAVE_MBSLEN=0;
  20477.     HAVE_FFSL=1;
  20478.   HAVE_FFSLL=1;
  20479.   HAVE_MEMCHR=1;
  20480.   HAVE_DECL_MEMMEM=1;
  20481.   HAVE_MEMPCPY=1;
  20482.   HAVE_DECL_MEMRCHR=1;
  20483.   HAVE_RAWMEMCHR=1;
  20484.   HAVE_STPCPY=1;
  20485.   HAVE_STPNCPY=1;
  20486.   HAVE_STRCHRNUL=1;
  20487.   HAVE_DECL_STRDUP=1;
  20488.   HAVE_DECL_STRNDUP=1;
  20489.   HAVE_DECL_STRNLEN=1;
  20490.   HAVE_STRPBRK=1;
  20491.   HAVE_STRSEP=1;
  20492.   HAVE_STRCASESTR=1;
  20493.   HAVE_DECL_STRTOK_R=1;
  20494.   HAVE_DECL_STRERROR_R=1;
  20495.   HAVE_DECL_STRSIGNAL=1;
  20496.   HAVE_STRVERSCMP=1;
  20497.   REPLACE_MEMCHR=0;
  20498.   REPLACE_MEMMEM=0;
  20499.   REPLACE_STPNCPY=0;
  20500.   REPLACE_STRDUP=0;
  20501.   REPLACE_STRSTR=0;
  20502.   REPLACE_STRCASESTR=0;
  20503.   REPLACE_STRCHRNUL=0;
  20504.   REPLACE_STRERROR=0;
  20505.   REPLACE_STRERROR_R=0;
  20506.   REPLACE_STRNCAT=0;
  20507.   REPLACE_STRNDUP=0;
  20508.   REPLACE_STRNLEN=0;
  20509.   REPLACE_STRSIGNAL=0;
  20510.   REPLACE_STRTOK_R=0;
  20511.   UNDEFINE_STRTOK_R=0;
  20512.  
  20513.  
  20514.  
  20515.  
  20516.  
  20517.   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
  20518.   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
  20519.   # irrelevant for anonymous mappings.
  20520.   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  20521. if test "x$ac_cv_func_mmap" = xyes; then :
  20522.   gl_have_mmap=yes
  20523. else
  20524.   gl_have_mmap=no
  20525. fi
  20526.  
  20527.  
  20528.   # Try to allow MAP_ANONYMOUS.
  20529.   gl_have_mmap_anonymous=no
  20530.   if test $gl_have_mmap = yes; then
  20531.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
  20532. $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
  20533.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20534. /* end confdefs.h.  */
  20535.  
  20536. #include <sys/mman.h>
  20537. #ifdef MAP_ANONYMOUS
  20538.     I cannot identify this map
  20539. #endif
  20540.  
  20541. _ACEOF
  20542. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20543.   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
  20544.   gl_have_mmap_anonymous=yes
  20545. fi
  20546. rm -f conftest*
  20547.  
  20548.     if test $gl_have_mmap_anonymous != yes; then
  20549.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20550. /* end confdefs.h.  */
  20551.  
  20552. #include <sys/mman.h>
  20553. #ifdef MAP_ANON
  20554.     I cannot identify this map
  20555. #endif
  20556.  
  20557. _ACEOF
  20558. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20559.   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
  20560.  
  20561. $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
  20562.  
  20563.          gl_have_mmap_anonymous=yes
  20564. fi
  20565. rm -f conftest*
  20566.  
  20567.     fi
  20568.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
  20569. $as_echo "$gl_have_mmap_anonymous" >&6; }
  20570.     if test $gl_have_mmap_anonymous = yes; then
  20571.  
  20572. $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
  20573.  
  20574.     fi
  20575.   fi
  20576.  
  20577.  
  20578.   :
  20579.  
  20580.  
  20581.  
  20582.  
  20583.  
  20584.  
  20585.   :
  20586.  
  20587.  
  20588.  
  20589.  
  20590.  
  20591.  
  20592.  
  20593.  
  20594.   if test $HAVE_MEMCHR = 1; then
  20595.     # Detect platform-specific bugs in some versions of glibc:
  20596.     # memchr should not dereference anything with length 0
  20597.     #   http://bugzilla.redhat.com/499689
  20598.     # memchr should not dereference overestimated length after a match
  20599.     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
  20600.     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
  20601.     # Assume that memchr works on platforms that lack mprotect.
  20602.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
  20603. $as_echo_n "checking whether memchr works... " >&6; }
  20604. if ${gl_cv_func_memchr_works+:} false; then :
  20605.   $as_echo_n "(cached) " >&6
  20606. else
  20607.   if test "$cross_compiling" = yes; then :
  20608.          gl_cv_func_memchr_works="guessing no"
  20609. else
  20610.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20611. /* end confdefs.h.  */
  20612.  
  20613. #include <string.h>
  20614. #if HAVE_SYS_MMAN_H
  20615. # include <fcntl.h>
  20616. # include <unistd.h>
  20617. # include <sys/types.h>
  20618. # include <sys/mman.h>
  20619. # ifndef MAP_FILE
  20620. #  define MAP_FILE 0
  20621. # endif
  20622. #endif
  20623.  
  20624. int
  20625. main ()
  20626. {
  20627.  
  20628.   int result = 0;
  20629.   char *fence = NULL;
  20630. #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
  20631. # if HAVE_MAP_ANONYMOUS
  20632.   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
  20633.   const int fd = -1;
  20634. # else /* !HAVE_MAP_ANONYMOUS */
  20635.   const int flags = MAP_FILE | MAP_PRIVATE;
  20636.   int fd = open ("/dev/zero", O_RDONLY, 0666);
  20637.   if (fd >= 0)
  20638. # endif
  20639.     {
  20640.       int pagesize = getpagesize ();
  20641.       char *two_pages =
  20642.         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
  20643.                        flags, fd, 0);
  20644.       if (two_pages != (char *)(-1)
  20645.           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
  20646.         fence = two_pages + pagesize;
  20647.     }
  20648. #endif
  20649.   if (fence)
  20650.     {
  20651.       if (memchr (fence, 0, 0))
  20652.         result |= 1;
  20653.       strcpy (fence - 9, "12345678");
  20654.       if (memchr (fence - 9, 0, 79) != fence - 1)
  20655.         result |= 2;
  20656.       if (memchr (fence - 1, 0, 3) != fence - 1)
  20657.         result |= 4;
  20658.     }
  20659.   return result;
  20660.  
  20661.   ;
  20662.   return 0;
  20663. }
  20664. _ACEOF
  20665. if ac_fn_c_try_run "$LINENO"; then :
  20666.   gl_cv_func_memchr_works=yes
  20667. else
  20668.   gl_cv_func_memchr_works=no
  20669. fi
  20670. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20671.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  20672. fi
  20673.  
  20674. fi
  20675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
  20676. $as_echo "$gl_cv_func_memchr_works" >&6; }
  20677.     if test "$gl_cv_func_memchr_works" != yes; then
  20678.       REPLACE_MEMCHR=1
  20679.     fi
  20680.   fi
  20681.  
  20682.  
  20683.       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
  20684. if test "x$ac_cv_have_decl_memmem" = xyes; then :
  20685.   ac_have_decl=1
  20686. else
  20687.   ac_have_decl=0
  20688. fi
  20689.  
  20690. cat >>confdefs.h <<_ACEOF
  20691. #define HAVE_DECL_MEMMEM $ac_have_decl
  20692. _ACEOF
  20693.  
  20694.  
  20695.  
  20696.  
  20697.  
  20698.  
  20699.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
  20700. $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
  20701. if ${gl_cv_minmax_in_limits_h+:} false; then :
  20702.   $as_echo_n "(cached) " >&6
  20703. else
  20704.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20705. /* end confdefs.h.  */
  20706. #include <limits.h>
  20707.             int x = MIN (42, 17);
  20708. int
  20709. main ()
  20710. {
  20711.  
  20712.   ;
  20713.   return 0;
  20714. }
  20715. _ACEOF
  20716. if ac_fn_c_try_compile "$LINENO"; then :
  20717.   gl_cv_minmax_in_limits_h=yes
  20718. else
  20719.   gl_cv_minmax_in_limits_h=no
  20720. fi
  20721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20722. fi
  20723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
  20724. $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
  20725.   if test $gl_cv_minmax_in_limits_h = yes; then
  20726.  
  20727. $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
  20728.  
  20729.   fi
  20730.  
  20731.  
  20732.  
  20733.  
  20734.  
  20735.  
  20736.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
  20737. $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
  20738. if ${gl_cv_minmax_in_sys_param_h+:} false; then :
  20739.   $as_echo_n "(cached) " >&6
  20740. else
  20741.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20742. /* end confdefs.h.  */
  20743. #include <sys/param.h>
  20744.             int x = MIN (42, 17);
  20745. int
  20746. main ()
  20747. {
  20748.  
  20749.   ;
  20750.   return 0;
  20751. }
  20752. _ACEOF
  20753. if ac_fn_c_try_compile "$LINENO"; then :
  20754.   gl_cv_minmax_in_sys_param_h=yes
  20755. else
  20756.   gl_cv_minmax_in_sys_param_h=no
  20757. fi
  20758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20759. fi
  20760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
  20761. $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
  20762.   if test $gl_cv_minmax_in_sys_param_h = yes; then
  20763.  
  20764. $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
  20765.  
  20766.   fi
  20767.  
  20768.  
  20769.  
  20770.  
  20771.  
  20772.  
  20773.  
  20774.  
  20775.     gl_cv_c_multiarch=no
  20776.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20777. /* end confdefs.h.  */
  20778. #ifndef __APPLE_CC__
  20779.          not a universal capable compiler
  20780.         #endif
  20781.         typedef int dummy;
  20782.  
  20783. _ACEOF
  20784. if ac_fn_c_try_compile "$LINENO"; then :
  20785.  
  20786.                arch=
  20787.      prev=
  20788.      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
  20789.        if test -n "$prev"; then
  20790.          case $word in
  20791.            i?86 | x86_64 | ppc | ppc64)
  20792.              if test -z "$arch" || test "$arch" = "$word"; then
  20793.                arch="$word"
  20794.              else
  20795.                gl_cv_c_multiarch=yes
  20796.              fi
  20797.              ;;
  20798.          esac
  20799.          prev=
  20800.        else
  20801.          if test "x$word" = "x-arch"; then
  20802.            prev=arch
  20803.          fi
  20804.        fi
  20805.      done
  20806.  
  20807. fi
  20808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20809.   if test $gl_cv_c_multiarch = yes; then
  20810.     APPLE_UNIVERSAL_BUILD=1
  20811.   else
  20812.     APPLE_UNIVERSAL_BUILD=0
  20813.   fi
  20814.  
  20815.  
  20816.  
  20817.   GNULIB_GETADDRINFO=0;
  20818.     HAVE_STRUCT_ADDRINFO=1;
  20819.   HAVE_DECL_FREEADDRINFO=1;
  20820.   HAVE_DECL_GAI_STRERROR=1;
  20821.   HAVE_DECL_GETADDRINFO=1;
  20822.   HAVE_DECL_GETNAMEINFO=1;
  20823.   REPLACE_GAI_STRERROR=0;
  20824.  
  20825.  
  20826.  
  20827.  
  20828.  
  20829.  
  20830.  
  20831.  
  20832.  
  20833.  
  20834.  
  20835.  
  20836.  
  20837.  
  20838.  
  20839.  
  20840.  
  20841.  
  20842.  
  20843.  
  20844.  
  20845.  
  20846.  
  20847.  
  20848.  
  20849.  
  20850.  
  20851.  
  20852.  
  20853.  
  20854.  
  20855.  
  20856.  
  20857.  
  20858.  
  20859.  
  20860.  
  20861.  
  20862.  
  20863.  
  20864.  
  20865.  
  20866.  
  20867.   :
  20868.  
  20869.  
  20870.  
  20871.  
  20872.  
  20873.  
  20874.  
  20875.  
  20876.  
  20877.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
  20878. $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
  20879. if ${gl_cv_func_snprintf_retval_c99+:} false; then :
  20880.   $as_echo_n "(cached) " >&6
  20881. else
  20882.  
  20883.       if test "$cross_compiling" = yes; then :
  20884.  
  20885.          case "$host_os" in
  20886.                                  # Guess yes on glibc systems.
  20887.            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
  20888.                                  # Guess yes on FreeBSD >= 5.
  20889.            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
  20890.            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
  20891.                                  # Guess yes on Mac OS X >= 10.3.
  20892.            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
  20893.            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
  20894.                                  # Guess yes on OpenBSD >= 3.9.
  20895.            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
  20896.                                  gl_cv_func_snprintf_retval_c99="guessing no";;
  20897.            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
  20898.                                  # Guess yes on Solaris >= 2.10.
  20899.            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
  20900.            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
  20901.                                  # Guess yes on AIX >= 4.
  20902.            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
  20903.            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
  20904.                                  # Guess yes on NetBSD >= 3.
  20905.            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
  20906.                                  gl_cv_func_snprintf_retval_c99="guessing no";;
  20907.            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
  20908.                                  # Guess yes on BeOS.
  20909.            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
  20910.                                  # If we don't know, assume the worst.
  20911.            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
  20912.          esac
  20913.  
  20914. else
  20915.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20916. /* end confdefs.h.  */
  20917.  
  20918. #include <stdio.h>
  20919. #include <string.h>
  20920. #if HAVE_SNPRINTF
  20921. # define my_snprintf snprintf
  20922. #else
  20923. # include <stdarg.h>
  20924. static int my_snprintf (char *buf, int size, const char *format, ...)
  20925. {
  20926.   va_list args;
  20927.   int ret;
  20928.   va_start (args, format);
  20929.   ret = vsnprintf (buf, size, format, args);
  20930.   va_end (args);
  20931.   return ret;
  20932. }
  20933. #endif
  20934. static char buf[100];
  20935. int main ()
  20936. {
  20937.   strcpy (buf, "ABCDEF");
  20938.   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
  20939.     return 1;
  20940.   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
  20941.     return 2;
  20942.   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
  20943.     return 3;
  20944.   return 0;
  20945. }
  20946. _ACEOF
  20947. if ac_fn_c_try_run "$LINENO"; then :
  20948.   gl_cv_func_snprintf_retval_c99=yes
  20949. else
  20950.   gl_cv_func_snprintf_retval_c99=no
  20951. fi
  20952. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20953.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  20954. fi
  20955.  
  20956.  
  20957. fi
  20958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
  20959. $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
  20960.  
  20961.  
  20962.       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  20963. if test "x$ac_cv_have_decl_snprintf" = xyes; then :
  20964.   ac_have_decl=1
  20965. else
  20966.   ac_have_decl=0
  20967. fi
  20968.  
  20969. cat >>confdefs.h <<_ACEOF
  20970. #define HAVE_DECL_SNPRINTF $ac_have_decl
  20971. _ACEOF
  20972.  
  20973.  
  20974.  
  20975.   :
  20976.  
  20977.  
  20978.  
  20979.  
  20980.  
  20981.    if test $ac_cv_header_sys_socket_h = no; then
  20982.                          for ac_header in ws2tcpip.h
  20983. do :
  20984.   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
  20985. if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
  20986.   cat >>confdefs.h <<_ACEOF
  20987. #define HAVE_WS2TCPIP_H 1
  20988. _ACEOF
  20989.  
  20990. fi
  20991.  
  20992. done
  20993.  
  20994.    fi
  20995.  
  20996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  20997. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  20998. if ${ac_cv_header_stdbool_h+:} false; then :
  20999.   $as_echo_n "(cached) " >&6
  21000. else
  21001.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21002. /* end confdefs.h.  */
  21003.  
  21004.              #include <stdbool.h>
  21005.  
  21006.              #ifdef __cplusplus
  21007.               typedef bool Bool;
  21008.              #else
  21009.               typedef _Bool Bool;
  21010.               #ifndef bool
  21011.                "error: bool is not defined"
  21012.               #endif
  21013.               #ifndef false
  21014.                "error: false is not defined"
  21015.               #endif
  21016.               #if false
  21017.                "error: false is not 0"
  21018.               #endif
  21019.               #ifndef true
  21020.                "error: true is not defined"
  21021.               #endif
  21022.               #if true != 1
  21023.                "error: true is not 1"
  21024.               #endif
  21025.              #endif
  21026.  
  21027.              #ifndef __bool_true_false_are_defined
  21028.               "error: __bool_true_false_are_defined is not defined"
  21029.              #endif
  21030.  
  21031.              struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
  21032.  
  21033.              char a[true == 1 ? 1 : -1];
  21034.              char b[false == 0 ? 1 : -1];
  21035.              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  21036.              char d[(bool) 0.5 == true ? 1 : -1];
  21037.              /* See body of main program for 'e'.  */
  21038.              char f[(Bool) 0.0 == false ? 1 : -1];
  21039.              char g[true];
  21040.              char h[sizeof (Bool)];
  21041.              char i[sizeof s.t];
  21042.              enum { j = false, k = true, l = false * true, m = true * 256 };
  21043.              /* The following fails for
  21044.                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  21045.              Bool n[m];
  21046.              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  21047.              char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  21048.              /* Catch a bug in an HP-UX C compiler.  See
  21049.                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  21050.                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  21051.               */
  21052.              Bool q = true;
  21053.              Bool *pq = &q;
  21054.              bool *qq = &q;
  21055.  
  21056. int
  21057. main ()
  21058. {
  21059.  
  21060.              bool e = &s;
  21061.              *pq |= q; *pq |= ! q;
  21062.              *qq |= q; *qq |= ! q;
  21063.              /* Refer to every declared value, to avoid compiler optimizations.  */
  21064.              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  21065.                      + !m + !n + !o + !p + !q + !pq + !qq);
  21066.  
  21067.   ;
  21068.   return 0;
  21069. }
  21070. _ACEOF
  21071. if ac_fn_c_try_compile "$LINENO"; then :
  21072.   ac_cv_header_stdbool_h=yes
  21073. else
  21074.   ac_cv_header_stdbool_h=no
  21075. fi
  21076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21077. fi
  21078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  21079. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  21080.    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  21081. if test "x$ac_cv_type__Bool" = xyes; then :
  21082.  
  21083. cat >>confdefs.h <<_ACEOF
  21084. #define HAVE__BOOL 1
  21085. _ACEOF
  21086.  
  21087.  
  21088. fi
  21089.  
  21090.  
  21091.  
  21092.     REPLACE_NULL=0;
  21093.   HAVE_MAX_ALIGN_T=1;
  21094.   HAVE_WCHAR_T=1;
  21095.  
  21096.  
  21097.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  21098. $as_echo_n "checking for wchar_t... " >&6; }
  21099. if ${gt_cv_c_wchar_t+:} false; then :
  21100.   $as_echo_n "(cached) " >&6
  21101. else
  21102.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21103. /* end confdefs.h.  */
  21104. #include <stddef.h>
  21105.             wchar_t foo = (wchar_t)'\0';
  21106. int
  21107. main ()
  21108. {
  21109.  
  21110.   ;
  21111.   return 0;
  21112. }
  21113. _ACEOF
  21114. if ac_fn_c_try_compile "$LINENO"; then :
  21115.   gt_cv_c_wchar_t=yes
  21116. else
  21117.   gt_cv_c_wchar_t=no
  21118. fi
  21119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21120. fi
  21121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  21122. $as_echo "$gt_cv_c_wchar_t" >&6; }
  21123.   if test $gt_cv_c_wchar_t = yes; then
  21124.  
  21125. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  21126.  
  21127.   fi
  21128.  
  21129.  
  21130.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  21131. $as_echo_n "checking for unsigned long long int... " >&6; }
  21132. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  21133.   $as_echo_n "(cached) " >&6
  21134. else
  21135.   ac_cv_type_unsigned_long_long_int=yes
  21136.      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  21137.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21138. /* end confdefs.h.  */
  21139.  
  21140.   /* For now, do not test the preprocessor; as of 2007 there are too many
  21141.          implementations with broken preprocessors.  Perhaps this can
  21142.          be revisited in 2012.  In the meantime, code should not expect
  21143.          #if to work with literals wider than 32 bits.  */
  21144.       /* Test literals.  */
  21145.       long long int ll = 9223372036854775807ll;
  21146.       long long int nll = -9223372036854775807LL;
  21147.       unsigned long long int ull = 18446744073709551615ULL;
  21148.       /* Test constant expressions.   */
  21149.       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  21150.                      ? 1 : -1)];
  21151.       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  21152.                      ? 1 : -1)];
  21153.       int i = 63;
  21154. int
  21155. main ()
  21156. {
  21157. /* Test availability of runtime routines for shift and division.  */
  21158.       long long int llmax = 9223372036854775807ll;
  21159.       unsigned long long int ullmax = 18446744073709551615ull;
  21160.       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  21161.               | (llmax / ll) | (llmax % ll)
  21162.               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  21163.               | (ullmax / ull) | (ullmax % ull));
  21164.   ;
  21165.   return 0;
  21166. }
  21167.  
  21168. _ACEOF
  21169. if ac_fn_c_try_link "$LINENO"; then :
  21170.  
  21171. else
  21172.   ac_cv_type_unsigned_long_long_int=no
  21173. fi
  21174. rm -f core conftest.err conftest.$ac_objext \
  21175.     conftest$ac_exeext conftest.$ac_ext
  21176.      fi
  21177. fi
  21178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  21179. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  21180.   if test $ac_cv_type_unsigned_long_long_int = yes; then
  21181.  
  21182. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  21183.  
  21184.   fi
  21185.  
  21186.  
  21187.  
  21188.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  21189. $as_echo_n "checking for long long int... " >&6; }
  21190. if ${ac_cv_type_long_long_int+:} false; then :
  21191.   $as_echo_n "(cached) " >&6
  21192. else
  21193.   ac_cv_type_long_long_int=yes
  21194.       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  21195.         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  21196.         if test $ac_cv_type_long_long_int = yes; then
  21197.                                         if test "$cross_compiling" = yes; then :
  21198.   :
  21199. else
  21200.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21201. /* end confdefs.h.  */
  21202. #include <limits.h>
  21203.                  #ifndef LLONG_MAX
  21204.                  # define HALF \
  21205.                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  21206.                  # define LLONG_MAX (HALF - 1 + HALF)
  21207.                  #endif
  21208. int
  21209. main ()
  21210. {
  21211. long long int n = 1;
  21212.                  int i;
  21213.                  for (i = 0; ; i++)
  21214.                    {
  21215.                      long long int m = n << i;
  21216.                      if (m >> i != n)
  21217.                        return 1;
  21218.                      if (LLONG_MAX / 2 < m)
  21219.                        break;
  21220.                    }
  21221.                  return 0;
  21222.   ;
  21223.   return 0;
  21224. }
  21225. _ACEOF
  21226. if ac_fn_c_try_run "$LINENO"; then :
  21227.  
  21228. else
  21229.   ac_cv_type_long_long_int=no
  21230. fi
  21231. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21232.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  21233. fi
  21234.  
  21235.         fi
  21236.       fi
  21237. fi
  21238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  21239. $as_echo "$ac_cv_type_long_long_int" >&6; }
  21240.   if test $ac_cv_type_long_long_int = yes; then
  21241.  
  21242. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  21243.  
  21244.   fi
  21245.  
  21246.  
  21247.  
  21248.  
  21249.  
  21250.  
  21251.  
  21252.  
  21253.  
  21254.  
  21255.  
  21256.  
  21257.  
  21258.  
  21259.  
  21260.  
  21261.   if test $ac_cv_type_long_long_int = yes; then
  21262.     HAVE_LONG_LONG_INT=1
  21263.   else
  21264.     HAVE_LONG_LONG_INT=0
  21265.   fi
  21266.  
  21267.  
  21268.   if test $ac_cv_type_unsigned_long_long_int = yes; then
  21269.     HAVE_UNSIGNED_LONG_LONG_INT=1
  21270.   else
  21271.     HAVE_UNSIGNED_LONG_LONG_INT=0
  21272.   fi
  21273.  
  21274.  
  21275.  
  21276.   :
  21277.  
  21278.  
  21279.  
  21280.  
  21281.  
  21282.   if test $ac_cv_header_wchar_h = yes; then
  21283.     HAVE_WCHAR_H=1
  21284.   else
  21285.     HAVE_WCHAR_H=0
  21286.   fi
  21287.  
  21288.  
  21289.       if test $ac_cv_header_inttypes_h = yes; then
  21290.     HAVE_INTTYPES_H=1
  21291.   else
  21292.     HAVE_INTTYPES_H=0
  21293.   fi
  21294.  
  21295.  
  21296.       if test $ac_cv_header_sys_types_h = yes; then
  21297.     HAVE_SYS_TYPES_H=1
  21298.   else
  21299.     HAVE_SYS_TYPES_H=0
  21300.   fi
  21301.  
  21302.  
  21303.  
  21304.  
  21305.  
  21306.  
  21307.  
  21308.  
  21309.   :
  21310.  
  21311.  
  21312.  
  21313.  
  21314.  
  21315.  
  21316.  
  21317.  
  21318.      if test $gl_cv_have_include_next = yes; then
  21319.        gl_cv_next_stdint_h='<'stdint.h'>'
  21320.      else
  21321.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
  21322. $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
  21323. if ${gl_cv_next_stdint_h+:} false; then :
  21324.   $as_echo_n "(cached) " >&6
  21325. else
  21326.  
  21327.              if test $ac_cv_header_stdint_h = yes; then
  21328.  
  21329.  
  21330.  
  21331.  
  21332.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21333. /* end confdefs.h.  */
  21334. #include <stdint.h>
  21335. _ACEOF
  21336.                 case "$host_os" in
  21337.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  21338.     *)    gl_absname_cpp="$ac_cpp" ;;
  21339.   esac
  21340.  
  21341.   case "$host_os" in
  21342.     mingw*)
  21343.                                           gl_dirsep_regex='[/\\]'
  21344.       ;;
  21345.     *)
  21346.       gl_dirsep_regex='\/'
  21347.       ;;
  21348.   esac
  21349.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  21350.   gl_header_literal_regex=`echo 'stdint.h' \
  21351.                            | sed -e "$gl_make_literal_regex_sed"`
  21352.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  21353.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  21354.      s|^/[^/]|//&|
  21355.      p
  21356.      q
  21357.    }'
  21358.  
  21359.         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  21360.   sed -n "$gl_absolute_header_sed"`
  21361.  
  21362.            gl_header=$gl_cv_absolute_stdint_h
  21363.            gl_cv_next_stdint_h='"'$gl_header'"'
  21364.           else
  21365.                gl_cv_next_stdint_h='<'stdint.h'>'
  21366.              fi
  21367.  
  21368.  
  21369. fi
  21370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
  21371. $as_echo "$gl_cv_next_stdint_h" >&6; }
  21372.      fi
  21373.      NEXT_STDINT_H=$gl_cv_next_stdint_h
  21374.  
  21375.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  21376.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  21377.        gl_next_as_first_directive='<'stdint.h'>'
  21378.      else
  21379.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  21380.        gl_next_as_first_directive=$gl_cv_next_stdint_h
  21381.      fi
  21382.      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
  21383.  
  21384.  
  21385.  
  21386.  
  21387.   if test $ac_cv_header_stdint_h = yes; then
  21388.     HAVE_STDINT_H=1
  21389.   else
  21390.     HAVE_STDINT_H=0
  21391.   fi
  21392.  
  21393.  
  21394.     if test $ac_cv_header_stdint_h = yes; then
  21395.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
  21396. $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
  21397. if ${gl_cv_header_working_stdint_h+:} false; then :
  21398.   $as_echo_n "(cached) " >&6
  21399. else
  21400.   gl_cv_header_working_stdint_h=no
  21401.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21402. /* end confdefs.h.  */
  21403.  
  21404.  
  21405. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  21406. #define __STDC_CONSTANT_MACROS 1
  21407. #define __STDC_LIMIT_MACROS 1
  21408. #include <stdint.h>
  21409. /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
  21410. #if !(defined WCHAR_MIN && defined WCHAR_MAX)
  21411. #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
  21412. #endif
  21413.  
  21414.  
  21415.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21416.      included before <wchar.h>.  */
  21417.   #include <stddef.h>
  21418.   #include <signal.h>
  21419.   #if HAVE_WCHAR_H
  21420.   # include <stdio.h>
  21421.   # include <time.h>
  21422.   # include <wchar.h>
  21423.   #endif
  21424.  
  21425.  
  21426. #ifdef INT8_MAX
  21427. int8_t a1 = INT8_MAX;
  21428. int8_t a1min = INT8_MIN;
  21429. #endif
  21430. #ifdef INT16_MAX
  21431. int16_t a2 = INT16_MAX;
  21432. int16_t a2min = INT16_MIN;
  21433. #endif
  21434. #ifdef INT32_MAX
  21435. int32_t a3 = INT32_MAX;
  21436. int32_t a3min = INT32_MIN;
  21437. #endif
  21438. #ifdef INT64_MAX
  21439. int64_t a4 = INT64_MAX;
  21440. int64_t a4min = INT64_MIN;
  21441. #endif
  21442. #ifdef UINT8_MAX
  21443. uint8_t b1 = UINT8_MAX;
  21444. #else
  21445. typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
  21446. #endif
  21447. #ifdef UINT16_MAX
  21448. uint16_t b2 = UINT16_MAX;
  21449. #endif
  21450. #ifdef UINT32_MAX
  21451. uint32_t b3 = UINT32_MAX;
  21452. #endif
  21453. #ifdef UINT64_MAX
  21454. uint64_t b4 = UINT64_MAX;
  21455. #endif
  21456. int_least8_t c1 = INT8_C (0x7f);
  21457. int_least8_t c1max = INT_LEAST8_MAX;
  21458. int_least8_t c1min = INT_LEAST8_MIN;
  21459. int_least16_t c2 = INT16_C (0x7fff);
  21460. int_least16_t c2max = INT_LEAST16_MAX;
  21461. int_least16_t c2min = INT_LEAST16_MIN;
  21462. int_least32_t c3 = INT32_C (0x7fffffff);
  21463. int_least32_t c3max = INT_LEAST32_MAX;
  21464. int_least32_t c3min = INT_LEAST32_MIN;
  21465. int_least64_t c4 = INT64_C (0x7fffffffffffffff);
  21466. int_least64_t c4max = INT_LEAST64_MAX;
  21467. int_least64_t c4min = INT_LEAST64_MIN;
  21468. uint_least8_t d1 = UINT8_C (0xff);
  21469. uint_least8_t d1max = UINT_LEAST8_MAX;
  21470. uint_least16_t d2 = UINT16_C (0xffff);
  21471. uint_least16_t d2max = UINT_LEAST16_MAX;
  21472. uint_least32_t d3 = UINT32_C (0xffffffff);
  21473. uint_least32_t d3max = UINT_LEAST32_MAX;
  21474. uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
  21475. uint_least64_t d4max = UINT_LEAST64_MAX;
  21476. int_fast8_t e1 = INT_FAST8_MAX;
  21477. int_fast8_t e1min = INT_FAST8_MIN;
  21478. int_fast16_t e2 = INT_FAST16_MAX;
  21479. int_fast16_t e2min = INT_FAST16_MIN;
  21480. int_fast32_t e3 = INT_FAST32_MAX;
  21481. int_fast32_t e3min = INT_FAST32_MIN;
  21482. int_fast64_t e4 = INT_FAST64_MAX;
  21483. int_fast64_t e4min = INT_FAST64_MIN;
  21484. uint_fast8_t f1 = UINT_FAST8_MAX;
  21485. uint_fast16_t f2 = UINT_FAST16_MAX;
  21486. uint_fast32_t f3 = UINT_FAST32_MAX;
  21487. uint_fast64_t f4 = UINT_FAST64_MAX;
  21488. #ifdef INTPTR_MAX
  21489. intptr_t g = INTPTR_MAX;
  21490. intptr_t gmin = INTPTR_MIN;
  21491. #endif
  21492. #ifdef UINTPTR_MAX
  21493. uintptr_t h = UINTPTR_MAX;
  21494. #endif
  21495. intmax_t i = INTMAX_MAX;
  21496. uintmax_t j = UINTMAX_MAX;
  21497.  
  21498. /* Check that SIZE_MAX has the correct type, if possible.  */
  21499. #if 201112 <= __STDC_VERSION__
  21500. int k = _Generic (SIZE_MAX, size_t: 0);
  21501. #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
  21502.        || (0x5110 <= __SUNPRO_C && !__STDC__))
  21503. extern size_t k;
  21504. extern __typeof__ (SIZE_MAX) k;
  21505. #endif
  21506.  
  21507. #include <limits.h> /* for CHAR_BIT */
  21508. #define TYPE_MINIMUM(t) \
  21509.   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
  21510. #define TYPE_MAXIMUM(t) \
  21511.   ((t) ((t) 0 < (t) -1 \
  21512.         ? (t) -1 \
  21513.         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
  21514. struct s {
  21515.   int check_PTRDIFF:
  21516.       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
  21517.       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
  21518.       ? 1 : -1;
  21519.   /* Detect bug in FreeBSD 6.0 / ia64.  */
  21520.   int check_SIG_ATOMIC:
  21521.       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
  21522.       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
  21523.       ? 1 : -1;
  21524.   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
  21525.   int check_WCHAR:
  21526.       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
  21527.       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
  21528.       ? 1 : -1;
  21529.   /* Detect bug in mingw.  */
  21530.   int check_WINT:
  21531.       WINT_MIN == TYPE_MINIMUM (wint_t)
  21532.       && WINT_MAX == TYPE_MAXIMUM (wint_t)
  21533.       ? 1 : -1;
  21534.  
  21535.   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
  21536.   int check_UINT8_C:
  21537.         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
  21538.   int check_UINT16_C:
  21539.         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
  21540.  
  21541.   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
  21542. #ifdef UINT8_MAX
  21543.   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
  21544. #endif
  21545. #ifdef UINT16_MAX
  21546.   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
  21547. #endif
  21548. #ifdef UINT32_MAX
  21549.   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
  21550. #endif
  21551. #ifdef UINT64_MAX
  21552.   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
  21553. #endif
  21554.   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
  21555.   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
  21556.   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
  21557.   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
  21558.   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
  21559.   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
  21560.   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
  21561.   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
  21562.   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
  21563.   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
  21564.   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
  21565. };
  21566.  
  21567. int
  21568. main ()
  21569. {
  21570.  
  21571.   ;
  21572.   return 0;
  21573. }
  21574. _ACEOF
  21575. if ac_fn_c_try_compile "$LINENO"; then :
  21576.                                                     if test "$cross_compiling" = yes; then :
  21577.                  gl_cv_header_working_stdint_h=yes
  21578.  
  21579. else
  21580.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21581. /* end confdefs.h.  */
  21582.  
  21583.  
  21584. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  21585. #define __STDC_CONSTANT_MACROS 1
  21586. #define __STDC_LIMIT_MACROS 1
  21587. #include <stdint.h>
  21588.  
  21589.  
  21590.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21591.      included before <wchar.h>.  */
  21592.   #include <stddef.h>
  21593.   #include <signal.h>
  21594.   #if HAVE_WCHAR_H
  21595.   # include <stdio.h>
  21596.   # include <time.h>
  21597.   # include <wchar.h>
  21598.   #endif
  21599.  
  21600.  
  21601. #include <stdio.h>
  21602. #include <string.h>
  21603. #define MVAL(macro) MVAL1(macro)
  21604. #define MVAL1(expression) #expression
  21605. static const char *macro_values[] =
  21606.   {
  21607. #ifdef INT8_MAX
  21608.     MVAL (INT8_MAX),
  21609. #endif
  21610. #ifdef INT16_MAX
  21611.     MVAL (INT16_MAX),
  21612. #endif
  21613. #ifdef INT32_MAX
  21614.     MVAL (INT32_MAX),
  21615. #endif
  21616. #ifdef INT64_MAX
  21617.     MVAL (INT64_MAX),
  21618. #endif
  21619. #ifdef UINT8_MAX
  21620.     MVAL (UINT8_MAX),
  21621. #endif
  21622. #ifdef UINT16_MAX
  21623.     MVAL (UINT16_MAX),
  21624. #endif
  21625. #ifdef UINT32_MAX
  21626.     MVAL (UINT32_MAX),
  21627. #endif
  21628. #ifdef UINT64_MAX
  21629.     MVAL (UINT64_MAX),
  21630. #endif
  21631.     NULL
  21632.   };
  21633.  
  21634. int
  21635. main ()
  21636. {
  21637.  
  21638.   const char **mv;
  21639.   for (mv = macro_values; *mv != NULL; mv++)
  21640.     {
  21641.       const char *value = *mv;
  21642.       /* Test whether it looks like a cast expression.  */
  21643.       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
  21644.           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
  21645.           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
  21646.           || strncmp (value, "((int)"/*)*/, 6) == 0
  21647.           || strncmp (value, "((signed short)"/*)*/, 15) == 0
  21648.           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
  21649.         return mv - macro_values + 1;
  21650.     }
  21651.   return 0;
  21652.  
  21653.   ;
  21654.   return 0;
  21655. }
  21656. _ACEOF
  21657. if ac_fn_c_try_run "$LINENO"; then :
  21658.   gl_cv_header_working_stdint_h=yes
  21659. fi
  21660. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21661.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  21662. fi
  21663.  
  21664.  
  21665. fi
  21666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21667.  
  21668. fi
  21669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
  21670. $as_echo "$gl_cv_header_working_stdint_h" >&6; }
  21671.   fi
  21672.  
  21673.   HAVE_C99_STDINT_H=0
  21674.   HAVE_SYS_BITYPES_H=0
  21675.   HAVE_SYS_INTTYPES_H=0
  21676.   STDINT_H=stdint.h
  21677.   if test "$gl_cv_header_working_stdint_h" = yes; then
  21678.     HAVE_C99_STDINT_H=1
  21679.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
  21680. $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
  21681. if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
  21682.   $as_echo_n "(cached) " >&6
  21683. else
  21684.   gl_cv_header_stdint_predates_cxx11_h=yes
  21685.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21686. /* end confdefs.h.  */
  21687.  
  21688.  
  21689. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  21690. #include <stdint.h>
  21691.  
  21692.  
  21693.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21694.      included before <wchar.h>.  */
  21695.   #include <stddef.h>
  21696.   #include <signal.h>
  21697.   #if HAVE_WCHAR_H
  21698.   # include <stdio.h>
  21699.   # include <time.h>
  21700.   # include <wchar.h>
  21701.   #endif
  21702.  
  21703.  
  21704. intmax_t im = INTMAX_MAX;
  21705. int32_t i32 = INT32_C (0x7fffffff);
  21706.  
  21707. int
  21708. main ()
  21709. {
  21710.  
  21711.   ;
  21712.   return 0;
  21713. }
  21714. _ACEOF
  21715. if ac_fn_c_try_compile "$LINENO"; then :
  21716.   gl_cv_header_stdint_predates_cxx11_h=no
  21717. fi
  21718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21719. fi
  21720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
  21721. $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
  21722.  
  21723.     if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
  21724.  
  21725. $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
  21726.  
  21727.  
  21728. $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
  21729.  
  21730.     fi
  21731.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
  21732. $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
  21733. if ${gl_cv_header_stdint_width+:} false; then :
  21734.   $as_echo_n "(cached) " >&6
  21735. else
  21736.   gl_cv_header_stdint_width=no
  21737.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21738. /* end confdefs.h.  */
  21739.  
  21740.             /* Work if build is not clean.  */
  21741.             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
  21742.             #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
  21743.              #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
  21744.             #endif
  21745.             #include <stdint.h>
  21746.  
  21747.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21748.      included before <wchar.h>.  */
  21749.   #include <stddef.h>
  21750.   #include <signal.h>
  21751.   #if HAVE_WCHAR_H
  21752.   # include <stdio.h>
  21753.   # include <time.h>
  21754.   # include <wchar.h>
  21755.   #endif
  21756.  
  21757.             int iw = UINTMAX_WIDTH;
  21758.  
  21759. int
  21760. main ()
  21761. {
  21762.  
  21763.   ;
  21764.   return 0;
  21765. }
  21766. _ACEOF
  21767. if ac_fn_c_try_compile "$LINENO"; then :
  21768.   gl_cv_header_stdint_width=yes
  21769. fi
  21770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21771. fi
  21772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
  21773. $as_echo "$gl_cv_header_stdint_width" >&6; }
  21774.     if test "$gl_cv_header_stdint_width" = yes; then
  21775.       STDINT_H=
  21776.     fi
  21777.   else
  21778.             for ac_header in sys/inttypes.h sys/bitypes.h
  21779. do :
  21780.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21781. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  21782. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21783.   cat >>confdefs.h <<_ACEOF
  21784. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21785. _ACEOF
  21786.  
  21787. fi
  21788.  
  21789. done
  21790.  
  21791.     if test $ac_cv_header_sys_inttypes_h = yes; then
  21792.       HAVE_SYS_INTTYPES_H=1
  21793.     fi
  21794.     if test $ac_cv_header_sys_bitypes_h = yes; then
  21795.       HAVE_SYS_BITYPES_H=1
  21796.     fi
  21797.  
  21798.  
  21799.   if test $APPLE_UNIVERSAL_BUILD = 0; then
  21800.  
  21801.  
  21802.   for gltype in ptrdiff_t size_t ; do
  21803.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  21804. $as_echo_n "checking for bit size of $gltype... " >&6; }
  21805. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  21806.   $as_echo_n "(cached) " >&6
  21807. else
  21808.   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
  21809.  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21810.     included before <wchar.h>.  */
  21811.  #include <stddef.h>
  21812.  #include <signal.h>
  21813.  #if HAVE_WCHAR_H
  21814.  # include <stdio.h>
  21815.  # include <time.h>
  21816.  # include <wchar.h>
  21817.  #endif
  21818.  
  21819. #include <limits.h>"; then :
  21820.  
  21821. else
  21822.   result=unknown
  21823. fi
  21824.  
  21825.        eval gl_cv_bitsizeof_${gltype}=\$result
  21826.  
  21827. fi
  21828. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  21829.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21830. $as_echo "$ac_res" >&6; }
  21831.     eval result=\$gl_cv_bitsizeof_${gltype}
  21832.     if test $result = unknown; then
  21833.                                                 result=0
  21834.     fi
  21835.     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  21836.     cat >>confdefs.h <<_ACEOF
  21837. #define BITSIZEOF_${GLTYPE} $result
  21838. _ACEOF
  21839.  
  21840.     eval BITSIZEOF_${GLTYPE}=\$result
  21841.   done
  21842.  
  21843.  
  21844.   fi
  21845.  
  21846.  
  21847.   for gltype in sig_atomic_t wchar_t wint_t ; do
  21848.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  21849. $as_echo_n "checking for bit size of $gltype... " >&6; }
  21850. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  21851.   $as_echo_n "(cached) " >&6
  21852. else
  21853.   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
  21854.  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21855.     included before <wchar.h>.  */
  21856.  #include <stddef.h>
  21857.  #include <signal.h>
  21858.  #if HAVE_WCHAR_H
  21859.  # include <stdio.h>
  21860.  # include <time.h>
  21861.  # include <wchar.h>
  21862.  #endif
  21863.  
  21864. #include <limits.h>"; then :
  21865.  
  21866. else
  21867.   result=unknown
  21868. fi
  21869.  
  21870.        eval gl_cv_bitsizeof_${gltype}=\$result
  21871.  
  21872. fi
  21873. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  21874.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21875. $as_echo "$ac_res" >&6; }
  21876.     eval result=\$gl_cv_bitsizeof_${gltype}
  21877.     if test $result = unknown; then
  21878.                                                 result=0
  21879.     fi
  21880.     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  21881.     cat >>confdefs.h <<_ACEOF
  21882. #define BITSIZEOF_${GLTYPE} $result
  21883. _ACEOF
  21884.  
  21885.     eval BITSIZEOF_${GLTYPE}=\$result
  21886.   done
  21887.  
  21888.  
  21889.  
  21890.  
  21891.   for gltype in sig_atomic_t wchar_t wint_t ; do
  21892.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
  21893. $as_echo_n "checking whether $gltype is signed... " >&6; }
  21894. if eval \${gl_cv_type_${gltype}_signed+:} false; then :
  21895.   $as_echo_n "(cached) " >&6
  21896. else
  21897.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21898. /* end confdefs.h.  */
  21899.  
  21900.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21901.      included before <wchar.h>.  */
  21902.   #include <stddef.h>
  21903.   #include <signal.h>
  21904.   #if HAVE_WCHAR_H
  21905.   # include <stdio.h>
  21906.   # include <time.h>
  21907.   # include <wchar.h>
  21908.   #endif
  21909.  
  21910.             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
  21911. int
  21912. main ()
  21913. {
  21914.  
  21915.   ;
  21916.   return 0;
  21917. }
  21918. _ACEOF
  21919. if ac_fn_c_try_compile "$LINENO"; then :
  21920.   result=yes
  21921. else
  21922.   result=no
  21923. fi
  21924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21925.        eval gl_cv_type_${gltype}_signed=\$result
  21926.  
  21927. fi
  21928. eval ac_res=\$gl_cv_type_${gltype}_signed
  21929.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21930. $as_echo "$ac_res" >&6; }
  21931.     eval result=\$gl_cv_type_${gltype}_signed
  21932.     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  21933.     if test "$result" = yes; then
  21934.       cat >>confdefs.h <<_ACEOF
  21935. #define HAVE_SIGNED_${GLTYPE} 1
  21936. _ACEOF
  21937.  
  21938.       eval HAVE_SIGNED_${GLTYPE}=1
  21939.     else
  21940.       eval HAVE_SIGNED_${GLTYPE}=0
  21941.     fi
  21942.   done
  21943.  
  21944.  
  21945.   gl_cv_type_ptrdiff_t_signed=yes
  21946.   gl_cv_type_size_t_signed=no
  21947.   if test $APPLE_UNIVERSAL_BUILD = 0; then
  21948.  
  21949.  
  21950.   for gltype in ptrdiff_t size_t ; do
  21951.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  21952. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  21953. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  21954.   $as_echo_n "(cached) " >&6
  21955. else
  21956.   eval gl_cv_type_${gltype}_suffix=no
  21957.        eval result=\$gl_cv_type_${gltype}_signed
  21958.        if test "$result" = yes; then
  21959.          glsufu=
  21960.        else
  21961.          glsufu=u
  21962.        fi
  21963.        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  21964.          case $glsuf in
  21965.            '')  gltype1='int';;
  21966.            l)   gltype1='long int';;
  21967.            ll)  gltype1='long long int';;
  21968.            i64) gltype1='__int64';;
  21969.            u)   gltype1='unsigned int';;
  21970.            ul)  gltype1='unsigned long int';;
  21971.            ull) gltype1='unsigned long long int';;
  21972.            ui64)gltype1='unsigned __int64';;
  21973.          esac
  21974.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21975. /* end confdefs.h.  */
  21976.  
  21977.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21978.      included before <wchar.h>.  */
  21979.   #include <stddef.h>
  21980.   #include <signal.h>
  21981.   #if HAVE_WCHAR_H
  21982.   # include <stdio.h>
  21983.   # include <time.h>
  21984.   # include <wchar.h>
  21985.   #endif
  21986.  
  21987.               extern $gltype foo;
  21988.               extern $gltype1 foo;
  21989. int
  21990. main ()
  21991. {
  21992.  
  21993.   ;
  21994.   return 0;
  21995. }
  21996. _ACEOF
  21997. if ac_fn_c_try_compile "$LINENO"; then :
  21998.   eval gl_cv_type_${gltype}_suffix=\$glsuf
  21999. fi
  22000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22001.          eval result=\$gl_cv_type_${gltype}_suffix
  22002.          test "$result" != no && break
  22003.        done
  22004. fi
  22005. eval ac_res=\$gl_cv_type_${gltype}_suffix
  22006.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22007. $as_echo "$ac_res" >&6; }
  22008.     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  22009.     eval result=\$gl_cv_type_${gltype}_suffix
  22010.     test "$result" = no && result=
  22011.     eval ${GLTYPE}_SUFFIX=\$result
  22012.     cat >>confdefs.h <<_ACEOF
  22013. #define ${GLTYPE}_SUFFIX $result
  22014. _ACEOF
  22015.  
  22016.   done
  22017.  
  22018.  
  22019.   fi
  22020.  
  22021.  
  22022.   for gltype in sig_atomic_t wchar_t wint_t ; do
  22023.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  22024. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  22025. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  22026.   $as_echo_n "(cached) " >&6
  22027. else
  22028.   eval gl_cv_type_${gltype}_suffix=no
  22029.        eval result=\$gl_cv_type_${gltype}_signed
  22030.        if test "$result" = yes; then
  22031.          glsufu=
  22032.        else
  22033.          glsufu=u
  22034.        fi
  22035.        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  22036.          case $glsuf in
  22037.            '')  gltype1='int';;
  22038.            l)   gltype1='long int';;
  22039.            ll)  gltype1='long long int';;
  22040.            i64) gltype1='__int64';;
  22041.            u)   gltype1='unsigned int';;
  22042.            ul)  gltype1='unsigned long int';;
  22043.            ull) gltype1='unsigned long long int';;
  22044.            ui64)gltype1='unsigned __int64';;
  22045.          esac
  22046.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22047. /* end confdefs.h.  */
  22048.  
  22049.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  22050.      included before <wchar.h>.  */
  22051.   #include <stddef.h>
  22052.   #include <signal.h>
  22053.   #if HAVE_WCHAR_H
  22054.   # include <stdio.h>
  22055.   # include <time.h>
  22056.   # include <wchar.h>
  22057.   #endif
  22058.  
  22059.               extern $gltype foo;
  22060.               extern $gltype1 foo;
  22061. int
  22062. main ()
  22063. {
  22064.  
  22065.   ;
  22066.   return 0;
  22067. }
  22068. _ACEOF
  22069. if ac_fn_c_try_compile "$LINENO"; then :
  22070.   eval gl_cv_type_${gltype}_suffix=\$glsuf
  22071. fi
  22072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22073.          eval result=\$gl_cv_type_${gltype}_suffix
  22074.          test "$result" != no && break
  22075.        done
  22076. fi
  22077. eval ac_res=\$gl_cv_type_${gltype}_suffix
  22078.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22079. $as_echo "$ac_res" >&6; }
  22080.     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  22081.     eval result=\$gl_cv_type_${gltype}_suffix
  22082.     test "$result" = no && result=
  22083.     eval ${GLTYPE}_SUFFIX=\$result
  22084.     cat >>confdefs.h <<_ACEOF
  22085. #define ${GLTYPE}_SUFFIX $result
  22086. _ACEOF
  22087.  
  22088.   done
  22089.  
  22090.  
  22091.  
  22092.           if test $BITSIZEOF_WINT_T -lt 32; then
  22093.     BITSIZEOF_WINT_T=32
  22094.   fi
  22095.  
  22096.   fi
  22097.  
  22098.   # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
  22099.   LIMITS_H=limits.h
  22100.    if test -n "$LIMITS_H"; then
  22101.   GL_GENERATE_LIMITS_H_TRUE=
  22102.   GL_GENERATE_LIMITS_H_FALSE='#'
  22103. else
  22104.   GL_GENERATE_LIMITS_H_TRUE='#'
  22105.   GL_GENERATE_LIMITS_H_FALSE=
  22106. fi
  22107.  
  22108.  
  22109.  
  22110.  
  22111.  
  22112.  
  22113.    if test -n "$STDINT_H"; then
  22114.   GL_GENERATE_STDINT_H_TRUE=
  22115.   GL_GENERATE_STDINT_H_FALSE='#'
  22116. else
  22117.   GL_GENERATE_STDINT_H_TRUE='#'
  22118.   GL_GENERATE_STDINT_H_FALSE=
  22119. fi
  22120.  
  22121.  
  22122.  
  22123.   GNULIB_FFS=0;
  22124.     HAVE_FFS=1;
  22125.   HAVE_STRCASECMP=1;
  22126.   HAVE_DECL_STRNCASECMP=1;
  22127.  
  22128.  
  22129.  
  22130.  
  22131.  
  22132.  
  22133.  
  22134.  
  22135.  
  22136.  
  22137.  
  22138.  
  22139.      if test $gl_cv_have_include_next = yes; then
  22140.        gl_cv_next_string_h='<'string.h'>'
  22141.      else
  22142.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
  22143. $as_echo_n "checking absolute name of <string.h>... " >&6; }
  22144. if ${gl_cv_next_string_h+:} false; then :
  22145.   $as_echo_n "(cached) " >&6
  22146. else
  22147.  
  22148.  
  22149.  
  22150.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22151. /* end confdefs.h.  */
  22152. #include <string.h>
  22153. _ACEOF
  22154.                 case "$host_os" in
  22155.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  22156.     *)    gl_absname_cpp="$ac_cpp" ;;
  22157.   esac
  22158.  
  22159.   case "$host_os" in
  22160.     mingw*)
  22161.                                           gl_dirsep_regex='[/\\]'
  22162.       ;;
  22163.     *)
  22164.       gl_dirsep_regex='\/'
  22165.       ;;
  22166.   esac
  22167.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  22168.   gl_header_literal_regex=`echo 'string.h' \
  22169.                            | sed -e "$gl_make_literal_regex_sed"`
  22170.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  22171.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  22172.      s|^/[^/]|//&|
  22173.      p
  22174.      q
  22175.    }'
  22176.  
  22177.         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  22178.   sed -n "$gl_absolute_header_sed"`
  22179.  
  22180.            gl_header=$gl_cv_absolute_string_h
  22181.            gl_cv_next_string_h='"'$gl_header'"'
  22182.  
  22183.  
  22184. fi
  22185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
  22186. $as_echo "$gl_cv_next_string_h" >&6; }
  22187.      fi
  22188.      NEXT_STRING_H=$gl_cv_next_string_h
  22189.  
  22190.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  22191.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  22192.        gl_next_as_first_directive='<'string.h'>'
  22193.      else
  22194.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  22195.        gl_next_as_first_directive=$gl_cv_next_string_h
  22196.      fi
  22197.      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
  22198.  
  22199.  
  22200.  
  22201.  
  22202.  
  22203.  
  22204.     for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
  22205.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  22206.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  22207. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  22208. if eval \${$as_gl_Symbol+:} false; then :
  22209.   $as_echo_n "(cached) " >&6
  22210. else
  22211.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22212. /* end confdefs.h.  */
  22213. #include <string.h>
  22214.  
  22215. int
  22216. main ()
  22217. {
  22218. #undef $gl_func
  22219.   (void) $gl_func;
  22220.   ;
  22221.   return 0;
  22222. }
  22223. _ACEOF
  22224. if ac_fn_c_try_compile "$LINENO"; then :
  22225.   eval "$as_gl_Symbol=yes"
  22226. else
  22227.   eval "$as_gl_Symbol=no"
  22228. fi
  22229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22230. fi
  22231. eval ac_res=\$$as_gl_Symbol
  22232.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22233. $as_echo "$ac_res" >&6; }
  22234.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  22235.   cat >>confdefs.h <<_ACEOF
  22236. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  22237. _ACEOF
  22238.  
  22239.                      eval ac_cv_have_decl_$gl_func=yes
  22240. fi
  22241.       done
  22242.  
  22243.  
  22244.  
  22245.  
  22246.  
  22247.  
  22248.  
  22249.  
  22250.  
  22251.  
  22252.  
  22253.  
  22254.  
  22255.  
  22256.  
  22257.  
  22258.   :
  22259.  
  22260.  
  22261.  
  22262.  
  22263.  
  22264.  
  22265.  
  22266.  
  22267.      if test $gl_cv_have_include_next = yes; then
  22268.        gl_cv_next_strings_h='<'strings.h'>'
  22269.      else
  22270.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
  22271. $as_echo_n "checking absolute name of <strings.h>... " >&6; }
  22272. if ${gl_cv_next_strings_h+:} false; then :
  22273.   $as_echo_n "(cached) " >&6
  22274. else
  22275.  
  22276.              if test $ac_cv_header_strings_h = yes; then
  22277.  
  22278.  
  22279.  
  22280.  
  22281.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22282. /* end confdefs.h.  */
  22283. #include <strings.h>
  22284. _ACEOF
  22285.                 case "$host_os" in
  22286.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  22287.     *)    gl_absname_cpp="$ac_cpp" ;;
  22288.   esac
  22289.  
  22290.   case "$host_os" in
  22291.     mingw*)
  22292.                                           gl_dirsep_regex='[/\\]'
  22293.       ;;
  22294.     *)
  22295.       gl_dirsep_regex='\/'
  22296.       ;;
  22297.   esac
  22298.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  22299.   gl_header_literal_regex=`echo 'strings.h' \
  22300.                            | sed -e "$gl_make_literal_regex_sed"`
  22301.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  22302.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  22303.      s|^/[^/]|//&|
  22304.      p
  22305.      q
  22306.    }'
  22307.  
  22308.         gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  22309.   sed -n "$gl_absolute_header_sed"`
  22310.  
  22311.            gl_header=$gl_cv_absolute_strings_h
  22312.            gl_cv_next_strings_h='"'$gl_header'"'
  22313.           else
  22314.                gl_cv_next_strings_h='<'strings.h'>'
  22315.              fi
  22316.  
  22317.  
  22318. fi
  22319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
  22320. $as_echo "$gl_cv_next_strings_h" >&6; }
  22321.      fi
  22322.      NEXT_STRINGS_H=$gl_cv_next_strings_h
  22323.  
  22324.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  22325.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  22326.        gl_next_as_first_directive='<'strings.h'>'
  22327.      else
  22328.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  22329.        gl_next_as_first_directive=$gl_cv_next_strings_h
  22330.      fi
  22331.      NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
  22332.  
  22333.  
  22334.  
  22335.  
  22336.   if test $ac_cv_header_strings_h = yes; then
  22337.     HAVE_STRINGS_H=1
  22338.   else
  22339.     HAVE_STRINGS_H=0
  22340.   fi
  22341.  
  22342.  
  22343.  
  22344.     for gl_func in ffs strcasecmp strncasecmp; do
  22345.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  22346.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  22347. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  22348. if eval \${$as_gl_Symbol+:} false; then :
  22349.   $as_echo_n "(cached) " >&6
  22350. else
  22351.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22352. /* end confdefs.h.  */
  22353.  
  22354.     /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
  22355.        <strings.h>.  */
  22356.     #include <sys/types.h>
  22357.     #include <strings.h>
  22358.  
  22359. int
  22360. main ()
  22361. {
  22362. #undef $gl_func
  22363.   (void) $gl_func;
  22364.   ;
  22365.   return 0;
  22366. }
  22367. _ACEOF
  22368. if ac_fn_c_try_compile "$LINENO"; then :
  22369.   eval "$as_gl_Symbol=yes"
  22370. else
  22371.   eval "$as_gl_Symbol=no"
  22372. fi
  22373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22374. fi
  22375. eval ac_res=\$$as_gl_Symbol
  22376.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22377. $as_echo "$ac_res" >&6; }
  22378.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  22379.   cat >>confdefs.h <<_ACEOF
  22380. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  22381. _ACEOF
  22382.  
  22383.                      eval ac_cv_have_decl_$gl_func=yes
  22384. fi
  22385.       done
  22386.  
  22387.  
  22388.  
  22389.       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
  22390. if test "x$ac_cv_have_decl_strndup" = xyes; then :
  22391.   ac_have_decl=1
  22392. else
  22393.   ac_have_decl=0
  22394. fi
  22395.  
  22396. cat >>confdefs.h <<_ACEOF
  22397. #define HAVE_DECL_STRNDUP $ac_have_decl
  22398. _ACEOF
  22399.  
  22400.  
  22401.  
  22402.  
  22403.  
  22404.  
  22405.  
  22406.  
  22407.       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  22408. if test "x$ac_cv_have_decl_strnlen" = xyes; then :
  22409.   ac_have_decl=1
  22410. else
  22411.   ac_have_decl=0
  22412. fi
  22413.  
  22414. cat >>confdefs.h <<_ACEOF
  22415. #define HAVE_DECL_STRNLEN $ac_have_decl
  22416. _ACEOF
  22417.  
  22418.  
  22419.  
  22420.       ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
  22421. if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
  22422.   ac_have_decl=1
  22423. else
  22424.   ac_have_decl=0
  22425. fi
  22426.  
  22427. cat >>confdefs.h <<_ACEOF
  22428. #define HAVE_DECL_STRTOK_R $ac_have_decl
  22429. _ACEOF
  22430.  
  22431.  
  22432.  
  22433.   GNULIB_SOCKET=0;
  22434.   GNULIB_CONNECT=0;
  22435.   GNULIB_ACCEPT=0;
  22436.   GNULIB_BIND=0;
  22437.   GNULIB_GETPEERNAME=0;
  22438.   GNULIB_GETSOCKNAME=0;
  22439.   GNULIB_GETSOCKOPT=0;
  22440.   GNULIB_LISTEN=0;
  22441.   GNULIB_RECV=0;
  22442.   GNULIB_SEND=0;
  22443.   GNULIB_RECVFROM=0;
  22444.   GNULIB_SENDTO=0;
  22445.   GNULIB_SETSOCKOPT=0;
  22446.   GNULIB_SHUTDOWN=0;
  22447.   GNULIB_ACCEPT4=0;
  22448.   HAVE_STRUCT_SOCKADDR_STORAGE=1;
  22449.   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
  22450.  
  22451.   HAVE_SA_FAMILY_T=1;
  22452.   HAVE_ACCEPT4=1;
  22453.  
  22454.  
  22455.  
  22456.  
  22457.  
  22458.         case "$host_os" in
  22459.     osf*)
  22460.  
  22461. $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
  22462.  
  22463.       ;;
  22464.   esac
  22465.  
  22466.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
  22467. $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
  22468. if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
  22469.   $as_echo_n "(cached) " >&6
  22470. else
  22471.  
  22472.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22473. /* end confdefs.h.  */
  22474. #include <sys/socket.h>
  22475. int
  22476. main ()
  22477. {
  22478.  
  22479.   ;
  22480.   return 0;
  22481. }
  22482. _ACEOF
  22483. if ac_fn_c_try_compile "$LINENO"; then :
  22484.   gl_cv_header_sys_socket_h_selfcontained=yes
  22485. else
  22486.   gl_cv_header_sys_socket_h_selfcontained=no
  22487. fi
  22488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22489.  
  22490. fi
  22491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
  22492. $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
  22493.   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
  22494.             for ac_func in shutdown
  22495. do :
  22496.   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
  22497. if test "x$ac_cv_func_shutdown" = xyes; then :
  22498.   cat >>confdefs.h <<_ACEOF
  22499. #define HAVE_SHUTDOWN 1
  22500. _ACEOF
  22501.  
  22502. fi
  22503. done
  22504.  
  22505.     if test $ac_cv_func_shutdown = yes; then
  22506.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
  22507. $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
  22508. if ${gl_cv_header_sys_socket_h_shut+:} false; then :
  22509.   $as_echo_n "(cached) " >&6
  22510. else
  22511.  
  22512.           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22513. /* end confdefs.h.  */
  22514. #include <sys/socket.h>
  22515. int
  22516. main ()
  22517. {
  22518. int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
  22519.   ;
  22520.   return 0;
  22521. }
  22522. _ACEOF
  22523. if ac_fn_c_try_compile "$LINENO"; then :
  22524.   gl_cv_header_sys_socket_h_shut=yes
  22525. else
  22526.   gl_cv_header_sys_socket_h_shut=no
  22527. fi
  22528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22529.  
  22530. fi
  22531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
  22532. $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
  22533.       if test $gl_cv_header_sys_socket_h_shut = no; then
  22534.         SYS_SOCKET_H='sys/socket.h'
  22535.       fi
  22536.     fi
  22537.   fi
  22538.   # We need to check for ws2tcpip.h now.
  22539.  
  22540.  
  22541.  
  22542.  
  22543.  
  22544.  
  22545.  
  22546.  
  22547.   :
  22548.  
  22549.  
  22550.  
  22551.  
  22552.  
  22553.  
  22554.  
  22555.  
  22556.      if test $gl_cv_have_include_next = yes; then
  22557.        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
  22558.      else
  22559.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
  22560. $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
  22561. if ${gl_cv_next_sys_socket_h+:} false; then :
  22562.   $as_echo_n "(cached) " >&6
  22563. else
  22564.  
  22565.              if test $ac_cv_header_sys_socket_h = yes; then
  22566.  
  22567.  
  22568.  
  22569.  
  22570.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22571. /* end confdefs.h.  */
  22572. #include <sys/socket.h>
  22573. _ACEOF
  22574.                 case "$host_os" in
  22575.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  22576.     *)    gl_absname_cpp="$ac_cpp" ;;
  22577.   esac
  22578.  
  22579.   case "$host_os" in
  22580.     mingw*)
  22581.                                           gl_dirsep_regex='[/\\]'
  22582.       ;;
  22583.     *)
  22584.       gl_dirsep_regex='\/'
  22585.       ;;
  22586.   esac
  22587.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  22588.   gl_header_literal_regex=`echo 'sys/socket.h' \
  22589.                            | sed -e "$gl_make_literal_regex_sed"`
  22590.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  22591.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  22592.      s|^/[^/]|//&|
  22593.      p
  22594.      q
  22595.    }'
  22596.  
  22597.         gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  22598.   sed -n "$gl_absolute_header_sed"`
  22599.  
  22600.            gl_header=$gl_cv_absolute_sys_socket_h
  22601.            gl_cv_next_sys_socket_h='"'$gl_header'"'
  22602.           else
  22603.                gl_cv_next_sys_socket_h='<'sys/socket.h'>'
  22604.              fi
  22605.  
  22606.  
  22607. fi
  22608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
  22609. $as_echo "$gl_cv_next_sys_socket_h" >&6; }
  22610.      fi
  22611.      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
  22612.  
  22613.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  22614.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  22615.        gl_next_as_first_directive='<'sys/socket.h'>'
  22616.      else
  22617.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  22618.        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
  22619.      fi
  22620.      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
  22621.  
  22622.  
  22623.  
  22624.  
  22625.   if test $ac_cv_header_sys_socket_h = yes; then
  22626.     HAVE_SYS_SOCKET_H=1
  22627.     HAVE_WS2TCPIP_H=0
  22628.   else
  22629.     HAVE_SYS_SOCKET_H=0
  22630.     if test $ac_cv_header_ws2tcpip_h = yes; then
  22631.       HAVE_WS2TCPIP_H=1
  22632.     else
  22633.       HAVE_WS2TCPIP_H=0
  22634.     fi
  22635.   fi
  22636.  
  22637.  
  22638.  
  22639.   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
  22640.  /* sys/types.h is not needed according to POSIX, but the
  22641.     sys/socket.h in i386-unknown-freebsd4.10 and
  22642.     powerpc-apple-darwin5.5 required it. */
  22643. #include <sys/types.h>
  22644. #ifdef HAVE_SYS_SOCKET_H
  22645. #include <sys/socket.h>
  22646. #endif
  22647. #ifdef HAVE_WS2TCPIP_H
  22648. #include <ws2tcpip.h>
  22649. #endif
  22650.  
  22651. "
  22652. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
  22653.  
  22654. cat >>confdefs.h <<_ACEOF
  22655. #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  22656. _ACEOF
  22657.  
  22658.  
  22659. fi
  22660. ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
  22661.  /* sys/types.h is not needed according to POSIX, but the
  22662.     sys/socket.h in i386-unknown-freebsd4.10 and
  22663.     powerpc-apple-darwin5.5 required it. */
  22664. #include <sys/types.h>
  22665. #ifdef HAVE_SYS_SOCKET_H
  22666. #include <sys/socket.h>
  22667. #endif
  22668. #ifdef HAVE_WS2TCPIP_H
  22669. #include <ws2tcpip.h>
  22670. #endif
  22671.  
  22672. "
  22673. if test "x$ac_cv_type_sa_family_t" = xyes; then :
  22674.  
  22675. cat >>confdefs.h <<_ACEOF
  22676. #define HAVE_SA_FAMILY_T 1
  22677. _ACEOF
  22678.  
  22679.  
  22680. fi
  22681.  
  22682.   if test $ac_cv_type_struct_sockaddr_storage = no; then
  22683.     HAVE_STRUCT_SOCKADDR_STORAGE=0
  22684.   fi
  22685.   if test $ac_cv_type_sa_family_t = no; then
  22686.     HAVE_SA_FAMILY_T=0
  22687.   fi
  22688.   if test $ac_cv_type_struct_sockaddr_storage != no; then
  22689.     ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
  22690.       #ifdef HAVE_SYS_SOCKET_H
  22691.       #include <sys/socket.h>
  22692.       #endif
  22693.       #ifdef HAVE_WS2TCPIP_H
  22694.       #include <ws2tcpip.h>
  22695.       #endif
  22696.  
  22697. "
  22698. if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
  22699.  
  22700. cat >>confdefs.h <<_ACEOF
  22701. #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
  22702. _ACEOF
  22703.  
  22704.  
  22705. else
  22706.   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
  22707. fi
  22708.  
  22709.   fi
  22710.   if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
  22711.      || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
  22712.     SYS_SOCKET_H='sys/socket.h'
  22713.   fi
  22714.  
  22715.  
  22716.  
  22717.  
  22718.   :
  22719.  
  22720.  
  22721.  
  22722.  
  22723.  
  22724.   if test $ac_cv_header_sys_socket_h != yes; then
  22725.                     for ac_header in winsock2.h
  22726. do :
  22727.   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  22728. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  22729.   cat >>confdefs.h <<_ACEOF
  22730. #define HAVE_WINSOCK2_H 1
  22731. _ACEOF
  22732.  
  22733. fi
  22734.  
  22735. done
  22736.  
  22737.   fi
  22738.   if test "$ac_cv_header_winsock2_h" = yes; then
  22739.     HAVE_WINSOCK2_H=1
  22740.     UNISTD_H_HAVE_WINSOCK2_H=1
  22741.     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  22742.   else
  22743.     HAVE_WINSOCK2_H=0
  22744.   fi
  22745.  
  22746.  
  22747.  
  22748.  
  22749.     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
  22750.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  22751.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  22752. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  22753. if eval \${$as_gl_Symbol+:} false; then :
  22754.   $as_echo_n "(cached) " >&6
  22755. else
  22756.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22757. /* end confdefs.h.  */
  22758.  
  22759. /* Some systems require prerequisite headers.  */
  22760. #include <sys/types.h>
  22761. #include <sys/socket.h>
  22762.  
  22763. int
  22764. main ()
  22765. {
  22766. #undef $gl_func
  22767.   (void) $gl_func;
  22768.   ;
  22769.   return 0;
  22770. }
  22771. _ACEOF
  22772. if ac_fn_c_try_compile "$LINENO"; then :
  22773.   eval "$as_gl_Symbol=yes"
  22774. else
  22775.   eval "$as_gl_Symbol=no"
  22776. fi
  22777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22778. fi
  22779. eval ac_res=\$$as_gl_Symbol
  22780.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22781. $as_echo "$ac_res" >&6; }
  22782.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  22783.   cat >>confdefs.h <<_ACEOF
  22784. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  22785. _ACEOF
  22786.  
  22787.                      eval ac_cv_have_decl_$gl_func=yes
  22788. fi
  22789.       done
  22790.  
  22791.  
  22792.  
  22793.  
  22794.  
  22795.  
  22796.  
  22797.  
  22798.  
  22799.  
  22800.   GNULIB_MKTIME=0;
  22801.   GNULIB_NANOSLEEP=0;
  22802.   GNULIB_STRPTIME=0;
  22803.   GNULIB_TIMEGM=0;
  22804.   GNULIB_TIME_R=0;
  22805.   GNULIB_TIME_RZ=0;
  22806.     HAVE_DECL_LOCALTIME_R=1;
  22807.   HAVE_NANOSLEEP=1;
  22808.   HAVE_STRPTIME=1;
  22809.   HAVE_TIMEGM=1;
  22810.         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
  22811.   REPLACE_MKTIME=GNULIB_PORTCHECK;
  22812.   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
  22813.   REPLACE_TIMEGM=GNULIB_PORTCHECK;
  22814.  
  22815.       : ${GNULIB_GETTIMEOFDAY=0};
  22816.         REPLACE_GMTIME=0;
  22817.   REPLACE_LOCALTIME=0;
  22818.  
  22819.  
  22820.  
  22821.   :
  22822.  
  22823.  
  22824.  
  22825.  
  22826.  
  22827.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
  22828. $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
  22829. if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
  22830.   $as_echo_n "(cached) " >&6
  22831. else
  22832.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22833. /* end confdefs.h.  */
  22834. #include <time.h>
  22835.  
  22836. int
  22837. main ()
  22838. {
  22839. static struct timespec x; x.tv_sec = x.tv_nsec;
  22840.   ;
  22841.   return 0;
  22842. }
  22843. _ACEOF
  22844. if ac_fn_c_try_compile "$LINENO"; then :
  22845.   gl_cv_sys_struct_timespec_in_time_h=yes
  22846. else
  22847.   gl_cv_sys_struct_timespec_in_time_h=no
  22848. fi
  22849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22850. fi
  22851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
  22852. $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
  22853.  
  22854.   TIME_H_DEFINES_STRUCT_TIMESPEC=0
  22855.   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
  22856.   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
  22857.   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
  22858.   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
  22859.     TIME_H_DEFINES_STRUCT_TIMESPEC=1
  22860.   else
  22861.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
  22862. $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
  22863. if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
  22864.   $as_echo_n "(cached) " >&6
  22865. else
  22866.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22867. /* end confdefs.h.  */
  22868. #include <sys/time.h>
  22869.  
  22870. int
  22871. main ()
  22872. {
  22873. static struct timespec x; x.tv_sec = x.tv_nsec;
  22874.   ;
  22875.   return 0;
  22876. }
  22877. _ACEOF
  22878. if ac_fn_c_try_compile "$LINENO"; then :
  22879.   gl_cv_sys_struct_timespec_in_sys_time_h=yes
  22880. else
  22881.   gl_cv_sys_struct_timespec_in_sys_time_h=no
  22882. fi
  22883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22884. fi
  22885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
  22886. $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
  22887.     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
  22888.       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
  22889.     else
  22890.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
  22891. $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
  22892. if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
  22893.   $as_echo_n "(cached) " >&6
  22894. else
  22895.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22896. /* end confdefs.h.  */
  22897. #include <pthread.h>
  22898.  
  22899. int
  22900. main ()
  22901. {
  22902. static struct timespec x; x.tv_sec = x.tv_nsec;
  22903.   ;
  22904.   return 0;
  22905. }
  22906. _ACEOF
  22907. if ac_fn_c_try_compile "$LINENO"; then :
  22908.   gl_cv_sys_struct_timespec_in_pthread_h=yes
  22909. else
  22910.   gl_cv_sys_struct_timespec_in_pthread_h=no
  22911. fi
  22912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22913. fi
  22914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
  22915. $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
  22916.       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
  22917.         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
  22918.       else
  22919.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
  22920. $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
  22921. if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
  22922.   $as_echo_n "(cached) " >&6
  22923. else
  22924.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22925. /* end confdefs.h.  */
  22926. #include <unistd.h>
  22927.  
  22928. int
  22929. main ()
  22930. {
  22931. static struct timespec x; x.tv_sec = x.tv_nsec;
  22932.   ;
  22933.   return 0;
  22934. }
  22935. _ACEOF
  22936. if ac_fn_c_try_compile "$LINENO"; then :
  22937.   gl_cv_sys_struct_timespec_in_unistd_h=yes
  22938. else
  22939.   gl_cv_sys_struct_timespec_in_unistd_h=no
  22940. fi
  22941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22942. fi
  22943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
  22944. $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
  22945.         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
  22946.           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
  22947.         fi
  22948.       fi
  22949.     fi
  22950.   fi
  22951.  
  22952.  
  22953.  
  22954.  
  22955.  
  22956.  
  22957.  
  22958.  
  22959.  
  22960.  
  22961.  
  22962.  
  22963.  
  22964.  
  22965.  
  22966.  
  22967.      if test $gl_cv_have_include_next = yes; then
  22968.        gl_cv_next_time_h='<'time.h'>'
  22969.      else
  22970.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
  22971. $as_echo_n "checking absolute name of <time.h>... " >&6; }
  22972. if ${gl_cv_next_time_h+:} false; then :
  22973.   $as_echo_n "(cached) " >&6
  22974. else
  22975.  
  22976.  
  22977.  
  22978.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22979. /* end confdefs.h.  */
  22980. #include <time.h>
  22981. _ACEOF
  22982.                 case "$host_os" in
  22983.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  22984.     *)    gl_absname_cpp="$ac_cpp" ;;
  22985.   esac
  22986.  
  22987.   case "$host_os" in
  22988.     mingw*)
  22989.                                           gl_dirsep_regex='[/\\]'
  22990.       ;;
  22991.     *)
  22992.       gl_dirsep_regex='\/'
  22993.       ;;
  22994.   esac
  22995.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  22996.   gl_header_literal_regex=`echo 'time.h' \
  22997.                            | sed -e "$gl_make_literal_regex_sed"`
  22998.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  22999.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  23000.      s|^/[^/]|//&|
  23001.      p
  23002.      q
  23003.    }'
  23004.  
  23005.         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  23006.   sed -n "$gl_absolute_header_sed"`
  23007.  
  23008.            gl_header=$gl_cv_absolute_time_h
  23009.            gl_cv_next_time_h='"'$gl_header'"'
  23010.  
  23011.  
  23012. fi
  23013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
  23014. $as_echo "$gl_cv_next_time_h" >&6; }
  23015.      fi
  23016.      NEXT_TIME_H=$gl_cv_next_time_h
  23017.  
  23018.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  23019.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  23020.        gl_next_as_first_directive='<'time.h'>'
  23021.      else
  23022.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  23023.        gl_next_as_first_directive=$gl_cv_next_time_h
  23024.      fi
  23025.      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
  23026.  
  23027.  
  23028.  
  23029.  
  23030.  
  23031.  
  23032.  
  23033.  
  23034.  
  23035.  
  23036.  
  23037.  
  23038.  
  23039.  
  23040.  
  23041.  
  23042.  
  23043.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  23044. $as_echo_n "checking for wint_t... " >&6; }
  23045. if ${gt_cv_c_wint_t+:} false; then :
  23046.   $as_echo_n "(cached) " >&6
  23047. else
  23048.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23049. /* end confdefs.h.  */
  23050.  
  23051. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  23052.    <wchar.h>.
  23053.    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  23054.    before <wchar.h>.  */
  23055. #include <stddef.h>
  23056. #include <stdio.h>
  23057. #include <time.h>
  23058. #include <wchar.h>
  23059.             wint_t foo = (wchar_t)'\0';
  23060. int
  23061. main ()
  23062. {
  23063.  
  23064.   ;
  23065.   return 0;
  23066. }
  23067. _ACEOF
  23068. if ac_fn_c_try_compile "$LINENO"; then :
  23069.   gt_cv_c_wint_t=yes
  23070. else
  23071.   gt_cv_c_wint_t=no
  23072. fi
  23073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23074. fi
  23075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  23076. $as_echo "$gt_cv_c_wint_t" >&6; }
  23077.   if test $gt_cv_c_wint_t = yes; then
  23078.  
  23079. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  23080.  
  23081.   fi
  23082.  
  23083.  
  23084.  
  23085.  
  23086.  
  23087.  
  23088.  
  23089.  
  23090.   :
  23091.  
  23092.  
  23093.  
  23094.  
  23095.  
  23096.   if test $ac_cv_header_features_h = yes; then
  23097.     HAVE_FEATURES_H=1
  23098.   else
  23099.     HAVE_FEATURES_H=0
  23100.   fi
  23101.  
  23102.  
  23103.  
  23104.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  23105. $as_echo_n "checking for inttypes.h... " >&6; }
  23106. if ${gl_cv_header_inttypes_h+:} false; then :
  23107.   $as_echo_n "(cached) " >&6
  23108. else
  23109.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23110. /* end confdefs.h.  */
  23111.  
  23112. #include <sys/types.h>
  23113. #include <inttypes.h>
  23114.  
  23115. int
  23116. main ()
  23117. {
  23118. uintmax_t i = (uintmax_t) -1; return !i;
  23119.   ;
  23120.   return 0;
  23121. }
  23122. _ACEOF
  23123. if ac_fn_c_try_compile "$LINENO"; then :
  23124.   gl_cv_header_inttypes_h=yes
  23125. else
  23126.   gl_cv_header_inttypes_h=no
  23127. fi
  23128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23129. fi
  23130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  23131. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  23132.   if test $gl_cv_header_inttypes_h = yes; then
  23133.  
  23134. cat >>confdefs.h <<_ACEOF
  23135. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  23136. _ACEOF
  23137.  
  23138.   fi
  23139.  
  23140.  
  23141.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  23142. $as_echo_n "checking for stdint.h... " >&6; }
  23143. if ${gl_cv_header_stdint_h+:} false; then :
  23144.   $as_echo_n "(cached) " >&6
  23145. else
  23146.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23147. /* end confdefs.h.  */
  23148. #include <sys/types.h>
  23149.             #include <stdint.h>
  23150. int
  23151. main ()
  23152. {
  23153. uintmax_t i = (uintmax_t) -1; return !i;
  23154.   ;
  23155.   return 0;
  23156. }
  23157. _ACEOF
  23158. if ac_fn_c_try_compile "$LINENO"; then :
  23159.   gl_cv_header_stdint_h=yes
  23160. else
  23161.   gl_cv_header_stdint_h=no
  23162. fi
  23163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23164. fi
  23165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  23166. $as_echo "$gl_cv_header_stdint_h" >&6; }
  23167.   if test $gl_cv_header_stdint_h = yes; then
  23168.  
  23169. cat >>confdefs.h <<_ACEOF
  23170. #define HAVE_STDINT_H_WITH_UINTMAX 1
  23171. _ACEOF
  23172.  
  23173.   fi
  23174.  
  23175.  
  23176.  
  23177.  
  23178.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  23179. $as_echo_n "checking for intmax_t... " >&6; }
  23180. if ${gt_cv_c_intmax_t+:} false; then :
  23181.   $as_echo_n "(cached) " >&6
  23182. else
  23183.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23184. /* end confdefs.h.  */
  23185.  
  23186. #include <stddef.h>
  23187. #include <stdlib.h>
  23188. #if HAVE_STDINT_H_WITH_UINTMAX
  23189. #include <stdint.h>
  23190. #endif
  23191. #if HAVE_INTTYPES_H_WITH_UINTMAX
  23192. #include <inttypes.h>
  23193. #endif
  23194.  
  23195. int
  23196. main ()
  23197. {
  23198. intmax_t x = -1; return !x;
  23199.   ;
  23200.   return 0;
  23201. }
  23202. _ACEOF
  23203. if ac_fn_c_try_compile "$LINENO"; then :
  23204.   gt_cv_c_intmax_t=yes
  23205. else
  23206.   gt_cv_c_intmax_t=no
  23207. fi
  23208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23209. fi
  23210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  23211. $as_echo "$gt_cv_c_intmax_t" >&6; }
  23212.   if test $gt_cv_c_intmax_t = yes; then
  23213.  
  23214. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  23215.  
  23216.   else
  23217.  
  23218.     test $ac_cv_type_long_long_int = yes \
  23219.       && ac_type='long long' \
  23220.       || ac_type='long'
  23221.  
  23222. cat >>confdefs.h <<_ACEOF
  23223. #define intmax_t $ac_type
  23224. _ACEOF
  23225.  
  23226.   fi
  23227.  
  23228.  
  23229.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
  23230. $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
  23231. if ${gl_cv_cc_double_expbit0+:} false; then :
  23232.   $as_echo_n "(cached) " >&6
  23233. else
  23234.  
  23235.       if test "$cross_compiling" = yes; then :
  23236.  
  23237.                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23238. /* end confdefs.h.  */
  23239.  
  23240. #if defined arm || defined __arm || defined __arm__
  23241.   mixed_endianness
  23242. #endif
  23243.  
  23244. _ACEOF
  23245. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23246.   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
  23247.   gl_cv_cc_double_expbit0="unknown"
  23248. else
  23249.  
  23250.                                                          :
  23251. if ${ac_cv_c_bigendian+:} false; then :
  23252.   $as_echo_n "(cached) " >&6
  23253. else
  23254.   ac_cv_c_bigendian=unknown
  23255.     # See if we're dealing with a universal compiler.
  23256.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23257. /* end confdefs.h.  */
  23258. #ifndef __APPLE_CC__
  23259.                not a universal capable compiler
  23260.              #endif
  23261.              typedef int dummy;
  23262.  
  23263. _ACEOF
  23264. if ac_fn_c_try_compile "$LINENO"; then :
  23265.  
  23266.         # Check for potential -arch flags.  It is not universal unless
  23267.         # there are at least two -arch flags with different values.
  23268.         ac_arch=
  23269.         ac_prev=
  23270.         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  23271.          if test -n "$ac_prev"; then
  23272.            case $ac_word in
  23273.              i?86 | x86_64 | ppc | ppc64)
  23274.                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  23275.                  ac_arch=$ac_word
  23276.                else
  23277.                  ac_cv_c_bigendian=universal
  23278.                  break
  23279.                fi
  23280.                ;;
  23281.            esac
  23282.            ac_prev=
  23283.          elif test "x$ac_word" = "x-arch"; then
  23284.            ac_prev=arch
  23285.          fi
  23286.        done
  23287. fi
  23288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23289.     if test $ac_cv_c_bigendian = unknown; then
  23290.       # See if sys/param.h defines the BYTE_ORDER macro.
  23291.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23292. /* end confdefs.h.  */
  23293. #include <sys/types.h>
  23294.              #include <sys/param.h>
  23295.  
  23296. int
  23297. main ()
  23298. {
  23299. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  23300.                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  23301.                      && LITTLE_ENDIAN)
  23302.               bogus endian macros
  23303.              #endif
  23304.  
  23305.   ;
  23306.   return 0;
  23307. }
  23308. _ACEOF
  23309. if ac_fn_c_try_compile "$LINENO"; then :
  23310.   # It does; now see whether it defined to BIG_ENDIAN or not.
  23311.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23312. /* end confdefs.h.  */
  23313. #include <sys/types.h>
  23314.                 #include <sys/param.h>
  23315.  
  23316. int
  23317. main ()
  23318. {
  23319. #if BYTE_ORDER != BIG_ENDIAN
  23320.                  not big endian
  23321.                 #endif
  23322.  
  23323.   ;
  23324.   return 0;
  23325. }
  23326. _ACEOF
  23327. if ac_fn_c_try_compile "$LINENO"; then :
  23328.   ac_cv_c_bigendian=yes
  23329. else
  23330.   ac_cv_c_bigendian=no
  23331. fi
  23332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23333. fi
  23334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23335.     fi
  23336.     if test $ac_cv_c_bigendian = unknown; then
  23337.       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  23338.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23339. /* end confdefs.h.  */
  23340. #include <limits.h>
  23341.  
  23342. int
  23343. main ()
  23344. {
  23345. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  23346.               bogus endian macros
  23347.              #endif
  23348.  
  23349.   ;
  23350.   return 0;
  23351. }
  23352. _ACEOF
  23353. if ac_fn_c_try_compile "$LINENO"; then :
  23354.   # It does; now see whether it defined to _BIG_ENDIAN or not.
  23355.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23356. /* end confdefs.h.  */
  23357. #include <limits.h>
  23358.  
  23359. int
  23360. main ()
  23361. {
  23362. #ifndef _BIG_ENDIAN
  23363.                  not big endian
  23364.                 #endif
  23365.  
  23366.   ;
  23367.   return 0;
  23368. }
  23369. _ACEOF
  23370. if ac_fn_c_try_compile "$LINENO"; then :
  23371.   ac_cv_c_bigendian=yes
  23372. else
  23373.   ac_cv_c_bigendian=no
  23374. fi
  23375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23376. fi
  23377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23378.     fi
  23379.     if test $ac_cv_c_bigendian = unknown; then
  23380.       # Compile a test program.
  23381.       if test "$cross_compiling" = yes; then :
  23382.   # Try to guess by grepping values from an object file.
  23383.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23384. /* end confdefs.h.  */
  23385. short int ascii_mm[] =
  23386.                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  23387.                 short int ascii_ii[] =
  23388.                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  23389.                 int use_ascii (int i) {
  23390.                   return ascii_mm[i] + ascii_ii[i];
  23391.                 }
  23392.                 short int ebcdic_ii[] =
  23393.                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  23394.                 short int ebcdic_mm[] =
  23395.                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  23396.                 int use_ebcdic (int i) {
  23397.                   return ebcdic_mm[i] + ebcdic_ii[i];
  23398.                 }
  23399.                 extern int foo;
  23400.  
  23401. int
  23402. main ()
  23403. {
  23404. return use_ascii (foo) == use_ebcdic (foo);
  23405.   ;
  23406.   return 0;
  23407. }
  23408. _ACEOF
  23409. if ac_fn_c_try_compile "$LINENO"; then :
  23410.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  23411.               ac_cv_c_bigendian=yes
  23412.             fi
  23413.             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  23414.               if test "$ac_cv_c_bigendian" = unknown; then
  23415.                 ac_cv_c_bigendian=no
  23416.               else
  23417.                 # finding both strings is unlikely to happen, but who knows?
  23418.                 ac_cv_c_bigendian=unknown
  23419.               fi
  23420.             fi
  23421. fi
  23422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23423. else
  23424.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23425. /* end confdefs.h.  */
  23426. $ac_includes_default
  23427. int
  23428. main ()
  23429. {
  23430.  
  23431.              /* Are we little or big endian?  From Harbison&Steele.  */
  23432.              union
  23433.              {
  23434.                long int l;
  23435.                char c[sizeof (long int)];
  23436.              } u;
  23437.              u.l = 1;
  23438.              return u.c[sizeof (long int) - 1] == 1;
  23439.  
  23440.   ;
  23441.   return 0;
  23442. }
  23443. _ACEOF
  23444. if ac_fn_c_try_run "$LINENO"; then :
  23445.   ac_cv_c_bigendian=no
  23446. else
  23447.   ac_cv_c_bigendian=yes
  23448. fi
  23449. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23450.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  23451. fi
  23452.  
  23453.     fi
  23454. fi
  23455. :
  23456.  case $ac_cv_c_bigendian in #(
  23457.    yes)
  23458.      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
  23459.    no)
  23460.      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
  23461.    universal)
  23462.  
  23463. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  23464.  
  23465.      ;; #(
  23466.    *)
  23467.      gl_cv_cc_double_expbit0="unknown" ;;
  23468.  esac
  23469.  
  23470.  
  23471. fi
  23472. rm -f conftest*
  23473.  
  23474.  
  23475. else
  23476.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23477. /* end confdefs.h.  */
  23478.  
  23479. #include <float.h>
  23480. #include <stddef.h>
  23481. #include <stdio.h>
  23482. #include <string.h>
  23483. #define NWORDS \
  23484.   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
  23485. typedef union { double value; unsigned int word[NWORDS]; } memory_double;
  23486. static unsigned int ored_words[NWORDS];
  23487. static unsigned int anded_words[NWORDS];
  23488. static void add_to_ored_words (double x)
  23489. {
  23490.   memory_double m;
  23491.   size_t i;
  23492.   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
  23493.   memset (&m, 0, sizeof (memory_double));
  23494.   m.value = x;
  23495.   for (i = 0; i < NWORDS; i++)
  23496.     {
  23497.       ored_words[i] |= m.word[i];
  23498.       anded_words[i] &= m.word[i];
  23499.     }
  23500. }
  23501. int main ()
  23502. {
  23503.   size_t j;
  23504.   FILE *fp = fopen ("conftest.out", "w");
  23505.   if (fp == NULL)
  23506.     return 1;
  23507.   for (j = 0; j < NWORDS; j++)
  23508.     anded_words[j] = ~ (unsigned int) 0;
  23509.   add_to_ored_words (0.25);
  23510.   add_to_ored_words (0.5);
  23511.   add_to_ored_words (1.0);
  23512.   add_to_ored_words (2.0);
  23513.   add_to_ored_words (4.0);
  23514.   /* Remove bits that are common (e.g. if representation of the first mantissa
  23515.      bit is explicit).  */
  23516.   for (j = 0; j < NWORDS; j++)
  23517.     ored_words[j] &= ~anded_words[j];
  23518.   /* Now find the nonzero word.  */
  23519.   for (j = 0; j < NWORDS; j++)
  23520.     if (ored_words[j] != 0)
  23521.       break;
  23522.   if (j < NWORDS)
  23523.     {
  23524.       size_t i;
  23525.       for (i = j + 1; i < NWORDS; i++)
  23526.         if (ored_words[i] != 0)
  23527.           {
  23528.             fprintf (fp, "unknown");
  23529.             return (fclose (fp) != 0);
  23530.           }
  23531.       for (i = 0; ; i++)
  23532.         if ((ored_words[j] >> i) & 1)
  23533.           {
  23534.             fprintf (fp, "word %d bit %d", (int) j, (int) i);
  23535.             return (fclose (fp) != 0);
  23536.           }
  23537.     }
  23538.   fprintf (fp, "unknown");
  23539.   return (fclose (fp) != 0);
  23540. }
  23541.  
  23542. _ACEOF
  23543. if ac_fn_c_try_run "$LINENO"; then :
  23544.   gl_cv_cc_double_expbit0=`cat conftest.out`
  23545. else
  23546.   gl_cv_cc_double_expbit0="unknown"
  23547. fi
  23548. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23549.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  23550. fi
  23551.  
  23552.       rm -f conftest.out
  23553.  
  23554. fi
  23555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
  23556. $as_echo "$gl_cv_cc_double_expbit0" >&6; }
  23557.   case "$gl_cv_cc_double_expbit0" in
  23558.     word*bit*)
  23559.       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
  23560.       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
  23561.  
  23562. cat >>confdefs.h <<_ACEOF
  23563. #define DBL_EXPBIT0_WORD $word
  23564. _ACEOF
  23565.  
  23566.  
  23567. cat >>confdefs.h <<_ACEOF
  23568. #define DBL_EXPBIT0_BIT $bit
  23569. _ACEOF
  23570.  
  23571.       ;;
  23572.   esac
  23573.  
  23574.  
  23575.  
  23576.  
  23577.  
  23578.  
  23579.   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
  23580. do :
  23581.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23582. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  23583. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  23584.   cat >>confdefs.h <<_ACEOF
  23585. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23586. _ACEOF
  23587.  
  23588. fi
  23589. done
  23590.  
  23591.       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
  23592. "
  23593. if test "x$ac_cv_have_decl__snprintf" = xyes; then :
  23594.   ac_have_decl=1
  23595. else
  23596.   ac_have_decl=0
  23597. fi
  23598.  
  23599. cat >>confdefs.h <<_ACEOF
  23600. #define HAVE_DECL__SNPRINTF $ac_have_decl
  23601. _ACEOF
  23602.  
  23603.  
  23604.  
  23605.   case "$gl_cv_func_snprintf_retval_c99" in
  23606.     *yes)
  23607.  
  23608. $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
  23609.  
  23610.       ;;
  23611.   esac
  23612.  
  23613.  
  23614.   XGETTEXT_EXTRA_OPTIONS=
  23615.  
  23616.  
  23617.       ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  23618. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  23619.   ac_have_decl=1
  23620. else
  23621.   ac_have_decl=0
  23622. fi
  23623.  
  23624. cat >>confdefs.h <<_ACEOF
  23625. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  23626. _ACEOF
  23627.  
  23628.  
  23629.  
  23630.   GNULIB_BTOWC=0;
  23631.   GNULIB_WCTOB=0;
  23632.   GNULIB_MBSINIT=0;
  23633.   GNULIB_MBRTOWC=0;
  23634.   GNULIB_MBRLEN=0;
  23635.   GNULIB_MBSRTOWCS=0;
  23636.   GNULIB_MBSNRTOWCS=0;
  23637.   GNULIB_WCRTOMB=0;
  23638.   GNULIB_WCSRTOMBS=0;
  23639.   GNULIB_WCSNRTOMBS=0;
  23640.   GNULIB_WCWIDTH=0;
  23641.   GNULIB_WMEMCHR=0;
  23642.   GNULIB_WMEMCMP=0;
  23643.   GNULIB_WMEMCPY=0;
  23644.   GNULIB_WMEMMOVE=0;
  23645.   GNULIB_WMEMSET=0;
  23646.   GNULIB_WCSLEN=0;
  23647.   GNULIB_WCSNLEN=0;
  23648.   GNULIB_WCSCPY=0;
  23649.   GNULIB_WCPCPY=0;
  23650.   GNULIB_WCSNCPY=0;
  23651.   GNULIB_WCPNCPY=0;
  23652.   GNULIB_WCSCAT=0;
  23653.   GNULIB_WCSNCAT=0;
  23654.   GNULIB_WCSCMP=0;
  23655.   GNULIB_WCSNCMP=0;
  23656.   GNULIB_WCSCASECMP=0;
  23657.   GNULIB_WCSNCASECMP=0;
  23658.   GNULIB_WCSCOLL=0;
  23659.   GNULIB_WCSXFRM=0;
  23660.   GNULIB_WCSDUP=0;
  23661.   GNULIB_WCSCHR=0;
  23662.   GNULIB_WCSRCHR=0;
  23663.   GNULIB_WCSCSPN=0;
  23664.   GNULIB_WCSSPN=0;
  23665.   GNULIB_WCSPBRK=0;
  23666.   GNULIB_WCSSTR=0;
  23667.   GNULIB_WCSTOK=0;
  23668.   GNULIB_WCSWIDTH=0;
  23669.     HAVE_BTOWC=1;
  23670.   HAVE_MBSINIT=1;
  23671.   HAVE_MBRTOWC=1;
  23672.   HAVE_MBRLEN=1;
  23673.   HAVE_MBSRTOWCS=1;
  23674.   HAVE_MBSNRTOWCS=1;
  23675.   HAVE_WCRTOMB=1;
  23676.   HAVE_WCSRTOMBS=1;
  23677.   HAVE_WCSNRTOMBS=1;
  23678.   HAVE_WMEMCHR=1;
  23679.   HAVE_WMEMCMP=1;
  23680.   HAVE_WMEMCPY=1;
  23681.   HAVE_WMEMMOVE=1;
  23682.   HAVE_WMEMSET=1;
  23683.   HAVE_WCSLEN=1;
  23684.   HAVE_WCSNLEN=1;
  23685.   HAVE_WCSCPY=1;
  23686.   HAVE_WCPCPY=1;
  23687.   HAVE_WCSNCPY=1;
  23688.   HAVE_WCPNCPY=1;
  23689.   HAVE_WCSCAT=1;
  23690.   HAVE_WCSNCAT=1;
  23691.   HAVE_WCSCMP=1;
  23692.   HAVE_WCSNCMP=1;
  23693.   HAVE_WCSCASECMP=1;
  23694.   HAVE_WCSNCASECMP=1;
  23695.   HAVE_WCSCOLL=1;
  23696.   HAVE_WCSXFRM=1;
  23697.   HAVE_WCSDUP=1;
  23698.   HAVE_WCSCHR=1;
  23699.   HAVE_WCSRCHR=1;
  23700.   HAVE_WCSCSPN=1;
  23701.   HAVE_WCSSPN=1;
  23702.   HAVE_WCSPBRK=1;
  23703.   HAVE_WCSSTR=1;
  23704.   HAVE_WCSTOK=1;
  23705.   HAVE_WCSWIDTH=1;
  23706.   HAVE_DECL_WCTOB=1;
  23707.   HAVE_DECL_WCWIDTH=1;
  23708.   REPLACE_MBSTATE_T=0;
  23709.   REPLACE_BTOWC=0;
  23710.   REPLACE_WCTOB=0;
  23711.   REPLACE_MBSINIT=0;
  23712.   REPLACE_MBRTOWC=0;
  23713.   REPLACE_MBRLEN=0;
  23714.   REPLACE_MBSRTOWCS=0;
  23715.   REPLACE_MBSNRTOWCS=0;
  23716.   REPLACE_WCRTOMB=0;
  23717.   REPLACE_WCSRTOMBS=0;
  23718.   REPLACE_WCSNRTOMBS=0;
  23719.   REPLACE_WCWIDTH=0;
  23720.   REPLACE_WCSWIDTH=0;
  23721.  
  23722.  
  23723.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
  23724. $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
  23725. if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
  23726.   $as_echo_n "(cached) " >&6
  23727. else
  23728.   gl_cv_header_wchar_h_correct_inline=yes
  23729.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23730. /* end confdefs.h.  */
  23731.  
  23732.        #define wcstod renamed_wcstod
  23733. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  23734.    <wchar.h>.
  23735.    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  23736.    included before <wchar.h>.  */
  23737. #include <stddef.h>
  23738. #include <stdio.h>
  23739. #include <time.h>
  23740. #include <wchar.h>
  23741. extern int zero (void);
  23742. int main () { return zero(); }
  23743.  
  23744. _ACEOF
  23745.                               save_ac_compile="$ac_compile"
  23746.      ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
  23747.      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23748.   (eval $ac_compile) 2>&5
  23749.   ac_status=$?
  23750.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23751.   test $ac_status = 0; }; then
  23752.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23753. /* end confdefs.h.  */
  23754.  
  23755.          #define wcstod renamed_wcstod
  23756. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  23757.    <wchar.h>.
  23758.    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  23759.    included before <wchar.h>.  */
  23760. #include <stddef.h>
  23761. #include <stdio.h>
  23762. #include <time.h>
  23763. #include <wchar.h>
  23764. int zero (void) { return 0; }
  23765.  
  23766. _ACEOF
  23767.               ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
  23768.        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23769.   (eval $ac_compile) 2>&5
  23770.   ac_status=$?
  23771.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23772.   test $ac_status = 0; }; then
  23773.          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
  23774.            :
  23775.          else
  23776.            gl_cv_header_wchar_h_correct_inline=no
  23777.          fi
  23778.        fi
  23779.      fi
  23780.      ac_compile="$save_ac_compile"
  23781.      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
  23782.  
  23783. fi
  23784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
  23785. $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
  23786.   if test $gl_cv_header_wchar_h_correct_inline = no; then
  23787.     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
  23788. This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
  23789. C99 mode. You have four options:
  23790.  - Add the flag -fgnu89-inline to CC and reconfigure, or
  23791.  - Fix your include files, using parts of
  23792.    <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
  23793.  - Use a gcc version older than 4.3, or
  23794.  - Don't use the flags -std=c99 or -std=gnu99.
  23795. Configuration aborted." "$LINENO" 5
  23796.   fi
  23797.  
  23798.  
  23799.   GNULIB_ISBLANK=0;
  23800.     HAVE_ISBLANK=1;
  23801.  
  23802.  
  23803.   GNULIB_FCNTL=0;
  23804.   GNULIB_NONBLOCKING=0;
  23805.   GNULIB_OPEN=0;
  23806.   GNULIB_OPENAT=0;
  23807.     HAVE_FCNTL=1;
  23808.   HAVE_OPENAT=1;
  23809.   REPLACE_FCNTL=0;
  23810.   REPLACE_OPEN=0;
  23811.   REPLACE_OPENAT=0;
  23812.  
  23813.  
  23814.  
  23815.  
  23816.  
  23817.  
  23818.  
  23819.  
  23820.  
  23821.  
  23822.   :
  23823.  
  23824.  
  23825.  
  23826.  
  23827.  
  23828.  
  23829.   :
  23830.  
  23831.  
  23832.  
  23833.  
  23834.  
  23835.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
  23836. $as_echo_n "checking for working fcntl.h... " >&6; }
  23837. if ${gl_cv_header_working_fcntl_h+:} false; then :
  23838.   $as_echo_n "(cached) " >&6
  23839. else
  23840.   if test "$cross_compiling" = yes; then :
  23841.   gl_cv_header_working_fcntl_h=cross-compiling
  23842. else
  23843.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23844. /* end confdefs.h.  */
  23845. #include <sys/types.h>
  23846.            #include <sys/stat.h>
  23847.            #if HAVE_UNISTD_H
  23848.            # include <unistd.h>
  23849.            #else /* on Windows with MSVC */
  23850.            # include <io.h>
  23851.            # include <stdlib.h>
  23852.            # defined sleep(n) _sleep ((n) * 1000)
  23853.            #endif
  23854.            #include <fcntl.h>
  23855.            #ifndef O_NOATIME
  23856.             #define O_NOATIME 0
  23857.            #endif
  23858.            #ifndef O_NOFOLLOW
  23859.             #define O_NOFOLLOW 0
  23860.            #endif
  23861.            static int const constants[] =
  23862.             {
  23863.               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
  23864.               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
  23865.             };
  23866.  
  23867. int
  23868. main ()
  23869. {
  23870.  
  23871.             int result = !constants;
  23872.             #if HAVE_SYMLINK
  23873.             {
  23874.               static char const sym[] = "conftest.sym";
  23875.               if (symlink ("/dev/null", sym) != 0)
  23876.                 result |= 2;
  23877.               else
  23878.                 {
  23879.                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
  23880.                   if (fd >= 0)
  23881.                     {
  23882.                       close (fd);
  23883.                       result |= 4;
  23884.                     }
  23885.                 }
  23886.               if (unlink (sym) != 0 || symlink (".", sym) != 0)
  23887.                 result |= 2;
  23888.               else
  23889.                 {
  23890.                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
  23891.                   if (fd >= 0)
  23892.                     {
  23893.                       close (fd);
  23894.                       result |= 4;
  23895.                     }
  23896.                 }
  23897.               unlink (sym);
  23898.             }
  23899.             #endif
  23900.             {
  23901.               static char const file[] = "confdefs.h";
  23902.               int fd = open (file, O_RDONLY | O_NOATIME);
  23903.               if (fd < 0)
  23904.                 result |= 8;
  23905.               else
  23906.                 {
  23907.                   struct stat st0;
  23908.                   if (fstat (fd, &st0) != 0)
  23909.                     result |= 16;
  23910.                   else
  23911.                     {
  23912.                       char c;
  23913.                       sleep (1);
  23914.                       if (read (fd, &c, 1) != 1)
  23915.                         result |= 24;
  23916.                       else
  23917.                         {
  23918.                           if (close (fd) != 0)
  23919.                             result |= 32;
  23920.                           else
  23921.                             {
  23922.                               struct stat st1;
  23923.                               if (stat (file, &st1) != 0)
  23924.                                 result |= 40;
  23925.                               else
  23926.                                 if (st0.st_atime != st1.st_atime)
  23927.                                   result |= 64;
  23928.                             }
  23929.                         }
  23930.                     }
  23931.                 }
  23932.             }
  23933.             return result;
  23934.   ;
  23935.   return 0;
  23936. }
  23937. _ACEOF
  23938. if ac_fn_c_try_run "$LINENO"; then :
  23939.   gl_cv_header_working_fcntl_h=yes
  23940. else
  23941.   case $? in #(
  23942.         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
  23943.         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
  23944.         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
  23945.          *) gl_cv_header_working_fcntl_h='no';;
  23946.         esac
  23947. fi
  23948. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23949.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  23950. fi
  23951.  
  23952. fi
  23953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
  23954. $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
  23955.  
  23956.   case $gl_cv_header_working_fcntl_h in #(
  23957.   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
  23958.   *) ac_val=1;;
  23959.   esac
  23960.  
  23961. cat >>confdefs.h <<_ACEOF
  23962. #define HAVE_WORKING_O_NOATIME $ac_val
  23963. _ACEOF
  23964.  
  23965.  
  23966.   case $gl_cv_header_working_fcntl_h in #(
  23967.   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
  23968.   *) ac_val=1;;
  23969.   esac
  23970.  
  23971. cat >>confdefs.h <<_ACEOF
  23972. #define HAVE_WORKING_O_NOFOLLOW $ac_val
  23973. _ACEOF
  23974.  
  23975.  
  23976.  
  23977.  
  23978.  
  23979.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
  23980. $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
  23981. if ${gl_cv_func_ungetc_works+:} false; then :
  23982.   $as_echo_n "(cached) " >&6
  23983. else
  23984.   if test "$cross_compiling" = yes; then :
  23985.   case "$host_os" in
  23986.                    # Guess yes on glibc and bionic systems.
  23987.            *-gnu*|*-android*)
  23988.                    gl_cv_func_ungetc_works="guessing yes" ;;
  23989.                    # If we don't know, assume the worst.
  23990.            *)      gl_cv_func_ungetc_works="guessing no" ;;
  23991.          esac
  23992.  
  23993. else
  23994.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23995. /* end confdefs.h.  */
  23996.  
  23997. #include <stdio.h>
  23998.  
  23999. int
  24000. main ()
  24001. {
  24002. FILE *f;
  24003.            if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
  24004.            if (fputs ("abc", f) < 0) return 2;
  24005.            rewind (f);
  24006.            if (fgetc (f) != 'a') return 3;
  24007.            if (fgetc (f) != 'b') return 4;
  24008.            if (ungetc ('d', f) != 'd') return 5;
  24009.            if (ftell (f) != 1) return 6;
  24010.            if (fgetc (f) != 'd') return 7;
  24011.            if (ftell (f) != 2) return 8;
  24012.            if (fseek (f, 0, SEEK_CUR) != 0) return 9;
  24013.            if (ftell (f) != 2) return 10;
  24014.            if (fgetc (f) != 'c') return 11;
  24015.            fclose (f); remove ("conftest.tmp");
  24016.   ;
  24017.   return 0;
  24018. }
  24019. _ACEOF
  24020. if ac_fn_c_try_run "$LINENO"; then :
  24021.   gl_cv_func_ungetc_works=yes
  24022. else
  24023.   gl_cv_func_ungetc_works=no
  24024. fi
  24025. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  24026.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  24027. fi
  24028.  
  24029.  
  24030. fi
  24031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
  24032. $as_echo "$gl_cv_func_ungetc_works" >&6; }
  24033.   case "$gl_cv_func_ungetc_works" in
  24034.     *yes) ;;
  24035.     *)
  24036.  
  24037. $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
  24038.  
  24039.       ;;
  24040.   esac
  24041.  
  24042.  
  24043.  
  24044.  
  24045.  
  24046.  
  24047.  
  24048.   GNULIB_IMAXABS=0;
  24049.   GNULIB_IMAXDIV=0;
  24050.   GNULIB_STRTOIMAX=0;
  24051.   GNULIB_STRTOUMAX=0;
  24052.     HAVE_DECL_IMAXABS=1;
  24053.   HAVE_DECL_IMAXDIV=1;
  24054.   HAVE_DECL_STRTOIMAX=1;
  24055.   HAVE_DECL_STRTOUMAX=1;
  24056.   REPLACE_STRTOIMAX=0;
  24057.   REPLACE_STRTOUMAX=0;
  24058.   INT32_MAX_LT_INTMAX_MAX=1;
  24059.   INT64_MAX_EQ_LONG_MAX='defined _LP64';
  24060.   PRI_MACROS_BROKEN=0;
  24061.   PRIPTR_PREFIX=__PRIPTR_PREFIX;
  24062.   UINT32_MAX_LT_UINTMAX_MAX=1;
  24063.   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
  24064.  
  24065.  
  24066.  
  24067.  
  24068.   :
  24069.  
  24070.  
  24071.  
  24072.  
  24073.  
  24074.  
  24075.  
  24076.  
  24077.  
  24078.  
  24079.  
  24080.  
  24081.  
  24082.   :
  24083.  
  24084.  
  24085.  
  24086.  
  24087.  
  24088.  
  24089.  
  24090.  
  24091.      if test $gl_cv_have_include_next = yes; then
  24092.        gl_cv_next_inttypes_h='<'inttypes.h'>'
  24093.      else
  24094.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
  24095. $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
  24096. if ${gl_cv_next_inttypes_h+:} false; then :
  24097.   $as_echo_n "(cached) " >&6
  24098. else
  24099.  
  24100.              if test $ac_cv_header_inttypes_h = yes; then
  24101.  
  24102.  
  24103.  
  24104.  
  24105.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24106. /* end confdefs.h.  */
  24107. #include <inttypes.h>
  24108. _ACEOF
  24109.                 case "$host_os" in
  24110.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  24111.     *)    gl_absname_cpp="$ac_cpp" ;;
  24112.   esac
  24113.  
  24114.   case "$host_os" in
  24115.     mingw*)
  24116.                                           gl_dirsep_regex='[/\\]'
  24117.       ;;
  24118.     *)
  24119.       gl_dirsep_regex='\/'
  24120.       ;;
  24121.   esac
  24122.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  24123.   gl_header_literal_regex=`echo 'inttypes.h' \
  24124.                            | sed -e "$gl_make_literal_regex_sed"`
  24125.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  24126.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  24127.      s|^/[^/]|//&|
  24128.      p
  24129.      q
  24130.    }'
  24131.  
  24132.         gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  24133.   sed -n "$gl_absolute_header_sed"`
  24134.  
  24135.            gl_header=$gl_cv_absolute_inttypes_h
  24136.            gl_cv_next_inttypes_h='"'$gl_header'"'
  24137.           else
  24138.                gl_cv_next_inttypes_h='<'inttypes.h'>'
  24139.              fi
  24140.  
  24141.  
  24142. fi
  24143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
  24144. $as_echo "$gl_cv_next_inttypes_h" >&6; }
  24145.      fi
  24146.      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
  24147.  
  24148.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  24149.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  24150.        gl_next_as_first_directive='<'inttypes.h'>'
  24151.      else
  24152.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  24153.        gl_next_as_first_directive=$gl_cv_next_inttypes_h
  24154.      fi
  24155.      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
  24156.  
  24157.  
  24158.  
  24159.  
  24160.  
  24161.  
  24162.  
  24163.  
  24164.     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
  24165.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  24166.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  24167. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  24168. if eval \${$as_gl_Symbol+:} false; then :
  24169.   $as_echo_n "(cached) " >&6
  24170. else
  24171.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24172. /* end confdefs.h.  */
  24173. #include <inttypes.h>
  24174.  
  24175. int
  24176. main ()
  24177. {
  24178. #undef $gl_func
  24179.   (void) $gl_func;
  24180.   ;
  24181.   return 0;
  24182. }
  24183. _ACEOF
  24184. if ac_fn_c_try_compile "$LINENO"; then :
  24185.   eval "$as_gl_Symbol=yes"
  24186. else
  24187.   eval "$as_gl_Symbol=no"
  24188. fi
  24189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24190. fi
  24191. eval ac_res=\$$as_gl_Symbol
  24192.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24193. $as_echo "$ac_res" >&6; }
  24194.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  24195.   cat >>confdefs.h <<_ACEOF
  24196. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  24197. _ACEOF
  24198.  
  24199.                      eval ac_cv_have_decl_$gl_func=yes
  24200. fi
  24201.       done
  24202.  
  24203.  
  24204.  
  24205.   for ac_header in inttypes.h
  24206. do :
  24207.   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  24208. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  24209.   cat >>confdefs.h <<_ACEOF
  24210. #define HAVE_INTTYPES_H 1
  24211. _ACEOF
  24212.  
  24213. fi
  24214.  
  24215. done
  24216.  
  24217.   if test $ac_cv_header_inttypes_h = yes; then
  24218.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  24219. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  24220. if ${gt_cv_inttypes_pri_broken+:} false; then :
  24221.   $as_echo_n "(cached) " >&6
  24222. else
  24223.  
  24224.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24225. /* end confdefs.h.  */
  24226.  
  24227. #include <inttypes.h>
  24228. #ifdef PRId32
  24229. char *p = PRId32;
  24230. #endif
  24231.  
  24232. int
  24233. main ()
  24234. {
  24235.  
  24236.   ;
  24237.   return 0;
  24238. }
  24239. _ACEOF
  24240. if ac_fn_c_try_compile "$LINENO"; then :
  24241.   gt_cv_inttypes_pri_broken=no
  24242. else
  24243.   gt_cv_inttypes_pri_broken=yes
  24244. fi
  24245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24246.  
  24247. fi
  24248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  24249. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  24250.   fi
  24251.   if test "$gt_cv_inttypes_pri_broken" = yes; then
  24252.  
  24253. cat >>confdefs.h <<_ACEOF
  24254. #define PRI_MACROS_BROKEN 1
  24255. _ACEOF
  24256.  
  24257.     PRI_MACROS_BROKEN=1
  24258.   else
  24259.     PRI_MACROS_BROKEN=0
  24260.   fi
  24261.  
  24262.  
  24263.  
  24264.  
  24265.  
  24266.  
  24267.  
  24268.  
  24269.    if true; then
  24270.   GL_COND_LIBTOOL_TRUE=
  24271.   GL_COND_LIBTOOL_FALSE='#'
  24272. else
  24273.   GL_COND_LIBTOOL_TRUE='#'
  24274.   GL_COND_LIBTOOL_FALSE=
  24275. fi
  24276.  
  24277.   gl_cond_libtool=true
  24278.   gl_m4_base='gl/m4'
  24279.  
  24280.  
  24281.  
  24282.  
  24283.  
  24284.  
  24285.  
  24286.  
  24287.  
  24288.   gl_source_base='gl'
  24289. LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
  24290.  
  24291.  
  24292.  
  24293.   if test $ac_cv_func_alloca_works = no; then
  24294.     :
  24295.   fi
  24296.  
  24297.   # Define an additional variable used in the Makefile substitution.
  24298.   if test $ac_cv_working_alloca_h = yes; then
  24299.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
  24300. $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
  24301. if ${gl_cv_rpl_alloca+:} false; then :
  24302.   $as_echo_n "(cached) " >&6
  24303. else
  24304.  
  24305.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24306. /* end confdefs.h.  */
  24307.  
  24308. #if defined __GNUC__ || defined _AIX || defined _MSC_VER
  24309.         Need own alloca
  24310. #endif
  24311.  
  24312. _ACEOF
  24313. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24314.   $EGREP "Need own alloca" >/dev/null 2>&1; then :
  24315.   gl_cv_rpl_alloca=yes
  24316. else
  24317.   gl_cv_rpl_alloca=no
  24318. fi
  24319. rm -f conftest*
  24320.  
  24321.  
  24322. fi
  24323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
  24324. $as_echo "$gl_cv_rpl_alloca" >&6; }
  24325.     if test $gl_cv_rpl_alloca = yes; then
  24326.  
  24327. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  24328.  
  24329.       ALLOCA_H=alloca.h
  24330.     else
  24331.                   ALLOCA_H=
  24332.     fi
  24333.   else
  24334.     ALLOCA_H=alloca.h
  24335.   fi
  24336.  
  24337.    if test -n "$ALLOCA_H"; then
  24338.   GL_GENERATE_ALLOCA_H_TRUE=
  24339.   GL_GENERATE_ALLOCA_H_FALSE='#'
  24340. else
  24341.   GL_GENERATE_ALLOCA_H_TRUE='#'
  24342.   GL_GENERATE_ALLOCA_H_FALSE=
  24343. fi
  24344.  
  24345.  
  24346.  
  24347.     for ac_header in byteswap.h
  24348. do :
  24349.   ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  24350. if test "x$ac_cv_header_byteswap_h" = xyes; then :
  24351.   cat >>confdefs.h <<_ACEOF
  24352. #define HAVE_BYTESWAP_H 1
  24353. _ACEOF
  24354.  
  24355.     BYTESWAP_H=''
  24356.  
  24357. else
  24358.  
  24359.     BYTESWAP_H='byteswap.h'
  24360.  
  24361. fi
  24362.  
  24363. done
  24364.  
  24365.  
  24366.    if test -n "$BYTESWAP_H"; then
  24367.   GL_GENERATE_BYTESWAP_H_TRUE=
  24368.   GL_GENERATE_BYTESWAP_H_FALSE='#'
  24369. else
  24370.   GL_GENERATE_BYTESWAP_H_TRUE='#'
  24371.   GL_GENERATE_BYTESWAP_H_FALSE=
  24372. fi
  24373.  
  24374.  
  24375.  
  24376.  
  24377.  
  24378.  
  24379.  
  24380.   FLOAT_H=
  24381.   REPLACE_FLOAT_LDBL=0
  24382.   case "$host_os" in
  24383.     aix* | beos* | openbsd* | mirbsd* | irix*)
  24384.       FLOAT_H=float.h
  24385.       ;;
  24386.     freebsd*)
  24387.       case "$host_cpu" in
  24388.         i[34567]86 )
  24389.           FLOAT_H=float.h
  24390.           ;;
  24391.         x86_64 )
  24392.           # On x86_64 systems, the C compiler may still be generating
  24393.           # 32-bit code.
  24394.           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24395. /* end confdefs.h.  */
  24396. #if defined __LP64__ || defined __x86_64__ || defined __amd64__
  24397.              yes
  24398.              #endif
  24399. _ACEOF
  24400. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24401.   $EGREP "yes" >/dev/null 2>&1; then :
  24402.  
  24403. else
  24404.   FLOAT_H=float.h
  24405. fi
  24406. rm -f conftest*
  24407.  
  24408.           ;;
  24409.       esac
  24410.       ;;
  24411.     linux*)
  24412.       case "$host_cpu" in
  24413.         powerpc*)
  24414.           FLOAT_H=float.h
  24415.           ;;
  24416.       esac
  24417.       ;;
  24418.   esac
  24419.   case "$host_os" in
  24420.     aix* | freebsd* | linux*)
  24421.       if test -n "$FLOAT_H"; then
  24422.         REPLACE_FLOAT_LDBL=1
  24423.       fi
  24424.       ;;
  24425.   esac
  24426.  
  24427.     REPLACE_ITOLD=0
  24428.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
  24429. $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
  24430. if ${gl_cv_func_itold_works+:} false; then :
  24431.   $as_echo_n "(cached) " >&6
  24432. else
  24433.  
  24434.       if test "$cross_compiling" = yes; then :
  24435.   case "$host" in
  24436.            sparc*-*-linux*)
  24437.              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24438. /* end confdefs.h.  */
  24439. #if defined __LP64__ || defined __arch64__
  24440.                 yes
  24441.                 #endif
  24442. _ACEOF
  24443. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24444.   $EGREP "yes" >/dev/null 2>&1; then :
  24445.   gl_cv_func_itold_works="guessing no"
  24446. else
  24447.   gl_cv_func_itold_works="guessing yes"
  24448. fi
  24449. rm -f conftest*
  24450.  
  24451.              ;;
  24452.            *) gl_cv_func_itold_works="guessing yes" ;;
  24453.          esac
  24454.  
  24455. else
  24456.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24457. /* end confdefs.h.  */
  24458.  
  24459. int i = -1;
  24460. volatile long double ld;
  24461. int main ()
  24462. {
  24463.   ld += i * 1.0L;
  24464.   if (ld > 0)
  24465.     return 1;
  24466.   return 0;
  24467. }
  24468. _ACEOF
  24469. if ac_fn_c_try_run "$LINENO"; then :
  24470.   gl_cv_func_itold_works=yes
  24471. else
  24472.   gl_cv_func_itold_works=no
  24473. fi
  24474. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  24475.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  24476. fi
  24477.  
  24478.  
  24479. fi
  24480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
  24481. $as_echo "$gl_cv_func_itold_works" >&6; }
  24482.   case "$gl_cv_func_itold_works" in
  24483.     *no)
  24484.       REPLACE_ITOLD=1
  24485.                   FLOAT_H=float.h
  24486.       ;;
  24487.   esac
  24488.  
  24489.   if test -n "$FLOAT_H"; then
  24490.  
  24491.  
  24492.  
  24493.  
  24494.  
  24495.  
  24496.  
  24497.  
  24498.      if test $gl_cv_have_include_next = yes; then
  24499.        gl_cv_next_float_h='<'float.h'>'
  24500.      else
  24501.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
  24502. $as_echo_n "checking absolute name of <float.h>... " >&6; }
  24503. if ${gl_cv_next_float_h+:} false; then :
  24504.   $as_echo_n "(cached) " >&6
  24505. else
  24506.  
  24507.  
  24508.  
  24509.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24510. /* end confdefs.h.  */
  24511. #include <float.h>
  24512. _ACEOF
  24513.                 case "$host_os" in
  24514.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  24515.     *)    gl_absname_cpp="$ac_cpp" ;;
  24516.   esac
  24517.  
  24518.   case "$host_os" in
  24519.     mingw*)
  24520.                                           gl_dirsep_regex='[/\\]'
  24521.       ;;
  24522.     *)
  24523.       gl_dirsep_regex='\/'
  24524.       ;;
  24525.   esac
  24526.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  24527.   gl_header_literal_regex=`echo 'float.h' \
  24528.                            | sed -e "$gl_make_literal_regex_sed"`
  24529.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  24530.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  24531.      s|^/[^/]|//&|
  24532.      p
  24533.      q
  24534.    }'
  24535.  
  24536.         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  24537.   sed -n "$gl_absolute_header_sed"`
  24538.  
  24539.            gl_header=$gl_cv_absolute_float_h
  24540.            gl_cv_next_float_h='"'$gl_header'"'
  24541.  
  24542.  
  24543. fi
  24544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
  24545. $as_echo "$gl_cv_next_float_h" >&6; }
  24546.      fi
  24547.      NEXT_FLOAT_H=$gl_cv_next_float_h
  24548.  
  24549.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  24550.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  24551.        gl_next_as_first_directive='<'float.h'>'
  24552.      else
  24553.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  24554.        gl_next_as_first_directive=$gl_cv_next_float_h
  24555.      fi
  24556.      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
  24557.  
  24558.  
  24559.  
  24560.  
  24561.   fi
  24562.  
  24563.    if test -n "$FLOAT_H"; then
  24564.   GL_GENERATE_FLOAT_H_TRUE=
  24565.   GL_GENERATE_FLOAT_H_FALSE='#'
  24566. else
  24567.   GL_GENERATE_FLOAT_H_TRUE='#'
  24568.   GL_GENERATE_FLOAT_H_FALSE=
  24569. fi
  24570.  
  24571.  
  24572.  
  24573.   if test $REPLACE_FLOAT_LDBL = 1; then
  24574.  
  24575.  
  24576.  
  24577.  
  24578.  
  24579.  
  24580.  
  24581.  
  24582.   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
  24583.  
  24584.   fi
  24585.   if test $REPLACE_ITOLD = 1; then
  24586.  
  24587.  
  24588.  
  24589.  
  24590.  
  24591.  
  24592.  
  24593.  
  24594.   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
  24595.  
  24596.   fi
  24597.  
  24598.  
  24599.  
  24600.  
  24601.   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  24602.     REPLACE_FSTAT=1
  24603.   fi
  24604.  
  24605.  
  24606.   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
  24607.     REPLACE_FSTAT=1
  24608.   fi
  24609.  
  24610.  
  24611.  
  24612.   if test $REPLACE_FSTAT = 1; then
  24613.  
  24614.  
  24615.  
  24616.  
  24617.  
  24618.  
  24619.  
  24620.  
  24621.   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
  24622.  
  24623.     :
  24624.   fi
  24625.  
  24626.  
  24627.  
  24628.  
  24629.  
  24630.           GNULIB_FSTAT=1
  24631.  
  24632.  
  24633.  
  24634.  
  24635.  
  24636. $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
  24637.  
  24638.  
  24639.  
  24640.  
  24641.  
  24642.  
  24643.     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
  24644.     REPLACE_FTELL=1
  24645.   fi
  24646.  
  24647.   if test $REPLACE_FTELL = 1; then
  24648.  
  24649.  
  24650.  
  24651.  
  24652.  
  24653.  
  24654.  
  24655.  
  24656.   gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
  24657.  
  24658.   fi
  24659.  
  24660.  
  24661.  
  24662.  
  24663.  
  24664.           GNULIB_FTELL=1
  24665.  
  24666.  
  24667.  
  24668.  
  24669.  
  24670. $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
  24671.  
  24672.  
  24673.  
  24674.  
  24675.  
  24676.  
  24677.  
  24678.  
  24679.  
  24680.  
  24681.  
  24682.  
  24683.   :
  24684.  
  24685.  
  24686.  
  24687.  
  24688.  
  24689.   if test $ac_cv_have_decl_ftello = no; then
  24690.     HAVE_DECL_FTELLO=0
  24691.   fi
  24692.  
  24693.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
  24694. $as_echo_n "checking for ftello... " >&6; }
  24695. if ${gl_cv_func_ftello+:} false; then :
  24696.   $as_echo_n "(cached) " >&6
  24697. else
  24698.  
  24699.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24700. /* end confdefs.h.  */
  24701. #include <stdio.h>
  24702. int
  24703. main ()
  24704. {
  24705. ftello (stdin);
  24706.   ;
  24707.   return 0;
  24708. }
  24709. _ACEOF
  24710. if ac_fn_c_try_link "$LINENO"; then :
  24711.   gl_cv_func_ftello=yes
  24712. else
  24713.   gl_cv_func_ftello=no
  24714. fi
  24715. rm -f core conftest.err conftest.$ac_objext \
  24716.     conftest$ac_exeext conftest.$ac_ext
  24717.  
  24718. fi
  24719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
  24720. $as_echo "$gl_cv_func_ftello" >&6; }
  24721.   if test $gl_cv_func_ftello = no; then
  24722.     HAVE_FTELLO=0
  24723.   else
  24724.     if test $WINDOWS_64_BIT_OFF_T = 1; then
  24725.       REPLACE_FTELLO=1
  24726.     fi
  24727.     if test $gl_cv_var_stdin_large_offset = no; then
  24728.       REPLACE_FTELLO=1
  24729.     fi
  24730.     if test $REPLACE_FTELLO = 0; then
  24731.  
  24732.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
  24733. $as_echo_n "checking whether ftello works... " >&6; }
  24734. if ${gl_cv_func_ftello_works+:} false; then :
  24735.   $as_echo_n "(cached) " >&6
  24736. else
  24737.  
  24738.                               case "$host_os" in
  24739.                       # Guess no on Solaris.
  24740.             solaris*) gl_cv_func_ftello_works="guessing no" ;;
  24741.                       # Guess yes otherwise.
  24742.             *)        gl_cv_func_ftello_works="guessing yes" ;;
  24743.           esac
  24744.           if test "$cross_compiling" = yes; then :
  24745.   :
  24746. else
  24747.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24748. /* end confdefs.h.  */
  24749.  
  24750. #include <stdio.h>
  24751. #include <stdlib.h>
  24752. #include <string.h>
  24753. #define TESTFILE "conftest.tmp"
  24754. int
  24755. main (void)
  24756. {
  24757.   FILE *fp;
  24758.  
  24759.   /* Create a file with some contents.  */
  24760.   fp = fopen (TESTFILE, "w");
  24761.   if (fp == NULL)
  24762.     return 70;
  24763.   if (fwrite ("foogarsh", 1, 8, fp) < 8)
  24764.     return 71;
  24765.   if (fclose (fp))
  24766.     return 72;
  24767.  
  24768.   /* The file's contents is now "foogarsh".  */
  24769.  
  24770.  /* Try writing after reading to EOF.  */
  24771.  fp = fopen (TESTFILE, "r+");
  24772.  if (fp == NULL)
  24773.    return 73;
  24774.  if (fseek (fp, -1, SEEK_END))
  24775.    return 74;
  24776.  if (!(getc (fp) == 'h'))
  24777.    return 1;
  24778.  if (!(getc (fp) == EOF))
  24779.    return 2;
  24780.  if (!(ftell (fp) == 8))
  24781.    return 3;
  24782.  if (!(ftell (fp) == 8))
  24783.    return 4;
  24784.  if (!(putc ('!', fp) == '!'))
  24785.    return 5;
  24786.  if (!(ftell (fp) == 9))
  24787.    return 6;
  24788.  if (!(fclose (fp) == 0))
  24789.    return 7;
  24790.  fp = fopen (TESTFILE, "r");
  24791.  if (fp == NULL)
  24792.    return 75;
  24793.  {
  24794.    char buf[10];
  24795.    if (!(fread (buf, 1, 10, fp) == 9))
  24796.      return 10;
  24797.    if (!(memcmp (buf, "foogarsh!", 9) == 0))
  24798.      return 11;
  24799.  }
  24800.  if (!(fclose (fp) == 0))
  24801.    return 12;
  24802.  
  24803.  /* The file's contents is now "foogarsh!".  */
  24804.  
  24805.   return 0;
  24806. }
  24807. _ACEOF
  24808. if ac_fn_c_try_run "$LINENO"; then :
  24809.   gl_cv_func_ftello_works=yes
  24810. else
  24811.   gl_cv_func_ftello_works=no
  24812. fi
  24813. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  24814.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  24815. fi
  24816.  
  24817.  
  24818. fi
  24819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
  24820. $as_echo "$gl_cv_func_ftello_works" >&6; }
  24821.       case "$gl_cv_func_ftello_works" in
  24822.         *yes) ;;
  24823.         *)
  24824.           REPLACE_FTELLO=1
  24825.  
  24826. $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
  24827.  
  24828.           ;;
  24829.       esac
  24830.     fi
  24831.   fi
  24832.  
  24833.   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
  24834.  
  24835.  
  24836.  
  24837.  
  24838.  
  24839.  
  24840.  
  24841.  
  24842.   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
  24843.  
  24844.  
  24845.       for ac_func in _ftelli64
  24846. do :
  24847.   ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
  24848. if test "x$ac_cv_func__ftelli64" = xyes; then :
  24849.   cat >>confdefs.h <<_ACEOF
  24850. #define HAVE__FTELLI64 1
  24851. _ACEOF
  24852.  
  24853. fi
  24854. done
  24855.  
  24856.  
  24857.   fi
  24858.  
  24859.  
  24860.  
  24861.  
  24862.  
  24863.           GNULIB_FTELLO=1
  24864.  
  24865.  
  24866.  
  24867.  
  24868.  
  24869. $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
  24870.  
  24871.  
  24872.  
  24873.  
  24874.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __func__ is available" >&5
  24875. $as_echo_n "checking whether __func__ is available... " >&6; }
  24876. if ${gl_cv_var_func+:} false; then :
  24877.   $as_echo_n "(cached) " >&6
  24878. else
  24879.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24880. /* end confdefs.h.  */
  24881.  
  24882. int
  24883. main ()
  24884. {
  24885. const char *str = __func__;
  24886.   ;
  24887.   return 0;
  24888. }
  24889. _ACEOF
  24890. if ac_fn_c_try_compile "$LINENO"; then :
  24891.   gl_cv_var_func=yes
  24892. else
  24893.   gl_cv_var_func=no
  24894. fi
  24895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24896. fi
  24897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_func" >&5
  24898. $as_echo "$gl_cv_var_func" >&6; }
  24899.   if test "$gl_cv_var_func" != yes; then
  24900.  
  24901. $as_echo "#define __func__ \"<unknown function>\"" >>confdefs.h
  24902.  
  24903.   fi
  24904.  
  24905.  
  24906.  
  24907.  
  24908.  
  24909.  
  24910.  
  24911.   :
  24912.  
  24913.  
  24914.  
  24915.  
  24916.  
  24917.  
  24918.  
  24919.   :
  24920.  
  24921.  
  24922.  
  24923.  
  24924.  
  24925.   if test $ac_cv_func_getdelim = yes; then
  24926.     HAVE_GETDELIM=1
  24927.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
  24928. $as_echo_n "checking for working getdelim function... " >&6; }
  24929. if ${gl_cv_func_working_getdelim+:} false; then :
  24930.   $as_echo_n "(cached) " >&6
  24931. else
  24932.   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
  24933.     if test "$cross_compiling" = yes; then :
  24934.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24935. /* end confdefs.h.  */
  24936.  
  24937. #include <features.h>
  24938. #ifdef __GNU_LIBRARY__
  24939.  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
  24940.   Lucky GNU user
  24941.  #endif
  24942. #endif
  24943.  
  24944. _ACEOF
  24945. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24946.   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  24947.   gl_cv_func_working_getdelim="guessing yes"
  24948. else
  24949.   gl_cv_func_working_getdelim="guessing no"
  24950. fi
  24951. rm -f conftest*
  24952.  
  24953.  
  24954. else
  24955.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24956. /* end confdefs.h.  */
  24957.  
  24958. #    include <stdio.h>
  24959. #    include <stdlib.h>
  24960. #    include <string.h>
  24961.     int main ()
  24962.     {
  24963.       FILE *in = fopen ("./conftest.data", "r");
  24964.       if (!in)
  24965.         return 1;
  24966.       {
  24967.         /* Test result for a NULL buffer and a zero size.
  24968.            Based on a test program from Karl Heuer.  */
  24969.         char *line = NULL;
  24970.         size_t siz = 0;
  24971.         int len = getdelim (&line, &siz, '\n', in);
  24972.         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
  24973.           return 2;
  24974.       }
  24975.       {
  24976.         /* Test result for a NULL buffer and a non-zero size.
  24977.            This crashes on FreeBSD 8.0.  */
  24978.         char *line = NULL;
  24979.         size_t siz = (size_t)(~0) / 4;
  24980.         if (getdelim (&line, &siz, '\n', in) == -1)
  24981.           return 3;
  24982.         free (line);
  24983.       }
  24984.       fclose (in);
  24985.       return 0;
  24986.     }
  24987.  
  24988. _ACEOF
  24989. if ac_fn_c_try_run "$LINENO"; then :
  24990.   gl_cv_func_working_getdelim=yes
  24991. else
  24992.   gl_cv_func_working_getdelim=no
  24993. fi
  24994. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  24995.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  24996. fi
  24997.  
  24998. fi
  24999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
  25000. $as_echo "$gl_cv_func_working_getdelim" >&6; }
  25001.     case "$gl_cv_func_working_getdelim" in
  25002.       *no)
  25003.         REPLACE_GETDELIM=1
  25004.         ;;
  25005.     esac
  25006.   else
  25007.     HAVE_GETDELIM=0
  25008.   fi
  25009.  
  25010.   if test $ac_cv_have_decl_getdelim = no; then
  25011.     HAVE_DECL_GETDELIM=0
  25012.   fi
  25013.  
  25014.   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
  25015.  
  25016.  
  25017.  
  25018.  
  25019.  
  25020.  
  25021.  
  25022.  
  25023.   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
  25024.  
  25025.  
  25026.   for ac_func in flockfile funlockfile
  25027. do :
  25028.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25029. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  25030. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  25031.   cat >>confdefs.h <<_ACEOF
  25032. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25033. _ACEOF
  25034.  
  25035. fi
  25036. done
  25037.  
  25038.   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
  25039. if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
  25040.   ac_have_decl=1
  25041. else
  25042.   ac_have_decl=0
  25043. fi
  25044.  
  25045. cat >>confdefs.h <<_ACEOF
  25046. #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
  25047. _ACEOF
  25048.  
  25049.  
  25050.   fi
  25051.  
  25052.  
  25053.  
  25054.  
  25055.  
  25056.           GNULIB_GETDELIM=1
  25057.  
  25058.  
  25059.  
  25060.  
  25061.  
  25062. $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
  25063.  
  25064.  
  25065.  
  25066.  
  25067.  
  25068.  
  25069.  
  25070.  
  25071.  
  25072.   :
  25073.  
  25074.  
  25075.  
  25076.  
  25077.  
  25078.  
  25079.   gl_getline_needs_run_time_check=no
  25080.   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  25081. if test "x$ac_cv_func_getline" = xyes; then :
  25082.                    gl_getline_needs_run_time_check=yes
  25083. else
  25084.   am_cv_func_working_getline=no
  25085. fi
  25086.  
  25087.   if test $gl_getline_needs_run_time_check = yes; then
  25088.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
  25089. $as_echo_n "checking for working getline function... " >&6; }
  25090. if ${am_cv_func_working_getline+:} false; then :
  25091.   $as_echo_n "(cached) " >&6
  25092. else
  25093.   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
  25094.     if test "$cross_compiling" = yes; then :
  25095.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25096. /* end confdefs.h.  */
  25097.  
  25098. #include <features.h>
  25099. #ifdef __GNU_LIBRARY__
  25100.  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
  25101.   Lucky GNU user
  25102.  #endif
  25103. #endif
  25104.  
  25105. _ACEOF
  25106. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25107.   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  25108.   am_cv_func_working_getline="guessing yes"
  25109. else
  25110.   am_cv_func_working_getline="guessing no"
  25111. fi
  25112. rm -f conftest*
  25113.  
  25114.  
  25115. else
  25116.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25117. /* end confdefs.h.  */
  25118.  
  25119. #    include <stdio.h>
  25120. #    include <stdlib.h>
  25121. #    include <string.h>
  25122.     int main ()
  25123.     {
  25124.       FILE *in = fopen ("./conftest.data", "r");
  25125.       if (!in)
  25126.         return 1;
  25127.       {
  25128.         /* Test result for a NULL buffer and a zero size.
  25129.            Based on a test program from Karl Heuer.  */
  25130.         char *line = NULL;
  25131.         size_t siz = 0;
  25132.         int len = getline (&line, &siz, in);
  25133.         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
  25134.           return 2;
  25135.         free (line);
  25136.       }
  25137.       {
  25138.         /* Test result for a NULL buffer and a non-zero size.
  25139.            This crashes on FreeBSD 8.0.  */
  25140.         char *line = NULL;
  25141.         size_t siz = (size_t)(~0) / 4;
  25142.         if (getline (&line, &siz, in) == -1)
  25143.           return 3;
  25144.         free (line);
  25145.       }
  25146.       fclose (in);
  25147.       return 0;
  25148.     }
  25149.  
  25150. _ACEOF
  25151. if ac_fn_c_try_run "$LINENO"; then :
  25152.   am_cv_func_working_getline=yes
  25153. else
  25154.   am_cv_func_working_getline=no
  25155. fi
  25156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25157.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  25158. fi
  25159.  
  25160. fi
  25161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
  25162. $as_echo "$am_cv_func_working_getline" >&6; }
  25163.   fi
  25164.  
  25165.   if test $ac_cv_have_decl_getline = no; then
  25166.     HAVE_DECL_GETLINE=0
  25167.   fi
  25168.  
  25169.   case "$am_cv_func_working_getline" in
  25170.     *no)
  25171.                         REPLACE_GETLINE=1
  25172.       ;;
  25173.   esac
  25174.  
  25175.   if test $REPLACE_GETLINE = 1; then
  25176.  
  25177.  
  25178.  
  25179.  
  25180.  
  25181.  
  25182.  
  25183.  
  25184.   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
  25185.  
  25186.  
  25187.   :
  25188.  
  25189.   fi
  25190.  
  25191.  
  25192.  
  25193.  
  25194.  
  25195.           GNULIB_GETLINE=1
  25196.  
  25197.  
  25198.  
  25199.  
  25200.  
  25201. $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
  25202.  
  25203.  
  25204.  
  25205.  
  25206.  
  25207.  
  25208.  
  25209.  
  25210.  
  25211.  
  25212.   :
  25213.  
  25214.  
  25215.  
  25216.  
  25217.  
  25218.  
  25219.   gl_gettimeofday_timezone=void
  25220.   if test $ac_cv_func_gettimeofday != yes; then
  25221.     HAVE_GETTIMEOFDAY=0
  25222.   else
  25223.  
  25224.  
  25225.  
  25226.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
  25227. $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
  25228. if ${gl_cv_func_gettimeofday_clobber+:} false; then :
  25229.   $as_echo_n "(cached) " >&6
  25230. else
  25231.   if test "$cross_compiling" = yes; then :
  25232.   # When cross-compiling:
  25233.       case "$host_os" in
  25234.                 # Guess all is fine on glibc systems.
  25235.         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
  25236.                 # If we don't know, assume the worst.
  25237.         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
  25238.       esac
  25239.  
  25240. else
  25241.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25242. /* end confdefs.h.  */
  25243. #include <string.h>
  25244.           #include <sys/time.h>
  25245.           #include <time.h>
  25246.           #include <stdlib.h>
  25247.  
  25248. int
  25249. main ()
  25250. {
  25251.  
  25252.           time_t t = 0;
  25253.           struct tm *lt;
  25254.           struct tm saved_lt;
  25255.           struct timeval tv;
  25256.           lt = localtime (&t);
  25257.           saved_lt = *lt;
  25258.           gettimeofday (&tv, NULL);
  25259.           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
  25260.  
  25261.   ;
  25262.   return 0;
  25263. }
  25264. _ACEOF
  25265. if ac_fn_c_try_run "$LINENO"; then :
  25266.   gl_cv_func_gettimeofday_clobber=no
  25267. else
  25268.   gl_cv_func_gettimeofday_clobber=yes
  25269. fi
  25270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25271.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  25272. fi
  25273.  
  25274. fi
  25275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
  25276. $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
  25277.  
  25278.  case "$gl_cv_func_gettimeofday_clobber" in
  25279.    *yes)
  25280.      REPLACE_GETTIMEOFDAY=1
  25281.  
  25282.   REPLACE_GMTIME=1
  25283.   REPLACE_LOCALTIME=1
  25284.  
  25285.  
  25286. $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
  25287.  
  25288.      ;;
  25289.  esac
  25290.  
  25291.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
  25292. $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
  25293. if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
  25294.   $as_echo_n "(cached) " >&6
  25295. else
  25296.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25297. /* end confdefs.h.  */
  25298. #include <sys/time.h>
  25299.               struct timeval c;
  25300.               int gettimeofday (struct timeval *restrict, void *restrict);
  25301.  
  25302. int
  25303. main ()
  25304. {
  25305. /* glibc uses struct timezone * rather than the POSIX void *
  25306.                  if _GNU_SOURCE is defined.  However, since the only portable
  25307.                  use of gettimeofday uses NULL as the second parameter, and
  25308.                  since the glibc definition is actually more typesafe, it is
  25309.                  not worth wrapping this to get a compliant signature.  */
  25310.               int (*f) (struct timeval *restrict, void *restrict)
  25311.                 = gettimeofday;
  25312.               int x = f (&c, 0);
  25313.               return !(x | c.tv_sec | c.tv_usec);
  25314.  
  25315.   ;
  25316.   return 0;
  25317. }
  25318. _ACEOF
  25319. if ac_fn_c_try_compile "$LINENO"; then :
  25320.   gl_cv_func_gettimeofday_posix_signature=yes
  25321. else
  25322.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25323. /* end confdefs.h.  */
  25324. #include <sys/time.h>
  25325. int gettimeofday (struct timeval *restrict, struct timezone *restrict);
  25326.  
  25327. int
  25328. main ()
  25329. {
  25330.  
  25331.   ;
  25332.   return 0;
  25333. }
  25334. _ACEOF
  25335. if ac_fn_c_try_compile "$LINENO"; then :
  25336.   gl_cv_func_gettimeofday_posix_signature=almost
  25337. else
  25338.   gl_cv_func_gettimeofday_posix_signature=no
  25339. fi
  25340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25341. fi
  25342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25343. fi
  25344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
  25345. $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
  25346.     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
  25347.       gl_gettimeofday_timezone='struct timezone'
  25348.     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
  25349.       REPLACE_GETTIMEOFDAY=1
  25350.     fi
  25351.         if test $REPLACE_STRUCT_TIMEVAL = 1; then
  25352.       REPLACE_GETTIMEOFDAY=1
  25353.     fi
  25354.  
  25355.   fi
  25356.  
  25357. cat >>confdefs.h <<_ACEOF
  25358. #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
  25359. _ACEOF
  25360.  
  25361.  
  25362.   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
  25363.  
  25364.  
  25365.  
  25366.  
  25367.  
  25368.  
  25369.  
  25370.  
  25371.   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
  25372.  
  25373.  
  25374.   for ac_header in sys/timeb.h
  25375. do :
  25376.   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
  25377. if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
  25378.   cat >>confdefs.h <<_ACEOF
  25379. #define HAVE_SYS_TIMEB_H 1
  25380. _ACEOF
  25381.  
  25382. fi
  25383.  
  25384. done
  25385.  
  25386.   for ac_func in _ftime
  25387. do :
  25388.   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
  25389. if test "x$ac_cv_func__ftime" = xyes; then :
  25390.   cat >>confdefs.h <<_ACEOF
  25391. #define HAVE__FTIME 1
  25392. _ACEOF
  25393.  
  25394. fi
  25395. done
  25396.  
  25397.  
  25398.   fi
  25399.  
  25400.  
  25401.  
  25402.  
  25403.  
  25404.           GNULIB_GETTIMEOFDAY=1
  25405.  
  25406.  
  25407.  
  25408.  
  25409.  
  25410. $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
  25411.  
  25412.  
  25413.  
  25414.   # Autoconf 2.61a.99 and earlier don't support linking a file only
  25415.   # in VPATH builds.  But since GNUmakefile is for maintainer use
  25416.   # only, it does not matter if we skip the link with older autoconf.
  25417.   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
  25418.   # builds, so use a shell variable to bypass this.
  25419.   GNUmakefile=GNUmakefile
  25420.   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
  25421.  
  25422.  
  25423.  
  25424.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
  25425. $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
  25426. if ${gl_cv_ld_output_def+:} false; then :
  25427.   $as_echo_n "(cached) " >&6
  25428. else
  25429.   if test "$enable_shared" = no; then
  25430.        gl_cv_ld_output_def="not needed, shared libraries are disabled"
  25431.      else
  25432.        gl_ldflags_save=$LDFLAGS
  25433.        LDFLAGS="-Wl,--output-def,conftest.def"
  25434.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25435. /* end confdefs.h.  */
  25436.  
  25437. int
  25438. main ()
  25439. {
  25440.  
  25441.   ;
  25442.   return 0;
  25443. }
  25444. _ACEOF
  25445. if ac_fn_c_try_link "$LINENO"; then :
  25446.   gl_cv_ld_output_def=yes
  25447. else
  25448.   gl_cv_ld_output_def=no
  25449. fi
  25450. rm -f core conftest.err conftest.$ac_objext \
  25451.     conftest$ac_exeext conftest.$ac_ext
  25452.        rm -f conftest.def
  25453.        LDFLAGS="$gl_ldflags_save"
  25454.      fi
  25455. fi
  25456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
  25457. $as_echo "$gl_cv_ld_output_def" >&6; }
  25458.    if test "x$gl_cv_ld_output_def" = "xyes"; then
  25459.   HAVE_LD_OUTPUT_DEF_TRUE=
  25460.   HAVE_LD_OUTPUT_DEF_FALSE='#'
  25461. else
  25462.   HAVE_LD_OUTPUT_DEF_TRUE='#'
  25463.   HAVE_LD_OUTPUT_DEF_FALSE=
  25464. fi
  25465.  
  25466.  
  25467.  
  25468.   # Check whether --enable-ld-version-script was given.
  25469. if test "${enable_ld_version_script+set}" = set; then :
  25470.   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  25471. else
  25472.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  25473. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  25474. if ${gl_cv_sys_ld_version_script+:} false; then :
  25475.   $as_echo_n "(cached) " >&6
  25476. else
  25477.   gl_cv_sys_ld_version_script=no
  25478.         save_LDFLAGS=$LDFLAGS
  25479.         LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  25480.         echo foo >conftest.map
  25481.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25482. /* end confdefs.h.  */
  25483.  
  25484. int
  25485. main ()
  25486. {
  25487.  
  25488.   ;
  25489.   return 0;
  25490. }
  25491. _ACEOF
  25492. if ac_fn_c_try_link "$LINENO"; then :
  25493.  
  25494. else
  25495.   cat > conftest.map <<EOF
  25496. VERS_1 {
  25497.         global: sym;
  25498. };
  25499.  
  25500. VERS_2 {
  25501.         global: sym;
  25502. } VERS_1;
  25503. EOF
  25504.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25505. /* end confdefs.h.  */
  25506.  
  25507. int
  25508. main ()
  25509. {
  25510.  
  25511.   ;
  25512.   return 0;
  25513. }
  25514. _ACEOF
  25515. if ac_fn_c_try_link "$LINENO"; then :
  25516.   gl_cv_sys_ld_version_script=yes
  25517. fi
  25518. rm -f core conftest.err conftest.$ac_objext \
  25519.     conftest$ac_exeext conftest.$ac_ext
  25520. fi
  25521. rm -f core conftest.err conftest.$ac_objext \
  25522.     conftest$ac_exeext conftest.$ac_ext
  25523.         rm -f conftest.map
  25524.         LDFLAGS=$save_LDFLAGS
  25525. fi
  25526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
  25527. $as_echo "$gl_cv_sys_ld_version_script" >&6; }
  25528.      have_ld_version_script=$gl_cv_sys_ld_version_script
  25529. fi
  25530.  
  25531.    if test "$have_ld_version_script" = yes; then
  25532.   HAVE_LD_VERSION_SCRIPT_TRUE=
  25533.   HAVE_LD_VERSION_SCRIPT_FALSE='#'
  25534. else
  25535.   HAVE_LD_VERSION_SCRIPT_TRUE='#'
  25536.   HAVE_LD_VERSION_SCRIPT_FALSE=
  25537. fi
  25538.  
  25539.  
  25540.  
  25541.  
  25542.  
  25543.  
  25544.  
  25545.  
  25546.  
  25547.   :
  25548.  
  25549.  
  25550.  
  25551.  
  25552.  
  25553.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
  25554. $as_echo_n "checking whether lseek detects pipes... " >&6; }
  25555. if ${gl_cv_func_lseek_pipe+:} false; then :
  25556.   $as_echo_n "(cached) " >&6
  25557. else
  25558.   case "$host_os" in
  25559.        mingw*)
  25560.                                                                gl_cv_func_lseek_pipe=no
  25561.          ;;
  25562.        *)
  25563.          if test $cross_compiling = no; then
  25564.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25565. /* end confdefs.h.  */
  25566.  
  25567. #include <sys/types.h> /* for off_t */
  25568. #include <stdio.h> /* for SEEK_CUR */
  25569. #if HAVE_UNISTD_H
  25570. # include <unistd.h>
  25571. #else /* on Windows with MSVC */
  25572. # include <io.h>
  25573. #endif
  25574.  
  25575. int
  25576. main ()
  25577. {
  25578.  
  25579.   /* Exit with success only if stdin is seekable.  */
  25580.   return lseek (0, (off_t)0, SEEK_CUR) < 0;
  25581.  
  25582.   ;
  25583.   return 0;
  25584. }
  25585. _ACEOF
  25586. if ac_fn_c_try_link "$LINENO"; then :
  25587.   if test -s conftest$ac_exeext \
  25588.                  && ./conftest$ac_exeext < conftest.$ac_ext \
  25589.                  && test 1 = "`echo hi \
  25590.                   | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
  25591.                 gl_cv_func_lseek_pipe=yes
  25592.               else
  25593.                 gl_cv_func_lseek_pipe=no
  25594.               fi
  25595.  
  25596. else
  25597.   gl_cv_func_lseek_pipe=no
  25598. fi
  25599. rm -f core conftest.err conftest.$ac_objext \
  25600.     conftest$ac_exeext conftest.$ac_ext
  25601.          else
  25602.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25603. /* end confdefs.h.  */
  25604.  
  25605. #if defined __BEOS__
  25606. /* BeOS mistakenly return 0 when trying to seek on pipes.  */
  25607.   Choke me.
  25608. #endif
  25609. _ACEOF
  25610. if ac_fn_c_try_compile "$LINENO"; then :
  25611.   gl_cv_func_lseek_pipe=yes
  25612. else
  25613.   gl_cv_func_lseek_pipe=no
  25614. fi
  25615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25616.          fi
  25617.          ;;
  25618.      esac
  25619.  
  25620. fi
  25621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
  25622. $as_echo "$gl_cv_func_lseek_pipe" >&6; }
  25623.   if test $gl_cv_func_lseek_pipe = no; then
  25624.     REPLACE_LSEEK=1
  25625.  
  25626. $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
  25627.  
  25628.   fi
  25629.  
  25630.  
  25631.   if test $WINDOWS_64_BIT_OFF_T = 1; then
  25632.     REPLACE_LSEEK=1
  25633.   fi
  25634.  
  25635.   if test $REPLACE_LSEEK = 1; then
  25636.  
  25637.  
  25638.  
  25639.  
  25640.  
  25641.  
  25642.  
  25643.  
  25644.   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
  25645.  
  25646.   fi
  25647.  
  25648.  
  25649.  
  25650.  
  25651.  
  25652.           GNULIB_LSEEK=1
  25653.  
  25654.  
  25655.  
  25656.  
  25657.  
  25658. $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
  25659.  
  25660.  
  25661.  
  25662.  
  25663.  
  25664.  
  25665.  
  25666.  
  25667.   if test $gl_cv_func_malloc_posix = yes; then
  25668.  
  25669. $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
  25670.  
  25671.   else
  25672.     REPLACE_MALLOC=1
  25673.   fi
  25674.  
  25675.   if test $REPLACE_MALLOC = 1; then
  25676.  
  25677.  
  25678.  
  25679.  
  25680.  
  25681.  
  25682.  
  25683.  
  25684.   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
  25685.  
  25686.   fi
  25687.  
  25688.  
  25689.  
  25690.  
  25691.  
  25692.           GNULIB_MALLOC_POSIX=1
  25693.  
  25694.  
  25695.  
  25696.  
  25697.  
  25698. $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
  25699.  
  25700.  
  25701.  
  25702.  
  25703.   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  25704.  
  25705.  
  25706.  
  25707.  
  25708.  
  25709.  
  25710.  
  25711.  
  25712.   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
  25713.  
  25714.  
  25715.   for ac_header in bp-sym.h
  25716. do :
  25717.   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
  25718. if test "x$ac_cv_header_bp_sym_h" = xyes; then :
  25719.   cat >>confdefs.h <<_ACEOF
  25720. #define HAVE_BP_SYM_H 1
  25721. _ACEOF
  25722.  
  25723. fi
  25724.  
  25725. done
  25726.  
  25727.  
  25728.   fi
  25729.  
  25730.  
  25731.  
  25732.  
  25733.  
  25734.           GNULIB_MEMCHR=1
  25735.  
  25736.  
  25737.  
  25738.  
  25739.  
  25740. $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
  25741.  
  25742.  
  25743.  
  25744.  
  25745.  
  25746.  
  25747.  
  25748.   for ac_func in memmem
  25749. do :
  25750.   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  25751. if test "x$ac_cv_func_memmem" = xyes; then :
  25752.   cat >>confdefs.h <<_ACEOF
  25753. #define HAVE_MEMMEM 1
  25754. _ACEOF
  25755.  
  25756. fi
  25757. done
  25758.  
  25759.   if test $ac_cv_func_memmem = yes; then
  25760.     HAVE_MEMMEM=1
  25761.   else
  25762.     HAVE_MEMMEM=0
  25763.   fi
  25764.  
  25765.   :
  25766.  
  25767.  
  25768.  
  25769.  
  25770.  
  25771.   if test $ac_cv_have_decl_memmem = no; then
  25772.     HAVE_DECL_MEMMEM=0
  25773.   else
  25774.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
  25775. $as_echo_n "checking whether memmem works... " >&6; }
  25776. if ${gl_cv_func_memmem_works_always+:} false; then :
  25777.   $as_echo_n "(cached) " >&6
  25778. else
  25779.   if test "$cross_compiling" = yes; then :
  25780.                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25781. /* end confdefs.h.  */
  25782.  
  25783. #ifdef __GNU_LIBRARY__
  25784.  #include <features.h>
  25785.  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
  25786.                           || __GLIBC_MINOR__ > 12)) \
  25787.       || (__GLIBC__ > 2)) \
  25788.      || defined __UCLIBC__
  25789.   Lucky user
  25790.  #endif
  25791. #elif defined __CYGWIN__
  25792.  #include <cygwin/version.h>
  25793.  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  25794.   Lucky user
  25795.  #endif
  25796. #else
  25797.   Lucky user
  25798. #endif
  25799.  
  25800. _ACEOF
  25801. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25802.   $EGREP "Lucky user" >/dev/null 2>&1; then :
  25803.   gl_cv_func_memmem_works_always="guessing yes"
  25804. else
  25805.   gl_cv_func_memmem_works_always="guessing no"
  25806. fi
  25807. rm -f conftest*
  25808.  
  25809.  
  25810. else
  25811.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25812. /* end confdefs.h.  */
  25813.  
  25814. #include <string.h> /* for memmem */
  25815. #define P "_EF_BF_BD"
  25816. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  25817. #define NEEDLE P P P P P
  25818.  
  25819. int
  25820. main ()
  25821. {
  25822.  
  25823.     int result = 0;
  25824.     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
  25825.       result |= 1;
  25826.     /* Check for empty needle behavior.  */
  25827.     {
  25828.       const char *haystack = "AAA";
  25829.       if (memmem (haystack, 3, NULL, 0) != haystack)
  25830.         result |= 2;
  25831.     }
  25832.     return result;
  25833.  
  25834.   ;
  25835.   return 0;
  25836. }
  25837. _ACEOF
  25838. if ac_fn_c_try_run "$LINENO"; then :
  25839.   gl_cv_func_memmem_works_always=yes
  25840. else
  25841.   gl_cv_func_memmem_works_always=no
  25842. fi
  25843. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25844.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  25845. fi
  25846.  
  25847.  
  25848. fi
  25849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
  25850. $as_echo "$gl_cv_func_memmem_works_always" >&6; }
  25851.     case "$gl_cv_func_memmem_works_always" in
  25852.       *yes) ;;
  25853.       *)
  25854.         REPLACE_MEMMEM=1
  25855.         ;;
  25856.     esac
  25857.   fi
  25858.   :
  25859.  
  25860.   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  25861.  
  25862.  
  25863.  
  25864.  
  25865.  
  25866.  
  25867.  
  25868.  
  25869.   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
  25870.  
  25871.   fi
  25872.  
  25873.  
  25874.  
  25875.  
  25876.  
  25877.           GNULIB_MEMMEM=1
  25878.  
  25879.  
  25880.  
  25881.  
  25882.  
  25883. $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
  25884.  
  25885.  
  25886.  
  25887.  
  25888.  
  25889.  
  25890.  
  25891.   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  25892.  
  25893.  
  25894.  
  25895.  
  25896.  
  25897.  
  25898.  
  25899.  
  25900.   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
  25901.  
  25902.   fi
  25903.  
  25904.   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  25905.  
  25906.  
  25907.  
  25908.  
  25909.  
  25910.  
  25911.  
  25912.  
  25913.   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
  25914.  
  25915.   fi
  25916.  
  25917.  
  25918.  
  25919.  
  25920.  
  25921.  
  25922.  
  25923.  
  25924.  
  25925.   :
  25926.  
  25927.  
  25928.  
  25929.  
  25930.  
  25931.  
  25932.  
  25933.  
  25934.      if test $gl_cv_have_include_next = yes; then
  25935.        gl_cv_next_netdb_h='<'netdb.h'>'
  25936.      else
  25937.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
  25938. $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
  25939. if ${gl_cv_next_netdb_h+:} false; then :
  25940.   $as_echo_n "(cached) " >&6
  25941. else
  25942.  
  25943.              if test $ac_cv_header_netdb_h = yes; then
  25944.  
  25945.  
  25946.  
  25947.  
  25948.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25949. /* end confdefs.h.  */
  25950. #include <netdb.h>
  25951. _ACEOF
  25952.                 case "$host_os" in
  25953.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  25954.     *)    gl_absname_cpp="$ac_cpp" ;;
  25955.   esac
  25956.  
  25957.   case "$host_os" in
  25958.     mingw*)
  25959.                                           gl_dirsep_regex='[/\\]'
  25960.       ;;
  25961.     *)
  25962.       gl_dirsep_regex='\/'
  25963.       ;;
  25964.   esac
  25965.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  25966.   gl_header_literal_regex=`echo 'netdb.h' \
  25967.                            | sed -e "$gl_make_literal_regex_sed"`
  25968.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  25969.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  25970.      s|^/[^/]|//&|
  25971.      p
  25972.      q
  25973.    }'
  25974.  
  25975.         gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  25976.   sed -n "$gl_absolute_header_sed"`
  25977.  
  25978.            gl_header=$gl_cv_absolute_netdb_h
  25979.            gl_cv_next_netdb_h='"'$gl_header'"'
  25980.           else
  25981.                gl_cv_next_netdb_h='<'netdb.h'>'
  25982.              fi
  25983.  
  25984.  
  25985. fi
  25986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
  25987. $as_echo "$gl_cv_next_netdb_h" >&6; }
  25988.      fi
  25989.      NEXT_NETDB_H=$gl_cv_next_netdb_h
  25990.  
  25991.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  25992.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  25993.        gl_next_as_first_directive='<'netdb.h'>'
  25994.      else
  25995.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  25996.        gl_next_as_first_directive=$gl_cv_next_netdb_h
  25997.      fi
  25998.      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
  25999.  
  26000.  
  26001.  
  26002.  
  26003.   if test $ac_cv_header_netdb_h = yes; then
  26004.     HAVE_NETDB_H=1
  26005.   else
  26006.     HAVE_NETDB_H=0
  26007.   fi
  26008.  
  26009.  
  26010.  
  26011.     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
  26012.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  26013.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  26014. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  26015. if eval \${$as_gl_Symbol+:} false; then :
  26016.   $as_echo_n "(cached) " >&6
  26017. else
  26018.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26019. /* end confdefs.h.  */
  26020. #include <netdb.h>
  26021. int
  26022. main ()
  26023. {
  26024. #undef $gl_func
  26025.   (void) $gl_func;
  26026.   ;
  26027.   return 0;
  26028. }
  26029. _ACEOF
  26030. if ac_fn_c_try_compile "$LINENO"; then :
  26031.   eval "$as_gl_Symbol=yes"
  26032. else
  26033.   eval "$as_gl_Symbol=no"
  26034. fi
  26035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26036. fi
  26037. eval ac_res=\$$as_gl_Symbol
  26038.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26039. $as_echo "$ac_res" >&6; }
  26040.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  26041.   cat >>confdefs.h <<_ACEOF
  26042. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  26043. _ACEOF
  26044.  
  26045.                      eval ac_cv_have_decl_$gl_func=yes
  26046. fi
  26047.       done
  26048.  
  26049.  
  26050.  
  26051.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
  26052. $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
  26053. if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
  26054.   $as_echo_n "(cached) " >&6
  26055. else
  26056.  
  26057.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26058. /* end confdefs.h.  */
  26059. #include <netinet/in.h>
  26060. int
  26061. main ()
  26062. {
  26063.  
  26064.   ;
  26065.   return 0;
  26066. }
  26067. _ACEOF
  26068. if ac_fn_c_try_compile "$LINENO"; then :
  26069.   gl_cv_header_netinet_in_h_selfcontained=yes
  26070. else
  26071.   gl_cv_header_netinet_in_h_selfcontained=no
  26072. fi
  26073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26074.  
  26075. fi
  26076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
  26077. $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
  26078.   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
  26079.     NETINET_IN_H=''
  26080.   else
  26081.     NETINET_IN_H='netinet/in.h'
  26082.     for ac_header in netinet/in.h
  26083. do :
  26084.   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  26085. if test "x$ac_cv_header_netinet_in_h" = xyes; then :
  26086.   cat >>confdefs.h <<_ACEOF
  26087. #define HAVE_NETINET_IN_H 1
  26088. _ACEOF
  26089.  
  26090. fi
  26091.  
  26092. done
  26093.  
  26094.  
  26095.  
  26096.  
  26097.  
  26098.  
  26099.  
  26100.   :
  26101.  
  26102.  
  26103.  
  26104.  
  26105.  
  26106.  
  26107.  
  26108.  
  26109.      if test $gl_cv_have_include_next = yes; then
  26110.        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
  26111.      else
  26112.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
  26113. $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
  26114. if ${gl_cv_next_netinet_in_h+:} false; then :
  26115.   $as_echo_n "(cached) " >&6
  26116. else
  26117.  
  26118.              if test $ac_cv_header_netinet_in_h = yes; then
  26119.  
  26120.  
  26121.  
  26122.  
  26123.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26124. /* end confdefs.h.  */
  26125. #include <netinet/in.h>
  26126. _ACEOF
  26127.                 case "$host_os" in
  26128.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  26129.     *)    gl_absname_cpp="$ac_cpp" ;;
  26130.   esac
  26131.  
  26132.   case "$host_os" in
  26133.     mingw*)
  26134.                                           gl_dirsep_regex='[/\\]'
  26135.       ;;
  26136.     *)
  26137.       gl_dirsep_regex='\/'
  26138.       ;;
  26139.   esac
  26140.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  26141.   gl_header_literal_regex=`echo 'netinet/in.h' \
  26142.                            | sed -e "$gl_make_literal_regex_sed"`
  26143.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  26144.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  26145.      s|^/[^/]|//&|
  26146.      p
  26147.      q
  26148.    }'
  26149.  
  26150.         gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  26151.   sed -n "$gl_absolute_header_sed"`
  26152.  
  26153.            gl_header=$gl_cv_absolute_netinet_in_h
  26154.            gl_cv_next_netinet_in_h='"'$gl_header'"'
  26155.           else
  26156.                gl_cv_next_netinet_in_h='<'netinet/in.h'>'
  26157.              fi
  26158.  
  26159.  
  26160. fi
  26161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
  26162. $as_echo "$gl_cv_next_netinet_in_h" >&6; }
  26163.      fi
  26164.      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
  26165.  
  26166.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  26167.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  26168.        gl_next_as_first_directive='<'netinet/in.h'>'
  26169.      else
  26170.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  26171.        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
  26172.      fi
  26173.      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
  26174.  
  26175.  
  26176.  
  26177.  
  26178.     if test $ac_cv_header_netinet_in_h = yes; then
  26179.       HAVE_NETINET_IN_H=1
  26180.     else
  26181.       HAVE_NETINET_IN_H=0
  26182.     fi
  26183.  
  26184.   fi
  26185.  
  26186.    if test -n "$NETINET_IN_H"; then
  26187.   GL_GENERATE_NETINET_IN_H_TRUE=
  26188.   GL_GENERATE_NETINET_IN_H_FALSE='#'
  26189. else
  26190.   GL_GENERATE_NETINET_IN_H_TRUE='#'
  26191.   GL_GENERATE_NETINET_IN_H_FALSE=
  26192. fi
  26193.  
  26194.  
  26195.  
  26196.   # Extract the first word of "pmccabe", so it can be a program name with args.
  26197. set dummy pmccabe; ac_word=$2
  26198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26199. $as_echo_n "checking for $ac_word... " >&6; }
  26200. if ${ac_cv_path_PMCCABE+:} false; then :
  26201.   $as_echo_n "(cached) " >&6
  26202. else
  26203.   case $PMCCABE in
  26204.   [\\/]* | ?:[\\/]*)
  26205.   ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
  26206.   ;;
  26207.   *)
  26208.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26209. for as_dir in $PATH
  26210. do
  26211.   IFS=$as_save_IFS
  26212.   test -z "$as_dir" && as_dir=.
  26213.     for ac_exec_ext in '' $ac_executable_extensions; do
  26214.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26215.     ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
  26216.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26217.     break 2
  26218.   fi
  26219. done
  26220.   done
  26221. IFS=$as_save_IFS
  26222.  
  26223.   test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
  26224.   ;;
  26225. esac
  26226. fi
  26227. PMCCABE=$ac_cv_path_PMCCABE
  26228. if test -n "$PMCCABE"; then
  26229.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
  26230. $as_echo "$PMCCABE" >&6; }
  26231. else
  26232.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26233. $as_echo "no" >&6; }
  26234. fi
  26235.  
  26236.  
  26237.   :
  26238.  
  26239.  
  26240.  
  26241.   if test $gl_cv_func_malloc_posix = yes; then
  26242.  
  26243. $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
  26244.  
  26245.   else
  26246.     REPLACE_REALLOC=1
  26247.   fi
  26248.  
  26249.   if test $REPLACE_REALLOC = 1; then
  26250.  
  26251.  
  26252.  
  26253.  
  26254.  
  26255.  
  26256.  
  26257.  
  26258.   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
  26259.  
  26260.   fi
  26261.  
  26262.  
  26263.  
  26264.  
  26265.  
  26266.           GNULIB_REALLOC_POSIX=1
  26267.  
  26268.  
  26269.  
  26270.  
  26271.  
  26272. $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
  26273.  
  26274.  
  26275.  
  26276.  
  26277.  
  26278.  
  26279.  
  26280.  
  26281.   :
  26282.  
  26283.  
  26284.  
  26285.  
  26286.  
  26287.   if test $ac_cv_func_secure_getenv = no; then
  26288.     HAVE_SECURE_GETENV=0
  26289.   fi
  26290.  
  26291.   if test $HAVE_SECURE_GETENV = 0; then
  26292.  
  26293.  
  26294.  
  26295.  
  26296.  
  26297.  
  26298.  
  26299.  
  26300.   gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
  26301.  
  26302.  
  26303.   for ac_func in __secure_getenv
  26304. do :
  26305.   ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
  26306. if test "x$ac_cv_func___secure_getenv" = xyes; then :
  26307.   cat >>confdefs.h <<_ACEOF
  26308. #define HAVE___SECURE_GETENV 1
  26309. _ACEOF
  26310.  
  26311. fi
  26312. done
  26313.  
  26314.   if test $ac_cv_func___secure_getenv = no; then
  26315.     for ac_func in issetugid
  26316. do :
  26317.   ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
  26318. if test "x$ac_cv_func_issetugid" = xyes; then :
  26319.   cat >>confdefs.h <<_ACEOF
  26320. #define HAVE_ISSETUGID 1
  26321. _ACEOF
  26322.  
  26323. fi
  26324. done
  26325.  
  26326.   fi
  26327.  
  26328.   :
  26329.  
  26330.  
  26331.  
  26332.  
  26333.  
  26334.  
  26335.  
  26336.  
  26337.  
  26338.  
  26339.  
  26340.  
  26341.  
  26342.  
  26343.  
  26344.   fi
  26345.  
  26346.  
  26347.  
  26348.  
  26349.  
  26350.           GNULIB_SECURE_GETENV=1
  26351.  
  26352.  
  26353.  
  26354.  
  26355.  
  26356. $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
  26357.  
  26358.  
  26359.  
  26360.  
  26361.   for ac_header in stdint.h
  26362. do :
  26363.   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  26364. if test "x$ac_cv_header_stdint_h" = xyes; then :
  26365.   cat >>confdefs.h <<_ACEOF
  26366. #define HAVE_STDINT_H 1
  26367. _ACEOF
  26368.  
  26369. fi
  26370.  
  26371. done
  26372.  
  26373.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  26374. $as_echo_n "checking for SIZE_MAX... " >&6; }
  26375. if ${gl_cv_size_max+:} false; then :
  26376.   $as_echo_n "(cached) " >&6
  26377. else
  26378.  
  26379.     gl_cv_size_max=
  26380.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26381. /* end confdefs.h.  */
  26382.  
  26383. #include <limits.h>
  26384. #if HAVE_STDINT_H
  26385. #include <stdint.h>
  26386. #endif
  26387. #ifdef SIZE_MAX
  26388. Found it
  26389. #endif
  26390.  
  26391. _ACEOF
  26392. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26393.   $EGREP "Found it" >/dev/null 2>&1; then :
  26394.   gl_cv_size_max=yes
  26395. fi
  26396. rm -f conftest*
  26397.  
  26398.     if test -z "$gl_cv_size_max"; then
  26399.                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
  26400. #include <limits.h>"; then :
  26401.  
  26402. else
  26403.   size_t_bits_minus_1=
  26404. fi
  26405.  
  26406.       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
  26407.  
  26408. else
  26409.   fits_in_uint=
  26410. fi
  26411.  
  26412.       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  26413.         if test $fits_in_uint = 1; then
  26414.                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26415. /* end confdefs.h.  */
  26416. #include <stddef.h>
  26417.                  extern size_t foo;
  26418.                  extern unsigned long foo;
  26419.  
  26420. int
  26421. main ()
  26422. {
  26423.  
  26424.   ;
  26425.   return 0;
  26426. }
  26427. _ACEOF
  26428. if ac_fn_c_try_compile "$LINENO"; then :
  26429.   fits_in_uint=0
  26430. fi
  26431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26432.         fi
  26433.                                 if test $fits_in_uint = 1; then
  26434.           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  26435.         else
  26436.           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  26437.         fi
  26438.       else
  26439.                 gl_cv_size_max='((size_t)~(size_t)0)'
  26440.       fi
  26441.     fi
  26442.  
  26443. fi
  26444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  26445. $as_echo "$gl_cv_size_max" >&6; }
  26446.   if test "$gl_cv_size_max" != yes; then
  26447.  
  26448. cat >>confdefs.h <<_ACEOF
  26449. #define SIZE_MAX $gl_cv_size_max
  26450. _ACEOF
  26451.  
  26452.   fi
  26453.  
  26454.  
  26455.  
  26456.  
  26457.   gl_cv_func_snprintf_usable=no
  26458.   for ac_func in snprintf
  26459. do :
  26460.   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  26461. if test "x$ac_cv_func_snprintf" = xyes; then :
  26462.   cat >>confdefs.h <<_ACEOF
  26463. #define HAVE_SNPRINTF 1
  26464. _ACEOF
  26465.  
  26466. fi
  26467. done
  26468.  
  26469.   if test $ac_cv_func_snprintf = yes; then
  26470.  
  26471.  
  26472.  
  26473.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
  26474. $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
  26475. if ${gl_cv_func_snprintf_size1+:} false; then :
  26476.   $as_echo_n "(cached) " >&6
  26477. else
  26478.  
  26479.       if test "$cross_compiling" = yes; then :
  26480.   gl_cv_func_snprintf_size1="guessing yes"
  26481. else
  26482.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26483. /* end confdefs.h.  */
  26484.  
  26485. #include <stdio.h>
  26486. #if HAVE_SNPRINTF
  26487. # define my_snprintf snprintf
  26488. #else
  26489. # include <stdarg.h>
  26490. static int my_snprintf (char *buf, int size, const char *format, ...)
  26491. {
  26492.   va_list args;
  26493.   int ret;
  26494.   va_start (args, format);
  26495.   ret = vsnprintf (buf, size, format, args);
  26496.   va_end (args);
  26497.   return ret;
  26498. }
  26499. #endif
  26500. int main()
  26501. {
  26502.   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
  26503.   my_snprintf (buf, 1, "%d", 12345);
  26504.   return buf[1] != 'E';
  26505. }
  26506. _ACEOF
  26507. if ac_fn_c_try_run "$LINENO"; then :
  26508.   gl_cv_func_snprintf_size1=yes
  26509. else
  26510.   gl_cv_func_snprintf_size1=no
  26511. fi
  26512. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  26513.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  26514. fi
  26515.  
  26516.  
  26517. fi
  26518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
  26519. $as_echo "$gl_cv_func_snprintf_size1" >&6; }
  26520.  
  26521.     case "$gl_cv_func_snprintf_size1" in
  26522.       *yes)
  26523.  
  26524.         case "$gl_cv_func_snprintf_retval_c99" in
  26525.           *yes)
  26526.  
  26527.  
  26528.      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
  26529. $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
  26530. if ${gl_cv_func_printf_positions+:} false; then :
  26531.   $as_echo_n "(cached) " >&6
  26532. else
  26533.  
  26534.       if test "$cross_compiling" = yes; then :
  26535.  
  26536.          case "$host_os" in
  26537.            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
  26538.                          gl_cv_func_printf_positions="guessing no";;
  26539.            beos*)        gl_cv_func_printf_positions="guessing no";;
  26540.            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
  26541.            *)            gl_cv_func_printf_positions="guessing yes";;
  26542.          esac
  26543.  
  26544. else
  26545.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26546. /* end confdefs.h.  */
  26547.  
  26548. #include <stdio.h>
  26549. #include <string.h>
  26550. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  26551.   dollar expansion (possibly an autoconf bug).  */
  26552. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  26553. static char buf[100];
  26554. int main ()
  26555. {
  26556.  sprintf (buf, format, 33, 55);
  26557.  return (strcmp (buf, "55 33") != 0);
  26558. }
  26559. _ACEOF
  26560. if ac_fn_c_try_run "$LINENO"; then :
  26561.  gl_cv_func_printf_positions=yes
  26562. else
  26563.  gl_cv_func_printf_positions=no
  26564. fi
  26565. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  26566.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  26567. fi
  26568.  
  26569.  
  26570. fi
  26571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
  26572. $as_echo "$gl_cv_func_printf_positions" >&6; }
  26573.  
  26574.            case "$gl_cv_func_printf_positions" in
  26575.              *yes)
  26576.                gl_cv_func_snprintf_usable=yes
  26577.                ;;
  26578.            esac
  26579.            ;;
  26580.        esac
  26581.        ;;
  26582.    esac
  26583.  fi
  26584.  if test $gl_cv_func_snprintf_usable = no; then
  26585.  
  26586.  
  26587.  
  26588.  
  26589.  
  26590.  
  26591.  
  26592.  
  26593.  
  26594.  
  26595.  gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
  26596.  
  26597.  if test $ac_cv_func_snprintf = yes; then
  26598.    REPLACE_SNPRINTF=1
  26599.  fi
  26600.  :
  26601.  
  26602.  fi
  26603.  
  26604.  :
  26605.  
  26606.  
  26607.  
  26608.  
  26609.  
  26610.  if test $ac_cv_have_decl_snprintf = no; then
  26611.    HAVE_DECL_SNPRINTF=0
  26612.  fi
  26613.  
  26614.  
  26615.  
  26616.  
  26617.  
  26618.  
  26619.          GNULIB_SNPRINTF=1
  26620.  
  26621.  
  26622.  
  26623.  
  26624.  
  26625. $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
  26626.  
  26627.  
  26628.  
  26629.  
  26630.  
  26631. cat >>confdefs.h <<_ACEOF
  26632. #define GNULIB_SNPRINTF 1
  26633. _ACEOF
  26634.  
  26635.  
  26636.     ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  26637. /* <sys/types.h> is not needed according to POSIX, but the
  26638.   <sys/socket.h> in i386-unknown-freebsd4.10 and
  26639.   powerpc-apple-darwin5.5 required it. */
  26640. #include <sys/types.h>
  26641. #if HAVE_SYS_SOCKET_H
  26642. # include <sys/socket.h>
  26643. #elif HAVE_WS2TCPIP_H
  26644. # include <ws2tcpip.h>
  26645. #endif
  26646.  
  26647. "
  26648. if test "x$ac_cv_type_socklen_t" = xyes; then :
  26649.  
  26650. else
  26651.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  26652. $as_echo_n "checking for socklen_t equivalent... " >&6; }
  26653.      if ${gl_cv_socklen_t_equiv+:} false; then :
  26654.  $as_echo_n "(cached) " >&6
  26655. else
  26656.  # Systems have either "struct sockaddr *" or
  26657.         # "void *" as the second argument to getpeername
  26658.         gl_cv_socklen_t_equiv=
  26659.         for arg2 in "struct sockaddr" void; do
  26660.           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
  26661.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26662. /* end confdefs.h.  */
  26663. #include <sys/types.h>
  26664.                   #include <sys/socket.h>
  26665.  
  26666.                   int getpeername (int, $arg2 *, $t *);
  26667. int
  26668. main ()
  26669. {
  26670. $t len;
  26671.                  getpeername (0, 0, &len);
  26672.  ;
  26673.  return 0;
  26674. }
  26675. _ACEOF
  26676. if ac_fn_c_try_compile "$LINENO"; then :
  26677.  gl_cv_socklen_t_equiv="$t"
  26678. fi
  26679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26680.             test "$gl_cv_socklen_t_equiv" != "" && break
  26681.           done
  26682.           test "$gl_cv_socklen_t_equiv" != "" && break
  26683.         done
  26684.  
  26685. fi
  26686.  
  26687.      if test "$gl_cv_socklen_t_equiv" = ""; then
  26688.        as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  26689.      fi
  26690.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
  26691. $as_echo "$gl_cv_socklen_t_equiv" >&6; }
  26692.  
  26693. cat >>confdefs.h <<_ACEOF
  26694. #define socklen_t $gl_cv_socklen_t_equiv
  26695. _ACEOF
  26696.  
  26697. fi
  26698.  
  26699.  
  26700.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
  26701. $as_echo_n "checking for ssize_t... " >&6; }
  26702. if ${gt_cv_ssize_t+:} false; then :
  26703.  $as_echo_n "(cached) " >&6
  26704. else
  26705.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26706. /* end confdefs.h.  */
  26707. #include <sys/types.h>
  26708. int
  26709. main ()
  26710. {
  26711. int x = sizeof (ssize_t *) + sizeof (ssize_t);
  26712.            return !x;
  26713.  ;
  26714.  return 0;
  26715. }
  26716. _ACEOF
  26717. if ac_fn_c_try_compile "$LINENO"; then :
  26718.  gt_cv_ssize_t=yes
  26719. else
  26720.  gt_cv_ssize_t=no
  26721. fi
  26722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26723. fi
  26724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
  26725. $as_echo "$gt_cv_ssize_t" >&6; }
  26726.  if test $gt_cv_ssize_t = no; then
  26727.  
  26728. $as_echo "#define ssize_t int" >>confdefs.h
  26729.  
  26730.  fi
  26731.  
  26732.  
  26733.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
  26734. $as_echo_n "checking for working stdalign.h... " >&6; }
  26735. if ${gl_cv_header_working_stdalign_h+:} false; then :
  26736.  $as_echo_n "(cached) " >&6
  26737. else
  26738.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26739. /* end confdefs.h.  */
  26740. #include <stdalign.h>
  26741.            #include <stddef.h>
  26742.  
  26743.            /* Test that alignof yields a result consistent with offsetof.
  26744.               This catches GCC bug 52023
  26745.               <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
  26746.            #ifdef __cplusplus
  26747.               template <class t> struct alignof_helper { char a; t b; };
  26748.            # define ao(type) offsetof (alignof_helper<type>, b)
  26749.            #else
  26750.            # define ao(type) offsetof (struct { char a; type b; }, b)
  26751.            #endif
  26752.            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
  26753.            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
  26754.            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
  26755.  
  26756.            /* Test _Alignas only on platforms where gnulib can help.  */
  26757.            #if \
  26758.                ((defined __cplusplus && 201103 <= __cplusplus) \
  26759.                 || (defined __APPLE__ && defined __MACH__ \
  26760.                     ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
  26761.                     : __GNUC__) \
  26762.                 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
  26763.                 || __ICC || 0x5110 <= __SUNPRO_C \
  26764.                 || 1300 <= _MSC_VER)
  26765.              struct alignas_test { char c; char alignas (8) alignas_8; };
  26766.              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
  26767.                                ? 1 : -1];
  26768.            #endif
  26769.  
  26770. int
  26771. main ()
  26772. {
  26773.  
  26774.  ;
  26775.  return 0;
  26776. }
  26777. _ACEOF
  26778. if ac_fn_c_try_compile "$LINENO"; then :
  26779.  gl_cv_header_working_stdalign_h=yes
  26780. else
  26781.  gl_cv_header_working_stdalign_h=no
  26782. fi
  26783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26784. fi
  26785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
  26786. $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
  26787.  
  26788.  if test $gl_cv_header_working_stdalign_h = yes; then
  26789.    STDALIGN_H=''
  26790.  else
  26791.    STDALIGN_H='stdalign.h'
  26792.  fi
  26793.  
  26794.  
  26795.   if test -n "$STDALIGN_H"; then
  26796.  GL_GENERATE_STDALIGN_H_TRUE=
  26797.  GL_GENERATE_STDALIGN_H_FALSE='#'
  26798. else
  26799.   GL_GENERATE_STDALIGN_H_TRUE='#'
  26800.   GL_GENERATE_STDALIGN_H_FALSE=
  26801. fi
  26802.  
  26803.  
  26804.  
  26805.  
  26806.  
  26807.   # Define two additional variables used in the Makefile substitution.
  26808.  
  26809.   if test "$ac_cv_header_stdbool_h" = yes; then
  26810.     STDBOOL_H=''
  26811.   else
  26812.     STDBOOL_H='stdbool.h'
  26813.   fi
  26814.  
  26815.    if test -n "$STDBOOL_H"; then
  26816.   GL_GENERATE_STDBOOL_H_TRUE=
  26817.   GL_GENERATE_STDBOOL_H_FALSE='#'
  26818. else
  26819.   GL_GENERATE_STDBOOL_H_TRUE='#'
  26820.   GL_GENERATE_STDBOOL_H_FALSE=
  26821. fi
  26822.  
  26823.  
  26824.   if test "$ac_cv_type__Bool" = yes; then
  26825.     HAVE__BOOL=1
  26826.   else
  26827.     HAVE__BOOL=0
  26828.   fi
  26829.  
  26830.  
  26831.  
  26832.  
  26833.  
  26834.   STDDEF_H=
  26835.   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
  26836.  
  26837. "
  26838. if test "x$ac_cv_type_max_align_t" = xyes; then :
  26839.  
  26840. else
  26841.   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
  26842. fi
  26843.  
  26844.   if test $gt_cv_c_wchar_t = no; then
  26845.     HAVE_WCHAR_T=0
  26846.     STDDEF_H=stddef.h
  26847.   fi
  26848.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
  26849. $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
  26850. if ${gl_cv_decl_null_works+:} false; then :
  26851.   $as_echo_n "(cached) " >&6
  26852. else
  26853.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26854. /* end confdefs.h.  */
  26855. #include <stddef.h>
  26856.       int test[2 * (sizeof NULL == sizeof (void *)) -1];
  26857.  
  26858. int
  26859. main ()
  26860. {
  26861.  
  26862.   ;
  26863.   return 0;
  26864. }
  26865. _ACEOF
  26866. if ac_fn_c_try_compile "$LINENO"; then :
  26867.   gl_cv_decl_null_works=yes
  26868. else
  26869.   gl_cv_decl_null_works=no
  26870. fi
  26871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26872. fi
  26873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
  26874. $as_echo "$gl_cv_decl_null_works" >&6; }
  26875.   if test $gl_cv_decl_null_works = no; then
  26876.     REPLACE_NULL=1
  26877.     STDDEF_H=stddef.h
  26878.   fi
  26879.  
  26880.    if test -n "$STDDEF_H"; then
  26881.   GL_GENERATE_STDDEF_H_TRUE=
  26882.   GL_GENERATE_STDDEF_H_FALSE='#'
  26883. else
  26884.   GL_GENERATE_STDDEF_H_TRUE='#'
  26885.   GL_GENERATE_STDDEF_H_FALSE=
  26886. fi
  26887.  
  26888.   if test -n "$STDDEF_H"; then
  26889.  
  26890.  
  26891.  
  26892.  
  26893.  
  26894.  
  26895.  
  26896.  
  26897.      if test $gl_cv_have_include_next = yes; then
  26898.        gl_cv_next_stddef_h='<'stddef.h'>'
  26899.      else
  26900.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
  26901. $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
  26902. if ${gl_cv_next_stddef_h+:} false; then :
  26903.   $as_echo_n "(cached) " >&6
  26904. else
  26905.  
  26906.  
  26907.  
  26908.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26909. /* end confdefs.h.  */
  26910. #include <stddef.h>
  26911. _ACEOF
  26912.                 case "$host_os" in
  26913.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  26914.     *)    gl_absname_cpp="$ac_cpp" ;;
  26915.   esac
  26916.  
  26917.   case "$host_os" in
  26918.     mingw*)
  26919.                                           gl_dirsep_regex='[/\\]'
  26920.       ;;
  26921.     *)
  26922.       gl_dirsep_regex='\/'
  26923.       ;;
  26924.   esac
  26925.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  26926.   gl_header_literal_regex=`echo 'stddef.h' \
  26927.                            | sed -e "$gl_make_literal_regex_sed"`
  26928.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  26929.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  26930.      s|^/[^/]|//&|
  26931.      p
  26932.      q
  26933.    }'
  26934.  
  26935.         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  26936.   sed -n "$gl_absolute_header_sed"`
  26937.  
  26938.            gl_header=$gl_cv_absolute_stddef_h
  26939.            gl_cv_next_stddef_h='"'$gl_header'"'
  26940.  
  26941.  
  26942. fi
  26943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
  26944. $as_echo "$gl_cv_next_stddef_h" >&6; }
  26945.      fi
  26946.      NEXT_STDDEF_H=$gl_cv_next_stddef_h
  26947.  
  26948.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  26949.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  26950.        gl_next_as_first_directive='<'stddef.h'>'
  26951.      else
  26952.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  26953.        gl_next_as_first_directive=$gl_cv_next_stddef_h
  26954.      fi
  26955.      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
  26956.  
  26957.  
  26958.  
  26959.  
  26960.   fi
  26961.  
  26962.  
  26963.  
  26964.  
  26965.   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
  26966.  
  26967.  
  26968.  
  26969.  
  26970.  
  26971.  
  26972.  
  26973.  
  26974.  
  26975.  
  26976.      if test $gl_cv_have_include_next = yes; then
  26977.        gl_cv_next_stdio_h='<'stdio.h'>'
  26978.      else
  26979.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
  26980. $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
  26981. if ${gl_cv_next_stdio_h+:} false; then :
  26982.   $as_echo_n "(cached) " >&6
  26983. else
  26984.  
  26985.  
  26986.  
  26987.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26988. /* end confdefs.h.  */
  26989. #include <stdio.h>
  26990. _ACEOF
  26991.                 case "$host_os" in
  26992.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  26993.     *)    gl_absname_cpp="$ac_cpp" ;;
  26994.   esac
  26995.  
  26996.   case "$host_os" in
  26997.     mingw*)
  26998.                                           gl_dirsep_regex='[/\\]'
  26999.       ;;
  27000.     *)
  27001.       gl_dirsep_regex='\/'
  27002.       ;;
  27003.   esac
  27004.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  27005.   gl_header_literal_regex=`echo 'stdio.h' \
  27006.                            | sed -e "$gl_make_literal_regex_sed"`
  27007.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  27008.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  27009.      s|^/[^/]|//&|
  27010.      p
  27011.      q
  27012.    }'
  27013.  
  27014.         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  27015.   sed -n "$gl_absolute_header_sed"`
  27016.  
  27017.            gl_header=$gl_cv_absolute_stdio_h
  27018.            gl_cv_next_stdio_h='"'$gl_header'"'
  27019.  
  27020.  
  27021. fi
  27022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
  27023. $as_echo "$gl_cv_next_stdio_h" >&6; }
  27024.      fi
  27025.      NEXT_STDIO_H=$gl_cv_next_stdio_h
  27026.  
  27027.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  27028.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  27029.        gl_next_as_first_directive='<'stdio.h'>'
  27030.      else
  27031.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  27032.        gl_next_as_first_directive=$gl_cv_next_stdio_h
  27033.      fi
  27034.      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
  27035.  
  27036.  
  27037.  
  27038.  
  27039.  
  27040.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
  27041. $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
  27042. if ${gl_cv_func_printf_attribute_flavor+:} false; then :
  27043.   $as_echo_n "(cached) " >&6
  27044. else
  27045.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27046. /* end confdefs.h.  */
  27047.  
  27048.        #define __STDC_FORMAT_MACROS 1
  27049.        #include <stdio.h>
  27050.        #include <inttypes.h>
  27051.        /* For non-mingw systems, compilation will trivially succeed.
  27052.           For mingw, compilation will succeed for older mingw (system
  27053.           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
  27054.        #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
  27055.          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
  27056.        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
  27057.        #endif
  27058.  
  27059. int
  27060. main ()
  27061. {
  27062.  
  27063.   ;
  27064.   return 0;
  27065. }
  27066. _ACEOF
  27067. if ac_fn_c_try_compile "$LINENO"; then :
  27068.   gl_cv_func_printf_attribute_flavor=system
  27069. else
  27070.   gl_cv_func_printf_attribute_flavor=gnu
  27071. fi
  27072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27073. fi
  27074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
  27075. $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
  27076.   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
  27077.  
  27078. $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
  27079.  
  27080.   fi
  27081.  
  27082.       GNULIB_FSCANF=1
  27083.  
  27084.  
  27085. cat >>confdefs.h <<_ACEOF
  27086. #define GNULIB_FSCANF 1
  27087. _ACEOF
  27088.  
  27089.  
  27090.   GNULIB_SCANF=1
  27091.  
  27092.  
  27093. cat >>confdefs.h <<_ACEOF
  27094. #define GNULIB_SCANF 1
  27095. _ACEOF
  27096.  
  27097.  
  27098.   GNULIB_FGETC=1
  27099.   GNULIB_GETC=1
  27100.   GNULIB_GETCHAR=1
  27101.   GNULIB_FGETS=1
  27102.   GNULIB_FREAD=1
  27103.  
  27104.  
  27105.       GNULIB_FPRINTF=1
  27106.   GNULIB_PRINTF=1
  27107.   GNULIB_VFPRINTF=1
  27108.   GNULIB_VPRINTF=1
  27109.   GNULIB_FPUTC=1
  27110.   GNULIB_PUTC=1
  27111.   GNULIB_PUTCHAR=1
  27112.   GNULIB_FPUTS=1
  27113.   GNULIB_PUTS=1
  27114.   GNULIB_FWRITE=1
  27115.  
  27116.  
  27117.  
  27118.  
  27119.     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
  27120.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  27121.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  27122. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  27123. if eval \${$as_gl_Symbol+:} false; then :
  27124.   $as_echo_n "(cached) " >&6
  27125. else
  27126.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27127. /* end confdefs.h.  */
  27128. #include <stdio.h>
  27129.  
  27130. int
  27131. main ()
  27132. {
  27133. #undef $gl_func
  27134.   (void) $gl_func;
  27135.   ;
  27136.   return 0;
  27137. }
  27138. _ACEOF
  27139. if ac_fn_c_try_compile "$LINENO"; then :
  27140.   eval "$as_gl_Symbol=yes"
  27141. else
  27142.   eval "$as_gl_Symbol=no"
  27143. fi
  27144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27145. fi
  27146. eval ac_res=\$$as_gl_Symbol
  27147.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27148. $as_echo "$ac_res" >&6; }
  27149.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  27150.   cat >>confdefs.h <<_ACEOF
  27151. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  27152. _ACEOF
  27153.  
  27154.                      eval ac_cv_have_decl_$gl_func=yes
  27155. fi
  27156.       done
  27157.  
  27158.  
  27159.  
  27160.  
  27161.  
  27162.  
  27163.  
  27164.  
  27165.  
  27166.  
  27167.  
  27168.  
  27169.      if test $gl_cv_have_include_next = yes; then
  27170.        gl_cv_next_stdlib_h='<'stdlib.h'>'
  27171.      else
  27172.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
  27173. $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
  27174. if ${gl_cv_next_stdlib_h+:} false; then :
  27175.   $as_echo_n "(cached) " >&6
  27176. else
  27177.  
  27178.  
  27179.  
  27180.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27181. /* end confdefs.h.  */
  27182. #include <stdlib.h>
  27183. _ACEOF
  27184.                 case "$host_os" in
  27185.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  27186.     *)    gl_absname_cpp="$ac_cpp" ;;
  27187.   esac
  27188.  
  27189.   case "$host_os" in
  27190.     mingw*)
  27191.                                           gl_dirsep_regex='[/\\]'
  27192.       ;;
  27193.     *)
  27194.       gl_dirsep_regex='\/'
  27195.       ;;
  27196.   esac
  27197.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  27198.   gl_header_literal_regex=`echo 'stdlib.h' \
  27199.                            | sed -e "$gl_make_literal_regex_sed"`
  27200.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  27201.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  27202.      s|^/[^/]|//&|
  27203.      p
  27204.      q
  27205.    }'
  27206.  
  27207.         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  27208.   sed -n "$gl_absolute_header_sed"`
  27209.  
  27210.            gl_header=$gl_cv_absolute_stdlib_h
  27211.            gl_cv_next_stdlib_h='"'$gl_header'"'
  27212.  
  27213.  
  27214. fi
  27215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
  27216. $as_echo "$gl_cv_next_stdlib_h" >&6; }
  27217.      fi
  27218.      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
  27219.  
  27220.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  27221.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  27222.        gl_next_as_first_directive='<'stdlib.h'>'
  27223.      else
  27224.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  27225.        gl_next_as_first_directive=$gl_cv_next_stdlib_h
  27226.      fi
  27227.      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
  27228.  
  27229.  
  27230.  
  27231.  
  27232.  
  27233.  
  27234.     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
  27235.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  27236.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  27237. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  27238. if eval \${$as_gl_Symbol+:} false; then :
  27239.   $as_echo_n "(cached) " >&6
  27240. else
  27241.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27242. /* end confdefs.h.  */
  27243. #include <stdlib.h>
  27244. #if HAVE_SYS_LOADAVG_H
  27245. # include <sys/loadavg.h>
  27246. #endif
  27247. #if HAVE_RANDOM_H
  27248. # include <random.h>
  27249. #endif
  27250.  
  27251. int
  27252. main ()
  27253. {
  27254. #undef $gl_func
  27255.   (void) $gl_func;
  27256.   ;
  27257.   return 0;
  27258. }
  27259. _ACEOF
  27260. if ac_fn_c_try_compile "$LINENO"; then :
  27261.   eval "$as_gl_Symbol=yes"
  27262. else
  27263.   eval "$as_gl_Symbol=no"
  27264. fi
  27265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27266. fi
  27267. eval ac_res=\$$as_gl_Symbol
  27268.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27269. $as_echo "$ac_res" >&6; }
  27270.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  27271.   cat >>confdefs.h <<_ACEOF
  27272. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  27273. _ACEOF
  27274.  
  27275.                      eval ac_cv_have_decl_$gl_func=yes
  27276. fi
  27277.       done
  27278.  
  27279.  
  27280.  
  27281.  
  27282.  
  27283.   for ac_func in strcasecmp
  27284. do :
  27285.   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  27286. if test "x$ac_cv_func_strcasecmp" = xyes; then :
  27287.   cat >>confdefs.h <<_ACEOF
  27288. #define HAVE_STRCASECMP 1
  27289. _ACEOF
  27290.  
  27291. fi
  27292. done
  27293.  
  27294.   if test $ac_cv_func_strcasecmp = no; then
  27295.     HAVE_STRCASECMP=0
  27296.   fi
  27297.  
  27298.  
  27299.  
  27300.   for ac_func in strncasecmp
  27301. do :
  27302.   ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  27303. if test "x$ac_cv_func_strncasecmp" = xyes; then :
  27304.   cat >>confdefs.h <<_ACEOF
  27305. #define HAVE_STRNCASECMP 1
  27306. _ACEOF
  27307.  
  27308. fi
  27309. done
  27310.  
  27311.   if test $ac_cv_func_strncasecmp = yes; then
  27312.     HAVE_STRNCASECMP=1
  27313.   else
  27314.     HAVE_STRNCASECMP=0
  27315.   fi
  27316.   ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
  27317. if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
  27318.   ac_have_decl=1
  27319. else
  27320.   ac_have_decl=0
  27321. fi
  27322.  
  27323. cat >>confdefs.h <<_ACEOF
  27324. #define HAVE_DECL_STRNCASECMP $ac_have_decl
  27325. _ACEOF
  27326.  
  27327.   if test $ac_cv_have_decl_strncasecmp = no; then
  27328.     HAVE_DECL_STRNCASECMP=0
  27329.   fi
  27330.  
  27331.  
  27332.   if test $HAVE_STRCASECMP = 0; then
  27333.  
  27334.  
  27335.  
  27336.  
  27337.  
  27338.  
  27339.  
  27340.  
  27341.   gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
  27342.  
  27343.  
  27344.   :
  27345.  
  27346.   fi
  27347.   if test $HAVE_STRNCASECMP = 0; then
  27348.  
  27349.  
  27350.  
  27351.  
  27352.  
  27353.  
  27354.  
  27355.  
  27356.   gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
  27357.  
  27358.  
  27359.   :
  27360.  
  27361.   fi
  27362.  
  27363.  
  27364.  
  27365.  
  27366.  
  27367.  
  27368.  
  27369.  
  27370.  
  27371.  
  27372.  
  27373.   :
  27374.  
  27375.  
  27376.  
  27377.  
  27378.  
  27379.  
  27380.   :
  27381.  
  27382.  
  27383.  
  27384.  
  27385.  
  27386.   if test $ac_cv_have_decl_strndup = no; then
  27387.     HAVE_DECL_STRNDUP=0
  27388.   fi
  27389.  
  27390.   if test $ac_cv_func_strndup = yes; then
  27391.     HAVE_STRNDUP=1
  27392.     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
  27393.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
  27394. $as_echo_n "checking for working strndup... " >&6; }
  27395. if ${gl_cv_func_strndup_works+:} false; then :
  27396.   $as_echo_n "(cached) " >&6
  27397. else
  27398.   if test "$cross_compiling" = yes; then :
  27399.  
  27400.           case $host_os in
  27401.             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
  27402.             *)               gl_cv_func_strndup_works="guessing yes";;
  27403.           esac
  27404.  
  27405. else
  27406.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27407. /* end confdefs.h.  */
  27408.  
  27409.          #include <string.h>
  27410.                            #include <stdlib.h>
  27411. int
  27412. main ()
  27413. {
  27414.  
  27415. #if !HAVE_DECL_STRNDUP
  27416.   extern
  27417.   #ifdef __cplusplus
  27418.   "C"
  27419.   #endif
  27420.   char *strndup (const char *, size_t);
  27421. #endif
  27422.   int result;
  27423.   char *s;
  27424.   s = strndup ("some longer string", 15);
  27425.   free (s);
  27426.   s = strndup ("shorter string", 13);
  27427.   result = s[13] != '\0';
  27428.   free (s);
  27429.   return result;
  27430.   ;
  27431.   return 0;
  27432. }
  27433. _ACEOF
  27434. if ac_fn_c_try_run "$LINENO"; then :
  27435.   gl_cv_func_strndup_works=yes
  27436. else
  27437.   gl_cv_func_strndup_works=no
  27438. fi
  27439. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27440.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  27441. fi
  27442.  
  27443. fi
  27444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
  27445. $as_echo "$gl_cv_func_strndup_works" >&6; }
  27446.     case $gl_cv_func_strndup_works in
  27447.       *no) REPLACE_STRNDUP=1 ;;
  27448.     esac
  27449.   else
  27450.     HAVE_STRNDUP=0
  27451.   fi
  27452.  
  27453.   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
  27454.  
  27455.  
  27456.  
  27457.  
  27458.  
  27459.  
  27460.  
  27461.  
  27462.   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
  27463.  
  27464.   fi
  27465.  
  27466.  
  27467.  
  27468.  
  27469.  
  27470.           GNULIB_STRNDUP=1
  27471.  
  27472.  
  27473.  
  27474.  
  27475.  
  27476. $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
  27477.  
  27478.  
  27479.  
  27480.  
  27481.  
  27482.  
  27483.  
  27484.  
  27485.  
  27486.   :
  27487.  
  27488.  
  27489.  
  27490.  
  27491.  
  27492.   if test $ac_cv_have_decl_strnlen = no; then
  27493.     HAVE_DECL_STRNLEN=0
  27494.   else
  27495.  
  27496.          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
  27497. $as_echo_n "checking for working strnlen... " >&6; }
  27498. if ${ac_cv_func_strnlen_working+:} false; then :
  27499.   $as_echo_n "(cached) " >&6
  27500. else
  27501.   if test "$cross_compiling" = yes; then :
  27502.   # Guess no on AIX systems, yes otherwise.
  27503.                 case "$host_os" in
  27504.                   aix*) ac_cv_func_strnlen_working=no;;
  27505.                   *)    ac_cv_func_strnlen_working=yes;;
  27506.                 esac
  27507. else
  27508.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27509. /* end confdefs.h.  */
  27510. $ac_includes_default
  27511. int
  27512. main ()
  27513. {
  27514.  
  27515. #define S "foobar"
  27516. #define S_LEN (sizeof S - 1)
  27517.  
  27518.   /* At least one implementation is buggy: that of AIX 4.3 would
  27519.      give strnlen (S, 1) == 3.  */
  27520.  
  27521.   int i;
  27522.   for (i = 0; i < S_LEN + 1; ++i)
  27523.     {
  27524.       int expected = i <= S_LEN ? i : S_LEN;
  27525.       if (strnlen (S, i) != expected)
  27526.         return 1;
  27527.     }
  27528.   return 0;
  27529.  
  27530.   ;
  27531.   return 0;
  27532. }
  27533. _ACEOF
  27534. if ac_fn_c_try_run "$LINENO"; then :
  27535.   ac_cv_func_strnlen_working=yes
  27536. else
  27537.   ac_cv_func_strnlen_working=no
  27538. fi
  27539. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27540.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  27541. fi
  27542.  
  27543. fi
  27544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
  27545. $as_echo "$ac_cv_func_strnlen_working" >&6; }
  27546. test $ac_cv_func_strnlen_working = no && :
  27547.  
  27548.  
  27549.     if test $ac_cv_func_strnlen_working = no; then
  27550.       REPLACE_STRNLEN=1
  27551.     fi
  27552.   fi
  27553.  
  27554.   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
  27555.  
  27556.  
  27557.  
  27558.  
  27559.  
  27560.  
  27561.  
  27562.  
  27563.   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
  27564.  
  27565.     :
  27566.   fi
  27567.  
  27568.  
  27569.  
  27570.  
  27571.  
  27572.           GNULIB_STRNLEN=1
  27573.  
  27574.  
  27575.  
  27576.  
  27577.  
  27578. $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
  27579.  
  27580.  
  27581.  
  27582.  
  27583.  
  27584.  
  27585.  
  27586.      for ac_func in strtok_r
  27587. do :
  27588.   ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  27589. if test "x$ac_cv_func_strtok_r" = xyes; then :
  27590.   cat >>confdefs.h <<_ACEOF
  27591. #define HAVE_STRTOK_R 1
  27592. _ACEOF
  27593.  
  27594. fi
  27595. done
  27596.  
  27597.   if test $ac_cv_func_strtok_r = yes; then
  27598.     HAVE_STRTOK_R=1
  27599.                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
  27600. $as_echo_n "checking whether strtok_r works... " >&6; }
  27601. if ${gl_cv_func_strtok_r_works+:} false; then :
  27602.   $as_echo_n "(cached) " >&6
  27603. else
  27604.   if test "$cross_compiling" = yes; then :
  27605.  
  27606.           case "$host_os" in
  27607.                     # Guess no on glibc systems.
  27608.             *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
  27609.             *)      gl_cv_func_strtok_r_works="guessing yes";;
  27610.           esac
  27611.  
  27612. else
  27613.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27614. /* end confdefs.h.  */
  27615.  
  27616.               #ifndef __OPTIMIZE__
  27617.               # define __OPTIMIZE__ 1
  27618.               #endif
  27619.               #undef __OPTIMIZE_SIZE__
  27620.               #undef __NO_INLINE__
  27621.               #include <stdlib.h>
  27622.               #include <string.h>
  27623.  
  27624. int
  27625. main ()
  27626. {
  27627. static const char dummy[] = "\177\01a";
  27628.               char delimiters[] = "xxxxxxxx";
  27629.               char *save_ptr = (char *) dummy;
  27630.               strtok_r (delimiters, "x", &save_ptr);
  27631.               strtok_r (NULL, "x", &save_ptr);
  27632.               return 0;
  27633.  
  27634.   ;
  27635.   return 0;
  27636. }
  27637.  
  27638. _ACEOF
  27639. if ac_fn_c_try_run "$LINENO"; then :
  27640.   gl_cv_func_strtok_r_works=yes
  27641. else
  27642.   gl_cv_func_strtok_r_works=no
  27643. fi
  27644. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27645.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  27646. fi
  27647.  
  27648.  
  27649. fi
  27650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
  27651. $as_echo "$gl_cv_func_strtok_r_works" >&6; }
  27652.     case "$gl_cv_func_strtok_r_works" in
  27653.       *no)
  27654.                                 UNDEFINE_STRTOK_R=1
  27655.         ;;
  27656.     esac
  27657.   else
  27658.     HAVE_STRTOK_R=0
  27659.   fi
  27660.  
  27661.   :
  27662.  
  27663.  
  27664.  
  27665.  
  27666.  
  27667.   if test $ac_cv_have_decl_strtok_r = no; then
  27668.     HAVE_DECL_STRTOK_R=0
  27669.   fi
  27670.  
  27671.   if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
  27672.  
  27673.  
  27674.  
  27675.  
  27676.  
  27677.  
  27678.  
  27679.  
  27680.   gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
  27681.  
  27682.  
  27683.   :
  27684.  
  27685.   fi
  27686.  
  27687.  
  27688.  
  27689.  
  27690.  
  27691.           GNULIB_STRTOK_R=1
  27692.  
  27693.  
  27694.  
  27695.  
  27696.  
  27697. $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
  27698.  
  27699.  
  27700.  
  27701.  
  27702.  
  27703.  
  27704.  
  27705.   for ac_func in strverscmp
  27706. do :
  27707.   ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
  27708. if test "x$ac_cv_func_strverscmp" = xyes; then :
  27709.   cat >>confdefs.h <<_ACEOF
  27710. #define HAVE_STRVERSCMP 1
  27711. _ACEOF
  27712.  
  27713. fi
  27714. done
  27715.  
  27716.   if test $ac_cv_func_strverscmp = no; then
  27717.     HAVE_STRVERSCMP=0
  27718.   fi
  27719.  
  27720.   if test $HAVE_STRVERSCMP = 0; then
  27721.  
  27722.  
  27723.  
  27724.  
  27725.  
  27726.  
  27727.  
  27728.  
  27729.   gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
  27730.  
  27731.  
  27732.   :
  27733.  
  27734.   fi
  27735.  
  27736.  
  27737.  
  27738.  
  27739.  
  27740.           GNULIB_STRVERSCMP=1
  27741.  
  27742.  
  27743.  
  27744.  
  27745.  
  27746. $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
  27747.  
  27748.  
  27749.  
  27750.  
  27751.  
  27752.  
  27753.  
  27754.  
  27755.  
  27756.  
  27757.  
  27758.  
  27759.  
  27760.  
  27761.  
  27762.  
  27763.   :
  27764.  
  27765.  
  27766.  
  27767.  
  27768.  
  27769.  
  27770.  
  27771.  
  27772.      if test $gl_cv_have_include_next = yes; then
  27773.        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  27774.      else
  27775.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
  27776. $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
  27777. if ${gl_cv_next_sys_stat_h+:} false; then :
  27778.   $as_echo_n "(cached) " >&6
  27779. else
  27780.  
  27781.              if test $ac_cv_header_sys_stat_h = yes; then
  27782.  
  27783.  
  27784.  
  27785.  
  27786.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27787. /* end confdefs.h.  */
  27788. #include <sys/stat.h>
  27789. _ACEOF
  27790.                 case "$host_os" in
  27791.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  27792.     *)    gl_absname_cpp="$ac_cpp" ;;
  27793.   esac
  27794.  
  27795.   case "$host_os" in
  27796.     mingw*)
  27797.                                           gl_dirsep_regex='[/\\]'
  27798.       ;;
  27799.     *)
  27800.       gl_dirsep_regex='\/'
  27801.       ;;
  27802.   esac
  27803.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  27804.   gl_header_literal_regex=`echo 'sys/stat.h' \
  27805.                            | sed -e "$gl_make_literal_regex_sed"`
  27806.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  27807.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  27808.      s|^/[^/]|//&|
  27809.      p
  27810.      q
  27811.    }'
  27812.  
  27813.         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  27814.   sed -n "$gl_absolute_header_sed"`
  27815.  
  27816.            gl_header=$gl_cv_absolute_sys_stat_h
  27817.            gl_cv_next_sys_stat_h='"'$gl_header'"'
  27818.           else
  27819.                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  27820.              fi
  27821.  
  27822.  
  27823. fi
  27824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
  27825. $as_echo "$gl_cv_next_sys_stat_h" >&6; }
  27826.      fi
  27827.      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
  27828.  
  27829.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  27830.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  27831.        gl_next_as_first_directive='<'sys/stat.h'>'
  27832.      else
  27833.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  27834.        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
  27835.      fi
  27836.      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
  27837.  
  27838.  
  27839.  
  27840.  
  27841.  
  27842.  
  27843.  
  27844.  
  27845.  
  27846.  
  27847.  
  27848.   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
  27849.  
  27850. $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
  27851.  
  27852.   fi
  27853.  
  27854.       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
  27855.     #include <sys/stat.h>
  27856. "
  27857. if test "x$ac_cv_type_nlink_t" = xyes; then :
  27858.  
  27859. else
  27860.  
  27861. $as_echo "#define nlink_t int" >>confdefs.h
  27862.  
  27863. fi
  27864.  
  27865.  
  27866.  
  27867.     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
  27868.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  27869.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  27870. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  27871. if eval \${$as_gl_Symbol+:} false; then :
  27872.   $as_echo_n "(cached) " >&6
  27873. else
  27874.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27875. /* end confdefs.h.  */
  27876. #include <sys/stat.h>
  27877.  
  27878. int
  27879. main ()
  27880. {
  27881. #undef $gl_func
  27882.   (void) $gl_func;
  27883.   ;
  27884.   return 0;
  27885. }
  27886. _ACEOF
  27887. if ac_fn_c_try_compile "$LINENO"; then :
  27888.   eval "$as_gl_Symbol=yes"
  27889. else
  27890.   eval "$as_gl_Symbol=no"
  27891. fi
  27892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27893. fi
  27894. eval ac_res=\$$as_gl_Symbol
  27895.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27896. $as_echo "$ac_res" >&6; }
  27897.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  27898.   cat >>confdefs.h <<_ACEOF
  27899. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  27900. _ACEOF
  27901.  
  27902.                      eval ac_cv_have_decl_$gl_func=yes
  27903. fi
  27904.       done
  27905.  
  27906.  
  27907.  
  27908.  
  27909.  
  27910.  
  27911.  
  27912.  
  27913.  
  27914.  
  27915.  
  27916.  
  27917.  
  27918.  
  27919.  
  27920.  
  27921.  
  27922.   :
  27923.  
  27924.  
  27925.  
  27926.  
  27927.  
  27928.  
  27929.  
  27930.  
  27931.      if test $gl_cv_have_include_next = yes; then
  27932.        gl_cv_next_sys_uio_h='<'sys/uio.h'>'
  27933.      else
  27934.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
  27935. $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
  27936. if ${gl_cv_next_sys_uio_h+:} false; then :
  27937.   $as_echo_n "(cached) " >&6
  27938. else
  27939.  
  27940.              if test $ac_cv_header_sys_uio_h = yes; then
  27941.  
  27942.  
  27943.  
  27944.  
  27945.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27946. /* end confdefs.h.  */
  27947. #include <sys/uio.h>
  27948. _ACEOF
  27949.                 case "$host_os" in
  27950.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  27951.     *)    gl_absname_cpp="$ac_cpp" ;;
  27952.   esac
  27953.  
  27954.   case "$host_os" in
  27955.     mingw*)
  27956.                                           gl_dirsep_regex='[/\\]'
  27957.       ;;
  27958.     *)
  27959.       gl_dirsep_regex='\/'
  27960.       ;;
  27961.   esac
  27962.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  27963.   gl_header_literal_regex=`echo 'sys/uio.h' \
  27964.                            | sed -e "$gl_make_literal_regex_sed"`
  27965.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  27966.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  27967.      s|^/[^/]|//&|
  27968.      p
  27969.      q
  27970.    }'
  27971.  
  27972.         gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  27973.   sed -n "$gl_absolute_header_sed"`
  27974.  
  27975.            gl_header=$gl_cv_absolute_sys_uio_h
  27976.            gl_cv_next_sys_uio_h='"'$gl_header'"'
  27977.           else
  27978.                gl_cv_next_sys_uio_h='<'sys/uio.h'>'
  27979.              fi
  27980.  
  27981.  
  27982. fi
  27983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
  27984. $as_echo "$gl_cv_next_sys_uio_h" >&6; }
  27985.      fi
  27986.      NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
  27987.  
  27988.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  27989.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  27990.        gl_next_as_first_directive='<'sys/uio.h'>'
  27991.      else
  27992.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  27993.        gl_next_as_first_directive=$gl_cv_next_sys_uio_h
  27994.      fi
  27995.      NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
  27996.  
  27997.  
  27998.  
  27999.  
  28000.   if test $ac_cv_header_sys_uio_h = yes; then
  28001.     HAVE_SYS_UIO_H=1
  28002.   else
  28003.     HAVE_SYS_UIO_H=0
  28004.   fi
  28005.  
  28006.  
  28007.  
  28008.  
  28009.  
  28010.  
  28011.  
  28012.  
  28013.  
  28014.  
  28015.  
  28016.  
  28017.       ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
  28018. "
  28019. if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
  28020.   ac_have_decl=1
  28021. else
  28022.   ac_have_decl=0
  28023. fi
  28024.  
  28025. cat >>confdefs.h <<_ACEOF
  28026. #define HAVE_DECL_LOCALTIME_R $ac_have_decl
  28027. _ACEOF
  28028.  
  28029.   if test $ac_cv_have_decl_localtime_r = no; then
  28030.     HAVE_DECL_LOCALTIME_R=0
  28031.   fi
  28032.  
  28033.  
  28034.   :
  28035.  
  28036.  
  28037.  
  28038.  
  28039.  
  28040.   if test $ac_cv_func_localtime_r = yes; then
  28041.     HAVE_LOCALTIME_R=1
  28042.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
  28043. $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
  28044. if ${gl_cv_time_r_posix+:} false; then :
  28045.   $as_echo_n "(cached) " >&6
  28046. else
  28047.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28048. /* end confdefs.h.  */
  28049. #include <time.h>
  28050. int
  28051. main ()
  28052. {
  28053. /* We don't need to append 'restrict's to the argument types,
  28054.                 even though the POSIX signature has the 'restrict's,
  28055.                 since C99 says they can't affect type compatibility.  */
  28056.               struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
  28057.               if (ptr) return 0;
  28058.               /* Check the return type is a pointer.
  28059.                  On HP-UX 10 it is 'int'.  */
  28060.               *localtime_r (0, 0);
  28061.   ;
  28062.   return 0;
  28063. }
  28064.  
  28065. _ACEOF
  28066. if ac_fn_c_try_compile "$LINENO"; then :
  28067.   gl_cv_time_r_posix=yes
  28068. else
  28069.   gl_cv_time_r_posix=no
  28070. fi
  28071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28072.  
  28073. fi
  28074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
  28075. $as_echo "$gl_cv_time_r_posix" >&6; }
  28076.     if test $gl_cv_time_r_posix = yes; then
  28077.       REPLACE_LOCALTIME_R=0
  28078.     else
  28079.       REPLACE_LOCALTIME_R=1
  28080.     fi
  28081.   else
  28082.     HAVE_LOCALTIME_R=0
  28083.   fi
  28084.  
  28085.   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
  28086.  
  28087.  
  28088.  
  28089.  
  28090.  
  28091.  
  28092.  
  28093.  
  28094.   gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
  28095.  
  28096.  
  28097.   :
  28098.  
  28099.   fi
  28100.  
  28101.  
  28102.  
  28103.  
  28104.  
  28105.           GNULIB_TIME_R=1
  28106.  
  28107.  
  28108.  
  28109.  
  28110.  
  28111. $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
  28112.  
  28113.  
  28114.  
  28115.  
  28116.  
  28117.  
  28118.  
  28119.  
  28120.  
  28121.  
  28122.  
  28123.  
  28124.   :
  28125.  
  28126.  
  28127.  
  28128.  
  28129.  
  28130.  
  28131.  
  28132.  
  28133.      if test $gl_cv_have_include_next = yes; then
  28134.        gl_cv_next_unistd_h='<'unistd.h'>'
  28135.      else
  28136.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
  28137. $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
  28138. if ${gl_cv_next_unistd_h+:} false; then :
  28139.   $as_echo_n "(cached) " >&6
  28140. else
  28141.  
  28142.              if test $ac_cv_header_unistd_h = yes; then
  28143.  
  28144.  
  28145.  
  28146.  
  28147.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28148. /* end confdefs.h.  */
  28149. #include <unistd.h>
  28150. _ACEOF
  28151.                 case "$host_os" in
  28152.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  28153.     *)    gl_absname_cpp="$ac_cpp" ;;
  28154.   esac
  28155.  
  28156.   case "$host_os" in
  28157.     mingw*)
  28158.                                           gl_dirsep_regex='[/\\]'
  28159.       ;;
  28160.     *)
  28161.       gl_dirsep_regex='\/'
  28162.       ;;
  28163.   esac
  28164.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  28165.   gl_header_literal_regex=`echo 'unistd.h' \
  28166.                            | sed -e "$gl_make_literal_regex_sed"`
  28167.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  28168.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  28169.      s|^/[^/]|//&|
  28170.      p
  28171.      q
  28172.    }'
  28173.  
  28174.         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  28175.   sed -n "$gl_absolute_header_sed"`
  28176.  
  28177.            gl_header=$gl_cv_absolute_unistd_h
  28178.            gl_cv_next_unistd_h='"'$gl_header'"'
  28179.           else
  28180.                gl_cv_next_unistd_h='<'unistd.h'>'
  28181.              fi
  28182.  
  28183.  
  28184. fi
  28185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
  28186. $as_echo "$gl_cv_next_unistd_h" >&6; }
  28187.      fi
  28188.      NEXT_UNISTD_H=$gl_cv_next_unistd_h
  28189.  
  28190.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  28191.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  28192.        gl_next_as_first_directive='<'unistd.h'>'
  28193.      else
  28194.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  28195.        gl_next_as_first_directive=$gl_cv_next_unistd_h
  28196.      fi
  28197.      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
  28198.  
  28199.  
  28200.  
  28201.  
  28202.   if test $ac_cv_header_unistd_h = yes; then
  28203.     HAVE_UNISTD_H=1
  28204.   else
  28205.     HAVE_UNISTD_H=0
  28206.   fi
  28207.  
  28208.  
  28209.  
  28210.  
  28211.  
  28212.  
  28213.  
  28214.     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
  28215.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  28216.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  28217. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  28218. if eval \${$as_gl_Symbol+:} false; then :
  28219.   $as_echo_n "(cached) " >&6
  28220. else
  28221.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28222. /* end confdefs.h.  */
  28223.  
  28224. #if HAVE_UNISTD_H
  28225. # include <unistd.h>
  28226. #endif
  28227. /* Some systems declare various items in the wrong headers.  */
  28228. #if !(defined __GLIBC__ && !defined __UCLIBC__)
  28229. # include <fcntl.h>
  28230. # include <stdio.h>
  28231. # include <stdlib.h>
  28232. # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
  28233. #  include <io.h>
  28234. # endif
  28235. #endif
  28236.  
  28237. int
  28238. main ()
  28239. {
  28240. #undef $gl_func
  28241.   (void) $gl_func;
  28242.   ;
  28243.   return 0;
  28244. }
  28245. _ACEOF
  28246. if ac_fn_c_try_compile "$LINENO"; then :
  28247.   eval "$as_gl_Symbol=yes"
  28248. else
  28249.   eval "$as_gl_Symbol=no"
  28250. fi
  28251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28252. fi
  28253. eval ac_res=\$$as_gl_Symbol
  28254.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  28255. $as_echo "$ac_res" >&6; }
  28256.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  28257.   cat >>confdefs.h <<_ACEOF
  28258. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  28259. _ACEOF
  28260.  
  28261.                      eval ac_cv_have_decl_$gl_func=yes
  28262. fi
  28263.       done
  28264.  
  28265.  
  28266.  
  28267.   # Check whether --enable-valgrind-tests was given.
  28268. if test "${enable_valgrind_tests+set}" = set; then :
  28269.   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
  28270. else
  28271.   opt_valgrind_tests=no
  28272. fi
  28273.  
  28274.  
  28275.   # Run self-tests under valgrind?
  28276.   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
  28277.     for ac_prog in valgrind
  28278. do
  28279.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  28280. set dummy $ac_prog; ac_word=$2
  28281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28282. $as_echo_n "checking for $ac_word... " >&6; }
  28283. if ${ac_cv_prog_VALGRIND+:} false; then :
  28284.   $as_echo_n "(cached) " >&6
  28285. else
  28286.   if test -n "$VALGRIND"; then
  28287.   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
  28288. else
  28289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28290. for as_dir in $PATH
  28291. do
  28292.   IFS=$as_save_IFS
  28293.   test -z "$as_dir" && as_dir=.
  28294.     for ac_exec_ext in '' $ac_executable_extensions; do
  28295.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  28296.     ac_cv_prog_VALGRIND="$ac_prog"
  28297.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28298.     break 2
  28299.   fi
  28300. done
  28301.   done
  28302. IFS=$as_save_IFS
  28303.  
  28304. fi
  28305. fi
  28306. VALGRIND=$ac_cv_prog_VALGRIND
  28307. if test -n "$VALGRIND"; then
  28308.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
  28309. $as_echo "$VALGRIND" >&6; }
  28310. else
  28311.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28312. $as_echo "no" >&6; }
  28313. fi
  28314.  
  28315.  
  28316.   test -n "$VALGRIND" && break
  28317. done
  28318.  
  28319.   fi
  28320.  
  28321.   OPTS="-q --error-exitcode=6 --leak-check=full"
  28322.  
  28323.   if test -n "$VALGRIND" \
  28324.      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
  28325.     opt_valgrind_tests=yes
  28326.     VALGRIND="$VALGRIND $OPTS --suppressions=\$(srcdir)/suppressions.valgrind"
  28327.   else
  28328.     opt_valgrind_tests=no
  28329.     VALGRIND=
  28330.   fi
  28331.  
  28332.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
  28333. $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
  28334.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
  28335. $as_echo "$opt_valgrind_tests" >&6; }
  28336.  
  28337.  
  28338.  
  28339.   :
  28340.  
  28341.  
  28342.  
  28343.  
  28344.  
  28345.   if test $ac_cv_func_vasnprintf = no; then
  28346.  
  28347.  
  28348.   :
  28349.  
  28350.  
  28351.  
  28352.  
  28353.  
  28354.  
  28355.  
  28356.  
  28357.  
  28358.  
  28359.  
  28360.  
  28361.  
  28362.   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
  28363.  
  28364.  
  28365.  
  28366.  
  28367.  
  28368.  
  28369.  
  28370.  
  28371.  
  28372.   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
  28373.  
  28374.  
  28375.  
  28376.  
  28377.  
  28378.  
  28379.  
  28380.  
  28381.  
  28382.   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
  28383.  
  28384.  
  28385.  
  28386.  
  28387.  
  28388.  
  28389.  
  28390.  
  28391.  
  28392.   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
  28393.  
  28394.   if test $ac_cv_func_vasnprintf = yes; then
  28395.  
  28396. $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
  28397.  
  28398.   fi
  28399.  
  28400.  
  28401.  
  28402.  
  28403.  
  28404.  
  28405.  
  28406.  
  28407.  
  28408.  
  28409.  
  28410.   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  28411. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  28412.  
  28413. else
  28414.  
  28415. $as_echo "#define ptrdiff_t long" >>confdefs.h
  28416.  
  28417.  
  28418. fi
  28419.  
  28420.  
  28421.  
  28422.  
  28423.  
  28424.  
  28425.  
  28426.   fi
  28427.  
  28428.  
  28429.   for ac_func in vasprintf
  28430. do :
  28431.   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  28432. if test "x$ac_cv_func_vasprintf" = xyes; then :
  28433.   cat >>confdefs.h <<_ACEOF
  28434. #define HAVE_VASPRINTF 1
  28435. _ACEOF
  28436.  
  28437. fi
  28438. done
  28439.  
  28440.   if test $ac_cv_func_vasprintf = no; then
  28441.  
  28442.  
  28443.  
  28444.  
  28445.  
  28446.  
  28447.  
  28448.  
  28449.  
  28450.   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
  28451.  
  28452.  
  28453.  
  28454.  
  28455.  
  28456.  
  28457.  
  28458.  
  28459.  
  28460.   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
  28461.  
  28462.  
  28463.   if test $ac_cv_func_vasprintf = yes; then
  28464.     REPLACE_VASPRINTF=1
  28465.   else
  28466.     HAVE_VASPRINTF=0
  28467.   fi
  28468.  
  28469.  
  28470.  
  28471.  
  28472.  
  28473.  
  28474.  
  28475.  
  28476.   fi
  28477.  
  28478.  
  28479.  
  28480.  
  28481.  
  28482.  
  28483.           GNULIB_VASPRINTF=1
  28484.  
  28485.  
  28486.  
  28487.  
  28488.  
  28489. $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
  28490.  
  28491.  
  28492.  
  28493.  
  28494.  
  28495.   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
  28496.  
  28497.  
  28498.  
  28499.   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
  28500.  
  28501.  
  28502.  
  28503.   gl_cv_func_vsnprintf_usable=no
  28504.   for ac_func in vsnprintf
  28505. do :
  28506.   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  28507. if test "x$ac_cv_func_vsnprintf" = xyes; then :
  28508.   cat >>confdefs.h <<_ACEOF
  28509. #define HAVE_VSNPRINTF 1
  28510. _ACEOF
  28511.  
  28512. fi
  28513. done
  28514.  
  28515.   if test $ac_cv_func_vsnprintf = yes; then
  28516.  
  28517.  
  28518.  
  28519.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
  28520. $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
  28521. if ${gl_cv_func_snprintf_size1+:} false; then :
  28522.   $as_echo_n "(cached) " >&6
  28523. else
  28524.  
  28525.       if test "$cross_compiling" = yes; then :
  28526.   gl_cv_func_snprintf_size1="guessing yes"
  28527. else
  28528.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28529. /* end confdefs.h.  */
  28530.  
  28531. #include <stdio.h>
  28532. #if HAVE_SNPRINTF
  28533. # define my_snprintf snprintf
  28534. #else
  28535. # include <stdarg.h>
  28536. static int my_snprintf (char *buf, int size, const char *format, ...)
  28537. {
  28538.   va_list args;
  28539.   int ret;
  28540.   va_start (args, format);
  28541.   ret = vsnprintf (buf, size, format, args);
  28542.   va_end (args);
  28543.   return ret;
  28544. }
  28545. #endif
  28546. int main()
  28547. {
  28548.   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
  28549.   my_snprintf (buf, 1, "%d", 12345);
  28550.   return buf[1] != 'E';
  28551. }
  28552. _ACEOF
  28553. if ac_fn_c_try_run "$LINENO"; then :
  28554.   gl_cv_func_snprintf_size1=yes
  28555. else
  28556.   gl_cv_func_snprintf_size1=no
  28557. fi
  28558. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28559.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  28560. fi
  28561.  
  28562.  
  28563. fi
  28564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
  28565. $as_echo "$gl_cv_func_snprintf_size1" >&6; }
  28566.  
  28567.     case "$gl_cv_func_snprintf_size1" in
  28568.       *yes)
  28569.  
  28570.         case "$gl_cv_func_snprintf_retval_c99" in
  28571.           *yes)
  28572.  
  28573.  
  28574.      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
  28575. $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
  28576. if ${gl_cv_func_printf_positions+:} false; then :
  28577.   $as_echo_n "(cached) " >&6
  28578. else
  28579.  
  28580.       if test "$cross_compiling" = yes; then :
  28581.  
  28582.          case "$host_os" in
  28583.            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
  28584.                          gl_cv_func_printf_positions="guessing no";;
  28585.            beos*)        gl_cv_func_printf_positions="guessing no";;
  28586.            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
  28587.            *)            gl_cv_func_printf_positions="guessing yes";;
  28588.          esac
  28589.  
  28590. else
  28591.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28592. /* end confdefs.h.  */
  28593.  
  28594. #include <stdio.h>
  28595. #include <string.h>
  28596. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  28597.   dollar expansion (possibly an autoconf bug).  */
  28598. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  28599. static char buf[100];
  28600. int main ()
  28601. {
  28602.  sprintf (buf, format, 33, 55);
  28603.  return (strcmp (buf, "55 33") != 0);
  28604. }
  28605. _ACEOF
  28606. if ac_fn_c_try_run "$LINENO"; then :
  28607.  gl_cv_func_printf_positions=yes
  28608. else
  28609.  gl_cv_func_printf_positions=no
  28610. fi
  28611. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28612.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  28613. fi
  28614.  
  28615.  
  28616. fi
  28617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
  28618. $as_echo "$gl_cv_func_printf_positions" >&6; }
  28619.  
  28620.            case "$gl_cv_func_printf_positions" in
  28621.              *yes)
  28622.                gl_cv_func_vsnprintf_usable=yes
  28623.                ;;
  28624.            esac
  28625.            ;;
  28626.        esac
  28627.        ;;
  28628.    esac
  28629.  fi
  28630.  if test $gl_cv_func_vsnprintf_usable = no; then
  28631.  
  28632.  
  28633.  
  28634.  
  28635.  
  28636.  
  28637.  
  28638.  
  28639.  
  28640.  
  28641.  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
  28642.  
  28643.  if test $ac_cv_func_vsnprintf = yes; then
  28644.    REPLACE_VSNPRINTF=1
  28645.  fi
  28646.  :
  28647.  
  28648.  fi
  28649.  
  28650.  :
  28651.  
  28652.  
  28653.  
  28654.  
  28655.  
  28656.  if test $ac_cv_have_decl_vsnprintf = no; then
  28657.    HAVE_DECL_VSNPRINTF=0
  28658.  fi
  28659.  
  28660.  
  28661.  
  28662.  
  28663.  
  28664.  
  28665.          GNULIB_VSNPRINTF=1
  28666.  
  28667.  
  28668.  
  28669.  
  28670.  
  28671. $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
  28672.  
  28673.  
  28674.  
  28675.  
  28676.  
  28677.  
  28678.  
  28679.  
  28680.  
  28681.  
  28682.  
  28683.  
  28684.  :
  28685.  
  28686.  
  28687.  
  28688.  
  28689.  
  28690.  
  28691.  
  28692.  
  28693.     if test $gl_cv_have_include_next = yes; then
  28694.       gl_cv_next_wchar_h='<'wchar.h'>'
  28695.     else
  28696.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
  28697. $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
  28698. if ${gl_cv_next_wchar_h+:} false; then :
  28699.  $as_echo_n "(cached) " >&6
  28700. else
  28701.  
  28702.             if test $ac_cv_header_wchar_h = yes; then
  28703.  
  28704.  
  28705.  
  28706.  
  28707.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28708. /* end confdefs.h.  */
  28709. #include <wchar.h>
  28710. _ACEOF
  28711.                case "$host_os" in
  28712.    aix*) gl_absname_cpp="$ac_cpp -C" ;;
  28713.    *)    gl_absname_cpp="$ac_cpp" ;;
  28714.  esac
  28715.  
  28716.  case "$host_os" in
  28717.    mingw*)
  28718.                                          gl_dirsep_regex='[/\\]'
  28719.      ;;
  28720.    *)
  28721.      gl_dirsep_regex='\/'
  28722.      ;;
  28723.  esac
  28724.      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  28725.  gl_header_literal_regex=`echo 'wchar.h' \
  28726.                           | sed -e "$gl_make_literal_regex_sed"`
  28727.  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  28728.       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  28729.       s|^/[^/]|//&|
  28730.       p
  28731.       q
  28732.     }'
  28733.  
  28734.        gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  28735.  sed -n "$gl_absolute_header_sed"`
  28736.  
  28737.           gl_header=$gl_cv_absolute_wchar_h
  28738.           gl_cv_next_wchar_h='"'$gl_header'"'
  28739.          else
  28740.               gl_cv_next_wchar_h='<'wchar.h'>'
  28741.             fi
  28742.  
  28743.  
  28744. fi
  28745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
  28746. $as_echo "$gl_cv_next_wchar_h" >&6; }
  28747.     fi
  28748.     NEXT_WCHAR_H=$gl_cv_next_wchar_h
  28749.  
  28750.     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  28751.       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  28752.       gl_next_as_first_directive='<'wchar.h'>'
  28753.     else
  28754.       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  28755.       gl_next_as_first_directive=$gl_cv_next_wchar_h
  28756.     fi
  28757.     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
  28758.  
  28759.  
  28760.  
  28761.  
  28762.  if test $ac_cv_header_wchar_h = yes; then
  28763.    HAVE_WCHAR_H=1
  28764.  else
  28765.    HAVE_WCHAR_H=0
  28766.  fi
  28767.  
  28768.  
  28769.  
  28770.  
  28771.  
  28772.  if test $gt_cv_c_wint_t = yes; then
  28773.    HAVE_WINT_T=1
  28774.  else
  28775.    HAVE_WINT_T=0
  28776.  fi
  28777.  
  28778.  
  28779.  
  28780.    for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
  28781.    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  28782.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  28783. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  28784. if eval \${$as_gl_Symbol+:} false; then :
  28785.  $as_echo_n "(cached) " >&6
  28786. else
  28787.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28788. /* end confdefs.h.  */
  28789.  
  28790. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  28791.   <wchar.h>.
  28792.   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  28793.   included before <wchar.h>.  */
  28794. #if !(defined __GLIBC__ && !defined __UCLIBC__)
  28795. # include <stddef.h>
  28796. # include <stdio.h>
  28797. # include <time.h>
  28798. #endif
  28799. #include <wchar.h>
  28800.  
  28801. int
  28802. main ()
  28803. {
  28804. #undef $gl_func
  28805.  (void) $gl_func;
  28806.  ;
  28807.  return 0;
  28808. }
  28809. _ACEOF
  28810. if ac_fn_c_try_compile "$LINENO"; then :
  28811.  eval "$as_gl_Symbol=yes"
  28812. else
  28813.  eval "$as_gl_Symbol=no"
  28814. fi
  28815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28816. fi
  28817. eval ac_res=\$$as_gl_Symbol
  28818.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  28819. $as_echo "$ac_res" >&6; }
  28820.    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  28821.  cat >>confdefs.h <<_ACEOF
  28822. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  28823. _ACEOF
  28824.  
  28825.                     eval ac_cv_have_decl_$gl_func=yes
  28826. fi
  28827.      done
  28828.  
  28829.  
  28830.  
  28831.  
  28832.  for ac_header in stdint.h
  28833. do :
  28834.  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  28835. if test "x$ac_cv_header_stdint_h" = xyes; then :
  28836.  cat >>confdefs.h <<_ACEOF
  28837. #define HAVE_STDINT_H 1
  28838. _ACEOF
  28839.  
  28840. fi
  28841.  
  28842. done
  28843.  
  28844.  
  28845.  # End of code from modules
  28846.  
  28847.  
  28848.  
  28849.  
  28850.  
  28851.  
  28852.  
  28853.  
  28854.  
  28855.  gltests_libdeps=
  28856.  gltests_ltlibdeps=
  28857.  
  28858.  
  28859.  
  28860.  
  28861.  
  28862.  
  28863.  
  28864.  
  28865.  
  28866.  gl_source_base='gl/tests'
  28867.  gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
  28868.  
  28869.  gl_module_indicator_condition=$gltests_WITNESS
  28870.  
  28871.  
  28872.  
  28873.  
  28874.  
  28875.  
  28876.  
  28877.  
  28878.  
  28879.  
  28880.  
  28881.  
  28882.     if test $gl_cv_have_include_next = yes; then
  28883.       gl_cv_next_ctype_h='<'ctype.h'>'
  28884.     else
  28885.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
  28886. $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
  28887. if ${gl_cv_next_ctype_h+:} false; then :
  28888.  $as_echo_n "(cached) " >&6
  28889. else
  28890.  
  28891.  
  28892.  
  28893.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28894. /* end confdefs.h.  */
  28895. #include <ctype.h>
  28896. _ACEOF
  28897.                case "$host_os" in
  28898.    aix*) gl_absname_cpp="$ac_cpp -C" ;;
  28899.    *)    gl_absname_cpp="$ac_cpp" ;;
  28900.  esac
  28901.  
  28902.  case "$host_os" in
  28903.    mingw*)
  28904.                                          gl_dirsep_regex='[/\\]'
  28905.      ;;
  28906.    *)
  28907.      gl_dirsep_regex='\/'
  28908.      ;;
  28909.  esac
  28910.      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  28911.  gl_header_literal_regex=`echo 'ctype.h' \
  28912.                           | sed -e "$gl_make_literal_regex_sed"`
  28913.  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  28914.       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  28915.       s|^/[^/]|//&|
  28916.       p
  28917.       q
  28918.     }'
  28919.  
  28920.        gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  28921.  sed -n "$gl_absolute_header_sed"`
  28922.  
  28923.           gl_header=$gl_cv_absolute_ctype_h
  28924.           gl_cv_next_ctype_h='"'$gl_header'"'
  28925.  
  28926.  
  28927. fi
  28928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
  28929. $as_echo "$gl_cv_next_ctype_h" >&6; }
  28930.     fi
  28931.     NEXT_CTYPE_H=$gl_cv_next_ctype_h
  28932.  
  28933.     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  28934.       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  28935.       gl_next_as_first_directive='<'ctype.h'>'
  28936.     else
  28937.       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  28938.       gl_next_as_first_directive=$gl_cv_next_ctype_h
  28939.     fi
  28940.     NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive
  28941.  
  28942.  
  28943.  
  28944.  
  28945.  
  28946.  
  28947.    for gl_func in isblank; do
  28948.    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  28949.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  28950. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  28951. if eval \${$as_gl_Symbol+:} false; then :
  28952.  $as_echo_n "(cached) " >&6
  28953. else
  28954.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28955. /* end confdefs.h.  */
  28956. #include <ctype.h>
  28957.  
  28958. int
  28959. main ()
  28960. {
  28961. #undef $gl_func
  28962.  (void) $gl_func;
  28963.  ;
  28964.  return 0;
  28965. }
  28966. _ACEOF
  28967. if ac_fn_c_try_compile "$LINENO"; then :
  28968.  eval "$as_gl_Symbol=yes"
  28969. else
  28970.  eval "$as_gl_Symbol=no"
  28971. fi
  28972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28973. fi
  28974. eval ac_res=\$$as_gl_Symbol
  28975.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  28976. $as_echo "$ac_res" >&6; }
  28977.    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  28978.  cat >>confdefs.h <<_ACEOF
  28979. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  28980. _ACEOF
  28981.  
  28982.                     eval ac_cv_have_decl_$gl_func=yes
  28983. fi
  28984.      done
  28985.  
  28986.  
  28987.  
  28988.  
  28989.  
  28990.  
  28991.  
  28992.  
  28993.  
  28994.  
  28995.  
  28996.  
  28997.  
  28998.     if test $gl_cv_have_include_next = yes; then
  28999.       gl_cv_next_fcntl_h='<'fcntl.h'>'
  29000.     else
  29001.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
  29002. $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
  29003. if ${gl_cv_next_fcntl_h+:} false; then :
  29004.  $as_echo_n "(cached) " >&6
  29005. else
  29006.  
  29007.  
  29008.  
  29009.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29010. /* end confdefs.h.  */
  29011. #include <fcntl.h>
  29012. _ACEOF
  29013.                case "$host_os" in
  29014.    aix*) gl_absname_cpp="$ac_cpp -C" ;;
  29015.    *)    gl_absname_cpp="$ac_cpp" ;;
  29016.  esac
  29017.  
  29018.  case "$host_os" in
  29019.    mingw*)
  29020.                                          gl_dirsep_regex='[/\\]'
  29021.      ;;
  29022.    *)
  29023.      gl_dirsep_regex='\/'
  29024.      ;;
  29025.  esac
  29026.      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  29027.  gl_header_literal_regex=`echo 'fcntl.h' \
  29028.                           | sed -e "$gl_make_literal_regex_sed"`
  29029.  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  29030.       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  29031.       s|^/[^/]|//&|
  29032.       p
  29033.       q
  29034.     }'
  29035.  
  29036.        gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  29037.  sed -n "$gl_absolute_header_sed"`
  29038.  
  29039.           gl_header=$gl_cv_absolute_fcntl_h
  29040.           gl_cv_next_fcntl_h='"'$gl_header'"'
  29041.  
  29042.  
  29043. fi
  29044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
  29045. $as_echo "$gl_cv_next_fcntl_h" >&6; }
  29046.     fi
  29047.     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
  29048.  
  29049.     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  29050.       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  29051.       gl_next_as_first_directive='<'fcntl.h'>'
  29052.     else
  29053.       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  29054.       gl_next_as_first_directive=$gl_cv_next_fcntl_h
  29055.     fi
  29056.     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
  29057.  
  29058.  
  29059.  
  29060.  
  29061.  
  29062.  
  29063.  
  29064.  
  29065.  
  29066.  
  29067.    for gl_func in fcntl openat; do
  29068.    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  29069.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  29070. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  29071. if eval \${$as_gl_Symbol+:} false; then :
  29072.  $as_echo_n "(cached) " >&6
  29073. else
  29074.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29075. /* end confdefs.h.  */
  29076. #include <fcntl.h>
  29077.  
  29078. int
  29079. main ()
  29080. {
  29081. #undef $gl_func
  29082.  (void) $gl_func;
  29083.  ;
  29084.  return 0;
  29085. }
  29086. _ACEOF
  29087. if ac_fn_c_try_compile "$LINENO"; then :
  29088.  eval "$as_gl_Symbol=yes"
  29089. else
  29090.  eval "$as_gl_Symbol=no"
  29091. fi
  29092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29093. fi
  29094. eval ac_res=\$$as_gl_Symbol
  29095.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  29096. $as_echo "$ac_res" >&6; }
  29097.    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  29098.  cat >>confdefs.h <<_ACEOF
  29099. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  29100. _ACEOF
  29101.  
  29102.                     eval ac_cv_have_decl_$gl_func=yes
  29103. fi
  29104.      done
  29105.  
  29106.  
  29107.  
  29108.  
  29109.  
  29110.  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  29111.    REPLACE_FDOPEN=1
  29112.  else
  29113.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
  29114. $as_echo_n "checking whether fdopen sets errno... " >&6; }
  29115. if ${gl_cv_func_fdopen_works+:} false; then :
  29116.  $as_echo_n "(cached) " >&6
  29117. else
  29118.  
  29119.        if test "$cross_compiling" = yes; then :
  29120.  case "$host_os" in
  29121.             mingw*) gl_cv_func_fdopen_works="guessing no" ;;
  29122.             *)      gl_cv_func_fdopen_works="guessing yes" ;;
  29123.           esac
  29124.  
  29125. else
  29126.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29127. /* end confdefs.h.  */
  29128.  
  29129. #include <stdio.h>
  29130. #include <errno.h>
  29131. int
  29132. main (void)
  29133. {
  29134.  FILE *fp;
  29135.  errno = 0;
  29136.  fp = fdopen (-1, "r");
  29137.  if (fp == NULL && errno == 0)
  29138.    return 1;
  29139.  return 0;
  29140. }
  29141. _ACEOF
  29142. if ac_fn_c_try_run "$LINENO"; then :
  29143.  gl_cv_func_fdopen_works=yes
  29144. else
  29145.  gl_cv_func_fdopen_works=no
  29146. fi
  29147. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  29148.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  29149. fi
  29150.  
  29151.  
  29152. fi
  29153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
  29154. $as_echo "$gl_cv_func_fdopen_works" >&6; }
  29155.    case "$gl_cv_func_fdopen_works" in
  29156.      *no) REPLACE_FDOPEN=1 ;;
  29157.    esac
  29158.  fi
  29159.  
  29160.  if test $REPLACE_FDOPEN = 1; then
  29161.  
  29162.  
  29163.  
  29164.  
  29165.  
  29166.  
  29167.  
  29168.  
  29169.  gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
  29170.  
  29171.  
  29172.  fi
  29173.  
  29174.  
  29175.  
  29176.  
  29177.  
  29178.    if test "$GNULIB_FDOPEN" != 1; then
  29179.        if test "$GNULIB_FDOPEN" = 0; then
  29180.      GNULIB_FDOPEN=$gl_module_indicator_condition
  29181.    else
  29182.      GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
  29183.    fi
  29184.  fi
  29185.  
  29186.  
  29187.  
  29188.  
  29189.  
  29190. $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
  29191.  
  29192.  
  29193.  
  29194.  
  29195.  
  29196.  
  29197.  
  29198.  
  29199.  for ac_func in getpagesize
  29200. do :
  29201.  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  29202. if test "x$ac_cv_func_getpagesize" = xyes; then :
  29203.  cat >>confdefs.h <<_ACEOF
  29204. #define HAVE_GETPAGESIZE 1
  29205. _ACEOF
  29206.  
  29207. fi
  29208. done
  29209.  
  29210.  if test $ac_cv_func_getpagesize = no; then
  29211.    HAVE_GETPAGESIZE=0
  29212.    for ac_header in OS.h
  29213. do :
  29214.  ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
  29215. if test "x$ac_cv_header_OS_h" = xyes; then :
  29216.  cat >>confdefs.h <<_ACEOF
  29217. #define HAVE_OS_H 1
  29218. _ACEOF
  29219.  
  29220. fi
  29221.  
  29222. done
  29223.  
  29224.    if test $ac_cv_header_OS_h = yes; then
  29225.      HAVE_OS_H=1
  29226.    fi
  29227.    for ac_header in sys/param.h
  29228. do :
  29229.  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
  29230. if test "x$ac_cv_header_sys_param_h" = xyes; then :
  29231.  cat >>confdefs.h <<_ACEOF
  29232. #define HAVE_SYS_PARAM_H 1
  29233. _ACEOF
  29234.  
  29235. fi
  29236.  
  29237. done
  29238.  
  29239.    if test $ac_cv_header_sys_param_h = yes; then
  29240.      HAVE_SYS_PARAM_H=1
  29241.    fi
  29242.  fi
  29243.  case "$host_os" in
  29244.    mingw*)
  29245.      REPLACE_GETPAGESIZE=1
  29246.      ;;
  29247.  esac
  29248.      ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
  29249. if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
  29250.  
  29251. else
  29252.  HAVE_DECL_GETPAGESIZE=0
  29253. fi
  29254.  
  29255.  
  29256.  if test $REPLACE_GETPAGESIZE = 1; then
  29257.  
  29258.  
  29259.  
  29260.  
  29261.  
  29262.  
  29263.  
  29264.  
  29265.  gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
  29266.  
  29267.  fi
  29268.  
  29269.  
  29270.  
  29271.  
  29272.  
  29273.    if test "$GNULIB_GETPAGESIZE" != 1; then
  29274.        if test "$GNULIB_GETPAGESIZE" = 0; then
  29275.      GNULIB_GETPAGESIZE=$gl_module_indicator_condition
  29276.    else
  29277.      GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
  29278.    fi
  29279.  fi
  29280.  
  29281.  
  29282.  
  29283.  
  29284.  
  29285. $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
  29286.  
  29287.  
  29288.  
  29289.  
  29290.  
  29291.  
  29292.  
  29293.  
  29294.  PRIPTR_PREFIX=
  29295.  if test -n "$STDINT_H"; then
  29296.        PRIPTR_PREFIX='"l"'
  29297.  else
  29298.        for glpfx in '' l ll I64; do
  29299.      case $glpfx in
  29300.        '')  gltype1='int';;
  29301.        l)   gltype1='long int';;
  29302.        ll)  gltype1='long long int';;
  29303.        I64) gltype1='__int64';;
  29304.      esac
  29305.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29306. /* end confdefs.h.  */
  29307. #include <stdint.h>
  29308.           extern intptr_t foo;
  29309.           extern $gltype1 foo;
  29310. int
  29311. main ()
  29312. {
  29313.  
  29314.  ;
  29315.  return 0;
  29316. }
  29317. _ACEOF
  29318. if ac_fn_c_try_compile "$LINENO"; then :
  29319.  PRIPTR_PREFIX='"'$glpfx'"'
  29320. fi
  29321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29322.      test -n "$PRIPTR_PREFIX" && break
  29323.    done
  29324.  fi
  29325.  
  29326.  
  29327.  
  29328.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
  29329. $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
  29330. if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
  29331.  $as_echo_n "(cached) " >&6
  29332. else
  29333.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29334. /* end confdefs.h.  */
  29335. /* Work also in C++ mode.  */
  29336.            #define __STDC_LIMIT_MACROS 1
  29337.  
  29338.            /* Work if build is not clean.  */
  29339.            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
  29340.  
  29341.            #include <limits.h>
  29342.            #if HAVE_STDINT_H
  29343.             #include <stdint.h>
  29344.            #endif
  29345.  
  29346.            #if defined INT32_MAX && defined INTMAX_MAX
  29347.             #define CONDITION (INT32_MAX < INTMAX_MAX)
  29348.            #elif HAVE_LONG_LONG_INT
  29349.             #define CONDITION (sizeof (int) < sizeof (long long int))
  29350.            #else
  29351.             #define CONDITION 0
  29352.            #endif
  29353.            int test[CONDITION ? 1 : -1];
  29354. int
  29355. main ()
  29356. {
  29357.  
  29358.  ;
  29359.  return 0;
  29360. }
  29361. _ACEOF
  29362. if ac_fn_c_try_compile "$LINENO"; then :
  29363.  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
  29364. else
  29365.  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
  29366. fi
  29367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29368. fi
  29369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
  29370. $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
  29371.  if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
  29372.    INT32_MAX_LT_INTMAX_MAX=1;
  29373.  else
  29374.    INT32_MAX_LT_INTMAX_MAX=0;
  29375.  fi
  29376.  
  29377.  
  29378.  if test $APPLE_UNIVERSAL_BUILD = 0; then
  29379.  
  29380.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
  29381. $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
  29382. if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
  29383.  $as_echo_n "(cached) " >&6
  29384. else
  29385.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29386. /* end confdefs.h.  */
  29387. /* Work also in C++ mode.  */
  29388.            #define __STDC_LIMIT_MACROS 1
  29389.  
  29390.            /* Work if build is not clean.  */
  29391.            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
  29392.  
  29393.            #include <limits.h>
  29394.            #if HAVE_STDINT_H
  29395.             #include <stdint.h>
  29396.            #endif
  29397.  
  29398.            #if defined INT64_MAX
  29399.             #define CONDITION (INT64_MAX == LONG_MAX)
  29400.            #elif HAVE_LONG_LONG_INT
  29401.             #define CONDITION (sizeof (long long int) == sizeof (long int))
  29402.            #else
  29403.             #define CONDITION 0
  29404.            #endif
  29405.            int test[CONDITION ? 1 : -1];
  29406. int
  29407. main ()
  29408. {
  29409.  
  29410.  ;
  29411.  return 0;
  29412. }
  29413. _ACEOF
  29414. if ac_fn_c_try_compile "$LINENO"; then :
  29415.  gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
  29416. else
  29417.  gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
  29418. fi
  29419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29420. fi
  29421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
  29422. $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
  29423.  if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
  29424.    INT64_MAX_EQ_LONG_MAX=1;
  29425.  else
  29426.    INT64_MAX_EQ_LONG_MAX=0;
  29427.  fi
  29428.  
  29429.  
  29430.  else
  29431.    INT64_MAX_EQ_LONG_MAX=-1
  29432.  fi
  29433.  
  29434.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
  29435. $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
  29436. if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
  29437.  $as_echo_n "(cached) " >&6
  29438. else
  29439.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29440. /* end confdefs.h.  */
  29441. /* Work also in C++ mode.  */
  29442.            #define __STDC_LIMIT_MACROS 1
  29443.  
  29444.            /* Work if build is not clean.  */
  29445.            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
  29446.  
  29447.            #include <limits.h>
  29448.            #if HAVE_STDINT_H
  29449.             #include <stdint.h>
  29450.            #endif
  29451.  
  29452.            #if defined UINT32_MAX && defined UINTMAX_MAX
  29453.             #define CONDITION (UINT32_MAX < UINTMAX_MAX)
  29454.            #elif HAVE_LONG_LONG_INT
  29455.             #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
  29456.            #else
  29457.             #define CONDITION 0
  29458.            #endif
  29459.            int test[CONDITION ? 1 : -1];
  29460. int
  29461. main ()
  29462. {
  29463.  
  29464.  ;
  29465.  return 0;
  29466. }
  29467. _ACEOF
  29468. if ac_fn_c_try_compile "$LINENO"; then :
  29469.  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
  29470. else
  29471.  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
  29472. fi
  29473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29474. fi
  29475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
  29476. $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
  29477.  if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
  29478.    UINT32_MAX_LT_UINTMAX_MAX=1;
  29479.  else
  29480.    UINT32_MAX_LT_UINTMAX_MAX=0;
  29481.  fi
  29482.  
  29483.  
  29484.  if test $APPLE_UNIVERSAL_BUILD = 0; then
  29485.  
  29486.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
  29487. $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
  29488. if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
  29489.  $as_echo_n "(cached) " >&6
  29490. else
  29491.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29492. /* end confdefs.h.  */
  29493. /* Work also in C++ mode.  */
  29494.            #define __STDC_LIMIT_MACROS 1
  29495.  
  29496.            /* Work if build is not clean.  */
  29497.            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
  29498.  
  29499.            #include <limits.h>
  29500.            #if HAVE_STDINT_H
  29501.             #include <stdint.h>
  29502.            #endif
  29503.  
  29504.            #if defined UINT64_MAX
  29505.             #define CONDITION (UINT64_MAX == ULONG_MAX)
  29506.            #elif HAVE_LONG_LONG_INT
  29507.             #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
  29508.            #else
  29509.             #define CONDITION 0
  29510.            #endif
  29511.            int test[CONDITION ? 1 : -1];
  29512. int
  29513. main ()
  29514. {
  29515.  
  29516.  ;
  29517.  return 0;
  29518. }
  29519. _ACEOF
  29520. if ac_fn_c_try_compile "$LINENO"; then :
  29521.  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
  29522. else
  29523.  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
  29524. fi
  29525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29526. fi
  29527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
  29528. $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
  29529.  if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
  29530.    UINT64_MAX_EQ_ULONG_MAX=1;
  29531.  else
  29532.    UINT64_MAX_EQ_ULONG_MAX=0;
  29533.  fi
  29534.  
  29535.  
  29536.  else
  29537.    UINT64_MAX_EQ_ULONG_MAX=-1
  29538.  fi
  29539.  
  29540.  
  29541.  
  29542.  
  29543.  
  29544.  
  29545.  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
  29546.   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
  29547.   # irrelevant for anonymous mappings.
  29548.   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  29549. if test "x$ac_cv_func_mmap" = xyes; then :
  29550.   gl_have_mmap=yes
  29551. else
  29552.   gl_have_mmap=no
  29553. fi
  29554.  
  29555.  
  29556.   # Try to allow MAP_ANONYMOUS.
  29557.   gl_have_mmap_anonymous=no
  29558.   if test $gl_have_mmap = yes; then
  29559.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
  29560. $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
  29561.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29562. /* end confdefs.h.  */
  29563.  
  29564. #include <sys/mman.h>
  29565. #ifdef MAP_ANONYMOUS
  29566.     I cannot identify this map
  29567. #endif
  29568.  
  29569. _ACEOF
  29570. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29571.   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
  29572.   gl_have_mmap_anonymous=yes
  29573. fi
  29574. rm -f conftest*
  29575.  
  29576.     if test $gl_have_mmap_anonymous != yes; then
  29577.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29578. /* end confdefs.h.  */
  29579.  
  29580. #include <sys/mman.h>
  29581. #ifdef MAP_ANON
  29582.     I cannot identify this map
  29583. #endif
  29584.  
  29585. _ACEOF
  29586. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29587.   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
  29588.  
  29589. $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
  29590.  
  29591.          gl_have_mmap_anonymous=yes
  29592. fi
  29593. rm -f conftest*
  29594.  
  29595.     fi
  29596.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
  29597. $as_echo "$gl_have_mmap_anonymous" >&6; }
  29598.     if test $gl_have_mmap_anonymous = yes; then
  29599.  
  29600. $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
  29601.  
  29602.     fi
  29603.   fi
  29604.  
  29605.  
  29606.   :
  29607.  
  29608.  
  29609.  
  29610.  
  29611.  
  29612.  
  29613.   :
  29614.  
  29615.  
  29616.  
  29617.  
  29618.  
  29619.  
  29620.  
  29621.  
  29622.  
  29623.  
  29624.   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
  29625.   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
  29626.   # irrelevant for anonymous mappings.
  29627.   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  29628. if test "x$ac_cv_func_mmap" = xyes; then :
  29629.   gl_have_mmap=yes
  29630. else
  29631.   gl_have_mmap=no
  29632. fi
  29633.  
  29634.  
  29635.   # Try to allow MAP_ANONYMOUS.
  29636.   gl_have_mmap_anonymous=no
  29637.   if test $gl_have_mmap = yes; then
  29638.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
  29639. $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
  29640.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29641. /* end confdefs.h.  */
  29642.  
  29643. #include <sys/mman.h>
  29644. #ifdef MAP_ANONYMOUS
  29645.     I cannot identify this map
  29646. #endif
  29647.  
  29648. _ACEOF
  29649. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29650.   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
  29651.   gl_have_mmap_anonymous=yes
  29652. fi
  29653. rm -f conftest*
  29654.  
  29655.     if test $gl_have_mmap_anonymous != yes; then
  29656.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29657. /* end confdefs.h.  */
  29658.  
  29659. #include <sys/mman.h>
  29660. #ifdef MAP_ANON
  29661.     I cannot identify this map
  29662. #endif
  29663.  
  29664. _ACEOF
  29665. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29666.   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
  29667.  
  29668. $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
  29669.  
  29670.          gl_have_mmap_anonymous=yes
  29671. fi
  29672. rm -f conftest*
  29673.  
  29674.     fi
  29675.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
  29676. $as_echo "$gl_have_mmap_anonymous" >&6; }
  29677.     if test $gl_have_mmap_anonymous = yes; then
  29678.  
  29679. $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
  29680.  
  29681.     fi
  29682.   fi
  29683.  
  29684.  
  29685.   :
  29686.  
  29687.  
  29688.  
  29689.  
  29690.  
  29691.  
  29692.   :
  29693.  
  29694.  
  29695.  
  29696.  
  29697.  
  29698.  
  29699.   :
  29700.  
  29701.  
  29702.  
  29703.  
  29704.  
  29705.  
  29706.   # Check whether --enable-valgrind-tests was given.
  29707. if test "${enable_valgrind_tests+set}" = set; then :
  29708.   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
  29709. else
  29710.   opt_valgrind_tests=no
  29711. fi
  29712.  
  29713.  
  29714.   # Run self-tests under valgrind?
  29715.   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
  29716.     for ac_prog in valgrind
  29717. do
  29718.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  29719. set dummy $ac_prog; ac_word=$2
  29720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29721. $as_echo_n "checking for $ac_word... " >&6; }
  29722. if ${ac_cv_prog_VALGRIND+:} false; then :
  29723.   $as_echo_n "(cached) " >&6
  29724. else
  29725.   if test -n "$VALGRIND"; then
  29726.   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
  29727. else
  29728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29729. for as_dir in $PATH
  29730. do
  29731.   IFS=$as_save_IFS
  29732.   test -z "$as_dir" && as_dir=.
  29733.     for ac_exec_ext in '' $ac_executable_extensions; do
  29734.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  29735.     ac_cv_prog_VALGRIND="$ac_prog"
  29736.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  29737.     break 2
  29738.   fi
  29739. done
  29740.   done
  29741. IFS=$as_save_IFS
  29742.  
  29743. fi
  29744. fi
  29745. VALGRIND=$ac_cv_prog_VALGRIND
  29746. if test -n "$VALGRIND"; then
  29747.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
  29748. $as_echo "$VALGRIND" >&6; }
  29749. else
  29750.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29751. $as_echo "no" >&6; }
  29752. fi
  29753.  
  29754.  
  29755.   test -n "$VALGRIND" && break
  29756. done
  29757.  
  29758.   fi
  29759.  
  29760.   OPTS="-q --error-exitcode=6 --leak-check=full"
  29761.  
  29762.   if test -n "$VALGRIND" \
  29763.      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
  29764.     opt_valgrind_tests=yes
  29765.     VALGRIND="$VALGRIND $OPTS --suppressions=\$(srcdir)/suppressions.valgrind"
  29766.   else
  29767.     opt_valgrind_tests=no
  29768.     VALGRIND=
  29769.   fi
  29770.  
  29771.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
  29772. $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
  29773.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
  29774. $as_echo "$opt_valgrind_tests" >&6; }
  29775.  
  29776.   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
  29777.  
  29778.  
  29779.  
  29780.  
  29781.  
  29782.  
  29783.  
  29784.  
  29785.  
  29786.  
  29787.  
  29788.   LIBTESTS_LIBDEPS="$gltests_libdeps"
  29789.  
  29790.  
  29791.  
  29792.   GNULIB_INET_NTOP=0;
  29793.   GNULIB_INET_PTON=0;
  29794.     HAVE_DECL_INET_NTOP=1;
  29795.   HAVE_DECL_INET_PTON=1;
  29796.   REPLACE_INET_NTOP=0;
  29797.   REPLACE_INET_PTON=0;
  29798.  
  29799.  
  29800.  
  29801.  
  29802.  
  29803.  
  29804.  
  29805.  
  29806.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
  29807. $as_echo_n "checking whether // is distinct from /... " >&6; }
  29808. if ${gl_cv_double_slash_root+:} false; then :
  29809.   $as_echo_n "(cached) " >&6
  29810. else
  29811.    if test x"$cross_compiling" = xyes ; then
  29812.         # When cross-compiling, there is no way to tell whether // is special
  29813.         # short of a list of hosts.  However, the only known hosts to date
  29814.         # that have a distinct // are Apollo DomainOS (too old to port to),
  29815.         # Cygwin, and z/OS.  If anyone knows of another system for which // has
  29816.         # special semantics and is distinct from /, please report it to
  29817.         # <bug-gnulib@gnu.org>.
  29818.         case $host in
  29819.           *-cygwin | i370-ibm-openedition)
  29820.             gl_cv_double_slash_root=yes ;;
  29821.           *)
  29822.             # Be optimistic and assume that / and // are the same when we
  29823.             # don't know.
  29824.             gl_cv_double_slash_root='unknown, assuming no' ;;
  29825.         esac
  29826.       else
  29827.         set x `ls -di / // 2>/dev/null`
  29828.         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
  29829.           gl_cv_double_slash_root=no
  29830.         else
  29831.           gl_cv_double_slash_root=yes
  29832.         fi
  29833.       fi
  29834. fi
  29835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
  29836. $as_echo "$gl_cv_double_slash_root" >&6; }
  29837.   if test "$gl_cv_double_slash_root" = yes; then
  29838.  
  29839. $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
  29840.  
  29841.   fi
  29842.  
  29843.  
  29844.  
  29845.  
  29846.  
  29847.  
  29848.   :
  29849.  
  29850.  
  29851.  
  29852.  
  29853.  
  29854.  
  29855.  
  29856.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
  29857. $as_echo_n "checking if environ is properly declared... " >&6; }
  29858.   if ${gt_cv_var_environ_declaration+:} false; then :
  29859.   $as_echo_n "(cached) " >&6
  29860. else
  29861.  
  29862.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29863. /* end confdefs.h.  */
  29864. #if HAVE_UNISTD_H
  29865.      #include <unistd.h>
  29866.      #endif
  29867.      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
  29868.      #include <stdlib.h>
  29869.  
  29870.            extern struct { int foo; } environ;
  29871. int
  29872. main ()
  29873. {
  29874. environ.foo = 1;
  29875.   ;
  29876.   return 0;
  29877. }
  29878. _ACEOF
  29879. if ac_fn_c_try_compile "$LINENO"; then :
  29880.   gt_cv_var_environ_declaration=no
  29881. else
  29882.   gt_cv_var_environ_declaration=yes
  29883. fi
  29884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29885. fi
  29886.  
  29887.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
  29888. $as_echo "$gt_cv_var_environ_declaration" >&6; }
  29889.   if test $gt_cv_var_environ_declaration = yes; then
  29890.  
  29891. $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
  29892.  
  29893.   fi
  29894.  
  29895.  
  29896.   if test $gt_cv_var_environ_declaration != yes; then
  29897.     HAVE_DECL_ENVIRON=0
  29898.   fi
  29899.  
  29900. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  29901. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  29902.   ac_have_decl=1
  29903. else
  29904.   ac_have_decl=0
  29905. fi
  29906.  
  29907. cat >>confdefs.h <<_ACEOF
  29908. #define HAVE_DECL_STRERROR_R $ac_have_decl
  29909. _ACEOF
  29910.  
  29911. for ac_func in strerror_r
  29912. do :
  29913.   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  29914. if test "x$ac_cv_func_strerror_r" = xyes; then :
  29915.   cat >>confdefs.h <<_ACEOF
  29916. #define HAVE_STRERROR_R 1
  29917. _ACEOF
  29918.  
  29919. fi
  29920. done
  29921.  
  29922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  29923. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  29924. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  29925.   $as_echo_n "(cached) " >&6
  29926. else
  29927.  
  29928.     ac_cv_func_strerror_r_char_p=no
  29929.     if test $ac_cv_have_decl_strerror_r = yes; then
  29930.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29931. /* end confdefs.h.  */
  29932. $ac_includes_default
  29933. int
  29934. main ()
  29935. {
  29936.  
  29937.           char buf[100];
  29938.           char x = *strerror_r (0, buf, sizeof buf);
  29939.           char *p = strerror_r (0, buf, sizeof buf);
  29940.           return !p || x;
  29941.  
  29942.   ;
  29943.   return 0;
  29944. }
  29945. _ACEOF
  29946. if ac_fn_c_try_compile "$LINENO"; then :
  29947.   ac_cv_func_strerror_r_char_p=yes
  29948. fi
  29949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29950.     else
  29951.       # strerror_r is not declared.  Choose between
  29952.       # systems that have relatively inaccessible declarations for the
  29953.       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
  29954.       # former has a strerror_r that returns char*, while the latter
  29955.       # has a strerror_r that returns `int'.
  29956.       # This test should segfault on the DEC system.
  29957.       if test "$cross_compiling" = yes; then :
  29958.   :
  29959. else
  29960.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29961. /* end confdefs.h.  */
  29962. $ac_includes_default
  29963.         extern char *strerror_r ();
  29964. int
  29965. main ()
  29966. {
  29967. char buf[100];
  29968.           char x = *strerror_r (0, buf, sizeof buf);
  29969.           return ! isalpha (x);
  29970.   ;
  29971.   return 0;
  29972. }
  29973. _ACEOF
  29974. if ac_fn_c_try_run "$LINENO"; then :
  29975.   ac_cv_func_strerror_r_char_p=yes
  29976. fi
  29977. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  29978.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  29979. fi
  29980.  
  29981.     fi
  29982.  
  29983. fi
  29984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  29985. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  29986. if test $ac_cv_func_strerror_r_char_p = yes; then
  29987.  
  29988. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  29989.  
  29990. fi
  29991.  
  29992.  
  29993.       ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
  29994. if test "x$ac_cv_have_decl_fseeko" = xyes; then :
  29995.   ac_have_decl=1
  29996. else
  29997.   ac_have_decl=0
  29998. fi
  29999.  
  30000. cat >>confdefs.h <<_ACEOF
  30001. #define HAVE_DECL_FSEEKO $ac_have_decl
  30002. _ACEOF
  30003.  
  30004.  
  30005.  
  30006.  
  30007.  
  30008.  
  30009.  
  30010.  
  30011.  
  30012.  
  30013.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
  30014. $as_echo_n "checking for fseeko... " >&6; }
  30015. if ${gl_cv_func_fseeko+:} false; then :
  30016.   $as_echo_n "(cached) " >&6
  30017. else
  30018.  
  30019.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30020. /* end confdefs.h.  */
  30021. #include <stdio.h>
  30022.  
  30023. int
  30024. main ()
  30025. {
  30026. fseeko (stdin, 0, 0);
  30027.   ;
  30028.   return 0;
  30029. }
  30030. _ACEOF
  30031. if ac_fn_c_try_link "$LINENO"; then :
  30032.   gl_cv_func_fseeko=yes
  30033. else
  30034.   gl_cv_func_fseeko=no
  30035. fi
  30036. rm -f core conftest.err conftest.$ac_objext \
  30037.     conftest$ac_exeext conftest.$ac_ext
  30038.  
  30039. fi
  30040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
  30041. $as_echo "$gl_cv_func_fseeko" >&6; }
  30042.  
  30043.  
  30044.   :
  30045.  
  30046.  
  30047.  
  30048.  
  30049.  
  30050.   if test $ac_cv_have_decl_fseeko = no; then
  30051.     HAVE_DECL_FSEEKO=0
  30052.   fi
  30053.  
  30054.   if test $gl_cv_func_fseeko = no; then
  30055.     HAVE_FSEEKO=0
  30056.   else
  30057.     if test $WINDOWS_64_BIT_OFF_T = 1; then
  30058.       REPLACE_FSEEKO=1
  30059.     fi
  30060.     if test $gl_cv_var_stdin_large_offset = no; then
  30061.       REPLACE_FSEEKO=1
  30062.     fi
  30063.  
  30064.   fi
  30065.  
  30066.  
  30067.                   HOSTENT_LIB=
  30068.   gl_saved_libs="$LIBS"
  30069.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  30070. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  30071. if ${ac_cv_search_gethostbyname+:} false; then :
  30072.   $as_echo_n "(cached) " >&6
  30073. else
  30074.   ac_func_search_save_LIBS=$LIBS
  30075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30076. /* end confdefs.h.  */
  30077.  
  30078. /* Override any GCC internal prototype to avoid an error.
  30079.    Use char because int might match the return type of a GCC
  30080.    builtin and then its argument prototype would still apply.  */
  30081. #ifdef __cplusplus
  30082. extern "C"
  30083. #endif
  30084. char gethostbyname ();
  30085. int
  30086. main ()
  30087. {
  30088. return gethostbyname ();
  30089.   ;
  30090.   return 0;
  30091. }
  30092. _ACEOF
  30093. for ac_lib in '' nsl network net; do
  30094.   if test -z "$ac_lib"; then
  30095.     ac_res="none required"
  30096.   else
  30097.     ac_res=-l$ac_lib
  30098.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  30099.   fi
  30100.   if ac_fn_c_try_link "$LINENO"; then :
  30101.   ac_cv_search_gethostbyname=$ac_res
  30102. fi
  30103. rm -f core conftest.err conftest.$ac_objext \
  30104.     conftest$ac_exeext
  30105.   if ${ac_cv_search_gethostbyname+:} false; then :
  30106.   break
  30107. fi
  30108. done
  30109. if ${ac_cv_search_gethostbyname+:} false; then :
  30110.  
  30111. else
  30112.   ac_cv_search_gethostbyname=no
  30113. fi
  30114. rm conftest.$ac_ext
  30115. LIBS=$ac_func_search_save_LIBS
  30116. fi
  30117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  30118. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  30119. ac_res=$ac_cv_search_gethostbyname
  30120. if test "$ac_res" != no; then :
  30121.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  30122.   if test "$ac_cv_search_gethostbyname" != "none required"; then
  30123.        HOSTENT_LIB="$ac_cv_search_gethostbyname"
  30124.      fi
  30125. fi
  30126.  
  30127.   LIBS="$gl_saved_libs"
  30128.   if test -z "$HOSTENT_LIB"; then
  30129.     for ac_func in gethostbyname
  30130. do :
  30131.   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  30132. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  30133.   cat >>confdefs.h <<_ACEOF
  30134. #define HAVE_GETHOSTBYNAME 1
  30135. _ACEOF
  30136.  
  30137. else
  30138.  
  30139.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
  30140. $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
  30141. if ${gl_cv_w32_gethostbyname+:} false; then :
  30142.   $as_echo_n "(cached) " >&6
  30143. else
  30144.   gl_cv_w32_gethostbyname=no
  30145.          gl_save_LIBS="$LIBS"
  30146.          LIBS="$LIBS -lws2_32"
  30147.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30148. /* end confdefs.h.  */
  30149.  
  30150. #ifdef HAVE_WINSOCK2_H
  30151. #include <winsock2.h>
  30152. #endif
  30153. #include <stddef.h>
  30154.  
  30155. int
  30156. main ()
  30157. {
  30158. gethostbyname(NULL);
  30159.   ;
  30160.   return 0;
  30161. }
  30162. _ACEOF
  30163. if ac_fn_c_try_link "$LINENO"; then :
  30164.   gl_cv_w32_gethostbyname=yes
  30165. fi
  30166. rm -f core conftest.err conftest.$ac_objext \
  30167.     conftest$ac_exeext conftest.$ac_ext
  30168.          LIBS="$gl_save_LIBS"
  30169.  
  30170. fi
  30171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
  30172. $as_echo "$gl_cv_w32_gethostbyname" >&6; }
  30173.       if test "$gl_cv_w32_gethostbyname" = "yes"; then
  30174.         HOSTENT_LIB="-lws2_32"
  30175.       fi
  30176.  
  30177. fi
  30178. done
  30179.  
  30180.   fi
  30181.  
  30182.  
  30183.  
  30184.                       SERVENT_LIB=
  30185.   gl_saved_libs="$LIBS"
  30186.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
  30187. $as_echo_n "checking for library containing getservbyname... " >&6; }
  30188. if ${ac_cv_search_getservbyname+:} false; then :
  30189.   $as_echo_n "(cached) " >&6
  30190. else
  30191.   ac_func_search_save_LIBS=$LIBS
  30192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30193. /* end confdefs.h.  */
  30194.  
  30195. /* Override any GCC internal prototype to avoid an error.
  30196.    Use char because int might match the return type of a GCC
  30197.    builtin and then its argument prototype would still apply.  */
  30198. #ifdef __cplusplus
  30199. extern "C"
  30200. #endif
  30201. char getservbyname ();
  30202. int
  30203. main ()
  30204. {
  30205. return getservbyname ();
  30206.   ;
  30207.   return 0;
  30208. }
  30209. _ACEOF
  30210. for ac_lib in '' socket network net; do
  30211.   if test -z "$ac_lib"; then
  30212.     ac_res="none required"
  30213.   else
  30214.     ac_res=-l$ac_lib
  30215.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  30216.   fi
  30217.   if ac_fn_c_try_link "$LINENO"; then :
  30218.   ac_cv_search_getservbyname=$ac_res
  30219. fi
  30220. rm -f core conftest.err conftest.$ac_objext \
  30221.     conftest$ac_exeext
  30222.   if ${ac_cv_search_getservbyname+:} false; then :
  30223.   break
  30224. fi
  30225. done
  30226. if ${ac_cv_search_getservbyname+:} false; then :
  30227.  
  30228. else
  30229.   ac_cv_search_getservbyname=no
  30230. fi
  30231. rm conftest.$ac_ext
  30232. LIBS=$ac_func_search_save_LIBS
  30233. fi
  30234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
  30235. $as_echo "$ac_cv_search_getservbyname" >&6; }
  30236. ac_res=$ac_cv_search_getservbyname
  30237. if test "$ac_res" != no; then :
  30238.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  30239.   if test "$ac_cv_search_getservbyname" != "none required"; then
  30240.        SERVENT_LIB="$ac_cv_search_getservbyname"
  30241.      fi
  30242. fi
  30243.  
  30244.   LIBS="$gl_saved_libs"
  30245.   if test -z "$SERVENT_LIB"; then
  30246.     for ac_func in getservbyname
  30247. do :
  30248.   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
  30249. if test "x$ac_cv_func_getservbyname" = xyes; then :
  30250.   cat >>confdefs.h <<_ACEOF
  30251. #define HAVE_GETSERVBYNAME 1
  30252. _ACEOF
  30253.  
  30254. else
  30255.  
  30256.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
  30257. $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
  30258. if ${gl_cv_w32_getservbyname+:} false; then :
  30259.   $as_echo_n "(cached) " >&6
  30260. else
  30261.   gl_cv_w32_getservbyname=no
  30262.          gl_save_LIBS="$LIBS"
  30263.          LIBS="$LIBS -lws2_32"
  30264.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30265. /* end confdefs.h.  */
  30266.  
  30267. #ifdef HAVE_WINSOCK2_H
  30268. #include <winsock2.h>
  30269. #endif
  30270. #include <stddef.h>
  30271.  
  30272. int
  30273. main ()
  30274. {
  30275. getservbyname(NULL,NULL);
  30276.   ;
  30277.   return 0;
  30278. }
  30279. _ACEOF
  30280. if ac_fn_c_try_link "$LINENO"; then :
  30281.   gl_cv_w32_getservbyname=yes
  30282. fi
  30283. rm -f core conftest.err conftest.$ac_objext \
  30284.     conftest$ac_exeext conftest.$ac_ext
  30285.          LIBS="$gl_save_LIBS"
  30286.  
  30287. fi
  30288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
  30289. $as_echo "$gl_cv_w32_getservbyname" >&6; }
  30290.       if test "$gl_cv_w32_getservbyname" = "yes"; then
  30291.         SERVENT_LIB="-lws2_32"
  30292.       fi
  30293.  
  30294. fi
  30295. done
  30296.  
  30297.   fi
  30298.  
  30299.  
  30300.  
  30301.  
  30302.  
  30303.  
  30304.  
  30305.  
  30306.  
  30307.               HAVE_INET_NTOP=1
  30308.   INET_NTOP_LIB=
  30309.  
  30310.  
  30311.  
  30312.  
  30313.   :
  30314.  
  30315.  
  30316.  
  30317.  
  30318.  
  30319.   if test $ac_cv_header_sys_socket_h != yes; then
  30320.                     for ac_header in winsock2.h
  30321. do :
  30322.   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  30323. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  30324.   cat >>confdefs.h <<_ACEOF
  30325. #define HAVE_WINSOCK2_H 1
  30326. _ACEOF
  30327.  
  30328. fi
  30329.  
  30330. done
  30331.  
  30332.   fi
  30333.   if test "$ac_cv_header_winsock2_h" = yes; then
  30334.     HAVE_WINSOCK2_H=1
  30335.     UNISTD_H_HAVE_WINSOCK2_H=1
  30336.     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  30337.   else
  30338.     HAVE_WINSOCK2_H=0
  30339.   fi
  30340.  
  30341.  
  30342.   if test $HAVE_WINSOCK2_H = 1; then
  30343.     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
  30344. "
  30345. if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
  30346.   ac_have_decl=1
  30347. else
  30348.   ac_have_decl=0
  30349. fi
  30350.  
  30351. cat >>confdefs.h <<_ACEOF
  30352. #define HAVE_DECL_INET_NTOP $ac_have_decl
  30353. _ACEOF
  30354.  
  30355.     if test $ac_cv_have_decl_inet_ntop = yes; then
  30356.                   REPLACE_INET_NTOP=1
  30357.       INET_NTOP_LIB="-lws2_32"
  30358.     else
  30359.       HAVE_DECL_INET_NTOP=0
  30360.       HAVE_INET_NTOP=0
  30361.     fi
  30362.   else
  30363.     gl_save_LIBS=$LIBS
  30364.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
  30365. $as_echo_n "checking for library containing inet_ntop... " >&6; }
  30366. if ${ac_cv_search_inet_ntop+:} false; then :
  30367.   $as_echo_n "(cached) " >&6
  30368. else
  30369.   ac_func_search_save_LIBS=$LIBS
  30370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30371. /* end confdefs.h.  */
  30372.  
  30373. /* Override any GCC internal prototype to avoid an error.
  30374.    Use char because int might match the return type of a GCC
  30375.    builtin and then its argument prototype would still apply.  */
  30376. #ifdef __cplusplus
  30377. extern "C"
  30378. #endif
  30379. char inet_ntop ();
  30380. int
  30381. main ()
  30382. {
  30383. return inet_ntop ();
  30384.   ;
  30385.   return 0;
  30386. }
  30387. _ACEOF
  30388. for ac_lib in '' nsl resolv; do
  30389.   if test -z "$ac_lib"; then
  30390.     ac_res="none required"
  30391.   else
  30392.     ac_res=-l$ac_lib
  30393.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  30394.   fi
  30395.   if ac_fn_c_try_link "$LINENO"; then :
  30396.   ac_cv_search_inet_ntop=$ac_res
  30397. fi
  30398. rm -f core conftest.err conftest.$ac_objext \
  30399.     conftest$ac_exeext
  30400.   if ${ac_cv_search_inet_ntop+:} false; then :
  30401.   break
  30402. fi
  30403. done
  30404. if ${ac_cv_search_inet_ntop+:} false; then :
  30405.  
  30406. else
  30407.   ac_cv_search_inet_ntop=no
  30408. fi
  30409. rm conftest.$ac_ext
  30410. LIBS=$ac_func_search_save_LIBS
  30411. fi
  30412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
  30413. $as_echo "$ac_cv_search_inet_ntop" >&6; }
  30414. ac_res=$ac_cv_search_inet_ntop
  30415. if test "$ac_res" != no; then :
  30416.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  30417.  
  30418. else
  30419.   for ac_func in inet_ntop
  30420. do :
  30421.   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  30422. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  30423.   cat >>confdefs.h <<_ACEOF
  30424. #define HAVE_INET_NTOP 1
  30425. _ACEOF
  30426.  
  30427. fi
  30428. done
  30429.  
  30430.        if test $ac_cv_func_inet_ntop = no; then
  30431.          HAVE_INET_NTOP=0
  30432.        fi
  30433.  
  30434. fi
  30435.  
  30436.     LIBS=$gl_save_LIBS
  30437.  
  30438.     if test "$ac_cv_search_inet_ntop" != "no" \
  30439.        && test "$ac_cv_search_inet_ntop" != "none required"; then
  30440.       INET_NTOP_LIB="$ac_cv_search_inet_ntop"
  30441.     fi
  30442.  
  30443.  
  30444.   :
  30445.  
  30446.  
  30447.  
  30448.  
  30449.  
  30450.     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
  30451.        #if HAVE_NETDB_H
  30452.        # include <netdb.h>
  30453.        #endif
  30454.  
  30455. "
  30456. if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
  30457.   ac_have_decl=1
  30458. else
  30459.   ac_have_decl=0
  30460. fi
  30461.  
  30462. cat >>confdefs.h <<_ACEOF
  30463. #define HAVE_DECL_INET_NTOP $ac_have_decl
  30464. _ACEOF
  30465.  
  30466.     if test $ac_cv_have_decl_inet_ntop = no; then
  30467.       HAVE_DECL_INET_NTOP=0
  30468.     fi
  30469.   fi
  30470.  
  30471.  
  30472.  
  30473.  
  30474.  
  30475.   :
  30476.  
  30477.  
  30478.  
  30479.  
  30480.  
  30481.  
  30482.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
  30483. $as_echo_n "checking for IPv4 sockets... " >&6; }
  30484.   if ${gl_cv_socket_ipv4+:} false; then :
  30485.   $as_echo_n "(cached) " >&6
  30486. else
  30487.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30488. /* end confdefs.h.  */
  30489. #include <sys/types.h>
  30490. #ifdef HAVE_SYS_SOCKET_H
  30491. #include <sys/socket.h>
  30492. #endif
  30493. #ifdef HAVE_NETINET_IN_H
  30494. #include <netinet/in.h>
  30495. #endif
  30496. #ifdef HAVE_WINSOCK2_H
  30497. #include <winsock2.h>
  30498. #endif
  30499. int
  30500. main ()
  30501. {
  30502. int x = AF_INET; struct in_addr y; struct sockaddr_in z;
  30503.  if (&x && &y && &z) return 0;
  30504.   ;
  30505.   return 0;
  30506. }
  30507. _ACEOF
  30508. if ac_fn_c_try_compile "$LINENO"; then :
  30509.   gl_cv_socket_ipv4=yes
  30510. else
  30511.   gl_cv_socket_ipv4=no
  30512. fi
  30513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30514. fi
  30515.  
  30516.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
  30517. $as_echo "$gl_cv_socket_ipv4" >&6; }
  30518.   if test $gl_cv_socket_ipv4 = yes; then
  30519.  
  30520. $as_echo "#define HAVE_IPV4 1" >>confdefs.h
  30521.  
  30522.   fi
  30523.  
  30524.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
  30525. $as_echo_n "checking for IPv6 sockets... " >&6; }
  30526.   if ${gl_cv_socket_ipv6+:} false; then :
  30527.   $as_echo_n "(cached) " >&6
  30528. else
  30529.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30530. /* end confdefs.h.  */
  30531. #include <sys/types.h>
  30532. #ifdef HAVE_SYS_SOCKET_H
  30533. #include <sys/socket.h>
  30534. #endif
  30535. #ifdef HAVE_NETINET_IN_H
  30536. #include <netinet/in.h>
  30537. #endif
  30538. #ifdef HAVE_WINSOCK2_H
  30539. #include <winsock2.h>
  30540. #endif
  30541. #ifdef HAVE_WS2TCPIP_H
  30542. #include <ws2tcpip.h>
  30543. #endif
  30544. int
  30545. main ()
  30546. {
  30547. int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
  30548.  if (&x && &y && &z) return 0;
  30549.   ;
  30550.   return 0;
  30551. }
  30552. _ACEOF
  30553. if ac_fn_c_try_compile "$LINENO"; then :
  30554.   gl_cv_socket_ipv6=yes
  30555. else
  30556.   gl_cv_socket_ipv6=no
  30557. fi
  30558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30559. fi
  30560.  
  30561.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
  30562. $as_echo "$gl_cv_socket_ipv6" >&6; }
  30563.   if test $gl_cv_socket_ipv6 = yes; then
  30564.  
  30565. $as_echo "#define HAVE_IPV6 1" >>confdefs.h
  30566.  
  30567.   fi
  30568.  
  30569.  
  30570.       ac_fn_c_check_decl "$LINENO" "getpass" "ac_cv_have_decl_getpass" "$ac_includes_default"
  30571. if test "x$ac_cv_have_decl_getpass" = xyes; then :
  30572.   ac_have_decl=1
  30573. else
  30574.   ac_have_decl=0
  30575. fi
  30576.  
  30577. cat >>confdefs.h <<_ACEOF
  30578. #define HAVE_DECL_GETPASS $ac_have_decl
  30579. _ACEOF
  30580.  
  30581.  
  30582.  
  30583.  
  30584.  
  30585.  
  30586.  
  30587.  
  30588.  
  30589.  
  30590.  
  30591.  
  30592.  
  30593.  
  30594.  
  30595.  
  30596.  
  30597.  
  30598.  
  30599.  
  30600.  
  30601.  
  30602.  
  30603.  
  30604.  
  30605.  
  30606.  
  30607.  
  30608.       ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
  30609. if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
  30610.   ac_have_decl=1
  30611. else
  30612.   ac_have_decl=0
  30613. fi
  30614.  
  30615. cat >>confdefs.h <<_ACEOF
  30616. #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
  30617. _ACEOF
  30618.  
  30619.  
  30620.  
  30621.       ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
  30622. if test "x$ac_cv_have_decl_flockfile" = xyes; then :
  30623.   ac_have_decl=1
  30624. else
  30625.   ac_have_decl=0
  30626. fi
  30627.  
  30628. cat >>confdefs.h <<_ACEOF
  30629. #define HAVE_DECL_FLOCKFILE $ac_have_decl
  30630. _ACEOF
  30631.  
  30632.  
  30633.  
  30634.       ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
  30635. if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
  30636.   ac_have_decl=1
  30637. else
  30638.   ac_have_decl=0
  30639. fi
  30640.  
  30641. cat >>confdefs.h <<_ACEOF
  30642. #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
  30643. _ACEOF
  30644.  
  30645.  
  30646.  
  30647.       ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
  30648. if test "x$ac_cv_have_decl_funlockfile" = xyes; then :
  30649.   ac_have_decl=1
  30650. else
  30651.   ac_have_decl=0
  30652. fi
  30653.  
  30654. cat >>confdefs.h <<_ACEOF
  30655. #define HAVE_DECL_FUNLOCKFILE $ac_have_decl
  30656. _ACEOF
  30657.  
  30658.  
  30659.  
  30660.       ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
  30661. if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
  30662.   ac_have_decl=1
  30663. else
  30664.   ac_have_decl=0
  30665. fi
  30666.  
  30667. cat >>confdefs.h <<_ACEOF
  30668. #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
  30669. _ACEOF
  30670.  
  30671.  
  30672.  
  30673.  
  30674.  
  30675.  
  30676.  
  30677.  
  30678.  
  30679.  
  30680.  
  30681.  
  30682. :
  30683.  
  30684.  
  30685.  
  30686.  
  30687.  
  30688.  
  30689.  
  30690.       for ac_header in stdlib.h
  30691. do :
  30692.   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  30693. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  30694.   cat >>confdefs.h <<_ACEOF
  30695. #define HAVE_STDLIB_H 1
  30696. _ACEOF
  30697.  
  30698. fi
  30699.  
  30700. done
  30701.  
  30702.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  30703. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  30704. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  30705.   $as_echo_n "(cached) " >&6
  30706. else
  30707.   if test "$cross_compiling" = yes; then :
  30708.   case "$host_os" in
  30709.           # Guess yes on platforms where we know the result.
  30710.           *-gnu* | freebsd* | netbsd* | openbsd* \
  30711.           | hpux* | solaris* | cygwin* | mingw*)
  30712.             ac_cv_func_malloc_0_nonnull=yes ;;
  30713.           # If we don't know, assume the worst.
  30714.           *) ac_cv_func_malloc_0_nonnull=no ;;
  30715.         esac
  30716.  
  30717. else
  30718.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30719. /* end confdefs.h.  */
  30720. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  30721.             # include <stdlib.h>
  30722.             #else
  30723.             char *malloc ();
  30724.             #endif
  30725.  
  30726. int
  30727. main ()
  30728. {
  30729. char *p = malloc (0);
  30730.             int result = !p;
  30731.             free (p);
  30732.             return result;
  30733.   ;
  30734.   return 0;
  30735. }
  30736.  
  30737. _ACEOF
  30738. if ac_fn_c_try_run "$LINENO"; then :
  30739.   ac_cv_func_malloc_0_nonnull=yes
  30740. else
  30741.   ac_cv_func_malloc_0_nonnull=no
  30742. fi
  30743. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  30744.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  30745. fi
  30746.  
  30747.  
  30748. fi
  30749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  30750. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  30751.   if test $ac_cv_func_malloc_0_nonnull = yes; then :
  30752.   gl_cv_func_malloc_0_nonnull=1
  30753. else
  30754.   gl_cv_func_malloc_0_nonnull=0
  30755. fi
  30756.  
  30757.  
  30758. cat >>confdefs.h <<_ACEOF
  30759. #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
  30760. _ACEOF
  30761.  
  30762.  
  30763.  
  30764.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5
  30765. $as_echo_n "checking whether time_t is signed... " >&6; }
  30766. if ${gl_cv_time_t_is_signed+:} false; then :
  30767.   $as_echo_n "(cached) " >&6
  30768. else
  30769.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30770. /* end confdefs.h.  */
  30771. #include <time.h>
  30772.                           char time_t_signed[(time_t) -1 < 0 ? 1 : -1];
  30773. int
  30774. main ()
  30775. {
  30776.  
  30777.   ;
  30778.   return 0;
  30779. }
  30780. _ACEOF
  30781. if ac_fn_c_try_compile "$LINENO"; then :
  30782.   gl_cv_time_t_is_signed=yes
  30783. else
  30784.   gl_cv_time_t_is_signed=no
  30785. fi
  30786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30787. fi
  30788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_t_is_signed" >&5
  30789. $as_echo "$gl_cv_time_t_is_signed" >&6; }
  30790.   if test $gl_cv_time_t_is_signed = yes; then
  30791.  
  30792. $as_echo "#define TIME_T_IS_SIGNED 1" >>confdefs.h
  30793.  
  30794.   fi
  30795.  
  30796.  
  30797.       ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
  30798. if test "x$ac_cv_have_decl_alarm" = xyes; then :
  30799.   ac_have_decl=1
  30800. else
  30801.   ac_have_decl=0
  30802. fi
  30803.  
  30804. cat >>confdefs.h <<_ACEOF
  30805. #define HAVE_DECL_ALARM $ac_have_decl
  30806. _ACEOF
  30807.  
  30808.  
  30809.  
  30810.  
  30811.  
  30812.  
  30813.  
  30814.  
  30815.   # parse-datetime.y works with bison only.
  30816.   : ${YACC='bison -y'}
  30817.  
  30818.  
  30819.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compound literals" >&5
  30820. $as_echo_n "checking for compound literals... " >&6; }
  30821. if ${gl_cv_compound_literals+:} false; then :
  30822.   $as_echo_n "(cached) " >&6
  30823. else
  30824.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30825. /* end confdefs.h.  */
  30826. struct s { int i, j; };
  30827. int
  30828. main ()
  30829. {
  30830. struct s t = (struct s) { 3, 4 };
  30831.         if (t.i != 0) return 0;
  30832.   ;
  30833.   return 0;
  30834. }
  30835. _ACEOF
  30836. if ac_fn_c_try_compile "$LINENO"; then :
  30837.   gl_cv_compound_literals=yes
  30838. else
  30839.   gl_cv_compound_literals=no
  30840. fi
  30841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30842. fi
  30843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compound_literals" >&5
  30844. $as_echo "$gl_cv_compound_literals" >&6; }
  30845.   if test $gl_cv_compound_literals = yes; then
  30846.  
  30847. $as_echo "#define HAVE_COMPOUND_LITERALS 1" >>confdefs.h
  30848.  
  30849.   fi
  30850.  
  30851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  30852. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  30853. if ${ac_cv_struct_tm+:} false; then :
  30854.   $as_echo_n "(cached) " >&6
  30855. else
  30856.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30857. /* end confdefs.h.  */
  30858. #include <sys/types.h>
  30859. #include <time.h>
  30860.  
  30861. int
  30862. main ()
  30863. {
  30864. struct tm tm;
  30865.                                      int *p = &tm.tm_sec;
  30866.                                      return !p;
  30867.   ;
  30868.   return 0;
  30869. }
  30870. _ACEOF
  30871. if ac_fn_c_try_compile "$LINENO"; then :
  30872.   ac_cv_struct_tm=time.h
  30873. else
  30874.   ac_cv_struct_tm=sys/time.h
  30875. fi
  30876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30877. fi
  30878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  30879. $as_echo "$ac_cv_struct_tm" >&6; }
  30880. if test $ac_cv_struct_tm = sys/time.h; then
  30881.  
  30882. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  30883.  
  30884. fi
  30885.  
  30886.  
  30887.  ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  30888. "
  30889. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  30890.  
  30891. $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
  30892.  
  30893. fi
  30894.  
  30895.  
  30896.  
  30897.   GNULIB_PSELECT=0;
  30898.   GNULIB_SELECT=0;
  30899.     HAVE_PSELECT=1;
  30900.   REPLACE_PSELECT=0;
  30901.   REPLACE_SELECT=0;
  30902.  
  30903.  
  30904.  
  30905.  
  30906.  
  30907.  
  30908.  
  30909.  
  30910.  
  30911.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
  30912. $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
  30913. if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
  30914.   $as_echo_n "(cached) " >&6
  30915. else
  30916.  
  30917.                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30918. /* end confdefs.h.  */
  30919. #include <sys/select.h>
  30920. int
  30921. main ()
  30922. {
  30923. struct timeval b;
  30924.   ;
  30925.   return 0;
  30926. }
  30927. _ACEOF
  30928. if ac_fn_c_try_compile "$LINENO"; then :
  30929.   gl_cv_header_sys_select_h_selfcontained=yes
  30930. else
  30931.   gl_cv_header_sys_select_h_selfcontained=no
  30932. fi
  30933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30934.                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
  30935.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30936. /* end confdefs.h.  */
  30937. #include <sys/select.h>
  30938. int
  30939. main ()
  30940. {
  30941. int memset; int bzero;
  30942.   ;
  30943.   return 0;
  30944. }
  30945.  
  30946. _ACEOF
  30947. if ac_fn_c_try_compile "$LINENO"; then :
  30948.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30949. /* end confdefs.h.  */
  30950. #include <sys/select.h>
  30951. int
  30952. main ()
  30953. {
  30954.  
  30955.                   #undef memset
  30956.                   #define memset nonexistent_memset
  30957.                   extern
  30958.                   #ifdef __cplusplus
  30959.                   "C"
  30960.                   #endif
  30961.                   void *memset (void *, int, unsigned long);
  30962.                   #undef bzero
  30963.                   #define bzero nonexistent_bzero
  30964.                   extern
  30965.                   #ifdef __cplusplus
  30966.                   "C"
  30967.                   #endif
  30968.                   void bzero (void *, unsigned long);
  30969.                   fd_set fds;
  30970.                   FD_ZERO (&fds);
  30971.  
  30972.   ;
  30973.   return 0;
  30974. }
  30975.  
  30976. _ACEOF
  30977. if ac_fn_c_try_link "$LINENO"; then :
  30978.  
  30979. else
  30980.   gl_cv_header_sys_select_h_selfcontained=no
  30981. fi
  30982. rm -f core conftest.err conftest.$ac_objext \
  30983.     conftest$ac_exeext conftest.$ac_ext
  30984.  
  30985. fi
  30986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30987.       fi
  30988.  
  30989. fi
  30990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
  30991. $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
  30992.  
  30993.  
  30994.  
  30995.  
  30996.  
  30997.  
  30998.   :
  30999.  
  31000.  
  31001.  
  31002.  
  31003.  
  31004.  
  31005.  
  31006.  
  31007.      if test $gl_cv_have_include_next = yes; then
  31008.        gl_cv_next_sys_select_h='<'sys/select.h'>'
  31009.      else
  31010.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
  31011. $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
  31012. if ${gl_cv_next_sys_select_h+:} false; then :
  31013.   $as_echo_n "(cached) " >&6
  31014. else
  31015.  
  31016.              if test $ac_cv_header_sys_select_h = yes; then
  31017.  
  31018.  
  31019.  
  31020.  
  31021.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31022. /* end confdefs.h.  */
  31023. #include <sys/select.h>
  31024. _ACEOF
  31025.                 case "$host_os" in
  31026.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  31027.     *)    gl_absname_cpp="$ac_cpp" ;;
  31028.   esac
  31029.  
  31030.   case "$host_os" in
  31031.     mingw*)
  31032.                                           gl_dirsep_regex='[/\\]'
  31033.       ;;
  31034.     *)
  31035.       gl_dirsep_regex='\/'
  31036.       ;;
  31037.   esac
  31038.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  31039.   gl_header_literal_regex=`echo 'sys/select.h' \
  31040.                            | sed -e "$gl_make_literal_regex_sed"`
  31041.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  31042.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  31043.      s|^/[^/]|//&|
  31044.      p
  31045.      q
  31046.    }'
  31047.  
  31048.         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  31049.   sed -n "$gl_absolute_header_sed"`
  31050.  
  31051.            gl_header=$gl_cv_absolute_sys_select_h
  31052.            gl_cv_next_sys_select_h='"'$gl_header'"'
  31053.           else
  31054.                gl_cv_next_sys_select_h='<'sys/select.h'>'
  31055.              fi
  31056.  
  31057.  
  31058. fi
  31059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
  31060. $as_echo "$gl_cv_next_sys_select_h" >&6; }
  31061.      fi
  31062.      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
  31063.  
  31064.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  31065.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  31066.        gl_next_as_first_directive='<'sys/select.h'>'
  31067.      else
  31068.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  31069.        gl_next_as_first_directive=$gl_cv_next_sys_select_h
  31070.      fi
  31071.      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
  31072.  
  31073.  
  31074.  
  31075.  
  31076.   if test $ac_cv_header_sys_select_h = yes; then
  31077.     HAVE_SYS_SELECT_H=1
  31078.   else
  31079.     HAVE_SYS_SELECT_H=0
  31080.   fi
  31081.  
  31082.  
  31083.  
  31084.  
  31085.  
  31086.   :
  31087.  
  31088.  
  31089.  
  31090.  
  31091.  
  31092.   if test $ac_cv_header_sys_socket_h != yes; then
  31093.                     for ac_header in winsock2.h
  31094. do :
  31095.   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  31096. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  31097.   cat >>confdefs.h <<_ACEOF
  31098. #define HAVE_WINSOCK2_H 1
  31099. _ACEOF
  31100.  
  31101. fi
  31102.  
  31103. done
  31104.  
  31105.   fi
  31106.   if test "$ac_cv_header_winsock2_h" = yes; then
  31107.     HAVE_WINSOCK2_H=1
  31108.     UNISTD_H_HAVE_WINSOCK2_H=1
  31109.     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  31110.   else
  31111.     HAVE_WINSOCK2_H=0
  31112.   fi
  31113.  
  31114.  
  31115.  
  31116.  
  31117.     for gl_func in pselect select; do
  31118.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  31119.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  31120. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  31121. if eval \${$as_gl_Symbol+:} false; then :
  31122.   $as_echo_n "(cached) " >&6
  31123. else
  31124.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31125. /* end confdefs.h.  */
  31126.  
  31127. /* Some systems require prerequisite headers.  */
  31128. #include <sys/types.h>
  31129. #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
  31130. # include <sys/time.h>
  31131. #endif
  31132. #include <sys/select.h>
  31133.  
  31134. int
  31135. main ()
  31136. {
  31137. #undef $gl_func
  31138.   (void) $gl_func;
  31139.   ;
  31140.   return 0;
  31141. }
  31142. _ACEOF
  31143. if ac_fn_c_try_compile "$LINENO"; then :
  31144.   eval "$as_gl_Symbol=yes"
  31145. else
  31146.   eval "$as_gl_Symbol=no"
  31147. fi
  31148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31149. fi
  31150. eval ac_res=\$$as_gl_Symbol
  31151.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  31152. $as_echo "$ac_res" >&6; }
  31153.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  31154.   cat >>confdefs.h <<_ACEOF
  31155. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  31156. _ACEOF
  31157.  
  31158.                      eval ac_cv_have_decl_$gl_func=yes
  31159. fi
  31160.       done
  31161.  
  31162.  
  31163.  
  31164.       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
  31165. if test "x$ac_cv_have_decl_setenv" = xyes; then :
  31166.   ac_have_decl=1
  31167. else
  31168.   ac_have_decl=0
  31169. fi
  31170.  
  31171. cat >>confdefs.h <<_ACEOF
  31172. #define HAVE_DECL_SETENV $ac_have_decl
  31173. _ACEOF
  31174.  
  31175.  
  31176.  
  31177.  
  31178.  
  31179.  
  31180.  
  31181.  
  31182.  
  31183.  
  31184.   :
  31185.  
  31186.  
  31187.  
  31188.  
  31189.  
  31190.   if test $ac_cv_have_decl_setenv = no; then
  31191.     HAVE_DECL_SETENV=0
  31192.   fi
  31193.  
  31194.   :
  31195.  
  31196.  
  31197.  
  31198.  
  31199.  
  31200.  
  31201.  
  31202.  
  31203.  
  31204.   :
  31205.  
  31206.  
  31207.  
  31208.  
  31209.  
  31210.   for ac_header in search.h
  31211. do :
  31212.   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
  31213. if test "x$ac_cv_header_search_h" = xyes; then :
  31214.   cat >>confdefs.h <<_ACEOF
  31215. #define HAVE_SEARCH_H 1
  31216. _ACEOF
  31217.  
  31218. fi
  31219.  
  31220. done
  31221.  
  31222.   for ac_func in tsearch
  31223. do :
  31224.   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
  31225. if test "x$ac_cv_func_tsearch" = xyes; then :
  31226.   cat >>confdefs.h <<_ACEOF
  31227. #define HAVE_TSEARCH 1
  31228. _ACEOF
  31229.  
  31230. fi
  31231. done
  31232.  
  31233.  
  31234.  
  31235.  
  31236.   GNULIB_PTHREAD_SIGMASK=0;
  31237.   GNULIB_RAISE=0;
  31238.   GNULIB_SIGNAL_H_SIGPIPE=0;
  31239.   GNULIB_SIGPROCMASK=0;
  31240.   GNULIB_SIGACTION=0;
  31241.     HAVE_POSIX_SIGNALBLOCKING=1;
  31242.   HAVE_PTHREAD_SIGMASK=1;
  31243.   HAVE_RAISE=1;
  31244.   HAVE_SIGSET_T=1;
  31245.   HAVE_SIGINFO_T=1;
  31246.   HAVE_SIGACTION=1;
  31247.   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
  31248.  
  31249.   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
  31250.  
  31251.   HAVE_SIGHANDLER_T=1;
  31252.   REPLACE_PTHREAD_SIGMASK=0;
  31253.   REPLACE_RAISE=0;
  31254.  
  31255.  
  31256.   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
  31257.      #include <signal.h>
  31258.      /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
  31259.      #include <sys/types.h>
  31260.  
  31261. "
  31262. if test "x$ac_cv_type_sigset_t" = xyes; then :
  31263.  
  31264. cat >>confdefs.h <<_ACEOF
  31265. #define HAVE_SIGSET_T 1
  31266. _ACEOF
  31267.  
  31268. gl_cv_type_sigset_t=yes
  31269. else
  31270.   gl_cv_type_sigset_t=no
  31271. fi
  31272.  
  31273.   if test $gl_cv_type_sigset_t != yes; then
  31274.     HAVE_SIGSET_T=0
  31275.   fi
  31276.  
  31277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  31278. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  31279. if ${ac_cv_type_uid_t+:} false; then :
  31280.   $as_echo_n "(cached) " >&6
  31281. else
  31282.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31283. /* end confdefs.h.  */
  31284. #include <sys/types.h>
  31285.  
  31286. _ACEOF
  31287. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31288.   $EGREP "uid_t" >/dev/null 2>&1; then :
  31289.   ac_cv_type_uid_t=yes
  31290. else
  31291.   ac_cv_type_uid_t=no
  31292. fi
  31293. rm -f conftest*
  31294.  
  31295. fi
  31296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  31297. $as_echo "$ac_cv_type_uid_t" >&6; }
  31298. if test $ac_cv_type_uid_t = no; then
  31299.  
  31300. $as_echo "#define uid_t int" >>confdefs.h
  31301.  
  31302.  
  31303. $as_echo "#define gid_t int" >>confdefs.h
  31304.  
  31305. fi
  31306.  
  31307.  
  31308.  
  31309.  
  31310.  
  31311.  
  31312.  
  31313.       ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
  31314. if test "x$ac_cv_have_decl_strdup" = xyes; then :
  31315.   ac_have_decl=1
  31316. else
  31317.   ac_have_decl=0
  31318. fi
  31319.  
  31320. cat >>confdefs.h <<_ACEOF
  31321. #define HAVE_DECL_STRDUP $ac_have_decl
  31322. _ACEOF
  31323.  
  31324.  
  31325.  
  31326.      REPLACE_STRERROR_0=0
  31327.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
  31328. $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
  31329. if ${gl_cv_func_strerror_0_works+:} false; then :
  31330.   $as_echo_n "(cached) " >&6
  31331. else
  31332.   if test "$cross_compiling" = yes; then :
  31333.   case "$host_os" in
  31334.                  # Guess yes on glibc systems.
  31335.          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
  31336.                  # If we don't know, assume the worst.
  31337.          *)      gl_cv_func_strerror_0_works="guessing no" ;;
  31338.        esac
  31339.  
  31340. else
  31341.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31342. /* end confdefs.h.  */
  31343. #include <string.h>
  31344.            #include <errno.h>
  31345.  
  31346. int
  31347. main ()
  31348. {
  31349. int result = 0;
  31350.            char *str;
  31351.            errno = 0;
  31352.            str = strerror (0);
  31353.            if (!*str) result |= 1;
  31354.            if (errno) result |= 2;
  31355.            if (strstr (str, "nknown") || strstr (str, "ndefined"))
  31356.              result |= 4;
  31357.            return result;
  31358.   ;
  31359.   return 0;
  31360. }
  31361. _ACEOF
  31362. if ac_fn_c_try_run "$LINENO"; then :
  31363.   gl_cv_func_strerror_0_works=yes
  31364. else
  31365.   gl_cv_func_strerror_0_works=no
  31366. fi
  31367. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31368.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  31369. fi
  31370.  
  31371.  
  31372. fi
  31373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
  31374. $as_echo "$gl_cv_func_strerror_0_works" >&6; }
  31375.   case "$gl_cv_func_strerror_0_works" in
  31376.     *yes) ;;
  31377.     *)
  31378.       REPLACE_STRERROR_0=1
  31379.  
  31380. $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
  31381.  
  31382.       ;;
  31383.   esac
  31384.  
  31385.  
  31386.  
  31387.  
  31388.  
  31389.  
  31390.  
  31391.       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
  31392. if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
  31393.   ac_have_decl=1
  31394. else
  31395.   ac_have_decl=0
  31396. fi
  31397.  
  31398. cat >>confdefs.h <<_ACEOF
  31399. #define HAVE_DECL_UNSETENV $ac_have_decl
  31400. _ACEOF
  31401.  
  31402.  
  31403.  
  31404.    if true; then
  31405.   GL_COND_LIBTOOL_TRUE=
  31406.   GL_COND_LIBTOOL_FALSE='#'
  31407. else
  31408.   GL_COND_LIBTOOL_TRUE='#'
  31409.   GL_COND_LIBTOOL_FALSE=
  31410. fi
  31411.  
  31412.   gl_cond_libtool=true
  31413.   gl_m4_base='src/gl/m4'
  31414.  
  31415.  
  31416.  
  31417.  
  31418.  
  31419.  
  31420.  
  31421.  
  31422.  
  31423.   gl_source_base='src/gl'
  31424.  
  31425.   if test "$ac_cv_header_winsock2_h" = yes; then
  31426.  
  31427.  
  31428.  
  31429.  
  31430.  
  31431.  
  31432.  
  31433.  
  31434.   ggl_LIBOBJS="$ggl_LIBOBJS accept.$ac_objext"
  31435.  
  31436.   fi
  31437.  
  31438.  
  31439.  
  31440.  
  31441.  
  31442.           GNULIB_ACCEPT=1
  31443.  
  31444.  
  31445.  
  31446.  
  31447.  
  31448. $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
  31449.  
  31450.  
  31451.  
  31452. LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
  31453.  
  31454.  
  31455.  
  31456.   if test $ac_cv_func_alloca_works = no; then
  31457.     :
  31458.   fi
  31459.  
  31460.   # Define an additional variable used in the Makefile substitution.
  31461.   if test $ac_cv_working_alloca_h = yes; then
  31462.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
  31463. $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
  31464. if ${gl_cv_rpl_alloca+:} false; then :
  31465.   $as_echo_n "(cached) " >&6
  31466. else
  31467.  
  31468.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31469. /* end confdefs.h.  */
  31470.  
  31471. #if defined __GNUC__ || defined _AIX || defined _MSC_VER
  31472.         Need own alloca
  31473. #endif
  31474.  
  31475. _ACEOF
  31476. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31477.   $EGREP "Need own alloca" >/dev/null 2>&1; then :
  31478.   gl_cv_rpl_alloca=yes
  31479. else
  31480.   gl_cv_rpl_alloca=no
  31481. fi
  31482. rm -f conftest*
  31483.  
  31484.  
  31485. fi
  31486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
  31487. $as_echo "$gl_cv_rpl_alloca" >&6; }
  31488.     if test $gl_cv_rpl_alloca = yes; then
  31489.  
  31490. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  31491.  
  31492.       ALLOCA_H=alloca.h
  31493.     else
  31494.                   ALLOCA_H=
  31495.     fi
  31496.   else
  31497.     ALLOCA_H=alloca.h
  31498.   fi
  31499.  
  31500.    if test -n "$ALLOCA_H"; then
  31501.   GL_GENERATE_ALLOCA_H_TRUE=
  31502.   GL_GENERATE_ALLOCA_H_FALSE='#'
  31503. else
  31504.   GL_GENERATE_ALLOCA_H_TRUE='#'
  31505.   GL_GENERATE_ALLOCA_H_FALSE=
  31506. fi
  31507.  
  31508.  
  31509.  
  31510.  
  31511.  
  31512.  
  31513.   :
  31514.  
  31515.  
  31516.  
  31517.  
  31518.  
  31519.   if test $ac_cv_header_arpa_inet_h = yes; then
  31520.     HAVE_ARPA_INET_H=1
  31521.   else
  31522.     HAVE_ARPA_INET_H=0
  31523.   fi
  31524.  
  31525.  
  31526.  
  31527.  
  31528.  
  31529.  
  31530.  
  31531.   :
  31532.  
  31533.  
  31534.  
  31535.  
  31536.  
  31537.  
  31538.  
  31539.  
  31540.      if test $gl_cv_have_include_next = yes; then
  31541.        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
  31542.      else
  31543.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
  31544. $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
  31545. if ${gl_cv_next_arpa_inet_h+:} false; then :
  31546.   $as_echo_n "(cached) " >&6
  31547. else
  31548.  
  31549.              if test $ac_cv_header_arpa_inet_h = yes; then
  31550.  
  31551.  
  31552.  
  31553.  
  31554.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31555. /* end confdefs.h.  */
  31556. #include <arpa/inet.h>
  31557. _ACEOF
  31558.                 case "$host_os" in
  31559.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  31560.     *)    gl_absname_cpp="$ac_cpp" ;;
  31561.   esac
  31562.  
  31563.   case "$host_os" in
  31564.     mingw*)
  31565.                                           gl_dirsep_regex='[/\\]'
  31566.       ;;
  31567.     *)
  31568.       gl_dirsep_regex='\/'
  31569.       ;;
  31570.   esac
  31571.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  31572.   gl_header_literal_regex=`echo 'arpa/inet.h' \
  31573.                            | sed -e "$gl_make_literal_regex_sed"`
  31574.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  31575.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  31576.      s|^/[^/]|//&|
  31577.      p
  31578.      q
  31579.    }'
  31580.  
  31581.         gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  31582.   sed -n "$gl_absolute_header_sed"`
  31583.  
  31584.            gl_header=$gl_cv_absolute_arpa_inet_h
  31585.            gl_cv_next_arpa_inet_h='"'$gl_header'"'
  31586.           else
  31587.                gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
  31588.              fi
  31589.  
  31590.  
  31591. fi
  31592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
  31593. $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
  31594.      fi
  31595.      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
  31596.  
  31597.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  31598.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  31599.        gl_next_as_first_directive='<'arpa/inet.h'>'
  31600.      else
  31601.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  31602.        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
  31603.      fi
  31604.      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
  31605.  
  31606.  
  31607.  
  31608.  
  31609.  
  31610.  
  31611.  
  31612.  
  31613.     for gl_func in inet_ntop inet_pton; do
  31614.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  31615.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  31616. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  31617. if eval \${$as_gl_Symbol+:} false; then :
  31618.   $as_echo_n "(cached) " >&6
  31619. else
  31620.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31621. /* end confdefs.h.  */
  31622.  
  31623. /* On some systems, this header is not self-consistent.  */
  31624. #if !(defined __GLIBC__ || defined __UCLIBC__)
  31625. # include <sys/socket.h>
  31626. #endif
  31627. #ifdef __TANDEM
  31628. # include <netdb.h>
  31629. #endif
  31630. #include <arpa/inet.h>
  31631.  
  31632. int
  31633. main ()
  31634. {
  31635. #undef $gl_func
  31636.   (void) $gl_func;
  31637.   ;
  31638.   return 0;
  31639. }
  31640. _ACEOF
  31641. if ac_fn_c_try_compile "$LINENO"; then :
  31642.   eval "$as_gl_Symbol=yes"
  31643. else
  31644.   eval "$as_gl_Symbol=no"
  31645. fi
  31646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31647. fi
  31648. eval ac_res=\$$as_gl_Symbol
  31649.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  31650. $as_echo "$ac_res" >&6; }
  31651.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  31652.   cat >>confdefs.h <<_ACEOF
  31653. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  31654. _ACEOF
  31655.  
  31656.                      eval ac_cv_have_decl_$gl_func=yes
  31657. fi
  31658.       done
  31659.  
  31660.  
  31661.  
  31662.  
  31663.   if test "$ac_cv_header_winsock2_h" = yes; then
  31664.  
  31665.  
  31666.  
  31667.  
  31668.  
  31669.  
  31670.  
  31671.  
  31672.   ggl_LIBOBJS="$ggl_LIBOBJS bind.$ac_objext"
  31673.  
  31674.   fi
  31675.  
  31676.  
  31677.  
  31678.  
  31679.  
  31680.           GNULIB_BIND=1
  31681.  
  31682.  
  31683.  
  31684.  
  31685.  
  31686. $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
  31687.  
  31688.  
  31689.  
  31690.  
  31691.  
  31692.  
  31693.   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
  31694.   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
  31695.  
  31696.   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
  31697.   # programs in the package would end up linked with that potentially-shared
  31698.   # library, inducing unnecessary run-time overhead.
  31699.   LIB_CLOCK_GETTIME=
  31700.  
  31701.   gl_saved_libs=$LIBS
  31702.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  31703. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  31704. if ${ac_cv_search_clock_gettime+:} false; then :
  31705.   $as_echo_n "(cached) " >&6
  31706. else
  31707.   ac_func_search_save_LIBS=$LIBS
  31708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31709. /* end confdefs.h.  */
  31710.  
  31711. /* Override any GCC internal prototype to avoid an error.
  31712.    Use char because int might match the return type of a GCC
  31713.    builtin and then its argument prototype would still apply.  */
  31714. #ifdef __cplusplus
  31715. extern "C"
  31716. #endif
  31717. char clock_gettime ();
  31718. int
  31719. main ()
  31720. {
  31721. return clock_gettime ();
  31722.   ;
  31723.   return 0;
  31724. }
  31725. _ACEOF
  31726. for ac_lib in '' rt posix4; do
  31727.   if test -z "$ac_lib"; then
  31728.     ac_res="none required"
  31729.   else
  31730.     ac_res=-l$ac_lib
  31731.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  31732.   fi
  31733.   if ac_fn_c_try_link "$LINENO"; then :
  31734.   ac_cv_search_clock_gettime=$ac_res
  31735. fi
  31736. rm -f core conftest.err conftest.$ac_objext \
  31737.     conftest$ac_exeext
  31738.   if ${ac_cv_search_clock_gettime+:} false; then :
  31739.   break
  31740. fi
  31741. done
  31742. if ${ac_cv_search_clock_gettime+:} false; then :
  31743.  
  31744. else
  31745.   ac_cv_search_clock_gettime=no
  31746. fi
  31747. rm conftest.$ac_ext
  31748. LIBS=$ac_func_search_save_LIBS
  31749. fi
  31750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  31751. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  31752. ac_res=$ac_cv_search_clock_gettime
  31753. if test "$ac_res" != no; then :
  31754.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  31755.   test "$ac_cv_search_clock_gettime" = "none required" ||
  31756.                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
  31757. fi
  31758.  
  31759.     for ac_func in clock_gettime clock_settime
  31760. do :
  31761.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31762. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  31763. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  31764.   cat >>confdefs.h <<_ACEOF
  31765. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31766. _ACEOF
  31767.  
  31768. fi
  31769. done
  31770.  
  31771.   LIBS=$gl_saved_libs
  31772.  
  31773.  
  31774.  
  31775.  
  31776.   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  31777.     REPLACE_CLOSE=1
  31778.   fi
  31779.  
  31780.  
  31781.  
  31782.  
  31783.  
  31784.   :
  31785.  
  31786.  
  31787.  
  31788.  
  31789.  
  31790.   if test $ac_cv_header_sys_socket_h != yes; then
  31791.                     for ac_header in winsock2.h
  31792. do :
  31793.   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  31794. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  31795.   cat >>confdefs.h <<_ACEOF
  31796. #define HAVE_WINSOCK2_H 1
  31797. _ACEOF
  31798.  
  31799. fi
  31800.  
  31801. done
  31802.  
  31803.   fi
  31804.   if test "$ac_cv_header_winsock2_h" = yes; then
  31805.     HAVE_WINSOCK2_H=1
  31806.     UNISTD_H_HAVE_WINSOCK2_H=1
  31807.     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  31808.   else
  31809.     HAVE_WINSOCK2_H=0
  31810.   fi
  31811.  
  31812.  
  31813.     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
  31814.                         REPLACE_CLOSE=1
  31815.     fi
  31816.  
  31817.  
  31818.  
  31819.   if test $REPLACE_CLOSE = 1; then
  31820.  
  31821.  
  31822.  
  31823.  
  31824.  
  31825.  
  31826.  
  31827.  
  31828.   ggl_LIBOBJS="$ggl_LIBOBJS close.$ac_objext"
  31829.  
  31830.   fi
  31831.  
  31832.  
  31833.  
  31834.  
  31835.  
  31836.           GNULIB_CLOSE=1
  31837.  
  31838.  
  31839.  
  31840.  
  31841.  
  31842. $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
  31843.  
  31844.  
  31845.  
  31846.  
  31847.   if test "$ac_cv_header_winsock2_h" = yes; then
  31848.  
  31849.  
  31850.  
  31851.  
  31852.  
  31853.  
  31854.  
  31855.  
  31856.   ggl_LIBOBJS="$ggl_LIBOBJS connect.$ac_objext"
  31857.  
  31858.   fi
  31859.  
  31860.  
  31861.  
  31862.  
  31863.  
  31864.           GNULIB_CONNECT=1
  31865.  
  31866.  
  31867.  
  31868.  
  31869.  
  31870. $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
  31871.  
  31872.  
  31873.  
  31874.  
  31875.  
  31876.  
  31877.  
  31878.  
  31879.  
  31880.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
  31881. $as_echo_n "checking whether // is distinct from /... " >&6; }
  31882. if ${gl_cv_double_slash_root+:} false; then :
  31883.   $as_echo_n "(cached) " >&6
  31884. else
  31885.    if test x"$cross_compiling" = xyes ; then
  31886.         # When cross-compiling, there is no way to tell whether // is special
  31887.         # short of a list of hosts.  However, the only known hosts to date
  31888.         # that have a distinct // are Apollo DomainOS (too old to port to),
  31889.         # Cygwin, and z/OS.  If anyone knows of another system for which // has
  31890.         # special semantics and is distinct from /, please report it to
  31891.         # <bug-gnulib@gnu.org>.
  31892.         case $host in
  31893.           *-cygwin | i370-ibm-openedition)
  31894.             gl_cv_double_slash_root=yes ;;
  31895.           *)
  31896.             # Be optimistic and assume that / and // are the same when we
  31897.             # don't know.
  31898.             gl_cv_double_slash_root='unknown, assuming no' ;;
  31899.         esac
  31900.       else
  31901.         set x `ls -di / // 2>/dev/null`
  31902.         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
  31903.           gl_cv_double_slash_root=no
  31904.         else
  31905.           gl_cv_double_slash_root=yes
  31906.         fi
  31907.       fi
  31908. fi
  31909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
  31910. $as_echo "$gl_cv_double_slash_root" >&6; }
  31911.   if test "$gl_cv_double_slash_root" = yes; then
  31912.  
  31913. $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
  31914.  
  31915.   fi
  31916.  
  31917.  
  31918.  
  31919.  
  31920.  
  31921.  
  31922. $as_echo "#define HAVE_DUP2 1" >>confdefs.h
  31923.  
  31924.  
  31925.   if test $HAVE_DUP2 = 1; then
  31926.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
  31927. $as_echo_n "checking whether dup2 works... " >&6; }
  31928. if ${gl_cv_func_dup2_works+:} false; then :
  31929.   $as_echo_n "(cached) " >&6
  31930. else
  31931.   if test "$cross_compiling" = yes; then :
  31932.   case "$host_os" in
  31933.            mingw*) # on this platform, dup2 always returns 0 for success
  31934.              gl_cv_func_dup2_works="guessing no" ;;
  31935.            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
  31936.              gl_cv_func_dup2_works="guessing no" ;;
  31937.            aix* | freebsd*)
  31938.                    # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
  31939.                    # not EBADF.
  31940.              gl_cv_func_dup2_works="guessing no" ;;
  31941.            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
  31942.              gl_cv_func_dup2_works="guessing no" ;;
  31943.            *-android*) # implemented using dup3(), which fails if oldfd == newfd
  31944.              gl_cv_func_dup2_works="guessing no" ;;
  31945.            os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
  31946.              gl_cv_func_dup2_works="guessing no" ;;
  31947.            *) gl_cv_func_dup2_works="guessing yes" ;;
  31948.          esac
  31949. else
  31950.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31951. /* end confdefs.h.  */
  31952.  
  31953.          #include <errno.h>
  31954.              #include <fcntl.h>
  31955.              #include <limits.h>
  31956.              #include <sys/resource.h>
  31957.              #include <unistd.h>
  31958.              #ifndef RLIM_SAVED_CUR
  31959.              # define RLIM_SAVED_CUR RLIM_INFINITY
  31960.              #endif
  31961.              #ifndef RLIM_SAVED_MAX
  31962.              # define RLIM_SAVED_MAX RLIM_INFINITY
  31963.              #endif
  31964.  
  31965. int
  31966. main ()
  31967. {
  31968. int result = 0;
  31969.              int bad_fd = INT_MAX;
  31970.              struct rlimit rlim;
  31971.              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
  31972.                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
  31973.                  && rlim.rlim_cur != RLIM_INFINITY
  31974.                  && rlim.rlim_cur != RLIM_SAVED_MAX
  31975.                  && rlim.rlim_cur != RLIM_SAVED_CUR)
  31976.                bad_fd = rlim.rlim_cur;
  31977.              #ifdef FD_CLOEXEC
  31978.                if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
  31979.                  result |= 1;
  31980.              #endif
  31981.              if (dup2 (1, 1) != 1)
  31982.                result |= 2;
  31983.              #ifdef FD_CLOEXEC
  31984.                if (fcntl (1, F_GETFD) != FD_CLOEXEC)
  31985.                  result |= 4;
  31986.              #endif
  31987.              close (0);
  31988.              if (dup2 (0, 0) != -1)
  31989.                result |= 8;
  31990.              /* Many gnulib modules require POSIX conformance of EBADF.  */
  31991.              if (dup2 (2, bad_fd) == -1 && errno != EBADF)
  31992.                result |= 16;
  31993.              /* Flush out some cygwin core dumps.  */
  31994.              if (dup2 (2, -1) != -1 || errno != EBADF)
  31995.                result |= 32;
  31996.              dup2 (2, 255);
  31997.              dup2 (2, 256);
  31998.              /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
  31999.              {
  32000.                int fd = open (".", O_RDONLY);
  32001.                if (fd == -1)
  32002.                  result |= 64;
  32003.                else if (dup2 (fd, fd + 1) == -1)
  32004.                  result |= 128;
  32005.  
  32006.                close (fd);
  32007.              }
  32008.              return result;
  32009.   ;
  32010.   return 0;
  32011. }
  32012.  
  32013. _ACEOF
  32014. if ac_fn_c_try_run "$LINENO"; then :
  32015.   gl_cv_func_dup2_works=yes
  32016. else
  32017.   gl_cv_func_dup2_works=no
  32018. fi
  32019. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32020.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  32021. fi
  32022.  
  32023.  
  32024. fi
  32025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
  32026. $as_echo "$gl_cv_func_dup2_works" >&6; }
  32027.     case "$gl_cv_func_dup2_works" in
  32028.       *yes) ;;
  32029.       *)
  32030.         REPLACE_DUP2=1
  32031.         for ac_func in setdtablesize
  32032. do :
  32033.   ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
  32034. if test "x$ac_cv_func_setdtablesize" = xyes; then :
  32035.   cat >>confdefs.h <<_ACEOF
  32036. #define HAVE_SETDTABLESIZE 1
  32037. _ACEOF
  32038.  
  32039. fi
  32040. done
  32041.  
  32042.         ;;
  32043.     esac
  32044.   fi
  32045.  
  32046.  
  32047.   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
  32048.  
  32049.  
  32050.  
  32051.  
  32052.  
  32053.  
  32054.  
  32055.  
  32056.   ggl_LIBOBJS="$ggl_LIBOBJS dup2.$ac_objext"
  32057.  
  32058.  
  32059.   fi
  32060.  
  32061.  
  32062.  
  32063.  
  32064.  
  32065.           GNULIB_DUP2=1
  32066.  
  32067.  
  32068.  
  32069.  
  32070.  
  32071. $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
  32072.  
  32073.  
  32074.  
  32075.  
  32076.  
  32077.  
  32078.  
  32079.  
  32080.  
  32081.           GNULIB_ENVIRON=1
  32082.  
  32083.  
  32084.  
  32085.  
  32086.  
  32087. $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
  32088.  
  32089.  
  32090.  
  32091.  
  32092.  
  32093.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  32094. $as_echo_n "checking for error_at_line... " >&6; }
  32095. if ${ac_cv_lib_error_at_line+:} false; then :
  32096.   $as_echo_n "(cached) " >&6
  32097. else
  32098.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32099. /* end confdefs.h.  */
  32100. #include <error.h>
  32101. int
  32102. main ()
  32103. {
  32104. error_at_line (0, 0, "", 0, "an error occurred");
  32105.   ;
  32106.   return 0;
  32107. }
  32108. _ACEOF
  32109. if ac_fn_c_try_link "$LINENO"; then :
  32110.   ac_cv_lib_error_at_line=yes
  32111. else
  32112.   ac_cv_lib_error_at_line=no
  32113. fi
  32114. rm -f core conftest.err conftest.$ac_objext \
  32115.     conftest$ac_exeext conftest.$ac_ext
  32116. fi
  32117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  32118. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  32119.  
  32120.   if test $ac_cv_lib_error_at_line = no; then
  32121.  
  32122.  
  32123.  
  32124.  
  32125.  
  32126.  
  32127.  
  32128.  
  32129.   ggl_LIBOBJS="$ggl_LIBOBJS error.$ac_objext"
  32130.  
  32131.  
  32132.  
  32133.   :
  32134.  
  32135.   fi
  32136.  
  32137.  
  32138.   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
  32139.  
  32140.  
  32141.  
  32142.   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
  32143.  
  32144.  
  32145.  
  32146.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
  32147. $as_echo_n "checking for flexible array member... " >&6; }
  32148. if ${ac_cv_c_flexmember+:} false; then :
  32149.   $as_echo_n "(cached) " >&6
  32150. else
  32151.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32152. /* end confdefs.h.  */
  32153. #include <stdlib.h>
  32154.             #include <stdio.h>
  32155.             #include <stddef.h>
  32156.             struct s { int n; double d[]; };
  32157. int
  32158. main ()
  32159. {
  32160. int m = getchar ();
  32161.             size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
  32162.             nbytes += sizeof (struct s) - 1;
  32163.             nbytes -= nbytes % sizeof (struct s);
  32164.             struct s *p = malloc (nbytes);
  32165.             p->d[0] = 0.0;
  32166.             return p->d != (double *) NULL;
  32167.   ;
  32168.   return 0;
  32169. }
  32170. _ACEOF
  32171. if ac_fn_c_try_compile "$LINENO"; then :
  32172.   ac_cv_c_flexmember=yes
  32173. else
  32174.   ac_cv_c_flexmember=no
  32175. fi
  32176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32177. fi
  32178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
  32179. $as_echo "$ac_cv_c_flexmember" >&6; }
  32180.   if test $ac_cv_c_flexmember = yes; then
  32181.  
  32182. $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
  32183.  
  32184.   else
  32185.     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
  32186.  
  32187.   fi
  32188.  
  32189.  
  32190.  
  32191.  
  32192.   FLOAT_H=
  32193.   REPLACE_FLOAT_LDBL=0
  32194.   case "$host_os" in
  32195.     aix* | beos* | openbsd* | mirbsd* | irix*)
  32196.       FLOAT_H=float.h
  32197.       ;;
  32198.     freebsd*)
  32199.       case "$host_cpu" in
  32200.         i[34567]86 )
  32201.           FLOAT_H=float.h
  32202.           ;;
  32203.         x86_64 )
  32204.           # On x86_64 systems, the C compiler may still be generating
  32205.           # 32-bit code.
  32206.           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32207. /* end confdefs.h.  */
  32208. #if defined __LP64__ || defined __x86_64__ || defined __amd64__
  32209.              yes
  32210.              #endif
  32211. _ACEOF
  32212. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32213.   $EGREP "yes" >/dev/null 2>&1; then :
  32214.  
  32215. else
  32216.   FLOAT_H=float.h
  32217. fi
  32218. rm -f conftest*
  32219.  
  32220.           ;;
  32221.       esac
  32222.       ;;
  32223.     linux*)
  32224.       case "$host_cpu" in
  32225.         powerpc*)
  32226.           FLOAT_H=float.h
  32227.           ;;
  32228.       esac
  32229.       ;;
  32230.   esac
  32231.   case "$host_os" in
  32232.     aix* | freebsd* | linux*)
  32233.       if test -n "$FLOAT_H"; then
  32234.         REPLACE_FLOAT_LDBL=1
  32235.       fi
  32236.       ;;
  32237.   esac
  32238.  
  32239.     REPLACE_ITOLD=0
  32240.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
  32241. $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
  32242. if ${gl_cv_func_itold_works+:} false; then :
  32243.   $as_echo_n "(cached) " >&6
  32244. else
  32245.  
  32246.       if test "$cross_compiling" = yes; then :
  32247.   case "$host" in
  32248.            sparc*-*-linux*)
  32249.              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32250. /* end confdefs.h.  */
  32251. #if defined __LP64__ || defined __arch64__
  32252.                 yes
  32253.                 #endif
  32254. _ACEOF
  32255. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32256.   $EGREP "yes" >/dev/null 2>&1; then :
  32257.   gl_cv_func_itold_works="guessing no"
  32258. else
  32259.   gl_cv_func_itold_works="guessing yes"
  32260. fi
  32261. rm -f conftest*
  32262.  
  32263.              ;;
  32264.            *) gl_cv_func_itold_works="guessing yes" ;;
  32265.          esac
  32266.  
  32267. else
  32268.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32269. /* end confdefs.h.  */
  32270.  
  32271. int i = -1;
  32272. volatile long double ld;
  32273. int main ()
  32274. {
  32275.   ld += i * 1.0L;
  32276.   if (ld > 0)
  32277.     return 1;
  32278.   return 0;
  32279. }
  32280. _ACEOF
  32281. if ac_fn_c_try_run "$LINENO"; then :
  32282.   gl_cv_func_itold_works=yes
  32283. else
  32284.   gl_cv_func_itold_works=no
  32285. fi
  32286. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32287.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  32288. fi
  32289.  
  32290.  
  32291. fi
  32292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
  32293. $as_echo "$gl_cv_func_itold_works" >&6; }
  32294.   case "$gl_cv_func_itold_works" in
  32295.     *no)
  32296.       REPLACE_ITOLD=1
  32297.                   FLOAT_H=float.h
  32298.       ;;
  32299.   esac
  32300.  
  32301.   if test -n "$FLOAT_H"; then
  32302.  
  32303.  
  32304.  
  32305.  
  32306.  
  32307.  
  32308.  
  32309.  
  32310.      if test $gl_cv_have_include_next = yes; then
  32311.        gl_cv_next_float_h='<'float.h'>'
  32312.      else
  32313.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
  32314. $as_echo_n "checking absolute name of <float.h>... " >&6; }
  32315. if ${gl_cv_next_float_h+:} false; then :
  32316.   $as_echo_n "(cached) " >&6
  32317. else
  32318.  
  32319.  
  32320.  
  32321.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32322. /* end confdefs.h.  */
  32323. #include <float.h>
  32324. _ACEOF
  32325.                 case "$host_os" in
  32326.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  32327.     *)    gl_absname_cpp="$ac_cpp" ;;
  32328.   esac
  32329.  
  32330.   case "$host_os" in
  32331.     mingw*)
  32332.                                           gl_dirsep_regex='[/\\]'
  32333.       ;;
  32334.     *)
  32335.       gl_dirsep_regex='\/'
  32336.       ;;
  32337.   esac
  32338.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  32339.   gl_header_literal_regex=`echo 'float.h' \
  32340.                            | sed -e "$gl_make_literal_regex_sed"`
  32341.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  32342.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  32343.      s|^/[^/]|//&|
  32344.      p
  32345.      q
  32346.    }'
  32347.  
  32348.         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  32349.   sed -n "$gl_absolute_header_sed"`
  32350.  
  32351.            gl_header=$gl_cv_absolute_float_h
  32352.            gl_cv_next_float_h='"'$gl_header'"'
  32353.  
  32354.  
  32355. fi
  32356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
  32357. $as_echo "$gl_cv_next_float_h" >&6; }
  32358.      fi
  32359.      NEXT_FLOAT_H=$gl_cv_next_float_h
  32360.  
  32361.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  32362.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  32363.        gl_next_as_first_directive='<'float.h'>'
  32364.      else
  32365.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  32366.        gl_next_as_first_directive=$gl_cv_next_float_h
  32367.      fi
  32368.      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
  32369.  
  32370.  
  32371.  
  32372.  
  32373.   fi
  32374.  
  32375.    if test -n "$FLOAT_H"; then
  32376.   GL_GENERATE_FLOAT_H_TRUE=
  32377.   GL_GENERATE_FLOAT_H_FALSE='#'
  32378. else
  32379.   GL_GENERATE_FLOAT_H_TRUE='#'
  32380.   GL_GENERATE_FLOAT_H_FALSE=
  32381. fi
  32382.  
  32383.  
  32384.  
  32385.   if test $REPLACE_FLOAT_LDBL = 1; then
  32386.  
  32387.  
  32388.  
  32389.  
  32390.  
  32391.  
  32392.  
  32393.  
  32394.   ggl_LIBOBJS="$ggl_LIBOBJS float.$ac_objext"
  32395.  
  32396.   fi
  32397.   if test $REPLACE_ITOLD = 1; then
  32398.  
  32399.  
  32400.  
  32401.  
  32402.  
  32403.  
  32404.  
  32405.  
  32406.   ggl_LIBOBJS="$ggl_LIBOBJS itold.$ac_objext"
  32407.  
  32408.   fi
  32409.  
  32410.  
  32411.  
  32412.     if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
  32413.     REPLACE_FSEEK=1
  32414.   fi
  32415.  
  32416.   if test $REPLACE_FSEEK = 1; then
  32417.  
  32418.  
  32419.  
  32420.  
  32421.  
  32422.  
  32423.  
  32424.  
  32425.   ggl_LIBOBJS="$ggl_LIBOBJS fseek.$ac_objext"
  32426.  
  32427.   fi
  32428.  
  32429.  
  32430.  
  32431.  
  32432.  
  32433.           GNULIB_FSEEK=1
  32434.  
  32435.  
  32436.  
  32437.  
  32438.  
  32439. $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
  32440.  
  32441.  
  32442.  
  32443.  
  32444.  
  32445.  
  32446.  
  32447.  
  32448.  
  32449.  
  32450.  
  32451.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
  32452. $as_echo_n "checking for fseeko... " >&6; }
  32453. if ${gl_cv_func_fseeko+:} false; then :
  32454.   $as_echo_n "(cached) " >&6
  32455. else
  32456.  
  32457.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32458. /* end confdefs.h.  */
  32459. #include <stdio.h>
  32460.  
  32461. int
  32462. main ()
  32463. {
  32464. fseeko (stdin, 0, 0);
  32465.   ;
  32466.   return 0;
  32467. }
  32468. _ACEOF
  32469. if ac_fn_c_try_link "$LINENO"; then :
  32470.   gl_cv_func_fseeko=yes
  32471. else
  32472.   gl_cv_func_fseeko=no
  32473. fi
  32474. rm -f core conftest.err conftest.$ac_objext \
  32475.     conftest$ac_exeext conftest.$ac_ext
  32476.  
  32477. fi
  32478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
  32479. $as_echo "$gl_cv_func_fseeko" >&6; }
  32480.  
  32481.  
  32482.   :
  32483.  
  32484.  
  32485.  
  32486.  
  32487.  
  32488.   if test $ac_cv_have_decl_fseeko = no; then
  32489.     HAVE_DECL_FSEEKO=0
  32490.   fi
  32491.  
  32492.   if test $gl_cv_func_fseeko = no; then
  32493.     HAVE_FSEEKO=0
  32494.   else
  32495.     if test $WINDOWS_64_BIT_OFF_T = 1; then
  32496.       REPLACE_FSEEKO=1
  32497.     fi
  32498.     if test $gl_cv_var_stdin_large_offset = no; then
  32499.       REPLACE_FSEEKO=1
  32500.     fi
  32501.  
  32502.   fi
  32503.  
  32504.   if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
  32505.  
  32506.  
  32507.  
  32508.  
  32509.  
  32510.  
  32511.  
  32512.  
  32513.   ggl_LIBOBJS="$ggl_LIBOBJS fseeko.$ac_objext"
  32514.  
  32515.  
  32516.       for ac_func in _fseeki64
  32517. do :
  32518.   ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
  32519. if test "x$ac_cv_func__fseeki64" = xyes; then :
  32520.   cat >>confdefs.h <<_ACEOF
  32521. #define HAVE__FSEEKI64 1
  32522. _ACEOF
  32523.  
  32524. fi
  32525. done
  32526.  
  32527.  
  32528.   fi
  32529.  
  32530.  
  32531.  
  32532.  
  32533.  
  32534.           GNULIB_FSEEKO=1
  32535.  
  32536.  
  32537.  
  32538.  
  32539.  
  32540. $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
  32541.  
  32542.  
  32543.  
  32544.  
  32545.  
  32546.  
  32547.  
  32548.   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  32549.     REPLACE_FSTAT=1
  32550.   fi
  32551.  
  32552.  
  32553.   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
  32554.     REPLACE_FSTAT=1
  32555.   fi
  32556.  
  32557.  
  32558.  
  32559.   if test $REPLACE_FSTAT = 1; then
  32560.  
  32561.  
  32562.  
  32563.  
  32564.  
  32565.  
  32566.  
  32567.  
  32568.   ggl_LIBOBJS="$ggl_LIBOBJS fstat.$ac_objext"
  32569.  
  32570.     :
  32571.   fi
  32572.  
  32573.  
  32574.  
  32575.  
  32576.  
  32577.           GNULIB_FSTAT=1
  32578.  
  32579.  
  32580.  
  32581.  
  32582.  
  32583. $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
  32584.  
  32585.  
  32586.  
  32587.  
  32588.  
  32589.  
  32590.     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
  32591.     REPLACE_FTELL=1
  32592.   fi
  32593.  
  32594.   if test $REPLACE_FTELL = 1; then
  32595.  
  32596.  
  32597.  
  32598.  
  32599.  
  32600.  
  32601.  
  32602.  
  32603.   ggl_LIBOBJS="$ggl_LIBOBJS ftell.$ac_objext"
  32604.  
  32605.   fi
  32606.  
  32607.  
  32608.  
  32609.  
  32610.  
  32611.           GNULIB_FTELL=1
  32612.  
  32613.  
  32614.  
  32615.  
  32616.  
  32617. $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
  32618.  
  32619.  
  32620.  
  32621.  
  32622.  
  32623.  
  32624.  
  32625.  
  32626.  
  32627.  
  32628.  
  32629.  
  32630.   :
  32631.  
  32632.  
  32633.  
  32634.  
  32635.  
  32636.   if test $ac_cv_have_decl_ftello = no; then
  32637.     HAVE_DECL_FTELLO=0
  32638.   fi
  32639.  
  32640.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
  32641. $as_echo_n "checking for ftello... " >&6; }
  32642. if ${gl_cv_func_ftello+:} false; then :
  32643.   $as_echo_n "(cached) " >&6
  32644. else
  32645.  
  32646.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32647. /* end confdefs.h.  */
  32648. #include <stdio.h>
  32649. int
  32650. main ()
  32651. {
  32652. ftello (stdin);
  32653.   ;
  32654.   return 0;
  32655. }
  32656. _ACEOF
  32657. if ac_fn_c_try_link "$LINENO"; then :
  32658.   gl_cv_func_ftello=yes
  32659. else
  32660.   gl_cv_func_ftello=no
  32661. fi
  32662. rm -f core conftest.err conftest.$ac_objext \
  32663.     conftest$ac_exeext conftest.$ac_ext
  32664.  
  32665. fi
  32666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
  32667. $as_echo "$gl_cv_func_ftello" >&6; }
  32668.   if test $gl_cv_func_ftello = no; then
  32669.     HAVE_FTELLO=0
  32670.   else
  32671.     if test $WINDOWS_64_BIT_OFF_T = 1; then
  32672.       REPLACE_FTELLO=1
  32673.     fi
  32674.     if test $gl_cv_var_stdin_large_offset = no; then
  32675.       REPLACE_FTELLO=1
  32676.     fi
  32677.     if test $REPLACE_FTELLO = 0; then
  32678.  
  32679.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
  32680. $as_echo_n "checking whether ftello works... " >&6; }
  32681. if ${gl_cv_func_ftello_works+:} false; then :
  32682.   $as_echo_n "(cached) " >&6
  32683. else
  32684.  
  32685.                               case "$host_os" in
  32686.                       # Guess no on Solaris.
  32687.             solaris*) gl_cv_func_ftello_works="guessing no" ;;
  32688.                       # Guess yes otherwise.
  32689.             *)        gl_cv_func_ftello_works="guessing yes" ;;
  32690.           esac
  32691.           if test "$cross_compiling" = yes; then :
  32692.   :
  32693. else
  32694.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32695. /* end confdefs.h.  */
  32696.  
  32697. #include <stdio.h>
  32698. #include <stdlib.h>
  32699. #include <string.h>
  32700. #define TESTFILE "conftest.tmp"
  32701. int
  32702. main (void)
  32703. {
  32704.   FILE *fp;
  32705.  
  32706.   /* Create a file with some contents.  */
  32707.   fp = fopen (TESTFILE, "w");
  32708.   if (fp == NULL)
  32709.     return 70;
  32710.   if (fwrite ("foogarsh", 1, 8, fp) < 8)
  32711.     return 71;
  32712.   if (fclose (fp))
  32713.     return 72;
  32714.  
  32715.   /* The file's contents is now "foogarsh".  */
  32716.  
  32717.  /* Try writing after reading to EOF.  */
  32718.  fp = fopen (TESTFILE, "r+");
  32719.  if (fp == NULL)
  32720.    return 73;
  32721.  if (fseek (fp, -1, SEEK_END))
  32722.    return 74;
  32723.  if (!(getc (fp) == 'h'))
  32724.    return 1;
  32725.  if (!(getc (fp) == EOF))
  32726.    return 2;
  32727.  if (!(ftell (fp) == 8))
  32728.    return 3;
  32729.  if (!(ftell (fp) == 8))
  32730.    return 4;
  32731.  if (!(putc ('!', fp) == '!'))
  32732.    return 5;
  32733.  if (!(ftell (fp) == 9))
  32734.    return 6;
  32735.  if (!(fclose (fp) == 0))
  32736.    return 7;
  32737.  fp = fopen (TESTFILE, "r");
  32738.  if (fp == NULL)
  32739.    return 75;
  32740.  {
  32741.    char buf[10];
  32742.    if (!(fread (buf, 1, 10, fp) == 9))
  32743.      return 10;
  32744.    if (!(memcmp (buf, "foogarsh!", 9) == 0))
  32745.      return 11;
  32746.  }
  32747.  if (!(fclose (fp) == 0))
  32748.    return 12;
  32749.  
  32750.  /* The file's contents is now "foogarsh!".  */
  32751.  
  32752.   return 0;
  32753. }
  32754. _ACEOF
  32755. if ac_fn_c_try_run "$LINENO"; then :
  32756.   gl_cv_func_ftello_works=yes
  32757. else
  32758.   gl_cv_func_ftello_works=no
  32759. fi
  32760. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32761.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  32762. fi
  32763.  
  32764.  
  32765. fi
  32766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
  32767. $as_echo "$gl_cv_func_ftello_works" >&6; }
  32768.       case "$gl_cv_func_ftello_works" in
  32769.         *yes) ;;
  32770.         *)
  32771.           REPLACE_FTELLO=1
  32772.  
  32773. $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
  32774.  
  32775.           ;;
  32776.       esac
  32777.     fi
  32778.   fi
  32779.  
  32780.   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
  32781.  
  32782.  
  32783.  
  32784.  
  32785.  
  32786.  
  32787.  
  32788.  
  32789.   ggl_LIBOBJS="$ggl_LIBOBJS ftello.$ac_objext"
  32790.  
  32791.  
  32792.       for ac_func in _ftelli64
  32793. do :
  32794.   ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
  32795. if test "x$ac_cv_func__ftelli64" = xyes; then :
  32796.   cat >>confdefs.h <<_ACEOF
  32797. #define HAVE__FTELLI64 1
  32798. _ACEOF
  32799.  
  32800. fi
  32801. done
  32802.  
  32803.  
  32804.   fi
  32805.  
  32806.  
  32807.  
  32808.  
  32809.  
  32810.           GNULIB_FTELLO=1
  32811.  
  32812.  
  32813.  
  32814.  
  32815.  
  32816. $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
  32817.  
  32818.  
  32819.  
  32820.  
  32821.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
  32822. $as_echo_n "checking how to do getaddrinfo, freeaddrinfo and getnameinfo... " >&6; }
  32823.   GETADDRINFO_LIB=
  32824.   gai_saved_LIBS="$LIBS"
  32825.  
  32826.               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  32827. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  32828. if ${ac_cv_search_getaddrinfo+:} false; then :
  32829.   $as_echo_n "(cached) " >&6
  32830. else
  32831.   ac_func_search_save_LIBS=$LIBS
  32832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32833. /* end confdefs.h.  */
  32834.  
  32835. /* Override any GCC internal prototype to avoid an error.
  32836.    Use char because int might match the return type of a GCC
  32837.    builtin and then its argument prototype would still apply.  */
  32838. #ifdef __cplusplus
  32839. extern "C"
  32840. #endif
  32841. char getaddrinfo ();
  32842. int
  32843. main ()
  32844. {
  32845. return getaddrinfo ();
  32846.   ;
  32847.   return 0;
  32848. }
  32849. _ACEOF
  32850. for ac_lib in '' socket network net; do
  32851.   if test -z "$ac_lib"; then
  32852.     ac_res="none required"
  32853.   else
  32854.     ac_res=-l$ac_lib
  32855.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  32856.   fi
  32857.   if ac_fn_c_try_link "$LINENO"; then :
  32858.   ac_cv_search_getaddrinfo=$ac_res
  32859. fi
  32860. rm -f core conftest.err conftest.$ac_objext \
  32861.     conftest$ac_exeext
  32862.   if ${ac_cv_search_getaddrinfo+:} false; then :
  32863.   break
  32864. fi
  32865. done
  32866. if ${ac_cv_search_getaddrinfo+:} false; then :
  32867.  
  32868. else
  32869.   ac_cv_search_getaddrinfo=no
  32870. fi
  32871. rm conftest.$ac_ext
  32872. LIBS=$ac_func_search_save_LIBS
  32873. fi
  32874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  32875. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  32876. ac_res=$ac_cv_search_getaddrinfo
  32877. if test "$ac_res" != no; then :
  32878.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  32879.   if test "$ac_cv_search_getaddrinfo" != "none required"; then
  32880.        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
  32881.      fi
  32882. fi
  32883.  
  32884.   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
  32885.  
  32886.   HAVE_GETADDRINFO=1
  32887.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
  32888. $as_echo_n "checking for getaddrinfo... " >&6; }
  32889. if ${gl_cv_func_getaddrinfo+:} false; then :
  32890.   $as_echo_n "(cached) " >&6
  32891. else
  32892.  
  32893.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32894. /* end confdefs.h.  */
  32895.  
  32896. #include <sys/types.h>
  32897. #ifdef HAVE_SYS_SOCKET_H
  32898. #include <sys/socket.h>
  32899. #endif
  32900. #ifdef HAVE_NETDB_H
  32901. #include <netdb.h>
  32902. #endif
  32903. #include <stddef.h>
  32904.  
  32905. int
  32906. main ()
  32907. {
  32908. getaddrinfo("", "", NULL, NULL);
  32909.   ;
  32910.   return 0;
  32911. }
  32912. _ACEOF
  32913. if ac_fn_c_try_link "$LINENO"; then :
  32914.   gl_cv_func_getaddrinfo=yes
  32915. else
  32916.   gl_cv_func_getaddrinfo=no
  32917. fi
  32918. rm -f core conftest.err conftest.$ac_objext \
  32919.     conftest$ac_exeext conftest.$ac_ext
  32920. fi
  32921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
  32922. $as_echo "$gl_cv_func_getaddrinfo" >&6; }
  32923.   if test $gl_cv_func_getaddrinfo = no; then
  32924.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
  32925. $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
  32926. if ${gl_cv_w32_getaddrinfo+:} false; then :
  32927.   $as_echo_n "(cached) " >&6
  32928. else
  32929.  
  32930.       gl_cv_w32_getaddrinfo=no
  32931.       am_save_LIBS="$LIBS"
  32932.       LIBS="$LIBS -lws2_32"
  32933.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32934. /* end confdefs.h.  */
  32935.  
  32936. #ifdef HAVE_WS2TCPIP_H
  32937. #include <ws2tcpip.h>
  32938. #endif
  32939. #include <stddef.h>
  32940.  
  32941. int
  32942. main ()
  32943. {
  32944. getaddrinfo(NULL, NULL, NULL, NULL);
  32945.   ;
  32946.   return 0;
  32947. }
  32948. _ACEOF
  32949. if ac_fn_c_try_link "$LINENO"; then :
  32950.   gl_cv_w32_getaddrinfo=yes
  32951. fi
  32952. rm -f core conftest.err conftest.$ac_objext \
  32953.     conftest$ac_exeext conftest.$ac_ext
  32954.       LIBS="$am_save_LIBS"
  32955.  
  32956. fi
  32957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
  32958. $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
  32959.     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
  32960.       GETADDRINFO_LIB="-lws2_32"
  32961.       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
  32962.     else
  32963.       HAVE_GETADDRINFO=0
  32964.     fi
  32965.   fi
  32966.  
  32967.   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
  32968.   # inline function declared in ws2tcpip.h, so we need to get that
  32969.   # header included somehow.
  32970.   ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
  32971. #include <sys/types.h>
  32972. #ifdef HAVE_SYS_SOCKET_H
  32973. #include <sys/socket.h>
  32974. #endif
  32975. #ifdef HAVE_NETDB_H
  32976. #include <netdb.h>
  32977. #endif
  32978. #ifdef HAVE_WS2TCPIP_H
  32979. #include <ws2tcpip.h>
  32980. #endif
  32981. #include <stddef.h>
  32982.  
  32983. "
  32984. if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
  32985.   ac_have_decl=1
  32986. else
  32987.   ac_have_decl=0
  32988. fi
  32989.  
  32990. cat >>confdefs.h <<_ACEOF
  32991. #define HAVE_DECL_GAI_STRERROR $ac_have_decl
  32992. _ACEOF
  32993.  
  32994.   if test $ac_cv_have_decl_gai_strerror = yes; then
  32995.     ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" "
  32996. #include <sys/types.h>
  32997. #ifdef HAVE_SYS_SOCKET_H
  32998. #include <sys/socket.h>
  32999. #endif
  33000. #ifdef HAVE_NETDB_H
  33001. #include <netdb.h>
  33002. #endif
  33003. #ifdef HAVE_WS2TCPIP_H
  33004. #include <ws2tcpip.h>
  33005. #endif
  33006. #include <stddef.h>
  33007.  
  33008. "
  33009. if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then :
  33010.   ac_have_decl=1
  33011. else
  33012.   ac_have_decl=0
  33013. fi
  33014.  
  33015. cat >>confdefs.h <<_ACEOF
  33016. #define HAVE_DECL_GAI_STRERRORA $ac_have_decl
  33017. _ACEOF
  33018.  
  33019.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5
  33020. $as_echo_n "checking for gai_strerror with POSIX signature... " >&6; }
  33021. if ${gl_cv_func_gai_strerror_posix_signature+:} false; then :
  33022.   $as_echo_n "(cached) " >&6
  33023. else
  33024.  
  33025.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33026. /* end confdefs.h.  */
  33027.  
  33028. #include <sys/types.h>
  33029. #ifdef HAVE_SYS_SOCKET_H
  33030. #include <sys/socket.h>
  33031. #endif
  33032. #ifdef HAVE_NETDB_H
  33033. #include <netdb.h>
  33034. #endif
  33035. #ifdef HAVE_WS2TCPIP_H
  33036. #include <ws2tcpip.h>
  33037. #endif
  33038. #include <stddef.h>
  33039. extern
  33040. #ifdef __cplusplus
  33041. "C"
  33042. #endif
  33043. const char *gai_strerror(int);
  33044. _ACEOF
  33045. if ac_fn_c_try_compile "$LINENO"; then :
  33046.   gl_cv_func_gai_strerror_posix_signature=yes
  33047. else
  33048.   gl_cv_func_gai_strerror_posix_signature=no
  33049. fi
  33050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33051. fi
  33052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5
  33053. $as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; }
  33054.     if test $gl_cv_func_gai_strerror_posix_signature = no; then
  33055.       REPLACE_GAI_STRERROR=1
  33056.     fi
  33057.   fi
  33058.  
  33059.   LIBS="$gai_saved_LIBS"
  33060.  
  33061.  
  33062.  
  33063.  
  33064.  
  33065.  
  33066.  
  33067.  
  33068.       ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
  33069. #include <sys/types.h>
  33070. #include <sys/socket.h>
  33071.  
  33072. "
  33073. if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
  33074.  
  33075. cat >>confdefs.h <<_ACEOF
  33076. #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
  33077. _ACEOF
  33078.  
  33079.  
  33080. fi
  33081.  
  33082.  
  33083.  
  33084.   :
  33085.  
  33086.  
  33087.  
  33088.  
  33089.  
  33090.  
  33091.   ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
  33092.  /* sys/types.h is not needed according to POSIX, but the
  33093.     sys/socket.h in i386-unknown-freebsd4.10 and
  33094.     powerpc-apple-darwin5.5 required it. */
  33095. #include <sys/types.h>
  33096. #ifdef HAVE_SYS_SOCKET_H
  33097. #include <sys/socket.h>
  33098. #endif
  33099. #ifdef HAVE_NETDB_H
  33100. #include <netdb.h>
  33101. #endif
  33102. #ifdef HAVE_WS2TCPIP_H
  33103. #include <ws2tcpip.h>
  33104. #endif
  33105.  
  33106. "
  33107. if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
  33108.   ac_have_decl=1
  33109. else
  33110.   ac_have_decl=0
  33111. fi
  33112.  
  33113. cat >>confdefs.h <<_ACEOF
  33114. #define HAVE_DECL_GETADDRINFO $ac_have_decl
  33115. _ACEOF
  33116. ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
  33117.  /* sys/types.h is not needed according to POSIX, but the
  33118.     sys/socket.h in i386-unknown-freebsd4.10 and
  33119.     powerpc-apple-darwin5.5 required it. */
  33120. #include <sys/types.h>
  33121. #ifdef HAVE_SYS_SOCKET_H
  33122. #include <sys/socket.h>
  33123. #endif
  33124. #ifdef HAVE_NETDB_H
  33125. #include <netdb.h>
  33126. #endif
  33127. #ifdef HAVE_WS2TCPIP_H
  33128. #include <ws2tcpip.h>
  33129. #endif
  33130.  
  33131. "
  33132. if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
  33133.   ac_have_decl=1
  33134. else
  33135.   ac_have_decl=0
  33136. fi
  33137.  
  33138. cat >>confdefs.h <<_ACEOF
  33139. #define HAVE_DECL_FREEADDRINFO $ac_have_decl
  33140. _ACEOF
  33141. ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
  33142.  /* sys/types.h is not needed according to POSIX, but the
  33143.     sys/socket.h in i386-unknown-freebsd4.10 and
  33144.     powerpc-apple-darwin5.5 required it. */
  33145. #include <sys/types.h>
  33146. #ifdef HAVE_SYS_SOCKET_H
  33147. #include <sys/socket.h>
  33148. #endif
  33149. #ifdef HAVE_NETDB_H
  33150. #include <netdb.h>
  33151. #endif
  33152. #ifdef HAVE_WS2TCPIP_H
  33153. #include <ws2tcpip.h>
  33154. #endif
  33155.  
  33156. "
  33157. if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
  33158.   ac_have_decl=1
  33159. else
  33160.   ac_have_decl=0
  33161. fi
  33162.  
  33163. cat >>confdefs.h <<_ACEOF
  33164. #define HAVE_DECL_GETNAMEINFO $ac_have_decl
  33165. _ACEOF
  33166.  
  33167.   if test $ac_cv_have_decl_getaddrinfo = no; then
  33168.     HAVE_DECL_GETADDRINFO=0
  33169.   fi
  33170.   if test $ac_cv_have_decl_freeaddrinfo = no; then
  33171.     HAVE_DECL_FREEADDRINFO=0
  33172.   fi
  33173.   if test $ac_cv_have_decl_gai_strerror = no; then
  33174.     HAVE_DECL_GAI_STRERROR=0
  33175.   fi
  33176.   if test $ac_cv_have_decl_getnameinfo = no; then
  33177.     HAVE_DECL_GETNAMEINFO=0
  33178.   fi
  33179.  
  33180.   ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
  33181. #include <sys/types.h>
  33182. #ifdef HAVE_SYS_SOCKET_H
  33183. #include <sys/socket.h>
  33184. #endif
  33185. #ifdef HAVE_NETDB_H
  33186. #include <netdb.h>
  33187. #endif
  33188. #ifdef HAVE_WS2TCPIP_H
  33189. #include <ws2tcpip.h>
  33190. #endif
  33191.  
  33192. "
  33193. if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
  33194.  
  33195. cat >>confdefs.h <<_ACEOF
  33196. #define HAVE_STRUCT_ADDRINFO 1
  33197. _ACEOF
  33198.  
  33199.  
  33200. fi
  33201.  
  33202.   if test $ac_cv_type_struct_addrinfo = no; then
  33203.     HAVE_STRUCT_ADDRINFO=0
  33204.   fi
  33205.  
  33206.     case " $GETADDRINFO_LIB " in
  33207.     *" $HOSTENT_LIB "*) ;;
  33208.     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
  33209.   esac
  33210.  
  33211.     case " $GETADDRINFO_LIB " in
  33212.     *" $SERVENT_LIB "*) ;;
  33213.     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
  33214.   esac
  33215.  
  33216.     case " $GETADDRINFO_LIB " in
  33217.     *" $INET_NTOP_LIB "*) ;;
  33218.     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
  33219.   esac
  33220.  
  33221.  
  33222.  
  33223.  
  33224.   if test $HAVE_GETADDRINFO = 0; then
  33225.  
  33226.  
  33227.  
  33228.  
  33229.  
  33230.  
  33231.  
  33232.  
  33233.   ggl_LIBOBJS="$ggl_LIBOBJS getaddrinfo.$ac_objext"
  33234.  
  33235.   fi
  33236.   if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
  33237.  
  33238.  
  33239.  
  33240.  
  33241.  
  33242.  
  33243.  
  33244.  
  33245.   ggl_LIBOBJS="$ggl_LIBOBJS gai_strerror.$ac_objext"
  33246.  
  33247.   fi
  33248.  
  33249.  
  33250.  
  33251.  
  33252.  
  33253.           GNULIB_GETADDRINFO=1
  33254.  
  33255.  
  33256.  
  33257.  
  33258.  
  33259. $as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h
  33260.  
  33261.  
  33262.  
  33263.  
  33264.  
  33265.  
  33266.  
  33267.  
  33268.  
  33269.   :
  33270.  
  33271.  
  33272.  
  33273.  
  33274.  
  33275.  
  33276.  
  33277.   :
  33278.  
  33279.  
  33280.  
  33281.  
  33282.  
  33283.   if test $ac_cv_func_getdelim = yes; then
  33284.     HAVE_GETDELIM=1
  33285.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
  33286. $as_echo_n "checking for working getdelim function... " >&6; }
  33287. if ${gl_cv_func_working_getdelim+:} false; then :
  33288.   $as_echo_n "(cached) " >&6
  33289. else
  33290.   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
  33291.     if test "$cross_compiling" = yes; then :
  33292.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33293. /* end confdefs.h.  */
  33294.  
  33295. #include <features.h>
  33296. #ifdef __GNU_LIBRARY__
  33297.  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
  33298.   Lucky GNU user
  33299.  #endif
  33300. #endif
  33301.  
  33302. _ACEOF
  33303. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33304.   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  33305.   gl_cv_func_working_getdelim="guessing yes"
  33306. else
  33307.   gl_cv_func_working_getdelim="guessing no"
  33308. fi
  33309. rm -f conftest*
  33310.  
  33311.  
  33312. else
  33313.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33314. /* end confdefs.h.  */
  33315.  
  33316. #    include <stdio.h>
  33317. #    include <stdlib.h>
  33318. #    include <string.h>
  33319.     int main ()
  33320.     {
  33321.       FILE *in = fopen ("./conftest.data", "r");
  33322.       if (!in)
  33323.         return 1;
  33324.       {
  33325.         /* Test result for a NULL buffer and a zero size.
  33326.            Based on a test program from Karl Heuer.  */
  33327.         char *line = NULL;
  33328.         size_t siz = 0;
  33329.         int len = getdelim (&line, &siz, '\n', in);
  33330.         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
  33331.           return 2;
  33332.       }
  33333.       {
  33334.         /* Test result for a NULL buffer and a non-zero size.
  33335.            This crashes on FreeBSD 8.0.  */
  33336.         char *line = NULL;
  33337.         size_t siz = (size_t)(~0) / 4;
  33338.         if (getdelim (&line, &siz, '\n', in) == -1)
  33339.           return 3;
  33340.         free (line);
  33341.       }
  33342.       fclose (in);
  33343.       return 0;
  33344.     }
  33345.  
  33346. _ACEOF
  33347. if ac_fn_c_try_run "$LINENO"; then :
  33348.   gl_cv_func_working_getdelim=yes
  33349. else
  33350.   gl_cv_func_working_getdelim=no
  33351. fi
  33352. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  33353.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  33354. fi
  33355.  
  33356. fi
  33357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
  33358. $as_echo "$gl_cv_func_working_getdelim" >&6; }
  33359.     case "$gl_cv_func_working_getdelim" in
  33360.       *no)
  33361.         REPLACE_GETDELIM=1
  33362.         ;;
  33363.     esac
  33364.   else
  33365.     HAVE_GETDELIM=0
  33366.   fi
  33367.  
  33368.   if test $ac_cv_have_decl_getdelim = no; then
  33369.     HAVE_DECL_GETDELIM=0
  33370.   fi
  33371.  
  33372.   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
  33373.  
  33374.  
  33375.  
  33376.  
  33377.  
  33378.  
  33379.  
  33380.  
  33381.   ggl_LIBOBJS="$ggl_LIBOBJS getdelim.$ac_objext"
  33382.  
  33383.  
  33384.   for ac_func in flockfile funlockfile
  33385. do :
  33386.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  33387. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  33388. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  33389.   cat >>confdefs.h <<_ACEOF
  33390. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  33391. _ACEOF
  33392.  
  33393. fi
  33394. done
  33395.  
  33396.   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
  33397. if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
  33398.   ac_have_decl=1
  33399. else
  33400.   ac_have_decl=0
  33401. fi
  33402.  
  33403. cat >>confdefs.h <<_ACEOF
  33404. #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
  33405. _ACEOF
  33406.  
  33407.  
  33408.   fi
  33409.  
  33410.  
  33411.  
  33412.  
  33413.  
  33414.           GNULIB_GETDELIM=1
  33415.  
  33416.  
  33417.  
  33418.  
  33419.  
  33420. $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
  33421.  
  33422.  
  33423.  
  33424.  
  33425.  
  33426.  
  33427.  
  33428.  
  33429.  
  33430.   :
  33431.  
  33432.  
  33433.  
  33434.  
  33435.  
  33436.  
  33437.   gl_getline_needs_run_time_check=no
  33438.   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  33439. if test "x$ac_cv_func_getline" = xyes; then :
  33440.                    gl_getline_needs_run_time_check=yes
  33441. else
  33442.   am_cv_func_working_getline=no
  33443. fi
  33444.  
  33445.   if test $gl_getline_needs_run_time_check = yes; then
  33446.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
  33447. $as_echo_n "checking for working getline function... " >&6; }
  33448. if ${am_cv_func_working_getline+:} false; then :
  33449.   $as_echo_n "(cached) " >&6
  33450. else
  33451.   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
  33452.     if test "$cross_compiling" = yes; then :
  33453.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33454. /* end confdefs.h.  */
  33455.  
  33456. #include <features.h>
  33457. #ifdef __GNU_LIBRARY__
  33458.  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
  33459.   Lucky GNU user
  33460.  #endif
  33461. #endif
  33462.  
  33463. _ACEOF
  33464. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33465.   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  33466.   am_cv_func_working_getline="guessing yes"
  33467. else
  33468.   am_cv_func_working_getline="guessing no"
  33469. fi
  33470. rm -f conftest*
  33471.  
  33472.  
  33473. else
  33474.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33475. /* end confdefs.h.  */
  33476.  
  33477. #    include <stdio.h>
  33478. #    include <stdlib.h>
  33479. #    include <string.h>
  33480.     int main ()
  33481.     {
  33482.       FILE *in = fopen ("./conftest.data", "r");
  33483.       if (!in)
  33484.         return 1;
  33485.       {
  33486.         /* Test result for a NULL buffer and a zero size.
  33487.            Based on a test program from Karl Heuer.  */
  33488.         char *line = NULL;
  33489.         size_t siz = 0;
  33490.         int len = getline (&line, &siz, in);
  33491.         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
  33492.           return 2;
  33493.         free (line);
  33494.       }
  33495.       {
  33496.         /* Test result for a NULL buffer and a non-zero size.
  33497.            This crashes on FreeBSD 8.0.  */
  33498.         char *line = NULL;
  33499.         size_t siz = (size_t)(~0) / 4;
  33500.         if (getline (&line, &siz, in) == -1)
  33501.           return 3;
  33502.         free (line);
  33503.       }
  33504.       fclose (in);
  33505.       return 0;
  33506.     }
  33507.  
  33508. _ACEOF
  33509. if ac_fn_c_try_run "$LINENO"; then :
  33510.   am_cv_func_working_getline=yes
  33511. else
  33512.   am_cv_func_working_getline=no
  33513. fi
  33514. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  33515.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  33516. fi
  33517.  
  33518. fi
  33519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
  33520. $as_echo "$am_cv_func_working_getline" >&6; }
  33521.   fi
  33522.  
  33523.   if test $ac_cv_have_decl_getline = no; then
  33524.     HAVE_DECL_GETLINE=0
  33525.   fi
  33526.  
  33527.   case "$am_cv_func_working_getline" in
  33528.     *no)
  33529.                         REPLACE_GETLINE=1
  33530.       ;;
  33531.   esac
  33532.  
  33533.   if test $REPLACE_GETLINE = 1; then
  33534.  
  33535.  
  33536.  
  33537.  
  33538.  
  33539.  
  33540.  
  33541.  
  33542.   ggl_LIBOBJS="$ggl_LIBOBJS getline.$ac_objext"
  33543.  
  33544.  
  33545.   :
  33546.  
  33547.   fi
  33548.  
  33549.  
  33550.  
  33551.  
  33552.  
  33553.           GNULIB_GETLINE=1
  33554.  
  33555.  
  33556.  
  33557.  
  33558.  
  33559. $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
  33560.  
  33561.  
  33562.  
  33563.  
  33564.  
  33565.  
  33566.   for ac_func in getpass
  33567. do :
  33568.   ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
  33569. if test "x$ac_cv_func_getpass" = xyes; then :
  33570.   cat >>confdefs.h <<_ACEOF
  33571. #define HAVE_GETPASS 1
  33572. _ACEOF
  33573.  
  33574. fi
  33575. done
  33576.  
  33577.  
  33578.   :
  33579.  
  33580.  
  33581.  
  33582.  
  33583.  
  33584.   if test $ac_cv_func_getpass = yes; then
  33585.     HAVE_GETPASS=1
  33586.   else
  33587.     HAVE_GETPASS=0
  33588.   fi
  33589.  
  33590.   if test $HAVE_GETPASS = 0; then
  33591.  
  33592.  
  33593.  
  33594.  
  33595.  
  33596.  
  33597.  
  33598.  
  33599.   ggl_LIBOBJS="$ggl_LIBOBJS getpass.$ac_objext"
  33600.  
  33601.  
  33602.  
  33603.   :
  33604.  
  33605.  
  33606.  
  33607.  
  33608.  
  33609.  
  33610.  
  33611.  
  33612.  
  33613.   :
  33614.  
  33615.  
  33616.  
  33617.  
  33618.  
  33619.  
  33620.  
  33621.  
  33622.  
  33623.  
  33624.  
  33625.   ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
  33626.      #if HAVE_STDIO_EXT_H
  33627.       #include <stdio_ext.h>
  33628.      #endif
  33629. "
  33630. if test "x$ac_cv_have_decl___fsetlocking" = xyes; then :
  33631.   ac_have_decl=1
  33632. else
  33633.   ac_have_decl=0
  33634. fi
  33635.  
  33636. cat >>confdefs.h <<_ACEOF
  33637. #define HAVE_DECL___FSETLOCKING $ac_have_decl
  33638. _ACEOF
  33639.  
  33640.  
  33641.   :
  33642.  
  33643.  
  33644.  
  33645.  
  33646.  
  33647.  
  33648.   :
  33649.  
  33650.  
  33651.  
  33652.  
  33653.  
  33654.  
  33655.   :
  33656.  
  33657.  
  33658.  
  33659.  
  33660.  
  33661.  
  33662.   :
  33663.  
  33664.  
  33665.  
  33666.  
  33667.  
  33668.  
  33669.   :
  33670.  
  33671.  
  33672.  
  33673.  
  33674.  
  33675.   :
  33676.  
  33677.   fi
  33678.  
  33679.   if test "$ac_cv_header_winsock2_h" = yes; then
  33680.  
  33681.  
  33682.  
  33683.  
  33684.  
  33685.  
  33686.  
  33687.  
  33688.   ggl_LIBOBJS="$ggl_LIBOBJS getpeername.$ac_objext"
  33689.  
  33690.   fi
  33691.  
  33692.  
  33693.  
  33694.  
  33695.  
  33696.           GNULIB_GETPEERNAME=1
  33697.  
  33698.  
  33699.  
  33700.  
  33701.  
  33702. $as_echo "#define GNULIB_TEST_GETPEERNAME 1" >>confdefs.h
  33703.  
  33704.  
  33705.  
  33706.  
  33707.  
  33708.   :
  33709.  
  33710.  
  33711.  
  33712.  
  33713.  
  33714.  
  33715.  
  33716.  
  33717.  
  33718.   ac_found=0
  33719.   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
  33720. "
  33721. if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
  33722.   ac_have_decl=1
  33723. else
  33724.   ac_have_decl=0
  33725. fi
  33726.  
  33727. cat >>confdefs.h <<_ACEOF
  33728. #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
  33729. _ACEOF
  33730. if test $ac_have_decl = 1; then :
  33731.   ac_found=1
  33732. fi
  33733.  
  33734.   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
  33735. "
  33736. if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
  33737.   ac_have_decl=1
  33738. else
  33739.   ac_have_decl=0
  33740. fi
  33741.  
  33742. cat >>confdefs.h <<_ACEOF
  33743. #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
  33744. _ACEOF
  33745. if test $ac_have_decl = 1; then :
  33746.   ac_found=1
  33747. fi
  33748.  
  33749.   ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
  33750. "
  33751. if test "x$ac_cv_have_decl___argv" = xyes; then :
  33752.   ac_have_decl=1
  33753. else
  33754.   ac_have_decl=0
  33755. fi
  33756.  
  33757. cat >>confdefs.h <<_ACEOF
  33758. #define HAVE_DECL___ARGV $ac_have_decl
  33759. _ACEOF
  33760. if test $ac_have_decl = 1; then :
  33761.   ac_found=1
  33762. fi
  33763.  
  33764.  
  33765.   # Incur the cost of this test only if none of the above worked.
  33766.   if test $ac_found = 0; then
  33767.     # On OpenBSD 5.1, using the global __progname variable appears to be
  33768.     # the only way to implement getprogname.
  33769.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
  33770. $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
  33771. if ${gl_cv_var___progname+:} false; then :
  33772.   $as_echo_n "(cached) " >&6
  33773. else
  33774.  
  33775.         gl_cv_var___progname=
  33776.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33777. /* end confdefs.h.  */
  33778. extern char *__progname;
  33779. int
  33780. main ()
  33781. {
  33782. return *__progname;
  33783.  
  33784.   ;
  33785.   return 0;
  33786. }
  33787. _ACEOF
  33788. if ac_fn_c_try_link "$LINENO"; then :
  33789.   gl_cv_var___progname=yes
  33790.  
  33791. fi
  33792. rm -f core conftest.err conftest.$ac_objext \
  33793.     conftest$ac_exeext conftest.$ac_ext
  33794.  
  33795.  
  33796. fi
  33797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
  33798. $as_echo "$gl_cv_var___progname" >&6; }
  33799.     if test "$gl_cv_var___progname" = yes; then
  33800.  
  33801. $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
  33802.  
  33803.     fi
  33804.   fi
  33805.  
  33806.  
  33807.  
  33808.  
  33809.  
  33810.  
  33811.  
  33812.   :
  33813.  
  33814.  
  33815.  
  33816.  
  33817.  
  33818.  
  33819.  
  33820.  
  33821.  
  33822.  
  33823.  
  33824.  
  33825.  
  33826.  
  33827.   :
  33828.  
  33829.  
  33830.  
  33831.  
  33832.  
  33833.  
  33834.   gl_gettimeofday_timezone=void
  33835.   if test $ac_cv_func_gettimeofday != yes; then
  33836.     HAVE_GETTIMEOFDAY=0
  33837.   else
  33838.  
  33839.  
  33840.  
  33841.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
  33842. $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
  33843. if ${gl_cv_func_gettimeofday_clobber+:} false; then :
  33844.   $as_echo_n "(cached) " >&6
  33845. else
  33846.   if test "$cross_compiling" = yes; then :
  33847.   # When cross-compiling:
  33848.       case "$host_os" in
  33849.                 # Guess all is fine on glibc systems.
  33850.         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
  33851.                 # If we don't know, assume the worst.
  33852.         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
  33853.       esac
  33854.  
  33855. else
  33856.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33857. /* end confdefs.h.  */
  33858. #include <string.h>
  33859.           #include <sys/time.h>
  33860.           #include <time.h>
  33861.           #include <stdlib.h>
  33862.  
  33863. int
  33864. main ()
  33865. {
  33866.  
  33867.           time_t t = 0;
  33868.           struct tm *lt;
  33869.           struct tm saved_lt;
  33870.           struct timeval tv;
  33871.           lt = localtime (&t);
  33872.           saved_lt = *lt;
  33873.           gettimeofday (&tv, NULL);
  33874.           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
  33875.  
  33876.   ;
  33877.   return 0;
  33878. }
  33879. _ACEOF
  33880. if ac_fn_c_try_run "$LINENO"; then :
  33881.   gl_cv_func_gettimeofday_clobber=no
  33882. else
  33883.   gl_cv_func_gettimeofday_clobber=yes
  33884. fi
  33885. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  33886.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  33887. fi
  33888.  
  33889. fi
  33890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
  33891. $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
  33892.  
  33893.  case "$gl_cv_func_gettimeofday_clobber" in
  33894.    *yes)
  33895.      REPLACE_GETTIMEOFDAY=1
  33896.  
  33897.   REPLACE_GMTIME=1
  33898.   REPLACE_LOCALTIME=1
  33899.  
  33900.  
  33901. $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
  33902.  
  33903.      ;;
  33904.  esac
  33905.  
  33906.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
  33907. $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
  33908. if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
  33909.   $as_echo_n "(cached) " >&6
  33910. else
  33911.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33912. /* end confdefs.h.  */
  33913. #include <sys/time.h>
  33914.               struct timeval c;
  33915.               int gettimeofday (struct timeval *restrict, void *restrict);
  33916.  
  33917. int
  33918. main ()
  33919. {
  33920. /* glibc uses struct timezone * rather than the POSIX void *
  33921.                  if _GNU_SOURCE is defined.  However, since the only portable
  33922.                  use of gettimeofday uses NULL as the second parameter, and
  33923.                  since the glibc definition is actually more typesafe, it is
  33924.                  not worth wrapping this to get a compliant signature.  */
  33925.               int (*f) (struct timeval *restrict, void *restrict)
  33926.                 = gettimeofday;
  33927.               int x = f (&c, 0);
  33928.               return !(x | c.tv_sec | c.tv_usec);
  33929.  
  33930.   ;
  33931.   return 0;
  33932. }
  33933. _ACEOF
  33934. if ac_fn_c_try_compile "$LINENO"; then :
  33935.   gl_cv_func_gettimeofday_posix_signature=yes
  33936. else
  33937.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33938. /* end confdefs.h.  */
  33939. #include <sys/time.h>
  33940. int gettimeofday (struct timeval *restrict, struct timezone *restrict);
  33941.  
  33942. int
  33943. main ()
  33944. {
  33945.  
  33946.   ;
  33947.   return 0;
  33948. }
  33949. _ACEOF
  33950. if ac_fn_c_try_compile "$LINENO"; then :
  33951.   gl_cv_func_gettimeofday_posix_signature=almost
  33952. else
  33953.   gl_cv_func_gettimeofday_posix_signature=no
  33954. fi
  33955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33956. fi
  33957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33958. fi
  33959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
  33960. $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
  33961.     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
  33962.       gl_gettimeofday_timezone='struct timezone'
  33963.     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
  33964.       REPLACE_GETTIMEOFDAY=1
  33965.     fi
  33966.         if test $REPLACE_STRUCT_TIMEVAL = 1; then
  33967.       REPLACE_GETTIMEOFDAY=1
  33968.     fi
  33969.  
  33970.   fi
  33971.  
  33972. cat >>confdefs.h <<_ACEOF
  33973. #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
  33974. _ACEOF
  33975.  
  33976.  
  33977.   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
  33978.  
  33979.  
  33980.  
  33981.  
  33982.  
  33983.  
  33984.  
  33985.  
  33986.   ggl_LIBOBJS="$ggl_LIBOBJS gettimeofday.$ac_objext"
  33987.  
  33988.  
  33989.   for ac_header in sys/timeb.h
  33990. do :
  33991.   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
  33992. if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
  33993.   cat >>confdefs.h <<_ACEOF
  33994. #define HAVE_SYS_TIMEB_H 1
  33995. _ACEOF
  33996.  
  33997. fi
  33998.  
  33999. done
  34000.  
  34001.   for ac_func in _ftime
  34002. do :
  34003.   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
  34004. if test "x$ac_cv_func__ftime" = xyes; then :
  34005.   cat >>confdefs.h <<_ACEOF
  34006. #define HAVE__FTIME 1
  34007. _ACEOF
  34008.  
  34009. fi
  34010. done
  34011.  
  34012.  
  34013.   fi
  34014.  
  34015.  
  34016.  
  34017.  
  34018.  
  34019.           GNULIB_GETTIMEOFDAY=1
  34020.  
  34021.  
  34022.  
  34023.  
  34024.  
  34025. $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
  34026.  
  34027.  
  34028.  
  34029.  
  34030.                   HOSTENT_LIB=
  34031.   gl_saved_libs="$LIBS"
  34032.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  34033. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  34034. if ${ac_cv_search_gethostbyname+:} false; then :
  34035.   $as_echo_n "(cached) " >&6
  34036. else
  34037.   ac_func_search_save_LIBS=$LIBS
  34038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34039. /* end confdefs.h.  */
  34040.  
  34041. /* Override any GCC internal prototype to avoid an error.
  34042.    Use char because int might match the return type of a GCC
  34043.    builtin and then its argument prototype would still apply.  */
  34044. #ifdef __cplusplus
  34045. extern "C"
  34046. #endif
  34047. char gethostbyname ();
  34048. int
  34049. main ()
  34050. {
  34051. return gethostbyname ();
  34052.   ;
  34053.   return 0;
  34054. }
  34055. _ACEOF
  34056. for ac_lib in '' nsl network net; do
  34057.   if test -z "$ac_lib"; then
  34058.     ac_res="none required"
  34059.   else
  34060.     ac_res=-l$ac_lib
  34061.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  34062.   fi
  34063.   if ac_fn_c_try_link "$LINENO"; then :
  34064.   ac_cv_search_gethostbyname=$ac_res
  34065. fi
  34066. rm -f core conftest.err conftest.$ac_objext \
  34067.     conftest$ac_exeext
  34068.   if ${ac_cv_search_gethostbyname+:} false; then :
  34069.   break
  34070. fi
  34071. done
  34072. if ${ac_cv_search_gethostbyname+:} false; then :
  34073.  
  34074. else
  34075.   ac_cv_search_gethostbyname=no
  34076. fi
  34077. rm conftest.$ac_ext
  34078. LIBS=$ac_func_search_save_LIBS
  34079. fi
  34080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  34081. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  34082. ac_res=$ac_cv_search_gethostbyname
  34083. if test "$ac_res" != no; then :
  34084.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  34085.   if test "$ac_cv_search_gethostbyname" != "none required"; then
  34086.        HOSTENT_LIB="$ac_cv_search_gethostbyname"
  34087.      fi
  34088. fi
  34089.  
  34090.   LIBS="$gl_saved_libs"
  34091.   if test -z "$HOSTENT_LIB"; then
  34092.     for ac_func in gethostbyname
  34093. do :
  34094.   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  34095. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  34096.   cat >>confdefs.h <<_ACEOF
  34097. #define HAVE_GETHOSTBYNAME 1
  34098. _ACEOF
  34099.  
  34100. else
  34101.  
  34102.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
  34103. $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
  34104. if ${gl_cv_w32_gethostbyname+:} false; then :
  34105.   $as_echo_n "(cached) " >&6
  34106. else
  34107.   gl_cv_w32_gethostbyname=no
  34108.          gl_save_LIBS="$LIBS"
  34109.          LIBS="$LIBS -lws2_32"
  34110.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34111. /* end confdefs.h.  */
  34112.  
  34113. #ifdef HAVE_WINSOCK2_H
  34114. #include <winsock2.h>
  34115. #endif
  34116. #include <stddef.h>
  34117.  
  34118. int
  34119. main ()
  34120. {
  34121. gethostbyname(NULL);
  34122.   ;
  34123.   return 0;
  34124. }
  34125. _ACEOF
  34126. if ac_fn_c_try_link "$LINENO"; then :
  34127.   gl_cv_w32_gethostbyname=yes
  34128. fi
  34129. rm -f core conftest.err conftest.$ac_objext \
  34130.     conftest$ac_exeext conftest.$ac_ext
  34131.          LIBS="$gl_save_LIBS"
  34132.  
  34133. fi
  34134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
  34135. $as_echo "$gl_cv_w32_gethostbyname" >&6; }
  34136.       if test "$gl_cv_w32_gethostbyname" = "yes"; then
  34137.         HOSTENT_LIB="-lws2_32"
  34138.       fi
  34139.  
  34140. fi
  34141. done
  34142.  
  34143.   fi
  34144.  
  34145.  
  34146.  
  34147.  
  34148.  
  34149.  
  34150.  
  34151.  
  34152.  
  34153.               HAVE_INET_NTOP=1
  34154.   INET_NTOP_LIB=
  34155.  
  34156.  
  34157.  
  34158.  
  34159.   :
  34160.  
  34161.  
  34162.  
  34163.  
  34164.  
  34165.   if test $ac_cv_header_sys_socket_h != yes; then
  34166.                     for ac_header in winsock2.h
  34167. do :
  34168.   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  34169. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  34170.   cat >>confdefs.h <<_ACEOF
  34171. #define HAVE_WINSOCK2_H 1
  34172. _ACEOF
  34173.  
  34174. fi
  34175.  
  34176. done
  34177.  
  34178.   fi
  34179.   if test "$ac_cv_header_winsock2_h" = yes; then
  34180.     HAVE_WINSOCK2_H=1
  34181.     UNISTD_H_HAVE_WINSOCK2_H=1
  34182.     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  34183.   else
  34184.     HAVE_WINSOCK2_H=0
  34185.   fi
  34186.  
  34187.  
  34188.   if test $HAVE_WINSOCK2_H = 1; then
  34189.     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
  34190. "
  34191. if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
  34192.   ac_have_decl=1
  34193. else
  34194.   ac_have_decl=0
  34195. fi
  34196.  
  34197. cat >>confdefs.h <<_ACEOF
  34198. #define HAVE_DECL_INET_NTOP $ac_have_decl
  34199. _ACEOF
  34200.  
  34201.     if test $ac_cv_have_decl_inet_ntop = yes; then
  34202.                   REPLACE_INET_NTOP=1
  34203.       INET_NTOP_LIB="-lws2_32"
  34204.     else
  34205.       HAVE_DECL_INET_NTOP=0
  34206.       HAVE_INET_NTOP=0
  34207.     fi
  34208.   else
  34209.     gl_save_LIBS=$LIBS
  34210.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
  34211. $as_echo_n "checking for library containing inet_ntop... " >&6; }
  34212. if ${ac_cv_search_inet_ntop+:} false; then :
  34213.   $as_echo_n "(cached) " >&6
  34214. else
  34215.   ac_func_search_save_LIBS=$LIBS
  34216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34217. /* end confdefs.h.  */
  34218.  
  34219. /* Override any GCC internal prototype to avoid an error.
  34220.    Use char because int might match the return type of a GCC
  34221.    builtin and then its argument prototype would still apply.  */
  34222. #ifdef __cplusplus
  34223. extern "C"
  34224. #endif
  34225. char inet_ntop ();
  34226. int
  34227. main ()
  34228. {
  34229. return inet_ntop ();
  34230.   ;
  34231.   return 0;
  34232. }
  34233. _ACEOF
  34234. for ac_lib in '' nsl resolv; do
  34235.   if test -z "$ac_lib"; then
  34236.     ac_res="none required"
  34237.   else
  34238.     ac_res=-l$ac_lib
  34239.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  34240.   fi
  34241.   if ac_fn_c_try_link "$LINENO"; then :
  34242.   ac_cv_search_inet_ntop=$ac_res
  34243. fi
  34244. rm -f core conftest.err conftest.$ac_objext \
  34245.     conftest$ac_exeext
  34246.   if ${ac_cv_search_inet_ntop+:} false; then :
  34247.   break
  34248. fi
  34249. done
  34250. if ${ac_cv_search_inet_ntop+:} false; then :
  34251.  
  34252. else
  34253.   ac_cv_search_inet_ntop=no
  34254. fi
  34255. rm conftest.$ac_ext
  34256. LIBS=$ac_func_search_save_LIBS
  34257. fi
  34258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
  34259. $as_echo "$ac_cv_search_inet_ntop" >&6; }
  34260. ac_res=$ac_cv_search_inet_ntop
  34261. if test "$ac_res" != no; then :
  34262.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  34263.  
  34264. else
  34265.   for ac_func in inet_ntop
  34266. do :
  34267.   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  34268. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  34269.   cat >>confdefs.h <<_ACEOF
  34270. #define HAVE_INET_NTOP 1
  34271. _ACEOF
  34272.  
  34273. fi
  34274. done
  34275.  
  34276.        if test $ac_cv_func_inet_ntop = no; then
  34277.          HAVE_INET_NTOP=0
  34278.        fi
  34279.  
  34280. fi
  34281.  
  34282.     LIBS=$gl_save_LIBS
  34283.  
  34284.     if test "$ac_cv_search_inet_ntop" != "no" \
  34285.        && test "$ac_cv_search_inet_ntop" != "none required"; then
  34286.       INET_NTOP_LIB="$ac_cv_search_inet_ntop"
  34287.     fi
  34288.  
  34289.  
  34290.   :
  34291.  
  34292.  
  34293.  
  34294.  
  34295.  
  34296.     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
  34297.        #if HAVE_NETDB_H
  34298.        # include <netdb.h>
  34299.        #endif
  34300.  
  34301. "
  34302. if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
  34303.   ac_have_decl=1
  34304. else
  34305.   ac_have_decl=0
  34306. fi
  34307.  
  34308. cat >>confdefs.h <<_ACEOF
  34309. #define HAVE_DECL_INET_NTOP $ac_have_decl
  34310. _ACEOF
  34311.  
  34312.     if test $ac_cv_have_decl_inet_ntop = no; then
  34313.       HAVE_DECL_INET_NTOP=0
  34314.     fi
  34315.   fi
  34316.  
  34317.  
  34318.   if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
  34319.  
  34320.  
  34321.  
  34322.  
  34323.  
  34324.  
  34325.  
  34326.  
  34327.   ggl_LIBOBJS="$ggl_LIBOBJS inet_ntop.$ac_objext"
  34328.  
  34329.  
  34330.  
  34331.  
  34332.   fi
  34333.  
  34334.  
  34335.  
  34336.  
  34337.  
  34338.           GNULIB_INET_NTOP=1
  34339.  
  34340.  
  34341.  
  34342.  
  34343.  
  34344.  
  34345.  
  34346.  
  34347.  
  34348.  
  34349.  
  34350.               HAVE_INET_PTON=1
  34351.   INET_PTON_LIB=
  34352.  
  34353.  
  34354.  
  34355.  
  34356.   :
  34357.  
  34358.  
  34359.  
  34360.  
  34361.  
  34362.   if test $ac_cv_header_sys_socket_h != yes; then
  34363.                     for ac_header in winsock2.h
  34364. do :
  34365.   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  34366. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  34367.   cat >>confdefs.h <<_ACEOF
  34368. #define HAVE_WINSOCK2_H 1
  34369. _ACEOF
  34370.  
  34371. fi
  34372.  
  34373. done
  34374.  
  34375.   fi
  34376.   if test "$ac_cv_header_winsock2_h" = yes; then
  34377.     HAVE_WINSOCK2_H=1
  34378.     UNISTD_H_HAVE_WINSOCK2_H=1
  34379.     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  34380.   else
  34381.     HAVE_WINSOCK2_H=0
  34382.   fi
  34383.  
  34384.  
  34385.   if test $HAVE_WINSOCK2_H = 1; then
  34386.     ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
  34387. "
  34388. if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
  34389.   ac_have_decl=1
  34390. else
  34391.   ac_have_decl=0
  34392. fi
  34393.  
  34394. cat >>confdefs.h <<_ACEOF
  34395. #define HAVE_DECL_INET_PTON $ac_have_decl
  34396. _ACEOF
  34397.  
  34398.     if test $ac_cv_have_decl_inet_pton = yes; then
  34399.                   REPLACE_INET_PTON=1
  34400.       INET_PTON_LIB="-lws2_32"
  34401.     else
  34402.       HAVE_DECL_INET_PTON=0
  34403.       HAVE_INET_PTON=0
  34404.     fi
  34405.   else
  34406.     gl_save_LIBS=$LIBS
  34407.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
  34408. $as_echo_n "checking for library containing inet_pton... " >&6; }
  34409. if ${ac_cv_search_inet_pton+:} false; then :
  34410.   $as_echo_n "(cached) " >&6
  34411. else
  34412.   ac_func_search_save_LIBS=$LIBS
  34413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34414. /* end confdefs.h.  */
  34415.  
  34416. /* Override any GCC internal prototype to avoid an error.
  34417.    Use char because int might match the return type of a GCC
  34418.    builtin and then its argument prototype would still apply.  */
  34419. #ifdef __cplusplus
  34420. extern "C"
  34421. #endif
  34422. char inet_pton ();
  34423. int
  34424. main ()
  34425. {
  34426. return inet_pton ();
  34427.   ;
  34428.   return 0;
  34429. }
  34430. _ACEOF
  34431. for ac_lib in '' nsl resolv; do
  34432.   if test -z "$ac_lib"; then
  34433.     ac_res="none required"
  34434.   else
  34435.     ac_res=-l$ac_lib
  34436.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  34437.   fi
  34438.   if ac_fn_c_try_link "$LINENO"; then :
  34439.   ac_cv_search_inet_pton=$ac_res
  34440. fi
  34441. rm -f core conftest.err conftest.$ac_objext \
  34442.     conftest$ac_exeext
  34443.   if ${ac_cv_search_inet_pton+:} false; then :
  34444.   break
  34445. fi
  34446. done
  34447. if ${ac_cv_search_inet_pton+:} false; then :
  34448.  
  34449. else
  34450.   ac_cv_search_inet_pton=no
  34451. fi
  34452. rm conftest.$ac_ext
  34453. LIBS=$ac_func_search_save_LIBS
  34454. fi
  34455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
  34456. $as_echo "$ac_cv_search_inet_pton" >&6; }
  34457. ac_res=$ac_cv_search_inet_pton
  34458. if test "$ac_res" != no; then :
  34459.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  34460.  
  34461. else
  34462.   for ac_func in inet_pton
  34463. do :
  34464.   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  34465. if test "x$ac_cv_func_inet_pton" = xyes; then :
  34466.   cat >>confdefs.h <<_ACEOF
  34467. #define HAVE_INET_PTON 1
  34468. _ACEOF
  34469.  
  34470. fi
  34471. done
  34472.  
  34473.        if test $ac_cv_func_inet_pton = no; then
  34474.          HAVE_INET_PTON=0
  34475.        fi
  34476.  
  34477. fi
  34478.  
  34479.     LIBS=$gl_save_LIBS
  34480.  
  34481.     if test "$ac_cv_search_inet_pton" != "no" \
  34482.        && test "$ac_cv_search_inet_pton" != "none required"; then
  34483.       INET_PTON_LIB="$ac_cv_search_inet_pton"
  34484.     fi
  34485.  
  34486.  
  34487.   :
  34488.  
  34489.  
  34490.  
  34491.  
  34492.  
  34493.     ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
  34494.        #if HAVE_NETDB_H
  34495.        # include <netdb.h>
  34496.        #endif
  34497.  
  34498. "
  34499. if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
  34500.   ac_have_decl=1
  34501. else
  34502.   ac_have_decl=0
  34503. fi
  34504.  
  34505. cat >>confdefs.h <<_ACEOF
  34506. #define HAVE_DECL_INET_PTON $ac_have_decl
  34507. _ACEOF
  34508.  
  34509.     if test $ac_cv_have_decl_inet_pton = no; then
  34510.       HAVE_DECL_INET_PTON=0
  34511.     fi
  34512.   fi
  34513.  
  34514.  
  34515.   if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
  34516.  
  34517.  
  34518.  
  34519.  
  34520.  
  34521.  
  34522.  
  34523.  
  34524.   ggl_LIBOBJS="$ggl_LIBOBJS inet_pton.$ac_objext"
  34525.  
  34526.  
  34527.  
  34528.  
  34529.   fi
  34530.  
  34531.  
  34532.  
  34533.  
  34534.  
  34535.           GNULIB_INET_PTON=1
  34536.  
  34537.  
  34538.  
  34539.  
  34540.  
  34541.  
  34542.  
  34543.   if test "$ac_cv_header_winsock2_h" = yes; then
  34544.  
  34545.  
  34546.  
  34547.  
  34548.  
  34549.  
  34550.  
  34551.  
  34552.   ggl_LIBOBJS="$ggl_LIBOBJS listen.$ac_objext"
  34553.  
  34554.   fi
  34555.  
  34556.  
  34557.  
  34558.  
  34559.  
  34560.           GNULIB_LISTEN=1
  34561.  
  34562.  
  34563.  
  34564.  
  34565.  
  34566. $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
  34567.  
  34568.  
  34569.  
  34570.  
  34571.  
  34572.  
  34573.  
  34574.  
  34575.  
  34576.   :
  34577.  
  34578.  
  34579.  
  34580.  
  34581.  
  34582.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
  34583. $as_echo_n "checking whether lseek detects pipes... " >&6; }
  34584. if ${gl_cv_func_lseek_pipe+:} false; then :
  34585.   $as_echo_n "(cached) " >&6
  34586. else
  34587.   case "$host_os" in
  34588.        mingw*)
  34589.                                                                gl_cv_func_lseek_pipe=no
  34590.          ;;
  34591.        *)
  34592.          if test $cross_compiling = no; then
  34593.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34594. /* end confdefs.h.  */
  34595.  
  34596. #include <sys/types.h> /* for off_t */
  34597. #include <stdio.h> /* for SEEK_CUR */
  34598. #if HAVE_UNISTD_H
  34599. # include <unistd.h>
  34600. #else /* on Windows with MSVC */
  34601. # include <io.h>
  34602. #endif
  34603.  
  34604. int
  34605. main ()
  34606. {
  34607.  
  34608.   /* Exit with success only if stdin is seekable.  */
  34609.   return lseek (0, (off_t)0, SEEK_CUR) < 0;
  34610.  
  34611.   ;
  34612.   return 0;
  34613. }
  34614. _ACEOF
  34615. if ac_fn_c_try_link "$LINENO"; then :
  34616.   if test -s conftest$ac_exeext \
  34617.                  && ./conftest$ac_exeext < conftest.$ac_ext \
  34618.                  && test 1 = "`echo hi \
  34619.                   | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
  34620.                 gl_cv_func_lseek_pipe=yes
  34621.               else
  34622.                 gl_cv_func_lseek_pipe=no
  34623.               fi
  34624.  
  34625. else
  34626.   gl_cv_func_lseek_pipe=no
  34627. fi
  34628. rm -f core conftest.err conftest.$ac_objext \
  34629.     conftest$ac_exeext conftest.$ac_ext
  34630.          else
  34631.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34632. /* end confdefs.h.  */
  34633.  
  34634. #if defined __BEOS__
  34635. /* BeOS mistakenly return 0 when trying to seek on pipes.  */
  34636.   Choke me.
  34637. #endif
  34638. _ACEOF
  34639. if ac_fn_c_try_compile "$LINENO"; then :
  34640.   gl_cv_func_lseek_pipe=yes
  34641. else
  34642.   gl_cv_func_lseek_pipe=no
  34643. fi
  34644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34645.          fi
  34646.          ;;
  34647.      esac
  34648.  
  34649. fi
  34650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
  34651. $as_echo "$gl_cv_func_lseek_pipe" >&6; }
  34652.   if test $gl_cv_func_lseek_pipe = no; then
  34653.     REPLACE_LSEEK=1
  34654.  
  34655. $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
  34656.  
  34657.   fi
  34658.  
  34659.  
  34660.   if test $WINDOWS_64_BIT_OFF_T = 1; then
  34661.     REPLACE_LSEEK=1
  34662.   fi
  34663.  
  34664.   if test $REPLACE_LSEEK = 1; then
  34665.  
  34666.  
  34667.  
  34668.  
  34669.  
  34670.  
  34671.  
  34672.  
  34673.   ggl_LIBOBJS="$ggl_LIBOBJS lseek.$ac_objext"
  34674.  
  34675.   fi
  34676.  
  34677.  
  34678.  
  34679.  
  34680.  
  34681.           GNULIB_LSEEK=1
  34682.  
  34683.  
  34684.  
  34685.  
  34686.  
  34687. $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
  34688.  
  34689.  
  34690.  
  34691.  
  34692.  
  34693.  
  34694.   if test $gl_cv_func_malloc_posix = yes; then
  34695.  
  34696. $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
  34697.  
  34698.   else
  34699.     REPLACE_MALLOC=1
  34700.   fi
  34701.  
  34702.   if test $REPLACE_MALLOC = 1; then
  34703.  
  34704.  
  34705.  
  34706.  
  34707.  
  34708.  
  34709.  
  34710.  
  34711.   ggl_LIBOBJS="$ggl_LIBOBJS malloc.$ac_objext"
  34712.  
  34713.   fi
  34714.  
  34715.  
  34716.  
  34717.  
  34718.  
  34719.           GNULIB_MALLOC_POSIX=1
  34720.  
  34721.  
  34722.  
  34723.  
  34724.  
  34725. $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
  34726.  
  34727.  
  34728.  
  34729.  
  34730.  
  34731.  
  34732.  
  34733.  
  34734.   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  34735.  
  34736.  
  34737.  
  34738.  
  34739.  
  34740.  
  34741.  
  34742.  
  34743.   ggl_LIBOBJS="$ggl_LIBOBJS memchr.$ac_objext"
  34744.  
  34745.  
  34746.   for ac_header in bp-sym.h
  34747. do :
  34748.   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
  34749. if test "x$ac_cv_header_bp_sym_h" = xyes; then :
  34750.   cat >>confdefs.h <<_ACEOF
  34751. #define HAVE_BP_SYM_H 1
  34752. _ACEOF
  34753.  
  34754. fi
  34755.  
  34756. done
  34757.  
  34758.  
  34759.   fi
  34760.  
  34761.  
  34762.  
  34763.  
  34764.  
  34765.           GNULIB_MEMCHR=1
  34766.  
  34767.  
  34768.  
  34769.  
  34770.  
  34771. $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
  34772.  
  34773.  
  34774.  
  34775.  
  34776.  
  34777.  
  34778.  
  34779.  
  34780.  
  34781.  
  34782.  
  34783.   :
  34784.  
  34785.  
  34786.  
  34787.  
  34788.  
  34789.  
  34790.   :
  34791.  
  34792.  
  34793.  
  34794.  
  34795.  
  34796.  
  34797.   :
  34798.  
  34799.  
  34800.  
  34801.  
  34802.  
  34803.  
  34804.   if test $APPLE_UNIVERSAL_BUILD = 1; then
  34805.     # A universal build on Apple Mac OS X platforms.
  34806.     # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
  34807.     # But we need a configuration result that is valid in both modes.
  34808.     gl_cv_func_working_mktime=no
  34809.   fi
  34810.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  34811. $as_echo_n "checking for working mktime... " >&6; }
  34812. if ${gl_cv_func_working_mktime+:} false; then :
  34813.   $as_echo_n "(cached) " >&6
  34814. else
  34815.   if test "$cross_compiling" = yes; then :
  34816.   gl_cv_func_working_mktime=no
  34817. else
  34818.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34819. /* end confdefs.h.  */
  34820. /* Test program from Paul Eggert and Tony Leneis.  */
  34821. #include <limits.h>
  34822. #include <stdlib.h>
  34823. #include <time.h>
  34824.  
  34825. #ifdef HAVE_UNISTD_H
  34826. # include <unistd.h>
  34827. #endif
  34828.  
  34829. #if HAVE_DECL_ALARM
  34830. # include <signal.h>
  34831. #endif
  34832.  
  34833. /* Work around redefinition to rpl_putenv by other config tests.  */
  34834. #undef putenv
  34835.  
  34836. static time_t time_t_max;
  34837. static time_t time_t_min;
  34838.  
  34839. /* Values we'll use to set the TZ environment variable.  */
  34840. static char *tz_strings[] = {
  34841.  (char *) 0, "TZ=GMT0", "TZ=JST-9",
  34842.  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  34843. };
  34844. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  34845.  
  34846. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  34847.   Based on a problem report from Andreas Jaeger.  */
  34848. static int
  34849. spring_forward_gap ()
  34850. {
  34851.  /* glibc (up to about 1998-10-07) failed this test. */
  34852.  struct tm tm;
  34853.  
  34854.  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  34855.     instead of "TZ=America/Vancouver" in order to detect the bug even
  34856.     on systems that don't support the Olson extension, or don't have the
  34857.     full zoneinfo tables installed.  */
  34858.  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  34859.  
  34860.  tm.tm_year = 98;
  34861.  tm.tm_mon = 3;
  34862.  tm.tm_mday = 5;
  34863.  tm.tm_hour = 2;
  34864.  tm.tm_min = 0;
  34865.  tm.tm_sec = 0;
  34866.  tm.tm_isdst = -1;
  34867.  return mktime (&tm) != (time_t) -1;
  34868. }
  34869.  
  34870. static int
  34871. mktime_test1 (time_t now)
  34872. {
  34873.  struct tm *lt;
  34874.  return ! (lt = localtime (&now)) || mktime (lt) == now;
  34875. }
  34876.  
  34877. static int
  34878. mktime_test (time_t now)
  34879. {
  34880.  return (mktime_test1 (now)
  34881.          && mktime_test1 ((time_t) (time_t_max - now))
  34882.          && mktime_test1 ((time_t) (time_t_min + now)));
  34883. }
  34884.  
  34885. static int
  34886. irix_6_4_bug ()
  34887. {
  34888.  /* Based on code from Ariel Faigon.  */
  34889.  struct tm tm;
  34890.  tm.tm_year = 96;
  34891.  tm.tm_mon = 3;
  34892.  tm.tm_mday = 0;
  34893.  tm.tm_hour = 0;
  34894.  tm.tm_min = 0;
  34895.  tm.tm_sec = 0;
  34896.  tm.tm_isdst = -1;
  34897.  mktime (&tm);
  34898.  return tm.tm_mon == 2 && tm.tm_mday == 31;
  34899. }
  34900.  
  34901. static int
  34902. bigtime_test (int j)
  34903. {
  34904.  struct tm tm;
  34905.  time_t now;
  34906.  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  34907.  now = mktime (&tm);
  34908.  if (now != (time_t) -1)
  34909.    {
  34910.      struct tm *lt = localtime (&now);
  34911.      if (! (lt
  34912.             && lt->tm_year == tm.tm_year
  34913.             && lt->tm_mon == tm.tm_mon
  34914.             && lt->tm_mday == tm.tm_mday
  34915.             && lt->tm_hour == tm.tm_hour
  34916.             && lt->tm_min == tm.tm_min
  34917.             && lt->tm_sec == tm.tm_sec
  34918.             && lt->tm_yday == tm.tm_yday
  34919.             && lt->tm_wday == tm.tm_wday
  34920.             && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  34921.                  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  34922.        return 0;
  34923.    }
  34924.  return 1;
  34925. }
  34926.  
  34927. static int
  34928. year_2050_test ()
  34929. {
  34930.  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  34931.     ignoring leap seconds.  */
  34932.  unsigned long int answer = 2527315200UL;
  34933.  
  34934.  struct tm tm;
  34935.  time_t t;
  34936.  tm.tm_year = 2050 - 1900;
  34937.  tm.tm_mon = 2 - 1;
  34938.  tm.tm_mday = 1;
  34939.  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  34940.  tm.tm_isdst = -1;
  34941.  
  34942.  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  34943.     instead of "TZ=America/Vancouver" in order to detect the bug even
  34944.     on systems that don't support the Olson extension, or don't have the
  34945.     full zoneinfo tables installed.  */
  34946.  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  34947.  
  34948.  t = mktime (&tm);
  34949.  
  34950.  /* Check that the result is either a failure, or close enough
  34951.     to the correct answer that we can assume the discrepancy is
  34952.     due to leap seconds.  */
  34953.  return (t == (time_t) -1
  34954.          || (0 < t && answer - 120 <= t && t <= answer + 120));
  34955. }
  34956.  
  34957. int
  34958. main ()
  34959. {
  34960.  int result = 0;
  34961.  time_t t, delta;
  34962.  int i, j;
  34963.  int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
  34964.  
  34965. #if HAVE_DECL_ALARM
  34966.  /* This test makes some buggy mktime implementations loop.
  34967.     Give up after 60 seconds; a mktime slower than that
  34968.     isn't worth using anyway.  */
  34969.   signal (SIGALRM, SIG_DFL);
  34970.   alarm (60);
  34971. #endif
  34972.  
  34973.   time_t_max = (! TIME_T_IS_SIGNED
  34974.                 ? (time_t) -1
  34975.                 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
  34976.                    * 2 + 1));
  34977.   time_t_min = (! TIME_T_IS_SIGNED
  34978.                 ? (time_t) 0
  34979.                 : time_t_signed_magnitude
  34980.                 ? ~ (time_t) 0
  34981.                 : ~ time_t_max);
  34982.  
  34983.   delta = time_t_max / 997; /* a suitable prime number */
  34984.   for (i = 0; i < N_STRINGS; i++)
  34985.     {
  34986.       if (tz_strings[i])
  34987.         putenv (tz_strings[i]);
  34988.  
  34989.       for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
  34990.         if (! mktime_test (t))
  34991.           result |= 1;
  34992.       if ((result & 2) == 0
  34993.           && ! (mktime_test ((time_t) 1)
  34994.                 && mktime_test ((time_t) (60 * 60))
  34995.                 && mktime_test ((time_t) (60 * 60 * 24))))
  34996.         result |= 2;
  34997.  
  34998.       for (j = 1; (result & 4) == 0; j <<= 1)
  34999.         {
  35000.           if (! bigtime_test (j))
  35001.             result |= 4;
  35002.           if (INT_MAX / 2 < j)
  35003.             break;
  35004.         }
  35005.       if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
  35006.         result |= 8;
  35007.     }
  35008.   if (! irix_6_4_bug ())
  35009.     result |= 16;
  35010.   if (! spring_forward_gap ())
  35011.     result |= 32;
  35012.   if (! year_2050_test ())
  35013.     result |= 64;
  35014.   return result;
  35015. }
  35016. _ACEOF
  35017. if ac_fn_c_try_run "$LINENO"; then :
  35018.   gl_cv_func_working_mktime=yes
  35019. else
  35020.   gl_cv_func_working_mktime=no
  35021. fi
  35022. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35023.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  35024. fi
  35025.  
  35026.  
  35027. fi
  35028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
  35029. $as_echo "$gl_cv_func_working_mktime" >&6; }
  35030.  
  35031.   if test $gl_cv_func_working_mktime = no; then
  35032.     REPLACE_MKTIME=1
  35033.   else
  35034.     REPLACE_MKTIME=0
  35035.   fi
  35036.  
  35037.   if test $REPLACE_MKTIME = 1; then
  35038.  
  35039.  
  35040.  
  35041.  
  35042.  
  35043.  
  35044.  
  35045.  
  35046.   ggl_LIBOBJS="$ggl_LIBOBJS mktime.$ac_objext"
  35047.  
  35048.     :
  35049.   fi
  35050.  
  35051.  
  35052.  
  35053.  
  35054.  
  35055.           GNULIB_MKTIME=1
  35056.  
  35057.  
  35058.  
  35059.  
  35060.  
  35061. $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
  35062.  
  35063.  
  35064.  
  35065.  
  35066.  
  35067.   if test $REPLACE_MKTIME = 0; then
  35068.         ac_fn_c_check_func "$LINENO" "__mktime_internal" "ac_cv_func___mktime_internal"
  35069. if test "x$ac_cv_func___mktime_internal" = xyes; then :
  35070.  
  35071. $as_echo "#define mktime_internal __mktime_internal" >>confdefs.h
  35072.  
  35073.  
  35074. else
  35075.                 REPLACE_MKTIME=1
  35076.  
  35077. fi
  35078.  
  35079.   fi
  35080.  
  35081.   if test $REPLACE_MKTIME = 1; then
  35082.  
  35083.  
  35084.  
  35085.  
  35086.  
  35087.  
  35088.  
  35089.  
  35090.   ggl_LIBOBJS="$ggl_LIBOBJS mktime.$ac_objext"
  35091.  
  35092.     :
  35093.   fi
  35094.  
  35095.   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  35096.  
  35097.  
  35098.  
  35099.  
  35100.  
  35101.  
  35102.  
  35103.  
  35104.   ggl_LIBOBJS="$ggl_LIBOBJS msvc-inval.$ac_objext"
  35105.  
  35106.   fi
  35107.  
  35108.   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  35109.  
  35110.  
  35111.  
  35112.  
  35113.  
  35114.  
  35115.  
  35116.  
  35117.   ggl_LIBOBJS="$ggl_LIBOBJS msvc-nothrow.$ac_objext"
  35118.  
  35119.   fi
  35120.  
  35121.  
  35122.  
  35123.  
  35124.  
  35125.  
  35126.  
  35127.  
  35128.  
  35129.   :
  35130.  
  35131.  
  35132.  
  35133.  
  35134.  
  35135.  
  35136.  
  35137.  
  35138.      if test $gl_cv_have_include_next = yes; then
  35139.        gl_cv_next_netdb_h='<'netdb.h'>'
  35140.      else
  35141.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
  35142. $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
  35143. if ${gl_cv_next_netdb_h+:} false; then :
  35144.   $as_echo_n "(cached) " >&6
  35145. else
  35146.  
  35147.              if test $ac_cv_header_netdb_h = yes; then
  35148.  
  35149.  
  35150.  
  35151.  
  35152.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35153. /* end confdefs.h.  */
  35154. #include <netdb.h>
  35155. _ACEOF
  35156.                 case "$host_os" in
  35157.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  35158.     *)    gl_absname_cpp="$ac_cpp" ;;
  35159.   esac
  35160.  
  35161.   case "$host_os" in
  35162.     mingw*)
  35163.                                           gl_dirsep_regex='[/\\]'
  35164.       ;;
  35165.     *)
  35166.       gl_dirsep_regex='\/'
  35167.       ;;
  35168.   esac
  35169.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  35170.   gl_header_literal_regex=`echo 'netdb.h' \
  35171.                            | sed -e "$gl_make_literal_regex_sed"`
  35172.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  35173.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  35174.      s|^/[^/]|//&|
  35175.      p
  35176.      q
  35177.    }'
  35178.  
  35179.         gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  35180.   sed -n "$gl_absolute_header_sed"`
  35181.  
  35182.            gl_header=$gl_cv_absolute_netdb_h
  35183.            gl_cv_next_netdb_h='"'$gl_header'"'
  35184.           else
  35185.                gl_cv_next_netdb_h='<'netdb.h'>'
  35186.              fi
  35187.  
  35188.  
  35189. fi
  35190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
  35191. $as_echo "$gl_cv_next_netdb_h" >&6; }
  35192.      fi
  35193.      NEXT_NETDB_H=$gl_cv_next_netdb_h
  35194.  
  35195.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  35196.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  35197.        gl_next_as_first_directive='<'netdb.h'>'
  35198.      else
  35199.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  35200.        gl_next_as_first_directive=$gl_cv_next_netdb_h
  35201.      fi
  35202.      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
  35203.  
  35204.  
  35205.  
  35206.  
  35207.   if test $ac_cv_header_netdb_h = yes; then
  35208.     HAVE_NETDB_H=1
  35209.   else
  35210.     HAVE_NETDB_H=0
  35211.   fi
  35212.  
  35213.  
  35214.  
  35215.     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
  35216.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  35217.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  35218. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  35219. if eval \${$as_gl_Symbol+:} false; then :
  35220.   $as_echo_n "(cached) " >&6
  35221. else
  35222.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35223. /* end confdefs.h.  */
  35224. #include <netdb.h>
  35225. int
  35226. main ()
  35227. {
  35228. #undef $gl_func
  35229.   (void) $gl_func;
  35230.   ;
  35231.   return 0;
  35232. }
  35233. _ACEOF
  35234. if ac_fn_c_try_compile "$LINENO"; then :
  35235.   eval "$as_gl_Symbol=yes"
  35236. else
  35237.   eval "$as_gl_Symbol=no"
  35238. fi
  35239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35240. fi
  35241. eval ac_res=\$$as_gl_Symbol
  35242.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  35243. $as_echo "$ac_res" >&6; }
  35244.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  35245.   cat >>confdefs.h <<_ACEOF
  35246. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  35247. _ACEOF
  35248.  
  35249.                      eval ac_cv_have_decl_$gl_func=yes
  35250. fi
  35251.       done
  35252.  
  35253.  
  35254.  
  35255.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
  35256. $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
  35257. if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
  35258.   $as_echo_n "(cached) " >&6
  35259. else
  35260.  
  35261.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35262. /* end confdefs.h.  */
  35263. #include <netinet/in.h>
  35264. int
  35265. main ()
  35266. {
  35267.  
  35268.   ;
  35269.   return 0;
  35270. }
  35271. _ACEOF
  35272. if ac_fn_c_try_compile "$LINENO"; then :
  35273.   gl_cv_header_netinet_in_h_selfcontained=yes
  35274. else
  35275.   gl_cv_header_netinet_in_h_selfcontained=no
  35276. fi
  35277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35278.  
  35279. fi
  35280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
  35281. $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
  35282.   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
  35283.     NETINET_IN_H=''
  35284.   else
  35285.     NETINET_IN_H='netinet/in.h'
  35286.     for ac_header in netinet/in.h
  35287. do :
  35288.   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  35289. if test "x$ac_cv_header_netinet_in_h" = xyes; then :
  35290.   cat >>confdefs.h <<_ACEOF
  35291. #define HAVE_NETINET_IN_H 1
  35292. _ACEOF
  35293.  
  35294. fi
  35295.  
  35296. done
  35297.  
  35298.  
  35299.  
  35300.  
  35301.  
  35302.  
  35303.  
  35304.   :
  35305.  
  35306.  
  35307.  
  35308.  
  35309.  
  35310.  
  35311.  
  35312.  
  35313.      if test $gl_cv_have_include_next = yes; then
  35314.        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
  35315.      else
  35316.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
  35317. $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
  35318. if ${gl_cv_next_netinet_in_h+:} false; then :
  35319.   $as_echo_n "(cached) " >&6
  35320. else
  35321.  
  35322.              if test $ac_cv_header_netinet_in_h = yes; then
  35323.  
  35324.  
  35325.  
  35326.  
  35327.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35328. /* end confdefs.h.  */
  35329. #include <netinet/in.h>
  35330. _ACEOF
  35331.                 case "$host_os" in
  35332.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  35333.     *)    gl_absname_cpp="$ac_cpp" ;;
  35334.   esac
  35335.  
  35336.   case "$host_os" in
  35337.     mingw*)
  35338.                                           gl_dirsep_regex='[/\\]'
  35339.       ;;
  35340.     *)
  35341.       gl_dirsep_regex='\/'
  35342.       ;;
  35343.   esac
  35344.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  35345.   gl_header_literal_regex=`echo 'netinet/in.h' \
  35346.                            | sed -e "$gl_make_literal_regex_sed"`
  35347.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  35348.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  35349.      s|^/[^/]|//&|
  35350.      p
  35351.      q
  35352.    }'
  35353.  
  35354.         gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  35355.   sed -n "$gl_absolute_header_sed"`
  35356.  
  35357.            gl_header=$gl_cv_absolute_netinet_in_h
  35358.            gl_cv_next_netinet_in_h='"'$gl_header'"'
  35359.           else
  35360.                gl_cv_next_netinet_in_h='<'netinet/in.h'>'
  35361.              fi
  35362.  
  35363.  
  35364. fi
  35365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
  35366. $as_echo "$gl_cv_next_netinet_in_h" >&6; }
  35367.      fi
  35368.      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
  35369.  
  35370.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  35371.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  35372.        gl_next_as_first_directive='<'netinet/in.h'>'
  35373.      else
  35374.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  35375.        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
  35376.      fi
  35377.      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
  35378.  
  35379.  
  35380.  
  35381.  
  35382.     if test $ac_cv_header_netinet_in_h = yes; then
  35383.       HAVE_NETINET_IN_H=1
  35384.     else
  35385.       HAVE_NETINET_IN_H=0
  35386.     fi
  35387.  
  35388.   fi
  35389.  
  35390.    if test -n "$NETINET_IN_H"; then
  35391.   GL_GENERATE_NETINET_IN_H_TRUE=
  35392.   GL_GENERATE_NETINET_IN_H_FALSE='#'
  35393. else
  35394.   GL_GENERATE_NETINET_IN_H_TRUE='#'
  35395.   GL_GENERATE_NETINET_IN_H_FALSE=
  35396. fi
  35397.  
  35398.  
  35399.  
  35400.  
  35401.  
  35402.  
  35403.  
  35404.  
  35405.  
  35406.   ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  35407. #include <$ac_cv_struct_tm>
  35408.  
  35409. "
  35410. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  35411.  
  35412. cat >>confdefs.h <<_ACEOF
  35413. #define HAVE_STRUCT_TM_TM_ZONE 1
  35414. _ACEOF
  35415.  
  35416.  
  35417. fi
  35418.  
  35419. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  35420.  
  35421. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  35422.  
  35423. else
  35424.   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  35425. "
  35426. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  35427.   ac_have_decl=1
  35428. else
  35429.   ac_have_decl=0
  35430. fi
  35431.  
  35432. cat >>confdefs.h <<_ACEOF
  35433. #define HAVE_DECL_TZNAME $ac_have_decl
  35434. _ACEOF
  35435.  
  35436.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  35437. $as_echo_n "checking for tzname... " >&6; }
  35438. if ${ac_cv_var_tzname+:} false; then :
  35439.   $as_echo_n "(cached) " >&6
  35440. else
  35441.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35442. /* end confdefs.h.  */
  35443. #include <time.h>
  35444. #if !HAVE_DECL_TZNAME
  35445. extern char *tzname[];
  35446. #endif
  35447.  
  35448. int
  35449. main ()
  35450. {
  35451. return tzname[0][0];
  35452.   ;
  35453.   return 0;
  35454. }
  35455. _ACEOF
  35456. if ac_fn_c_try_link "$LINENO"; then :
  35457.   ac_cv_var_tzname=yes
  35458. else
  35459.   ac_cv_var_tzname=no
  35460. fi
  35461. rm -f core conftest.err conftest.$ac_objext \
  35462.     conftest$ac_exeext conftest.$ac_ext
  35463. fi
  35464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  35465. $as_echo "$ac_cv_var_tzname" >&6; }
  35466.   if test $ac_cv_var_tzname = yes; then
  35467.  
  35468. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  35469.  
  35470.   fi
  35471. fi
  35472.  
  35473.  
  35474.  
  35475.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35476. /* end confdefs.h.  */
  35477.  
  35478. #include <time.h> /* for time_t */
  35479. #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
  35480. #define TYPE_MINIMUM(t) \
  35481.   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
  35482. #define TYPE_MAXIMUM(t) \
  35483.   ((t) ((t) 0 < (t) -1 \
  35484.         ? (t) -1 \
  35485.         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
  35486. typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
  35487. typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
  35488.  
  35489. _ACEOF
  35490. if ac_fn_c_try_compile "$LINENO"; then :
  35491.  
  35492. $as_echo "#define TIME_T_FITS_IN_LONG_INT 1" >>confdefs.h
  35493.  
  35494.  
  35495. fi
  35496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35497.  
  35498.   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
  35499. "
  35500. if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
  35501.   ac_have_decl=1
  35502. else
  35503.   ac_have_decl=0
  35504. fi
  35505.  
  35506. cat >>confdefs.h <<_ACEOF
  35507. #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
  35508. _ACEOF
  35509.  
  35510.   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
  35511. "
  35512. if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
  35513.   ac_have_decl=1
  35514. else
  35515.   ac_have_decl=0
  35516. fi
  35517.  
  35518. cat >>confdefs.h <<_ACEOF
  35519. #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
  35520. _ACEOF
  35521.  
  35522.   :
  35523.  
  35524.  
  35525.  
  35526.   if test $gl_cv_func_malloc_posix = yes; then
  35527.  
  35528. $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
  35529.  
  35530.   else
  35531.     REPLACE_REALLOC=1
  35532.   fi
  35533.  
  35534.   if test $REPLACE_REALLOC = 1; then
  35535.  
  35536.  
  35537.  
  35538.  
  35539.  
  35540.  
  35541.  
  35542.  
  35543.   ggl_LIBOBJS="$ggl_LIBOBJS realloc.$ac_objext"
  35544.  
  35545.   fi
  35546.  
  35547.  
  35548.  
  35549.  
  35550.  
  35551.           GNULIB_REALLOC_POSIX=1
  35552.  
  35553.  
  35554.  
  35555.  
  35556.  
  35557. $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
  35558.  
  35559.  
  35560.  
  35561.  
  35562.   if test "$ac_cv_header_winsock2_h" = yes; then
  35563.  
  35564.  
  35565.  
  35566.  
  35567.  
  35568.  
  35569.  
  35570.  
  35571.   ggl_LIBOBJS="$ggl_LIBOBJS recv.$ac_objext"
  35572.  
  35573.   fi
  35574.  
  35575.  
  35576.  
  35577.  
  35578.  
  35579.           GNULIB_RECV=1
  35580.  
  35581.  
  35582.  
  35583.  
  35584.  
  35585. $as_echo "#define GNULIB_TEST_RECV 1" >>confdefs.h
  35586.  
  35587.  
  35588.  
  35589.  
  35590.   if test "$ac_cv_header_winsock2_h" = yes; then
  35591.  
  35592.  
  35593.  
  35594.  
  35595.  
  35596.  
  35597.  
  35598.  
  35599.   ggl_LIBOBJS="$ggl_LIBOBJS recvfrom.$ac_objext"
  35600.  
  35601.   fi
  35602.  
  35603.  
  35604.  
  35605.  
  35606.  
  35607.           GNULIB_RECVFROM=1
  35608.  
  35609.  
  35610.  
  35611.  
  35612.  
  35613. $as_echo "#define GNULIB_TEST_RECVFROM 1" >>confdefs.h
  35614.  
  35615.  
  35616.  
  35617.  
  35618.  
  35619.  
  35620.  
  35621.   if test "$ac_cv_header_winsock2_h" = yes; then
  35622.     REPLACE_SELECT=1
  35623.   else
  35624.  
  35625.   :
  35626.  
  35627.  
  35628.  
  35629.  
  35630.  
  35631.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
  35632. $as_echo_n "checking whether select supports a 0 argument... " >&6; }
  35633. if ${gl_cv_func_select_supports0+:} false; then :
  35634.   $as_echo_n "(cached) " >&6
  35635. else
  35636.  
  35637.         if test "$cross_compiling" = yes; then :
  35638.  
  35639.            case "$host_os" in
  35640.                        # Guess no on Interix.
  35641.              interix*) gl_cv_func_select_supports0="guessing no";;
  35642.                        # Guess yes otherwise.
  35643.              *)        gl_cv_func_select_supports0="guessing yes";;
  35644.            esac
  35645.  
  35646. else
  35647.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35648. /* end confdefs.h.  */
  35649.  
  35650. #include <sys/types.h>
  35651. #include <sys/time.h>
  35652. #if HAVE_SYS_SELECT_H
  35653. #include <sys/select.h>
  35654. #endif
  35655. int main ()
  35656. {
  35657.   struct timeval timeout;
  35658.   timeout.tv_sec = 0;
  35659.   timeout.tv_usec = 5;
  35660.   return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
  35661. }
  35662. _ACEOF
  35663. if ac_fn_c_try_run "$LINENO"; then :
  35664.   gl_cv_func_select_supports0=yes
  35665. else
  35666.   gl_cv_func_select_supports0=no
  35667. fi
  35668. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35669.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  35670. fi
  35671.  
  35672.  
  35673. fi
  35674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
  35675. $as_echo "$gl_cv_func_select_supports0" >&6; }
  35676.     case "$gl_cv_func_select_supports0" in
  35677.       *yes) ;;
  35678.       *) REPLACE_SELECT=1 ;;
  35679.     esac
  35680.  
  35681.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
  35682. $as_echo_n "checking whether select detects invalid fds... " >&6; }
  35683. if ${gl_cv_func_select_detects_ebadf+:} false; then :
  35684.   $as_echo_n "(cached) " >&6
  35685. else
  35686.  
  35687.         if test "$cross_compiling" = yes; then :
  35688.  
  35689.            case "$host_os" in
  35690.                     # Guess yes on glibc systems.
  35691.             *-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
  35692.                     # If we don't know, assume the worst.
  35693.             *)      gl_cv_func_select_detects_ebadf="guessing no" ;;
  35694.            esac
  35695.  
  35696. else
  35697.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35698. /* end confdefs.h.  */
  35699.  
  35700. #include <sys/types.h>
  35701. #include <sys/time.h>
  35702. #if HAVE_SYS_SELECT_H
  35703. # include <sys/select.h>
  35704. #endif
  35705. #include <unistd.h>
  35706. #include <errno.h>
  35707.  
  35708. int
  35709. main ()
  35710. {
  35711.  
  35712.   fd_set set;
  35713.   dup2(0, 16);
  35714.   FD_ZERO(&set);
  35715.   FD_SET(16, &set);
  35716.   close(16);
  35717.   struct timeval timeout;
  35718.   timeout.tv_sec = 0;
  35719.   timeout.tv_usec = 5;
  35720.   return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
  35721.  
  35722.   ;
  35723.   return 0;
  35724. }
  35725. _ACEOF
  35726. if ac_fn_c_try_run "$LINENO"; then :
  35727.   gl_cv_func_select_detects_ebadf=yes
  35728. else
  35729.   gl_cv_func_select_detects_ebadf=no
  35730. fi
  35731. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35732.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  35733. fi
  35734.  
  35735.  
  35736. fi
  35737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
  35738. $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
  35739.     case $gl_cv_func_select_detects_ebadf in
  35740.       *yes) ;;
  35741.       *) REPLACE_SELECT=1 ;;
  35742.     esac
  35743.   fi
  35744.  
  35745.     LIB_SELECT="$LIBSOCKET"
  35746.   if test $REPLACE_SELECT = 1; then
  35747.     case "$host_os" in
  35748.       mingw*)
  35749.                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35750. /* end confdefs.h.  */
  35751.  
  35752. #define WIN32_LEAN_AND_MEAN
  35753. #include <windows.h>
  35754. int
  35755. main ()
  35756. {
  35757.   MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
  35758.   return 0;
  35759. }
  35760. _ACEOF
  35761. if ac_fn_c_try_link "$LINENO"; then :
  35762.  
  35763. else
  35764.   LIB_SELECT="$LIB_SELECT -luser32"
  35765. fi
  35766. rm -f core conftest.err conftest.$ac_objext \
  35767.     conftest$ac_exeext conftest.$ac_ext
  35768.         ;;
  35769.     esac
  35770.   fi
  35771.  
  35772.  
  35773.   if test $REPLACE_SELECT = 1; then
  35774.  
  35775.  
  35776.  
  35777.  
  35778.  
  35779.  
  35780.  
  35781.  
  35782.   ggl_LIBOBJS="$ggl_LIBOBJS select.$ac_objext"
  35783.  
  35784.   fi
  35785.  
  35786.  
  35787.  
  35788.  
  35789.  
  35790.           GNULIB_SELECT=1
  35791.  
  35792.  
  35793.  
  35794.  
  35795.  
  35796. $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
  35797.  
  35798.  
  35799.  
  35800.  
  35801.   if test "$ac_cv_header_winsock2_h" = yes; then
  35802.  
  35803.  
  35804.  
  35805.  
  35806.  
  35807.  
  35808.  
  35809.  
  35810.   ggl_LIBOBJS="$ggl_LIBOBJS send.$ac_objext"
  35811.  
  35812.   fi
  35813.  
  35814.  
  35815.  
  35816.  
  35817.  
  35818.           GNULIB_SEND=1
  35819.  
  35820.  
  35821.  
  35822.  
  35823.  
  35824. $as_echo "#define GNULIB_TEST_SEND 1" >>confdefs.h
  35825.  
  35826.  
  35827.  
  35828.  
  35829.   if test "$ac_cv_header_winsock2_h" = yes; then
  35830.  
  35831.  
  35832.  
  35833.  
  35834.  
  35835.  
  35836.  
  35837.  
  35838.   ggl_LIBOBJS="$ggl_LIBOBJS sendto.$ac_objext"
  35839.  
  35840.   fi
  35841.  
  35842.  
  35843.  
  35844.  
  35845.  
  35846.           GNULIB_SENDTO=1
  35847.  
  35848.  
  35849.  
  35850.  
  35851.  
  35852. $as_echo "#define GNULIB_TEST_SENDTO 1" >>confdefs.h
  35853.  
  35854.  
  35855.  
  35856.  
  35857.                       SERVENT_LIB=
  35858.   gl_saved_libs="$LIBS"
  35859.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
  35860. $as_echo_n "checking for library containing getservbyname... " >&6; }
  35861. if ${ac_cv_search_getservbyname+:} false; then :
  35862.   $as_echo_n "(cached) " >&6
  35863. else
  35864.   ac_func_search_save_LIBS=$LIBS
  35865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35866. /* end confdefs.h.  */
  35867.  
  35868. /* Override any GCC internal prototype to avoid an error.
  35869.    Use char because int might match the return type of a GCC
  35870.    builtin and then its argument prototype would still apply.  */
  35871. #ifdef __cplusplus
  35872. extern "C"
  35873. #endif
  35874. char getservbyname ();
  35875. int
  35876. main ()
  35877. {
  35878. return getservbyname ();
  35879.   ;
  35880.   return 0;
  35881. }
  35882. _ACEOF
  35883. for ac_lib in '' socket network net; do
  35884.   if test -z "$ac_lib"; then
  35885.     ac_res="none required"
  35886.   else
  35887.     ac_res=-l$ac_lib
  35888.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  35889.   fi
  35890.   if ac_fn_c_try_link "$LINENO"; then :
  35891.   ac_cv_search_getservbyname=$ac_res
  35892. fi
  35893. rm -f core conftest.err conftest.$ac_objext \
  35894.     conftest$ac_exeext
  35895.   if ${ac_cv_search_getservbyname+:} false; then :
  35896.   break
  35897. fi
  35898. done
  35899. if ${ac_cv_search_getservbyname+:} false; then :
  35900.  
  35901. else
  35902.   ac_cv_search_getservbyname=no
  35903. fi
  35904. rm conftest.$ac_ext
  35905. LIBS=$ac_func_search_save_LIBS
  35906. fi
  35907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
  35908. $as_echo "$ac_cv_search_getservbyname" >&6; }
  35909. ac_res=$ac_cv_search_getservbyname
  35910. if test "$ac_res" != no; then :
  35911.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  35912.   if test "$ac_cv_search_getservbyname" != "none required"; then
  35913.        SERVENT_LIB="$ac_cv_search_getservbyname"
  35914.      fi
  35915. fi
  35916.  
  35917.   LIBS="$gl_saved_libs"
  35918.   if test -z "$SERVENT_LIB"; then
  35919.     for ac_func in getservbyname
  35920. do :
  35921.   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
  35922. if test "x$ac_cv_func_getservbyname" = xyes; then :
  35923.   cat >>confdefs.h <<_ACEOF
  35924. #define HAVE_GETSERVBYNAME 1
  35925. _ACEOF
  35926.  
  35927. else
  35928.  
  35929.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
  35930. $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
  35931. if ${gl_cv_w32_getservbyname+:} false; then :
  35932.   $as_echo_n "(cached) " >&6
  35933. else
  35934.   gl_cv_w32_getservbyname=no
  35935.          gl_save_LIBS="$LIBS"
  35936.          LIBS="$LIBS -lws2_32"
  35937.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35938. /* end confdefs.h.  */
  35939.  
  35940. #ifdef HAVE_WINSOCK2_H
  35941. #include <winsock2.h>
  35942. #endif
  35943. #include <stddef.h>
  35944.  
  35945. int
  35946. main ()
  35947. {
  35948. getservbyname(NULL,NULL);
  35949.   ;
  35950.   return 0;
  35951. }
  35952. _ACEOF
  35953. if ac_fn_c_try_link "$LINENO"; then :
  35954.   gl_cv_w32_getservbyname=yes
  35955. fi
  35956. rm -f core conftest.err conftest.$ac_objext \
  35957.     conftest$ac_exeext conftest.$ac_ext
  35958.          LIBS="$gl_save_LIBS"
  35959.  
  35960. fi
  35961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
  35962. $as_echo "$gl_cv_w32_getservbyname" >&6; }
  35963.       if test "$gl_cv_w32_getservbyname" = "yes"; then
  35964.         SERVENT_LIB="-lws2_32"
  35965.       fi
  35966.  
  35967. fi
  35968. done
  35969.  
  35970.   fi
  35971.  
  35972.  
  35973.  
  35974.  
  35975.      if test $ac_cv_func_setenv = no; then
  35976.     HAVE_SETENV=0
  35977.   else
  35978.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
  35979. $as_echo_n "checking whether setenv validates arguments... " >&6; }
  35980. if ${gl_cv_func_setenv_works+:} false; then :
  35981.   $as_echo_n "(cached) " >&6
  35982. else
  35983.   if test "$cross_compiling" = yes; then :
  35984.   case "$host_os" in
  35985.                  # Guess yes on glibc systems.
  35986.          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
  35987.                  # If we don't know, assume the worst.
  35988.          *)      gl_cv_func_setenv_works="guessing no" ;;
  35989.        esac
  35990.  
  35991. else
  35992.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35993. /* end confdefs.h.  */
  35994.  
  35995.        #include <stdlib.h>
  35996.        #include <errno.h>
  35997.        #include <string.h>
  35998.  
  35999. int
  36000. main ()
  36001. {
  36002.  
  36003.        int result = 0;
  36004.        {
  36005.          if (setenv ("", "", 0) != -1)
  36006.            result |= 1;
  36007.          else if (errno != EINVAL)
  36008.            result |= 2;
  36009.        }
  36010.        {
  36011.          if (setenv ("a", "=", 1) != 0)
  36012.            result |= 4;
  36013.          else if (strcmp (getenv ("a"), "=") != 0)
  36014.            result |= 8;
  36015.        }
  36016.        return result;
  36017.  
  36018.   ;
  36019.   return 0;
  36020. }
  36021. _ACEOF
  36022. if ac_fn_c_try_run "$LINENO"; then :
  36023.   gl_cv_func_setenv_works=yes
  36024. else
  36025.   gl_cv_func_setenv_works=no
  36026. fi
  36027. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  36028.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  36029. fi
  36030.  
  36031. fi
  36032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
  36033. $as_echo "$gl_cv_func_setenv_works" >&6; }
  36034.     case "$gl_cv_func_setenv_works" in
  36035.       *yes) ;;
  36036.       *)
  36037.         REPLACE_SETENV=1
  36038.         ;;
  36039.     esac
  36040.   fi
  36041.  
  36042.   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
  36043.  
  36044.  
  36045.  
  36046.  
  36047.  
  36048.  
  36049.  
  36050.  
  36051.   ggl_LIBOBJS="$ggl_LIBOBJS setenv.$ac_objext"
  36052.  
  36053.   fi
  36054.  
  36055.  
  36056.  
  36057.  
  36058.  
  36059.           GNULIB_SETENV=1
  36060.  
  36061.  
  36062.  
  36063.  
  36064.  
  36065. $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
  36066.  
  36067.  
  36068.  
  36069.  
  36070.   if test "$ac_cv_header_winsock2_h" = yes; then
  36071.  
  36072.  
  36073.  
  36074.  
  36075.  
  36076.  
  36077.  
  36078.  
  36079.   ggl_LIBOBJS="$ggl_LIBOBJS setsockopt.$ac_objext"
  36080.  
  36081.   fi
  36082.  
  36083.  
  36084.  
  36085.  
  36086.  
  36087.           GNULIB_SETSOCKOPT=1
  36088.  
  36089.  
  36090.  
  36091.  
  36092.  
  36093. $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
  36094.  
  36095.  
  36096.  
  36097.  
  36098.   if test "$ac_cv_header_winsock2_h" = yes; then
  36099.  
  36100.  
  36101.  
  36102.  
  36103.  
  36104.  
  36105.  
  36106.  
  36107.   ggl_LIBOBJS="$ggl_LIBOBJS shutdown.$ac_objext"
  36108.  
  36109.   fi
  36110.  
  36111.  
  36112.  
  36113.  
  36114.  
  36115.           GNULIB_SHUTDOWN=1
  36116.  
  36117.  
  36118.  
  36119.  
  36120.  
  36121. $as_echo "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h
  36122.  
  36123.  
  36124.  
  36125.  
  36126.  
  36127.  
  36128.  
  36129.  
  36130.  
  36131.  
  36132.  
  36133.  
  36134.  
  36135.  
  36136.      if test $gl_cv_have_include_next = yes; then
  36137.        gl_cv_next_signal_h='<'signal.h'>'
  36138.      else
  36139.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
  36140. $as_echo_n "checking absolute name of <signal.h>... " >&6; }
  36141. if ${gl_cv_next_signal_h+:} false; then :
  36142.   $as_echo_n "(cached) " >&6
  36143. else
  36144.  
  36145.  
  36146.  
  36147.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36148. /* end confdefs.h.  */
  36149. #include <signal.h>
  36150. _ACEOF
  36151.                 case "$host_os" in
  36152.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  36153.     *)    gl_absname_cpp="$ac_cpp" ;;
  36154.   esac
  36155.  
  36156.   case "$host_os" in
  36157.     mingw*)
  36158.                                           gl_dirsep_regex='[/\\]'
  36159.       ;;
  36160.     *)
  36161.       gl_dirsep_regex='\/'
  36162.       ;;
  36163.   esac
  36164.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  36165.   gl_header_literal_regex=`echo 'signal.h' \
  36166.                            | sed -e "$gl_make_literal_regex_sed"`
  36167.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  36168.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  36169.      s|^/[^/]|//&|
  36170.      p
  36171.      q
  36172.    }'
  36173.  
  36174.         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  36175.   sed -n "$gl_absolute_header_sed"`
  36176.  
  36177.            gl_header=$gl_cv_absolute_signal_h
  36178.            gl_cv_next_signal_h='"'$gl_header'"'
  36179.  
  36180.  
  36181. fi
  36182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
  36183. $as_echo "$gl_cv_next_signal_h" >&6; }
  36184.      fi
  36185.      NEXT_SIGNAL_H=$gl_cv_next_signal_h
  36186.  
  36187.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  36188.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  36189.        gl_next_as_first_directive='<'signal.h'>'
  36190.      else
  36191.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  36192.        gl_next_as_first_directive=$gl_cv_next_signal_h
  36193.      fi
  36194.      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
  36195.  
  36196.  
  36197.  
  36198.  
  36199.  
  36200. # AIX declares sig_atomic_t to already include volatile, and C89 compilers
  36201. # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
  36202.   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
  36203. #include <signal.h>
  36204.  
  36205. "
  36206. if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
  36207.  
  36208. else
  36209.   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
  36210. fi
  36211.  
  36212.  
  36213.  
  36214.  
  36215.  
  36216.  
  36217.  
  36218.   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
  36219. #include <signal.h>
  36220.  
  36221. "
  36222. if test "x$ac_cv_type_sighandler_t" = xyes; then :
  36223.  
  36224. else
  36225.   HAVE_SIGHANDLER_T=0
  36226. fi
  36227.  
  36228.  
  36229.  
  36230.     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
  36231.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  36232.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  36233. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  36234. if eval \${$as_gl_Symbol+:} false; then :
  36235.   $as_echo_n "(cached) " >&6
  36236. else
  36237.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36238. /* end confdefs.h.  */
  36239. #include <signal.h>
  36240.  
  36241. int
  36242. main ()
  36243. {
  36244. #undef $gl_func
  36245.   (void) $gl_func;
  36246.   ;
  36247.   return 0;
  36248. }
  36249. _ACEOF
  36250. if ac_fn_c_try_compile "$LINENO"; then :
  36251.   eval "$as_gl_Symbol=yes"
  36252. else
  36253.   eval "$as_gl_Symbol=no"
  36254. fi
  36255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36256. fi
  36257. eval ac_res=\$$as_gl_Symbol
  36258.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  36259. $as_echo "$ac_res" >&6; }
  36260.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  36261.   cat >>confdefs.h <<_ACEOF
  36262. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  36263. _ACEOF
  36264.  
  36265.                      eval ac_cv_have_decl_$gl_func=yes
  36266. fi
  36267.       done
  36268.  
  36269.  
  36270.  
  36271.   for ac_header in stdint.h
  36272. do :
  36273.   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  36274. if test "x$ac_cv_header_stdint_h" = xyes; then :
  36275.   cat >>confdefs.h <<_ACEOF
  36276. #define HAVE_STDINT_H 1
  36277. _ACEOF
  36278.  
  36279. fi
  36280.  
  36281. done
  36282.  
  36283.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  36284. $as_echo_n "checking for SIZE_MAX... " >&6; }
  36285. if ${gl_cv_size_max+:} false; then :
  36286.   $as_echo_n "(cached) " >&6
  36287. else
  36288.  
  36289.     gl_cv_size_max=
  36290.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36291. /* end confdefs.h.  */
  36292.  
  36293. #include <limits.h>
  36294. #if HAVE_STDINT_H
  36295. #include <stdint.h>
  36296. #endif
  36297. #ifdef SIZE_MAX
  36298. Found it
  36299. #endif
  36300.  
  36301. _ACEOF
  36302. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36303.   $EGREP "Found it" >/dev/null 2>&1; then :
  36304.   gl_cv_size_max=yes
  36305. fi
  36306. rm -f conftest*
  36307.  
  36308.     if test -z "$gl_cv_size_max"; then
  36309.                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
  36310. #include <limits.h>"; then :
  36311.  
  36312. else
  36313.   size_t_bits_minus_1=
  36314. fi
  36315.  
  36316.       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
  36317.  
  36318. else
  36319.   fits_in_uint=
  36320. fi
  36321.  
  36322.       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  36323.         if test $fits_in_uint = 1; then
  36324.                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36325. /* end confdefs.h.  */
  36326. #include <stddef.h>
  36327.                  extern size_t foo;
  36328.                  extern unsigned long foo;
  36329.  
  36330. int
  36331. main ()
  36332. {
  36333.  
  36334.   ;
  36335.   return 0;
  36336. }
  36337. _ACEOF
  36338. if ac_fn_c_try_compile "$LINENO"; then :
  36339.   fits_in_uint=0
  36340. fi
  36341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36342.         fi
  36343.                                 if test $fits_in_uint = 1; then
  36344.           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  36345.         else
  36346.           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  36347.         fi
  36348.       else
  36349.                 gl_cv_size_max='((size_t)~(size_t)0)'
  36350.       fi
  36351.     fi
  36352.  
  36353. fi
  36354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  36355. $as_echo "$gl_cv_size_max" >&6; }
  36356.   if test "$gl_cv_size_max" != yes; then
  36357.  
  36358. cat >>confdefs.h <<_ACEOF
  36359. #define SIZE_MAX $gl_cv_size_max
  36360. _ACEOF
  36361.  
  36362.   fi
  36363.  
  36364.  
  36365.  
  36366.  
  36367.   gl_cv_func_snprintf_usable=no
  36368.   for ac_func in snprintf
  36369. do :
  36370.   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  36371. if test "x$ac_cv_func_snprintf" = xyes; then :
  36372.   cat >>confdefs.h <<_ACEOF
  36373. #define HAVE_SNPRINTF 1
  36374. _ACEOF
  36375.  
  36376. fi
  36377. done
  36378.  
  36379.   if test $ac_cv_func_snprintf = yes; then
  36380.  
  36381.  
  36382.  
  36383.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
  36384. $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
  36385. if ${gl_cv_func_snprintf_size1+:} false; then :
  36386.   $as_echo_n "(cached) " >&6
  36387. else
  36388.  
  36389.       if test "$cross_compiling" = yes; then :
  36390.   gl_cv_func_snprintf_size1="guessing yes"
  36391. else
  36392.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36393. /* end confdefs.h.  */
  36394.  
  36395. #include <stdio.h>
  36396. #if HAVE_SNPRINTF
  36397. # define my_snprintf snprintf
  36398. #else
  36399. # include <stdarg.h>
  36400. static int my_snprintf (char *buf, int size, const char *format, ...)
  36401. {
  36402.   va_list args;
  36403.   int ret;
  36404.   va_start (args, format);
  36405.   ret = vsnprintf (buf, size, format, args);
  36406.   va_end (args);
  36407.   return ret;
  36408. }
  36409. #endif
  36410. int main()
  36411. {
  36412.   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
  36413.   my_snprintf (buf, 1, "%d", 12345);
  36414.   return buf[1] != 'E';
  36415. }
  36416. _ACEOF
  36417. if ac_fn_c_try_run "$LINENO"; then :
  36418.   gl_cv_func_snprintf_size1=yes
  36419. else
  36420.   gl_cv_func_snprintf_size1=no
  36421. fi
  36422. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  36423.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  36424. fi
  36425.  
  36426.  
  36427. fi
  36428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
  36429. $as_echo "$gl_cv_func_snprintf_size1" >&6; }
  36430.  
  36431.     case "$gl_cv_func_snprintf_size1" in
  36432.       *yes)
  36433.  
  36434.         case "$gl_cv_func_snprintf_retval_c99" in
  36435.           *yes)
  36436.  
  36437.  
  36438.      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
  36439. $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
  36440. if ${gl_cv_func_printf_positions+:} false; then :
  36441.   $as_echo_n "(cached) " >&6
  36442. else
  36443.  
  36444.       if test "$cross_compiling" = yes; then :
  36445.  
  36446.          case "$host_os" in
  36447.            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
  36448.                          gl_cv_func_printf_positions="guessing no";;
  36449.            beos*)        gl_cv_func_printf_positions="guessing no";;
  36450.            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
  36451.            *)            gl_cv_func_printf_positions="guessing yes";;
  36452.          esac
  36453.  
  36454. else
  36455.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36456. /* end confdefs.h.  */
  36457.  
  36458. #include <stdio.h>
  36459. #include <string.h>
  36460. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  36461.   dollar expansion (possibly an autoconf bug).  */
  36462. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  36463. static char buf[100];
  36464. int main ()
  36465. {
  36466.  sprintf (buf, format, 33, 55);
  36467.  return (strcmp (buf, "55 33") != 0);
  36468. }
  36469. _ACEOF
  36470. if ac_fn_c_try_run "$LINENO"; then :
  36471.  gl_cv_func_printf_positions=yes
  36472. else
  36473.  gl_cv_func_printf_positions=no
  36474. fi
  36475. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  36476.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  36477. fi
  36478.  
  36479.  
  36480. fi
  36481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
  36482. $as_echo "$gl_cv_func_printf_positions" >&6; }
  36483.  
  36484.            case "$gl_cv_func_printf_positions" in
  36485.              *yes)
  36486.                gl_cv_func_snprintf_usable=yes
  36487.                ;;
  36488.            esac
  36489.            ;;
  36490.        esac
  36491.        ;;
  36492.    esac
  36493.  fi
  36494.  if test $gl_cv_func_snprintf_usable = no; then
  36495.  
  36496.  
  36497.  
  36498.  
  36499.  
  36500.  
  36501.  
  36502.  
  36503.  
  36504.  
  36505.  ggl_LIBOBJS="$ggl_LIBOBJS snprintf.$ac_objext"
  36506.  
  36507.  if test $ac_cv_func_snprintf = yes; then
  36508.    REPLACE_SNPRINTF=1
  36509.  fi
  36510.  :
  36511.  
  36512.  fi
  36513.  
  36514.  :
  36515.  
  36516.  
  36517.  
  36518.  
  36519.  
  36520.  if test $ac_cv_have_decl_snprintf = no; then
  36521.    HAVE_DECL_SNPRINTF=0
  36522.  fi
  36523.  
  36524.  
  36525.  
  36526.  
  36527.  
  36528.  
  36529.          GNULIB_SNPRINTF=1
  36530.  
  36531.  
  36532.  
  36533.  
  36534.  
  36535. $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
  36536.  
  36537.  
  36538.  
  36539.  
  36540.  
  36541. cat >>confdefs.h <<_ACEOF
  36542. #define GNULIB_SNPRINTF 1
  36543. _ACEOF
  36544.  
  36545.  
  36546.  
  36547.  if test "$ac_cv_header_winsock2_h" = yes; then
  36548.  
  36549.  
  36550.  
  36551.  
  36552.  
  36553.  
  36554.  
  36555.  
  36556.  ggl_LIBOBJS="$ggl_LIBOBJS socket.$ac_objext"
  36557.  
  36558.  fi
  36559.  # When this module is used, sockets may actually occur as file descriptors,
  36560.  # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
  36561.  
  36562.  
  36563.  
  36564.  if test "$ac_cv_header_winsock2_h" = yes; then
  36565.    UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
  36566.    SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
  36567.  fi
  36568.  
  36569.  
  36570.  
  36571.  
  36572.  
  36573.          GNULIB_SOCKET=1
  36574.  
  36575.  
  36576.  
  36577.  
  36578.  
  36579. $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
  36580.  
  36581.  
  36582.  
  36583.  
  36584.  
  36585.     ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  36586. /* <sys/types.h> is not needed according to POSIX, but the
  36587.   <sys/socket.h> in i386-unknown-freebsd4.10 and
  36588.   powerpc-apple-darwin5.5 required it. */
  36589. #include <sys/types.h>
  36590. #if HAVE_SYS_SOCKET_H
  36591. # include <sys/socket.h>
  36592. #elif HAVE_WS2TCPIP_H
  36593. # include <ws2tcpip.h>
  36594. #endif
  36595.  
  36596. "
  36597. if test "x$ac_cv_type_socklen_t" = xyes; then :
  36598.  
  36599. else
  36600.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  36601. $as_echo_n "checking for socklen_t equivalent... " >&6; }
  36602.      if ${gl_cv_socklen_t_equiv+:} false; then :
  36603.  $as_echo_n "(cached) " >&6
  36604. else
  36605.  # Systems have either "struct sockaddr *" or
  36606.         # "void *" as the second argument to getpeername
  36607.         gl_cv_socklen_t_equiv=
  36608.         for arg2 in "struct sockaddr" void; do
  36609.           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
  36610.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36611. /* end confdefs.h.  */
  36612. #include <sys/types.h>
  36613.                   #include <sys/socket.h>
  36614.  
  36615.                   int getpeername (int, $arg2 *, $t *);
  36616. int
  36617. main ()
  36618. {
  36619. $t len;
  36620.                  getpeername (0, 0, &len);
  36621.  ;
  36622.  return 0;
  36623. }
  36624. _ACEOF
  36625. if ac_fn_c_try_compile "$LINENO"; then :
  36626.  gl_cv_socklen_t_equiv="$t"
  36627. fi
  36628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36629.             test "$gl_cv_socklen_t_equiv" != "" && break
  36630.           done
  36631.           test "$gl_cv_socklen_t_equiv" != "" && break
  36632.         done
  36633.  
  36634. fi
  36635.  
  36636.      if test "$gl_cv_socklen_t_equiv" = ""; then
  36637.        as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  36638.      fi
  36639.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
  36640. $as_echo "$gl_cv_socklen_t_equiv" >&6; }
  36641.  
  36642. cat >>confdefs.h <<_ACEOF
  36643. #define socklen_t $gl_cv_socklen_t_equiv
  36644. _ACEOF
  36645.  
  36646. fi
  36647.  
  36648.  
  36649.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
  36650. $as_echo_n "checking for ssize_t... " >&6; }
  36651. if ${gt_cv_ssize_t+:} false; then :
  36652.  $as_echo_n "(cached) " >&6
  36653. else
  36654.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36655. /* end confdefs.h.  */
  36656. #include <sys/types.h>
  36657. int
  36658. main ()
  36659. {
  36660. int x = sizeof (ssize_t *) + sizeof (ssize_t);
  36661.            return !x;
  36662.  ;
  36663.  return 0;
  36664. }
  36665. _ACEOF
  36666. if ac_fn_c_try_compile "$LINENO"; then :
  36667.  gt_cv_ssize_t=yes
  36668. else
  36669.  gt_cv_ssize_t=no
  36670. fi
  36671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36672. fi
  36673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
  36674. $as_echo "$gt_cv_ssize_t" >&6; }
  36675.  if test $gt_cv_ssize_t = no; then
  36676.  
  36677. $as_echo "#define ssize_t int" >>confdefs.h
  36678.  
  36679.  fi
  36680.  
  36681.  
  36682.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
  36683. $as_echo_n "checking for working stdalign.h... " >&6; }
  36684. if ${gl_cv_header_working_stdalign_h+:} false; then :
  36685.  $as_echo_n "(cached) " >&6
  36686. else
  36687.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36688. /* end confdefs.h.  */
  36689. #include <stdalign.h>
  36690.            #include <stddef.h>
  36691.  
  36692.            /* Test that alignof yields a result consistent with offsetof.
  36693.               This catches GCC bug 52023
  36694.               <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
  36695.            #ifdef __cplusplus
  36696.               template <class t> struct alignof_helper { char a; t b; };
  36697.            # define ao(type) offsetof (alignof_helper<type>, b)
  36698.            #else
  36699.            # define ao(type) offsetof (struct { char a; type b; }, b)
  36700.            #endif
  36701.            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
  36702.            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
  36703.            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
  36704.  
  36705.            /* Test _Alignas only on platforms where gnulib can help.  */
  36706.            #if \
  36707.                ((defined __cplusplus && 201103 <= __cplusplus) \
  36708.                 || (defined __APPLE__ && defined __MACH__ \
  36709.                     ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
  36710.                     : __GNUC__) \
  36711.                 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
  36712.                 || __ICC || 0x5110 <= __SUNPRO_C \
  36713.                 || 1300 <= _MSC_VER)
  36714.              struct alignas_test { char c; char alignas (8) alignas_8; };
  36715.              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
  36716.                                ? 1 : -1];
  36717.            #endif
  36718.  
  36719. int
  36720. main ()
  36721. {
  36722.  
  36723.  ;
  36724.  return 0;
  36725. }
  36726. _ACEOF
  36727. if ac_fn_c_try_compile "$LINENO"; then :
  36728.  gl_cv_header_working_stdalign_h=yes
  36729. else
  36730.  gl_cv_header_working_stdalign_h=no
  36731. fi
  36732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36733. fi
  36734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
  36735. $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
  36736.  
  36737.  if test $gl_cv_header_working_stdalign_h = yes; then
  36738.    STDALIGN_H=''
  36739.  else
  36740.    STDALIGN_H='stdalign.h'
  36741.  fi
  36742.  
  36743.  
  36744.   if test -n "$STDALIGN_H"; then
  36745.  GL_GENERATE_STDALIGN_H_TRUE=
  36746.  GL_GENERATE_STDALIGN_H_FALSE='#'
  36747. else
  36748.   GL_GENERATE_STDALIGN_H_TRUE='#'
  36749.   GL_GENERATE_STDALIGN_H_FALSE=
  36750. fi
  36751.  
  36752.  
  36753.  
  36754.  
  36755.  
  36756.   # Define two additional variables used in the Makefile substitution.
  36757.  
  36758.   if test "$ac_cv_header_stdbool_h" = yes; then
  36759.     STDBOOL_H=''
  36760.   else
  36761.     STDBOOL_H='stdbool.h'
  36762.   fi
  36763.  
  36764.    if test -n "$STDBOOL_H"; then
  36765.   GL_GENERATE_STDBOOL_H_TRUE=
  36766.   GL_GENERATE_STDBOOL_H_FALSE='#'
  36767. else
  36768.   GL_GENERATE_STDBOOL_H_TRUE='#'
  36769.   GL_GENERATE_STDBOOL_H_FALSE=
  36770. fi
  36771.  
  36772.  
  36773.   if test "$ac_cv_type__Bool" = yes; then
  36774.     HAVE__BOOL=1
  36775.   else
  36776.     HAVE__BOOL=0
  36777.   fi
  36778.  
  36779.  
  36780.  
  36781.  
  36782.  
  36783.   STDDEF_H=
  36784.   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
  36785.  
  36786. "
  36787. if test "x$ac_cv_type_max_align_t" = xyes; then :
  36788.  
  36789. else
  36790.   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
  36791. fi
  36792.  
  36793.   if test $gt_cv_c_wchar_t = no; then
  36794.     HAVE_WCHAR_T=0
  36795.     STDDEF_H=stddef.h
  36796.   fi
  36797.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
  36798. $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
  36799. if ${gl_cv_decl_null_works+:} false; then :
  36800.   $as_echo_n "(cached) " >&6
  36801. else
  36802.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36803. /* end confdefs.h.  */
  36804. #include <stddef.h>
  36805.       int test[2 * (sizeof NULL == sizeof (void *)) -1];
  36806.  
  36807. int
  36808. main ()
  36809. {
  36810.  
  36811.   ;
  36812.   return 0;
  36813. }
  36814. _ACEOF
  36815. if ac_fn_c_try_compile "$LINENO"; then :
  36816.   gl_cv_decl_null_works=yes
  36817. else
  36818.   gl_cv_decl_null_works=no
  36819. fi
  36820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36821. fi
  36822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
  36823. $as_echo "$gl_cv_decl_null_works" >&6; }
  36824.   if test $gl_cv_decl_null_works = no; then
  36825.     REPLACE_NULL=1
  36826.     STDDEF_H=stddef.h
  36827.   fi
  36828.  
  36829.    if test -n "$STDDEF_H"; then
  36830.   GL_GENERATE_STDDEF_H_TRUE=
  36831.   GL_GENERATE_STDDEF_H_FALSE='#'
  36832. else
  36833.   GL_GENERATE_STDDEF_H_TRUE='#'
  36834.   GL_GENERATE_STDDEF_H_FALSE=
  36835. fi
  36836.  
  36837.   if test -n "$STDDEF_H"; then
  36838.  
  36839.  
  36840.  
  36841.  
  36842.  
  36843.  
  36844.  
  36845.  
  36846.      if test $gl_cv_have_include_next = yes; then
  36847.        gl_cv_next_stddef_h='<'stddef.h'>'
  36848.      else
  36849.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
  36850. $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
  36851. if ${gl_cv_next_stddef_h+:} false; then :
  36852.   $as_echo_n "(cached) " >&6
  36853. else
  36854.  
  36855.  
  36856.  
  36857.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36858. /* end confdefs.h.  */
  36859. #include <stddef.h>
  36860. _ACEOF
  36861.                 case "$host_os" in
  36862.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  36863.     *)    gl_absname_cpp="$ac_cpp" ;;
  36864.   esac
  36865.  
  36866.   case "$host_os" in
  36867.     mingw*)
  36868.                                           gl_dirsep_regex='[/\\]'
  36869.       ;;
  36870.     *)
  36871.       gl_dirsep_regex='\/'
  36872.       ;;
  36873.   esac
  36874.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  36875.   gl_header_literal_regex=`echo 'stddef.h' \
  36876.                            | sed -e "$gl_make_literal_regex_sed"`
  36877.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  36878.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  36879.      s|^/[^/]|//&|
  36880.      p
  36881.      q
  36882.    }'
  36883.  
  36884.         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  36885.   sed -n "$gl_absolute_header_sed"`
  36886.  
  36887.            gl_header=$gl_cv_absolute_stddef_h
  36888.            gl_cv_next_stddef_h='"'$gl_header'"'
  36889.  
  36890.  
  36891. fi
  36892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
  36893. $as_echo "$gl_cv_next_stddef_h" >&6; }
  36894.      fi
  36895.      NEXT_STDDEF_H=$gl_cv_next_stddef_h
  36896.  
  36897.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  36898.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  36899.        gl_next_as_first_directive='<'stddef.h'>'
  36900.      else
  36901.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  36902.        gl_next_as_first_directive=$gl_cv_next_stddef_h
  36903.      fi
  36904.      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
  36905.  
  36906.  
  36907.  
  36908.  
  36909.   fi
  36910.  
  36911.  
  36912.  
  36913.  
  36914.   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
  36915.  
  36916.  
  36917.  
  36918.  
  36919.  
  36920.  
  36921.  
  36922.  
  36923.  
  36924.  
  36925.      if test $gl_cv_have_include_next = yes; then
  36926.        gl_cv_next_stdio_h='<'stdio.h'>'
  36927.      else
  36928.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
  36929. $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
  36930. if ${gl_cv_next_stdio_h+:} false; then :
  36931.   $as_echo_n "(cached) " >&6
  36932. else
  36933.  
  36934.  
  36935.  
  36936.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36937. /* end confdefs.h.  */
  36938. #include <stdio.h>
  36939. _ACEOF
  36940.                 case "$host_os" in
  36941.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  36942.     *)    gl_absname_cpp="$ac_cpp" ;;
  36943.   esac
  36944.  
  36945.   case "$host_os" in
  36946.     mingw*)
  36947.                                           gl_dirsep_regex='[/\\]'
  36948.       ;;
  36949.     *)
  36950.       gl_dirsep_regex='\/'
  36951.       ;;
  36952.   esac
  36953.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  36954.   gl_header_literal_regex=`echo 'stdio.h' \
  36955.                            | sed -e "$gl_make_literal_regex_sed"`
  36956.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  36957.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  36958.      s|^/[^/]|//&|
  36959.      p
  36960.      q
  36961.    }'
  36962.  
  36963.         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  36964.   sed -n "$gl_absolute_header_sed"`
  36965.  
  36966.            gl_header=$gl_cv_absolute_stdio_h
  36967.            gl_cv_next_stdio_h='"'$gl_header'"'
  36968.  
  36969.  
  36970. fi
  36971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
  36972. $as_echo "$gl_cv_next_stdio_h" >&6; }
  36973.      fi
  36974.      NEXT_STDIO_H=$gl_cv_next_stdio_h
  36975.  
  36976.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  36977.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  36978.        gl_next_as_first_directive='<'stdio.h'>'
  36979.      else
  36980.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  36981.        gl_next_as_first_directive=$gl_cv_next_stdio_h
  36982.      fi
  36983.      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
  36984.  
  36985.  
  36986.  
  36987.  
  36988.  
  36989.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
  36990. $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
  36991. if ${gl_cv_func_printf_attribute_flavor+:} false; then :
  36992.   $as_echo_n "(cached) " >&6
  36993. else
  36994.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36995. /* end confdefs.h.  */
  36996.  
  36997.        #define __STDC_FORMAT_MACROS 1
  36998.        #include <stdio.h>
  36999.        #include <inttypes.h>
  37000.        /* For non-mingw systems, compilation will trivially succeed.
  37001.           For mingw, compilation will succeed for older mingw (system
  37002.           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
  37003.        #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
  37004.          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
  37005.        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
  37006.        #endif
  37007.  
  37008. int
  37009. main ()
  37010. {
  37011.  
  37012.   ;
  37013.   return 0;
  37014. }
  37015. _ACEOF
  37016. if ac_fn_c_try_compile "$LINENO"; then :
  37017.   gl_cv_func_printf_attribute_flavor=system
  37018. else
  37019.   gl_cv_func_printf_attribute_flavor=gnu
  37020. fi
  37021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37022. fi
  37023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
  37024. $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
  37025.   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
  37026.  
  37027. $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
  37028.  
  37029.   fi
  37030.  
  37031.       GNULIB_FSCANF=1
  37032.  
  37033.  
  37034. cat >>confdefs.h <<_ACEOF
  37035. #define GNULIB_FSCANF 1
  37036. _ACEOF
  37037.  
  37038.  
  37039.   GNULIB_SCANF=1
  37040.  
  37041.  
  37042. cat >>confdefs.h <<_ACEOF
  37043. #define GNULIB_SCANF 1
  37044. _ACEOF
  37045.  
  37046.  
  37047.   GNULIB_FGETC=1
  37048.   GNULIB_GETC=1
  37049.   GNULIB_GETCHAR=1
  37050.   GNULIB_FGETS=1
  37051.   GNULIB_FREAD=1
  37052.  
  37053.  
  37054.       GNULIB_FPRINTF=1
  37055.   GNULIB_PRINTF=1
  37056.   GNULIB_VFPRINTF=1
  37057.   GNULIB_VPRINTF=1
  37058.   GNULIB_FPUTC=1
  37059.   GNULIB_PUTC=1
  37060.   GNULIB_PUTCHAR=1
  37061.   GNULIB_FPUTS=1
  37062.   GNULIB_PUTS=1
  37063.   GNULIB_FWRITE=1
  37064.  
  37065.  
  37066.  
  37067.  
  37068.     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
  37069.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  37070.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  37071. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  37072. if eval \${$as_gl_Symbol+:} false; then :
  37073.   $as_echo_n "(cached) " >&6
  37074. else
  37075.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37076. /* end confdefs.h.  */
  37077. #include <stdio.h>
  37078.  
  37079. int
  37080. main ()
  37081. {
  37082. #undef $gl_func
  37083.   (void) $gl_func;
  37084.   ;
  37085.   return 0;
  37086. }
  37087. _ACEOF
  37088. if ac_fn_c_try_compile "$LINENO"; then :
  37089.   eval "$as_gl_Symbol=yes"
  37090. else
  37091.   eval "$as_gl_Symbol=no"
  37092. fi
  37093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37094. fi
  37095. eval ac_res=\$$as_gl_Symbol
  37096.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  37097. $as_echo "$ac_res" >&6; }
  37098.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  37099.   cat >>confdefs.h <<_ACEOF
  37100. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  37101. _ACEOF
  37102.  
  37103.                      eval ac_cv_have_decl_$gl_func=yes
  37104. fi
  37105.       done
  37106.  
  37107.  
  37108.  
  37109.  
  37110.  
  37111.  
  37112.  
  37113.  
  37114.  
  37115.  
  37116.  
  37117.  
  37118.      if test $gl_cv_have_include_next = yes; then
  37119.        gl_cv_next_stdlib_h='<'stdlib.h'>'
  37120.      else
  37121.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
  37122. $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
  37123. if ${gl_cv_next_stdlib_h+:} false; then :
  37124.   $as_echo_n "(cached) " >&6
  37125. else
  37126.  
  37127.  
  37128.  
  37129.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37130. /* end confdefs.h.  */
  37131. #include <stdlib.h>
  37132. _ACEOF
  37133.                 case "$host_os" in
  37134.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  37135.     *)    gl_absname_cpp="$ac_cpp" ;;
  37136.   esac
  37137.  
  37138.   case "$host_os" in
  37139.     mingw*)
  37140.                                           gl_dirsep_regex='[/\\]'
  37141.       ;;
  37142.     *)
  37143.       gl_dirsep_regex='\/'
  37144.       ;;
  37145.   esac
  37146.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  37147.   gl_header_literal_regex=`echo 'stdlib.h' \
  37148.                            | sed -e "$gl_make_literal_regex_sed"`
  37149.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  37150.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  37151.      s|^/[^/]|//&|
  37152.      p
  37153.      q
  37154.    }'
  37155.  
  37156.         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  37157.   sed -n "$gl_absolute_header_sed"`
  37158.  
  37159.            gl_header=$gl_cv_absolute_stdlib_h
  37160.            gl_cv_next_stdlib_h='"'$gl_header'"'
  37161.  
  37162.  
  37163. fi
  37164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
  37165. $as_echo "$gl_cv_next_stdlib_h" >&6; }
  37166.      fi
  37167.      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
  37168.  
  37169.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  37170.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  37171.        gl_next_as_first_directive='<'stdlib.h'>'
  37172.      else
  37173.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  37174.        gl_next_as_first_directive=$gl_cv_next_stdlib_h
  37175.      fi
  37176.      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
  37177.  
  37178.  
  37179.  
  37180.  
  37181.  
  37182.  
  37183.     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
  37184.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  37185.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  37186. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  37187. if eval \${$as_gl_Symbol+:} false; then :
  37188.   $as_echo_n "(cached) " >&6
  37189. else
  37190.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37191. /* end confdefs.h.  */
  37192. #include <stdlib.h>
  37193. #if HAVE_SYS_LOADAVG_H
  37194. # include <sys/loadavg.h>
  37195. #endif
  37196. #if HAVE_RANDOM_H
  37197. # include <random.h>
  37198. #endif
  37199.  
  37200. int
  37201. main ()
  37202. {
  37203. #undef $gl_func
  37204.   (void) $gl_func;
  37205.   ;
  37206.   return 0;
  37207. }
  37208. _ACEOF
  37209. if ac_fn_c_try_compile "$LINENO"; then :
  37210.   eval "$as_gl_Symbol=yes"
  37211. else
  37212.   eval "$as_gl_Symbol=no"
  37213. fi
  37214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37215. fi
  37216. eval ac_res=\$$as_gl_Symbol
  37217.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  37218. $as_echo "$ac_res" >&6; }
  37219.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  37220.   cat >>confdefs.h <<_ACEOF
  37221. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  37222. _ACEOF
  37223.  
  37224.                      eval ac_cv_have_decl_$gl_func=yes
  37225. fi
  37226.       done
  37227.  
  37228.  
  37229.  
  37230.  
  37231.  
  37232.  
  37233.   :
  37234.  
  37235.  
  37236.  
  37237.  
  37238.  
  37239.   if test $ac_cv_func_strdup = yes; then
  37240.     if test $gl_cv_func_malloc_posix != yes; then
  37241.       REPLACE_STRDUP=1
  37242.     fi
  37243.   fi
  37244.  
  37245.   :
  37246.  
  37247.  
  37248.  
  37249.  
  37250.  
  37251.   if test $ac_cv_have_decl_strdup = no; then
  37252.     HAVE_DECL_STRDUP=0
  37253.   fi
  37254.  
  37255.   if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
  37256.  
  37257.  
  37258.  
  37259.  
  37260.  
  37261.  
  37262.  
  37263.  
  37264.   ggl_LIBOBJS="$ggl_LIBOBJS strdup.$ac_objext"
  37265.  
  37266.     :
  37267.   fi
  37268.  
  37269.  
  37270.  
  37271.  
  37272.  
  37273.           GNULIB_STRDUP=1
  37274.  
  37275.  
  37276.  
  37277.  
  37278.  
  37279. $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
  37280.  
  37281.  
  37282.  
  37283.  
  37284.  
  37285.  
  37286.  
  37287.  
  37288.   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
  37289.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
  37290. $as_echo_n "checking for working strerror function... " >&6; }
  37291. if ${gl_cv_func_working_strerror+:} false; then :
  37292.   $as_echo_n "(cached) " >&6
  37293. else
  37294.   if test "$cross_compiling" = yes; then :
  37295.   case "$host_os" in
  37296.                    # Guess yes on glibc systems.
  37297.            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
  37298.                    # If we don't know, assume the worst.
  37299.            *)      gl_cv_func_working_strerror="guessing no" ;;
  37300.          esac
  37301.  
  37302. else
  37303.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37304. /* end confdefs.h.  */
  37305. #include <string.h>
  37306.  
  37307. int
  37308. main ()
  37309. {
  37310. if (!*strerror (-2)) return 1;
  37311.   ;
  37312.   return 0;
  37313. }
  37314. _ACEOF
  37315. if ac_fn_c_try_run "$LINENO"; then :
  37316.   gl_cv_func_working_strerror=yes
  37317. else
  37318.   gl_cv_func_working_strerror=no
  37319. fi
  37320. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  37321.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  37322. fi
  37323.  
  37324.  
  37325. fi
  37326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
  37327. $as_echo "$gl_cv_func_working_strerror" >&6; }
  37328.     case "$gl_cv_func_working_strerror" in
  37329.       *yes) ;;
  37330.       *)
  37331.                         REPLACE_STRERROR=1
  37332.         ;;
  37333.     esac
  37334.  
  37335.   else
  37336.             REPLACE_STRERROR=1
  37337.   fi
  37338.  
  37339.   if test $REPLACE_STRERROR = 1; then
  37340.  
  37341.  
  37342.  
  37343.  
  37344.  
  37345.  
  37346.  
  37347.  
  37348.   ggl_LIBOBJS="$ggl_LIBOBJS strerror.$ac_objext"
  37349.  
  37350.   fi
  37351.  
  37352.  
  37353. cat >>confdefs.h <<_ACEOF
  37354. #define GNULIB_STRERROR 1
  37355. _ACEOF
  37356.  
  37357.  
  37358.  
  37359.  
  37360.  
  37361.  
  37362.  
  37363.           GNULIB_STRERROR=1
  37364.  
  37365.  
  37366.  
  37367.  
  37368.  
  37369. $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
  37370.  
  37371.  
  37372.  
  37373.  
  37374.  
  37375.   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
  37376.  
  37377.  
  37378.  
  37379.  
  37380.  
  37381.  
  37382.  
  37383.  
  37384.   ggl_LIBOBJS="$ggl_LIBOBJS strerror-override.$ac_objext"
  37385.  
  37386.  
  37387.  
  37388.  
  37389.  
  37390.   :
  37391.  
  37392.  
  37393.  
  37394.  
  37395.  
  37396.   if test $ac_cv_header_sys_socket_h != yes; then
  37397.                     for ac_header in winsock2.h
  37398. do :
  37399.   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  37400. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  37401.   cat >>confdefs.h <<_ACEOF
  37402. #define HAVE_WINSOCK2_H 1
  37403. _ACEOF
  37404.  
  37405. fi
  37406.  
  37407. done
  37408.  
  37409.   fi
  37410.   if test "$ac_cv_header_winsock2_h" = yes; then
  37411.     HAVE_WINSOCK2_H=1
  37412.     UNISTD_H_HAVE_WINSOCK2_H=1
  37413.     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  37414.   else
  37415.     HAVE_WINSOCK2_H=0
  37416.   fi
  37417.  
  37418.  
  37419.   fi
  37420.  
  37421.  
  37422.  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
  37423.  
  37424.  
  37425.  
  37426.  
  37427.  
  37428.   :
  37429.  
  37430.  
  37431.  
  37432.  
  37433.  
  37434.  
  37435.  
  37436. $as_echo "#define my_strftime nstrftime" >>confdefs.h
  37437.  
  37438.  
  37439.  
  37440.  
  37441.  
  37442.  
  37443.  
  37444.  
  37445.  
  37446.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
  37447. $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
  37448. if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
  37449.   $as_echo_n "(cached) " >&6
  37450. else
  37451.  
  37452.                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37453. /* end confdefs.h.  */
  37454. #include <sys/select.h>
  37455. int
  37456. main ()
  37457. {
  37458. struct timeval b;
  37459.   ;
  37460.   return 0;
  37461. }
  37462. _ACEOF
  37463. if ac_fn_c_try_compile "$LINENO"; then :
  37464.   gl_cv_header_sys_select_h_selfcontained=yes
  37465. else
  37466.   gl_cv_header_sys_select_h_selfcontained=no
  37467. fi
  37468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37469.                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
  37470.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37471. /* end confdefs.h.  */
  37472. #include <sys/select.h>
  37473. int
  37474. main ()
  37475. {
  37476. int memset; int bzero;
  37477.   ;
  37478.   return 0;
  37479. }
  37480.  
  37481. _ACEOF
  37482. if ac_fn_c_try_compile "$LINENO"; then :
  37483.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37484. /* end confdefs.h.  */
  37485. #include <sys/select.h>
  37486. int
  37487. main ()
  37488. {
  37489.  
  37490.                   #undef memset
  37491.                   #define memset nonexistent_memset
  37492.                   extern
  37493.                   #ifdef __cplusplus
  37494.                   "C"
  37495.                   #endif
  37496.                   void *memset (void *, int, unsigned long);
  37497.                   #undef bzero
  37498.                   #define bzero nonexistent_bzero
  37499.                   extern
  37500.                   #ifdef __cplusplus
  37501.                   "C"
  37502.                   #endif
  37503.                   void bzero (void *, unsigned long);
  37504.                   fd_set fds;
  37505.                   FD_ZERO (&fds);
  37506.  
  37507.   ;
  37508.   return 0;
  37509. }
  37510.  
  37511. _ACEOF
  37512. if ac_fn_c_try_link "$LINENO"; then :
  37513.  
  37514. else
  37515.   gl_cv_header_sys_select_h_selfcontained=no
  37516. fi
  37517. rm -f core conftest.err conftest.$ac_objext \
  37518.     conftest$ac_exeext conftest.$ac_ext
  37519.  
  37520. fi
  37521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37522.       fi
  37523.  
  37524. fi
  37525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
  37526. $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
  37527.  
  37528.  
  37529.  
  37530.  
  37531.  
  37532.  
  37533.   :
  37534.  
  37535.  
  37536.  
  37537.  
  37538.  
  37539.  
  37540.  
  37541.  
  37542.      if test $gl_cv_have_include_next = yes; then
  37543.        gl_cv_next_sys_select_h='<'sys/select.h'>'
  37544.      else
  37545.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
  37546. $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
  37547. if ${gl_cv_next_sys_select_h+:} false; then :
  37548.   $as_echo_n "(cached) " >&6
  37549. else
  37550.  
  37551.              if test $ac_cv_header_sys_select_h = yes; then
  37552.  
  37553.  
  37554.  
  37555.  
  37556.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37557. /* end confdefs.h.  */
  37558. #include <sys/select.h>
  37559. _ACEOF
  37560.                 case "$host_os" in
  37561.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  37562.     *)    gl_absname_cpp="$ac_cpp" ;;
  37563.   esac
  37564.  
  37565.   case "$host_os" in
  37566.     mingw*)
  37567.                                           gl_dirsep_regex='[/\\]'
  37568.       ;;
  37569.     *)
  37570.       gl_dirsep_regex='\/'
  37571.       ;;
  37572.   esac
  37573.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  37574.   gl_header_literal_regex=`echo 'sys/select.h' \
  37575.                            | sed -e "$gl_make_literal_regex_sed"`
  37576.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  37577.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  37578.      s|^/[^/]|//&|
  37579.      p
  37580.      q
  37581.    }'
  37582.  
  37583.         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  37584.   sed -n "$gl_absolute_header_sed"`
  37585.  
  37586.            gl_header=$gl_cv_absolute_sys_select_h
  37587.            gl_cv_next_sys_select_h='"'$gl_header'"'
  37588.           else
  37589.                gl_cv_next_sys_select_h='<'sys/select.h'>'
  37590.              fi
  37591.  
  37592.  
  37593. fi
  37594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
  37595. $as_echo "$gl_cv_next_sys_select_h" >&6; }
  37596.      fi
  37597.      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
  37598.  
  37599.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  37600.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  37601.        gl_next_as_first_directive='<'sys/select.h'>'
  37602.      else
  37603.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  37604.        gl_next_as_first_directive=$gl_cv_next_sys_select_h
  37605.      fi
  37606.      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
  37607.  
  37608.  
  37609.  
  37610.  
  37611.   if test $ac_cv_header_sys_select_h = yes; then
  37612.     HAVE_SYS_SELECT_H=1
  37613.   else
  37614.     HAVE_SYS_SELECT_H=0
  37615.   fi
  37616.  
  37617.  
  37618.  
  37619.  
  37620.  
  37621.   :
  37622.  
  37623.  
  37624.  
  37625.  
  37626.  
  37627.   if test $ac_cv_header_sys_socket_h != yes; then
  37628.                     for ac_header in winsock2.h
  37629. do :
  37630.   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  37631. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  37632.   cat >>confdefs.h <<_ACEOF
  37633. #define HAVE_WINSOCK2_H 1
  37634. _ACEOF
  37635.  
  37636. fi
  37637.  
  37638. done
  37639.  
  37640.   fi
  37641.   if test "$ac_cv_header_winsock2_h" = yes; then
  37642.     HAVE_WINSOCK2_H=1
  37643.     UNISTD_H_HAVE_WINSOCK2_H=1
  37644.     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
  37645.   else
  37646.     HAVE_WINSOCK2_H=0
  37647.   fi
  37648.  
  37649.  
  37650.  
  37651.  
  37652.     for gl_func in pselect select; do
  37653.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  37654.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  37655. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  37656. if eval \${$as_gl_Symbol+:} false; then :
  37657.   $as_echo_n "(cached) " >&6
  37658. else
  37659.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37660. /* end confdefs.h.  */
  37661.  
  37662. /* Some systems require prerequisite headers.  */
  37663. #include <sys/types.h>
  37664. #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
  37665. # include <sys/time.h>
  37666. #endif
  37667. #include <sys/select.h>
  37668.  
  37669. int
  37670. main ()
  37671. {
  37672. #undef $gl_func
  37673.   (void) $gl_func;
  37674.   ;
  37675.   return 0;
  37676. }
  37677. _ACEOF
  37678. if ac_fn_c_try_compile "$LINENO"; then :
  37679.   eval "$as_gl_Symbol=yes"
  37680. else
  37681.   eval "$as_gl_Symbol=no"
  37682. fi
  37683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37684. fi
  37685. eval ac_res=\$$as_gl_Symbol
  37686.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  37687. $as_echo "$ac_res" >&6; }
  37688.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  37689.   cat >>confdefs.h <<_ACEOF
  37690. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  37691. _ACEOF
  37692.  
  37693.                      eval ac_cv_have_decl_$gl_func=yes
  37694. fi
  37695.       done
  37696.  
  37697.  
  37698.  
  37699.  
  37700.  
  37701.  
  37702.  
  37703.  
  37704.  
  37705.  
  37706.  
  37707.  
  37708.  
  37709.  
  37710.  
  37711.  
  37712.   :
  37713.  
  37714.  
  37715.  
  37716.  
  37717.  
  37718.  
  37719.  
  37720.  
  37721.      if test $gl_cv_have_include_next = yes; then
  37722.        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  37723.      else
  37724.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
  37725. $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
  37726. if ${gl_cv_next_sys_stat_h+:} false; then :
  37727.   $as_echo_n "(cached) " >&6
  37728. else
  37729.  
  37730.              if test $ac_cv_header_sys_stat_h = yes; then
  37731.  
  37732.  
  37733.  
  37734.  
  37735.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37736. /* end confdefs.h.  */
  37737. #include <sys/stat.h>
  37738. _ACEOF
  37739.                 case "$host_os" in
  37740.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  37741.     *)    gl_absname_cpp="$ac_cpp" ;;
  37742.   esac
  37743.  
  37744.   case "$host_os" in
  37745.     mingw*)
  37746.                                           gl_dirsep_regex='[/\\]'
  37747.       ;;
  37748.     *)
  37749.       gl_dirsep_regex='\/'
  37750.       ;;
  37751.   esac
  37752.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  37753.   gl_header_literal_regex=`echo 'sys/stat.h' \
  37754.                            | sed -e "$gl_make_literal_regex_sed"`
  37755.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  37756.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  37757.      s|^/[^/]|//&|
  37758.      p
  37759.      q
  37760.    }'
  37761.  
  37762.         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  37763.   sed -n "$gl_absolute_header_sed"`
  37764.  
  37765.            gl_header=$gl_cv_absolute_sys_stat_h
  37766.            gl_cv_next_sys_stat_h='"'$gl_header'"'
  37767.           else
  37768.                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  37769.              fi
  37770.  
  37771.  
  37772. fi
  37773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
  37774. $as_echo "$gl_cv_next_sys_stat_h" >&6; }
  37775.      fi
  37776.      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
  37777.  
  37778.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  37779.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  37780.        gl_next_as_first_directive='<'sys/stat.h'>'
  37781.      else
  37782.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  37783.        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
  37784.      fi
  37785.      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
  37786.  
  37787.  
  37788.  
  37789.  
  37790.  
  37791.  
  37792.  
  37793.  
  37794.  
  37795.  
  37796.  
  37797.   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
  37798.  
  37799. $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
  37800.  
  37801.   fi
  37802.  
  37803.       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
  37804.     #include <sys/stat.h>
  37805. "
  37806. if test "x$ac_cv_type_nlink_t" = xyes; then :
  37807.  
  37808. else
  37809.  
  37810. $as_echo "#define nlink_t int" >>confdefs.h
  37811.  
  37812. fi
  37813.  
  37814.  
  37815.  
  37816.     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
  37817.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  37818.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  37819. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  37820. if eval \${$as_gl_Symbol+:} false; then :
  37821.   $as_echo_n "(cached) " >&6
  37822. else
  37823.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37824. /* end confdefs.h.  */
  37825. #include <sys/stat.h>
  37826.  
  37827. int
  37828. main ()
  37829. {
  37830. #undef $gl_func
  37831.   (void) $gl_func;
  37832.   ;
  37833.   return 0;
  37834. }
  37835. _ACEOF
  37836. if ac_fn_c_try_compile "$LINENO"; then :
  37837.   eval "$as_gl_Symbol=yes"
  37838. else
  37839.   eval "$as_gl_Symbol=no"
  37840. fi
  37841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37842. fi
  37843. eval ac_res=\$$as_gl_Symbol
  37844.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  37845. $as_echo "$ac_res" >&6; }
  37846.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  37847.   cat >>confdefs.h <<_ACEOF
  37848. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  37849. _ACEOF
  37850.  
  37851.                      eval ac_cv_have_decl_$gl_func=yes
  37852. fi
  37853.       done
  37854.  
  37855.  
  37856.  
  37857.  
  37858.  
  37859.  
  37860.  
  37861.  
  37862.  
  37863.  
  37864.  
  37865.  
  37866.  
  37867.  
  37868.  
  37869.  
  37870.  
  37871.   :
  37872.  
  37873.  
  37874.  
  37875.  
  37876.  
  37877.  
  37878.  
  37879.  
  37880.      if test $gl_cv_have_include_next = yes; then
  37881.        gl_cv_next_sys_uio_h='<'sys/uio.h'>'
  37882.      else
  37883.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
  37884. $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
  37885. if ${gl_cv_next_sys_uio_h+:} false; then :
  37886.   $as_echo_n "(cached) " >&6
  37887. else
  37888.  
  37889.              if test $ac_cv_header_sys_uio_h = yes; then
  37890.  
  37891.  
  37892.  
  37893.  
  37894.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37895. /* end confdefs.h.  */
  37896. #include <sys/uio.h>
  37897. _ACEOF
  37898.                 case "$host_os" in
  37899.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  37900.     *)    gl_absname_cpp="$ac_cpp" ;;
  37901.   esac
  37902.  
  37903.   case "$host_os" in
  37904.     mingw*)
  37905.                                           gl_dirsep_regex='[/\\]'
  37906.       ;;
  37907.     *)
  37908.       gl_dirsep_regex='\/'
  37909.       ;;
  37910.   esac
  37911.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  37912.   gl_header_literal_regex=`echo 'sys/uio.h' \
  37913.                            | sed -e "$gl_make_literal_regex_sed"`
  37914.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  37915.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  37916.      s|^/[^/]|//&|
  37917.      p
  37918.      q
  37919.    }'
  37920.  
  37921.         gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  37922.   sed -n "$gl_absolute_header_sed"`
  37923.  
  37924.            gl_header=$gl_cv_absolute_sys_uio_h
  37925.            gl_cv_next_sys_uio_h='"'$gl_header'"'
  37926.           else
  37927.                gl_cv_next_sys_uio_h='<'sys/uio.h'>'
  37928.              fi
  37929.  
  37930.  
  37931. fi
  37932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
  37933. $as_echo "$gl_cv_next_sys_uio_h" >&6; }
  37934.      fi
  37935.      NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
  37936.  
  37937.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  37938.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  37939.        gl_next_as_first_directive='<'sys/uio.h'>'
  37940.      else
  37941.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  37942.        gl_next_as_first_directive=$gl_cv_next_sys_uio_h
  37943.      fi
  37944.      NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
  37945.  
  37946.  
  37947.  
  37948.  
  37949.   if test $ac_cv_header_sys_uio_h = yes; then
  37950.     HAVE_SYS_UIO_H=1
  37951.   else
  37952.     HAVE_SYS_UIO_H=0
  37953.   fi
  37954.  
  37955.  
  37956.  
  37957.  
  37958.  
  37959.  
  37960.  
  37961.  
  37962.  
  37963.  
  37964.  
  37965.  
  37966.       ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
  37967. "
  37968. if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
  37969.   ac_have_decl=1
  37970. else
  37971.   ac_have_decl=0
  37972. fi
  37973.  
  37974. cat >>confdefs.h <<_ACEOF
  37975. #define HAVE_DECL_LOCALTIME_R $ac_have_decl
  37976. _ACEOF
  37977.  
  37978.   if test $ac_cv_have_decl_localtime_r = no; then
  37979.     HAVE_DECL_LOCALTIME_R=0
  37980.   fi
  37981.  
  37982.  
  37983.   :
  37984.  
  37985.  
  37986.  
  37987.  
  37988.  
  37989.   if test $ac_cv_func_localtime_r = yes; then
  37990.     HAVE_LOCALTIME_R=1
  37991.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
  37992. $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
  37993. if ${gl_cv_time_r_posix+:} false; then :
  37994.   $as_echo_n "(cached) " >&6
  37995. else
  37996.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37997. /* end confdefs.h.  */
  37998. #include <time.h>
  37999. int
  38000. main ()
  38001. {
  38002. /* We don't need to append 'restrict's to the argument types,
  38003.                 even though the POSIX signature has the 'restrict's,
  38004.                 since C99 says they can't affect type compatibility.  */
  38005.               struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
  38006.               if (ptr) return 0;
  38007.               /* Check the return type is a pointer.
  38008.                  On HP-UX 10 it is 'int'.  */
  38009.               *localtime_r (0, 0);
  38010.   ;
  38011.   return 0;
  38012. }
  38013.  
  38014. _ACEOF
  38015. if ac_fn_c_try_compile "$LINENO"; then :
  38016.   gl_cv_time_r_posix=yes
  38017. else
  38018.   gl_cv_time_r_posix=no
  38019. fi
  38020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38021.  
  38022. fi
  38023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
  38024. $as_echo "$gl_cv_time_r_posix" >&6; }
  38025.     if test $gl_cv_time_r_posix = yes; then
  38026.       REPLACE_LOCALTIME_R=0
  38027.     else
  38028.       REPLACE_LOCALTIME_R=1
  38029.     fi
  38030.   else
  38031.     HAVE_LOCALTIME_R=0
  38032.   fi
  38033.  
  38034.   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
  38035.  
  38036.  
  38037.  
  38038.  
  38039.  
  38040.  
  38041.  
  38042.  
  38043.   ggl_LIBOBJS="$ggl_LIBOBJS time_r.$ac_objext"
  38044.  
  38045.  
  38046.   :
  38047.  
  38048.   fi
  38049.  
  38050.  
  38051.  
  38052.  
  38053.  
  38054.           GNULIB_TIME_R=1
  38055.  
  38056.  
  38057.  
  38058.  
  38059.  
  38060. $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
  38061.  
  38062.  
  38063.  
  38064.  
  38065.  
  38066.  
  38067.  
  38068.  
  38069.   :
  38070.  
  38071.  
  38072.  
  38073.  
  38074.  
  38075.  
  38076.   ac_fn_c_check_type "$LINENO" "timezone_t" "ac_cv_type_timezone_t" "#include <time.h>
  38077. "
  38078. if test "x$ac_cv_type_timezone_t" = xyes; then :
  38079.  
  38080. cat >>confdefs.h <<_ACEOF
  38081. #define HAVE_TIMEZONE_T 1
  38082. _ACEOF
  38083.  
  38084.  
  38085. fi
  38086.  
  38087.   if test "$ac_cv_type_timezone_t" = yes; then
  38088.     HAVE_TIMEZONE_T=1
  38089.   fi
  38090.  
  38091.   if test "$HAVE_TIMEZONE_T" = 0; then
  38092.  
  38093.  
  38094.  
  38095.  
  38096.  
  38097.  
  38098.  
  38099.  
  38100.   ggl_LIBOBJS="$ggl_LIBOBJS time_rz.$ac_objext"
  38101.  
  38102.   fi
  38103.  
  38104.  
  38105.  
  38106.  
  38107.  
  38108.           GNULIB_TIME_RZ=1
  38109.  
  38110.  
  38111.  
  38112.  
  38113.  
  38114. $as_echo "#define GNULIB_TEST_TIME_RZ 1" >>confdefs.h
  38115.  
  38116.  
  38117.  
  38118.  
  38119.  
  38120.  
  38121.   REPLACE_TIMEGM=0
  38122.  
  38123.   :
  38124.  
  38125.  
  38126.  
  38127.  
  38128.  
  38129.   if test $ac_cv_func_timegm = yes; then
  38130.     if test $gl_cv_func_working_mktime = no; then
  38131.       # Assume that timegm is buggy if mktime is.
  38132.       REPLACE_TIMEGM=1
  38133.     fi
  38134.   else
  38135.     HAVE_TIMEGM=0
  38136.   fi
  38137.  
  38138.   if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
  38139.  
  38140.  
  38141.  
  38142.  
  38143.  
  38144.  
  38145.  
  38146.  
  38147.   ggl_LIBOBJS="$ggl_LIBOBJS timegm.$ac_objext"
  38148.  
  38149.  
  38150.   :
  38151.  
  38152.   fi
  38153.  
  38154.  
  38155.  
  38156.  
  38157.  
  38158.           GNULIB_TIMEGM=1
  38159.  
  38160.  
  38161.  
  38162.  
  38163.  
  38164. $as_echo "#define GNULIB_TEST_TIMEGM 1" >>confdefs.h
  38165.  
  38166.  
  38167.  
  38168.   :
  38169.  
  38170.  
  38171.  
  38172.  
  38173.  
  38174.  
  38175.  
  38176.  
  38177.  
  38178.   :
  38179.  
  38180.  
  38181.  
  38182.  
  38183.  
  38184.  
  38185.  
  38186.  
  38187.      if test $gl_cv_have_include_next = yes; then
  38188.        gl_cv_next_unistd_h='<'unistd.h'>'
  38189.      else
  38190.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
  38191. $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
  38192. if ${gl_cv_next_unistd_h+:} false; then :
  38193.   $as_echo_n "(cached) " >&6
  38194. else
  38195.  
  38196.              if test $ac_cv_header_unistd_h = yes; then
  38197.  
  38198.  
  38199.  
  38200.  
  38201.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38202. /* end confdefs.h.  */
  38203. #include <unistd.h>
  38204. _ACEOF
  38205.                 case "$host_os" in
  38206.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  38207.     *)    gl_absname_cpp="$ac_cpp" ;;
  38208.   esac
  38209.  
  38210.   case "$host_os" in
  38211.     mingw*)
  38212.                                           gl_dirsep_regex='[/\\]'
  38213.       ;;
  38214.     *)
  38215.       gl_dirsep_regex='\/'
  38216.       ;;
  38217.   esac
  38218.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  38219.   gl_header_literal_regex=`echo 'unistd.h' \
  38220.                            | sed -e "$gl_make_literal_regex_sed"`
  38221.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  38222.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  38223.      s|^/[^/]|//&|
  38224.      p
  38225.      q
  38226.    }'
  38227.  
  38228.         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  38229.   sed -n "$gl_absolute_header_sed"`
  38230.  
  38231.            gl_header=$gl_cv_absolute_unistd_h
  38232.            gl_cv_next_unistd_h='"'$gl_header'"'
  38233.           else
  38234.                gl_cv_next_unistd_h='<'unistd.h'>'
  38235.              fi
  38236.  
  38237.  
  38238. fi
  38239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
  38240. $as_echo "$gl_cv_next_unistd_h" >&6; }
  38241.      fi
  38242.      NEXT_UNISTD_H=$gl_cv_next_unistd_h
  38243.  
  38244.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  38245.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  38246.        gl_next_as_first_directive='<'unistd.h'>'
  38247.      else
  38248.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  38249.        gl_next_as_first_directive=$gl_cv_next_unistd_h
  38250.      fi
  38251.      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
  38252.  
  38253.  
  38254.  
  38255.  
  38256.   if test $ac_cv_header_unistd_h = yes; then
  38257.     HAVE_UNISTD_H=1
  38258.   else
  38259.     HAVE_UNISTD_H=0
  38260.   fi
  38261.  
  38262.  
  38263.  
  38264.  
  38265.  
  38266.  
  38267.  
  38268.     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
  38269.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  38270.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  38271. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  38272. if eval \${$as_gl_Symbol+:} false; then :
  38273.   $as_echo_n "(cached) " >&6
  38274. else
  38275.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38276. /* end confdefs.h.  */
  38277.  
  38278. #if HAVE_UNISTD_H
  38279. # include <unistd.h>
  38280. #endif
  38281. /* Some systems declare various items in the wrong headers.  */
  38282. #if !(defined __GLIBC__ && !defined __UCLIBC__)
  38283. # include <fcntl.h>
  38284. # include <stdio.h>
  38285. # include <stdlib.h>
  38286. # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
  38287. #  include <io.h>
  38288. # endif
  38289. #endif
  38290.  
  38291. int
  38292. main ()
  38293. {
  38294. #undef $gl_func
  38295.   (void) $gl_func;
  38296.   ;
  38297.   return 0;
  38298. }
  38299. _ACEOF
  38300. if ac_fn_c_try_compile "$LINENO"; then :
  38301.   eval "$as_gl_Symbol=yes"
  38302. else
  38303.   eval "$as_gl_Symbol=no"
  38304. fi
  38305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38306. fi
  38307. eval ac_res=\$$as_gl_Symbol
  38308.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  38309. $as_echo "$ac_res" >&6; }
  38310.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  38311.   cat >>confdefs.h <<_ACEOF
  38312. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  38313. _ACEOF
  38314.  
  38315.                      eval ac_cv_have_decl_$gl_func=yes
  38316. fi
  38317.       done
  38318.  
  38319.  
  38320.  
  38321.  
  38322.  
  38323.   :
  38324.  
  38325.  
  38326.  
  38327.  
  38328.  
  38329.   if test $ac_cv_have_decl_unsetenv = no; then
  38330.     HAVE_DECL_UNSETENV=0
  38331.   fi
  38332.   for ac_func in unsetenv
  38333. do :
  38334.   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  38335. if test "x$ac_cv_func_unsetenv" = xyes; then :
  38336.   cat >>confdefs.h <<_ACEOF
  38337. #define HAVE_UNSETENV 1
  38338. _ACEOF
  38339.  
  38340. fi
  38341. done
  38342.  
  38343.   if test $ac_cv_func_unsetenv = no; then
  38344.     HAVE_UNSETENV=0
  38345.   else
  38346.     HAVE_UNSETENV=1
  38347.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
  38348. $as_echo_n "checking for unsetenv() return type... " >&6; }
  38349. if ${gt_cv_func_unsetenv_ret+:} false; then :
  38350.   $as_echo_n "(cached) " >&6
  38351. else
  38352.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38353. /* end confdefs.h.  */
  38354.  
  38355. #undef _BSD
  38356. #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
  38357. #include <stdlib.h>
  38358. extern
  38359. #ifdef __cplusplus
  38360. "C"
  38361. #endif
  38362. int unsetenv (const char *name);
  38363.  
  38364. int
  38365. main ()
  38366. {
  38367.  
  38368.   ;
  38369.   return 0;
  38370. }
  38371. _ACEOF
  38372. if ac_fn_c_try_compile "$LINENO"; then :
  38373.   gt_cv_func_unsetenv_ret='int'
  38374. else
  38375.   gt_cv_func_unsetenv_ret='void'
  38376. fi
  38377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38378. fi
  38379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
  38380. $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
  38381.     if test $gt_cv_func_unsetenv_ret = 'void'; then
  38382.  
  38383. $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
  38384.  
  38385.       REPLACE_UNSETENV=1
  38386.     fi
  38387.  
  38388.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
  38389. $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
  38390. if ${gl_cv_func_unsetenv_works+:} false; then :
  38391.   $as_echo_n "(cached) " >&6
  38392. else
  38393.   if test "$cross_compiling" = yes; then :
  38394.   case "$host_os" in
  38395.                  # Guess yes on glibc systems.
  38396.          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
  38397.                  # If we don't know, assume the worst.
  38398.          *)      gl_cv_func_unsetenv_works="guessing no" ;;
  38399.        esac
  38400.  
  38401. else
  38402.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38403. /* end confdefs.h.  */
  38404.  
  38405.        #include <stdlib.h>
  38406.        #include <errno.h>
  38407.        extern char **environ;
  38408.  
  38409. int
  38410. main ()
  38411. {
  38412.  
  38413.        char entry1[] = "a=1";
  38414.        char entry2[] = "b=2";
  38415.        char *env[] = { entry1, entry2, NULL };
  38416.        if (putenv ((char *) "a=1")) return 1;
  38417.        if (putenv (entry2)) return 2;
  38418.        entry2[0] = 'a';
  38419.        unsetenv ("a");
  38420.        if (getenv ("a")) return 3;
  38421.        if (!unsetenv ("") || errno != EINVAL) return 4;
  38422.        entry2[0] = 'b';
  38423.        environ = env;
  38424.        if (!getenv ("a")) return 5;
  38425.        entry2[0] = 'a';
  38426.        unsetenv ("a");
  38427.        if (getenv ("a")) return 6;
  38428.  
  38429.   ;
  38430.   return 0;
  38431. }
  38432. _ACEOF
  38433. if ac_fn_c_try_run "$LINENO"; then :
  38434.   gl_cv_func_unsetenv_works=yes
  38435. else
  38436.   gl_cv_func_unsetenv_works=no
  38437. fi
  38438. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38439.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  38440. fi
  38441.  
  38442. fi
  38443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
  38444. $as_echo "$gl_cv_func_unsetenv_works" >&6; }
  38445.     case "$gl_cv_func_unsetenv_works" in
  38446.       *yes) ;;
  38447.       *)
  38448.         REPLACE_UNSETENV=1
  38449.         ;;
  38450.     esac
  38451.   fi
  38452.  
  38453.   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
  38454.  
  38455.  
  38456.  
  38457.  
  38458.  
  38459.  
  38460.  
  38461.  
  38462.   ggl_LIBOBJS="$ggl_LIBOBJS unsetenv.$ac_objext"
  38463.  
  38464.  
  38465.  
  38466.  
  38467.   :
  38468.  
  38469.  
  38470.  
  38471.  
  38472.  
  38473.  
  38474.   fi
  38475.  
  38476.  
  38477.  
  38478.  
  38479.  
  38480.           GNULIB_UNSETENV=1
  38481.  
  38482.  
  38483.  
  38484.  
  38485.  
  38486. $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
  38487.  
  38488.  
  38489.  
  38490.  
  38491.  
  38492.   :
  38493.  
  38494.  
  38495.  
  38496.  
  38497.  
  38498.   if test $ac_cv_func_vasnprintf = no; then
  38499.  
  38500.  
  38501.   :
  38502.  
  38503.  
  38504.  
  38505.  
  38506.  
  38507.  
  38508.  
  38509.  
  38510.  
  38511.  
  38512.  
  38513.  
  38514.  
  38515.   ggl_LIBOBJS="$ggl_LIBOBJS vasnprintf.$ac_objext"
  38516.  
  38517.  
  38518.  
  38519.  
  38520.  
  38521.  
  38522.  
  38523.  
  38524.  
  38525.   ggl_LIBOBJS="$ggl_LIBOBJS printf-args.$ac_objext"
  38526.  
  38527.  
  38528.  
  38529.  
  38530.  
  38531.  
  38532.  
  38533.  
  38534.  
  38535.   ggl_LIBOBJS="$ggl_LIBOBJS printf-parse.$ac_objext"
  38536.  
  38537.  
  38538.  
  38539.  
  38540.  
  38541.  
  38542.  
  38543.  
  38544.  
  38545.   ggl_LIBOBJS="$ggl_LIBOBJS asnprintf.$ac_objext"
  38546.  
  38547.   if test $ac_cv_func_vasnprintf = yes; then
  38548.  
  38549. $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
  38550.  
  38551.   fi
  38552.  
  38553.  
  38554.  
  38555.  
  38556.  
  38557.  
  38558.  
  38559.  
  38560.  
  38561.  
  38562.  
  38563.   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  38564. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  38565.  
  38566. else
  38567.  
  38568. $as_echo "#define ptrdiff_t long" >>confdefs.h
  38569.  
  38570.  
  38571. fi
  38572.  
  38573.  
  38574.  
  38575.  
  38576.  
  38577.  
  38578.  
  38579.   fi
  38580.  
  38581.  
  38582.  
  38583.  
  38584.  
  38585.  
  38586.  
  38587.  
  38588.  
  38589.  
  38590.   :
  38591.  
  38592.  
  38593.  
  38594.  
  38595.  
  38596.  
  38597.  
  38598.  
  38599.      if test $gl_cv_have_include_next = yes; then
  38600.        gl_cv_next_wchar_h='<'wchar.h'>'
  38601.      else
  38602.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
  38603. $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
  38604. if ${gl_cv_next_wchar_h+:} false; then :
  38605.   $as_echo_n "(cached) " >&6
  38606. else
  38607.  
  38608.              if test $ac_cv_header_wchar_h = yes; then
  38609.  
  38610.  
  38611.  
  38612.  
  38613.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38614. /* end confdefs.h.  */
  38615. #include <wchar.h>
  38616. _ACEOF
  38617.                 case "$host_os" in
  38618.     aix*) gl_absname_cpp="$ac_cpp -C" ;;
  38619.     *)    gl_absname_cpp="$ac_cpp" ;;
  38620.   esac
  38621.  
  38622.   case "$host_os" in
  38623.     mingw*)
  38624.                                           gl_dirsep_regex='[/\\]'
  38625.       ;;
  38626.     *)
  38627.       gl_dirsep_regex='\/'
  38628.       ;;
  38629.   esac
  38630.       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
  38631.   gl_header_literal_regex=`echo 'wchar.h' \
  38632.                            | sed -e "$gl_make_literal_regex_sed"`
  38633.   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
  38634.      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
  38635.      s|^/[^/]|//&|
  38636.      p
  38637.      q
  38638.    }'
  38639.  
  38640.         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  38641.   sed -n "$gl_absolute_header_sed"`
  38642.  
  38643.            gl_header=$gl_cv_absolute_wchar_h
  38644.            gl_cv_next_wchar_h='"'$gl_header'"'
  38645.           else
  38646.                gl_cv_next_wchar_h='<'wchar.h'>'
  38647.              fi
  38648.  
  38649.  
  38650. fi
  38651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
  38652. $as_echo "$gl_cv_next_wchar_h" >&6; }
  38653.      fi
  38654.      NEXT_WCHAR_H=$gl_cv_next_wchar_h
  38655.  
  38656.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  38657.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  38658.        gl_next_as_first_directive='<'wchar.h'>'
  38659.      else
  38660.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  38661.        gl_next_as_first_directive=$gl_cv_next_wchar_h
  38662.      fi
  38663.      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
  38664.  
  38665.  
  38666.  
  38667.  
  38668.   if test $ac_cv_header_wchar_h = yes; then
  38669.     HAVE_WCHAR_H=1
  38670.   else
  38671.     HAVE_WCHAR_H=0
  38672.   fi
  38673.  
  38674.  
  38675.  
  38676.  
  38677.  
  38678.   if test $gt_cv_c_wint_t = yes; then
  38679.     HAVE_WINT_T=1
  38680.   else
  38681.     HAVE_WINT_T=0
  38682.   fi
  38683.  
  38684.  
  38685.  
  38686.     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
  38687.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  38688.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  38689. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  38690. if eval \${$as_gl_Symbol+:} false; then :
  38691.   $as_echo_n "(cached) " >&6
  38692. else
  38693.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38694. /* end confdefs.h.  */
  38695.  
  38696. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  38697.    <wchar.h>.
  38698.    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  38699.    included before <wchar.h>.  */
  38700. #if !(defined __GLIBC__ && !defined __UCLIBC__)
  38701. # include <stddef.h>
  38702. # include <stdio.h>
  38703. # include <time.h>
  38704. #endif
  38705. #include <wchar.h>
  38706.  
  38707. int
  38708. main ()
  38709. {
  38710. #undef $gl_func
  38711.   (void) $gl_func;
  38712.   ;
  38713.   return 0;
  38714. }
  38715. _ACEOF
  38716. if ac_fn_c_try_compile "$LINENO"; then :
  38717.   eval "$as_gl_Symbol=yes"
  38718. else
  38719.   eval "$as_gl_Symbol=no"
  38720. fi
  38721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38722. fi
  38723. eval ac_res=\$$as_gl_Symbol
  38724.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  38725. $as_echo "$ac_res" >&6; }
  38726.     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  38727.   cat >>confdefs.h <<_ACEOF
  38728. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  38729. _ACEOF
  38730.  
  38731.                      eval ac_cv_have_decl_$gl_func=yes
  38732. fi
  38733.       done
  38734.  
  38735.  
  38736.   :
  38737.  
  38738.  
  38739.   for ac_header in stdint.h
  38740. do :
  38741.   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  38742. if test "x$ac_cv_header_stdint_h" = xyes; then :
  38743.   cat >>confdefs.h <<_ACEOF
  38744. #define HAVE_STDINT_H 1
  38745. _ACEOF
  38746.  
  38747. fi
  38748.  
  38749. done
  38750.  
  38751.  
  38752.   # End of code from modules
  38753.  
  38754.  
  38755.  
  38756.  
  38757.  
  38758.  
  38759.  
  38760.  
  38761.  
  38762.   gltests_libdeps=
  38763.   gltests_ltlibdeps=
  38764.  
  38765.  
  38766.  
  38767.  
  38768.  
  38769.  
  38770.  
  38771.  
  38772.  
  38773.   gl_source_base='tests'
  38774.   ggltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
  38775.  
  38776.   gl_module_indicator_condition=$ggltests_WITNESS
  38777.  
  38778.  
  38779.  
  38780.  
  38781.  
  38782.  
  38783.  
  38784.  
  38785.  
  38786.  
  38787.  
  38788.  
  38789.  
  38790.  
  38791.  
  38792.  
  38793. gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
  38794. i\
  38795. 0
  38796. q
  38797. '
  38798. gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
  38799. i\
  38800. 0
  38801. q
  38802. '
  38803. gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
  38804. i\
  38805. 0
  38806. q
  38807. '
  38808.  
  38809.  
  38810.   if test "$HAVE_LIBUNISTRING" = yes; then
  38811.     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
  38812.     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
  38813.     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
  38814.   fi
  38815.  
  38816.  
  38817.    if true; then
  38818.   GL_COND_LIBTOOL_TRUE=
  38819.   GL_COND_LIBTOOL_FALSE='#'
  38820. else
  38821.   GL_COND_LIBTOOL_TRUE='#'
  38822.   GL_COND_LIBTOOL_FALSE=
  38823. fi
  38824.  
  38825.   gl_cond_libtool=true
  38826.   gl_m4_base='lib/unistring/m4'
  38827.  
  38828.  
  38829.  
  38830.  
  38831.  
  38832.  
  38833.  
  38834.  
  38835.  
  38836.   gl_source_base='lib/unistring'
  38837.  
  38838.  
  38839.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
  38840. $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
  38841. if ${gl_cv_c_inline_effective+:} false; then :
  38842.   $as_echo_n "(cached) " >&6
  38843. else
  38844.   if test $ac_cv_c_inline = no; then
  38845.        gl_cv_c_inline_effective=no
  38846.      else
  38847.                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38848. /* end confdefs.h.  */
  38849.  
  38850. int
  38851. main ()
  38852. {
  38853. #ifdef __NO_INLINE__
  38854.                #error "inline is not effective"
  38855.              #endif
  38856.   ;
  38857.   return 0;
  38858. }
  38859. _ACEOF
  38860. if ac_fn_c_try_compile "$LINENO"; then :
  38861.   gl_cv_c_inline_effective=yes
  38862. else
  38863.   gl_cv_c_inline_effective=no
  38864. fi
  38865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38866.      fi
  38867.  
  38868. fi
  38869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
  38870. $as_echo "$gl_cv_c_inline_effective" >&6; }
  38871.   if test $gl_cv_c_inline_effective = yes; then
  38872.  
  38873. $as_echo "#define HAVE_INLINE 1" >>confdefs.h
  38874.  
  38875.   fi
  38876.  
  38877.  
  38878.  
  38879.  
  38880.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
  38881. $as_echo_n "checking for ssize_t... " >&6; }
  38882. if ${gt_cv_ssize_t+:} false; then :
  38883.   $as_echo_n "(cached) " >&6
  38884. else
  38885.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38886. /* end confdefs.h.  */
  38887. #include <sys/types.h>
  38888. int
  38889. main ()
  38890. {
  38891. int x = sizeof (ssize_t *) + sizeof (ssize_t);
  38892.             return !x;
  38893.   ;
  38894.   return 0;
  38895. }
  38896. _ACEOF
  38897. if ac_fn_c_try_compile "$LINENO"; then :
  38898.   gt_cv_ssize_t=yes
  38899. else
  38900.   gt_cv_ssize_t=no
  38901. fi
  38902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38903. fi
  38904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
  38905. $as_echo "$gt_cv_ssize_t" >&6; }
  38906.   if test $gt_cv_ssize_t = no; then
  38907.  
  38908. $as_echo "#define ssize_t int" >>confdefs.h
  38909.  
  38910.   fi
  38911.  
  38912.  
  38913.  
  38914.  
  38915.   # Define two additional variables used in the Makefile substitution.
  38916.  
  38917.   if test "$ac_cv_header_stdbool_h" = yes; then
  38918.     STDBOOL_H=''
  38919.   else
  38920.     STDBOOL_H='stdbool.h'
  38921.   fi
  38922.  
  38923.    if test -n "$STDBOOL_H"; then
  38924.   GL_GENERATE_STDBOOL_H_TRUE=
  38925.   GL_GENERATE_STDBOOL_H_FALSE='#'
  38926. else
  38927.   GL_GENERATE_STDBOOL_H_TRUE='#'
  38928.   GL_GENERATE_STDBOOL_H_FALSE=
  38929. fi
  38930.  
  38931.  
  38932.   if test "$ac_cv_type__Bool" = yes; then
  38933.     HAVE__BOOL=1
  38934.   else
  38935.     HAVE__BOOL=0
  38936.   fi
  38937.  
  38938.  
  38939.  
  38940.  
  38941.  
  38942.  
  38943.  
  38944.       if  { test "$HAVE_LIBUNISTRING" != yes \
  38945.     || {
  38946.  
  38947.  
  38948.  
  38949.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  38950.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  38951.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  38952.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  38953.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
  38954.                          }
  38955.                     }
  38956.                }
  38957.  
  38958.  
  38959.  
  38960.  
  38961.        }
  38962.   }; then
  38963.     LIBUNISTRING_UNICTYPE_H='unictype.h'
  38964.   else
  38965.     LIBUNISTRING_UNICTYPE_H=
  38966.   fi
  38967.  
  38968.  
  38969.  
  38970.  
  38971.        if  { test "$HAVE_LIBUNISTRING" != yes \
  38972.     || {
  38973.  
  38974.  
  38975.  
  38976.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  38977.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  38978.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  38979.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  38980.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  38981.                          }
  38982.                     }
  38983.                }
  38984.  
  38985.  
  38986.  
  38987.  
  38988.        }
  38989.   }; then
  38990.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_TRUE=
  38991.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_FALSE='#'
  38992. else
  38993.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_TRUE='#'
  38994.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_FALSE=
  38995. fi
  38996.  
  38997.  
  38998.  
  38999.  
  39000.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39001.     || {
  39002.  
  39003.  
  39004.  
  39005.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39006.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39007.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39008.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39009.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39010.                          }
  39011.                     }
  39012.                }
  39013.  
  39014.  
  39015.  
  39016.  
  39017.        }
  39018.   }; then
  39019.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_TRUE=
  39020.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_FALSE='#'
  39021. else
  39022.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_TRUE='#'
  39023.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_FALSE=
  39024. fi
  39025.  
  39026.  
  39027.  
  39028.  
  39029.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39030.     || {
  39031.  
  39032.  
  39033.  
  39034.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39035.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39036.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39037.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39038.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39039.                          }
  39040.                     }
  39041.                }
  39042.  
  39043.  
  39044.  
  39045.  
  39046.        }
  39047.   }; then
  39048.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_TRUE=
  39049.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_FALSE='#'
  39050. else
  39051.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_TRUE='#'
  39052.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_FALSE=
  39053. fi
  39054.  
  39055.  
  39056.  
  39057.  
  39058.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39059.     || {
  39060.  
  39061.  
  39062.  
  39063.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39064.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39065.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39066.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39067.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39068.                          }
  39069.                     }
  39070.                }
  39071.  
  39072.  
  39073.  
  39074.  
  39075.        }
  39076.   }; then
  39077.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_TRUE=
  39078.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_FALSE='#'
  39079. else
  39080.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_TRUE='#'
  39081.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_FALSE=
  39082. fi
  39083.  
  39084.  
  39085.  
  39086.  
  39087.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39088.     || {
  39089.  
  39090.  
  39091.  
  39092.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39093.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39094.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39095.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39096.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39097.                          }
  39098.                     }
  39099.                }
  39100.  
  39101.  
  39102.  
  39103.  
  39104.        }
  39105.   }; then
  39106.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_TRUE=
  39107.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_FALSE='#'
  39108. else
  39109.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_TRUE='#'
  39110.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_FALSE=
  39111. fi
  39112.  
  39113.  
  39114.  
  39115.  
  39116.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39117.     || {
  39118.  
  39119.  
  39120.  
  39121.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39122.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39123.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39124.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39125.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39126.                          }
  39127.                     }
  39128.                }
  39129.  
  39130.  
  39131.  
  39132.  
  39133.        }
  39134.   }; then
  39135.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_TRUE=
  39136.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_FALSE='#'
  39137. else
  39138.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_TRUE='#'
  39139.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_FALSE=
  39140. fi
  39141.  
  39142.  
  39143.  
  39144.  
  39145.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39146.     || {
  39147.  
  39148.  
  39149.  
  39150.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39151.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39152.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39153.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39154.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39155.                          }
  39156.                     }
  39157.                }
  39158.  
  39159.  
  39160.  
  39161.  
  39162.        }
  39163.   }; then
  39164.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_TRUE=
  39165.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_FALSE='#'
  39166. else
  39167.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_TRUE='#'
  39168.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_FALSE=
  39169. fi
  39170.  
  39171.  
  39172.  
  39173.  
  39174.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39175.     || {
  39176.  
  39177.  
  39178.  
  39179.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39180.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39181.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39182.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39183.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39184.                          }
  39185.                     }
  39186.                }
  39187.  
  39188.  
  39189.  
  39190.  
  39191.        }
  39192.   }; then
  39193.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_TRUE=
  39194.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_FALSE='#'
  39195. else
  39196.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_TRUE='#'
  39197.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_FALSE=
  39198. fi
  39199.  
  39200.  
  39201.  
  39202.  
  39203.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39204.     || {
  39205.  
  39206.  
  39207.  
  39208.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39209.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39210.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39211.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39212.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39213.                          }
  39214.                     }
  39215.                }
  39216.  
  39217.  
  39218.  
  39219.  
  39220.        }
  39221.   }; then
  39222.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_TRUE=
  39223.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_FALSE='#'
  39224. else
  39225.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_TRUE='#'
  39226.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_FALSE=
  39227. fi
  39228.  
  39229.  
  39230.  
  39231.  
  39232.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39233.     || {
  39234.  
  39235.  
  39236.  
  39237.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39238.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39239.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39240.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39241.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39242.                          }
  39243.                     }
  39244.                }
  39245.  
  39246.  
  39247.  
  39248.  
  39249.        }
  39250.   }; then
  39251.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_TRUE=
  39252.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_FALSE='#'
  39253. else
  39254.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_TRUE='#'
  39255.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_FALSE=
  39256. fi
  39257.  
  39258.  
  39259.  
  39260.  
  39261.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39262.     || {
  39263.  
  39264.  
  39265.  
  39266.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39267.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39268.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39269.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39270.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39271.                          }
  39272.                     }
  39273.                }
  39274.  
  39275.  
  39276.  
  39277.  
  39278.        }
  39279.   }; then
  39280.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_TRUE=
  39281.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_FALSE='#'
  39282. else
  39283.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_TRUE='#'
  39284.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_FALSE=
  39285. fi
  39286.  
  39287.  
  39288.  
  39289.  
  39290.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39291.     || {
  39292.  
  39293.  
  39294.  
  39295.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39296.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39297.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39298.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39299.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39300.                          }
  39301.                     }
  39302.                }
  39303.  
  39304.  
  39305.  
  39306.  
  39307.        }
  39308.   }; then
  39309.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_TRUE=
  39310.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_FALSE='#'
  39311. else
  39312.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_TRUE='#'
  39313.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_FALSE=
  39314. fi
  39315.  
  39316.  
  39317.  
  39318.  
  39319.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39320.     || {
  39321.  
  39322.  
  39323.  
  39324.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39325.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39326.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39327.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39328.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39329.                          }
  39330.                     }
  39331.                }
  39332.  
  39333.  
  39334.  
  39335.  
  39336.        }
  39337.   }; then
  39338.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_TRUE=
  39339.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_FALSE='#'
  39340. else
  39341.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_TRUE='#'
  39342.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_FALSE=
  39343. fi
  39344.  
  39345.  
  39346.  
  39347.  
  39348.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39349.     || {
  39350.  
  39351.  
  39352.  
  39353.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39354.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39355.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39356.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39357.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39358.                          }
  39359.                     }
  39360.                }
  39361.  
  39362.  
  39363.  
  39364.  
  39365.        }
  39366.   }; then
  39367.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_TRUE=
  39368.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_FALSE='#'
  39369. else
  39370.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_TRUE='#'
  39371.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_FALSE=
  39372. fi
  39373.  
  39374.  
  39375.  
  39376.  
  39377.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39378.     || {
  39379.  
  39380.  
  39381.  
  39382.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39383.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39384.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39385.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39386.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39387.                          }
  39388.                     }
  39389.                }
  39390.  
  39391.  
  39392.  
  39393.  
  39394.        }
  39395.   }; then
  39396.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_TRUE=
  39397.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_FALSE='#'
  39398. else
  39399.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_TRUE='#'
  39400.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_FALSE=
  39401. fi
  39402.  
  39403.  
  39404.  
  39405.  
  39406.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39407.     || {
  39408.  
  39409.  
  39410.  
  39411.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39412.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39413.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39414.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39415.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39416.                          }
  39417.                     }
  39418.                }
  39419.  
  39420.  
  39421.  
  39422.  
  39423.        }
  39424.   }; then
  39425.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_TRUE=
  39426.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_FALSE='#'
  39427. else
  39428.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_TRUE='#'
  39429.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_FALSE=
  39430. fi
  39431.  
  39432.  
  39433.  
  39434.  
  39435.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39436.     || {
  39437.  
  39438.  
  39439.  
  39440.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39441.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39442.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39443.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39444.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39445.                          }
  39446.                     }
  39447.                }
  39448.  
  39449.  
  39450.  
  39451.  
  39452.        }
  39453.   }; then
  39454.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_TRUE=
  39455.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_FALSE='#'
  39456. else
  39457.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_TRUE='#'
  39458.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_FALSE=
  39459. fi
  39460.  
  39461.  
  39462.  
  39463.  
  39464.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39465.     || {
  39466.  
  39467.  
  39468.  
  39469.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39470.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39471.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39472.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39473.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39474.                          }
  39475.                     }
  39476.                }
  39477.  
  39478.  
  39479.  
  39480.  
  39481.        }
  39482.   }; then
  39483.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_TRUE=
  39484.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_FALSE='#'
  39485. else
  39486.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_TRUE='#'
  39487.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_FALSE=
  39488. fi
  39489.  
  39490.  
  39491.  
  39492.  
  39493.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39494.     || {
  39495.  
  39496.  
  39497.  
  39498.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39499.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39500.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39501.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39502.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39503.                          }
  39504.                     }
  39505.                }
  39506.  
  39507.  
  39508.  
  39509.  
  39510.        }
  39511.   }; then
  39512.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_TRUE=
  39513.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_FALSE='#'
  39514. else
  39515.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_TRUE='#'
  39516.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_FALSE=
  39517. fi
  39518.  
  39519.  
  39520.  
  39521.  
  39522.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39523.     || {
  39524.  
  39525.  
  39526.  
  39527.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39528.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39529.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39530.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39531.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39532.                          }
  39533.                     }
  39534.                }
  39535.  
  39536.  
  39537.  
  39538.  
  39539.        }
  39540.   }; then
  39541.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_TRUE=
  39542.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_FALSE='#'
  39543. else
  39544.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_TRUE='#'
  39545.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_FALSE=
  39546. fi
  39547.  
  39548.  
  39549.  
  39550.  
  39551.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39552.     || {
  39553.  
  39554.  
  39555.  
  39556.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39557.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39558.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39559.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39560.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39561.                          }
  39562.                     }
  39563.                }
  39564.  
  39565.  
  39566.  
  39567.  
  39568.        }
  39569.   }; then
  39570.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_TRUE=
  39571.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_FALSE='#'
  39572. else
  39573.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_TRUE='#'
  39574.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_FALSE=
  39575. fi
  39576.  
  39577.  
  39578.  
  39579.  
  39580.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39581.     || {
  39582.  
  39583.  
  39584.  
  39585.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39586.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39587.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39588.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39589.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39590.                          }
  39591.                     }
  39592.                }
  39593.  
  39594.  
  39595.  
  39596.  
  39597.        }
  39598.   }; then
  39599.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_TRUE=
  39600.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_FALSE='#'
  39601. else
  39602.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_TRUE='#'
  39603.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_FALSE=
  39604. fi
  39605.  
  39606.  
  39607.  
  39608.  
  39609.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39610.     || {
  39611.  
  39612.  
  39613.  
  39614.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39615.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39616.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39617.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39618.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39619.                          }
  39620.                     }
  39621.                }
  39622.  
  39623.  
  39624.  
  39625.  
  39626.        }
  39627.   }; then
  39628.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_TRUE=
  39629.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_FALSE='#'
  39630. else
  39631.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_TRUE='#'
  39632.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_FALSE=
  39633. fi
  39634.  
  39635.  
  39636.  
  39637.  
  39638.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39639.     || {
  39640.  
  39641.  
  39642.  
  39643.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39644.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39645.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39646.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39647.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39648.                          }
  39649.                     }
  39650.                }
  39651.  
  39652.  
  39653.  
  39654.  
  39655.        }
  39656.   }; then
  39657.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_TRUE=
  39658.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_FALSE='#'
  39659. else
  39660.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_TRUE='#'
  39661.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_FALSE=
  39662. fi
  39663.  
  39664.  
  39665.  
  39666.  
  39667.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39668.     || {
  39669.  
  39670.  
  39671.  
  39672.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39673.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39674.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39675.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39676.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39677.                          }
  39678.                     }
  39679.                }
  39680.  
  39681.  
  39682.  
  39683.  
  39684.        }
  39685.   }; then
  39686.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_TRUE=
  39687.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_FALSE='#'
  39688. else
  39689.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_TRUE='#'
  39690.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_FALSE=
  39691. fi
  39692.  
  39693.  
  39694.  
  39695.  
  39696.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39697.     || {
  39698.  
  39699.  
  39700.  
  39701.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39702.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39703.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39704.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39705.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39706.                          }
  39707.                     }
  39708.                }
  39709.  
  39710.  
  39711.  
  39712.  
  39713.        }
  39714.   }; then
  39715.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_TRUE=
  39716.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_FALSE='#'
  39717. else
  39718.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_TRUE='#'
  39719.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_FALSE=
  39720. fi
  39721.  
  39722.  
  39723.  
  39724.  
  39725.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39726.     || {
  39727.  
  39728.  
  39729.  
  39730.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39731.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39732.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39733.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39734.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39735.                          }
  39736.                     }
  39737.                }
  39738.  
  39739.  
  39740.  
  39741.  
  39742.        }
  39743.   }; then
  39744.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_TRUE=
  39745.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_FALSE='#'
  39746. else
  39747.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_TRUE='#'
  39748.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_FALSE=
  39749. fi
  39750.  
  39751.  
  39752.  
  39753.  
  39754.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39755.     || {
  39756.  
  39757.  
  39758.  
  39759.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39760.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39761.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39762.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39763.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39764.                          }
  39765.                     }
  39766.                }
  39767.  
  39768.  
  39769.  
  39770.  
  39771.        }
  39772.   }; then
  39773.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_TRUE=
  39774.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_FALSE='#'
  39775. else
  39776.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_TRUE='#'
  39777.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_FALSE=
  39778. fi
  39779.  
  39780.  
  39781.  
  39782.  
  39783.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39784.     || {
  39785.  
  39786.  
  39787.  
  39788.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39789.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39790.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39791.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39792.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39793.                          }
  39794.                     }
  39795.                }
  39796.  
  39797.  
  39798.  
  39799.  
  39800.        }
  39801.   }; then
  39802.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_TRUE=
  39803.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_FALSE='#'
  39804. else
  39805.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_TRUE='#'
  39806.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_FALSE=
  39807. fi
  39808.  
  39809.  
  39810.  
  39811.  
  39812.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39813.     || {
  39814.  
  39815.  
  39816.  
  39817.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39818.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39819.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39820.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39821.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39822.                          }
  39823.                     }
  39824.                }
  39825.  
  39826.  
  39827.  
  39828.  
  39829.        }
  39830.   }; then
  39831.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_TRUE=
  39832.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_FALSE='#'
  39833. else
  39834.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_TRUE='#'
  39835.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_FALSE=
  39836. fi
  39837.  
  39838.  
  39839.  
  39840.  
  39841.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39842.     || {
  39843.  
  39844.  
  39845.  
  39846.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39847.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39848.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39849.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39850.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39851.                          }
  39852.                     }
  39853.                }
  39854.  
  39855.  
  39856.  
  39857.  
  39858.        }
  39859.   }; then
  39860.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_TRUE=
  39861.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_FALSE='#'
  39862. else
  39863.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_TRUE='#'
  39864.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_FALSE=
  39865. fi
  39866.  
  39867.  
  39868.  
  39869.  
  39870.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39871.     || {
  39872.  
  39873.  
  39874.  
  39875.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39876.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39877.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39878.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39879.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39880.                          }
  39881.                     }
  39882.                }
  39883.  
  39884.  
  39885.  
  39886.  
  39887.        }
  39888.   }; then
  39889.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_TRUE=
  39890.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_FALSE='#'
  39891. else
  39892.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_TRUE='#'
  39893.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_FALSE=
  39894. fi
  39895.  
  39896.  
  39897.  
  39898.  
  39899.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39900.     || {
  39901.  
  39902.  
  39903.  
  39904.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39905.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39906.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39907.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39908.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39909.                          }
  39910.                     }
  39911.                }
  39912.  
  39913.  
  39914.  
  39915.  
  39916.        }
  39917.   }; then
  39918.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_TRUE=
  39919.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_FALSE='#'
  39920. else
  39921.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_TRUE='#'
  39922.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_FALSE=
  39923. fi
  39924.  
  39925.  
  39926.  
  39927.  
  39928.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39929.     || {
  39930.  
  39931.  
  39932.  
  39933.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39934.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39935.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39936.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39937.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39938.                          }
  39939.                     }
  39940.                }
  39941.  
  39942.  
  39943.  
  39944.  
  39945.        }
  39946.   }; then
  39947.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_TRUE=
  39948.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_FALSE='#'
  39949. else
  39950.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_TRUE='#'
  39951.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_FALSE=
  39952. fi
  39953.  
  39954.  
  39955.  
  39956.  
  39957.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39958.     || {
  39959.  
  39960.  
  39961.  
  39962.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39963.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39964.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39965.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39966.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39967.                          }
  39968.                     }
  39969.                }
  39970.  
  39971.  
  39972.  
  39973.  
  39974.        }
  39975.   }; then
  39976.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_TRUE=
  39977.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_FALSE='#'
  39978. else
  39979.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_TRUE='#'
  39980.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_FALSE=
  39981. fi
  39982.  
  39983.  
  39984.  
  39985.  
  39986.        if  { test "$HAVE_LIBUNISTRING" != yes \
  39987.     || {
  39988.  
  39989.  
  39990.  
  39991.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  39992.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  39993.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  39994.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  39995.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  39996.                          }
  39997.                     }
  39998.                }
  39999.  
  40000.  
  40001.  
  40002.  
  40003.        }
  40004.   }; then
  40005.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_TRUE=
  40006.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_FALSE='#'
  40007. else
  40008.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_TRUE='#'
  40009.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_FALSE=
  40010. fi
  40011.  
  40012.  
  40013.  
  40014.  
  40015.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40016.     || {
  40017.  
  40018.  
  40019.  
  40020.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40021.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40022.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40023.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40024.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40025.                          }
  40026.                     }
  40027.                }
  40028.  
  40029.  
  40030.  
  40031.  
  40032.        }
  40033.   }; then
  40034.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_TRUE=
  40035.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_FALSE='#'
  40036. else
  40037.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_TRUE='#'
  40038.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_FALSE=
  40039. fi
  40040.  
  40041.  
  40042.  
  40043.  
  40044.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40045.     || {
  40046.  
  40047.  
  40048.  
  40049.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40050.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40051.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40052.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40053.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40054.                          }
  40055.                     }
  40056.                }
  40057.  
  40058.  
  40059.  
  40060.  
  40061.        }
  40062.   }; then
  40063.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_TRUE=
  40064.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_FALSE='#'
  40065. else
  40066.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_TRUE='#'
  40067.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_FALSE=
  40068. fi
  40069.  
  40070.  
  40071.  
  40072.  
  40073.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40074.     || {
  40075.  
  40076.  
  40077.  
  40078.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40079.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40080.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40081.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40082.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40083.                          }
  40084.                     }
  40085.                }
  40086.  
  40087.  
  40088.  
  40089.  
  40090.        }
  40091.   }; then
  40092.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_TRUE=
  40093.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_FALSE='#'
  40094. else
  40095.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_TRUE='#'
  40096.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_FALSE=
  40097. fi
  40098.  
  40099.  
  40100.  
  40101.  
  40102.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40103.     || {
  40104.  
  40105.  
  40106.  
  40107.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40108.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40109.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40110.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40111.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40112.                          }
  40113.                     }
  40114.                }
  40115.  
  40116.  
  40117.  
  40118.  
  40119.        }
  40120.   }; then
  40121.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_TRUE=
  40122.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_FALSE='#'
  40123. else
  40124.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_TRUE='#'
  40125.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_FALSE=
  40126. fi
  40127.  
  40128.  
  40129.  
  40130.  
  40131.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40132.     || {
  40133.  
  40134.  
  40135.  
  40136.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40137.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40138.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40139.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40140.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40141.                          }
  40142.                     }
  40143.                }
  40144.  
  40145.  
  40146.  
  40147.  
  40148.        }
  40149.   }; then
  40150.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_TRUE=
  40151.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_FALSE='#'
  40152. else
  40153.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_TRUE='#'
  40154.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_FALSE=
  40155. fi
  40156.  
  40157.  
  40158.  
  40159.  
  40160.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40161.     || {
  40162.  
  40163.  
  40164.  
  40165.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40166.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40167.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40168.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40169.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 5
  40170.                          }
  40171.                     }
  40172.                }
  40173.  
  40174.  
  40175.  
  40176.  
  40177.        }
  40178.   }; then
  40179.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_TRUE=
  40180.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_FALSE='#'
  40181. else
  40182.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_TRUE='#'
  40183.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_FALSE=
  40184. fi
  40185.  
  40186.  
  40187.  
  40188.  
  40189.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40190.     || {
  40191.  
  40192.  
  40193.  
  40194.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40195.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40196.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40197.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40198.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  40199.                          }
  40200.                     }
  40201.                }
  40202.  
  40203.  
  40204.  
  40205.  
  40206.        }
  40207.   }; then
  40208.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_TRUE=
  40209.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_FALSE='#'
  40210. else
  40211.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_TRUE='#'
  40212.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_FALSE=
  40213. fi
  40214.  
  40215.  
  40216.  
  40217.  
  40218.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40219.     || {
  40220.  
  40221.  
  40222.  
  40223.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40224.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40225.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40226.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40227.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 5
  40228.                          }
  40229.                     }
  40230.                }
  40231.  
  40232.  
  40233.  
  40234.  
  40235.        }
  40236.   }; then
  40237.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE=
  40238.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE='#'
  40239. else
  40240.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE='#'
  40241.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE=
  40242. fi
  40243.  
  40244.  
  40245.  
  40246.  
  40247.  
  40248.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40249.     || {
  40250.  
  40251.  
  40252.  
  40253.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40254.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40255.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40256.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40257.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40258.                          }
  40259.                     }
  40260.                }
  40261.  
  40262.  
  40263.  
  40264.  
  40265.        }
  40266.   }; then
  40267.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE=
  40268.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE='#'
  40269. else
  40270.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE='#'
  40271.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE=
  40272. fi
  40273.  
  40274.  
  40275.  
  40276.  
  40277.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40278.     || {
  40279.  
  40280.  
  40281.  
  40282.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40283.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40284.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40285.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40286.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40287.                          }
  40288.                     }
  40289.                }
  40290.  
  40291.  
  40292.  
  40293.  
  40294.        }
  40295.   }; then
  40296.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_TRUE=
  40297.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_FALSE='#'
  40298. else
  40299.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_TRUE='#'
  40300.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_FALSE=
  40301. fi
  40302.  
  40303.  
  40304.  
  40305.  
  40306.  
  40307.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40308.     || {
  40309.  
  40310.  
  40311.  
  40312.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40313.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40314.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40315.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40316.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 5
  40317.                          }
  40318.                     }
  40319.                }
  40320.  
  40321.  
  40322.  
  40323.  
  40324.        }
  40325.   }; then
  40326.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_TRUE=
  40327.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_FALSE='#'
  40328. else
  40329.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_TRUE='#'
  40330.   LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_FALSE=
  40331. fi
  40332.  
  40333.  
  40334.  
  40335.  
  40336.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40337.     || {
  40338.  
  40339.  
  40340.  
  40341.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40342.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40343.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40344.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40345.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40346.                          }
  40347.                     }
  40348.                }
  40349.  
  40350.  
  40351.  
  40352.  
  40353.        }
  40354.   }; then
  40355.   LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE=
  40356.   LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE='#'
  40357. else
  40358.   LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE='#'
  40359.   LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE=
  40360. fi
  40361.  
  40362.  
  40363.  
  40364.  
  40365.  
  40366.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40367.     || {
  40368.  
  40369.  
  40370.  
  40371.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40372.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40373.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40374.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40375.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40376.                          }
  40377.                     }
  40378.                }
  40379.  
  40380.  
  40381.  
  40382.  
  40383.        }
  40384.   }; then
  40385.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_TRUE=
  40386.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_FALSE='#'
  40387. else
  40388.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_TRUE='#'
  40389.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_FALSE=
  40390. fi
  40391.  
  40392.  
  40393.  
  40394.  
  40395.  
  40396.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40397.     || {
  40398.  
  40399.  
  40400.  
  40401.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40402.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40403.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40404.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40405.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40406.                          }
  40407.                     }
  40408.                }
  40409.  
  40410.  
  40411.  
  40412.  
  40413.        }
  40414.   }; then
  40415.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_TRUE=
  40416.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_FALSE='#'
  40417. else
  40418.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_TRUE='#'
  40419.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_FALSE=
  40420. fi
  40421.  
  40422.  
  40423.  
  40424.  
  40425.  
  40426.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40427.     || {
  40428.  
  40429.  
  40430.  
  40431.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40432.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40433.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40434.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40435.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40436.                          }
  40437.                     }
  40438.                }
  40439.  
  40440.  
  40441.  
  40442.  
  40443.        }
  40444.   }; then
  40445.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_TRUE=
  40446.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_FALSE='#'
  40447. else
  40448.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_TRUE='#'
  40449.   LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_FALSE=
  40450. fi
  40451.  
  40452.  
  40453.  
  40454.  
  40455.       if  { test "$HAVE_LIBUNISTRING" != yes \
  40456.     || {
  40457.  
  40458.  
  40459.  
  40460.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40461.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40462.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40463.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40464.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
  40465.                          }
  40466.                     }
  40467.                }
  40468.  
  40469.  
  40470.  
  40471.  
  40472.        }
  40473.   }; then
  40474.     LIBUNISTRING_UNINORM_H='uninorm.h'
  40475.   else
  40476.     LIBUNISTRING_UNINORM_H=
  40477.   fi
  40478.  
  40479.  
  40480.  
  40481.  
  40482.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40483.     || {
  40484.  
  40485.  
  40486.  
  40487.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40488.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40489.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40490.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40491.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40492.                          }
  40493.                     }
  40494.                }
  40495.  
  40496.  
  40497.  
  40498.  
  40499.        }
  40500.   }; then
  40501.   LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE=
  40502.   LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE='#'
  40503. else
  40504.   LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE='#'
  40505.   LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE=
  40506. fi
  40507.  
  40508.  
  40509.  
  40510.  
  40511.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40512.     || {
  40513.  
  40514.  
  40515.  
  40516.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40517.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40518.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40519.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40520.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40521.                          }
  40522.                     }
  40523.                }
  40524.  
  40525.  
  40526.  
  40527.  
  40528.        }
  40529.   }; then
  40530.   LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_TRUE=
  40531.   LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_FALSE='#'
  40532. else
  40533.   LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_TRUE='#'
  40534.   LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_FALSE=
  40535. fi
  40536.  
  40537.  
  40538.  
  40539.  
  40540.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40541.     || {
  40542.  
  40543.  
  40544.  
  40545.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40546.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40547.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40548.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40549.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40550.                          }
  40551.                     }
  40552.                }
  40553.  
  40554.  
  40555.  
  40556.  
  40557.        }
  40558.   }; then
  40559.   LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE=
  40560.   LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE='#'
  40561. else
  40562.   LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE='#'
  40563.   LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE=
  40564. fi
  40565.  
  40566.  
  40567.  
  40568.  
  40569.  
  40570.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40571.     || {
  40572.  
  40573.  
  40574.  
  40575.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40576.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40577.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40578.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40579.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40580.                          }
  40581.                     }
  40582.                }
  40583.  
  40584.  
  40585.  
  40586.  
  40587.        }
  40588.   }; then
  40589.   LIBUNISTRING_COMPILE_UNINORM_NFC_TRUE=
  40590.   LIBUNISTRING_COMPILE_UNINORM_NFC_FALSE='#'
  40591. else
  40592.   LIBUNISTRING_COMPILE_UNINORM_NFC_TRUE='#'
  40593.   LIBUNISTRING_COMPILE_UNINORM_NFC_FALSE=
  40594. fi
  40595.  
  40596.  
  40597.  
  40598.  
  40599.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40600.     || {
  40601.  
  40602.  
  40603.  
  40604.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40605.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40606.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40607.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40608.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40609.                          }
  40610.                     }
  40611.                }
  40612.  
  40613.  
  40614.  
  40615.  
  40616.        }
  40617.   }; then
  40618.   LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE=
  40619.   LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE='#'
  40620. else
  40621.   LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE='#'
  40622.   LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE=
  40623. fi
  40624.  
  40625.  
  40626.  
  40627.  
  40628.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40629.     || {
  40630.  
  40631.  
  40632.  
  40633.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40634.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40635.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40636.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40637.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40638.                          }
  40639.                     }
  40640.                }
  40641.  
  40642.  
  40643.  
  40644.  
  40645.        }
  40646.   }; then
  40647.   LIBUNISTRING_COMPILE_UNINORM_NFKC_TRUE=
  40648.   LIBUNISTRING_COMPILE_UNINORM_NFKC_FALSE='#'
  40649. else
  40650.   LIBUNISTRING_COMPILE_UNINORM_NFKC_TRUE='#'
  40651.   LIBUNISTRING_COMPILE_UNINORM_NFKC_FALSE=
  40652. fi
  40653.  
  40654.  
  40655.  
  40656.  
  40657.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40658.     || {
  40659.  
  40660.  
  40661.  
  40662.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40663.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40664.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40665.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40666.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40667.                          }
  40668.                     }
  40669.                }
  40670.  
  40671.  
  40672.  
  40673.  
  40674.        }
  40675.   }; then
  40676.   LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE=
  40677.   LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE='#'
  40678. else
  40679.   LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE='#'
  40680.   LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE=
  40681. fi
  40682.  
  40683.  
  40684.  
  40685.  
  40686. $as_echo "#define GNULIB_TEST_UNINORM_U16_NORMALIZE 1" >>confdefs.h
  40687.  
  40688.  
  40689.  
  40690.  
  40691.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40692.     || {
  40693.  
  40694.  
  40695.  
  40696.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40697.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40698.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40699.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40700.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40701.                          }
  40702.                     }
  40703.                }
  40704.  
  40705.  
  40706.  
  40707.  
  40708.        }
  40709.   }; then
  40710.   LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_TRUE=
  40711.   LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_FALSE='#'
  40712. else
  40713.   LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_TRUE='#'
  40714.   LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_FALSE=
  40715. fi
  40716.  
  40717.  
  40718.  
  40719.  
  40720. $as_echo "#define GNULIB_TEST_UNINORM_U32_NORMALIZE 1" >>confdefs.h
  40721.  
  40722.  
  40723.  
  40724.  
  40725.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40726.     || {
  40727.  
  40728.  
  40729.  
  40730.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40731.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40732.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40733.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40734.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40735.                          }
  40736.                     }
  40737.                }
  40738.  
  40739.  
  40740.  
  40741.  
  40742.        }
  40743.   }; then
  40744.   LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_TRUE=
  40745.   LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_FALSE='#'
  40746. else
  40747.   LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_TRUE='#'
  40748.   LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_FALSE=
  40749. fi
  40750.  
  40751.  
  40752.  
  40753.  
  40754. $as_echo "#define GNULIB_TEST_UNINORM_U8_NORMALIZE 1" >>confdefs.h
  40755.  
  40756.  
  40757.  
  40758.  
  40759.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40760.     || {
  40761.  
  40762.  
  40763.  
  40764.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40765.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40766.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40767.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40768.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
  40769.                          }
  40770.                     }
  40771.                }
  40772.  
  40773.  
  40774.  
  40775.  
  40776.        }
  40777.   }; then
  40778.   LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE=
  40779.   LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE='#'
  40780. else
  40781.   LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE='#'
  40782.   LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE=
  40783. fi
  40784.  
  40785.  
  40786.  
  40787.  
  40788.       if  { test "$HAVE_LIBUNISTRING" != yes \
  40789.     || {
  40790.  
  40791.  
  40792.  
  40793.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40794.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40795.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40796.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40797.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
  40798.                          }
  40799.                     }
  40800.                }
  40801.  
  40802.  
  40803.  
  40804.  
  40805.        }
  40806.   }; then
  40807.     LIBUNISTRING_UNISTR_H='unistr.h'
  40808.   else
  40809.     LIBUNISTRING_UNISTR_H=
  40810.   fi
  40811.  
  40812.  
  40813.  
  40814.  
  40815.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40816.     || {
  40817.  
  40818.  
  40819.  
  40820.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40821.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40822.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40823.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40824.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  40825.                          }
  40826.                     }
  40827.                }
  40828.  
  40829.  
  40830.  
  40831.  
  40832.        }
  40833.   }; then
  40834.   LIBUNISTRING_COMPILE_UNISTR_U16_CPY_TRUE=
  40835.   LIBUNISTRING_COMPILE_UNISTR_U16_CPY_FALSE='#'
  40836. else
  40837.   LIBUNISTRING_COMPILE_UNISTR_U16_CPY_TRUE='#'
  40838.   LIBUNISTRING_COMPILE_UNISTR_U16_CPY_FALSE=
  40839. fi
  40840.  
  40841.  
  40842.  
  40843.  
  40844. cat >>confdefs.h <<_ACEOF
  40845. #define GNULIB_UNISTR_U16_MBTOUC_UNSAFE 1
  40846. _ACEOF
  40847.  
  40848.  
  40849.  
  40850.  
  40851.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40852.     || {
  40853.  
  40854.  
  40855.  
  40856.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40857.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40858.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40859.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40860.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  40861.                          }
  40862.                     }
  40863.                }
  40864.  
  40865.  
  40866.  
  40867.  
  40868.        }
  40869.   }; then
  40870.   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_TRUE=
  40871.   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_FALSE='#'
  40872. else
  40873.   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_TRUE='#'
  40874.   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_FALSE=
  40875. fi
  40876.  
  40877.  
  40878.  
  40879.  
  40880. cat >>confdefs.h <<_ACEOF
  40881. #define GNULIB_UNISTR_U16_MBTOUCR 1
  40882. _ACEOF
  40883.  
  40884.  
  40885.  
  40886.  
  40887.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40888.     || {
  40889.  
  40890.  
  40891.  
  40892.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40893.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40894.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40895.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40896.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  40897.                          }
  40898.                     }
  40899.                }
  40900.  
  40901.  
  40902.  
  40903.  
  40904.        }
  40905.   }; then
  40906.   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_TRUE=
  40907.   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_FALSE='#'
  40908. else
  40909.   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_TRUE='#'
  40910.   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_FALSE=
  40911. fi
  40912.  
  40913.  
  40914.  
  40915.  
  40916.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40917.     || {
  40918.  
  40919.  
  40920.  
  40921.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40922.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40923.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40924.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40925.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 3
  40926.                          }
  40927.                     }
  40928.                }
  40929.  
  40930.  
  40931.  
  40932.  
  40933.        }
  40934.   }; then
  40935.   LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_TRUE=
  40936.   LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_FALSE='#'
  40937. else
  40938.   LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_TRUE='#'
  40939.   LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_FALSE=
  40940. fi
  40941.  
  40942.  
  40943.  
  40944.  
  40945. cat >>confdefs.h <<_ACEOF
  40946. #define GNULIB_UNISTR_U16_UCTOMB 1
  40947. _ACEOF
  40948.  
  40949.  
  40950.  
  40951.  
  40952.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40953.     || {
  40954.  
  40955.  
  40956.  
  40957.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40958.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40959.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40960.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40961.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  40962.                          }
  40963.                     }
  40964.                }
  40965.  
  40966.  
  40967.  
  40968.  
  40969.        }
  40970.   }; then
  40971.   LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_TRUE=
  40972.   LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_FALSE='#'
  40973. else
  40974.   LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_TRUE='#'
  40975.   LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_FALSE=
  40976. fi
  40977.  
  40978.  
  40979.  
  40980.  
  40981.        if  { test "$HAVE_LIBUNISTRING" != yes \
  40982.     || {
  40983.  
  40984.  
  40985.  
  40986.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  40987.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  40988.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  40989.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  40990.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  40991.                          }
  40992.                     }
  40993.                }
  40994.  
  40995.  
  40996.  
  40997.  
  40998.        }
  40999.   }; then
  41000.   LIBUNISTRING_COMPILE_UNISTR_U32_CPY_TRUE=
  41001.   LIBUNISTRING_COMPILE_UNISTR_U32_CPY_FALSE='#'
  41002. else
  41003.   LIBUNISTRING_COMPILE_UNISTR_U32_CPY_TRUE='#'
  41004.   LIBUNISTRING_COMPILE_UNISTR_U32_CPY_FALSE=
  41005. fi
  41006.  
  41007.  
  41008.  
  41009.  
  41010. cat >>confdefs.h <<_ACEOF
  41011. #define GNULIB_UNISTR_U32_MBTOUC_UNSAFE 1
  41012. _ACEOF
  41013.  
  41014.  
  41015.  
  41016.  
  41017.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41018.     || {
  41019.  
  41020.  
  41021.  
  41022.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41023.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41024.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41025.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41026.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  41027.                          }
  41028.                     }
  41029.                }
  41030.  
  41031.  
  41032.  
  41033.  
  41034.        }
  41035.   }; then
  41036.   LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_TRUE=
  41037.   LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_FALSE='#'
  41038. else
  41039.   LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_TRUE='#'
  41040.   LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_FALSE=
  41041. fi
  41042.  
  41043.  
  41044.  
  41045.  
  41046.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41047.     || {
  41048.  
  41049.  
  41050.  
  41051.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41052.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41053.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41054.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41055.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  41056.                          }
  41057.                     }
  41058.                }
  41059.  
  41060.  
  41061.  
  41062.  
  41063.        }
  41064.   }; then
  41065.   LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_TRUE=
  41066.   LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_FALSE='#'
  41067. else
  41068.   LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_TRUE='#'
  41069.   LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_FALSE=
  41070. fi
  41071.  
  41072.  
  41073.  
  41074.  
  41075. cat >>confdefs.h <<_ACEOF
  41076. #define GNULIB_UNISTR_U32_UCTOMB 1
  41077. _ACEOF
  41078.  
  41079.  
  41080.  
  41081.  
  41082.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41083.     || {
  41084.  
  41085.  
  41086.  
  41087.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41088.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41089.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41090.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41091.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  41092.                          }
  41093.                     }
  41094.                }
  41095.  
  41096.  
  41097.  
  41098.  
  41099.        }
  41100.   }; then
  41101.   LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_TRUE=
  41102.   LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_FALSE='#'
  41103. else
  41104.   LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_TRUE='#'
  41105.   LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_FALSE=
  41106. fi
  41107.  
  41108.  
  41109.  
  41110.  
  41111.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41112.     || {
  41113.  
  41114.  
  41115.  
  41116.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41117.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41118.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41119.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41120.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  41121.                          }
  41122.                     }
  41123.                }
  41124.  
  41125.  
  41126.  
  41127.  
  41128.        }
  41129.   }; then
  41130.   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
  41131.   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
  41132. else
  41133.   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
  41134.   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
  41135. fi
  41136.  
  41137.  
  41138.  
  41139.  
  41140.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41141.     || {
  41142.  
  41143.  
  41144.  
  41145.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41146.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41147.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41148.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41149.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  41150.                          }
  41151.                     }
  41152.                }
  41153.  
  41154.  
  41155.  
  41156.  
  41157.        }
  41158.   }; then
  41159.   LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE=
  41160.   LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE='#'
  41161. else
  41162.   LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE='#'
  41163.   LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE=
  41164. fi
  41165.  
  41166.  
  41167.  
  41168.  
  41169. cat >>confdefs.h <<_ACEOF
  41170. #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
  41171. _ACEOF
  41172.  
  41173.  
  41174.  
  41175.  
  41176.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41177.     || {
  41178.  
  41179.  
  41180.  
  41181.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41182.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41183.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41184.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41185.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
  41186.                          }
  41187.                     }
  41188.                }
  41189.  
  41190.  
  41191.  
  41192.  
  41193.        }
  41194.   }; then
  41195.   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
  41196.   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
  41197. else
  41198.   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
  41199.   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
  41200. fi
  41201.  
  41202.  
  41203.  
  41204.  
  41205. cat >>confdefs.h <<_ACEOF
  41206. #define GNULIB_UNISTR_U8_MBTOUCR 1
  41207. _ACEOF
  41208.  
  41209.  
  41210.  
  41211.  
  41212.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41213.     || {
  41214.  
  41215.  
  41216.  
  41217.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41218.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41219.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41220.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41221.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  41222.                          }
  41223.                     }
  41224.                }
  41225.  
  41226.  
  41227.  
  41228.  
  41229.        }
  41230.   }; then
  41231.   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
  41232.   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
  41233. else
  41234.   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
  41235.   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
  41236. fi
  41237.  
  41238.  
  41239.  
  41240.  
  41241.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41242.     || {
  41243.  
  41244.  
  41245.  
  41246.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41247.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41248.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41249.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41250.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 3
  41251.                          }
  41252.                     }
  41253.                }
  41254.  
  41255.  
  41256.  
  41257.  
  41258.        }
  41259.   }; then
  41260.   LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_TRUE=
  41261.   LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_FALSE='#'
  41262. else
  41263.   LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_TRUE='#'
  41264.   LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_FALSE=
  41265. fi
  41266.  
  41267.  
  41268.  
  41269.  
  41270.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41271.     || {
  41272.  
  41273.  
  41274.  
  41275.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41276.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41277.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41278.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41279.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 3
  41280.                          }
  41281.                     }
  41282.                }
  41283.  
  41284.  
  41285.  
  41286.  
  41287.        }
  41288.   }; then
  41289.   LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_TRUE=
  41290.   LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_FALSE='#'
  41291. else
  41292.   LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_TRUE='#'
  41293.   LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_FALSE=
  41294. fi
  41295.  
  41296.  
  41297.  
  41298.  
  41299. cat >>confdefs.h <<_ACEOF
  41300. #define GNULIB_UNISTR_U8_UCTOMB 1
  41301. _ACEOF
  41302.  
  41303.  
  41304.  
  41305.  
  41306.        if  { test "$HAVE_LIBUNISTRING" != yes \
  41307.     || {
  41308.  
  41309.  
  41310.  
  41311.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41312.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41313.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41314.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41315.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
  41316.                          }
  41317.                     }
  41318.                }
  41319.  
  41320.  
  41321.  
  41322.  
  41323.        }
  41324.   }; then
  41325.   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
  41326.   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
  41327. else
  41328.   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
  41329.   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
  41330. fi
  41331.  
  41332.  
  41333.  
  41334.  
  41335.       if  { test "$HAVE_LIBUNISTRING" != yes \
  41336.     || {
  41337.  
  41338.  
  41339.  
  41340.             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
  41341.             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
  41342.                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
  41343.                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
  41344.                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
  41345.                          }
  41346.                     }
  41347.                }
  41348.  
  41349.  
  41350.  
  41351.  
  41352.        }
  41353.   }; then
  41354.     LIBUNISTRING_UNITYPES_H='unitypes.h'
  41355.   else
  41356.     LIBUNISTRING_UNITYPES_H=
  41357.   fi
  41358.  
  41359.  
  41360.   # End of code from modules
  41361.  
  41362.  
  41363.  
  41364.  
  41365.  
  41366.  
  41367.  
  41368.   gltests_libdeps=
  41369.   gltests_ltlibdeps=
  41370.  
  41371.  
  41372.  
  41373.  
  41374.  
  41375.  
  41376.  
  41377.  
  41378.  
  41379.   gl_source_base='tests'
  41380.   unistringtests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
  41381.  
  41382.   gl_module_indicator_condition=$unistringtests_WITNESS
  41383.  
  41384.  
  41385.  
  41386.  
  41387.  
  41388.  
  41389.  
  41390.  
  41391.  
  41392.  
  41393.  
  41394. # disable the extended test suite at tests/suite if asked, or if we are not running in git master
  41395. # Check whether --enable-full-test-suite was given.
  41396. if test "${enable_full_test_suite+set}" = set; then :
  41397.   enableval=$enable_full_test_suite; full_test_suite=$enableval
  41398. else
  41399.   full_test_suite=yes
  41400. fi
  41401.  
  41402.  
  41403. # test if we are in git master or in release build. In release
  41404. # builds we do not use valgrind.
  41405. SUITE_FILE="${srcdir}/tests/suite/mini-eagain2.c"
  41406. if test "$full_test_suite" = yes && test ! -f "$SUITE_FILE";then
  41407.         full_test_suite=no
  41408. fi
  41409.  
  41410.  if test "$full_test_suite" = "yes"; then
  41411.   WANT_TEST_SUITE_TRUE=
  41412.   WANT_TEST_SUITE_FALSE='#'
  41413. else
  41414.   WANT_TEST_SUITE_TRUE='#'
  41415.   WANT_TEST_SUITE_FALSE=
  41416. fi
  41417.  
  41418.  
  41419.  
  41420. # Check whether --enable-gcc-warnings was given.
  41421. if test "${enable_gcc_warnings+set}" = set; then :
  41422.   enableval=$enable_gcc_warnings; case $enableval in
  41423.      yes|no) ;;
  41424.      *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
  41425.    esac
  41426.    gl_gcc_warnings=$enableval
  41427. else
  41428.   gl_gcc_warnings=yes
  41429.  
  41430. fi
  41431.  
  41432.  
  41433. if test "$gl_gcc_warnings" = yes; then
  41434.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
  41435. $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
  41436. if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
  41437.   $as_echo_n "(cached) " >&6
  41438. else
  41439.  
  41440.   gl_save_compiler_FLAGS="$CFLAGS"
  41441.   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  41442.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41443. /* end confdefs.h.  */
  41444.  
  41445. int
  41446. main ()
  41447. {
  41448.  
  41449.   ;
  41450.   return 0;
  41451. }
  41452. _ACEOF
  41453. if ac_fn_c_try_link "$LINENO"; then :
  41454.   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
  41455. else
  41456.   gl_cv_warn_c__Werror__Wunknown_warning_option=no
  41457. fi
  41458. rm -f core conftest.err conftest.$ac_objext \
  41459.     conftest$ac_exeext conftest.$ac_ext
  41460.   CFLAGS="$gl_save_compiler_FLAGS"
  41461.  
  41462. fi
  41463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
  41464. $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
  41465. if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
  41466.   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  41467. else
  41468.   gl_unknown_warnings_are_errors=
  41469. fi
  41470.  
  41471.  
  41472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wtype-limits" >&5
  41473. $as_echo_n "checking whether C compiler handles -Wtype-limits... " >&6; }
  41474. if ${gl_cv_warn_c__Wtype_limits+:} false; then :
  41475.   $as_echo_n "(cached) " >&6
  41476. else
  41477.  
  41478.   gl_save_compiler_FLAGS="$CFLAGS"
  41479.   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
  41480.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41481. /* end confdefs.h.  */
  41482.  
  41483. int
  41484. main ()
  41485. {
  41486.  
  41487.   ;
  41488.   return 0;
  41489. }
  41490. _ACEOF
  41491. if ac_fn_c_try_link "$LINENO"; then :
  41492.   gl_cv_warn_c__Wtype_limits=yes
  41493. else
  41494.   gl_cv_warn_c__Wtype_limits=no
  41495. fi
  41496. rm -f core conftest.err conftest.$ac_objext \
  41497.     conftest$ac_exeext conftest.$ac_ext
  41498.   CFLAGS="$gl_save_compiler_FLAGS"
  41499.  
  41500. fi
  41501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wtype_limits" >&5
  41502. $as_echo "$gl_cv_warn_c__Wtype_limits" >&6; }
  41503. if test "x$gl_cv_warn_c__Wtype_limits" = xyes; then :
  41504.   as_fn_append WSTACK_CFLAGS " -Wtype-limits"
  41505. fi
  41506.  
  41507.  
  41508.  
  41509.   nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
  41510.   nw="$nw -Wc++-compat"             # We don't care about C++ compilers
  41511.   nw="$nw -Wundef"                  # Warns on '#if GNULIB_FOO' etc in gnulib
  41512.   nw="$nw -Wtraditional"            # Warns on #elif which we use often
  41513.   nw="$nw -Wpadded"                 # Our structs are not padded
  41514.   nw="$nw -Wtraditional-conversion" # Too many warnings for now
  41515.   nw="$nw -Wswitch-default"         # Too many warnings for now
  41516.   nw="$nw -Wformat-y2k"             # Too many warnings for now
  41517.   nw="$nw -Woverlength-strings"     # We use some in tests/
  41518.   nw="$nw -Wvla"                    # There is no point to avoid C99 variable length arrays
  41519.   nw="$nw -Wformat-nonliteral"      # Incompatible with gettext _()
  41520.   nw="$nw -Wformat-signedness"      # Too many to handle
  41521.   nw="$nw -Wstrict-overflow"
  41522.   nw="$nw -Wmissing-noreturn"
  41523.   nw="$nw -Winline"                 # Too compiler dependent
  41524.   nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
  41525.   nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
  41526.   nw="$nw -Wsuggest-attribute=noreturn" # Is it worth using attributes?
  41527.   nw="$nw -Wstack-protector"        # Some functions cannot be protected
  41528.   nw="$nw -Wunsafe-loop-optimizations" # Warnings with no point
  41529.   nw="$nw -Wredundant-decls"        # Some files cannot be compiled with that (gl_fd_to_handle)
  41530.  
  41531.  
  41532.  
  41533.   if test -n "$GCC"; then
  41534.  
  41535.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
  41536. $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
  41537.     if ${gl_cv_cc_nomfi_supported+:} false; then :
  41538.   $as_echo_n "(cached) " >&6
  41539. else
  41540.  
  41541.       gl_save_CFLAGS="$CFLAGS"
  41542.       CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
  41543.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41544. /* end confdefs.h.  */
  41545.  
  41546. int
  41547. main ()
  41548. {
  41549.  
  41550.   ;
  41551.   return 0;
  41552. }
  41553. _ACEOF
  41554. if ac_fn_c_try_compile "$LINENO"; then :
  41555.   gl_cv_cc_nomfi_supported=yes
  41556. else
  41557.   gl_cv_cc_nomfi_supported=no
  41558. fi
  41559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41560.       CFLAGS="$gl_save_CFLAGS"
  41561. fi
  41562.  
  41563.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
  41564. $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
  41565.  
  41566.     if test "$gl_cv_cc_nomfi_supported" = yes; then
  41567.                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
  41568. $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
  41569.       if ${gl_cv_cc_nomfi_needed+:} false; then :
  41570.   $as_echo_n "(cached) " >&6
  41571. else
  41572.  
  41573.         gl_save_CFLAGS="$CFLAGS"
  41574.         CFLAGS="$CFLAGS -W -Werror"
  41575.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41576. /* end confdefs.h.  */
  41577. int f (void)
  41578.                {
  41579.                  typedef struct { int a; int b; } s_t;
  41580.                  s_t s1 = { 0, };
  41581.                  return s1.b;
  41582.                }
  41583.  
  41584. int
  41585. main ()
  41586. {
  41587.  
  41588.   ;
  41589.   return 0;
  41590. }
  41591. _ACEOF
  41592. if ac_fn_c_try_compile "$LINENO"; then :
  41593.   gl_cv_cc_nomfi_needed=no
  41594. else
  41595.   gl_cv_cc_nomfi_needed=yes
  41596. fi
  41597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41598.         CFLAGS="$gl_save_CFLAGS"
  41599.  
  41600. fi
  41601.  
  41602.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
  41603. $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
  41604.     fi
  41605.  
  41606.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
  41607. $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
  41608.     if ${gl_cv_cc_uninitialized_supported+:} false; then :
  41609.   $as_echo_n "(cached) " >&6
  41610. else
  41611.  
  41612.       gl_save_CFLAGS="$CFLAGS"
  41613.       CFLAGS="$CFLAGS -Werror -Wuninitialized"
  41614.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41615. /* end confdefs.h.  */
  41616.  
  41617. int
  41618. main ()
  41619. {
  41620.  
  41621.   ;
  41622.   return 0;
  41623. }
  41624. _ACEOF
  41625. if ac_fn_c_try_compile "$LINENO"; then :
  41626.   gl_cv_cc_uninitialized_supported=yes
  41627. else
  41628.   gl_cv_cc_uninitialized_supported=no
  41629. fi
  41630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41631.       CFLAGS="$gl_save_CFLAGS"
  41632. fi
  41633.  
  41634.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
  41635. $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
  41636.  
  41637.   fi
  41638.  
  41639.   # List all gcc warning categories.
  41640.   # To compare this list to your installed GCC's, run this Bash command:
  41641.   #
  41642.   # comm -3 \
  41643.   #  <(sed -n 's/^  *\(-[^ ]*\) .*/\1/p' manywarnings.m4 | sort) \
  41644.   #  <(gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort |
  41645.   #      grep -v -x -f <(
  41646.   #         awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec))
  41647.  
  41648.   gl_manywarn_set=
  41649.   for gl_manywarn_item in \
  41650.     -fno-common \
  41651.     -W \
  41652.     -Wabi \
  41653.     -Waddress \
  41654.     -Waggressive-loop-optimizations \
  41655.     -Wall \
  41656.     -Wattributes \
  41657.     -Wbad-function-cast \
  41658.     -Wbool-compare \
  41659.     -Wbuiltin-macro-redefined \
  41660.     -Wcast-align \
  41661.     -Wchar-subscripts \
  41662.     -Wchkp \
  41663.     -Wclobbered \
  41664.     -Wcomment \
  41665.     -Wcomments \
  41666.     -Wcoverage-mismatch \
  41667.     -Wcpp \
  41668.     -Wdate-time \
  41669.     -Wdeprecated \
  41670.     -Wdeprecated-declarations \
  41671.     -Wdesignated-init \
  41672.     -Wdisabled-optimization \
  41673.     -Wdiscarded-array-qualifiers \
  41674.     -Wdiscarded-qualifiers \
  41675.     -Wdiv-by-zero \
  41676.     -Wdouble-promotion \
  41677.     -Wduplicated-cond \
  41678.     -Wempty-body \
  41679.     -Wendif-labels \
  41680.     -Wenum-compare \
  41681.     -Wextra \
  41682.     -Wformat-contains-nul \
  41683.     -Wformat-extra-args \
  41684.     -Wformat-nonliteral \
  41685.     -Wformat-security \
  41686.     -Wformat-signedness \
  41687.     -Wformat-y2k \
  41688.     -Wformat-zero-length \
  41689.     -Wframe-address \
  41690.     -Wfree-nonheap-object \
  41691.     -Whsa \
  41692.     -Wignored-attributes \
  41693.     -Wignored-qualifiers \
  41694.     -Wimplicit \
  41695.     -Wimplicit-function-declaration \
  41696.     -Wimplicit-int \
  41697.     -Wincompatible-pointer-types \
  41698.     -Winit-self \
  41699.     -Winline \
  41700.     -Wint-conversion \
  41701.     -Wint-to-pointer-cast \
  41702.     -Winvalid-memory-model \
  41703.     -Winvalid-pch \
  41704.     -Wjump-misses-init \
  41705.     -Wlogical-not-parentheses \
  41706.     -Wlogical-op \
  41707.     -Wmain \
  41708.     -Wmaybe-uninitialized \
  41709.     -Wmemset-transposed-args \
  41710.     -Wmisleading-indentation \
  41711.     -Wmissing-braces \
  41712.     -Wmissing-declarations \
  41713.     -Wmissing-field-initializers \
  41714.     -Wmissing-include-dirs \
  41715.     -Wmissing-parameter-type \
  41716.     -Wmissing-prototypes \
  41717.     -Wmultichar \
  41718.     -Wnarrowing \
  41719.     -Wnested-externs \
  41720.     -Wnonnull \
  41721.     -Wnonnull-compare \
  41722.     -Wnull-dereference \
  41723.     -Wodr \
  41724.     -Wold-style-declaration \
  41725.     -Wold-style-definition \
  41726.     -Wopenmp-simd \
  41727.     -Woverflow \
  41728.     -Woverlength-strings \
  41729.     -Woverride-init \
  41730.     -Wpacked \
  41731.     -Wpacked-bitfield-compat \
  41732.     -Wparentheses \
  41733.     -Wpointer-arith \
  41734.     -Wpointer-sign \
  41735.     -Wpointer-to-int-cast \
  41736.     -Wpragmas \
  41737.     -Wreturn-local-addr \
  41738.     -Wreturn-type \
  41739.     -Wscalar-storage-order \
  41740.     -Wsequence-point \
  41741.     -Wshadow \
  41742.     -Wshift-count-negative \
  41743.     -Wshift-count-overflow \
  41744.     -Wshift-negative-value \
  41745.     -Wsizeof-array-argument \
  41746.     -Wsizeof-pointer-memaccess \
  41747.     -Wstack-protector \
  41748.     -Wstrict-aliasing \
  41749.     -Wstrict-overflow \
  41750.     -Wstrict-prototypes \
  41751.     -Wsuggest-attribute=const \
  41752.     -Wsuggest-attribute=format \
  41753.     -Wsuggest-attribute=noreturn \
  41754.     -Wsuggest-attribute=pure \
  41755.     -Wsuggest-final-methods \
  41756.     -Wsuggest-final-types \
  41757.     -Wswitch \
  41758.     -Wswitch-bool \
  41759.     -Wswitch-default \
  41760.     -Wsync-nand \
  41761.     -Wsystem-headers \
  41762.     -Wtautological-compare \
  41763.     -Wtrampolines \
  41764.     -Wtrigraphs \
  41765.     -Wtype-limits \
  41766.     -Wuninitialized \
  41767.     -Wunknown-pragmas \
  41768.     -Wunsafe-loop-optimizations \
  41769.     -Wunused \
  41770.     -Wunused-but-set-parameter \
  41771.     -Wunused-but-set-variable \
  41772.     -Wunused-function \
  41773.     -Wunused-label \
  41774.     -Wunused-local-typedefs \
  41775.     -Wunused-macros \
  41776.     -Wunused-parameter \
  41777.     -Wunused-result \
  41778.     -Wunused-value \
  41779.     -Wunused-variable \
  41780.     -Wvarargs \
  41781.     -Wvariadic-macros \
  41782.     -Wvector-operation-performance \
  41783.     -Wvla \
  41784.     -Wvolatile-register-var \
  41785.     -Wwrite-strings \
  41786.     \
  41787.     ; do
  41788.     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
  41789.   done
  41790.  
  41791.   # gcc --help=warnings outputs an unusual form for these options; list
  41792.   # them here so that the above 'comm' command doesn't report a false match.
  41793.   gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2"
  41794.   gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
  41795.   gl_manywarn_set="$gl_manywarn_set -Wshift-overflow=2"
  41796.   gl_manywarn_set="$gl_manywarn_set -Wunused-const-variable=2"
  41797.  
  41798.   # These are needed for older GCC versions.
  41799.   if test -n "$GCC"; then
  41800.     case `($CC --version) 2>/dev/null` in
  41801.       'gcc (GCC) '[0-3].* | \
  41802.       'gcc (GCC) '4.[0-7].*)
  41803.         gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
  41804.         gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
  41805.           ;;
  41806.     esac
  41807.   fi
  41808.  
  41809.   # Disable specific options as needed.
  41810.   if test "$gl_cv_cc_nomfi_needed" = yes; then
  41811.     gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
  41812.   fi
  41813.  
  41814.   if test "$gl_cv_cc_uninitialized_supported" = no; then
  41815.     gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
  41816.   fi
  41817.  
  41818.   ws=$gl_manywarn_set
  41819.  
  41820.  
  41821.   gl_warn_set=
  41822.   set x $ws; shift
  41823.   for gl_warn_item
  41824.   do
  41825.     case " $nw " in
  41826.       *" $gl_warn_item "*)
  41827.         ;;
  41828.       *)
  41829.         gl_warn_set="$gl_warn_set $gl_warn_item"
  41830.         ;;
  41831.     esac
  41832.   done
  41833.   ws=$gl_warn_set
  41834.  
  41835.   for w in $ws; do
  41836.  
  41837. as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
  41838. gl_positive="$w"
  41839. case $gl_positive in
  41840.   -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
  41841. esac
  41842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
  41843. $as_echo_n "checking whether C compiler handles $w... " >&6; }
  41844. if eval \${$as_gl_Warn+:} false; then :
  41845.   $as_echo_n "(cached) " >&6
  41846. else
  41847.  
  41848.   gl_save_compiler_FLAGS="$CFLAGS"
  41849.   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
  41850.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41851. /* end confdefs.h.  */
  41852.  
  41853. int
  41854. main ()
  41855. {
  41856.  
  41857.   ;
  41858.   return 0;
  41859. }
  41860. _ACEOF
  41861. if ac_fn_c_try_link "$LINENO"; then :
  41862.   eval "$as_gl_Warn=yes"
  41863. else
  41864.   eval "$as_gl_Warn=no"
  41865. fi
  41866. rm -f core conftest.err conftest.$ac_objext \
  41867.     conftest$ac_exeext conftest.$ac_ext
  41868.   CFLAGS="$gl_save_compiler_FLAGS"
  41869.  
  41870. fi
  41871. eval ac_res=\$$as_gl_Warn
  41872.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  41873. $as_echo "$ac_res" >&6; }
  41874. if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
  41875.   as_fn_append WARN_CFLAGS " $w"
  41876. fi
  41877.  
  41878.  
  41879.   done
  41880.  
  41881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
  41882. $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
  41883. if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
  41884.   $as_echo_n "(cached) " >&6
  41885. else
  41886.  
  41887.   gl_save_compiler_FLAGS="$CFLAGS"
  41888.   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
  41889.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41890. /* end confdefs.h.  */
  41891.  
  41892. int
  41893. main ()
  41894. {
  41895.  
  41896.   ;
  41897.   return 0;
  41898. }
  41899. _ACEOF
  41900. if ac_fn_c_try_link "$LINENO"; then :
  41901.   gl_cv_warn_c__Wno_missing_field_initializers=yes
  41902. else
  41903.   gl_cv_warn_c__Wno_missing_field_initializers=no
  41904. fi
  41905. rm -f core conftest.err conftest.$ac_objext \
  41906.     conftest$ac_exeext conftest.$ac_ext
  41907.   CFLAGS="$gl_save_compiler_FLAGS"
  41908.  
  41909. fi
  41910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
  41911. $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
  41912. if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
  41913.   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
  41914. fi
  41915.  
  41916.  # We need this one
  41917.  
  41918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
  41919. $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
  41920. if ${gl_cv_warn_c__Wno_unused_parameter+:} false; then :
  41921.   $as_echo_n "(cached) " >&6
  41922. else
  41923.  
  41924.   gl_save_compiler_FLAGS="$CFLAGS"
  41925.   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
  41926.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41927. /* end confdefs.h.  */
  41928.  
  41929. int
  41930. main ()
  41931. {
  41932.  
  41933.   ;
  41934.   return 0;
  41935. }
  41936. _ACEOF
  41937. if ac_fn_c_try_link "$LINENO"; then :
  41938.   gl_cv_warn_c__Wno_unused_parameter=yes
  41939. else
  41940.   gl_cv_warn_c__Wno_unused_parameter=no
  41941. fi
  41942. rm -f core conftest.err conftest.$ac_objext \
  41943.     conftest$ac_exeext conftest.$ac_ext
  41944.   CFLAGS="$gl_save_compiler_FLAGS"
  41945.  
  41946. fi
  41947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
  41948. $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
  41949. if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes; then :
  41950.   as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
  41951. fi
  41952.  
  41953.  # Too many warnings for now
  41954.  
  41955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-truncation" >&5
  41956. $as_echo_n "checking whether C compiler handles -Wno-format-truncation... " >&6; }
  41957. if ${gl_cv_warn_c__Wno_format_truncation+:} false; then :
  41958.   $as_echo_n "(cached) " >&6
  41959. else
  41960.  
  41961.   gl_save_compiler_FLAGS="$CFLAGS"
  41962.   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-truncation"
  41963.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41964. /* end confdefs.h.  */
  41965.  
  41966. int
  41967. main ()
  41968. {
  41969.  
  41970.   ;
  41971.   return 0;
  41972. }
  41973. _ACEOF
  41974. if ac_fn_c_try_link "$LINENO"; then :
  41975.   gl_cv_warn_c__Wno_format_truncation=yes
  41976. else
  41977.   gl_cv_warn_c__Wno_format_truncation=no
  41978. fi
  41979. rm -f core conftest.err conftest.$ac_objext \
  41980.     conftest$ac_exeext conftest.$ac_ext
  41981.   CFLAGS="$gl_save_compiler_FLAGS"
  41982.  
  41983. fi
  41984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_truncation" >&5
  41985. $as_echo "$gl_cv_warn_c__Wno_format_truncation" >&6; }
  41986. if test "x$gl_cv_warn_c__Wno_format_truncation" = xyes; then :
  41987.   as_fn_append WARN_CFLAGS " -Wno-format-truncation"
  41988. fi
  41989.  
  41990.  # Many warnings with no point
  41991.  
  41992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
  41993. $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
  41994. if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
  41995.   $as_echo_n "(cached) " >&6
  41996. else
  41997.  
  41998.   gl_save_compiler_FLAGS="$CFLAGS"
  41999.   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
  42000.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42001. /* end confdefs.h.  */
  42002.  
  42003. int
  42004. main ()
  42005. {
  42006.  
  42007.   ;
  42008.   return 0;
  42009. }
  42010. _ACEOF
  42011. if ac_fn_c_try_link "$LINENO"; then :
  42012.   gl_cv_warn_c__fdiagnostics_show_option=yes
  42013. else
  42014.   gl_cv_warn_c__fdiagnostics_show_option=no
  42015. fi
  42016. rm -f core conftest.err conftest.$ac_objext \
  42017.     conftest$ac_exeext conftest.$ac_ext
  42018.   CFLAGS="$gl_save_compiler_FLAGS"
  42019.  
  42020. fi
  42021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
  42022. $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
  42023. if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
  42024.   as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
  42025. fi
  42026.  
  42027.  
  42028. fi
  42029.  
  42030.  
  42031.  
  42032.  
  42033.  
  42034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  42035. $as_echo_n "checking whether ln -s works... " >&6; }
  42036. LN_S=$as_ln_s
  42037. if test "$LN_S" = "ln -s"; then
  42038.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  42039. $as_echo "yes" >&6; }
  42040. else
  42041.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  42042. $as_echo "no, using $LN_S" >&6; }
  42043. fi
  42044.  
  42045. case `pwd` in
  42046.   *\ * | *\     *)
  42047.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  42048. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  42049. esac
  42050.  
  42051.  
  42052.  
  42053. macro_version='2.4.6'
  42054. macro_revision='2.4.6'
  42055.  
  42056.  
  42057.  
  42058.  
  42059.  
  42060.  
  42061.  
  42062.  
  42063.  
  42064.  
  42065.  
  42066.  
  42067.  
  42068. ltmain=$ac_aux_dir/ltmain.sh
  42069.  
  42070. # Backslashify metacharacters that are still active within
  42071. # double-quoted strings.
  42072. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  42073.  
  42074. # Same as above, but do not quote variable references.
  42075. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  42076.  
  42077. # Sed substitution to delay expansion of an escaped shell variable in a
  42078. # double_quote_subst'ed string.
  42079. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  42080.  
  42081. # Sed substitution to delay expansion of an escaped single quote.
  42082. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  42083.  
  42084. # Sed substitution to avoid accidental globbing in evaled expressions
  42085. no_glob_subst='s/\*/\\\*/g'
  42086.  
  42087. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  42088. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  42089. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  42090.  
  42091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  42092. $as_echo_n "checking how to print strings... " >&6; }
  42093. # Test print first, because it will be a builtin if present.
  42094. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  42095.    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  42096.   ECHO='print -r --'
  42097. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  42098.   ECHO='printf %s\n'
  42099. else
  42100.   # Use this function as a fallback that always works.
  42101.   func_fallback_echo ()
  42102.   {
  42103.     eval 'cat <<_LTECHO_EOF
  42104. $1
  42105. _LTECHO_EOF'
  42106.   }
  42107.   ECHO='func_fallback_echo'
  42108. fi
  42109.  
  42110. # func_echo_all arg...
  42111. # Invoke $ECHO with all args, space-separated.
  42112. func_echo_all ()
  42113. {
  42114.     $ECHO ""
  42115. }
  42116.  
  42117. case $ECHO in
  42118.   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  42119. $as_echo "printf" >&6; } ;;
  42120.   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  42121. $as_echo "print -r" >&6; } ;;
  42122.   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  42123. $as_echo "cat" >&6; } ;;
  42124. esac
  42125.  
  42126.  
  42127.  
  42128.  
  42129.  
  42130.  
  42131.  
  42132.  
  42133.  
  42134.  
  42135.  
  42136.  
  42137.  
  42138.  
  42139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  42140. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  42141. if ${ac_cv_path_SED+:} false; then :
  42142.   $as_echo_n "(cached) " >&6
  42143. else
  42144.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  42145.      for ac_i in 1 2 3 4 5 6 7; do
  42146.        ac_script="$ac_script$as_nl$ac_script"
  42147.      done
  42148.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  42149.      { ac_script=; unset ac_script;}
  42150.      if test -z "$SED"; then
  42151.   ac_path_SED_found=false
  42152.   # Loop through the user's path and test for each of PROGNAME-LIST
  42153.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42154. for as_dir in $PATH
  42155. do
  42156.   IFS=$as_save_IFS
  42157.   test -z "$as_dir" && as_dir=.
  42158.     for ac_prog in sed gsed; do
  42159.     for ac_exec_ext in '' $ac_executable_extensions; do
  42160.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  42161.       as_fn_executable_p "$ac_path_SED" || continue
  42162. # Check for GNU ac_path_SED and select it if it is found.
  42163.   # Check for GNU $ac_path_SED
  42164. case `"$ac_path_SED" --version 2>&1` in
  42165. *GNU*)
  42166.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  42167. *)
  42168.   ac_count=0
  42169.   $as_echo_n 0123456789 >"conftest.in"
  42170.   while :
  42171.   do
  42172.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  42173.     mv "conftest.tmp" "conftest.in"
  42174.     cp "conftest.in" "conftest.nl"
  42175.     $as_echo '' >> "conftest.nl"
  42176.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  42177.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  42178.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  42179.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  42180.       # Best one so far, save it but keep looking for a better one
  42181.       ac_cv_path_SED="$ac_path_SED"
  42182.       ac_path_SED_max=$ac_count
  42183.     fi
  42184.     # 10*(2^10) chars as input seems more than enough
  42185.     test $ac_count -gt 10 && break
  42186.   done
  42187.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  42188. esac
  42189.  
  42190.       $ac_path_SED_found && break 3
  42191.     done
  42192.   done
  42193.   done
  42194. IFS=$as_save_IFS
  42195.   if test -z "$ac_cv_path_SED"; then
  42196.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  42197.   fi
  42198. else
  42199.   ac_cv_path_SED=$SED
  42200. fi
  42201.  
  42202. fi
  42203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  42204. $as_echo "$ac_cv_path_SED" >&6; }
  42205.  SED="$ac_cv_path_SED"
  42206.   rm -f conftest.sed
  42207.  
  42208. test -z "$SED" && SED=sed
  42209. Xsed="$SED -e 1s/^X//"
  42210.  
  42211.  
  42212.  
  42213.  
  42214.  
  42215.  
  42216.  
  42217.  
  42218.  
  42219.  
  42220.  
  42221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  42222. $as_echo_n "checking for fgrep... " >&6; }
  42223. if ${ac_cv_path_FGREP+:} false; then :
  42224.   $as_echo_n "(cached) " >&6
  42225. else
  42226.   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  42227.    then ac_cv_path_FGREP="$GREP -F"
  42228.    else
  42229.      if test -z "$FGREP"; then
  42230.   ac_path_FGREP_found=false
  42231.   # Loop through the user's path and test for each of PROGNAME-LIST
  42232.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42233. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  42234. do
  42235.   IFS=$as_save_IFS
  42236.   test -z "$as_dir" && as_dir=.
  42237.     for ac_prog in fgrep; do
  42238.     for ac_exec_ext in '' $ac_executable_extensions; do
  42239.       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  42240.       as_fn_executable_p "$ac_path_FGREP" || continue
  42241. # Check for GNU ac_path_FGREP and select it if it is found.
  42242.   # Check for GNU $ac_path_FGREP
  42243. case `"$ac_path_FGREP" --version 2>&1` in
  42244. *GNU*)
  42245.   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  42246. *)
  42247.   ac_count=0
  42248.   $as_echo_n 0123456789 >"conftest.in"
  42249.   while :
  42250.   do
  42251.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  42252.     mv "conftest.tmp" "conftest.in"
  42253.     cp "conftest.in" "conftest.nl"
  42254.     $as_echo 'FGREP' >> "conftest.nl"
  42255.     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  42256.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  42257.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  42258.     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  42259.       # Best one so far, save it but keep looking for a better one
  42260.       ac_cv_path_FGREP="$ac_path_FGREP"
  42261.       ac_path_FGREP_max=$ac_count
  42262.     fi
  42263.     # 10*(2^10) chars as input seems more than enough
  42264.     test $ac_count -gt 10 && break
  42265.   done
  42266.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  42267. esac
  42268.  
  42269.       $ac_path_FGREP_found && break 3
  42270.     done
  42271.   done
  42272.   done
  42273. IFS=$as_save_IFS
  42274.   if test -z "$ac_cv_path_FGREP"; then
  42275.     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  42276.   fi
  42277. else
  42278.   ac_cv_path_FGREP=$FGREP
  42279. fi
  42280.  
  42281.    fi
  42282. fi
  42283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  42284. $as_echo "$ac_cv_path_FGREP" >&6; }
  42285.  FGREP="$ac_cv_path_FGREP"
  42286.  
  42287.  
  42288. test -z "$GREP" && GREP=grep
  42289.  
  42290.  
  42291.  
  42292.  
  42293.  
  42294.  
  42295.  
  42296.  
  42297.  
  42298.  
  42299.  
  42300.  
  42301.  
  42302.  
  42303.  
  42304.  
  42305.  
  42306.  
  42307.  
  42308. # Check whether --with-gnu-ld was given.
  42309. if test "${with_gnu_ld+set}" = set; then :
  42310.   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  42311. else
  42312.   with_gnu_ld=no
  42313. fi
  42314.  
  42315. ac_prog=ld
  42316. if test yes = "$GCC"; then
  42317.   # Check if gcc -print-prog-name=ld gives a path.
  42318.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  42319. $as_echo_n "checking for ld used by $CC... " >&6; }
  42320.   case $host in
  42321.   *-*-mingw*)
  42322.     # gcc leaves a trailing carriage return, which upsets mingw
  42323.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  42324.   *)
  42325.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  42326.   esac
  42327.   case $ac_prog in
  42328.     # Accept absolute paths.
  42329.     [\\/]* | ?:[\\/]*)
  42330.       re_direlt='/[^/][^/]*/\.\./'
  42331.       # Canonicalize the pathname of ld
  42332.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  42333.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  42334.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  42335.       done
  42336.       test -z "$LD" && LD=$ac_prog
  42337.       ;;
  42338.   "")
  42339.     # If it fails, then pretend we aren't using GCC.
  42340.     ac_prog=ld
  42341.     ;;
  42342.   *)
  42343.     # If it is relative, then search for the first ld in PATH.
  42344.     with_gnu_ld=unknown
  42345.     ;;
  42346.   esac
  42347. elif test yes = "$with_gnu_ld"; then
  42348.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  42349. $as_echo_n "checking for GNU ld... " >&6; }
  42350. else
  42351.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  42352. $as_echo_n "checking for non-GNU ld... " >&6; }
  42353. fi
  42354. if ${lt_cv_path_LD+:} false; then :
  42355.   $as_echo_n "(cached) " >&6
  42356. else
  42357.   if test -z "$LD"; then
  42358.   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  42359.   for ac_dir in $PATH; do
  42360.     IFS=$lt_save_ifs
  42361.     test -z "$ac_dir" && ac_dir=.
  42362.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  42363.       lt_cv_path_LD=$ac_dir/$ac_prog
  42364.       # Check to see if the program is GNU ld.  I'd rather use --version,
  42365.       # but apparently some variants of GNU ld only accept -v.
  42366.       # Break only if it was the GNU/non-GNU ld that we prefer.
  42367.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  42368.       *GNU* | *'with BFD'*)
  42369.         test no != "$with_gnu_ld" && break
  42370.         ;;
  42371.       *)
  42372.         test yes != "$with_gnu_ld" && break
  42373.         ;;
  42374.       esac
  42375.     fi
  42376.   done
  42377.   IFS=$lt_save_ifs
  42378. else
  42379.   lt_cv_path_LD=$LD # Let the user override the test with a path.
  42380. fi
  42381. fi
  42382.  
  42383. LD=$lt_cv_path_LD
  42384. if test -n "$LD"; then
  42385.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  42386. $as_echo "$LD" >&6; }
  42387. else
  42388.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42389. $as_echo "no" >&6; }
  42390. fi
  42391. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  42392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  42393. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  42394. if ${lt_cv_prog_gnu_ld+:} false; then :
  42395.   $as_echo_n "(cached) " >&6
  42396. else
  42397.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  42398. case `$LD -v 2>&1 </dev/null` in
  42399. *GNU* | *'with BFD'*)
  42400.   lt_cv_prog_gnu_ld=yes
  42401.   ;;
  42402. *)
  42403.   lt_cv_prog_gnu_ld=no
  42404.   ;;
  42405. esac
  42406. fi
  42407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  42408. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  42409. with_gnu_ld=$lt_cv_prog_gnu_ld
  42410.  
  42411.  
  42412.  
  42413.  
  42414.  
  42415.  
  42416.  
  42417.  
  42418.  
  42419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  42420. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  42421. if ${lt_cv_path_NM+:} false; then :
  42422.   $as_echo_n "(cached) " >&6
  42423. else
  42424.   if test -n "$NM"; then
  42425.   # Let the user override the test.
  42426.   lt_cv_path_NM=$NM
  42427. else
  42428.   lt_nm_to_check=${ac_tool_prefix}nm
  42429.   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  42430.     lt_nm_to_check="$lt_nm_to_check nm"
  42431.   fi
  42432.   for lt_tmp_nm in $lt_nm_to_check; do
  42433.     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  42434.     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  42435.       IFS=$lt_save_ifs
  42436.       test -z "$ac_dir" && ac_dir=.
  42437.       tmp_nm=$ac_dir/$lt_tmp_nm
  42438.       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  42439.         # Check to see if the nm accepts a BSD-compat flag.
  42440.         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  42441.         #   nm: unknown option "B" ignored
  42442.         # Tru64's nm complains that /dev/null is an invalid object file
  42443.         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  42444.         case $build_os in
  42445.         mingw*) lt_bad_file=conftest.nm/nofile ;;
  42446.         *) lt_bad_file=/dev/null ;;
  42447.         esac
  42448.         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  42449.         *$lt_bad_file* | *'Invalid file or object type'*)
  42450.           lt_cv_path_NM="$tmp_nm -B"
  42451.           break 2
  42452.           ;;
  42453.         *)
  42454.           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  42455.           */dev/null*)
  42456.             lt_cv_path_NM="$tmp_nm -p"
  42457.             break 2
  42458.             ;;
  42459.           *)
  42460.             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  42461.             continue # so that we can try to find one that supports BSD flags
  42462.             ;;
  42463.           esac
  42464.           ;;
  42465.         esac
  42466.       fi
  42467.     done
  42468.     IFS=$lt_save_ifs
  42469.   done
  42470.   : ${lt_cv_path_NM=no}
  42471. fi
  42472. fi
  42473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  42474. $as_echo "$lt_cv_path_NM" >&6; }
  42475. if test no != "$lt_cv_path_NM"; then
  42476.   NM=$lt_cv_path_NM
  42477. else
  42478.   # Didn't find any BSD compatible name lister, look for dumpbin.
  42479.   if test -n "$DUMPBIN"; then :
  42480.     # Let the user override the test.
  42481.   else
  42482.     if test -n "$ac_tool_prefix"; then
  42483.   for ac_prog in dumpbin "link -dump"
  42484.   do
  42485.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  42486. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  42487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  42488. $as_echo_n "checking for $ac_word... " >&6; }
  42489. if ${ac_cv_prog_DUMPBIN+:} false; then :
  42490.   $as_echo_n "(cached) " >&6
  42491. else
  42492.   if test -n "$DUMPBIN"; then
  42493.   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  42494. else
  42495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42496. for as_dir in $PATH
  42497. do
  42498.   IFS=$as_save_IFS
  42499.   test -z "$as_dir" && as_dir=.
  42500.     for ac_exec_ext in '' $ac_executable_extensions; do
  42501.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  42502.     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  42503.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  42504.     break 2
  42505.   fi
  42506. done
  42507.   done
  42508. IFS=$as_save_IFS
  42509.  
  42510. fi
  42511. fi
  42512. DUMPBIN=$ac_cv_prog_DUMPBIN
  42513. if test -n "$DUMPBIN"; then
  42514.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  42515. $as_echo "$DUMPBIN" >&6; }
  42516. else
  42517.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42518. $as_echo "no" >&6; }
  42519. fi
  42520.  
  42521.  
  42522.     test -n "$DUMPBIN" && break
  42523.   done
  42524. fi
  42525. if test -z "$DUMPBIN"; then
  42526.   ac_ct_DUMPBIN=$DUMPBIN
  42527.   for ac_prog in dumpbin "link -dump"
  42528. do
  42529.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  42530. set dummy $ac_prog; ac_word=$2
  42531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  42532. $as_echo_n "checking for $ac_word... " >&6; }
  42533. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  42534.   $as_echo_n "(cached) " >&6
  42535. else
  42536.   if test -n "$ac_ct_DUMPBIN"; then
  42537.   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  42538. else
  42539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42540. for as_dir in $PATH
  42541. do
  42542.   IFS=$as_save_IFS
  42543.   test -z "$as_dir" && as_dir=.
  42544.     for ac_exec_ext in '' $ac_executable_extensions; do
  42545.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  42546.     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  42547.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  42548.     break 2
  42549.   fi
  42550. done
  42551.   done
  42552. IFS=$as_save_IFS
  42553.  
  42554. fi
  42555. fi
  42556. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  42557. if test -n "$ac_ct_DUMPBIN"; then
  42558.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  42559. $as_echo "$ac_ct_DUMPBIN" >&6; }
  42560. else
  42561.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42562. $as_echo "no" >&6; }
  42563. fi
  42564.  
  42565.  
  42566.   test -n "$ac_ct_DUMPBIN" && break
  42567. done
  42568.  
  42569.   if test "x$ac_ct_DUMPBIN" = x; then
  42570.     DUMPBIN=":"
  42571.   else
  42572.     case $cross_compiling:$ac_tool_warned in
  42573. yes:)
  42574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  42575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  42576. ac_tool_warned=yes ;;
  42577. esac
  42578.     DUMPBIN=$ac_ct_DUMPBIN
  42579.   fi
  42580. fi
  42581.  
  42582.     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  42583.     *COFF*)
  42584.       DUMPBIN="$DUMPBIN -symbols -headers"
  42585.       ;;
  42586.     *)
  42587.       DUMPBIN=:
  42588.       ;;
  42589.     esac
  42590.   fi
  42591.  
  42592.   if test : != "$DUMPBIN"; then
  42593.     NM=$DUMPBIN
  42594.   fi
  42595. fi
  42596. test -z "$NM" && NM=nm
  42597.  
  42598.  
  42599.  
  42600.  
  42601.  
  42602.  
  42603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  42604. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  42605. if ${lt_cv_nm_interface+:} false; then :
  42606.   $as_echo_n "(cached) " >&6
  42607. else
  42608.   lt_cv_nm_interface="BSD nm"
  42609.   echo "int some_variable = 0;" > conftest.$ac_ext
  42610.   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  42611.   (eval "$ac_compile" 2>conftest.err)
  42612.   cat conftest.err >&5
  42613.   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  42614.   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  42615.   cat conftest.err >&5
  42616.   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  42617.   cat conftest.out >&5
  42618.   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  42619.     lt_cv_nm_interface="MS dumpbin"
  42620.   fi
  42621.   rm -f conftest*
  42622. fi
  42623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  42624. $as_echo "$lt_cv_nm_interface" >&6; }
  42625.  
  42626. # find the maximum length of command line arguments
  42627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  42628. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  42629. if ${lt_cv_sys_max_cmd_len+:} false; then :
  42630.   $as_echo_n "(cached) " >&6
  42631. else
  42632.     i=0
  42633.   teststring=ABCD
  42634.  
  42635.   case $build_os in
  42636.   msdosdjgpp*)
  42637.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  42638.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  42639.     # during glob expansion).  Even if it were fixed, the result of this
  42640.     # check would be larger than it should be.
  42641.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  42642.     ;;
  42643.  
  42644.   gnu*)
  42645.     # Under GNU Hurd, this test is not required because there is
  42646.     # no limit to the length of command line arguments.
  42647.     # Libtool will interpret -1 as no limit whatsoever
  42648.     lt_cv_sys_max_cmd_len=-1;
  42649.     ;;
  42650.  
  42651.   cygwin* | mingw* | cegcc*)
  42652.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  42653.     # about 5 minutes as the teststring grows exponentially.
  42654.     # Worse, since 9x/ME are not pre-emptively multitasking,
  42655.     # you end up with a "frozen" computer, even though with patience
  42656.     # the test eventually succeeds (with a max line length of 256k).
  42657.     # Instead, let's just punt: use the minimum linelength reported by
  42658.     # all of the supported platforms: 8192 (on NT/2K/XP).
  42659.     lt_cv_sys_max_cmd_len=8192;
  42660.     ;;
  42661.  
  42662.   mint*)
  42663.     # On MiNT this can take a long time and run out of memory.
  42664.     lt_cv_sys_max_cmd_len=8192;
  42665.     ;;
  42666.  
  42667.   amigaos*)
  42668.     # On AmigaOS with pdksh, this test takes hours, literally.
  42669.     # So we just punt and use a minimum line length of 8192.
  42670.     lt_cv_sys_max_cmd_len=8192;
  42671.     ;;
  42672.  
  42673.   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  42674.     # This has been around since 386BSD, at least.  Likely further.
  42675.     if test -x /sbin/sysctl; then
  42676.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  42677.     elif test -x /usr/sbin/sysctl; then
  42678.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  42679.     else
  42680.       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
  42681.     fi
  42682.     # And add a safety zone
  42683.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  42684.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  42685.     ;;
  42686.  
  42687.   interix*)
  42688.     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  42689.     lt_cv_sys_max_cmd_len=196608
  42690.     ;;
  42691.  
  42692.   os2*)
  42693.     # The test takes a long time on OS/2.
  42694.     lt_cv_sys_max_cmd_len=8192
  42695.     ;;
  42696.  
  42697.   osf*)
  42698.     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  42699.     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  42700.     # nice to cause kernel panics so lets avoid the loop below.
  42701.     # First set a reasonable default.
  42702.     lt_cv_sys_max_cmd_len=16384
  42703.     #
  42704.     if test -x /sbin/sysconfig; then
  42705.       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  42706.         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  42707.       esac
  42708.     fi
  42709.     ;;
  42710.   sco3.2v5*)
  42711.     lt_cv_sys_max_cmd_len=102400
  42712.     ;;
  42713.   sysv5* | sco5v6* | sysv4.2uw2*)
  42714.     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  42715.     if test -n "$kargmax"; then
  42716.       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
  42717.     else
  42718.       lt_cv_sys_max_cmd_len=32768
  42719.     fi
  42720.     ;;
  42721.   *)
  42722.     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  42723.     if test -n "$lt_cv_sys_max_cmd_len" && \
  42724.        test undefined != "$lt_cv_sys_max_cmd_len"; then
  42725.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  42726.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  42727.     else
  42728.       # Make teststring a little bigger before we do anything with it.
  42729.       # a 1K string should be a reasonable start.
  42730.       for i in 1 2 3 4 5 6 7 8; do
  42731.         teststring=$teststring$teststring
  42732.       done
  42733.       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  42734.       # If test is not a shell built-in, we'll probably end up computing a
  42735.       # maximum length that is only half of the actual maximum length, but
  42736.       # we can't tell.
  42737.       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  42738.                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  42739.               test 17 != "$i" # 1/2 MB should be enough
  42740.       do
  42741.         i=`expr $i + 1`
  42742.         teststring=$teststring$teststring
  42743.       done
  42744.       # Only check the string length outside the loop.
  42745.       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  42746.       teststring=
  42747.       # Add a significant safety factor because C++ compilers can tack on
  42748.       # massive amounts of additional arguments before passing them to the
  42749.       # linker.  It appears as though 1/2 is a usable value.
  42750.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  42751.     fi
  42752.     ;;
  42753.   esac
  42754.  
  42755. fi
  42756.  
  42757. if test -n "$lt_cv_sys_max_cmd_len"; then
  42758.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  42759. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  42760. else
  42761.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  42762. $as_echo "none" >&6; }
  42763. fi
  42764. max_cmd_len=$lt_cv_sys_max_cmd_len
  42765.  
  42766.  
  42767.  
  42768.  
  42769.  
  42770.  
  42771. : ${CP="cp -f"}
  42772. : ${MV="mv -f"}
  42773. : ${RM="rm -f"}
  42774.  
  42775. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  42776.   lt_unset=unset
  42777. else
  42778.   lt_unset=false
  42779. fi
  42780.  
  42781.  
  42782.  
  42783.  
  42784.  
  42785. # test EBCDIC or ASCII
  42786. case `echo X|tr X '\101'` in
  42787.  A) # ASCII based system
  42788.     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  42789.   lt_SP2NL='tr \040 \012'
  42790.   lt_NL2SP='tr \015\012 \040\040'
  42791.   ;;
  42792.  *) # EBCDIC based system
  42793.   lt_SP2NL='tr \100 \n'
  42794.   lt_NL2SP='tr \r\n \100\100'
  42795.   ;;
  42796. esac
  42797.  
  42798.  
  42799.  
  42800.  
  42801.  
  42802.  
  42803.  
  42804.  
  42805.  
  42806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  42807. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  42808. if ${lt_cv_to_host_file_cmd+:} false; then :
  42809.   $as_echo_n "(cached) " >&6
  42810. else
  42811.   case $host in
  42812.   *-*-mingw* )
  42813.     case $build in
  42814.       *-*-mingw* ) # actually msys
  42815.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  42816.         ;;
  42817.       *-*-cygwin* )
  42818.         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  42819.         ;;
  42820.       * ) # otherwise, assume *nix
  42821.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  42822.         ;;
  42823.     esac
  42824.     ;;
  42825.   *-*-cygwin* )
  42826.     case $build in
  42827.       *-*-mingw* ) # actually msys
  42828.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  42829.         ;;
  42830.       *-*-cygwin* )
  42831.         lt_cv_to_host_file_cmd=func_convert_file_noop
  42832.         ;;
  42833.       * ) # otherwise, assume *nix
  42834.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  42835.         ;;
  42836.     esac
  42837.     ;;
  42838.   * ) # unhandled hosts (and "normal" native builds)
  42839.     lt_cv_to_host_file_cmd=func_convert_file_noop
  42840.     ;;
  42841. esac
  42842.  
  42843. fi
  42844.  
  42845. to_host_file_cmd=$lt_cv_to_host_file_cmd
  42846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  42847. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  42848.  
  42849.  
  42850.  
  42851.  
  42852.  
  42853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  42854. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  42855. if ${lt_cv_to_tool_file_cmd+:} false; then :
  42856.   $as_echo_n "(cached) " >&6
  42857. else
  42858.   #assume ordinary cross tools, or native build.
  42859. lt_cv_to_tool_file_cmd=func_convert_file_noop
  42860. case $host in
  42861.   *-*-mingw* )
  42862.     case $build in
  42863.       *-*-mingw* ) # actually msys
  42864.         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  42865.         ;;
  42866.     esac
  42867.     ;;
  42868. esac
  42869.  
  42870. fi
  42871.  
  42872. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  42873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  42874. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  42875.  
  42876.  
  42877.  
  42878.  
  42879.  
  42880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  42881. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  42882. if ${lt_cv_ld_reload_flag+:} false; then :
  42883.   $as_echo_n "(cached) " >&6
  42884. else
  42885.   lt_cv_ld_reload_flag='-r'
  42886. fi
  42887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  42888. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  42889. reload_flag=$lt_cv_ld_reload_flag
  42890. case $reload_flag in
  42891. "" | " "*) ;;
  42892. *) reload_flag=" $reload_flag" ;;
  42893. esac
  42894. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  42895. case $host_os in
  42896.   cygwin* | mingw* | pw32* | cegcc*)
  42897.     if test yes != "$GCC"; then
  42898.       reload_cmds=false
  42899.     fi
  42900.     ;;
  42901.   darwin*)
  42902.     if test yes = "$GCC"; then
  42903.       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  42904.     else
  42905.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  42906.     fi
  42907.     ;;
  42908. esac
  42909.  
  42910.  
  42911.  
  42912.  
  42913.  
  42914.  
  42915.  
  42916.  
  42917.  
  42918. if test -n "$ac_tool_prefix"; then
  42919.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  42920. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  42921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  42922. $as_echo_n "checking for $ac_word... " >&6; }
  42923. if ${ac_cv_prog_OBJDUMP+:} false; then :
  42924.   $as_echo_n "(cached) " >&6
  42925. else
  42926.   if test -n "$OBJDUMP"; then
  42927.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  42928. else
  42929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42930. for as_dir in $PATH
  42931. do
  42932.   IFS=$as_save_IFS
  42933.   test -z "$as_dir" && as_dir=.
  42934.     for ac_exec_ext in '' $ac_executable_extensions; do
  42935.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  42936.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  42937.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  42938.     break 2
  42939.   fi
  42940. done
  42941.   done
  42942. IFS=$as_save_IFS
  42943.  
  42944. fi
  42945. fi
  42946. OBJDUMP=$ac_cv_prog_OBJDUMP
  42947. if test -n "$OBJDUMP"; then
  42948.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  42949. $as_echo "$OBJDUMP" >&6; }
  42950. else
  42951.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42952. $as_echo "no" >&6; }
  42953. fi
  42954.  
  42955.  
  42956. fi
  42957. if test -z "$ac_cv_prog_OBJDUMP"; then
  42958.   ac_ct_OBJDUMP=$OBJDUMP
  42959.   # Extract the first word of "objdump", so it can be a program name with args.
  42960. set dummy objdump; ac_word=$2
  42961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  42962. $as_echo_n "checking for $ac_word... " >&6; }
  42963. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  42964.   $as_echo_n "(cached) " >&6
  42965. else
  42966.   if test -n "$ac_ct_OBJDUMP"; then
  42967.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  42968. else
  42969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42970. for as_dir in $PATH
  42971. do
  42972.   IFS=$as_save_IFS
  42973.   test -z "$as_dir" && as_dir=.
  42974.     for ac_exec_ext in '' $ac_executable_extensions; do
  42975.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  42976.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  42977.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  42978.     break 2
  42979.   fi
  42980. done
  42981.   done
  42982. IFS=$as_save_IFS
  42983.  
  42984. fi
  42985. fi
  42986. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  42987. if test -n "$ac_ct_OBJDUMP"; then
  42988.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  42989. $as_echo "$ac_ct_OBJDUMP" >&6; }
  42990. else
  42991.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42992. $as_echo "no" >&6; }
  42993. fi
  42994.  
  42995.   if test "x$ac_ct_OBJDUMP" = x; then
  42996.     OBJDUMP="false"
  42997.   else
  42998.     case $cross_compiling:$ac_tool_warned in
  42999. yes:)
  43000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  43001. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  43002. ac_tool_warned=yes ;;
  43003. esac
  43004.     OBJDUMP=$ac_ct_OBJDUMP
  43005.   fi
  43006. else
  43007.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  43008. fi
  43009.  
  43010. test -z "$OBJDUMP" && OBJDUMP=objdump
  43011.  
  43012.  
  43013.  
  43014.  
  43015.  
  43016.  
  43017.  
  43018.  
  43019.  
  43020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  43021. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  43022. if ${lt_cv_deplibs_check_method+:} false; then :
  43023.   $as_echo_n "(cached) " >&6
  43024. else
  43025.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  43026. lt_cv_file_magic_test_file=
  43027. lt_cv_deplibs_check_method='unknown'
  43028. # Need to set the preceding variable on all platforms that support
  43029. # interlibrary dependencies.
  43030. # 'none' -- dependencies not supported.
  43031. # 'unknown' -- same as none, but documents that we really don't know.
  43032. # 'pass_all' -- all dependencies passed with no checks.
  43033. # 'test_compile' -- check by making test program.
  43034. # 'file_magic [[regex]]' -- check by looking for files in library path
  43035. # that responds to the $file_magic_cmd with a given extended regex.
  43036. # If you have 'file' or equivalent on your system and you're not sure
  43037. # whether 'pass_all' will *always* work, you probably want this one.
  43038.  
  43039. case $host_os in
  43040. aix[4-9]*)
  43041.   lt_cv_deplibs_check_method=pass_all
  43042.   ;;
  43043.  
  43044. beos*)
  43045.   lt_cv_deplibs_check_method=pass_all
  43046.   ;;
  43047.  
  43048. bsdi[45]*)
  43049.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  43050.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  43051.   lt_cv_file_magic_test_file=/shlib/libc.so
  43052.   ;;
  43053.  
  43054. cygwin*)
  43055.   # func_win32_libid is a shell function defined in ltmain.sh
  43056.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  43057.   lt_cv_file_magic_cmd='func_win32_libid'
  43058.   ;;
  43059.  
  43060. mingw* | pw32*)
  43061.   # Base MSYS/MinGW do not provide the 'file' command needed by
  43062.   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  43063.   # unless we find 'file', for example because we are cross-compiling.
  43064.   if ( file / ) >/dev/null 2>&1; then
  43065.     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  43066.     lt_cv_file_magic_cmd='func_win32_libid'
  43067.   else
  43068.     # Keep this pattern in sync with the one in func_win32_libid.
  43069.     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  43070.     lt_cv_file_magic_cmd='$OBJDUMP -f'
  43071.   fi
  43072.   ;;
  43073.  
  43074. cegcc*)
  43075.   # use the weaker test based on 'objdump'. See mingw*.
  43076.   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  43077.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  43078.   ;;
  43079.  
  43080. darwin* | rhapsody*)
  43081.   lt_cv_deplibs_check_method=pass_all
  43082.   ;;
  43083.  
  43084. freebsd* | dragonfly*)
  43085.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  43086.     case $host_cpu in
  43087.     i*86 )
  43088.       # Not sure whether the presence of OpenBSD here was a mistake.
  43089.       # Let's accept both of them until this is cleared up.
  43090.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  43091.       lt_cv_file_magic_cmd=/usr/bin/file
  43092.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  43093.       ;;
  43094.     esac
  43095.   else
  43096.     lt_cv_deplibs_check_method=pass_all
  43097.   fi
  43098.   ;;
  43099.  
  43100. haiku*)
  43101.   lt_cv_deplibs_check_method=pass_all
  43102.   ;;
  43103.  
  43104. hpux10.20* | hpux11*)
  43105.   lt_cv_file_magic_cmd=/usr/bin/file
  43106.   case $host_cpu in
  43107.   ia64*)
  43108.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  43109.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  43110.     ;;
  43111.   hppa*64*)
  43112.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  43113.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  43114.     ;;
  43115.   *)
  43116.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  43117.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  43118.     ;;
  43119.   esac
  43120.   ;;
  43121.  
  43122. interix[3-9]*)
  43123.   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  43124.   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  43125.   ;;
  43126.  
  43127. irix5* | irix6* | nonstopux*)
  43128.   case $LD in
  43129.   *-32|*"-32 ") libmagic=32-bit;;
  43130.   *-n32|*"-n32 ") libmagic=N32;;
  43131.   *-64|*"-64 ") libmagic=64-bit;;
  43132.   *) libmagic=never-match;;
  43133.   esac
  43134.   lt_cv_deplibs_check_method=pass_all
  43135.   ;;
  43136.  
  43137. # This must be glibc/ELF.
  43138. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  43139.   lt_cv_deplibs_check_method=pass_all
  43140.   ;;
  43141.  
  43142. netbsd* | netbsdelf*-gnu)
  43143.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  43144.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  43145.   else
  43146.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  43147.   fi
  43148.   ;;
  43149.  
  43150. newos6*)
  43151.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  43152.   lt_cv_file_magic_cmd=/usr/bin/file
  43153.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  43154.   ;;
  43155.  
  43156. *nto* | *qnx*)
  43157.   lt_cv_deplibs_check_method=pass_all
  43158.   ;;
  43159.  
  43160. openbsd* | bitrig*)
  43161.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  43162.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  43163.   else
  43164.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  43165.   fi
  43166.   ;;
  43167.  
  43168. osf3* | osf4* | osf5*)
  43169.   lt_cv_deplibs_check_method=pass_all
  43170.   ;;
  43171.  
  43172. rdos*)
  43173.   lt_cv_deplibs_check_method=pass_all
  43174.   ;;
  43175.  
  43176. solaris*)
  43177.   lt_cv_deplibs_check_method=pass_all
  43178.   ;;
  43179.  
  43180. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  43181.   lt_cv_deplibs_check_method=pass_all
  43182.   ;;
  43183.  
  43184. sysv4 | sysv4.3*)
  43185.   case $host_vendor in
  43186.   motorola)
  43187.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  43188.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  43189.     ;;
  43190.   ncr)
  43191.     lt_cv_deplibs_check_method=pass_all
  43192.     ;;
  43193.   sequent)
  43194.     lt_cv_file_magic_cmd='/bin/file'
  43195.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  43196.     ;;
  43197.   sni)
  43198.     lt_cv_file_magic_cmd='/bin/file'
  43199.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  43200.     lt_cv_file_magic_test_file=/lib/libc.so
  43201.     ;;
  43202.   siemens)
  43203.     lt_cv_deplibs_check_method=pass_all
  43204.     ;;
  43205.   pc)
  43206.     lt_cv_deplibs_check_method=pass_all
  43207.     ;;
  43208.   esac
  43209.   ;;
  43210.  
  43211. tpf*)
  43212.   lt_cv_deplibs_check_method=pass_all
  43213.   ;;
  43214. os2*)
  43215.   lt_cv_deplibs_check_method=pass_all
  43216.   ;;
  43217. esac
  43218.  
  43219. fi
  43220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  43221. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  43222.  
  43223. file_magic_glob=
  43224. want_nocaseglob=no
  43225. if test "$build" = "$host"; then
  43226.   case $host_os in
  43227.   mingw* | pw32*)
  43228.     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  43229.       want_nocaseglob=yes
  43230.     else
  43231.       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  43232.     fi
  43233.     ;;
  43234.   esac
  43235. fi
  43236.  
  43237. file_magic_cmd=$lt_cv_file_magic_cmd
  43238. deplibs_check_method=$lt_cv_deplibs_check_method
  43239. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  43240.  
  43241.  
  43242.  
  43243.  
  43244.  
  43245.  
  43246.  
  43247.  
  43248.  
  43249.  
  43250.  
  43251.  
  43252.  
  43253.  
  43254.  
  43255.  
  43256.  
  43257.  
  43258.  
  43259.  
  43260.  
  43261.  
  43262. if test -n "$ac_tool_prefix"; then
  43263.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  43264. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  43265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43266. $as_echo_n "checking for $ac_word... " >&6; }
  43267. if ${ac_cv_prog_DLLTOOL+:} false; then :
  43268.   $as_echo_n "(cached) " >&6
  43269. else
  43270.   if test -n "$DLLTOOL"; then
  43271.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  43272. else
  43273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43274. for as_dir in $PATH
  43275. do
  43276.   IFS=$as_save_IFS
  43277.   test -z "$as_dir" && as_dir=.
  43278.     for ac_exec_ext in '' $ac_executable_extensions; do
  43279.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  43280.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  43281.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43282.     break 2
  43283.   fi
  43284. done
  43285.   done
  43286. IFS=$as_save_IFS
  43287.  
  43288. fi
  43289. fi
  43290. DLLTOOL=$ac_cv_prog_DLLTOOL
  43291. if test -n "$DLLTOOL"; then
  43292.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  43293. $as_echo "$DLLTOOL" >&6; }
  43294. else
  43295.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43296. $as_echo "no" >&6; }
  43297. fi
  43298.  
  43299.  
  43300. fi
  43301. if test -z "$ac_cv_prog_DLLTOOL"; then
  43302.   ac_ct_DLLTOOL=$DLLTOOL
  43303.   # Extract the first word of "dlltool", so it can be a program name with args.
  43304. set dummy dlltool; ac_word=$2
  43305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43306. $as_echo_n "checking for $ac_word... " >&6; }
  43307. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  43308.   $as_echo_n "(cached) " >&6
  43309. else
  43310.   if test -n "$ac_ct_DLLTOOL"; then
  43311.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  43312. else
  43313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43314. for as_dir in $PATH
  43315. do
  43316.   IFS=$as_save_IFS
  43317.   test -z "$as_dir" && as_dir=.
  43318.     for ac_exec_ext in '' $ac_executable_extensions; do
  43319.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  43320.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  43321.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43322.     break 2
  43323.   fi
  43324. done
  43325.   done
  43326. IFS=$as_save_IFS
  43327.  
  43328. fi
  43329. fi
  43330. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  43331. if test -n "$ac_ct_DLLTOOL"; then
  43332.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  43333. $as_echo "$ac_ct_DLLTOOL" >&6; }
  43334. else
  43335.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43336. $as_echo "no" >&6; }
  43337. fi
  43338.  
  43339.   if test "x$ac_ct_DLLTOOL" = x; then
  43340.     DLLTOOL="false"
  43341.   else
  43342.     case $cross_compiling:$ac_tool_warned in
  43343. yes:)
  43344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  43345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  43346. ac_tool_warned=yes ;;
  43347. esac
  43348.     DLLTOOL=$ac_ct_DLLTOOL
  43349.   fi
  43350. else
  43351.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  43352. fi
  43353.  
  43354. test -z "$DLLTOOL" && DLLTOOL=dlltool
  43355.  
  43356.  
  43357.  
  43358.  
  43359.  
  43360.  
  43361.  
  43362.  
  43363.  
  43364.  
  43365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  43366. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  43367. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  43368.   $as_echo_n "(cached) " >&6
  43369. else
  43370.   lt_cv_sharedlib_from_linklib_cmd='unknown'
  43371.  
  43372. case $host_os in
  43373. cygwin* | mingw* | pw32* | cegcc*)
  43374.   # two different shell functions defined in ltmain.sh;
  43375.   # decide which one to use based on capabilities of $DLLTOOL
  43376.   case `$DLLTOOL --help 2>&1` in
  43377.   *--identify-strict*)
  43378.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  43379.     ;;
  43380.   *)
  43381.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  43382.     ;;
  43383.   esac
  43384.   ;;
  43385. *)
  43386.   # fallback: assume linklib IS sharedlib
  43387.   lt_cv_sharedlib_from_linklib_cmd=$ECHO
  43388.   ;;
  43389. esac
  43390.  
  43391. fi
  43392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  43393. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  43394. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  43395. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  43396.  
  43397.  
  43398.  
  43399.  
  43400.  
  43401.  
  43402.  
  43403. if test -n "$ac_tool_prefix"; then
  43404.   for ac_prog in ar
  43405.   do
  43406.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  43407. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  43408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43409. $as_echo_n "checking for $ac_word... " >&6; }
  43410. if ${ac_cv_prog_AR+:} false; then :
  43411.   $as_echo_n "(cached) " >&6
  43412. else
  43413.   if test -n "$AR"; then
  43414.   ac_cv_prog_AR="$AR" # Let the user override the test.
  43415. else
  43416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43417. for as_dir in $PATH
  43418. do
  43419.   IFS=$as_save_IFS
  43420.   test -z "$as_dir" && as_dir=.
  43421.     for ac_exec_ext in '' $ac_executable_extensions; do
  43422.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  43423.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  43424.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43425.     break 2
  43426.   fi
  43427. done
  43428.   done
  43429. IFS=$as_save_IFS
  43430.  
  43431. fi
  43432. fi
  43433. AR=$ac_cv_prog_AR
  43434. if test -n "$AR"; then
  43435.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  43436. $as_echo "$AR" >&6; }
  43437. else
  43438.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43439. $as_echo "no" >&6; }
  43440. fi
  43441.  
  43442.  
  43443.     test -n "$AR" && break
  43444.   done
  43445. fi
  43446. if test -z "$AR"; then
  43447.   ac_ct_AR=$AR
  43448.   for ac_prog in ar
  43449. do
  43450.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  43451. set dummy $ac_prog; ac_word=$2
  43452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43453. $as_echo_n "checking for $ac_word... " >&6; }
  43454. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  43455.   $as_echo_n "(cached) " >&6
  43456. else
  43457.   if test -n "$ac_ct_AR"; then
  43458.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  43459. else
  43460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43461. for as_dir in $PATH
  43462. do
  43463.   IFS=$as_save_IFS
  43464.   test -z "$as_dir" && as_dir=.
  43465.     for ac_exec_ext in '' $ac_executable_extensions; do
  43466.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  43467.     ac_cv_prog_ac_ct_AR="$ac_prog"
  43468.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43469.     break 2
  43470.   fi
  43471. done
  43472.   done
  43473. IFS=$as_save_IFS
  43474.  
  43475. fi
  43476. fi
  43477. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  43478. if test -n "$ac_ct_AR"; then
  43479.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  43480. $as_echo "$ac_ct_AR" >&6; }
  43481. else
  43482.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43483. $as_echo "no" >&6; }
  43484. fi
  43485.  
  43486.  
  43487.   test -n "$ac_ct_AR" && break
  43488. done
  43489.  
  43490.   if test "x$ac_ct_AR" = x; then
  43491.     AR="false"
  43492.   else
  43493.     case $cross_compiling:$ac_tool_warned in
  43494. yes:)
  43495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  43496. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  43497. ac_tool_warned=yes ;;
  43498. esac
  43499.     AR=$ac_ct_AR
  43500.   fi
  43501. fi
  43502.  
  43503. : ${AR=ar}
  43504. : ${AR_FLAGS=cru}
  43505.  
  43506.  
  43507.  
  43508.  
  43509.  
  43510.  
  43511.  
  43512.  
  43513.  
  43514.  
  43515.  
  43516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  43517. $as_echo_n "checking for archiver @FILE support... " >&6; }
  43518. if ${lt_cv_ar_at_file+:} false; then :
  43519.   $as_echo_n "(cached) " >&6
  43520. else
  43521.   lt_cv_ar_at_file=no
  43522.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43523. /* end confdefs.h.  */
  43524.  
  43525. int
  43526. main ()
  43527. {
  43528.  
  43529.   ;
  43530.   return 0;
  43531. }
  43532. _ACEOF
  43533. if ac_fn_c_try_compile "$LINENO"; then :
  43534.   echo conftest.$ac_objext > conftest.lst
  43535.       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  43536.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  43537.   (eval $lt_ar_try) 2>&5
  43538.   ac_status=$?
  43539.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  43540.   test $ac_status = 0; }
  43541.       if test 0 -eq "$ac_status"; then
  43542.         # Ensure the archiver fails upon bogus file names.
  43543.         rm -f conftest.$ac_objext libconftest.a
  43544.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  43545.   (eval $lt_ar_try) 2>&5
  43546.   ac_status=$?
  43547.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  43548.   test $ac_status = 0; }
  43549.         if test 0 -ne "$ac_status"; then
  43550.           lt_cv_ar_at_file=@
  43551.         fi
  43552.       fi
  43553.       rm -f conftest.* libconftest.a
  43554.  
  43555. fi
  43556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43557.  
  43558. fi
  43559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  43560. $as_echo "$lt_cv_ar_at_file" >&6; }
  43561.  
  43562. if test no = "$lt_cv_ar_at_file"; then
  43563.   archiver_list_spec=
  43564. else
  43565.   archiver_list_spec=$lt_cv_ar_at_file
  43566. fi
  43567.  
  43568.  
  43569.  
  43570.  
  43571.  
  43572.  
  43573.  
  43574. if test -n "$ac_tool_prefix"; then
  43575.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  43576. set dummy ${ac_tool_prefix}strip; ac_word=$2
  43577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43578. $as_echo_n "checking for $ac_word... " >&6; }
  43579. if ${ac_cv_prog_STRIP+:} false; then :
  43580.   $as_echo_n "(cached) " >&6
  43581. else
  43582.   if test -n "$STRIP"; then
  43583.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  43584. else
  43585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43586. for as_dir in $PATH
  43587. do
  43588.   IFS=$as_save_IFS
  43589.   test -z "$as_dir" && as_dir=.
  43590.     for ac_exec_ext in '' $ac_executable_extensions; do
  43591.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  43592.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  43593.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43594.     break 2
  43595.   fi
  43596. done
  43597.   done
  43598. IFS=$as_save_IFS
  43599.  
  43600. fi
  43601. fi
  43602. STRIP=$ac_cv_prog_STRIP
  43603. if test -n "$STRIP"; then
  43604.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  43605. $as_echo "$STRIP" >&6; }
  43606. else
  43607.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43608. $as_echo "no" >&6; }
  43609. fi
  43610.  
  43611.  
  43612. fi
  43613. if test -z "$ac_cv_prog_STRIP"; then
  43614.   ac_ct_STRIP=$STRIP
  43615.   # Extract the first word of "strip", so it can be a program name with args.
  43616. set dummy strip; ac_word=$2
  43617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43618. $as_echo_n "checking for $ac_word... " >&6; }
  43619. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  43620.   $as_echo_n "(cached) " >&6
  43621. else
  43622.   if test -n "$ac_ct_STRIP"; then
  43623.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  43624. else
  43625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43626. for as_dir in $PATH
  43627. do
  43628.   IFS=$as_save_IFS
  43629.   test -z "$as_dir" && as_dir=.
  43630.     for ac_exec_ext in '' $ac_executable_extensions; do
  43631.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  43632.     ac_cv_prog_ac_ct_STRIP="strip"
  43633.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43634.     break 2
  43635.   fi
  43636. done
  43637.   done
  43638. IFS=$as_save_IFS
  43639.  
  43640. fi
  43641. fi
  43642. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  43643. if test -n "$ac_ct_STRIP"; then
  43644.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  43645. $as_echo "$ac_ct_STRIP" >&6; }
  43646. else
  43647.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43648. $as_echo "no" >&6; }
  43649. fi
  43650.  
  43651.   if test "x$ac_ct_STRIP" = x; then
  43652.     STRIP=":"
  43653.   else
  43654.     case $cross_compiling:$ac_tool_warned in
  43655. yes:)
  43656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  43657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  43658. ac_tool_warned=yes ;;
  43659. esac
  43660.     STRIP=$ac_ct_STRIP
  43661.   fi
  43662. else
  43663.   STRIP="$ac_cv_prog_STRIP"
  43664. fi
  43665.  
  43666. test -z "$STRIP" && STRIP=:
  43667.  
  43668.  
  43669.  
  43670.  
  43671.  
  43672.  
  43673. if test -n "$ac_tool_prefix"; then
  43674.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  43675. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  43676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43677. $as_echo_n "checking for $ac_word... " >&6; }
  43678. if ${ac_cv_prog_RANLIB+:} false; then :
  43679.   $as_echo_n "(cached) " >&6
  43680. else
  43681.   if test -n "$RANLIB"; then
  43682.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  43683. else
  43684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43685. for as_dir in $PATH
  43686. do
  43687.   IFS=$as_save_IFS
  43688.   test -z "$as_dir" && as_dir=.
  43689.     for ac_exec_ext in '' $ac_executable_extensions; do
  43690.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  43691.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  43692.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43693.     break 2
  43694.   fi
  43695. done
  43696.   done
  43697. IFS=$as_save_IFS
  43698.  
  43699. fi
  43700. fi
  43701. RANLIB=$ac_cv_prog_RANLIB
  43702. if test -n "$RANLIB"; then
  43703.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  43704. $as_echo "$RANLIB" >&6; }
  43705. else
  43706.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43707. $as_echo "no" >&6; }
  43708. fi
  43709.  
  43710.  
  43711. fi
  43712. if test -z "$ac_cv_prog_RANLIB"; then
  43713.   ac_ct_RANLIB=$RANLIB
  43714.   # Extract the first word of "ranlib", so it can be a program name with args.
  43715. set dummy ranlib; ac_word=$2
  43716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43717. $as_echo_n "checking for $ac_word... " >&6; }
  43718. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  43719.   $as_echo_n "(cached) " >&6
  43720. else
  43721.   if test -n "$ac_ct_RANLIB"; then
  43722.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  43723. else
  43724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43725. for as_dir in $PATH
  43726. do
  43727.   IFS=$as_save_IFS
  43728.   test -z "$as_dir" && as_dir=.
  43729.     for ac_exec_ext in '' $ac_executable_extensions; do
  43730.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  43731.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  43732.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43733.     break 2
  43734.   fi
  43735. done
  43736.   done
  43737. IFS=$as_save_IFS
  43738.  
  43739. fi
  43740. fi
  43741. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  43742. if test -n "$ac_ct_RANLIB"; then
  43743.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  43744. $as_echo "$ac_ct_RANLIB" >&6; }
  43745. else
  43746.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43747. $as_echo "no" >&6; }
  43748. fi
  43749.  
  43750.   if test "x$ac_ct_RANLIB" = x; then
  43751.     RANLIB=":"
  43752.   else
  43753.     case $cross_compiling:$ac_tool_warned in
  43754. yes:)
  43755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  43756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  43757. ac_tool_warned=yes ;;
  43758. esac
  43759.     RANLIB=$ac_ct_RANLIB
  43760.   fi
  43761. else
  43762.   RANLIB="$ac_cv_prog_RANLIB"
  43763. fi
  43764.  
  43765. test -z "$RANLIB" && RANLIB=:
  43766.  
  43767.  
  43768.  
  43769.  
  43770.  
  43771.  
  43772. # Determine commands to create old-style static archives.
  43773. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  43774. old_postinstall_cmds='chmod 644 $oldlib'
  43775. old_postuninstall_cmds=
  43776.  
  43777. if test -n "$RANLIB"; then
  43778.   case $host_os in
  43779.   bitrig* | openbsd*)
  43780.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  43781.     ;;
  43782.   *)
  43783.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  43784.     ;;
  43785.   esac
  43786.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  43787. fi
  43788.  
  43789. case $host_os in
  43790.   darwin*)
  43791.     lock_old_archive_extraction=yes ;;
  43792.   *)
  43793.     lock_old_archive_extraction=no ;;
  43794. esac
  43795.  
  43796.  
  43797.  
  43798.  
  43799.  
  43800.  
  43801.  
  43802.  
  43803.  
  43804.  
  43805.  
  43806.  
  43807.  
  43808.  
  43809.  
  43810.  
  43811.  
  43812.  
  43813.  
  43814.  
  43815.  
  43816.  
  43817.  
  43818.  
  43819.  
  43820.  
  43821.  
  43822.  
  43823.  
  43824.  
  43825.  
  43826.  
  43827.  
  43828.  
  43829.  
  43830.  
  43831.  
  43832.  
  43833.  
  43834. # If no C compiler was specified, use CC.
  43835. LTCC=${LTCC-"$CC"}
  43836.  
  43837. # If no C compiler flags were specified, use CFLAGS.
  43838. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  43839.  
  43840. # Allow CC to be a program name with arguments.
  43841. compiler=$CC
  43842.  
  43843.  
  43844. # Check for command to grab the raw symbol name followed by C symbol from nm.
  43845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  43846. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  43847. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  43848.   $as_echo_n "(cached) " >&6
  43849. else
  43850.  
  43851. # These are sane defaults that work on at least a few old systems.
  43852. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  43853.  
  43854. # Character class describing NM global symbol codes.
  43855. symcode='[BCDEGRST]'
  43856.  
  43857. # Regexp to match symbols that can be accessed directly from C.
  43858. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  43859.  
  43860. # Define system-specific variables.
  43861. case $host_os in
  43862. aix*)
  43863.   symcode='[BCDT]'
  43864.   ;;
  43865. cygwin* | mingw* | pw32* | cegcc*)
  43866.   symcode='[ABCDGISTW]'
  43867.   ;;
  43868. hpux*)
  43869.   if test ia64 = "$host_cpu"; then
  43870.     symcode='[ABCDEGRST]'
  43871.   fi
  43872.   ;;
  43873. irix* | nonstopux*)
  43874.   symcode='[BCDEGRST]'
  43875.   ;;
  43876. osf*)
  43877.   symcode='[BCDEGQRST]'
  43878.   ;;
  43879. solaris*)
  43880.   symcode='[BDRT]'
  43881.   ;;
  43882. sco3.2v5*)
  43883.   symcode='[DT]'
  43884.   ;;
  43885. sysv4.2uw2*)
  43886.   symcode='[DT]'
  43887.   ;;
  43888. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  43889.   symcode='[ABDT]'
  43890.   ;;
  43891. sysv4)
  43892.   symcode='[DFNSTU]'
  43893.   ;;
  43894. esac
  43895.  
  43896. # If we're using GNU nm, then use its standard symbol codes.
  43897. case `$NM -V 2>&1` in
  43898. *GNU* | *'with BFD'*)
  43899.   symcode='[ABCDGIRSTW]' ;;
  43900. esac
  43901.  
  43902. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  43903.   # Gets list of data symbols to import.
  43904.   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  43905.   # Adjust the below global symbol transforms to fixup imported variables.
  43906.   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  43907.   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  43908.   lt_c_name_lib_hook="\
  43909.  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  43910.  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
  43911. else
  43912.   # Disable hooks by default.
  43913.   lt_cv_sys_global_symbol_to_import=
  43914.   lt_cdecl_hook=
  43915.   lt_c_name_hook=
  43916.   lt_c_name_lib_hook=
  43917. fi
  43918.  
  43919. # Transform an extracted symbol line into a proper C declaration.
  43920. # Some systems (esp. on ia64) link data and code symbols differently,
  43921. # so use this general approach.
  43922. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  43923. $lt_cdecl_hook\
  43924. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  43925. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  43926.  
  43927. # Transform an extracted symbol line into symbol name and symbol address
  43928. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  43929. $lt_c_name_hook\
  43930. " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
  43931. " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
  43932.  
  43933. # Transform an extracted symbol line into symbol name with lib prefix and
  43934. # symbol address.
  43935. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  43936. $lt_c_name_lib_hook\
  43937. " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
  43938. " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
  43939. " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
  43940.  
  43941. # Handle CRLF in mingw tool chain
  43942. opt_cr=
  43943. case $build_os in
  43944. mingw*)
  43945.   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  43946.   ;;
  43947. esac
  43948.  
  43949. # Try without a prefix underscore, then with it.
  43950. for ac_symprfx in "" "_"; do
  43951.  
  43952.   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  43953.   symxfrm="\\1 $ac_symprfx\\2 \\2"
  43954.  
  43955.   # Write the raw and C identifiers.
  43956.   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  43957.     # Fake it for dumpbin and say T for any non-static function,
  43958.     # D for any global variable and I for any imported variable.
  43959.     # Also find C++ and __fastcall symbols from MSVC++,
  43960.     # which start with @ or ?.
  43961.     lt_cv_sys_global_symbol_pipe="$AWK '"\
  43962. "     {last_section=section; section=\$ 3};"\
  43963. "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  43964. "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  43965. "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  43966. "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  43967. "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  43968. "     \$ 0!~/External *\|/{next};"\
  43969. "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  43970. "     {if(hide[section]) next};"\
  43971. "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  43972. "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  43973. "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  43974. "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  43975. "     ' prfx=^$ac_symprfx"
  43976.   else
  43977.     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  43978.   fi
  43979.   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  43980.  
  43981.   # Check to see that the pipe works correctly.
  43982.   pipe_works=no
  43983.  
  43984.   rm -f conftest*
  43985.   cat > conftest.$ac_ext <<_LT_EOF
  43986. #ifdef __cplusplus
  43987. extern "C" {
  43988. #endif
  43989. char nm_test_var;
  43990. void nm_test_func(void);
  43991. void nm_test_func(void){}
  43992. #ifdef __cplusplus
  43993. }
  43994. #endif
  43995. int main(){nm_test_var='a';nm_test_func();return(0);}
  43996. _LT_EOF
  43997.  
  43998.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  43999.   (eval $ac_compile) 2>&5
  44000.   ac_status=$?
  44001.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44002.   test $ac_status = 0; }; then
  44003.     # Now try to grab the symbols.
  44004.     nlist=conftest.nm
  44005.     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  44006.   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  44007.   ac_status=$?
  44008.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44009.   test $ac_status = 0; } && test -s "$nlist"; then
  44010.       # Try sorting and uniquifying the output.
  44011.       if sort "$nlist" | uniq > "$nlist"T; then
  44012.         mv -f "$nlist"T "$nlist"
  44013.       else
  44014.         rm -f "$nlist"T
  44015.       fi
  44016.  
  44017.       # Make sure that we snagged all the symbols we need.
  44018.       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  44019.         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  44020.           cat <<_LT_EOF > conftest.$ac_ext
  44021. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  44022. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  44023. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  44024.   relocations are performed -- see ld's documentation on pseudo-relocs.  */
  44025. # define LT_DLSYM_CONST
  44026. #elif defined __osf__
  44027. /* This system does not cope well with relocations in const data.  */
  44028. # define LT_DLSYM_CONST
  44029. #else
  44030. # define LT_DLSYM_CONST const
  44031. #endif
  44032.  
  44033. #ifdef __cplusplus
  44034. extern "C" {
  44035. #endif
  44036.  
  44037. _LT_EOF
  44038.           # Now generate the symbol file.
  44039.           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  44040.  
  44041.           cat <<_LT_EOF >> conftest.$ac_ext
  44042.  
  44043. /* The mapping between symbol names and symbols.  */
  44044. LT_DLSYM_CONST struct {
  44045.   const char *name;
  44046.   void       *address;
  44047. }
  44048. lt__PROGRAM__LTX_preloaded_symbols[] =
  44049. {
  44050.   { "@PROGRAM@", (void *) 0 },
  44051. _LT_EOF
  44052.           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  44053.           cat <<\_LT_EOF >> conftest.$ac_ext
  44054.   {0, (void *) 0}
  44055. };
  44056.  
  44057. /* This works around a problem in FreeBSD linker */
  44058. #ifdef FREEBSD_WORKAROUND
  44059. static const void *lt_preloaded_setup() {
  44060.   return lt__PROGRAM__LTX_preloaded_symbols;
  44061. }
  44062. #endif
  44063.  
  44064. #ifdef __cplusplus
  44065. }
  44066. #endif
  44067. _LT_EOF
  44068.           # Now try linking the two files.
  44069.           mv conftest.$ac_objext conftstm.$ac_objext
  44070.           lt_globsym_save_LIBS=$LIBS
  44071.           lt_globsym_save_CFLAGS=$CFLAGS
  44072.           LIBS=conftstm.$ac_objext
  44073.           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  44074.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  44075.   (eval $ac_link) 2>&5
  44076.   ac_status=$?
  44077.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44078.   test $ac_status = 0; } && test -s conftest$ac_exeext; then
  44079.             pipe_works=yes
  44080.           fi
  44081.           LIBS=$lt_globsym_save_LIBS
  44082.           CFLAGS=$lt_globsym_save_CFLAGS
  44083.         else
  44084.           echo "cannot find nm_test_func in $nlist" >&5
  44085.         fi
  44086.       else
  44087.         echo "cannot find nm_test_var in $nlist" >&5
  44088.       fi
  44089.     else
  44090.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  44091.     fi
  44092.   else
  44093.     echo "$progname: failed program was:" >&5
  44094.     cat conftest.$ac_ext >&5
  44095.   fi
  44096.   rm -rf conftest* conftst*
  44097.  
  44098.   # Do not use the global_symbol_pipe unless it works.
  44099.   if test yes = "$pipe_works"; then
  44100.     break
  44101.   else
  44102.     lt_cv_sys_global_symbol_pipe=
  44103.   fi
  44104. done
  44105.  
  44106. fi
  44107.  
  44108. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  44109.   lt_cv_sys_global_symbol_to_cdecl=
  44110. fi
  44111. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  44112.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  44113. $as_echo "failed" >&6; }
  44114. else
  44115.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  44116. $as_echo "ok" >&6; }
  44117. fi
  44118.  
  44119. # Response file support.
  44120. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  44121.   nm_file_list_spec='@'
  44122. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  44123.   nm_file_list_spec='@'
  44124. fi
  44125.  
  44126.  
  44127.  
  44128.  
  44129.  
  44130.  
  44131.  
  44132.  
  44133.  
  44134.  
  44135.  
  44136.  
  44137.  
  44138.  
  44139.  
  44140.  
  44141.  
  44142.  
  44143.  
  44144.  
  44145.  
  44146.  
  44147.  
  44148.  
  44149.  
  44150.  
  44151.  
  44152.  
  44153.  
  44154.  
  44155.  
  44156.  
  44157.  
  44158.  
  44159.  
  44160.  
  44161.  
  44162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  44163. $as_echo_n "checking for sysroot... " >&6; }
  44164.  
  44165. # Check whether --with-sysroot was given.
  44166. if test "${with_sysroot+set}" = set; then :
  44167.   withval=$with_sysroot;
  44168. else
  44169.   with_sysroot=no
  44170. fi
  44171.  
  44172.  
  44173. lt_sysroot=
  44174. case $with_sysroot in #(
  44175.  yes)
  44176.    if test yes = "$GCC"; then
  44177.      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  44178.    fi
  44179.    ;; #(
  44180.  /*)
  44181.    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  44182.    ;; #(
  44183.  no|'')
  44184.    ;; #(
  44185.  *)
  44186.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  44187. $as_echo "$with_sysroot" >&6; }
  44188.    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  44189.    ;;
  44190. esac
  44191.  
  44192.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  44193. $as_echo "${lt_sysroot:-no}" >&6; }
  44194.  
  44195.  
  44196.  
  44197.  
  44198.  
  44199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  44200. $as_echo_n "checking for a working dd... " >&6; }
  44201. if ${ac_cv_path_lt_DD+:} false; then :
  44202.   $as_echo_n "(cached) " >&6
  44203. else
  44204.   printf 0123456789abcdef0123456789abcdef >conftest.i
  44205. cat conftest.i conftest.i >conftest2.i
  44206. : ${lt_DD:=$DD}
  44207. if test -z "$lt_DD"; then
  44208.   ac_path_lt_DD_found=false
  44209.   # Loop through the user's path and test for each of PROGNAME-LIST
  44210.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44211. for as_dir in $PATH
  44212. do
  44213.   IFS=$as_save_IFS
  44214.   test -z "$as_dir" && as_dir=.
  44215.     for ac_prog in dd; do
  44216.     for ac_exec_ext in '' $ac_executable_extensions; do
  44217.       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  44218.       as_fn_executable_p "$ac_path_lt_DD" || continue
  44219. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  44220.   cmp -s conftest.i conftest.out \
  44221.   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  44222. fi
  44223.       $ac_path_lt_DD_found && break 3
  44224.     done
  44225.   done
  44226.   done
  44227. IFS=$as_save_IFS
  44228.   if test -z "$ac_cv_path_lt_DD"; then
  44229.     :
  44230.   fi
  44231. else
  44232.   ac_cv_path_lt_DD=$lt_DD
  44233. fi
  44234.  
  44235. rm -f conftest.i conftest2.i conftest.out
  44236. fi
  44237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  44238. $as_echo "$ac_cv_path_lt_DD" >&6; }
  44239.  
  44240.  
  44241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  44242. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  44243. if ${lt_cv_truncate_bin+:} false; then :
  44244.   $as_echo_n "(cached) " >&6
  44245. else
  44246.   printf 0123456789abcdef0123456789abcdef >conftest.i
  44247. cat conftest.i conftest.i >conftest2.i
  44248. lt_cv_truncate_bin=
  44249. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  44250.   cmp -s conftest.i conftest.out \
  44251.   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  44252. fi
  44253. rm -f conftest.i conftest2.i conftest.out
  44254. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  44255. fi
  44256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  44257. $as_echo "$lt_cv_truncate_bin" >&6; }
  44258.  
  44259.  
  44260.  
  44261.  
  44262.  
  44263.  
  44264.  
  44265. # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  44266. func_cc_basename ()
  44267. {
  44268.     for cc_temp in $*""; do
  44269.       case $cc_temp in
  44270.         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  44271.         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  44272.         \-*) ;;
  44273.         *) break;;
  44274.       esac
  44275.     done
  44276.     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  44277. }
  44278.  
  44279. # Check whether --enable-libtool-lock was given.
  44280. if test "${enable_libtool_lock+set}" = set; then :
  44281.   enableval=$enable_libtool_lock;
  44282. fi
  44283.  
  44284. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  44285.  
  44286. # Some flags need to be propagated to the compiler or linker for good
  44287. # libtool support.
  44288. case $host in
  44289. ia64-*-hpux*)
  44290.   # Find out what ABI is being produced by ac_compile, and set mode
  44291.   # options accordingly.
  44292.   echo 'int i;' > conftest.$ac_ext
  44293.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  44294.   (eval $ac_compile) 2>&5
  44295.   ac_status=$?
  44296.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44297.   test $ac_status = 0; }; then
  44298.     case `/usr/bin/file conftest.$ac_objext` in
  44299.       *ELF-32*)
  44300.         HPUX_IA64_MODE=32
  44301.         ;;
  44302.       *ELF-64*)
  44303.         HPUX_IA64_MODE=64
  44304.         ;;
  44305.     esac
  44306.   fi
  44307.   rm -rf conftest*
  44308.   ;;
  44309. *-*-irix6*)
  44310.   # Find out what ABI is being produced by ac_compile, and set linker
  44311.   # options accordingly.
  44312.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  44313.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  44314.   (eval $ac_compile) 2>&5
  44315.   ac_status=$?
  44316.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44317.   test $ac_status = 0; }; then
  44318.     if test yes = "$lt_cv_prog_gnu_ld"; then
  44319.       case `/usr/bin/file conftest.$ac_objext` in
  44320.         *32-bit*)
  44321.           LD="${LD-ld} -melf32bsmip"
  44322.           ;;
  44323.         *N32*)
  44324.           LD="${LD-ld} -melf32bmipn32"
  44325.           ;;
  44326.         *64-bit*)
  44327.           LD="${LD-ld} -melf64bmip"
  44328.         ;;
  44329.       esac
  44330.     else
  44331.       case `/usr/bin/file conftest.$ac_objext` in
  44332.         *32-bit*)
  44333.           LD="${LD-ld} -32"
  44334.           ;;
  44335.         *N32*)
  44336.           LD="${LD-ld} -n32"
  44337.           ;;
  44338.         *64-bit*)
  44339.           LD="${LD-ld} -64"
  44340.           ;;
  44341.       esac
  44342.     fi
  44343.   fi
  44344.   rm -rf conftest*
  44345.   ;;
  44346.  
  44347. mips64*-*linux*)
  44348.   # Find out what ABI is being produced by ac_compile, and set linker
  44349.   # options accordingly.
  44350.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  44351.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  44352.   (eval $ac_compile) 2>&5
  44353.   ac_status=$?
  44354.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44355.   test $ac_status = 0; }; then
  44356.     emul=elf
  44357.     case `/usr/bin/file conftest.$ac_objext` in
  44358.       *32-bit*)
  44359.         emul="${emul}32"
  44360.         ;;
  44361.       *64-bit*)
  44362.         emul="${emul}64"
  44363.         ;;
  44364.     esac
  44365.     case `/usr/bin/file conftest.$ac_objext` in
  44366.       *MSB*)
  44367.         emul="${emul}btsmip"
  44368.         ;;
  44369.       *LSB*)
  44370.         emul="${emul}ltsmip"
  44371.         ;;
  44372.     esac
  44373.     case `/usr/bin/file conftest.$ac_objext` in
  44374.       *N32*)
  44375.         emul="${emul}n32"
  44376.         ;;
  44377.     esac
  44378.     LD="${LD-ld} -m $emul"
  44379.   fi
  44380.   rm -rf conftest*
  44381.   ;;
  44382.  
  44383. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  44384. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  44385.   # Find out what ABI is being produced by ac_compile, and set linker
  44386.   # options accordingly.  Note that the listed cases only cover the
  44387.   # situations where additional linker options are needed (such as when
  44388.   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  44389.   # vice versa); the common cases where no linker options are needed do
  44390.   # not appear in the list.
  44391.   echo 'int i;' > conftest.$ac_ext
  44392.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  44393.   (eval $ac_compile) 2>&5
  44394.   ac_status=$?
  44395.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44396.   test $ac_status = 0; }; then
  44397.     case `/usr/bin/file conftest.o` in
  44398.       *32-bit*)
  44399.         case $host in
  44400.           x86_64-*kfreebsd*-gnu)
  44401.             LD="${LD-ld} -m elf_i386_fbsd"
  44402.             ;;
  44403.           x86_64-*linux*)
  44404.             case `/usr/bin/file conftest.o` in
  44405.               *x86-64*)
  44406.                 LD="${LD-ld} -m elf32_x86_64"
  44407.                 ;;
  44408.               *)
  44409.                 LD="${LD-ld} -m elf_i386"
  44410.                 ;;
  44411.             esac
  44412.             ;;
  44413.           powerpc64le-*linux*)
  44414.             LD="${LD-ld} -m elf32lppclinux"
  44415.             ;;
  44416.           powerpc64-*linux*)
  44417.             LD="${LD-ld} -m elf32ppclinux"
  44418.             ;;
  44419.           s390x-*linux*)
  44420.             LD="${LD-ld} -m elf_s390"
  44421.             ;;
  44422.           sparc64-*linux*)
  44423.             LD="${LD-ld} -m elf32_sparc"
  44424.             ;;
  44425.         esac
  44426.         ;;
  44427.       *64-bit*)
  44428.         case $host in
  44429.           x86_64-*kfreebsd*-gnu)
  44430.             LD="${LD-ld} -m elf_x86_64_fbsd"
  44431.             ;;
  44432.           x86_64-*linux*)
  44433.             LD="${LD-ld} -m elf_x86_64"
  44434.             ;;
  44435.           powerpcle-*linux*)
  44436.             LD="${LD-ld} -m elf64lppc"
  44437.             ;;
  44438.           powerpc-*linux*)
  44439.             LD="${LD-ld} -m elf64ppc"
  44440.             ;;
  44441.           s390*-*linux*|s390*-*tpf*)
  44442.             LD="${LD-ld} -m elf64_s390"
  44443.             ;;
  44444.           sparc*-*linux*)
  44445.             LD="${LD-ld} -m elf64_sparc"
  44446.             ;;
  44447.         esac
  44448.         ;;
  44449.     esac
  44450.   fi
  44451.   rm -rf conftest*
  44452.   ;;
  44453.  
  44454. *-*-sco3.2v5*)
  44455.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  44456.   SAVE_CFLAGS=$CFLAGS
  44457.   CFLAGS="$CFLAGS -belf"
  44458.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  44459. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  44460. if ${lt_cv_cc_needs_belf+:} false; then :
  44461.   $as_echo_n "(cached) " >&6
  44462. else
  44463.   ac_ext=c
  44464. ac_cpp='$CPP $CPPFLAGS'
  44465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44468.  
  44469.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44470. /* end confdefs.h.  */
  44471.  
  44472. int
  44473. main ()
  44474. {
  44475.  
  44476.   ;
  44477.   return 0;
  44478. }
  44479. _ACEOF
  44480. if ac_fn_c_try_link "$LINENO"; then :
  44481.   lt_cv_cc_needs_belf=yes
  44482. else
  44483.   lt_cv_cc_needs_belf=no
  44484. fi
  44485. rm -f core conftest.err conftest.$ac_objext \
  44486.     conftest$ac_exeext conftest.$ac_ext
  44487.      ac_ext=c
  44488. ac_cpp='$CPP $CPPFLAGS'
  44489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44492.  
  44493. fi
  44494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  44495. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  44496.   if test yes != "$lt_cv_cc_needs_belf"; then
  44497.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  44498.     CFLAGS=$SAVE_CFLAGS
  44499.   fi
  44500.   ;;
  44501. *-*solaris*)
  44502.   # Find out what ABI is being produced by ac_compile, and set linker
  44503.   # options accordingly.
  44504.   echo 'int i;' > conftest.$ac_ext
  44505.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  44506.   (eval $ac_compile) 2>&5
  44507.   ac_status=$?
  44508.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44509.   test $ac_status = 0; }; then
  44510.     case `/usr/bin/file conftest.o` in
  44511.     *64-bit*)
  44512.       case $lt_cv_prog_gnu_ld in
  44513.       yes*)
  44514.         case $host in
  44515.         i?86-*-solaris*|x86_64-*-solaris*)
  44516.           LD="${LD-ld} -m elf_x86_64"
  44517.           ;;
  44518.         sparc*-*-solaris*)
  44519.           LD="${LD-ld} -m elf64_sparc"
  44520.           ;;
  44521.         esac
  44522.         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  44523.         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  44524.           LD=${LD-ld}_sol2
  44525.         fi
  44526.         ;;
  44527.       *)
  44528.         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  44529.           LD="${LD-ld} -64"
  44530.         fi
  44531.         ;;
  44532.       esac
  44533.       ;;
  44534.     esac
  44535.   fi
  44536.   rm -rf conftest*
  44537.   ;;
  44538. esac
  44539.  
  44540. need_locks=$enable_libtool_lock
  44541.  
  44542. if test -n "$ac_tool_prefix"; then
  44543.   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  44544. set dummy ${ac_tool_prefix}mt; ac_word=$2
  44545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44546. $as_echo_n "checking for $ac_word... " >&6; }
  44547. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  44548.   $as_echo_n "(cached) " >&6
  44549. else
  44550.   if test -n "$MANIFEST_TOOL"; then
  44551.   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  44552. else
  44553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44554. for as_dir in $PATH
  44555. do
  44556.   IFS=$as_save_IFS
  44557.   test -z "$as_dir" && as_dir=.
  44558.     for ac_exec_ext in '' $ac_executable_extensions; do
  44559.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44560.     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  44561.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44562.     break 2
  44563.   fi
  44564. done
  44565.   done
  44566. IFS=$as_save_IFS
  44567.  
  44568. fi
  44569. fi
  44570. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  44571. if test -n "$MANIFEST_TOOL"; then
  44572.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  44573. $as_echo "$MANIFEST_TOOL" >&6; }
  44574. else
  44575.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44576. $as_echo "no" >&6; }
  44577. fi
  44578.  
  44579.  
  44580. fi
  44581. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  44582.   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  44583.   # Extract the first word of "mt", so it can be a program name with args.
  44584. set dummy mt; ac_word=$2
  44585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44586. $as_echo_n "checking for $ac_word... " >&6; }
  44587. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  44588.   $as_echo_n "(cached) " >&6
  44589. else
  44590.   if test -n "$ac_ct_MANIFEST_TOOL"; then
  44591.   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  44592. else
  44593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44594. for as_dir in $PATH
  44595. do
  44596.   IFS=$as_save_IFS
  44597.   test -z "$as_dir" && as_dir=.
  44598.     for ac_exec_ext in '' $ac_executable_extensions; do
  44599.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44600.     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  44601.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44602.     break 2
  44603.   fi
  44604. done
  44605.   done
  44606. IFS=$as_save_IFS
  44607.  
  44608. fi
  44609. fi
  44610. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  44611. if test -n "$ac_ct_MANIFEST_TOOL"; then
  44612.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  44613. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  44614. else
  44615.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44616. $as_echo "no" >&6; }
  44617. fi
  44618.  
  44619.   if test "x$ac_ct_MANIFEST_TOOL" = x; then
  44620.     MANIFEST_TOOL=":"
  44621.   else
  44622.     case $cross_compiling:$ac_tool_warned in
  44623. yes:)
  44624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  44625. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  44626. ac_tool_warned=yes ;;
  44627. esac
  44628.     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  44629.   fi
  44630. else
  44631.   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  44632. fi
  44633.  
  44634. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  44635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  44636. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  44637. if ${lt_cv_path_mainfest_tool+:} false; then :
  44638.   $as_echo_n "(cached) " >&6
  44639. else
  44640.   lt_cv_path_mainfest_tool=no
  44641.   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  44642.   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  44643.   cat conftest.err >&5
  44644.   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  44645.     lt_cv_path_mainfest_tool=yes
  44646.   fi
  44647.   rm -f conftest*
  44648. fi
  44649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  44650. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  44651. if test yes != "$lt_cv_path_mainfest_tool"; then
  44652.   MANIFEST_TOOL=:
  44653. fi
  44654.  
  44655.  
  44656.  
  44657.  
  44658.  
  44659.  
  44660.   case $host_os in
  44661.     rhapsody* | darwin*)
  44662.     if test -n "$ac_tool_prefix"; then
  44663.   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  44664. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  44665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44666. $as_echo_n "checking for $ac_word... " >&6; }
  44667. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  44668.   $as_echo_n "(cached) " >&6
  44669. else
  44670.   if test -n "$DSYMUTIL"; then
  44671.   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  44672. else
  44673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44674. for as_dir in $PATH
  44675. do
  44676.   IFS=$as_save_IFS
  44677.   test -z "$as_dir" && as_dir=.
  44678.     for ac_exec_ext in '' $ac_executable_extensions; do
  44679.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44680.     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  44681.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44682.     break 2
  44683.   fi
  44684. done
  44685.   done
  44686. IFS=$as_save_IFS
  44687.  
  44688. fi
  44689. fi
  44690. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  44691. if test -n "$DSYMUTIL"; then
  44692.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  44693. $as_echo "$DSYMUTIL" >&6; }
  44694. else
  44695.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44696. $as_echo "no" >&6; }
  44697. fi
  44698.  
  44699.  
  44700. fi
  44701. if test -z "$ac_cv_prog_DSYMUTIL"; then
  44702.   ac_ct_DSYMUTIL=$DSYMUTIL
  44703.   # Extract the first word of "dsymutil", so it can be a program name with args.
  44704. set dummy dsymutil; ac_word=$2
  44705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44706. $as_echo_n "checking for $ac_word... " >&6; }
  44707. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  44708.   $as_echo_n "(cached) " >&6
  44709. else
  44710.   if test -n "$ac_ct_DSYMUTIL"; then
  44711.   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  44712. else
  44713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44714. for as_dir in $PATH
  44715. do
  44716.   IFS=$as_save_IFS
  44717.   test -z "$as_dir" && as_dir=.
  44718.     for ac_exec_ext in '' $ac_executable_extensions; do
  44719.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44720.     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  44721.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44722.     break 2
  44723.   fi
  44724. done
  44725.   done
  44726. IFS=$as_save_IFS
  44727.  
  44728. fi
  44729. fi
  44730. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  44731. if test -n "$ac_ct_DSYMUTIL"; then
  44732.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  44733. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  44734. else
  44735.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44736. $as_echo "no" >&6; }
  44737. fi
  44738.  
  44739.   if test "x$ac_ct_DSYMUTIL" = x; then
  44740.     DSYMUTIL=":"
  44741.   else
  44742.     case $cross_compiling:$ac_tool_warned in
  44743. yes:)
  44744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  44745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  44746. ac_tool_warned=yes ;;
  44747. esac
  44748.     DSYMUTIL=$ac_ct_DSYMUTIL
  44749.   fi
  44750. else
  44751.   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  44752. fi
  44753.  
  44754.     if test -n "$ac_tool_prefix"; then
  44755.   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  44756. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  44757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44758. $as_echo_n "checking for $ac_word... " >&6; }
  44759. if ${ac_cv_prog_NMEDIT+:} false; then :
  44760.   $as_echo_n "(cached) " >&6
  44761. else
  44762.   if test -n "$NMEDIT"; then
  44763.   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  44764. else
  44765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44766. for as_dir in $PATH
  44767. do
  44768.   IFS=$as_save_IFS
  44769.   test -z "$as_dir" && as_dir=.
  44770.     for ac_exec_ext in '' $ac_executable_extensions; do
  44771.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44772.     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  44773.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44774.     break 2
  44775.   fi
  44776. done
  44777.   done
  44778. IFS=$as_save_IFS
  44779.  
  44780. fi
  44781. fi
  44782. NMEDIT=$ac_cv_prog_NMEDIT
  44783. if test -n "$NMEDIT"; then
  44784.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  44785. $as_echo "$NMEDIT" >&6; }
  44786. else
  44787.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44788. $as_echo "no" >&6; }
  44789. fi
  44790.  
  44791.  
  44792. fi
  44793. if test -z "$ac_cv_prog_NMEDIT"; then
  44794.   ac_ct_NMEDIT=$NMEDIT
  44795.   # Extract the first word of "nmedit", so it can be a program name with args.
  44796. set dummy nmedit; ac_word=$2
  44797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44798. $as_echo_n "checking for $ac_word... " >&6; }
  44799. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  44800.   $as_echo_n "(cached) " >&6
  44801. else
  44802.   if test -n "$ac_ct_NMEDIT"; then
  44803.   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  44804. else
  44805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44806. for as_dir in $PATH
  44807. do
  44808.   IFS=$as_save_IFS
  44809.   test -z "$as_dir" && as_dir=.
  44810.     for ac_exec_ext in '' $ac_executable_extensions; do
  44811.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44812.     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  44813.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44814.     break 2
  44815.   fi
  44816. done
  44817.   done
  44818. IFS=$as_save_IFS
  44819.  
  44820. fi
  44821. fi
  44822. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  44823. if test -n "$ac_ct_NMEDIT"; then
  44824.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  44825. $as_echo "$ac_ct_NMEDIT" >&6; }
  44826. else
  44827.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44828. $as_echo "no" >&6; }
  44829. fi
  44830.  
  44831.   if test "x$ac_ct_NMEDIT" = x; then
  44832.     NMEDIT=":"
  44833.   else
  44834.     case $cross_compiling:$ac_tool_warned in
  44835. yes:)
  44836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  44837. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  44838. ac_tool_warned=yes ;;
  44839. esac
  44840.     NMEDIT=$ac_ct_NMEDIT
  44841.   fi
  44842. else
  44843.   NMEDIT="$ac_cv_prog_NMEDIT"
  44844. fi
  44845.  
  44846.     if test -n "$ac_tool_prefix"; then
  44847.   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  44848. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  44849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44850. $as_echo_n "checking for $ac_word... " >&6; }
  44851. if ${ac_cv_prog_LIPO+:} false; then :
  44852.   $as_echo_n "(cached) " >&6
  44853. else
  44854.   if test -n "$LIPO"; then
  44855.   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  44856. else
  44857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44858. for as_dir in $PATH
  44859. do
  44860.   IFS=$as_save_IFS
  44861.   test -z "$as_dir" && as_dir=.
  44862.     for ac_exec_ext in '' $ac_executable_extensions; do
  44863.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44864.     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  44865.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44866.     break 2
  44867.   fi
  44868. done
  44869.   done
  44870. IFS=$as_save_IFS
  44871.  
  44872. fi
  44873. fi
  44874. LIPO=$ac_cv_prog_LIPO
  44875. if test -n "$LIPO"; then
  44876.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  44877. $as_echo "$LIPO" >&6; }
  44878. else
  44879.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44880. $as_echo "no" >&6; }
  44881. fi
  44882.  
  44883.  
  44884. fi
  44885. if test -z "$ac_cv_prog_LIPO"; then
  44886.   ac_ct_LIPO=$LIPO
  44887.   # Extract the first word of "lipo", so it can be a program name with args.
  44888. set dummy lipo; ac_word=$2
  44889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44890. $as_echo_n "checking for $ac_word... " >&6; }
  44891. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  44892.   $as_echo_n "(cached) " >&6
  44893. else
  44894.   if test -n "$ac_ct_LIPO"; then
  44895.   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  44896. else
  44897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44898. for as_dir in $PATH
  44899. do
  44900.   IFS=$as_save_IFS
  44901.   test -z "$as_dir" && as_dir=.
  44902.     for ac_exec_ext in '' $ac_executable_extensions; do
  44903.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44904.     ac_cv_prog_ac_ct_LIPO="lipo"
  44905.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44906.     break 2
  44907.   fi
  44908. done
  44909.   done
  44910. IFS=$as_save_IFS
  44911.  
  44912. fi
  44913. fi
  44914. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  44915. if test -n "$ac_ct_LIPO"; then
  44916.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  44917. $as_echo "$ac_ct_LIPO" >&6; }
  44918. else
  44919.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44920. $as_echo "no" >&6; }
  44921. fi
  44922.  
  44923.   if test "x$ac_ct_LIPO" = x; then
  44924.     LIPO=":"
  44925.   else
  44926.     case $cross_compiling:$ac_tool_warned in
  44927. yes:)
  44928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  44929. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  44930. ac_tool_warned=yes ;;
  44931. esac
  44932.     LIPO=$ac_ct_LIPO
  44933.   fi
  44934. else
  44935.   LIPO="$ac_cv_prog_LIPO"
  44936. fi
  44937.  
  44938.     if test -n "$ac_tool_prefix"; then
  44939.   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  44940. set dummy ${ac_tool_prefix}otool; ac_word=$2
  44941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44942. $as_echo_n "checking for $ac_word... " >&6; }
  44943. if ${ac_cv_prog_OTOOL+:} false; then :
  44944.   $as_echo_n "(cached) " >&6
  44945. else
  44946.   if test -n "$OTOOL"; then
  44947.   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  44948. else
  44949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44950. for as_dir in $PATH
  44951. do
  44952.   IFS=$as_save_IFS
  44953.   test -z "$as_dir" && as_dir=.
  44954.     for ac_exec_ext in '' $ac_executable_extensions; do
  44955.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44956.     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  44957.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44958.     break 2
  44959.   fi
  44960. done
  44961.   done
  44962. IFS=$as_save_IFS
  44963.  
  44964. fi
  44965. fi
  44966. OTOOL=$ac_cv_prog_OTOOL
  44967. if test -n "$OTOOL"; then
  44968.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  44969. $as_echo "$OTOOL" >&6; }
  44970. else
  44971.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44972. $as_echo "no" >&6; }
  44973. fi
  44974.  
  44975.  
  44976. fi
  44977. if test -z "$ac_cv_prog_OTOOL"; then
  44978.   ac_ct_OTOOL=$OTOOL
  44979.   # Extract the first word of "otool", so it can be a program name with args.
  44980. set dummy otool; ac_word=$2
  44981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44982. $as_echo_n "checking for $ac_word... " >&6; }
  44983. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  44984.   $as_echo_n "(cached) " >&6
  44985. else
  44986.   if test -n "$ac_ct_OTOOL"; then
  44987.   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  44988. else
  44989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44990. for as_dir in $PATH
  44991. do
  44992.   IFS=$as_save_IFS
  44993.   test -z "$as_dir" && as_dir=.
  44994.     for ac_exec_ext in '' $ac_executable_extensions; do
  44995.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  44996.     ac_cv_prog_ac_ct_OTOOL="otool"
  44997.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44998.     break 2
  44999.   fi
  45000. done
  45001.   done
  45002. IFS=$as_save_IFS
  45003.  
  45004. fi
  45005. fi
  45006. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  45007. if test -n "$ac_ct_OTOOL"; then
  45008.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  45009. $as_echo "$ac_ct_OTOOL" >&6; }
  45010. else
  45011.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45012. $as_echo "no" >&6; }
  45013. fi
  45014.  
  45015.   if test "x$ac_ct_OTOOL" = x; then
  45016.     OTOOL=":"
  45017.   else
  45018.     case $cross_compiling:$ac_tool_warned in
  45019. yes:)
  45020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  45021. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  45022. ac_tool_warned=yes ;;
  45023. esac
  45024.     OTOOL=$ac_ct_OTOOL
  45025.   fi
  45026. else
  45027.   OTOOL="$ac_cv_prog_OTOOL"
  45028. fi
  45029.  
  45030.     if test -n "$ac_tool_prefix"; then
  45031.   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  45032. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  45033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  45034. $as_echo_n "checking for $ac_word... " >&6; }
  45035. if ${ac_cv_prog_OTOOL64+:} false; then :
  45036.   $as_echo_n "(cached) " >&6
  45037. else
  45038.   if test -n "$OTOOL64"; then
  45039.   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  45040. else
  45041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  45042. for as_dir in $PATH
  45043. do
  45044.   IFS=$as_save_IFS
  45045.   test -z "$as_dir" && as_dir=.
  45046.     for ac_exec_ext in '' $ac_executable_extensions; do
  45047.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  45048.     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  45049.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  45050.     break 2
  45051.   fi
  45052. done
  45053.   done
  45054. IFS=$as_save_IFS
  45055.  
  45056. fi
  45057. fi
  45058. OTOOL64=$ac_cv_prog_OTOOL64
  45059. if test -n "$OTOOL64"; then
  45060.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  45061. $as_echo "$OTOOL64" >&6; }
  45062. else
  45063.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45064. $as_echo "no" >&6; }
  45065. fi
  45066.  
  45067.  
  45068. fi
  45069. if test -z "$ac_cv_prog_OTOOL64"; then
  45070.   ac_ct_OTOOL64=$OTOOL64
  45071.   # Extract the first word of "otool64", so it can be a program name with args.
  45072. set dummy otool64; ac_word=$2
  45073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  45074. $as_echo_n "checking for $ac_word... " >&6; }
  45075. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  45076.   $as_echo_n "(cached) " >&6
  45077. else
  45078.   if test -n "$ac_ct_OTOOL64"; then
  45079.   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  45080. else
  45081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  45082. for as_dir in $PATH
  45083. do
  45084.   IFS=$as_save_IFS
  45085.   test -z "$as_dir" && as_dir=.
  45086.     for ac_exec_ext in '' $ac_executable_extensions; do
  45087.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  45088.     ac_cv_prog_ac_ct_OTOOL64="otool64"
  45089.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  45090.     break 2
  45091.   fi
  45092. done
  45093.   done
  45094. IFS=$as_save_IFS
  45095.  
  45096. fi
  45097. fi
  45098. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  45099. if test -n "$ac_ct_OTOOL64"; then
  45100.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  45101. $as_echo "$ac_ct_OTOOL64" >&6; }
  45102. else
  45103.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45104. $as_echo "no" >&6; }
  45105. fi
  45106.  
  45107.   if test "x$ac_ct_OTOOL64" = x; then
  45108.     OTOOL64=":"
  45109.   else
  45110.     case $cross_compiling:$ac_tool_warned in
  45111. yes:)
  45112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  45113. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  45114. ac_tool_warned=yes ;;
  45115. esac
  45116.     OTOOL64=$ac_ct_OTOOL64
  45117.   fi
  45118. else
  45119.   OTOOL64="$ac_cv_prog_OTOOL64"
  45120. fi
  45121.  
  45122.  
  45123.  
  45124.  
  45125.  
  45126.  
  45127.  
  45128.  
  45129.  
  45130.  
  45131.  
  45132.  
  45133.  
  45134.  
  45135.  
  45136.  
  45137.  
  45138.  
  45139.  
  45140.  
  45141.  
  45142.  
  45143.  
  45144.  
  45145.  
  45146.  
  45147.  
  45148.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  45149. $as_echo_n "checking for -single_module linker flag... " >&6; }
  45150. if ${lt_cv_apple_cc_single_mod+:} false; then :
  45151.   $as_echo_n "(cached) " >&6
  45152. else
  45153.   lt_cv_apple_cc_single_mod=no
  45154.       if test -z "$LT_MULTI_MODULE"; then
  45155.         # By default we will add the -single_module flag. You can override
  45156.         # by either setting the environment variable LT_MULTI_MODULE
  45157.         # non-empty at configure time, or by adding -multi_module to the
  45158.         # link flags.
  45159.         rm -rf libconftest.dylib*
  45160.         echo "int foo(void){return 1;}" > conftest.c
  45161.         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  45162. -dynamiclib -Wl,-single_module conftest.c" >&5
  45163.         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  45164.           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  45165.         _lt_result=$?
  45166.         # If there is a non-empty error log, and "single_module"
  45167.         # appears in it, assume the flag caused a linker warning
  45168.         if test -s conftest.err && $GREP single_module conftest.err; then
  45169.           cat conftest.err >&5
  45170.         # Otherwise, if the output was created with a 0 exit code from
  45171.         # the compiler, it worked.
  45172.         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  45173.           lt_cv_apple_cc_single_mod=yes
  45174.         else
  45175.           cat conftest.err >&5
  45176.         fi
  45177.         rm -rf libconftest.dylib*
  45178.         rm -f conftest.*
  45179.       fi
  45180. fi
  45181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  45182. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  45183.  
  45184.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  45185. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  45186. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  45187.   $as_echo_n "(cached) " >&6
  45188. else
  45189.   lt_cv_ld_exported_symbols_list=no
  45190.       save_LDFLAGS=$LDFLAGS
  45191.       echo "_main" > conftest.sym
  45192.       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  45193.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45194. /* end confdefs.h.  */
  45195.  
  45196. int
  45197. main ()
  45198. {
  45199.  
  45200.   ;
  45201.   return 0;
  45202. }
  45203. _ACEOF
  45204. if ac_fn_c_try_link "$LINENO"; then :
  45205.   lt_cv_ld_exported_symbols_list=yes
  45206. else
  45207.   lt_cv_ld_exported_symbols_list=no
  45208. fi
  45209. rm -f core conftest.err conftest.$ac_objext \
  45210.     conftest$ac_exeext conftest.$ac_ext
  45211.         LDFLAGS=$save_LDFLAGS
  45212.  
  45213. fi
  45214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  45215. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  45216.  
  45217.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  45218. $as_echo_n "checking for -force_load linker flag... " >&6; }
  45219. if ${lt_cv_ld_force_load+:} false; then :
  45220.   $as_echo_n "(cached) " >&6
  45221. else
  45222.   lt_cv_ld_force_load=no
  45223.       cat > conftest.c << _LT_EOF
  45224. int forced_loaded() { return 2;}
  45225. _LT_EOF
  45226.       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  45227.       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  45228.       echo "$AR cru libconftest.a conftest.o" >&5
  45229.       $AR cru libconftest.a conftest.o 2>&5
  45230.       echo "$RANLIB libconftest.a" >&5
  45231.       $RANLIB libconftest.a 2>&5
  45232.       cat > conftest.c << _LT_EOF
  45233. int main() { return 0;}
  45234. _LT_EOF
  45235.       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  45236.       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  45237.       _lt_result=$?
  45238.       if test -s conftest.err && $GREP force_load conftest.err; then
  45239.         cat conftest.err >&5
  45240.       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  45241.         lt_cv_ld_force_load=yes
  45242.       else
  45243.         cat conftest.err >&5
  45244.       fi
  45245.         rm -f conftest.err libconftest.a conftest conftest.c
  45246.         rm -rf conftest.dSYM
  45247.  
  45248. fi
  45249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  45250. $as_echo "$lt_cv_ld_force_load" >&6; }
  45251.     case $host_os in
  45252.     rhapsody* | darwin1.[012])
  45253.       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  45254.     darwin1.*)
  45255.       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  45256.     darwin*) # darwin 5.x on
  45257.       # if running on 10.5 or later, the deployment target defaults
  45258.       # to the OS version, if on x86, and 10.4, the deployment
  45259.       # target defaults to 10.4. Don't you love it?
  45260.       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  45261.         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  45262.           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  45263.         10.[012][,.]*)
  45264.           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  45265.         10.*)
  45266.           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  45267.       esac
  45268.     ;;
  45269.   esac
  45270.     if test yes = "$lt_cv_apple_cc_single_mod"; then
  45271.       _lt_dar_single_mod='$single_module'
  45272.     fi
  45273.     if test yes = "$lt_cv_ld_exported_symbols_list"; then
  45274.       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  45275.     else
  45276.       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  45277.     fi
  45278.     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  45279.       _lt_dsymutil='~$DSYMUTIL $lib || :'
  45280.     else
  45281.       _lt_dsymutil=
  45282.     fi
  45283.     ;;
  45284.   esac
  45285.  
  45286. # func_munge_path_list VARIABLE PATH
  45287. # -----------------------------------
  45288. # VARIABLE is name of variable containing _space_ separated list of
  45289. # directories to be munged by the contents of PATH, which is string
  45290. # having a format:
  45291. # "DIR[:DIR]:"
  45292. #       string "DIR[ DIR]" will be prepended to VARIABLE
  45293. # ":DIR[:DIR]"
  45294. #       string "DIR[ DIR]" will be appended to VARIABLE
  45295. # "DIRP[:DIRP]::[DIRA:]DIRA"
  45296. #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  45297. #       "DIRA[ DIRA]" will be appended to VARIABLE
  45298. # "DIR[:DIR]"
  45299. #       VARIABLE will be replaced by "DIR[ DIR]"
  45300. func_munge_path_list ()
  45301. {
  45302.     case x$2 in
  45303.     x)
  45304.         ;;
  45305.     *:)
  45306.         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  45307.         ;;
  45308.     x:*)
  45309.         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  45310.         ;;
  45311.     *::*)
  45312.         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  45313.         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  45314.         ;;
  45315.     *)
  45316.         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  45317.         ;;
  45318.     esac
  45319. }
  45320.  
  45321. for ac_header in dlfcn.h
  45322. do :
  45323.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  45324. "
  45325. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  45326.   cat >>confdefs.h <<_ACEOF
  45327. #define HAVE_DLFCN_H 1
  45328. _ACEOF
  45329.  
  45330. fi
  45331.  
  45332. done
  45333.  
  45334.  
  45335.  
  45336. func_stripname_cnf ()
  45337. {
  45338.   case $2 in
  45339.   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  45340.   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  45341.   esac
  45342. } # func_stripname_cnf
  45343.  
  45344.  
  45345.  
  45346.  
  45347.  
  45348. # Set options
  45349. # Check whether --enable-static was given.
  45350. if test "${enable_static+set}" = set; then :
  45351.   enableval=$enable_static; p=${PACKAGE-default}
  45352.     case $enableval in
  45353.     yes) enable_static=yes ;;
  45354.     no) enable_static=no ;;
  45355.     *)
  45356.      enable_static=no
  45357.       # Look at the argument we got.  We use all the common list separators.
  45358.       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  45359.       for pkg in $enableval; do
  45360.         IFS=$lt_save_ifs
  45361.         if test "X$pkg" = "X$p"; then
  45362.           enable_static=yes
  45363.         fi
  45364.       done
  45365.       IFS=$lt_save_ifs
  45366.       ;;
  45367.     esac
  45368. else
  45369.   enable_static=no
  45370. fi
  45371.  
  45372.  
  45373.  
  45374.  
  45375.  
  45376.  
  45377.  
  45378.  
  45379.  
  45380.  
  45381.         enable_dlopen=no
  45382.  
  45383.  
  45384.   enable_win32_dll=no
  45385.  
  45386.  
  45387.             # Check whether --enable-shared was given.
  45388. if test "${enable_shared+set}" = set; then :
  45389.   enableval=$enable_shared; p=${PACKAGE-default}
  45390.     case $enableval in
  45391.     yes) enable_shared=yes ;;
  45392.     no) enable_shared=no ;;
  45393.     *)
  45394.       enable_shared=no
  45395.       # Look at the argument we got.  We use all the common list separators.
  45396.       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  45397.       for pkg in $enableval; do
  45398.         IFS=$lt_save_ifs
  45399.         if test "X$pkg" = "X$p"; then
  45400.           enable_shared=yes
  45401.         fi
  45402.       done
  45403.       IFS=$lt_save_ifs
  45404.       ;;
  45405.     esac
  45406. else
  45407.   enable_shared=yes
  45408. fi
  45409.  
  45410.  
  45411.  
  45412.  
  45413.  
  45414.  
  45415.  
  45416.  
  45417.  
  45418.  
  45419.  
  45420. # Check whether --with-pic was given.
  45421. if test "${with_pic+set}" = set; then :
  45422.   withval=$with_pic; lt_p=${PACKAGE-default}
  45423.     case $withval in
  45424.     yes|no) pic_mode=$withval ;;
  45425.     *)
  45426.       pic_mode=default
  45427.       # Look at the argument we got.  We use all the common list separators.
  45428.       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  45429.       for lt_pkg in $withval; do
  45430.         IFS=$lt_save_ifs
  45431.         if test "X$lt_pkg" = "X$lt_p"; then
  45432.           pic_mode=yes
  45433.         fi
  45434.       done
  45435.       IFS=$lt_save_ifs
  45436.       ;;
  45437.     esac
  45438. else
  45439.   pic_mode=default
  45440. fi
  45441.  
  45442.  
  45443.  
  45444.  
  45445.  
  45446.  
  45447.  
  45448.  
  45449.   # Check whether --enable-fast-install was given.
  45450. if test "${enable_fast_install+set}" = set; then :
  45451.   enableval=$enable_fast_install; p=${PACKAGE-default}
  45452.     case $enableval in
  45453.     yes) enable_fast_install=yes ;;
  45454.     no) enable_fast_install=no ;;
  45455.     *)
  45456.       enable_fast_install=no
  45457.       # Look at the argument we got.  We use all the common list separators.
  45458.       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  45459.       for pkg in $enableval; do
  45460.         IFS=$lt_save_ifs
  45461.         if test "X$pkg" = "X$p"; then
  45462.           enable_fast_install=yes
  45463.         fi
  45464.       done
  45465.       IFS=$lt_save_ifs
  45466.       ;;
  45467.     esac
  45468. else
  45469.   enable_fast_install=yes
  45470. fi
  45471.  
  45472.  
  45473.  
  45474.  
  45475.  
  45476.  
  45477.  
  45478.  
  45479.   shared_archive_member_spec=
  45480. case $host,$enable_shared in
  45481. power*-*-aix[5-9]*,yes)
  45482.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  45483. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  45484.  
  45485. # Check whether --with-aix-soname was given.
  45486. if test "${with_aix_soname+set}" = set; then :
  45487.   withval=$with_aix_soname; case $withval in
  45488.     aix|svr4|both)
  45489.       ;;
  45490.     *)
  45491.       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  45492.       ;;
  45493.     esac
  45494.     lt_cv_with_aix_soname=$with_aix_soname
  45495. else
  45496.   if ${lt_cv_with_aix_soname+:} false; then :
  45497.   $as_echo_n "(cached) " >&6
  45498. else
  45499.   lt_cv_with_aix_soname=aix
  45500. fi
  45501.  
  45502.     with_aix_soname=$lt_cv_with_aix_soname
  45503. fi
  45504.  
  45505.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  45506. $as_echo "$with_aix_soname" >&6; }
  45507.   if test aix != "$with_aix_soname"; then
  45508.     # For the AIX way of multilib, we name the shared archive member
  45509.     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  45510.     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  45511.     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  45512.     # the AIX toolchain works better with OBJECT_MODE set (default 32).
  45513.     if test 64 = "${OBJECT_MODE-32}"; then
  45514.       shared_archive_member_spec=shr_64
  45515.     else
  45516.       shared_archive_member_spec=shr
  45517.     fi
  45518.   fi
  45519.   ;;
  45520. *)
  45521.   with_aix_soname=aix
  45522.   ;;
  45523. esac
  45524.  
  45525.  
  45526.  
  45527.  
  45528.  
  45529.  
  45530.  
  45531.  
  45532.  
  45533.  
  45534. # This can be used to rebuild libtool when needed
  45535. LIBTOOL_DEPS=$ltmain
  45536.  
  45537. # Always use our own libtool.
  45538. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  45539.  
  45540.  
  45541.  
  45542.  
  45543.  
  45544.  
  45545.  
  45546.  
  45547.  
  45548.  
  45549.  
  45550.  
  45551.  
  45552.  
  45553.  
  45554.  
  45555.  
  45556.  
  45557.  
  45558.  
  45559.  
  45560.  
  45561.  
  45562.  
  45563.  
  45564.  
  45565.  
  45566.  
  45567.  
  45568.  
  45569. test -z "$LN_S" && LN_S="ln -s"
  45570.  
  45571.  
  45572.  
  45573.  
  45574.  
  45575.  
  45576.  
  45577.  
  45578.  
  45579.  
  45580.  
  45581.  
  45582.  
  45583.  
  45584. if test -n "${ZSH_VERSION+set}"; then
  45585.    setopt NO_GLOB_SUBST
  45586. fi
  45587.  
  45588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  45589. $as_echo_n "checking for objdir... " >&6; }
  45590. if ${lt_cv_objdir+:} false; then :
  45591.   $as_echo_n "(cached) " >&6
  45592. else
  45593.   rm -f .libs 2>/dev/null
  45594. mkdir .libs 2>/dev/null
  45595. if test -d .libs; then
  45596.   lt_cv_objdir=.libs
  45597. else
  45598.   # MS-DOS does not allow filenames that begin with a dot.
  45599.   lt_cv_objdir=_libs
  45600. fi
  45601. rmdir .libs 2>/dev/null
  45602. fi
  45603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  45604. $as_echo "$lt_cv_objdir" >&6; }
  45605. objdir=$lt_cv_objdir
  45606.  
  45607.  
  45608.  
  45609.  
  45610.  
  45611. cat >>confdefs.h <<_ACEOF
  45612. #define LT_OBJDIR "$lt_cv_objdir/"
  45613. _ACEOF
  45614.  
  45615.  
  45616.  
  45617.  
  45618. case $host_os in
  45619. aix3*)
  45620.   # AIX sometimes has problems with the GCC collect2 program.  For some
  45621.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  45622.   # vanish in a puff of smoke.
  45623.   if test set != "${COLLECT_NAMES+set}"; then
  45624.     COLLECT_NAMES=
  45625.     export COLLECT_NAMES
  45626.   fi
  45627.   ;;
  45628. esac
  45629.  
  45630. # Global variables:
  45631. ofile=libtool
  45632. can_build_shared=yes
  45633.  
  45634. # All known linkers require a '.a' archive for static linking (except MSVC,
  45635. # which needs '.lib').
  45636. libext=a
  45637.  
  45638. with_gnu_ld=$lt_cv_prog_gnu_ld
  45639.  
  45640. old_CC=$CC
  45641. old_CFLAGS=$CFLAGS
  45642.  
  45643. # Set sane defaults for various variables
  45644. test -z "$CC" && CC=cc
  45645. test -z "$LTCC" && LTCC=$CC
  45646. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  45647. test -z "$LD" && LD=ld
  45648. test -z "$ac_objext" && ac_objext=o
  45649.  
  45650. func_cc_basename $compiler
  45651. cc_basename=$func_cc_basename_result
  45652.  
  45653.  
  45654. # Only perform the check for file, if the check method requires it
  45655. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  45656. case $deplibs_check_method in
  45657. file_magic*)
  45658.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  45659.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  45660. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  45661. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  45662.   $as_echo_n "(cached) " >&6
  45663. else
  45664.   case $MAGIC_CMD in
  45665. [\\/*] |  ?:[\\/]*)
  45666.   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  45667.   ;;
  45668. *)
  45669.   lt_save_MAGIC_CMD=$MAGIC_CMD
  45670.   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  45671.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  45672.   for ac_dir in $ac_dummy; do
  45673.     IFS=$lt_save_ifs
  45674.     test -z "$ac_dir" && ac_dir=.
  45675.     if test -f "$ac_dir/${ac_tool_prefix}file"; then
  45676.       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  45677.       if test -n "$file_magic_test_file"; then
  45678.         case $deplibs_check_method in
  45679.         "file_magic "*)
  45680.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  45681.           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  45682.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  45683.             $EGREP "$file_magic_regex" > /dev/null; then
  45684.             :
  45685.           else
  45686.             cat <<_LT_EOF 1>&2
  45687.  
  45688. *** Warning: the command libtool uses to detect shared libraries,
  45689. *** $file_magic_cmd, produces output that libtool cannot recognize.
  45690. *** The result is that libtool may fail to recognize shared libraries
  45691. *** as such.  This will affect the creation of libtool libraries that
  45692. *** depend on shared libraries, but programs linked with such libtool
  45693. *** libraries will work regardless of this problem.  Nevertheless, you
  45694. *** may want to report the problem to your system manager and/or to
  45695. *** bug-libtool@gnu.org
  45696.  
  45697. _LT_EOF
  45698.           fi ;;
  45699.         esac
  45700.       fi
  45701.       break
  45702.     fi
  45703.   done
  45704.   IFS=$lt_save_ifs
  45705.   MAGIC_CMD=$lt_save_MAGIC_CMD
  45706.   ;;
  45707. esac
  45708. fi
  45709.  
  45710. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  45711. if test -n "$MAGIC_CMD"; then
  45712.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  45713. $as_echo "$MAGIC_CMD" >&6; }
  45714. else
  45715.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45716. $as_echo "no" >&6; }
  45717. fi
  45718.  
  45719.  
  45720.  
  45721.  
  45722.  
  45723. if test -z "$lt_cv_path_MAGIC_CMD"; then
  45724.   if test -n "$ac_tool_prefix"; then
  45725.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  45726. $as_echo_n "checking for file... " >&6; }
  45727. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  45728.   $as_echo_n "(cached) " >&6
  45729. else
  45730.   case $MAGIC_CMD in
  45731. [\\/*] |  ?:[\\/]*)
  45732.   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  45733.   ;;
  45734. *)
  45735.   lt_save_MAGIC_CMD=$MAGIC_CMD
  45736.   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  45737.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  45738.   for ac_dir in $ac_dummy; do
  45739.     IFS=$lt_save_ifs
  45740.     test -z "$ac_dir" && ac_dir=.
  45741.     if test -f "$ac_dir/file"; then
  45742.       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  45743.       if test -n "$file_magic_test_file"; then
  45744.         case $deplibs_check_method in
  45745.         "file_magic "*)
  45746.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  45747.           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  45748.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  45749.             $EGREP "$file_magic_regex" > /dev/null; then
  45750.             :
  45751.           else
  45752.             cat <<_LT_EOF 1>&2
  45753.  
  45754. *** Warning: the command libtool uses to detect shared libraries,
  45755. *** $file_magic_cmd, produces output that libtool cannot recognize.
  45756. *** The result is that libtool may fail to recognize shared libraries
  45757. *** as such.  This will affect the creation of libtool libraries that
  45758. *** depend on shared libraries, but programs linked with such libtool
  45759. *** libraries will work regardless of this problem.  Nevertheless, you
  45760. *** may want to report the problem to your system manager and/or to
  45761. *** bug-libtool@gnu.org
  45762.  
  45763. _LT_EOF
  45764.           fi ;;
  45765.         esac
  45766.       fi
  45767.       break
  45768.     fi
  45769.   done
  45770.   IFS=$lt_save_ifs
  45771.   MAGIC_CMD=$lt_save_MAGIC_CMD
  45772.   ;;
  45773. esac
  45774. fi
  45775.  
  45776. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  45777. if test -n "$MAGIC_CMD"; then
  45778.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  45779. $as_echo "$MAGIC_CMD" >&6; }
  45780. else
  45781.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45782. $as_echo "no" >&6; }
  45783. fi
  45784.  
  45785.  
  45786.   else
  45787.     MAGIC_CMD=:
  45788.   fi
  45789. fi
  45790.  
  45791.   fi
  45792.   ;;
  45793. esac
  45794.  
  45795. # Use C for the default configuration in the libtool script
  45796.  
  45797. lt_save_CC=$CC
  45798. ac_ext=c
  45799. ac_cpp='$CPP $CPPFLAGS'
  45800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45803.  
  45804.  
  45805. # Source file extension for C test sources.
  45806. ac_ext=c
  45807.  
  45808. # Object file extension for compiled C test sources.
  45809. objext=o
  45810. objext=$objext
  45811.  
  45812. # Code to be used in simple compile tests
  45813. lt_simple_compile_test_code="int some_variable = 0;"
  45814.  
  45815. # Code to be used in simple link tests
  45816. lt_simple_link_test_code='int main(){return(0);}'
  45817.  
  45818.  
  45819.  
  45820.  
  45821.  
  45822.  
  45823.  
  45824. # If no C compiler was specified, use CC.
  45825. LTCC=${LTCC-"$CC"}
  45826.  
  45827. # If no C compiler flags were specified, use CFLAGS.
  45828. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  45829.  
  45830. # Allow CC to be a program name with arguments.
  45831. compiler=$CC
  45832.  
  45833. # Save the default compiler, since it gets overwritten when the other
  45834. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  45835. compiler_DEFAULT=$CC
  45836.  
  45837. # save warnings/boilerplate of simple test code
  45838. ac_outfile=conftest.$ac_objext
  45839. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  45840. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  45841. _lt_compiler_boilerplate=`cat conftest.err`
  45842. $RM conftest*
  45843.  
  45844. ac_outfile=conftest.$ac_objext
  45845. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  45846. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  45847. _lt_linker_boilerplate=`cat conftest.err`
  45848. $RM -r conftest*
  45849.  
  45850.  
  45851. ## CAVEAT EMPTOR:
  45852. ## There is no encapsulation within the following macros, do not change
  45853. ## the running order or otherwise move them around unless you know exactly
  45854. ## what you are doing...
  45855. if test -n "$compiler"; then
  45856.  
  45857. lt_prog_compiler_no_builtin_flag=
  45858.  
  45859. if test yes = "$GCC"; then
  45860.   case $cc_basename in
  45861.   nvcc*)
  45862.     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  45863.   *)
  45864.     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  45865.   esac
  45866.  
  45867.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  45868. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  45869. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  45870.   $as_echo_n "(cached) " >&6
  45871. else
  45872.   lt_cv_prog_compiler_rtti_exceptions=no
  45873.    ac_outfile=conftest.$ac_objext
  45874.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  45875.    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
  45876.    # Insert the option either (1) after the last *FLAGS variable, or
  45877.    # (2) before a word containing "conftest.", or (3) at the end.
  45878.    # Note that $ac_compile itself does not contain backslashes and begins
  45879.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  45880.    # The option is referenced via a variable to avoid confusing sed.
  45881.    lt_compile=`echo "$ac_compile" | $SED \
  45882.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  45883.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  45884.    -e 's:$: $lt_compiler_flag:'`
  45885.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  45886.    (eval "$lt_compile" 2>conftest.err)
  45887.    ac_status=$?
  45888.    cat conftest.err >&5
  45889.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45890.    if (exit $ac_status) && test -s "$ac_outfile"; then
  45891.      # The compiler can only warn and ignore the option if not recognized
  45892.      # So say no if there are warnings other than the usual output.
  45893.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  45894.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  45895.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  45896.        lt_cv_prog_compiler_rtti_exceptions=yes
  45897.      fi
  45898.    fi
  45899.    $RM conftest*
  45900.  
  45901. fi
  45902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  45903. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  45904.  
  45905. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  45906.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  45907. else
  45908.     :
  45909. fi
  45910.  
  45911. fi
  45912.  
  45913.  
  45914.  
  45915.  
  45916.  
  45917.  
  45918.   lt_prog_compiler_wl=
  45919. lt_prog_compiler_pic=
  45920. lt_prog_compiler_static=
  45921.  
  45922.  
  45923.   if test yes = "$GCC"; then
  45924.     lt_prog_compiler_wl='-Wl,'
  45925.     lt_prog_compiler_static='-static'
  45926.  
  45927.     case $host_os in
  45928.       aix*)
  45929.       # All AIX code is PIC.
  45930.       if test ia64 = "$host_cpu"; then
  45931.         # AIX 5 now supports IA64 processor
  45932.         lt_prog_compiler_static='-Bstatic'
  45933.       fi
  45934.       lt_prog_compiler_pic='-fPIC'
  45935.       ;;
  45936.  
  45937.     amigaos*)
  45938.       case $host_cpu in
  45939.       powerpc)
  45940.             # see comment about AmigaOS4 .so support
  45941.             lt_prog_compiler_pic='-fPIC'
  45942.         ;;
  45943.       m68k)
  45944.             # FIXME: we need at least 68020 code to build shared libraries, but
  45945.             # adding the '-m68020' flag to GCC prevents building anything better,
  45946.             # like '-m68040'.
  45947.             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  45948.         ;;
  45949.       esac
  45950.       ;;
  45951.  
  45952.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  45953.       # PIC is the default for these OSes.
  45954.       ;;
  45955.  
  45956.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  45957.       # This hack is so that the source file can tell whether it is being
  45958.       # built for inclusion in a dll (and should export symbols for example).
  45959.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  45960.       # (--disable-auto-import) libraries
  45961.       lt_prog_compiler_pic='-DDLL_EXPORT'
  45962.       case $host_os in
  45963.       os2*)
  45964.         lt_prog_compiler_static='$wl-static'
  45965.         ;;
  45966.       esac
  45967.       ;;
  45968.  
  45969.     darwin* | rhapsody*)
  45970.       # PIC is the default on this platform
  45971.       # Common symbols not allowed in MH_DYLIB files
  45972.       lt_prog_compiler_pic='-fno-common'
  45973.       ;;
  45974.  
  45975.     haiku*)
  45976.       # PIC is the default for Haiku.
  45977.       # The "-static" flag exists, but is broken.
  45978.       lt_prog_compiler_static=
  45979.       ;;
  45980.  
  45981.     hpux*)
  45982.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  45983.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  45984.       # sets the default TLS model and affects inlining.
  45985.       case $host_cpu in
  45986.       hppa*64*)
  45987.         # +Z the default
  45988.         ;;
  45989.       *)
  45990.         lt_prog_compiler_pic='-fPIC'
  45991.         ;;
  45992.       esac
  45993.       ;;
  45994.  
  45995.     interix[3-9]*)
  45996.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  45997.       # Instead, we relocate shared libraries at runtime.
  45998.       ;;
  45999.  
  46000.     msdosdjgpp*)
  46001.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  46002.       # on systems that don't support them.
  46003.       lt_prog_compiler_can_build_shared=no
  46004.       enable_shared=no
  46005.       ;;
  46006.  
  46007.     *nto* | *qnx*)
  46008.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  46009.       # it will coredump.
  46010.       lt_prog_compiler_pic='-fPIC -shared'
  46011.       ;;
  46012.  
  46013.     sysv4*MP*)
  46014.       if test -d /usr/nec; then
  46015.         lt_prog_compiler_pic=-Kconform_pic
  46016.       fi
  46017.       ;;
  46018.  
  46019.     *)
  46020.       lt_prog_compiler_pic='-fPIC'
  46021.       ;;
  46022.     esac
  46023.  
  46024.     case $cc_basename in
  46025.     nvcc*) # Cuda Compiler Driver 2.2
  46026.       lt_prog_compiler_wl='-Xlinker '
  46027.       if test -n "$lt_prog_compiler_pic"; then
  46028.         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  46029.       fi
  46030.       ;;
  46031.     esac
  46032.   else
  46033.     # PORTME Check for flag to pass linker flags through the system compiler.
  46034.     case $host_os in
  46035.     aix*)
  46036.       lt_prog_compiler_wl='-Wl,'
  46037.       if test ia64 = "$host_cpu"; then
  46038.         # AIX 5 now supports IA64 processor
  46039.         lt_prog_compiler_static='-Bstatic'
  46040.       else
  46041.         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  46042.       fi
  46043.       ;;
  46044.  
  46045.     darwin* | rhapsody*)
  46046.       # PIC is the default on this platform
  46047.       # Common symbols not allowed in MH_DYLIB files
  46048.       lt_prog_compiler_pic='-fno-common'
  46049.       case $cc_basename in
  46050.       nagfor*)
  46051.         # NAG Fortran compiler
  46052.         lt_prog_compiler_wl='-Wl,-Wl,,'
  46053.         lt_prog_compiler_pic='-PIC'
  46054.         lt_prog_compiler_static='-Bstatic'
  46055.         ;;
  46056.       esac
  46057.       ;;
  46058.  
  46059.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  46060.       # This hack is so that the source file can tell whether it is being
  46061.       # built for inclusion in a dll (and should export symbols for example).
  46062.       lt_prog_compiler_pic='-DDLL_EXPORT'
  46063.       case $host_os in
  46064.       os2*)
  46065.         lt_prog_compiler_static='$wl-static'
  46066.         ;;
  46067.       esac
  46068.       ;;
  46069.  
  46070.     hpux9* | hpux10* | hpux11*)
  46071.       lt_prog_compiler_wl='-Wl,'
  46072.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  46073.       # not for PA HP-UX.
  46074.       case $host_cpu in
  46075.       hppa*64*|ia64*)
  46076.         # +Z the default
  46077.         ;;
  46078.       *)
  46079.         lt_prog_compiler_pic='+Z'
  46080.         ;;
  46081.       esac
  46082.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  46083.       lt_prog_compiler_static='$wl-a ${wl}archive'
  46084.       ;;
  46085.  
  46086.     irix5* | irix6* | nonstopux*)
  46087.       lt_prog_compiler_wl='-Wl,'
  46088.       # PIC (with -KPIC) is the default.
  46089.       lt_prog_compiler_static='-non_shared'
  46090.       ;;
  46091.  
  46092.     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  46093.       case $cc_basename in
  46094.       # old Intel for x86_64, which still supported -KPIC.
  46095.       ecc*)
  46096.         lt_prog_compiler_wl='-Wl,'
  46097.         lt_prog_compiler_pic='-KPIC'
  46098.         lt_prog_compiler_static='-static'
  46099.         ;;
  46100.       # icc used to be incompatible with GCC.
  46101.       # ICC 10 doesn't accept -KPIC any more.
  46102.       icc* | ifort*)
  46103.         lt_prog_compiler_wl='-Wl,'
  46104.         lt_prog_compiler_pic='-fPIC'
  46105.         lt_prog_compiler_static='-static'
  46106.         ;;
  46107.       # Lahey Fortran 8.1.
  46108.       lf95*)
  46109.         lt_prog_compiler_wl='-Wl,'
  46110.         lt_prog_compiler_pic='--shared'
  46111.         lt_prog_compiler_static='--static'
  46112.         ;;
  46113.       nagfor*)
  46114.         # NAG Fortran compiler
  46115.         lt_prog_compiler_wl='-Wl,-Wl,,'
  46116.         lt_prog_compiler_pic='-PIC'
  46117.         lt_prog_compiler_static='-Bstatic'
  46118.         ;;
  46119.       tcc*)
  46120.         # Fabrice Bellard et al's Tiny C Compiler
  46121.         lt_prog_compiler_wl='-Wl,'
  46122.         lt_prog_compiler_pic='-fPIC'
  46123.         lt_prog_compiler_static='-static'
  46124.         ;;
  46125.       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  46126.         # Portland Group compilers (*not* the Pentium gcc compiler,
  46127.         # which looks to be a dead project)
  46128.         lt_prog_compiler_wl='-Wl,'
  46129.         lt_prog_compiler_pic='-fpic'
  46130.         lt_prog_compiler_static='-Bstatic'
  46131.         ;;
  46132.       ccc*)
  46133.         lt_prog_compiler_wl='-Wl,'
  46134.         # All Alpha code is PIC.
  46135.         lt_prog_compiler_static='-non_shared'
  46136.         ;;
  46137.       xl* | bgxl* | bgf* | mpixl*)
  46138.         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  46139.         lt_prog_compiler_wl='-Wl,'
  46140.         lt_prog_compiler_pic='-qpic'
  46141.         lt_prog_compiler_static='-qstaticlink'
  46142.         ;;
  46143.       *)
  46144.         case `$CC -V 2>&1 | sed 5q` in
  46145.         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  46146.           # Sun Fortran 8.3 passes all unrecognized flags to the linker
  46147.           lt_prog_compiler_pic='-KPIC'
  46148.           lt_prog_compiler_static='-Bstatic'
  46149.           lt_prog_compiler_wl=''
  46150.           ;;
  46151.         *Sun\ F* | *Sun*Fortran*)
  46152.           lt_prog_compiler_pic='-KPIC'
  46153.           lt_prog_compiler_static='-Bstatic'
  46154.           lt_prog_compiler_wl='-Qoption ld '
  46155.           ;;
  46156.         *Sun\ C*)
  46157.           # Sun C 5.9
  46158.           lt_prog_compiler_pic='-KPIC'
  46159.           lt_prog_compiler_static='-Bstatic'
  46160.           lt_prog_compiler_wl='-Wl,'
  46161.           ;;
  46162.         *Intel*\ [CF]*Compiler*)
  46163.           lt_prog_compiler_wl='-Wl,'
  46164.           lt_prog_compiler_pic='-fPIC'
  46165.           lt_prog_compiler_static='-static'
  46166.           ;;
  46167.         *Portland\ Group*)
  46168.           lt_prog_compiler_wl='-Wl,'
  46169.           lt_prog_compiler_pic='-fpic'
  46170.           lt_prog_compiler_static='-Bstatic'
  46171.           ;;
  46172.         esac
  46173.         ;;
  46174.       esac
  46175.       ;;
  46176.  
  46177.     newsos6)
  46178.       lt_prog_compiler_pic='-KPIC'
  46179.       lt_prog_compiler_static='-Bstatic'
  46180.       ;;
  46181.  
  46182.     *nto* | *qnx*)
  46183.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  46184.       # it will coredump.
  46185.       lt_prog_compiler_pic='-fPIC -shared'
  46186.       ;;
  46187.  
  46188.     osf3* | osf4* | osf5*)
  46189.       lt_prog_compiler_wl='-Wl,'
  46190.       # All OSF/1 code is PIC.
  46191.       lt_prog_compiler_static='-non_shared'
  46192.       ;;
  46193.  
  46194.     rdos*)
  46195.       lt_prog_compiler_static='-non_shared'
  46196.       ;;
  46197.  
  46198.     solaris*)
  46199.       lt_prog_compiler_pic='-KPIC'
  46200.       lt_prog_compiler_static='-Bstatic'
  46201.       case $cc_basename in
  46202.       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  46203.         lt_prog_compiler_wl='-Qoption ld ';;
  46204.       *)
  46205.         lt_prog_compiler_wl='-Wl,';;
  46206.       esac
  46207.       ;;
  46208.  
  46209.     sunos4*)
  46210.       lt_prog_compiler_wl='-Qoption ld '
  46211.       lt_prog_compiler_pic='-PIC'
  46212.       lt_prog_compiler_static='-Bstatic'
  46213.       ;;
  46214.  
  46215.     sysv4 | sysv4.2uw2* | sysv4.3*)
  46216.       lt_prog_compiler_wl='-Wl,'
  46217.       lt_prog_compiler_pic='-KPIC'
  46218.       lt_prog_compiler_static='-Bstatic'
  46219.       ;;
  46220.  
  46221.     sysv4*MP*)
  46222.       if test -d /usr/nec; then
  46223.         lt_prog_compiler_pic='-Kconform_pic'
  46224.         lt_prog_compiler_static='-Bstatic'
  46225.       fi
  46226.       ;;
  46227.  
  46228.     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  46229.       lt_prog_compiler_wl='-Wl,'
  46230.       lt_prog_compiler_pic='-KPIC'
  46231.       lt_prog_compiler_static='-Bstatic'
  46232.       ;;
  46233.  
  46234.     unicos*)
  46235.       lt_prog_compiler_wl='-Wl,'
  46236.       lt_prog_compiler_can_build_shared=no
  46237.       ;;
  46238.  
  46239.     uts4*)
  46240.       lt_prog_compiler_pic='-pic'
  46241.       lt_prog_compiler_static='-Bstatic'
  46242.       ;;
  46243.  
  46244.     *)
  46245.       lt_prog_compiler_can_build_shared=no
  46246.       ;;
  46247.     esac
  46248.   fi
  46249.  
  46250. case $host_os in
  46251.   # For platforms that do not support PIC, -DPIC is meaningless:
  46252.   *djgpp*)
  46253.     lt_prog_compiler_pic=
  46254.     ;;
  46255.   *)
  46256.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  46257.     ;;
  46258. esac
  46259.  
  46260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  46261. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  46262. if ${lt_cv_prog_compiler_pic+:} false; then :
  46263.   $as_echo_n "(cached) " >&6
  46264. else
  46265.   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  46266. fi
  46267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  46268. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  46269. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  46270.  
  46271. #
  46272. # Check to make sure the PIC flag actually works.
  46273. #
  46274. if test -n "$lt_prog_compiler_pic"; then
  46275.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  46276. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  46277. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  46278.   $as_echo_n "(cached) " >&6
  46279. else
  46280.   lt_cv_prog_compiler_pic_works=no
  46281.    ac_outfile=conftest.$ac_objext
  46282.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  46283.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
  46284.    # Insert the option either (1) after the last *FLAGS variable, or
  46285.    # (2) before a word containing "conftest.", or (3) at the end.
  46286.    # Note that $ac_compile itself does not contain backslashes and begins
  46287.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  46288.    # The option is referenced via a variable to avoid confusing sed.
  46289.    lt_compile=`echo "$ac_compile" | $SED \
  46290.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  46291.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  46292.    -e 's:$: $lt_compiler_flag:'`
  46293.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  46294.    (eval "$lt_compile" 2>conftest.err)
  46295.    ac_status=$?
  46296.    cat conftest.err >&5
  46297.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46298.    if (exit $ac_status) && test -s "$ac_outfile"; then
  46299.      # The compiler can only warn and ignore the option if not recognized
  46300.      # So say no if there are warnings other than the usual output.
  46301.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  46302.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  46303.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  46304.        lt_cv_prog_compiler_pic_works=yes
  46305.      fi
  46306.    fi
  46307.    $RM conftest*
  46308.  
  46309. fi
  46310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  46311. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  46312.  
  46313. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  46314.     case $lt_prog_compiler_pic in
  46315.      "" | " "*) ;;
  46316.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  46317.      esac
  46318. else
  46319.     lt_prog_compiler_pic=
  46320.      lt_prog_compiler_can_build_shared=no
  46321. fi
  46322.  
  46323. fi
  46324.  
  46325.  
  46326.  
  46327.  
  46328.  
  46329.  
  46330.  
  46331.  
  46332.  
  46333.  
  46334.  
  46335. #
  46336. # Check to make sure the static flag actually works.
  46337. #
  46338. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  46339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  46340. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  46341. if ${lt_cv_prog_compiler_static_works+:} false; then :
  46342.   $as_echo_n "(cached) " >&6
  46343. else
  46344.   lt_cv_prog_compiler_static_works=no
  46345.    save_LDFLAGS=$LDFLAGS
  46346.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  46347.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  46348.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  46349.      # The linker can only warn and ignore the option if not recognized
  46350.      # So say no if there are warnings
  46351.      if test -s conftest.err; then
  46352.        # Append any errors to the config.log.
  46353.        cat conftest.err 1>&5
  46354.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  46355.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  46356.        if diff conftest.exp conftest.er2 >/dev/null; then
  46357.          lt_cv_prog_compiler_static_works=yes
  46358.        fi
  46359.      else
  46360.        lt_cv_prog_compiler_static_works=yes
  46361.      fi
  46362.    fi
  46363.    $RM -r conftest*
  46364.    LDFLAGS=$save_LDFLAGS
  46365.  
  46366. fi
  46367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  46368. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  46369.  
  46370. if test yes = "$lt_cv_prog_compiler_static_works"; then
  46371.     :
  46372. else
  46373.     lt_prog_compiler_static=
  46374. fi
  46375.  
  46376.  
  46377.  
  46378.  
  46379.  
  46380.  
  46381.  
  46382.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  46383. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  46384. if ${lt_cv_prog_compiler_c_o+:} false; then :
  46385.   $as_echo_n "(cached) " >&6
  46386. else
  46387.   lt_cv_prog_compiler_c_o=no
  46388.    $RM -r conftest 2>/dev/null
  46389.    mkdir conftest
  46390.    cd conftest
  46391.    mkdir out
  46392.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  46393.  
  46394.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  46395.    # Insert the option either (1) after the last *FLAGS variable, or
  46396.    # (2) before a word containing "conftest.", or (3) at the end.
  46397.    # Note that $ac_compile itself does not contain backslashes and begins
  46398.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  46399.    lt_compile=`echo "$ac_compile" | $SED \
  46400.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  46401.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  46402.    -e 's:$: $lt_compiler_flag:'`
  46403.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  46404.    (eval "$lt_compile" 2>out/conftest.err)
  46405.    ac_status=$?
  46406.    cat out/conftest.err >&5
  46407.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46408.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  46409.    then
  46410.      # The compiler can only warn and ignore the option if not recognized
  46411.      # So say no if there are warnings
  46412.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  46413.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  46414.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  46415.        lt_cv_prog_compiler_c_o=yes
  46416.      fi
  46417.    fi
  46418.    chmod u+w . 2>&5
  46419.    $RM conftest*
  46420.    # SGI C++ compiler will create directory out/ii_files/ for
  46421.    # template instantiation
  46422.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  46423.    $RM out/* && rmdir out
  46424.    cd ..
  46425.    $RM -r conftest
  46426.    $RM conftest*
  46427.  
  46428. fi
  46429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  46430. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  46431.  
  46432.  
  46433.  
  46434.  
  46435.  
  46436.  
  46437.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  46438. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  46439. if ${lt_cv_prog_compiler_c_o+:} false; then :
  46440.   $as_echo_n "(cached) " >&6
  46441. else
  46442.   lt_cv_prog_compiler_c_o=no
  46443.    $RM -r conftest 2>/dev/null
  46444.    mkdir conftest
  46445.    cd conftest
  46446.    mkdir out
  46447.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  46448.  
  46449.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  46450.    # Insert the option either (1) after the last *FLAGS variable, or
  46451.    # (2) before a word containing "conftest.", or (3) at the end.
  46452.    # Note that $ac_compile itself does not contain backslashes and begins
  46453.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  46454.    lt_compile=`echo "$ac_compile" | $SED \
  46455.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  46456.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  46457.    -e 's:$: $lt_compiler_flag:'`
  46458.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  46459.    (eval "$lt_compile" 2>out/conftest.err)
  46460.    ac_status=$?
  46461.    cat out/conftest.err >&5
  46462.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46463.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  46464.    then
  46465.      # The compiler can only warn and ignore the option if not recognized
  46466.      # So say no if there are warnings
  46467.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  46468.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  46469.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  46470.        lt_cv_prog_compiler_c_o=yes
  46471.      fi
  46472.    fi
  46473.    chmod u+w . 2>&5
  46474.    $RM conftest*
  46475.    # SGI C++ compiler will create directory out/ii_files/ for
  46476.    # template instantiation
  46477.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  46478.    $RM out/* && rmdir out
  46479.    cd ..
  46480.    $RM -r conftest
  46481.    $RM conftest*
  46482.  
  46483. fi
  46484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  46485. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  46486.  
  46487.  
  46488.  
  46489.  
  46490. hard_links=nottested
  46491. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  46492.   # do not overwrite the value of need_locks provided by the user
  46493.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  46494. $as_echo_n "checking if we can lock with hard links... " >&6; }
  46495.   hard_links=yes
  46496.   $RM conftest*
  46497.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  46498.   touch conftest.a
  46499.   ln conftest.a conftest.b 2>&5 || hard_links=no
  46500.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  46501.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  46502. $as_echo "$hard_links" >&6; }
  46503.   if test no = "$hard_links"; then
  46504.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  46505. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  46506.     need_locks=warn
  46507.   fi
  46508. else
  46509.   need_locks=no
  46510. fi
  46511.  
  46512.  
  46513.  
  46514.  
  46515.  
  46516.  
  46517.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  46518. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  46519.  
  46520.   runpath_var=
  46521.   allow_undefined_flag=
  46522.   always_export_symbols=no
  46523.   archive_cmds=
  46524.   archive_expsym_cmds=
  46525.   compiler_needs_object=no
  46526.   enable_shared_with_static_runtimes=no
  46527.   export_dynamic_flag_spec=
  46528.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  46529.   hardcode_automatic=no
  46530.   hardcode_direct=no
  46531.   hardcode_direct_absolute=no
  46532.   hardcode_libdir_flag_spec=
  46533.   hardcode_libdir_separator=
  46534.   hardcode_minus_L=no
  46535.   hardcode_shlibpath_var=unsupported
  46536.   inherit_rpath=no
  46537.   link_all_deplibs=unknown
  46538.   module_cmds=
  46539.   module_expsym_cmds=
  46540.   old_archive_from_new_cmds=
  46541.   old_archive_from_expsyms_cmds=
  46542.   thread_safe_flag_spec=
  46543.   whole_archive_flag_spec=
  46544.   # include_expsyms should be a list of space-separated symbols to be *always*
  46545.   # included in the symbol list
  46546.   include_expsyms=
  46547.   # exclude_expsyms can be an extended regexp of symbols to exclude
  46548.   # it will be wrapped by ' (' and ')$', so one must not match beginning or
  46549.   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  46550.   # as well as any symbol that contains 'd'.
  46551.   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  46552.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  46553.   # platforms (ab)use it in PIC code, but their linkers get confused if
  46554.   # the symbol is explicitly referenced.  Since portable code cannot
  46555.   # rely on this symbol name, it's probably fine to never include it in
  46556.   # preloaded symbol tables.
  46557.   # Exclude shared library initialization/finalization symbols.
  46558.   extract_expsyms_cmds=
  46559.  
  46560.   case $host_os in
  46561.   cygwin* | mingw* | pw32* | cegcc*)
  46562.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  46563.     # When not using gcc, we currently assume that we are using
  46564.     # Microsoft Visual C++.
  46565.     if test yes != "$GCC"; then
  46566.       with_gnu_ld=no
  46567.     fi
  46568.     ;;
  46569.   interix*)
  46570.     # we just hope/assume this is gcc and not c89 (= MSVC++)
  46571.     with_gnu_ld=yes
  46572.     ;;
  46573.   openbsd* | bitrig*)
  46574.     with_gnu_ld=no
  46575.     ;;
  46576.   linux* | k*bsd*-gnu | gnu*)
  46577.     link_all_deplibs=no
  46578.     ;;
  46579.   esac
  46580.  
  46581.   ld_shlibs=yes
  46582.  
  46583.   # On some targets, GNU ld is compatible enough with the native linker
  46584.   # that we're better off using the native interface for both.
  46585.   lt_use_gnu_ld_interface=no
  46586.   if test yes = "$with_gnu_ld"; then
  46587.     case $host_os in
  46588.       aix*)
  46589.         # The AIX port of GNU ld has always aspired to compatibility
  46590.         # with the native linker.  However, as the warning in the GNU ld
  46591.         # block says, versions before 2.19.5* couldn't really create working
  46592.         # shared libraries, regardless of the interface used.
  46593.         case `$LD -v 2>&1` in
  46594.           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  46595.           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  46596.           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  46597.           *)
  46598.             lt_use_gnu_ld_interface=yes
  46599.             ;;
  46600.         esac
  46601.         ;;
  46602.       *)
  46603.         lt_use_gnu_ld_interface=yes
  46604.         ;;
  46605.     esac
  46606.   fi
  46607.  
  46608.   if test yes = "$lt_use_gnu_ld_interface"; then
  46609.     # If archive_cmds runs LD, not CC, wlarc should be empty
  46610.     wlarc='$wl'
  46611.  
  46612.     # Set some defaults for GNU ld with shared library support. These
  46613.     # are reset later if shared libraries are not supported. Putting them
  46614.     # here allows them to be overridden if necessary.
  46615.     runpath_var=LD_RUN_PATH
  46616.     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  46617.     export_dynamic_flag_spec='$wl--export-dynamic'
  46618.     # ancient GNU ld didn't support --whole-archive et. al.
  46619.     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  46620.       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  46621.     else
  46622.       whole_archive_flag_spec=
  46623.     fi
  46624.     supports_anon_versioning=no
  46625.     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  46626.       *GNU\ gold*) supports_anon_versioning=yes ;;
  46627.       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  46628.       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  46629.       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  46630.       *\ 2.11.*) ;; # other 2.11 versions
  46631.       *) supports_anon_versioning=yes ;;
  46632.     esac
  46633.  
  46634.     # See if GNU ld supports shared libraries.
  46635.     case $host_os in
  46636.     aix[3-9]*)
  46637.       # On AIX/PPC, the GNU linker is very broken
  46638.       if test ia64 != "$host_cpu"; then
  46639.         ld_shlibs=no
  46640.         cat <<_LT_EOF 1>&2
  46641.  
  46642. *** Warning: the GNU linker, at least up to release 2.19, is reported
  46643. *** to be unable to reliably create shared libraries on AIX.
  46644. *** Therefore, libtool is disabling shared libraries support.  If you
  46645. *** really care for shared libraries, you may want to install binutils
  46646. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  46647. *** You will then need to restart the configuration process.
  46648.  
  46649. _LT_EOF
  46650.       fi
  46651.       ;;
  46652.  
  46653.     amigaos*)
  46654.       case $host_cpu in
  46655.       powerpc)
  46656.             # see comment about AmigaOS4 .so support
  46657.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  46658.             archive_expsym_cmds=''
  46659.         ;;
  46660.       m68k)
  46661.             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  46662.             hardcode_libdir_flag_spec='-L$libdir'
  46663.             hardcode_minus_L=yes
  46664.         ;;
  46665.       esac
  46666.       ;;
  46667.  
  46668.     beos*)
  46669.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  46670.         allow_undefined_flag=unsupported
  46671.         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  46672.         # support --undefined.  This deserves some investigation.  FIXME
  46673.         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  46674.       else
  46675.         ld_shlibs=no
  46676.       fi
  46677.       ;;
  46678.  
  46679.     cygwin* | mingw* | pw32* | cegcc*)
  46680.       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  46681.       # as there is no search path for DLLs.
  46682.       hardcode_libdir_flag_spec='-L$libdir'
  46683.       export_dynamic_flag_spec='$wl--export-all-symbols'
  46684.       allow_undefined_flag=unsupported
  46685.       always_export_symbols=no
  46686.       enable_shared_with_static_runtimes=yes
  46687.       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  46688.       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  46689.  
  46690.       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  46691.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  46692.         # If the export-symbols file already is a .def file, use it as
  46693.         # is; otherwise, prepend EXPORTS...
  46694.         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
  46695.          cp $export_symbols $output_objdir/$soname.def;
  46696.        else
  46697.          echo EXPORTS > $output_objdir/$soname.def;
  46698.          cat $export_symbols >> $output_objdir/$soname.def;
  46699.        fi~
  46700.        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  46701.       else
  46702.         ld_shlibs=no
  46703.       fi
  46704.       ;;
  46705.  
  46706.     haiku*)
  46707.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  46708.       link_all_deplibs=yes
  46709.       ;;
  46710.  
  46711.     os2*)
  46712.       hardcode_libdir_flag_spec='-L$libdir'
  46713.       hardcode_minus_L=yes
  46714.       allow_undefined_flag=unsupported
  46715.       shrext_cmds=.dll
  46716.       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  46717.         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  46718.         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  46719.         $ECHO EXPORTS >> $output_objdir/$libname.def~
  46720.         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  46721.         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  46722.         emximp -o $lib $output_objdir/$libname.def'
  46723.       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  46724.         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  46725.         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  46726.         $ECHO EXPORTS >> $output_objdir/$libname.def~
  46727.         prefix_cmds="$SED"~
  46728.         if test EXPORTS = "`$SED 1q $export_symbols`"; then
  46729.           prefix_cmds="$prefix_cmds -e 1d";
  46730.         fi~
  46731.         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  46732.         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  46733.         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  46734.         emximp -o $lib $output_objdir/$libname.def'
  46735.       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  46736.       enable_shared_with_static_runtimes=yes
  46737.       ;;
  46738.  
  46739.     interix[3-9]*)
  46740.       hardcode_direct=no
  46741.       hardcode_shlibpath_var=no
  46742.       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  46743.       export_dynamic_flag_spec='$wl-E'
  46744.       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  46745.       # Instead, shared libraries are loaded at an image base (0x10000000 by
  46746.       # default) and relocated if they conflict, which is a slow very memory
  46747.       # consuming and fragmenting process.  To avoid this, we pick a random,
  46748.       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  46749.       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  46750.       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  46751.       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  46752.       ;;
  46753.  
  46754.     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  46755.       tmp_diet=no
  46756.       if test linux-dietlibc = "$host_os"; then
  46757.         case $cc_basename in
  46758.           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
  46759.         esac
  46760.       fi
  46761.       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  46762.          && test no = "$tmp_diet"
  46763.       then
  46764.         tmp_addflag=' $pic_flag'
  46765.         tmp_sharedflag='-shared'
  46766.         case $cc_basename,$host_cpu in
  46767.         pgcc*)                          # Portland Group C compiler
  46768.           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  46769.           tmp_addflag=' $pic_flag'
  46770.           ;;
  46771.         pgf77* | pgf90* | pgf95* | pgfortran*)
  46772.                                         # Portland Group f77 and f90 compilers
  46773.           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  46774.           tmp_addflag=' $pic_flag -Mnomain' ;;
  46775.         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
  46776.           tmp_addflag=' -i_dynamic' ;;
  46777.         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
  46778.           tmp_addflag=' -i_dynamic -nofor_main' ;;
  46779.         ifc* | ifort*)                  # Intel Fortran compiler
  46780.           tmp_addflag=' -nofor_main' ;;
  46781.         lf95*)                          # Lahey Fortran 8.1
  46782.           whole_archive_flag_spec=
  46783.           tmp_sharedflag='--shared' ;;
  46784.         nagfor*)                        # NAGFOR 5.3
  46785.           tmp_sharedflag='-Wl,-shared' ;;
  46786.         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  46787.           tmp_sharedflag='-qmkshrobj'
  46788.           tmp_addflag= ;;
  46789.         nvcc*)  # Cuda Compiler Driver 2.2
  46790.           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  46791.           compiler_needs_object=yes
  46792.           ;;
  46793.         esac
  46794.         case `$CC -V 2>&1 | sed 5q` in
  46795.         *Sun\ C*)                       # Sun C 5.9
  46796.           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  46797.           compiler_needs_object=yes
  46798.           tmp_sharedflag='-G' ;;
  46799.         *Sun\ F*)                       # Sun Fortran 8.3
  46800.           tmp_sharedflag='-G' ;;
  46801.         esac
  46802.         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  46803.  
  46804.         if test yes = "$supports_anon_versioning"; then
  46805.           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  46806.            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  46807.            echo "local: *; };" >> $output_objdir/$libname.ver~
  46808.            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  46809.         fi
  46810.  
  46811.         case $cc_basename in
  46812.         tcc*)
  46813.           export_dynamic_flag_spec='-rdynamic'
  46814.           ;;
  46815.         xlf* | bgf* | bgxlf* | mpixlf*)
  46816.           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  46817.           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  46818.           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  46819.           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  46820.           if test yes = "$supports_anon_versioning"; then
  46821.             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  46822.              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  46823.              echo "local: *; };" >> $output_objdir/$libname.ver~
  46824.              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  46825.           fi
  46826.           ;;
  46827.         esac
  46828.       else
  46829.         ld_shlibs=no
  46830.       fi
  46831.       ;;
  46832.  
  46833.     netbsd* | netbsdelf*-gnu)
  46834.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  46835.         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  46836.         wlarc=
  46837.       else
  46838.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  46839.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  46840.       fi
  46841.       ;;
  46842.  
  46843.     solaris*)
  46844.       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  46845.         ld_shlibs=no
  46846.         cat <<_LT_EOF 1>&2
  46847.  
  46848. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  46849. *** create shared libraries on Solaris systems.  Therefore, libtool
  46850. *** is disabling shared libraries support.  We urge you to upgrade GNU
  46851. *** binutils to release 2.9.1 or newer.  Another option is to modify
  46852. *** your PATH or compiler configuration so that the native linker is
  46853. *** used, and then restart.
  46854.  
  46855. _LT_EOF
  46856.       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  46857.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  46858.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  46859.       else
  46860.         ld_shlibs=no
  46861.       fi
  46862.       ;;
  46863.  
  46864.     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  46865.       case `$LD -v 2>&1` in
  46866.         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  46867.         ld_shlibs=no
  46868.         cat <<_LT_EOF 1>&2
  46869.  
  46870. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  46871. *** reliably create shared libraries on SCO systems.  Therefore, libtool
  46872. *** is disabling shared libraries support.  We urge you to upgrade GNU
  46873. *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  46874. *** your PATH or compiler configuration so that the native linker is
  46875. *** used, and then restart.
  46876.  
  46877. _LT_EOF
  46878.         ;;
  46879.         *)
  46880.           # For security reasons, it is highly recommended that you always
  46881.           # use absolute paths for naming shared libraries, and exclude the
  46882.           # DT_RUNPATH tag from executables and libraries.  But doing so
  46883.           # requires that you compile everything twice, which is a pain.
  46884.           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  46885.             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  46886.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  46887.             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  46888.           else
  46889.             ld_shlibs=no
  46890.           fi
  46891.         ;;
  46892.       esac
  46893.       ;;
  46894.  
  46895.     sunos4*)
  46896.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  46897.       wlarc=
  46898.       hardcode_direct=yes
  46899.       hardcode_shlibpath_var=no
  46900.       ;;
  46901.  
  46902.     *)
  46903.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  46904.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  46905.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  46906.       else
  46907.         ld_shlibs=no
  46908.       fi
  46909.       ;;
  46910.     esac
  46911.  
  46912.     if test no = "$ld_shlibs"; then
  46913.       runpath_var=
  46914.       hardcode_libdir_flag_spec=
  46915.       export_dynamic_flag_spec=
  46916.       whole_archive_flag_spec=
  46917.     fi
  46918.   else
  46919.     # PORTME fill in a description of your system's linker (not GNU ld)
  46920.     case $host_os in
  46921.     aix3*)
  46922.       allow_undefined_flag=unsupported
  46923.       always_export_symbols=yes
  46924.       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  46925.       # Note: this linker hardcodes the directories in LIBPATH if there
  46926.       # are no directories specified by -L.
  46927.       hardcode_minus_L=yes
  46928.       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  46929.         # Neither direct hardcoding nor static linking is supported with a
  46930.         # broken collect2.
  46931.         hardcode_direct=unsupported
  46932.       fi
  46933.       ;;
  46934.  
  46935.     aix[4-9]*)
  46936.       if test ia64 = "$host_cpu"; then
  46937.         # On IA64, the linker does run time linking by default, so we don't
  46938.         # have to do anything special.
  46939.         aix_use_runtimelinking=no
  46940.         exp_sym_flag='-Bexport'
  46941.         no_entry_flag=
  46942.       else
  46943.         # If we're using GNU nm, then we don't want the "-C" option.
  46944.         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  46945.         # Without the "-l" option, or with the "-B" option, AIX nm treats
  46946.         # weak defined symbols like other global defined symbols, whereas
  46947.         # GNU nm marks them as "W".
  46948.         # While the 'weak' keyword is ignored in the Export File, we need
  46949.         # it in the Import File for the 'aix-soname' feature, so we have
  46950.         # to replace the "-B" option with "-P" for AIX nm.
  46951.         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  46952.           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  46953.         else
  46954.           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  46955.         fi
  46956.         aix_use_runtimelinking=no
  46957.  
  46958.         # Test if we are trying to use run time linking or normal
  46959.         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  46960.         # have runtime linking enabled, and use it for executables.
  46961.         # For shared libraries, we enable/disable runtime linking
  46962.         # depending on the kind of the shared library created -
  46963.         # when "with_aix_soname,aix_use_runtimelinking" is:
  46964.         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
  46965.         # "aix,yes"  lib.so          shared, rtl:yes, for executables
  46966.         #            lib.a           static archive
  46967.         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
  46968.         #            lib.a(lib.so.V) shared, rtl:no,  for executables
  46969.         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  46970.         #            lib.a(lib.so.V) shared, rtl:no
  46971.         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
  46972.         #            lib.a           static archive
  46973.         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  46974.           for ld_flag in $LDFLAGS; do
  46975.           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  46976.             aix_use_runtimelinking=yes
  46977.             break
  46978.           fi
  46979.           done
  46980.           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  46981.             # With aix-soname=svr4, we create the lib.so.V shared archives only,
  46982.             # so we don't have lib.a shared libs to link our executables.
  46983.             # We have to force runtime linking in this case.
  46984.             aix_use_runtimelinking=yes
  46985.             LDFLAGS="$LDFLAGS -Wl,-brtl"
  46986.           fi
  46987.           ;;
  46988.         esac
  46989.  
  46990.         exp_sym_flag='-bexport'
  46991.         no_entry_flag='-bnoentry'
  46992.       fi
  46993.  
  46994.       # When large executables or shared objects are built, AIX ld can
  46995.       # have problems creating the table of contents.  If linking a library
  46996.       # or program results in "error TOC overflow" add -mminimal-toc to
  46997.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  46998.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  46999.  
  47000.       archive_cmds=''
  47001.       hardcode_direct=yes
  47002.       hardcode_direct_absolute=yes
  47003.       hardcode_libdir_separator=':'
  47004.       link_all_deplibs=yes
  47005.       file_list_spec='$wl-f,'
  47006.       case $with_aix_soname,$aix_use_runtimelinking in
  47007.       aix,*) ;; # traditional, no import file
  47008.       svr4,* | *,yes) # use import file
  47009.         # The Import File defines what to hardcode.
  47010.         hardcode_direct=no
  47011.         hardcode_direct_absolute=no
  47012.         ;;
  47013.       esac
  47014.  
  47015.       if test yes = "$GCC"; then
  47016.         case $host_os in aix4.[012]|aix4.[012].*)
  47017.         # We only want to do this on AIX 4.2 and lower, the check
  47018.         # below for broken collect2 doesn't work under 4.3+
  47019.           collect2name=`$CC -print-prog-name=collect2`
  47020.           if test -f "$collect2name" &&
  47021.            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  47022.           then
  47023.           # We have reworked collect2
  47024.           :
  47025.           else
  47026.           # We have old collect2
  47027.           hardcode_direct=unsupported
  47028.           # It fails to find uninstalled libraries when the uninstalled
  47029.           # path is not listed in the libpath.  Setting hardcode_minus_L
  47030.           # to unsupported forces relinking
  47031.           hardcode_minus_L=yes
  47032.           hardcode_libdir_flag_spec='-L$libdir'
  47033.           hardcode_libdir_separator=
  47034.           fi
  47035.           ;;
  47036.         esac
  47037.         shared_flag='-shared'
  47038.         if test yes = "$aix_use_runtimelinking"; then
  47039.           shared_flag="$shared_flag "'$wl-G'
  47040.         fi
  47041.         # Need to ensure runtime linking is disabled for the traditional
  47042.         # shared library, or the linker may eventually find shared libraries
  47043.         # /with/ Import File - we do not want to mix them.
  47044.         shared_flag_aix='-shared'
  47045.         shared_flag_svr4='-shared $wl-G'
  47046.       else
  47047.         # not using gcc
  47048.         if test ia64 = "$host_cpu"; then
  47049.         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  47050.         # chokes on -Wl,-G. The following line is correct:
  47051.           shared_flag='-G'
  47052.         else
  47053.           if test yes = "$aix_use_runtimelinking"; then
  47054.             shared_flag='$wl-G'
  47055.           else
  47056.             shared_flag='$wl-bM:SRE'
  47057.           fi
  47058.           shared_flag_aix='$wl-bM:SRE'
  47059.           shared_flag_svr4='$wl-G'
  47060.         fi
  47061.       fi
  47062.  
  47063.       export_dynamic_flag_spec='$wl-bexpall'
  47064.       # It seems that -bexpall does not export symbols beginning with
  47065.       # underscore (_), so it is better to generate a list of symbols to export.
  47066.       always_export_symbols=yes
  47067.       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  47068.         # Warning - without using the other runtime loading flags (-brtl),
  47069.         # -berok will link without error, but may produce a broken library.
  47070.         allow_undefined_flag='-berok'
  47071.         # Determine the default libpath from the value encoded in an
  47072.         # empty executable.
  47073.         if test set = "${lt_cv_aix_libpath+set}"; then
  47074.   aix_libpath=$lt_cv_aix_libpath
  47075. else
  47076.   if ${lt_cv_aix_libpath_+:} false; then :
  47077.   $as_echo_n "(cached) " >&6
  47078. else
  47079.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47080. /* end confdefs.h.  */
  47081.  
  47082. int
  47083. main ()
  47084. {
  47085.  
  47086.   ;
  47087.   return 0;
  47088. }
  47089. _ACEOF
  47090. if ac_fn_c_try_link "$LINENO"; then :
  47091.  
  47092.   lt_aix_libpath_sed='
  47093.      /Import File Strings/,/^$/ {
  47094.           /^0/ {
  47095.               s/^0  *\([^ ]*\) *$/\1/
  47096.               p
  47097.           }
  47098.      }'
  47099.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  47100.   # Check for a 64-bit object if we didn't find anything.
  47101.   if test -z "$lt_cv_aix_libpath_"; then
  47102.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  47103.   fi
  47104. fi
  47105. rm -f core conftest.err conftest.$ac_objext \
  47106.     conftest$ac_exeext conftest.$ac_ext
  47107.   if test -z "$lt_cv_aix_libpath_"; then
  47108.     lt_cv_aix_libpath_=/usr/lib:/lib
  47109.   fi
  47110.  
  47111. fi
  47112.  
  47113.   aix_libpath=$lt_cv_aix_libpath_
  47114. fi
  47115.  
  47116.         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  47117.         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  47118.       else
  47119.         if test ia64 = "$host_cpu"; then
  47120.           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  47121.           allow_undefined_flag="-z nodefs"
  47122.           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  47123.         else
  47124.          # Determine the default libpath from the value encoded in an
  47125.          # empty executable.
  47126.          if test set = "${lt_cv_aix_libpath+set}"; then
  47127.   aix_libpath=$lt_cv_aix_libpath
  47128. else
  47129.   if ${lt_cv_aix_libpath_+:} false; then :
  47130.   $as_echo_n "(cached) " >&6
  47131. else
  47132.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47133. /* end confdefs.h.  */
  47134.  
  47135. int
  47136. main ()
  47137. {
  47138.  
  47139.   ;
  47140.   return 0;
  47141. }
  47142. _ACEOF
  47143. if ac_fn_c_try_link "$LINENO"; then :
  47144.  
  47145.   lt_aix_libpath_sed='
  47146.      /Import File Strings/,/^$/ {
  47147.           /^0/ {
  47148.               s/^0  *\([^ ]*\) *$/\1/
  47149.               p
  47150.           }
  47151.      }'
  47152.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  47153.   # Check for a 64-bit object if we didn't find anything.
  47154.   if test -z "$lt_cv_aix_libpath_"; then
  47155.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  47156.   fi
  47157. fi
  47158. rm -f core conftest.err conftest.$ac_objext \
  47159.     conftest$ac_exeext conftest.$ac_ext
  47160.   if test -z "$lt_cv_aix_libpath_"; then
  47161.     lt_cv_aix_libpath_=/usr/lib:/lib
  47162.   fi
  47163.  
  47164. fi
  47165.  
  47166.   aix_libpath=$lt_cv_aix_libpath_
  47167. fi
  47168.  
  47169.          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  47170.           # Warning - without using the other run time loading flags,
  47171.           # -berok will link without error, but may produce a broken library.
  47172.           no_undefined_flag=' $wl-bernotok'
  47173.           allow_undefined_flag=' $wl-berok'
  47174.           if test yes = "$with_gnu_ld"; then
  47175.             # We only use this code for GNU lds that support --whole-archive.
  47176.             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  47177.           else
  47178.             # Exported symbols can be pulled into shared objects from archives
  47179.             whole_archive_flag_spec='$convenience'
  47180.           fi
  47181.           archive_cmds_need_lc=yes
  47182.           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  47183.           # -brtl affects multiple linker settings, -berok does not and is overridden later
  47184.           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  47185.           if test svr4 != "$with_aix_soname"; then
  47186.             # This is similar to how AIX traditionally builds its shared libraries.
  47187.             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  47188.           fi
  47189.           if test aix != "$with_aix_soname"; then
  47190.             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  47191.           else
  47192.             # used by -dlpreopen to get the symbols
  47193.             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
  47194.           fi
  47195.           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  47196.         fi
  47197.       fi
  47198.       ;;
  47199.  
  47200.     amigaos*)
  47201.       case $host_cpu in
  47202.       powerpc)
  47203.             # see comment about AmigaOS4 .so support
  47204.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  47205.             archive_expsym_cmds=''
  47206.         ;;
  47207.       m68k)
  47208.             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  47209.             hardcode_libdir_flag_spec='-L$libdir'
  47210.             hardcode_minus_L=yes
  47211.         ;;
  47212.       esac
  47213.       ;;
  47214.  
  47215.     bsdi[45]*)
  47216.       export_dynamic_flag_spec=-rdynamic
  47217.       ;;
  47218.  
  47219.     cygwin* | mingw* | pw32* | cegcc*)
  47220.       # When not using gcc, we currently assume that we are using
  47221.       # Microsoft Visual C++.
  47222.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  47223.       # no search path for DLLs.
  47224.       case $cc_basename in
  47225.       cl*)
  47226.         # Native MSVC
  47227.         hardcode_libdir_flag_spec=' '
  47228.         allow_undefined_flag=unsupported
  47229.         always_export_symbols=yes
  47230.         file_list_spec='@'
  47231.         # Tell ltmain to make .lib files, not .a files.
  47232.         libext=lib
  47233.         # Tell ltmain to make .dll files, not .so files.
  47234.         shrext_cmds=.dll
  47235.         # FIXME: Setting linknames here is a bad hack.
  47236.         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  47237.         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
  47238.            cp "$export_symbols" "$output_objdir/$soname.def";
  47239.            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  47240.          else
  47241.            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  47242.          fi~
  47243.          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  47244.          linknames='
  47245.         # The linker will not automatically build a static lib if we build a DLL.
  47246.         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  47247.         enable_shared_with_static_runtimes=yes
  47248.         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  47249.         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  47250.         # Don't use ranlib
  47251.         old_postinstall_cmds='chmod 644 $oldlib'
  47252.         postlink_cmds='lt_outputfile="@OUTPUT@"~
  47253.          lt_tool_outputfile="@TOOL_OUTPUT@"~
  47254.          case $lt_outputfile in
  47255.            *.exe|*.EXE) ;;
  47256.            *)
  47257.              lt_outputfile=$lt_outputfile.exe
  47258.              lt_tool_outputfile=$lt_tool_outputfile.exe
  47259.              ;;
  47260.          esac~
  47261.          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  47262.            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  47263.            $RM "$lt_outputfile.manifest";
  47264.          fi'
  47265.         ;;
  47266.       *)
  47267.         # Assume MSVC wrapper
  47268.         hardcode_libdir_flag_spec=' '
  47269.         allow_undefined_flag=unsupported
  47270.         # Tell ltmain to make .lib files, not .a files.
  47271.         libext=lib
  47272.         # Tell ltmain to make .dll files, not .so files.
  47273.         shrext_cmds=.dll
  47274.         # FIXME: Setting linknames here is a bad hack.
  47275.         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  47276.         # The linker will automatically build a .lib file if we build a DLL.
  47277.         old_archive_from_new_cmds='true'
  47278.         # FIXME: Should let the user specify the lib program.
  47279.         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  47280.         enable_shared_with_static_runtimes=yes
  47281.         ;;
  47282.       esac
  47283.       ;;
  47284.  
  47285.     darwin* | rhapsody*)
  47286.  
  47287.  
  47288.   archive_cmds_need_lc=no
  47289.   hardcode_direct=no
  47290.   hardcode_automatic=yes
  47291.   hardcode_shlibpath_var=unsupported
  47292.   if test yes = "$lt_cv_ld_force_load"; then
  47293.     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  47294.  
  47295.   else
  47296.     whole_archive_flag_spec=''
  47297.   fi
  47298.   link_all_deplibs=yes
  47299.   allow_undefined_flag=$_lt_dar_allow_undefined
  47300.   case $cc_basename in
  47301.      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  47302.      *) _lt_dar_can_shared=$GCC ;;
  47303.   esac
  47304.   if test yes = "$_lt_dar_can_shared"; then
  47305.     output_verbose_link_cmd=func_echo_all
  47306.     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  47307.     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  47308.     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  47309.     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  47310.  
  47311.   else
  47312.   ld_shlibs=no
  47313.   fi
  47314.  
  47315.       ;;
  47316.  
  47317.     dgux*)
  47318.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47319.       hardcode_libdir_flag_spec='-L$libdir'
  47320.       hardcode_shlibpath_var=no
  47321.       ;;
  47322.  
  47323.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  47324.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  47325.     # does not break anything, and helps significantly (at the cost of a little
  47326.     # extra space).
  47327.     freebsd2.2*)
  47328.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  47329.       hardcode_libdir_flag_spec='-R$libdir'
  47330.       hardcode_direct=yes
  47331.       hardcode_shlibpath_var=no
  47332.       ;;
  47333.  
  47334.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  47335.     freebsd2.*)
  47336.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  47337.       hardcode_direct=yes
  47338.       hardcode_minus_L=yes
  47339.       hardcode_shlibpath_var=no
  47340.       ;;
  47341.  
  47342.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  47343.     freebsd* | dragonfly*)
  47344.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  47345.       hardcode_libdir_flag_spec='-R$libdir'
  47346.       hardcode_direct=yes
  47347.       hardcode_shlibpath_var=no
  47348.       ;;
  47349.  
  47350.     hpux9*)
  47351.       if test yes = "$GCC"; then
  47352.         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  47353.       else
  47354.         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  47355.       fi
  47356.       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  47357.       hardcode_libdir_separator=:
  47358.       hardcode_direct=yes
  47359.  
  47360.       # hardcode_minus_L: Not really in the search PATH,
  47361.       # but as the default location of the library.
  47362.       hardcode_minus_L=yes
  47363.       export_dynamic_flag_spec='$wl-E'
  47364.       ;;
  47365.  
  47366.     hpux10*)
  47367.       if test yes,no = "$GCC,$with_gnu_ld"; then
  47368.         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  47369.       else
  47370.         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  47371.       fi
  47372.       if test no = "$with_gnu_ld"; then
  47373.         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  47374.         hardcode_libdir_separator=:
  47375.         hardcode_direct=yes
  47376.         hardcode_direct_absolute=yes
  47377.         export_dynamic_flag_spec='$wl-E'
  47378.         # hardcode_minus_L: Not really in the search PATH,
  47379.         # but as the default location of the library.
  47380.         hardcode_minus_L=yes
  47381.       fi
  47382.       ;;
  47383.  
  47384.     hpux11*)
  47385.       if test yes,no = "$GCC,$with_gnu_ld"; then
  47386.         case $host_cpu in
  47387.         hppa*64*)
  47388.           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  47389.           ;;
  47390.         ia64*)
  47391.           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  47392.           ;;
  47393.         *)
  47394.           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  47395.           ;;
  47396.         esac
  47397.       else
  47398.         case $host_cpu in
  47399.         hppa*64*)
  47400.           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  47401.           ;;
  47402.         ia64*)
  47403.           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  47404.           ;;
  47405.         *)
  47406.  
  47407.           # Older versions of the 11.00 compiler do not understand -b yet
  47408.           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  47409.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  47410. $as_echo_n "checking if $CC understands -b... " >&6; }
  47411. if ${lt_cv_prog_compiler__b+:} false; then :
  47412.   $as_echo_n "(cached) " >&6
  47413. else
  47414.   lt_cv_prog_compiler__b=no
  47415.    save_LDFLAGS=$LDFLAGS
  47416.    LDFLAGS="$LDFLAGS -b"
  47417.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  47418.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  47419.      # The linker can only warn and ignore the option if not recognized
  47420.      # So say no if there are warnings
  47421.      if test -s conftest.err; then
  47422.        # Append any errors to the config.log.
  47423.        cat conftest.err 1>&5
  47424.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  47425.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  47426.        if diff conftest.exp conftest.er2 >/dev/null; then
  47427.          lt_cv_prog_compiler__b=yes
  47428.        fi
  47429.      else
  47430.        lt_cv_prog_compiler__b=yes
  47431.      fi
  47432.    fi
  47433.    $RM -r conftest*
  47434.    LDFLAGS=$save_LDFLAGS
  47435.  
  47436. fi
  47437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  47438. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  47439.  
  47440. if test yes = "$lt_cv_prog_compiler__b"; then
  47441.     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  47442. else
  47443.     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  47444. fi
  47445.  
  47446.           ;;
  47447.         esac
  47448.       fi
  47449.       if test no = "$with_gnu_ld"; then
  47450.         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  47451.         hardcode_libdir_separator=:
  47452.  
  47453.         case $host_cpu in
  47454.         hppa*64*|ia64*)
  47455.           hardcode_direct=no
  47456.           hardcode_shlibpath_var=no
  47457.           ;;
  47458.         *)
  47459.           hardcode_direct=yes
  47460.           hardcode_direct_absolute=yes
  47461.           export_dynamic_flag_spec='$wl-E'
  47462.  
  47463.           # hardcode_minus_L: Not really in the search PATH,
  47464.           # but as the default location of the library.
  47465.           hardcode_minus_L=yes
  47466.           ;;
  47467.         esac
  47468.       fi
  47469.       ;;
  47470.  
  47471.     irix5* | irix6* | nonstopux*)
  47472.       if test yes = "$GCC"; then
  47473.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  47474.         # Try to use the -exported_symbol ld option, if it does not
  47475.         # work, assume that -exports_file does not work either and
  47476.         # implicitly export all symbols.
  47477.         # This should be the same for all languages, so no per-tag cache variable.
  47478.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  47479. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  47480. if ${lt_cv_irix_exported_symbol+:} false; then :
  47481.   $as_echo_n "(cached) " >&6
  47482. else
  47483.   save_LDFLAGS=$LDFLAGS
  47484.            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  47485.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47486. /* end confdefs.h.  */
  47487. int foo (void) { return 0; }
  47488. _ACEOF
  47489. if ac_fn_c_try_link "$LINENO"; then :
  47490.   lt_cv_irix_exported_symbol=yes
  47491. else
  47492.   lt_cv_irix_exported_symbol=no
  47493. fi
  47494. rm -f core conftest.err conftest.$ac_objext \
  47495.     conftest$ac_exeext conftest.$ac_ext
  47496.            LDFLAGS=$save_LDFLAGS
  47497. fi
  47498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  47499. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  47500.         if test yes = "$lt_cv_irix_exported_symbol"; then
  47501.           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  47502.         fi
  47503.         link_all_deplibs=no
  47504.       else
  47505.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  47506.         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  47507.       fi
  47508.       archive_cmds_need_lc='no'
  47509.       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  47510.       hardcode_libdir_separator=:
  47511.       inherit_rpath=yes
  47512.       link_all_deplibs=yes
  47513.       ;;
  47514.  
  47515.     linux*)
  47516.       case $cc_basename in
  47517.       tcc*)
  47518.         # Fabrice Bellard et al's Tiny C Compiler
  47519.         ld_shlibs=yes
  47520.         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  47521.         ;;
  47522.       esac
  47523.       ;;
  47524.  
  47525.     netbsd* | netbsdelf*-gnu)
  47526.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  47527.         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  47528.       else
  47529.         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  47530.       fi
  47531.       hardcode_libdir_flag_spec='-R$libdir'
  47532.       hardcode_direct=yes
  47533.       hardcode_shlibpath_var=no
  47534.       ;;
  47535.  
  47536.     newsos6)
  47537.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47538.       hardcode_direct=yes
  47539.       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  47540.       hardcode_libdir_separator=:
  47541.       hardcode_shlibpath_var=no
  47542.       ;;
  47543.  
  47544.     *nto* | *qnx*)
  47545.       ;;
  47546.  
  47547.     openbsd* | bitrig*)
  47548.       if test -f /usr/libexec/ld.so; then
  47549.         hardcode_direct=yes
  47550.         hardcode_shlibpath_var=no
  47551.         hardcode_direct_absolute=yes
  47552.         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  47553.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  47554.           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  47555.           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  47556.           export_dynamic_flag_spec='$wl-E'
  47557.         else
  47558.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  47559.           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  47560.         fi
  47561.       else
  47562.         ld_shlibs=no
  47563.       fi
  47564.       ;;
  47565.  
  47566.     os2*)
  47567.       hardcode_libdir_flag_spec='-L$libdir'
  47568.       hardcode_minus_L=yes
  47569.       allow_undefined_flag=unsupported
  47570.       shrext_cmds=.dll
  47571.       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  47572.         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  47573.         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  47574.         $ECHO EXPORTS >> $output_objdir/$libname.def~
  47575.         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  47576.         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  47577.         emximp -o $lib $output_objdir/$libname.def'
  47578.       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  47579.         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  47580.         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  47581.         $ECHO EXPORTS >> $output_objdir/$libname.def~
  47582.         prefix_cmds="$SED"~
  47583.         if test EXPORTS = "`$SED 1q $export_symbols`"; then
  47584.           prefix_cmds="$prefix_cmds -e 1d";
  47585.         fi~
  47586.         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  47587.         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  47588.         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  47589.         emximp -o $lib $output_objdir/$libname.def'
  47590.       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  47591.       enable_shared_with_static_runtimes=yes
  47592.       ;;
  47593.  
  47594.     osf3*)
  47595.       if test yes = "$GCC"; then
  47596.         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  47597.         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  47598.       else
  47599.         allow_undefined_flag=' -expect_unresolved \*'
  47600.         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  47601.       fi
  47602.       archive_cmds_need_lc='no'
  47603.       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  47604.       hardcode_libdir_separator=:
  47605.       ;;
  47606.  
  47607.     osf4* | osf5*)      # as osf3* with the addition of -msym flag
  47608.       if test yes = "$GCC"; then
  47609.         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  47610.         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  47611.         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  47612.       else
  47613.         allow_undefined_flag=' -expect_unresolved \*'
  47614.         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  47615.         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  47616.          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  47617.  
  47618.         # Both c and cxx compiler support -rpath directly
  47619.         hardcode_libdir_flag_spec='-rpath $libdir'
  47620.       fi
  47621.       archive_cmds_need_lc='no'
  47622.       hardcode_libdir_separator=:
  47623.       ;;
  47624.  
  47625.     solaris*)
  47626.       no_undefined_flag=' -z defs'
  47627.       if test yes = "$GCC"; then
  47628.         wlarc='$wl'
  47629.         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  47630.         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  47631.          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  47632.       else
  47633.         case `$CC -V 2>&1` in
  47634.         *"Compilers 5.0"*)
  47635.           wlarc=''
  47636.           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47637.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  47638.            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  47639.           ;;
  47640.         *)
  47641.           wlarc='$wl'
  47642.           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  47643.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  47644.            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  47645.           ;;
  47646.         esac
  47647.       fi
  47648.       hardcode_libdir_flag_spec='-R$libdir'
  47649.       hardcode_shlibpath_var=no
  47650.       case $host_os in
  47651.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  47652.       *)
  47653.         # The compiler driver will combine and reorder linker options,
  47654.         # but understands '-z linker_flag'.  GCC discards it without '$wl',
  47655.         # but is careful enough not to reorder.
  47656.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  47657.         if test yes = "$GCC"; then
  47658.           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  47659.         else
  47660.           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  47661.         fi
  47662.         ;;
  47663.       esac
  47664.       link_all_deplibs=yes
  47665.       ;;
  47666.  
  47667.     sunos4*)
  47668.       if test sequent = "$host_vendor"; then
  47669.         # Use $CC to link under sequent, because it throws in some extra .o
  47670.         # files that make .init and .fini sections work.
  47671.         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  47672.       else
  47673.         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  47674.       fi
  47675.       hardcode_libdir_flag_spec='-L$libdir'
  47676.       hardcode_direct=yes
  47677.       hardcode_minus_L=yes
  47678.       hardcode_shlibpath_var=no
  47679.       ;;
  47680.  
  47681.     sysv4)
  47682.       case $host_vendor in
  47683.         sni)
  47684.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47685.           hardcode_direct=yes # is this really true???
  47686.         ;;
  47687.         siemens)
  47688.           ## LD is ld it makes a PLAMLIB
  47689.           ## CC just makes a GrossModule.
  47690.           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  47691.           reload_cmds='$CC -r -o $output$reload_objs'
  47692.           hardcode_direct=no
  47693.         ;;
  47694.         motorola)
  47695.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47696.           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  47697.         ;;
  47698.       esac
  47699.       runpath_var='LD_RUN_PATH'
  47700.       hardcode_shlibpath_var=no
  47701.       ;;
  47702.  
  47703.     sysv4.3*)
  47704.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47705.       hardcode_shlibpath_var=no
  47706.       export_dynamic_flag_spec='-Bexport'
  47707.       ;;
  47708.  
  47709.     sysv4*MP*)
  47710.       if test -d /usr/nec; then
  47711.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47712.         hardcode_shlibpath_var=no
  47713.         runpath_var=LD_RUN_PATH
  47714.         hardcode_runpath_var=yes
  47715.         ld_shlibs=yes
  47716.       fi
  47717.       ;;
  47718.  
  47719.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  47720.       no_undefined_flag='$wl-z,text'
  47721.       archive_cmds_need_lc=no
  47722.       hardcode_shlibpath_var=no
  47723.       runpath_var='LD_RUN_PATH'
  47724.  
  47725.       if test yes = "$GCC"; then
  47726.         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47727.         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47728.       else
  47729.         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47730.         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47731.       fi
  47732.       ;;
  47733.  
  47734.     sysv5* | sco3.2v5* | sco5v6*)
  47735.       # Note: We CANNOT use -z defs as we might desire, because we do not
  47736.       # link with -lc, and that would cause any symbols used from libc to
  47737.       # always be unresolved, which means just about no library would
  47738.       # ever link correctly.  If we're not using GNU ld we use -z text
  47739.       # though, which does catch some bad symbols but isn't as heavy-handed
  47740.       # as -z defs.
  47741.       no_undefined_flag='$wl-z,text'
  47742.       allow_undefined_flag='$wl-z,nodefs'
  47743.       archive_cmds_need_lc=no
  47744.       hardcode_shlibpath_var=no
  47745.       hardcode_libdir_flag_spec='$wl-R,$libdir'
  47746.       hardcode_libdir_separator=':'
  47747.       link_all_deplibs=yes
  47748.       export_dynamic_flag_spec='$wl-Bexport'
  47749.       runpath_var='LD_RUN_PATH'
  47750.  
  47751.       if test yes = "$GCC"; then
  47752.         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47753.         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47754.       else
  47755.         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47756.         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  47757.       fi
  47758.       ;;
  47759.  
  47760.     uts4*)
  47761.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  47762.       hardcode_libdir_flag_spec='-L$libdir'
  47763.       hardcode_shlibpath_var=no
  47764.       ;;
  47765.  
  47766.     *)
  47767.       ld_shlibs=no
  47768.       ;;
  47769.     esac
  47770.  
  47771.     if test sni = "$host_vendor"; then
  47772.       case $host in
  47773.       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  47774.         export_dynamic_flag_spec='$wl-Blargedynsym'
  47775.         ;;
  47776.       esac
  47777.     fi
  47778.   fi
  47779.  
  47780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  47781. $as_echo "$ld_shlibs" >&6; }
  47782. test no = "$ld_shlibs" && can_build_shared=no
  47783.  
  47784. with_gnu_ld=$with_gnu_ld
  47785.  
  47786.  
  47787.  
  47788.  
  47789.  
  47790.  
  47791.  
  47792.  
  47793.  
  47794.  
  47795.  
  47796.  
  47797.  
  47798.  
  47799.  
  47800. #
  47801. # Do we need to explicitly link libc?
  47802. #
  47803. case "x$archive_cmds_need_lc" in
  47804. x|xyes)
  47805.   # Assume -lc should be added
  47806.   archive_cmds_need_lc=yes
  47807.  
  47808.   if test yes,yes = "$GCC,$enable_shared"; then
  47809.     case $archive_cmds in
  47810.     *'~'*)
  47811.       # FIXME: we may have to deal with multi-command sequences.
  47812.       ;;
  47813.     '$CC '*)
  47814.       # Test whether the compiler implicitly links with -lc since on some
  47815.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  47816.       # to ld, don't add -lc before -lgcc.
  47817.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  47818. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  47819. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  47820.   $as_echo_n "(cached) " >&6
  47821. else
  47822.   $RM conftest*
  47823.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  47824.  
  47825.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  47826.   (eval $ac_compile) 2>&5
  47827.   ac_status=$?
  47828.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  47829.   test $ac_status = 0; } 2>conftest.err; then
  47830.           soname=conftest
  47831.           lib=conftest
  47832.           libobjs=conftest.$ac_objext
  47833.           deplibs=
  47834.           wl=$lt_prog_compiler_wl
  47835.           pic_flag=$lt_prog_compiler_pic
  47836.           compiler_flags=-v
  47837.           linker_flags=-v
  47838.           verstring=
  47839.           output_objdir=.
  47840.           libname=conftest
  47841.           lt_save_allow_undefined_flag=$allow_undefined_flag
  47842.           allow_undefined_flag=
  47843.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  47844.   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  47845.   ac_status=$?
  47846.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  47847.   test $ac_status = 0; }
  47848.           then
  47849.             lt_cv_archive_cmds_need_lc=no
  47850.           else
  47851.             lt_cv_archive_cmds_need_lc=yes
  47852.           fi
  47853.           allow_undefined_flag=$lt_save_allow_undefined_flag
  47854.         else
  47855.           cat conftest.err 1>&5
  47856.         fi
  47857.         $RM conftest*
  47858.  
  47859. fi
  47860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  47861. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  47862.       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  47863.       ;;
  47864.     esac
  47865.   fi
  47866.   ;;
  47867. esac
  47868.  
  47869.  
  47870.  
  47871.  
  47872.  
  47873.  
  47874.  
  47875.  
  47876.  
  47877.  
  47878.  
  47879.  
  47880.  
  47881.  
  47882.  
  47883.  
  47884.  
  47885.  
  47886.  
  47887.  
  47888.  
  47889.  
  47890.  
  47891.  
  47892.  
  47893.  
  47894.  
  47895.  
  47896.  
  47897.  
  47898.  
  47899.  
  47900.  
  47901.  
  47902.  
  47903.  
  47904.  
  47905.  
  47906.  
  47907.  
  47908.  
  47909.  
  47910.  
  47911.  
  47912.  
  47913.  
  47914.  
  47915.  
  47916.  
  47917.  
  47918.  
  47919.  
  47920.  
  47921.  
  47922.  
  47923.  
  47924.  
  47925.  
  47926.  
  47927.  
  47928.  
  47929.  
  47930.  
  47931.  
  47932.  
  47933.  
  47934.  
  47935.  
  47936.  
  47937.  
  47938.  
  47939.  
  47940.  
  47941.  
  47942.  
  47943.  
  47944.  
  47945.  
  47946.  
  47947.  
  47948.  
  47949.  
  47950.  
  47951.  
  47952.  
  47953.  
  47954.  
  47955.  
  47956.  
  47957.  
  47958.  
  47959.  
  47960.  
  47961.  
  47962.  
  47963.  
  47964.  
  47965.  
  47966.  
  47967.  
  47968.  
  47969.  
  47970.  
  47971.  
  47972.  
  47973.  
  47974.  
  47975.  
  47976.  
  47977.  
  47978.  
  47979.  
  47980.  
  47981.  
  47982.  
  47983.  
  47984.  
  47985.  
  47986.  
  47987.  
  47988.  
  47989.  
  47990.  
  47991.  
  47992.  
  47993.  
  47994.  
  47995.  
  47996.  
  47997.  
  47998.  
  47999.  
  48000.  
  48001.  
  48002.  
  48003.  
  48004.  
  48005.  
  48006.  
  48007.  
  48008.  
  48009.  
  48010.  
  48011.  
  48012.  
  48013.  
  48014.  
  48015.  
  48016.  
  48017.  
  48018.  
  48019.  
  48020.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  48021. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  48022.  
  48023. if test yes = "$GCC"; then
  48024.   case $host_os in
  48025.     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  48026.     *) lt_awk_arg='/^libraries:/' ;;
  48027.   esac
  48028.   case $host_os in
  48029.     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  48030.     *) lt_sed_strip_eq='s|=/|/|g' ;;
  48031.   esac
  48032.   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  48033.   case $lt_search_path_spec in
  48034.   *\;*)
  48035.     # if the path contains ";" then we assume it to be the separator
  48036.     # otherwise default to the standard path separator (i.e. ":") - it is
  48037.     # assumed that no part of a normal pathname contains ";" but that should
  48038.     # okay in the real world where ";" in dirpaths is itself problematic.
  48039.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  48040.     ;;
  48041.   *)
  48042.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  48043.     ;;
  48044.   esac
  48045.   # Ok, now we have the path, separated by spaces, we can step through it
  48046.   # and add multilib dir if necessary...
  48047.   lt_tmp_lt_search_path_spec=
  48048.   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  48049.   # ...but if some path component already ends with the multilib dir we assume
  48050.   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  48051.   case "$lt_multi_os_dir; $lt_search_path_spec " in
  48052.   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  48053.     lt_multi_os_dir=
  48054.     ;;
  48055.   esac
  48056.   for lt_sys_path in $lt_search_path_spec; do
  48057.     if test -d "$lt_sys_path$lt_multi_os_dir"; then
  48058.       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  48059.     elif test -n "$lt_multi_os_dir"; then
  48060.       test -d "$lt_sys_path" && \
  48061.         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  48062.     fi
  48063.   done
  48064.   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  48065. BEGIN {RS = " "; FS = "/|\n";} {
  48066.  lt_foo = "";
  48067.  lt_count = 0;
  48068.  for (lt_i = NF; lt_i > 0; lt_i--) {
  48069.    if ($lt_i != "" && $lt_i != ".") {
  48070.      if ($lt_i == "..") {
  48071.        lt_count++;
  48072.      } else {
  48073.        if (lt_count == 0) {
  48074.          lt_foo = "/" $lt_i lt_foo;
  48075.        } else {
  48076.          lt_count--;
  48077.        }
  48078.      }
  48079.    }
  48080.  }
  48081.  if (lt_foo != "") { lt_freq[lt_foo]++; }
  48082.  if (lt_freq[lt_foo] == 1) { print lt_foo; }
  48083. }'`
  48084.   # AWK program above erroneously prepends '/' to C:/dos/paths
  48085.   # for these hosts.
  48086.   case $host_os in
  48087.     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  48088.       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  48089.   esac
  48090.   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  48091. else
  48092.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  48093. fi
  48094. library_names_spec=
  48095. libname_spec='lib$name'
  48096. soname_spec=
  48097. shrext_cmds=.so
  48098. postinstall_cmds=
  48099. postuninstall_cmds=
  48100. finish_cmds=
  48101. finish_eval=
  48102. shlibpath_var=
  48103. shlibpath_overrides_runpath=unknown
  48104. version_type=none
  48105. dynamic_linker="$host_os ld.so"
  48106. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  48107. need_lib_prefix=unknown
  48108. hardcode_into_libs=no
  48109.  
  48110. # when you set need_version to no, make sure it does not cause -set_version
  48111. # flags to be left without arguments
  48112. need_version=unknown
  48113.  
  48114.  
  48115.  
  48116. case $host_os in
  48117. aix3*)
  48118.   version_type=linux # correct to gnu/linux during the next big refactor
  48119.   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  48120.   shlibpath_var=LIBPATH
  48121.  
  48122.   # AIX 3 has no versioning support, so we append a major version to the name.
  48123.   soname_spec='$libname$release$shared_ext$major'
  48124.   ;;
  48125.  
  48126. aix[4-9]*)
  48127.   version_type=linux # correct to gnu/linux during the next big refactor
  48128.   need_lib_prefix=no
  48129.   need_version=no
  48130.   hardcode_into_libs=yes
  48131.   if test ia64 = "$host_cpu"; then
  48132.     # AIX 5 supports IA64
  48133.     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  48134.     shlibpath_var=LD_LIBRARY_PATH
  48135.   else
  48136.     # With GCC up to 2.95.x, collect2 would create an import file
  48137.     # for dependence libraries.  The import file would start with
  48138.     # the line '#! .'.  This would cause the generated library to
  48139.     # depend on '.', always an invalid library.  This was fixed in
  48140.     # development snapshots of GCC prior to 3.0.
  48141.     case $host_os in
  48142.       aix4 | aix4.[01] | aix4.[01].*)
  48143.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  48144.            echo ' yes '
  48145.            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  48146.         :
  48147.       else
  48148.         can_build_shared=no
  48149.       fi
  48150.       ;;
  48151.     esac
  48152.     # Using Import Files as archive members, it is possible to support
  48153.     # filename-based versioning of shared library archives on AIX. While
  48154.     # this would work for both with and without runtime linking, it will
  48155.     # prevent static linking of such archives. So we do filename-based
  48156.     # shared library versioning with .so extension only, which is used
  48157.     # when both runtime linking and shared linking is enabled.
  48158.     # Unfortunately, runtime linking may impact performance, so we do
  48159.     # not want this to be the default eventually. Also, we use the
  48160.     # versioned .so libs for executables only if there is the -brtl
  48161.     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  48162.     # To allow for filename-based versioning support, we need to create
  48163.     # libNAME.so.V as an archive file, containing:
  48164.     # *) an Import File, referring to the versioned filename of the
  48165.     #    archive as well as the shared archive member, telling the
  48166.     #    bitwidth (32 or 64) of that shared object, and providing the
  48167.     #    list of exported symbols of that shared object, eventually
  48168.     #    decorated with the 'weak' keyword
  48169.     # *) the shared object with the F_LOADONLY flag set, to really avoid
  48170.     #    it being seen by the linker.
  48171.     # At run time we better use the real file rather than another symlink,
  48172.     # but for link time we create the symlink libNAME.so -> libNAME.so.V
  48173.  
  48174.     case $with_aix_soname,$aix_use_runtimelinking in
  48175.     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  48176.     # soname into executable. Probably we can add versioning support to
  48177.     # collect2, so additional links can be useful in future.
  48178.     aix,yes) # traditional libtool
  48179.       dynamic_linker='AIX unversionable lib.so'
  48180.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  48181.       # instead of lib<name>.a to let people know that these are not
  48182.       # typical AIX shared libraries.
  48183.       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48184.       ;;
  48185.     aix,no) # traditional AIX only
  48186.       dynamic_linker='AIX lib.a(lib.so.V)'
  48187.       # We preserve .a as extension for shared libraries through AIX4.2
  48188.       # and later when we are not doing run time linking.
  48189.       library_names_spec='$libname$release.a $libname.a'
  48190.       soname_spec='$libname$release$shared_ext$major'
  48191.       ;;
  48192.     svr4,*) # full svr4 only
  48193.       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  48194.       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  48195.       # We do not specify a path in Import Files, so LIBPATH fires.
  48196.       shlibpath_overrides_runpath=yes
  48197.       ;;
  48198.     *,yes) # both, prefer svr4
  48199.       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  48200.       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  48201.       # unpreferred sharedlib libNAME.a needs extra handling
  48202.       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  48203.       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  48204.       # We do not specify a path in Import Files, so LIBPATH fires.
  48205.       shlibpath_overrides_runpath=yes
  48206.       ;;
  48207.     *,no) # both, prefer aix
  48208.       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  48209.       library_names_spec='$libname$release.a $libname.a'
  48210.       soname_spec='$libname$release$shared_ext$major'
  48211.       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  48212.       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  48213.       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  48214.       ;;
  48215.     esac
  48216.     shlibpath_var=LIBPATH
  48217.   fi
  48218.   ;;
  48219.  
  48220. amigaos*)
  48221.   case $host_cpu in
  48222.   powerpc)
  48223.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  48224.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  48225.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48226.     ;;
  48227.   m68k)
  48228.     library_names_spec='$libname.ixlibrary $libname.a'
  48229.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  48230.     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  48231.     ;;
  48232.   esac
  48233.   ;;
  48234.  
  48235. beos*)
  48236.   library_names_spec='$libname$shared_ext'
  48237.   dynamic_linker="$host_os ld.so"
  48238.   shlibpath_var=LIBRARY_PATH
  48239.   ;;
  48240.  
  48241. bsdi[45]*)
  48242.   version_type=linux # correct to gnu/linux during the next big refactor
  48243.   need_version=no
  48244.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48245.   soname_spec='$libname$release$shared_ext$major'
  48246.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  48247.   shlibpath_var=LD_LIBRARY_PATH
  48248.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  48249.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  48250.   # the default ld.so.conf also contains /usr/contrib/lib and
  48251.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  48252.   # libtool to hard-code these into programs
  48253.   ;;
  48254.  
  48255. cygwin* | mingw* | pw32* | cegcc*)
  48256.   version_type=windows
  48257.   shrext_cmds=.dll
  48258.   need_version=no
  48259.   need_lib_prefix=no
  48260.  
  48261.   case $GCC,$cc_basename in
  48262.   yes,*)
  48263.     # gcc
  48264.     library_names_spec='$libname.dll.a'
  48265.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  48266.     postinstall_cmds='base_file=`basename \$file`~
  48267.      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  48268.      dldir=$destdir/`dirname \$dlpath`~
  48269.      test -d \$dldir || mkdir -p \$dldir~
  48270.      $install_prog $dir/$dlname \$dldir/$dlname~
  48271.      chmod a+x \$dldir/$dlname~
  48272.      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  48273.        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  48274.      fi'
  48275.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  48276.      dlpath=$dir/\$dldll~
  48277.       $RM \$dlpath'
  48278.     shlibpath_overrides_runpath=yes
  48279.  
  48280.     case $host_os in
  48281.     cygwin*)
  48282.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  48283.       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  48284.  
  48285.       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  48286.       ;;
  48287.     mingw* | cegcc*)
  48288.       # MinGW DLLs use traditional 'lib' prefix
  48289.       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  48290.       ;;
  48291.     pw32*)
  48292.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  48293.       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  48294.       ;;
  48295.     esac
  48296.     dynamic_linker='Win32 ld.exe'
  48297.     ;;
  48298.  
  48299.   *,cl*)
  48300.     # Native MSVC
  48301.     libname_spec='$name'
  48302.     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  48303.     library_names_spec='$libname.dll.lib'
  48304.  
  48305.     case $build_os in
  48306.     mingw*)
  48307.       sys_lib_search_path_spec=
  48308.       lt_save_ifs=$IFS
  48309.       IFS=';'
  48310.       for lt_path in $LIB
  48311.       do
  48312.         IFS=$lt_save_ifs
  48313.         # Let DOS variable expansion print the short 8.3 style file name.
  48314.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  48315.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  48316.       done
  48317.       IFS=$lt_save_ifs
  48318.       # Convert to MSYS style.
  48319.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  48320.       ;;
  48321.     cygwin*)
  48322.       # Convert to unix form, then to dos form, then back to unix form
  48323.       # but this time dos style (no spaces!) so that the unix form looks
  48324.       # like /cygdrive/c/PROGRA~1:/cygdr...
  48325.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  48326.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  48327.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  48328.       ;;
  48329.     *)
  48330.       sys_lib_search_path_spec=$LIB
  48331.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  48332.         # It is most probably a Windows format PATH.
  48333.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  48334.       else
  48335.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  48336.       fi
  48337.       # FIXME: find the short name or the path components, as spaces are
  48338.       # common. (e.g. "Program Files" -> "PROGRA~1")
  48339.       ;;
  48340.     esac
  48341.  
  48342.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  48343.     postinstall_cmds='base_file=`basename \$file`~
  48344.      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  48345.      dldir=$destdir/`dirname \$dlpath`~
  48346.      test -d \$dldir || mkdir -p \$dldir~
  48347.      $install_prog $dir/$dlname \$dldir/$dlname'
  48348.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  48349.      dlpath=$dir/\$dldll~
  48350.       $RM \$dlpath'
  48351.     shlibpath_overrides_runpath=yes
  48352.     dynamic_linker='Win32 link.exe'
  48353.     ;;
  48354.  
  48355.   *)
  48356.     # Assume MSVC wrapper
  48357.     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  48358.     dynamic_linker='Win32 ld.exe'
  48359.     ;;
  48360.   esac
  48361.   # FIXME: first we should search . and the directory the executable is in
  48362.   shlibpath_var=PATH
  48363.   ;;
  48364.  
  48365. darwin* | rhapsody*)
  48366.   dynamic_linker="$host_os dyld"
  48367.   version_type=darwin
  48368.   need_lib_prefix=no
  48369.   need_version=no
  48370.   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  48371.   soname_spec='$libname$release$major$shared_ext'
  48372.   shlibpath_overrides_runpath=yes
  48373.   shlibpath_var=DYLD_LIBRARY_PATH
  48374.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  48375.  
  48376.   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  48377.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  48378.   ;;
  48379.  
  48380. dgux*)
  48381.   version_type=linux # correct to gnu/linux during the next big refactor
  48382.   need_lib_prefix=no
  48383.   need_version=no
  48384.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48385.   soname_spec='$libname$release$shared_ext$major'
  48386.   shlibpath_var=LD_LIBRARY_PATH
  48387.   ;;
  48388.  
  48389. freebsd* | dragonfly*)
  48390.   # DragonFly does not have aout.  When/if they implement a new
  48391.   # versioning mechanism, adjust this.
  48392.   if test -x /usr/bin/objformat; then
  48393.     objformat=`/usr/bin/objformat`
  48394.   else
  48395.     case $host_os in
  48396.     freebsd[23].*) objformat=aout ;;
  48397.     *) objformat=elf ;;
  48398.     esac
  48399.   fi
  48400.   version_type=freebsd-$objformat
  48401.   case $version_type in
  48402.     freebsd-elf*)
  48403.       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48404.       soname_spec='$libname$release$shared_ext$major'
  48405.       need_version=no
  48406.       need_lib_prefix=no
  48407.       ;;
  48408.     freebsd-*)
  48409.       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  48410.       need_version=yes
  48411.       ;;
  48412.   esac
  48413.   shlibpath_var=LD_LIBRARY_PATH
  48414.   case $host_os in
  48415.   freebsd2.*)
  48416.     shlibpath_overrides_runpath=yes
  48417.     ;;
  48418.   freebsd3.[01]* | freebsdelf3.[01]*)
  48419.     shlibpath_overrides_runpath=yes
  48420.     hardcode_into_libs=yes
  48421.     ;;
  48422.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  48423.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  48424.     shlibpath_overrides_runpath=no
  48425.     hardcode_into_libs=yes
  48426.     ;;
  48427.   *) # from 4.6 on, and DragonFly
  48428.     shlibpath_overrides_runpath=yes
  48429.     hardcode_into_libs=yes
  48430.     ;;
  48431.   esac
  48432.   ;;
  48433.  
  48434. haiku*)
  48435.   version_type=linux # correct to gnu/linux during the next big refactor
  48436.   need_lib_prefix=no
  48437.   need_version=no
  48438.   dynamic_linker="$host_os runtime_loader"
  48439.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48440.   soname_spec='$libname$release$shared_ext$major'
  48441.   shlibpath_var=LIBRARY_PATH
  48442.   shlibpath_overrides_runpath=no
  48443.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  48444.   hardcode_into_libs=yes
  48445.   ;;
  48446.  
  48447. hpux9* | hpux10* | hpux11*)
  48448.   # Give a soname corresponding to the major version so that dld.sl refuses to
  48449.   # link against other versions.
  48450.   version_type=sunos
  48451.   need_lib_prefix=no
  48452.   need_version=no
  48453.   case $host_cpu in
  48454.   ia64*)
  48455.     shrext_cmds='.so'
  48456.     hardcode_into_libs=yes
  48457.     dynamic_linker="$host_os dld.so"
  48458.     shlibpath_var=LD_LIBRARY_PATH
  48459.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  48460.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48461.     soname_spec='$libname$release$shared_ext$major'
  48462.     if test 32 = "$HPUX_IA64_MODE"; then
  48463.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  48464.       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  48465.     else
  48466.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  48467.       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  48468.     fi
  48469.     ;;
  48470.   hppa*64*)
  48471.     shrext_cmds='.sl'
  48472.     hardcode_into_libs=yes
  48473.     dynamic_linker="$host_os dld.sl"
  48474.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  48475.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  48476.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48477.     soname_spec='$libname$release$shared_ext$major'
  48478.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  48479.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  48480.     ;;
  48481.   *)
  48482.     shrext_cmds='.sl'
  48483.     dynamic_linker="$host_os dld.sl"
  48484.     shlibpath_var=SHLIB_PATH
  48485.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  48486.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48487.     soname_spec='$libname$release$shared_ext$major'
  48488.     ;;
  48489.   esac
  48490.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  48491.   postinstall_cmds='chmod 555 $lib'
  48492.   # or fails outright, so override atomically:
  48493.   install_override_mode=555
  48494.   ;;
  48495.  
  48496. interix[3-9]*)
  48497.   version_type=linux # correct to gnu/linux during the next big refactor
  48498.   need_lib_prefix=no
  48499.   need_version=no
  48500.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48501.   soname_spec='$libname$release$shared_ext$major'
  48502.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  48503.   shlibpath_var=LD_LIBRARY_PATH
  48504.   shlibpath_overrides_runpath=no
  48505.   hardcode_into_libs=yes
  48506.   ;;
  48507.  
  48508. irix5* | irix6* | nonstopux*)
  48509.   case $host_os in
  48510.     nonstopux*) version_type=nonstopux ;;
  48511.     *)
  48512.         if test yes = "$lt_cv_prog_gnu_ld"; then
  48513.                 version_type=linux # correct to gnu/linux during the next big refactor
  48514.         else
  48515.                 version_type=irix
  48516.         fi ;;
  48517.   esac
  48518.   need_lib_prefix=no
  48519.   need_version=no
  48520.   soname_spec='$libname$release$shared_ext$major'
  48521.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  48522.   case $host_os in
  48523.   irix5* | nonstopux*)
  48524.     libsuff= shlibsuff=
  48525.     ;;
  48526.   *)
  48527.     case $LD in # libtool.m4 will add one of these switches to LD
  48528.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  48529.       libsuff= shlibsuff= libmagic=32-bit;;
  48530.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  48531.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  48532.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  48533.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  48534.     *) libsuff= shlibsuff= libmagic=never-match;;
  48535.     esac
  48536.     ;;
  48537.   esac
  48538.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  48539.   shlibpath_overrides_runpath=no
  48540.   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  48541.   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  48542.   hardcode_into_libs=yes
  48543.   ;;
  48544.  
  48545. # No shared lib support for Linux oldld, aout, or coff.
  48546. linux*oldld* | linux*aout* | linux*coff*)
  48547.   dynamic_linker=no
  48548.   ;;
  48549.  
  48550. linux*android*)
  48551.   version_type=none # Android doesn't support versioned libraries.
  48552.   need_lib_prefix=no
  48553.   need_version=no
  48554.   library_names_spec='$libname$release$shared_ext'
  48555.   soname_spec='$libname$release$shared_ext'
  48556.   finish_cmds=
  48557.   shlibpath_var=LD_LIBRARY_PATH
  48558.   shlibpath_overrides_runpath=yes
  48559.  
  48560.   # This implies no fast_install, which is unacceptable.
  48561.   # Some rework will be needed to allow for fast_install
  48562.   # before this can be enabled.
  48563.   hardcode_into_libs=yes
  48564.  
  48565.   dynamic_linker='Android linker'
  48566.   # Don't embed -rpath directories since the linker doesn't support them.
  48567.   hardcode_libdir_flag_spec='-L$libdir'
  48568.   ;;
  48569.  
  48570. # This must be glibc/ELF.
  48571. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  48572.   version_type=linux # correct to gnu/linux during the next big refactor
  48573.   need_lib_prefix=no
  48574.   need_version=no
  48575.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48576.   soname_spec='$libname$release$shared_ext$major'
  48577.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  48578.   shlibpath_var=LD_LIBRARY_PATH
  48579.   shlibpath_overrides_runpath=no
  48580.  
  48581.   # Some binutils ld are patched to set DT_RUNPATH
  48582.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  48583.   $as_echo_n "(cached) " >&6
  48584. else
  48585.   lt_cv_shlibpath_overrides_runpath=no
  48586.     save_LDFLAGS=$LDFLAGS
  48587.     save_libdir=$libdir
  48588.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  48589.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  48590.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48591. /* end confdefs.h.  */
  48592.  
  48593. int
  48594. main ()
  48595. {
  48596.  
  48597.   ;
  48598.   return 0;
  48599. }
  48600. _ACEOF
  48601. if ac_fn_c_try_link "$LINENO"; then :
  48602.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  48603.   lt_cv_shlibpath_overrides_runpath=yes
  48604. fi
  48605. fi
  48606. rm -f core conftest.err conftest.$ac_objext \
  48607.     conftest$ac_exeext conftest.$ac_ext
  48608.     LDFLAGS=$save_LDFLAGS
  48609.     libdir=$save_libdir
  48610.  
  48611. fi
  48612.  
  48613.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  48614.  
  48615.   # This implies no fast_install, which is unacceptable.
  48616.   # Some rework will be needed to allow for fast_install
  48617.   # before this can be enabled.
  48618.   hardcode_into_libs=yes
  48619.  
  48620.   # Ideally, we could use ldconfig to report *all* directores which are
  48621.   # searched for libraries, however this is still not possible.  Aside from not
  48622.   # being certain /sbin/ldconfig is available, command
  48623.   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  48624.   # even though it is searched at run-time.  Try to do the best guess by
  48625.   # appending ld.so.conf contents (and includes) to the search path.
  48626.   if test -f /etc/ld.so.conf; then
  48627.     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  48628.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  48629.   fi
  48630.  
  48631.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  48632.   # powerpc, because MkLinux only supported shared libraries with the
  48633.   # GNU dynamic linker.  Since this was broken with cross compilers,
  48634.   # most powerpc-linux boxes support dynamic linking these days and
  48635.   # people can always --disable-shared, the test was removed, and we
  48636.   # assume the GNU/Linux dynamic linker is in use.
  48637.   dynamic_linker='GNU/Linux ld.so'
  48638.   ;;
  48639.  
  48640. netbsdelf*-gnu)
  48641.   version_type=linux
  48642.   need_lib_prefix=no
  48643.   need_version=no
  48644.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  48645.   soname_spec='${libname}${release}${shared_ext}$major'
  48646.   shlibpath_var=LD_LIBRARY_PATH
  48647.   shlibpath_overrides_runpath=no
  48648.   hardcode_into_libs=yes
  48649.   dynamic_linker='NetBSD ld.elf_so'
  48650.   ;;
  48651.  
  48652. netbsd*)
  48653.   version_type=sunos
  48654.   need_lib_prefix=no
  48655.   need_version=no
  48656.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  48657.     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  48658.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  48659.     dynamic_linker='NetBSD (a.out) ld.so'
  48660.   else
  48661.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48662.     soname_spec='$libname$release$shared_ext$major'
  48663.     dynamic_linker='NetBSD ld.elf_so'
  48664.   fi
  48665.   shlibpath_var=LD_LIBRARY_PATH
  48666.   shlibpath_overrides_runpath=yes
  48667.   hardcode_into_libs=yes
  48668.   ;;
  48669.  
  48670. newsos6)
  48671.   version_type=linux # correct to gnu/linux during the next big refactor
  48672.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48673.   shlibpath_var=LD_LIBRARY_PATH
  48674.   shlibpath_overrides_runpath=yes
  48675.   ;;
  48676.  
  48677. *nto* | *qnx*)
  48678.   version_type=qnx
  48679.   need_lib_prefix=no
  48680.   need_version=no
  48681.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48682.   soname_spec='$libname$release$shared_ext$major'
  48683.   shlibpath_var=LD_LIBRARY_PATH
  48684.   shlibpath_overrides_runpath=no
  48685.   hardcode_into_libs=yes
  48686.   dynamic_linker='ldqnx.so'
  48687.   ;;
  48688.  
  48689. openbsd* | bitrig*)
  48690.   version_type=sunos
  48691.   sys_lib_dlsearch_path_spec=/usr/lib
  48692.   need_lib_prefix=no
  48693.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  48694.     need_version=no
  48695.   else
  48696.     need_version=yes
  48697.   fi
  48698.   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  48699.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  48700.   shlibpath_var=LD_LIBRARY_PATH
  48701.   shlibpath_overrides_runpath=yes
  48702.   ;;
  48703.  
  48704. os2*)
  48705.   libname_spec='$name'
  48706.   version_type=windows
  48707.   shrext_cmds=.dll
  48708.   need_version=no
  48709.   need_lib_prefix=no
  48710.   # OS/2 can only load a DLL with a base name of 8 characters or less.
  48711.   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  48712.    v=$($ECHO $release$versuffix | tr -d .-);
  48713.    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  48714.    $ECHO $n$v`$shared_ext'
  48715.   library_names_spec='${libname}_dll.$libext'
  48716.   dynamic_linker='OS/2 ld.exe'
  48717.   shlibpath_var=BEGINLIBPATH
  48718.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  48719.   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  48720.   postinstall_cmds='base_file=`basename \$file`~
  48721.    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  48722.    dldir=$destdir/`dirname \$dlpath`~
  48723.    test -d \$dldir || mkdir -p \$dldir~
  48724.    $install_prog $dir/$dlname \$dldir/$dlname~
  48725.    chmod a+x \$dldir/$dlname~
  48726.    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  48727.      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  48728.    fi'
  48729.   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  48730.    dlpath=$dir/\$dldll~
  48731.    $RM \$dlpath'
  48732.   ;;
  48733.  
  48734. osf3* | osf4* | osf5*)
  48735.   version_type=osf
  48736.   need_lib_prefix=no
  48737.   need_version=no
  48738.   soname_spec='$libname$release$shared_ext$major'
  48739.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48740.   shlibpath_var=LD_LIBRARY_PATH
  48741.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  48742.   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  48743.   ;;
  48744.  
  48745. rdos*)
  48746.   dynamic_linker=no
  48747.   ;;
  48748.  
  48749. solaris*)
  48750.   version_type=linux # correct to gnu/linux during the next big refactor
  48751.   need_lib_prefix=no
  48752.   need_version=no
  48753.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48754.   soname_spec='$libname$release$shared_ext$major'
  48755.   shlibpath_var=LD_LIBRARY_PATH
  48756.   shlibpath_overrides_runpath=yes
  48757.   hardcode_into_libs=yes
  48758.   # ldd complains unless libraries are executable
  48759.   postinstall_cmds='chmod +x $lib'
  48760.   ;;
  48761.  
  48762. sunos4*)
  48763.   version_type=sunos
  48764.   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  48765.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  48766.   shlibpath_var=LD_LIBRARY_PATH
  48767.   shlibpath_overrides_runpath=yes
  48768.   if test yes = "$with_gnu_ld"; then
  48769.     need_lib_prefix=no
  48770.   fi
  48771.   need_version=yes
  48772.   ;;
  48773.  
  48774. sysv4 | sysv4.3*)
  48775.   version_type=linux # correct to gnu/linux during the next big refactor
  48776.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48777.   soname_spec='$libname$release$shared_ext$major'
  48778.   shlibpath_var=LD_LIBRARY_PATH
  48779.   case $host_vendor in
  48780.     sni)
  48781.       shlibpath_overrides_runpath=no
  48782.       need_lib_prefix=no
  48783.       runpath_var=LD_RUN_PATH
  48784.       ;;
  48785.     siemens)
  48786.       need_lib_prefix=no
  48787.       ;;
  48788.     motorola)
  48789.       need_lib_prefix=no
  48790.       need_version=no
  48791.       shlibpath_overrides_runpath=no
  48792.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  48793.       ;;
  48794.   esac
  48795.   ;;
  48796.  
  48797. sysv4*MP*)
  48798.   if test -d /usr/nec; then
  48799.     version_type=linux # correct to gnu/linux during the next big refactor
  48800.     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  48801.     soname_spec='$libname$shared_ext.$major'
  48802.     shlibpath_var=LD_LIBRARY_PATH
  48803.   fi
  48804.   ;;
  48805.  
  48806. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  48807.   version_type=sco
  48808.   need_lib_prefix=no
  48809.   need_version=no
  48810.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  48811.   soname_spec='$libname$release$shared_ext$major'
  48812.   shlibpath_var=LD_LIBRARY_PATH
  48813.   shlibpath_overrides_runpath=yes
  48814.   hardcode_into_libs=yes
  48815.   if test yes = "$with_gnu_ld"; then
  48816.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  48817.   else
  48818.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  48819.     case $host_os in
  48820.       sco3.2v5*)
  48821.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  48822.         ;;
  48823.     esac
  48824.   fi
  48825.   sys_lib_dlsearch_path_spec='/usr/lib'
  48826.   ;;
  48827.  
  48828. tpf*)
  48829.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  48830.   version_type=linux # correct to gnu/linux during the next big refactor
  48831.   need_lib_prefix=no
  48832.   need_version=no
  48833.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48834.   shlibpath_var=LD_LIBRARY_PATH
  48835.   shlibpath_overrides_runpath=no
  48836.   hardcode_into_libs=yes
  48837.   ;;
  48838.  
  48839. uts4*)
  48840.   version_type=linux # correct to gnu/linux during the next big refactor
  48841.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  48842.   soname_spec='$libname$release$shared_ext$major'
  48843.   shlibpath_var=LD_LIBRARY_PATH
  48844.   ;;
  48845.  
  48846. *)
  48847.   dynamic_linker=no
  48848.   ;;
  48849. esac
  48850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  48851. $as_echo "$dynamic_linker" >&6; }
  48852. test no = "$dynamic_linker" && can_build_shared=no
  48853.  
  48854. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  48855. if test yes = "$GCC"; then
  48856.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  48857. fi
  48858.  
  48859. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  48860.   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  48861. fi
  48862.  
  48863. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  48864.   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  48865. fi
  48866.  
  48867. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  48868. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  48869.  
  48870. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  48871. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  48872.  
  48873. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  48874. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  48875.  
  48876.  
  48877.  
  48878.  
  48879.  
  48880.  
  48881.  
  48882.  
  48883.  
  48884.  
  48885.  
  48886.  
  48887.  
  48888.  
  48889.  
  48890.  
  48891.  
  48892.  
  48893.  
  48894.  
  48895.  
  48896.  
  48897.  
  48898.  
  48899.  
  48900.  
  48901.  
  48902.  
  48903.  
  48904.  
  48905.  
  48906.  
  48907.  
  48908.  
  48909.  
  48910.  
  48911.  
  48912.  
  48913.  
  48914.  
  48915.  
  48916.  
  48917.  
  48918.  
  48919.  
  48920.  
  48921.  
  48922.  
  48923.  
  48924.  
  48925.  
  48926.  
  48927.  
  48928.  
  48929.  
  48930.  
  48931.  
  48932.  
  48933.  
  48934.  
  48935.  
  48936.  
  48937.  
  48938.  
  48939.  
  48940.  
  48941.  
  48942.  
  48943.  
  48944.  
  48945.  
  48946.  
  48947.  
  48948.  
  48949.  
  48950.  
  48951.  
  48952.  
  48953.  
  48954.  
  48955.  
  48956.  
  48957.  
  48958.  
  48959.  
  48960.  
  48961.  
  48962.  
  48963.  
  48964.  
  48965.  
  48966.  
  48967.  
  48968.  
  48969.  
  48970.  
  48971.  
  48972.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  48973. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  48974. hardcode_action=
  48975. if test -n "$hardcode_libdir_flag_spec" ||
  48976.    test -n "$runpath_var" ||
  48977.    test yes = "$hardcode_automatic"; then
  48978.  
  48979.   # We can hardcode non-existent directories.
  48980.   if test no != "$hardcode_direct" &&
  48981.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  48982.      # have to relink, otherwise we might link with an installed library
  48983.      # when we should be linking with a yet-to-be-installed one
  48984.      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  48985.      test no != "$hardcode_minus_L"; then
  48986.     # Linking always hardcodes the temporary library directory.
  48987.     hardcode_action=relink
  48988.   else
  48989.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  48990.     hardcode_action=immediate
  48991.   fi
  48992. else
  48993.   # We cannot hardcode anything, or else we can only hardcode existing
  48994.   # directories.
  48995.   hardcode_action=unsupported
  48996. fi
  48997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  48998. $as_echo "$hardcode_action" >&6; }
  48999.  
  49000. if test relink = "$hardcode_action" ||
  49001.    test yes = "$inherit_rpath"; then
  49002.   # Fast installation is not supported
  49003.   enable_fast_install=no
  49004. elif test yes = "$shlibpath_overrides_runpath" ||
  49005.      test no = "$enable_shared"; then
  49006.   # Fast installation is not necessary
  49007.   enable_fast_install=needless
  49008. fi
  49009.  
  49010.  
  49011.  
  49012.  
  49013.  
  49014.  
  49015.   if test yes != "$enable_dlopen"; then
  49016.   enable_dlopen=unknown
  49017.   enable_dlopen_self=unknown
  49018.   enable_dlopen_self_static=unknown
  49019. else
  49020.   lt_cv_dlopen=no
  49021.   lt_cv_dlopen_libs=
  49022.  
  49023.   case $host_os in
  49024.   beos*)
  49025.     lt_cv_dlopen=load_add_on
  49026.     lt_cv_dlopen_libs=
  49027.     lt_cv_dlopen_self=yes
  49028.     ;;
  49029.  
  49030.   mingw* | pw32* | cegcc*)
  49031.     lt_cv_dlopen=LoadLibrary
  49032.     lt_cv_dlopen_libs=
  49033.     ;;
  49034.  
  49035.   cygwin*)
  49036.     lt_cv_dlopen=dlopen
  49037.     lt_cv_dlopen_libs=
  49038.     ;;
  49039.  
  49040.   darwin*)
  49041.     # if libdl is installed we need to link against it
  49042.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  49043. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  49044. if ${ac_cv_lib_dl_dlopen+:} false; then :
  49045.   $as_echo_n "(cached) " >&6
  49046. else
  49047.   ac_check_lib_save_LIBS=$LIBS
  49048. LIBS="-ldl  $LIBS"
  49049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49050. /* end confdefs.h.  */
  49051.  
  49052. /* Override any GCC internal prototype to avoid an error.
  49053.    Use char because int might match the return type of a GCC
  49054.    builtin and then its argument prototype would still apply.  */
  49055. #ifdef __cplusplus
  49056. extern "C"
  49057. #endif
  49058. char dlopen ();
  49059. int
  49060. main ()
  49061. {
  49062. return dlopen ();
  49063.   ;
  49064.   return 0;
  49065. }
  49066. _ACEOF
  49067. if ac_fn_c_try_link "$LINENO"; then :
  49068.   ac_cv_lib_dl_dlopen=yes
  49069. else
  49070.   ac_cv_lib_dl_dlopen=no
  49071. fi
  49072. rm -f core conftest.err conftest.$ac_objext \
  49073.     conftest$ac_exeext conftest.$ac_ext
  49074. LIBS=$ac_check_lib_save_LIBS
  49075. fi
  49076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  49077. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  49078. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  49079.   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  49080. else
  49081.  
  49082.     lt_cv_dlopen=dyld
  49083.     lt_cv_dlopen_libs=
  49084.     lt_cv_dlopen_self=yes
  49085.  
  49086. fi
  49087.  
  49088.     ;;
  49089.  
  49090.   tpf*)
  49091.     # Don't try to run any link tests for TPF.  We know it's impossible
  49092.     # because TPF is a cross-compiler, and we know how we open DSOs.
  49093.     lt_cv_dlopen=dlopen
  49094.     lt_cv_dlopen_libs=
  49095.     lt_cv_dlopen_self=no
  49096.     ;;
  49097.  
  49098.   *)
  49099.     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  49100. if test "x$ac_cv_func_shl_load" = xyes; then :
  49101.   lt_cv_dlopen=shl_load
  49102. else
  49103.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  49104. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  49105. if ${ac_cv_lib_dld_shl_load+:} false; then :
  49106.   $as_echo_n "(cached) " >&6
  49107. else
  49108.   ac_check_lib_save_LIBS=$LIBS
  49109. LIBS="-ldld  $LIBS"
  49110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49111. /* end confdefs.h.  */
  49112.  
  49113. /* Override any GCC internal prototype to avoid an error.
  49114.    Use char because int might match the return type of a GCC
  49115.    builtin and then its argument prototype would still apply.  */
  49116. #ifdef __cplusplus
  49117. extern "C"
  49118. #endif
  49119. char shl_load ();
  49120. int
  49121. main ()
  49122. {
  49123. return shl_load ();
  49124.   ;
  49125.   return 0;
  49126. }
  49127. _ACEOF
  49128. if ac_fn_c_try_link "$LINENO"; then :
  49129.   ac_cv_lib_dld_shl_load=yes
  49130. else
  49131.   ac_cv_lib_dld_shl_load=no
  49132. fi
  49133. rm -f core conftest.err conftest.$ac_objext \
  49134.     conftest$ac_exeext conftest.$ac_ext
  49135. LIBS=$ac_check_lib_save_LIBS
  49136. fi
  49137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  49138. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  49139. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  49140.   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  49141. else
  49142.   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  49143. if test "x$ac_cv_func_dlopen" = xyes; then :
  49144.   lt_cv_dlopen=dlopen
  49145. else
  49146.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  49147. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  49148. if ${ac_cv_lib_dl_dlopen+:} false; then :
  49149.   $as_echo_n "(cached) " >&6
  49150. else
  49151.   ac_check_lib_save_LIBS=$LIBS
  49152. LIBS="-ldl  $LIBS"
  49153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49154. /* end confdefs.h.  */
  49155.  
  49156. /* Override any GCC internal prototype to avoid an error.
  49157.    Use char because int might match the return type of a GCC
  49158.    builtin and then its argument prototype would still apply.  */
  49159. #ifdef __cplusplus
  49160. extern "C"
  49161. #endif
  49162. char dlopen ();
  49163. int
  49164. main ()
  49165. {
  49166. return dlopen ();
  49167.   ;
  49168.   return 0;
  49169. }
  49170. _ACEOF
  49171. if ac_fn_c_try_link "$LINENO"; then :
  49172.   ac_cv_lib_dl_dlopen=yes
  49173. else
  49174.   ac_cv_lib_dl_dlopen=no
  49175. fi
  49176. rm -f core conftest.err conftest.$ac_objext \
  49177.     conftest$ac_exeext conftest.$ac_ext
  49178. LIBS=$ac_check_lib_save_LIBS
  49179. fi
  49180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  49181. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  49182. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  49183.   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  49184. else
  49185.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  49186. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  49187. if ${ac_cv_lib_svld_dlopen+:} false; then :
  49188.   $as_echo_n "(cached) " >&6
  49189. else
  49190.   ac_check_lib_save_LIBS=$LIBS
  49191. LIBS="-lsvld  $LIBS"
  49192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49193. /* end confdefs.h.  */
  49194.  
  49195. /* Override any GCC internal prototype to avoid an error.
  49196.    Use char because int might match the return type of a GCC
  49197.    builtin and then its argument prototype would still apply.  */
  49198. #ifdef __cplusplus
  49199. extern "C"
  49200. #endif
  49201. char dlopen ();
  49202. int
  49203. main ()
  49204. {
  49205. return dlopen ();
  49206.   ;
  49207.   return 0;
  49208. }
  49209. _ACEOF
  49210. if ac_fn_c_try_link "$LINENO"; then :
  49211.   ac_cv_lib_svld_dlopen=yes
  49212. else
  49213.   ac_cv_lib_svld_dlopen=no
  49214. fi
  49215. rm -f core conftest.err conftest.$ac_objext \
  49216.     conftest$ac_exeext conftest.$ac_ext
  49217. LIBS=$ac_check_lib_save_LIBS
  49218. fi
  49219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  49220. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  49221. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  49222.   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  49223. else
  49224.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  49225. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  49226. if ${ac_cv_lib_dld_dld_link+:} false; then :
  49227.   $as_echo_n "(cached) " >&6
  49228. else
  49229.   ac_check_lib_save_LIBS=$LIBS
  49230. LIBS="-ldld  $LIBS"
  49231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49232. /* end confdefs.h.  */
  49233.  
  49234. /* Override any GCC internal prototype to avoid an error.
  49235.    Use char because int might match the return type of a GCC
  49236.    builtin and then its argument prototype would still apply.  */
  49237. #ifdef __cplusplus
  49238. extern "C"
  49239. #endif
  49240. char dld_link ();
  49241. int
  49242. main ()
  49243. {
  49244. return dld_link ();
  49245.   ;
  49246.   return 0;
  49247. }
  49248. _ACEOF
  49249. if ac_fn_c_try_link "$LINENO"; then :
  49250.   ac_cv_lib_dld_dld_link=yes
  49251. else
  49252.   ac_cv_lib_dld_dld_link=no
  49253. fi
  49254. rm -f core conftest.err conftest.$ac_objext \
  49255.     conftest$ac_exeext conftest.$ac_ext
  49256. LIBS=$ac_check_lib_save_LIBS
  49257. fi
  49258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  49259. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  49260. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  49261.   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  49262. fi
  49263.  
  49264.  
  49265. fi
  49266.  
  49267.  
  49268. fi
  49269.  
  49270.  
  49271. fi
  49272.  
  49273.  
  49274. fi
  49275.  
  49276.  
  49277. fi
  49278.  
  49279.     ;;
  49280.   esac
  49281.  
  49282.   if test no = "$lt_cv_dlopen"; then
  49283.     enable_dlopen=no
  49284.   else
  49285.     enable_dlopen=yes
  49286.   fi
  49287.  
  49288.   case $lt_cv_dlopen in
  49289.   dlopen)
  49290.     save_CPPFLAGS=$CPPFLAGS
  49291.     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  49292.  
  49293.     save_LDFLAGS=$LDFLAGS
  49294.     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  49295.  
  49296.     save_LIBS=$LIBS
  49297.     LIBS="$lt_cv_dlopen_libs $LIBS"
  49298.  
  49299.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  49300. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  49301. if ${lt_cv_dlopen_self+:} false; then :
  49302.   $as_echo_n "(cached) " >&6
  49303. else
  49304.           if test yes = "$cross_compiling"; then :
  49305.   lt_cv_dlopen_self=cross
  49306. else
  49307.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  49308.   lt_status=$lt_dlunknown
  49309.   cat > conftest.$ac_ext <<_LT_EOF
  49310. #line $LINENO "configure"
  49311. #include "confdefs.h"
  49312.  
  49313. #if HAVE_DLFCN_H
  49314. #include <dlfcn.h>
  49315. #endif
  49316.  
  49317. #include <stdio.h>
  49318.  
  49319. #ifdef RTLD_GLOBAL
  49320. #  define LT_DLGLOBAL           RTLD_GLOBAL
  49321. #else
  49322. #  ifdef DL_GLOBAL
  49323. #    define LT_DLGLOBAL         DL_GLOBAL
  49324. #  else
  49325. #    define LT_DLGLOBAL         0
  49326. #  endif
  49327. #endif
  49328.  
  49329. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  49330.    find out it does not work in some platform. */
  49331. #ifndef LT_DLLAZY_OR_NOW
  49332. #  ifdef RTLD_LAZY
  49333. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  49334. #  else
  49335. #    ifdef DL_LAZY
  49336. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  49337. #    else
  49338. #      ifdef RTLD_NOW
  49339. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  49340. #      else
  49341. #        ifdef DL_NOW
  49342. #          define LT_DLLAZY_OR_NOW      DL_NOW
  49343. #        else
  49344. #          define LT_DLLAZY_OR_NOW      0
  49345. #        endif
  49346. #      endif
  49347. #    endif
  49348. #  endif
  49349. #endif
  49350.  
  49351. /* When -fvisibility=hidden is used, assume the code has been annotated
  49352.    correspondingly for the symbols needed.  */
  49353. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  49354. int fnord () __attribute__((visibility("default")));
  49355. #endif
  49356.  
  49357. int fnord () { return 42; }
  49358. int main ()
  49359. {
  49360.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  49361.   int status = $lt_dlunknown;
  49362.  
  49363.   if (self)
  49364.     {
  49365.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  49366.       else
  49367.         {
  49368.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  49369.           else puts (dlerror ());
  49370.         }
  49371.       /* dlclose (self); */
  49372.     }
  49373.   else
  49374.     puts (dlerror ());
  49375.  
  49376.   return status;
  49377. }
  49378. _LT_EOF
  49379.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  49380.   (eval $ac_link) 2>&5
  49381.   ac_status=$?
  49382.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  49383.   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  49384.     (./conftest; exit; ) >&5 2>/dev/null
  49385.     lt_status=$?
  49386.     case x$lt_status in
  49387.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  49388.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  49389.       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  49390.     esac
  49391.   else :
  49392.     # compilation failed
  49393.     lt_cv_dlopen_self=no
  49394.   fi
  49395. fi
  49396. rm -fr conftest*
  49397.  
  49398.  
  49399. fi
  49400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  49401. $as_echo "$lt_cv_dlopen_self" >&6; }
  49402.  
  49403.     if test yes = "$lt_cv_dlopen_self"; then
  49404.       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  49405.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  49406. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  49407. if ${lt_cv_dlopen_self_static+:} false; then :
  49408.   $as_echo_n "(cached) " >&6
  49409. else
  49410.           if test yes = "$cross_compiling"; then :
  49411.   lt_cv_dlopen_self_static=cross
  49412. else
  49413.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  49414.   lt_status=$lt_dlunknown
  49415.   cat > conftest.$ac_ext <<_LT_EOF
  49416. #line $LINENO "configure"
  49417. #include "confdefs.h"
  49418.  
  49419. #if HAVE_DLFCN_H
  49420. #include <dlfcn.h>
  49421. #endif
  49422.  
  49423. #include <stdio.h>
  49424.  
  49425. #ifdef RTLD_GLOBAL
  49426. #  define LT_DLGLOBAL           RTLD_GLOBAL
  49427. #else
  49428. #  ifdef DL_GLOBAL
  49429. #    define LT_DLGLOBAL         DL_GLOBAL
  49430. #  else
  49431. #    define LT_DLGLOBAL         0
  49432. #  endif
  49433. #endif
  49434.  
  49435. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  49436.    find out it does not work in some platform. */
  49437. #ifndef LT_DLLAZY_OR_NOW
  49438. #  ifdef RTLD_LAZY
  49439. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  49440. #  else
  49441. #    ifdef DL_LAZY
  49442. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  49443. #    else
  49444. #      ifdef RTLD_NOW
  49445. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  49446. #      else
  49447. #        ifdef DL_NOW
  49448. #          define LT_DLLAZY_OR_NOW      DL_NOW
  49449. #        else
  49450. #          define LT_DLLAZY_OR_NOW      0
  49451. #        endif
  49452. #      endif
  49453. #    endif
  49454. #  endif
  49455. #endif
  49456.  
  49457. /* When -fvisibility=hidden is used, assume the code has been annotated
  49458.    correspondingly for the symbols needed.  */
  49459. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  49460. int fnord () __attribute__((visibility("default")));
  49461. #endif
  49462.  
  49463. int fnord () { return 42; }
  49464. int main ()
  49465. {
  49466.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  49467.   int status = $lt_dlunknown;
  49468.  
  49469.   if (self)
  49470.     {
  49471.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  49472.       else
  49473.         {
  49474.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  49475.           else puts (dlerror ());
  49476.         }
  49477.       /* dlclose (self); */
  49478.     }
  49479.   else
  49480.     puts (dlerror ());
  49481.  
  49482.   return status;
  49483. }
  49484. _LT_EOF
  49485.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  49486.   (eval $ac_link) 2>&5
  49487.   ac_status=$?
  49488.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  49489.   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  49490.     (./conftest; exit; ) >&5 2>/dev/null
  49491.     lt_status=$?
  49492.     case x$lt_status in
  49493.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  49494.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  49495.       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  49496.     esac
  49497.   else :
  49498.     # compilation failed
  49499.     lt_cv_dlopen_self_static=no
  49500.   fi
  49501. fi
  49502. rm -fr conftest*
  49503.  
  49504.  
  49505. fi
  49506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  49507. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  49508.     fi
  49509.  
  49510.     CPPFLAGS=$save_CPPFLAGS
  49511.     LDFLAGS=$save_LDFLAGS
  49512.     LIBS=$save_LIBS
  49513.     ;;
  49514.   esac
  49515.  
  49516.   case $lt_cv_dlopen_self in
  49517.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  49518.   *) enable_dlopen_self=unknown ;;
  49519.   esac
  49520.  
  49521.   case $lt_cv_dlopen_self_static in
  49522.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  49523.   *) enable_dlopen_self_static=unknown ;;
  49524.   esac
  49525. fi
  49526.  
  49527.  
  49528.  
  49529.  
  49530.  
  49531.  
  49532.  
  49533.  
  49534.  
  49535.  
  49536.  
  49537.  
  49538.  
  49539.  
  49540.  
  49541.  
  49542.  
  49543. striplib=
  49544. old_striplib=
  49545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  49546. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  49547. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  49548.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  49549.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  49550.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  49551. $as_echo "yes" >&6; }
  49552. else
  49553. # FIXME - insert some real tests, host_os isn't really good enough
  49554.   case $host_os in
  49555.   darwin*)
  49556.     if test -n "$STRIP"; then
  49557.       striplib="$STRIP -x"
  49558.       old_striplib="$STRIP -S"
  49559.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  49560. $as_echo "yes" >&6; }
  49561.     else
  49562.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  49563. $as_echo "no" >&6; }
  49564.     fi
  49565.     ;;
  49566.   *)
  49567.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  49568. $as_echo "no" >&6; }
  49569.     ;;
  49570.   esac
  49571. fi
  49572.  
  49573.  
  49574.  
  49575.  
  49576.  
  49577.  
  49578.  
  49579.  
  49580.  
  49581.  
  49582.  
  49583.  
  49584.   # Report what library types will actually be built
  49585.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  49586. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  49587.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  49588. $as_echo "$can_build_shared" >&6; }
  49589.  
  49590.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  49591. $as_echo_n "checking whether to build shared libraries... " >&6; }
  49592.   test no = "$can_build_shared" && enable_shared=no
  49593.  
  49594.   # On AIX, shared libraries and static libraries use the same namespace, and
  49595.   # are all built from PIC.
  49596.   case $host_os in
  49597.   aix3*)
  49598.     test yes = "$enable_shared" && enable_static=no
  49599.     if test -n "$RANLIB"; then
  49600.       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  49601.       postinstall_cmds='$RANLIB $lib'
  49602.     fi
  49603.     ;;
  49604.  
  49605.   aix[4-9]*)
  49606.     if test ia64 != "$host_cpu"; then
  49607.       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  49608.       yes,aix,yes) ;;                   # shared object as lib.so file only
  49609.       yes,svr4,*) ;;                    # shared object as lib.so archive member only
  49610.       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
  49611.       esac
  49612.     fi
  49613.     ;;
  49614.   esac
  49615.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  49616. $as_echo "$enable_shared" >&6; }
  49617.  
  49618.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  49619. $as_echo_n "checking whether to build static libraries... " >&6; }
  49620.   # Make sure either enable_shared or enable_static is yes.
  49621.   test yes = "$enable_shared" || enable_static=yes
  49622.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  49623. $as_echo "$enable_static" >&6; }
  49624.  
  49625.  
  49626.  
  49627.  
  49628. fi
  49629. ac_ext=c
  49630. ac_cpp='$CPP $CPPFLAGS'
  49631. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49632. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49633. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49634.  
  49635. CC=$lt_save_CC
  49636.  
  49637.       if test -n "$CXX" && ( test no != "$CXX" &&
  49638.     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  49639.     (test g++ != "$CXX"))); then
  49640.   ac_ext=cpp
  49641. ac_cpp='$CXXCPP $CPPFLAGS'
  49642. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49643. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49644. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  49646. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  49647. if test -z "$CXXCPP"; then
  49648.   if ${ac_cv_prog_CXXCPP+:} false; then :
  49649.   $as_echo_n "(cached) " >&6
  49650. else
  49651.       # Double quotes because CXXCPP needs to be expanded
  49652.     for CXXCPP in "$CXX -E" "/lib/cpp"
  49653.     do
  49654.       ac_preproc_ok=false
  49655. for ac_cxx_preproc_warn_flag in '' yes
  49656. do
  49657.   # Use a header file that comes with gcc, so configuring glibc
  49658.   # with a fresh cross-compiler works.
  49659.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  49660.   # <limits.h> exists even on freestanding compilers.
  49661.   # On the NeXT, cc -E runs the code through the compiler's parser,
  49662.   # not just through cpp. "Syntax error" is here to catch this case.
  49663.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49664. /* end confdefs.h.  */
  49665. #ifdef __STDC__
  49666. # include <limits.h>
  49667. #else
  49668. # include <assert.h>
  49669. #endif
  49670.                      Syntax error
  49671. _ACEOF
  49672. if ac_fn_cxx_try_cpp "$LINENO"; then :
  49673.  
  49674. else
  49675.   # Broken: fails on valid input.
  49676. continue
  49677. fi
  49678. rm -f conftest.err conftest.i conftest.$ac_ext
  49679.  
  49680.   # OK, works on sane cases.  Now check whether nonexistent headers
  49681.   # can be detected and how.
  49682.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49683. /* end confdefs.h.  */
  49684. #include <ac_nonexistent.h>
  49685. _ACEOF
  49686. if ac_fn_cxx_try_cpp "$LINENO"; then :
  49687.   # Broken: success on invalid input.
  49688. continue
  49689. else
  49690.   # Passes both tests.
  49691. ac_preproc_ok=:
  49692. break
  49693. fi
  49694. rm -f conftest.err conftest.i conftest.$ac_ext
  49695.  
  49696. done
  49697. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  49698. rm -f conftest.i conftest.err conftest.$ac_ext
  49699. if $ac_preproc_ok; then :
  49700.   break
  49701. fi
  49702.  
  49703.     done
  49704.     ac_cv_prog_CXXCPP=$CXXCPP
  49705.  
  49706. fi
  49707.   CXXCPP=$ac_cv_prog_CXXCPP
  49708. else
  49709.   ac_cv_prog_CXXCPP=$CXXCPP
  49710. fi
  49711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  49712. $as_echo "$CXXCPP" >&6; }
  49713. ac_preproc_ok=false
  49714. for ac_cxx_preproc_warn_flag in '' yes
  49715. do
  49716.   # Use a header file that comes with gcc, so configuring glibc
  49717.   # with a fresh cross-compiler works.
  49718.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  49719.   # <limits.h> exists even on freestanding compilers.
  49720.   # On the NeXT, cc -E runs the code through the compiler's parser,
  49721.   # not just through cpp. "Syntax error" is here to catch this case.
  49722.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49723. /* end confdefs.h.  */
  49724. #ifdef __STDC__
  49725. # include <limits.h>
  49726. #else
  49727. # include <assert.h>
  49728. #endif
  49729.                      Syntax error
  49730. _ACEOF
  49731. if ac_fn_cxx_try_cpp "$LINENO"; then :
  49732.  
  49733. else
  49734.   # Broken: fails on valid input.
  49735. continue
  49736. fi
  49737. rm -f conftest.err conftest.i conftest.$ac_ext
  49738.  
  49739.   # OK, works on sane cases.  Now check whether nonexistent headers
  49740.   # can be detected and how.
  49741.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49742. /* end confdefs.h.  */
  49743. #include <ac_nonexistent.h>
  49744. _ACEOF
  49745. if ac_fn_cxx_try_cpp "$LINENO"; then :
  49746.   # Broken: success on invalid input.
  49747. continue
  49748. else
  49749.   # Passes both tests.
  49750. ac_preproc_ok=:
  49751. break
  49752. fi
  49753. rm -f conftest.err conftest.i conftest.$ac_ext
  49754.  
  49755. done
  49756. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  49757. rm -f conftest.i conftest.err conftest.$ac_ext
  49758. if $ac_preproc_ok; then :
  49759.  
  49760. else
  49761.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  49762. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  49763. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  49764. See \`config.log' for more details" "$LINENO" 5; }
  49765. fi
  49766.  
  49767. ac_ext=c
  49768. ac_cpp='$CPP $CPPFLAGS'
  49769. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49770. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49771. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49772.  
  49773. else
  49774.  _lt_caught_CXX_error=yes
  49775. fi
  49776.  
  49777. ac_ext=cpp
  49778. ac_cpp='$CXXCPP $CPPFLAGS'
  49779. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49780. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49781. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49782.  
  49783. archive_cmds_need_lc_CXX=no
  49784. allow_undefined_flag_CXX=
  49785. always_export_symbols_CXX=no
  49786. archive_expsym_cmds_CXX=
  49787. compiler_needs_object_CXX=no
  49788. export_dynamic_flag_spec_CXX=
  49789. hardcode_direct_CXX=no
  49790. hardcode_direct_absolute_CXX=no
  49791. hardcode_libdir_flag_spec_CXX=
  49792. hardcode_libdir_separator_CXX=
  49793. hardcode_minus_L_CXX=no
  49794. hardcode_shlibpath_var_CXX=unsupported
  49795. hardcode_automatic_CXX=no
  49796. inherit_rpath_CXX=no
  49797. module_cmds_CXX=
  49798. module_expsym_cmds_CXX=
  49799. link_all_deplibs_CXX=unknown
  49800. old_archive_cmds_CXX=$old_archive_cmds
  49801. reload_flag_CXX=$reload_flag
  49802. reload_cmds_CXX=$reload_cmds
  49803. no_undefined_flag_CXX=
  49804. whole_archive_flag_spec_CXX=
  49805. enable_shared_with_static_runtimes_CXX=no
  49806.  
  49807. # Source file extension for C++ test sources.
  49808. ac_ext=cpp
  49809.  
  49810. # Object file extension for compiled C++ test sources.
  49811. objext=o
  49812. objext_CXX=$objext
  49813.  
  49814. # No sense in running all these tests if we already determined that
  49815. # the CXX compiler isn't working.  Some variables (like enable_shared)
  49816. # are currently assumed to apply to all compilers on this platform,
  49817. # and will be corrupted by setting them based on a non-working compiler.
  49818. if test yes != "$_lt_caught_CXX_error"; then
  49819.  # Code to be used in simple compile tests
  49820.  lt_simple_compile_test_code="int some_variable = 0;"
  49821.  
  49822.  # Code to be used in simple link tests
  49823.  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  49824.  
  49825.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  49826.  
  49827.  
  49828.  
  49829.  
  49830.  
  49831.  
  49832. # If no C compiler was specified, use CC.
  49833. LTCC=${LTCC-"$CC"}
  49834.  
  49835. # If no C compiler flags were specified, use CFLAGS.
  49836. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  49837.  
  49838. # Allow CC to be a program name with arguments.
  49839. compiler=$CC
  49840.  
  49841.  
  49842.  # save warnings/boilerplate of simple test code
  49843.  ac_outfile=conftest.$ac_objext
  49844. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  49845. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  49846. _lt_compiler_boilerplate=`cat conftest.err`
  49847. $RM conftest*
  49848.  
  49849.  ac_outfile=conftest.$ac_objext
  49850. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  49851. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  49852. _lt_linker_boilerplate=`cat conftest.err`
  49853. $RM -r conftest*
  49854.  
  49855.  
  49856.  # Allow CC to be a program name with arguments.
  49857.  lt_save_CC=$CC
  49858.  lt_save_CFLAGS=$CFLAGS
  49859.  lt_save_LD=$LD
  49860.  lt_save_GCC=$GCC
  49861.  GCC=$GXX
  49862.  lt_save_with_gnu_ld=$with_gnu_ld
  49863.  lt_save_path_LD=$lt_cv_path_LD
  49864.  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  49865.    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  49866.  else
  49867.    $as_unset lt_cv_prog_gnu_ld
  49868.  fi
  49869.  if test -n "${lt_cv_path_LDCXX+set}"; then
  49870.    lt_cv_path_LD=$lt_cv_path_LDCXX
  49871.  else
  49872.    $as_unset lt_cv_path_LD
  49873.  fi
  49874.  test -z "${LDCXX+set}" || LD=$LDCXX
  49875.  CC=${CXX-"c++"}
  49876.  CFLAGS=$CXXFLAGS
  49877.  compiler=$CC
  49878.  compiler_CXX=$CC
  49879.  func_cc_basename $compiler
  49880. cc_basename=$func_cc_basename_result
  49881.  
  49882.  
  49883.  if test -n "$compiler"; then
  49884.    # We don't want -fno-exception when compiling C++ code, so set the
  49885.    # no_builtin_flag separately
  49886.    if test yes = "$GXX"; then
  49887.      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  49888.    else
  49889.      lt_prog_compiler_no_builtin_flag_CXX=
  49890.    fi
  49891.  
  49892.    if test yes = "$GXX"; then
  49893.      # Set up default GNU C++ configuration
  49894.  
  49895.  
  49896.  
  49897. # Check whether --with-gnu-ld was given.
  49898. if test "${with_gnu_ld+set}" = set; then :
  49899.  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  49900. else
  49901.  with_gnu_ld=no
  49902. fi
  49903.  
  49904. ac_prog=ld
  49905. if test yes = "$GCC"; then
  49906.  # Check if gcc -print-prog-name=ld gives a path.
  49907.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  49908. $as_echo_n "checking for ld used by $CC... " >&6; }
  49909.  case $host in
  49910.  *-*-mingw*)
  49911.    # gcc leaves a trailing carriage return, which upsets mingw
  49912.    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  49913.  *)
  49914.    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  49915.  esac
  49916.  case $ac_prog in
  49917.    # Accept absolute paths.
  49918.    [\\/]* | ?:[\\/]*)
  49919.      re_direlt='/[^/][^/]*/\.\./'
  49920.      # Canonicalize the pathname of ld
  49921.      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  49922.      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  49923.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  49924.      done
  49925.      test -z "$LD" && LD=$ac_prog
  49926.      ;;
  49927.  "")
  49928.    # If it fails, then pretend we aren't using GCC.
  49929.    ac_prog=ld
  49930.    ;;
  49931.  *)
  49932.    # If it is relative, then search for the first ld in PATH.
  49933.    with_gnu_ld=unknown
  49934.    ;;
  49935.  esac
  49936. elif test yes = "$with_gnu_ld"; then
  49937.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  49938. $as_echo_n "checking for GNU ld... " >&6; }
  49939. else
  49940.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  49941. $as_echo_n "checking for non-GNU ld... " >&6; }
  49942. fi
  49943. if ${lt_cv_path_LD+:} false; then :
  49944.  $as_echo_n "(cached) " >&6
  49945. else
  49946.  if test -z "$LD"; then
  49947.  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  49948.  for ac_dir in $PATH; do
  49949.    IFS=$lt_save_ifs
  49950.    test -z "$ac_dir" && ac_dir=.
  49951.    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  49952.      lt_cv_path_LD=$ac_dir/$ac_prog
  49953.      # Check to see if the program is GNU ld.  I'd rather use --version,
  49954.      # but apparently some variants of GNU ld only accept -v.
  49955.      # Break only if it was the GNU/non-GNU ld that we prefer.
  49956.      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  49957.      *GNU* | *'with BFD'*)
  49958.         test no != "$with_gnu_ld" && break
  49959.         ;;
  49960.      *)
  49961.         test yes != "$with_gnu_ld" && break
  49962.         ;;
  49963.      esac
  49964.    fi
  49965.  done
  49966.  IFS=$lt_save_ifs
  49967. else
  49968.  lt_cv_path_LD=$LD # Let the user override the test with a path.
  49969. fi
  49970. fi
  49971.  
  49972. LD=$lt_cv_path_LD
  49973. if test -n "$LD"; then
  49974.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  49975. $as_echo "$LD" >&6; }
  49976. else
  49977.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  49978. $as_echo "no" >&6; }
  49979. fi
  49980. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  49981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  49982. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  49983. if ${lt_cv_prog_gnu_ld+:} false; then :
  49984.  $as_echo_n "(cached) " >&6
  49985. else
  49986.  # I'd rather use --version here, but apparently some GNU lds only accept -v.
  49987. case `$LD -v 2>&1 </dev/null` in
  49988. *GNU* | *'with BFD'*)
  49989.  lt_cv_prog_gnu_ld=yes
  49990.  ;;
  49991. *)
  49992.  lt_cv_prog_gnu_ld=no
  49993.  ;;
  49994. esac
  49995. fi
  49996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  49997. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  49998. with_gnu_ld=$lt_cv_prog_gnu_ld
  49999.  
  50000.  
  50001.  
  50002.  
  50003.  
  50004.  
  50005.  
  50006.      # Check if GNU C++ uses GNU ld as the underlying linker, since the
  50007.      # archiving commands below assume that GNU ld is being used.
  50008.      if test yes = "$with_gnu_ld"; then
  50009.        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  50010.        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  50011.  
  50012.        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  50013.        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  50014.  
  50015.        # If archive_cmds runs LD, not CC, wlarc should be empty
  50016.        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  50017.        #     investigate it a little bit more. (MM)
  50018.        wlarc='$wl'
  50019.  
  50020.        # ancient GNU ld didn't support --whole-archive et. al.
  50021.        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  50022.           $GREP 'no-whole-archive' > /dev/null; then
  50023.          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  50024.        else
  50025.          whole_archive_flag_spec_CXX=
  50026.        fi
  50027.      else
  50028.        with_gnu_ld=no
  50029.        wlarc=
  50030.  
  50031.        # A generic and very simple default shared library creation
  50032.        # command for GNU C++ for the case where it uses the native
  50033.        # linker, instead of GNU ld.  If possible, this setting should
  50034.        # overridden to take advantage of the native linker features on
  50035.        # the platform it is being used on.
  50036.        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  50037.      fi
  50038.  
  50039.      # Commands to make compiler produce verbose output that lists
  50040.      # what "hidden" libraries, object files and flags are used when
  50041.      # linking a shared library.
  50042.      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  50043.  
  50044.    else
  50045.      GXX=no
  50046.      with_gnu_ld=no
  50047.      wlarc=
  50048.    fi
  50049.  
  50050.    # PORTME: fill in a description of your system's C++ link characteristics
  50051.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  50052. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  50053.    ld_shlibs_CXX=yes
  50054.    case $host_os in
  50055.      aix3*)
  50056.        # FIXME: insert proper C++ library support
  50057.        ld_shlibs_CXX=no
  50058.        ;;
  50059.      aix[4-9]*)
  50060.        if test ia64 = "$host_cpu"; then
  50061.          # On IA64, the linker does run time linking by default, so we don't
  50062.          # have to do anything special.
  50063.          aix_use_runtimelinking=no
  50064.          exp_sym_flag='-Bexport'
  50065.          no_entry_flag=
  50066.        else
  50067.          aix_use_runtimelinking=no
  50068.  
  50069.          # Test if we are trying to use run time linking or normal
  50070.          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  50071.          # have runtime linking enabled, and use it for executables.
  50072.          # For shared libraries, we enable/disable runtime linking
  50073.          # depending on the kind of the shared library created -
  50074.          # when "with_aix_soname,aix_use_runtimelinking" is:
  50075.          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
  50076.          # "aix,yes"  lib.so          shared, rtl:yes, for executables
  50077.          #            lib.a           static archive
  50078.          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
  50079.          #            lib.a(lib.so.V) shared, rtl:no,  for executables
  50080.          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  50081.          #            lib.a(lib.so.V) shared, rtl:no
  50082.          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
  50083.          #            lib.a           static archive
  50084.          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  50085.             for ld_flag in $LDFLAGS; do
  50086.               case $ld_flag in
  50087.               *-brtl*)
  50088.                 aix_use_runtimelinking=yes
  50089.                 break
  50090.                 ;;
  50091.               esac
  50092.             done
  50093.             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  50094.               # With aix-soname=svr4, we create the lib.so.V shared archives only,
  50095.               # so we don't have lib.a shared libs to link our executables.
  50096.               # We have to force runtime linking in this case.
  50097.               aix_use_runtimelinking=yes
  50098.               LDFLAGS="$LDFLAGS -Wl,-brtl"
  50099.             fi
  50100.             ;;
  50101.          esac
  50102.  
  50103.          exp_sym_flag='-bexport'
  50104.          no_entry_flag='-bnoentry'
  50105.        fi
  50106.  
  50107.        # When large executables or shared objects are built, AIX ld can
  50108.        # have problems creating the table of contents.  If linking a library
  50109.        # or program results in "error TOC overflow" add -mminimal-toc to
  50110.        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  50111.        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  50112.  
  50113.        archive_cmds_CXX=''
  50114.        hardcode_direct_CXX=yes
  50115.        hardcode_direct_absolute_CXX=yes
  50116.        hardcode_libdir_separator_CXX=':'
  50117.        link_all_deplibs_CXX=yes
  50118.        file_list_spec_CXX='$wl-f,'
  50119.        case $with_aix_soname,$aix_use_runtimelinking in
  50120.         aix,*) ;;       # no import file
  50121.        svr4,* | *,yes) # use import file
  50122.          # The Import File defines what to hardcode.
  50123.          hardcode_direct_CXX=no
  50124.          hardcode_direct_absolute_CXX=no
  50125.          ;;
  50126.        esac
  50127.  
  50128.        if test yes = "$GXX"; then
  50129.          case $host_os in aix4.[012]|aix4.[012].*)
  50130.          # We only want to do this on AIX 4.2 and lower, the check
  50131.          # below for broken collect2 doesn't work under 4.3+
  50132.           collect2name=`$CC -print-prog-name=collect2`
  50133.           if test -f "$collect2name" &&
  50134.              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  50135.           then
  50136.             # We have reworked collect2
  50137.             :
  50138.           else
  50139.             # We have old collect2
  50140.             hardcode_direct_CXX=unsupported
  50141.             # It fails to find uninstalled libraries when the uninstalled
  50142.             # path is not listed in the libpath.  Setting hardcode_minus_L
  50143.             # to unsupported forces relinking
  50144.             hardcode_minus_L_CXX=yes
  50145.             hardcode_libdir_flag_spec_CXX='-L$libdir'
  50146.             hardcode_libdir_separator_CXX=
  50147.           fi
  50148.          esac
  50149.          shared_flag='-shared'
  50150.           if test yes = "$aix_use_runtimelinking"; then
  50151.             shared_flag=$shared_flag' $wl-G'
  50152.           fi
  50153.           # Need to ensure runtime linking is disabled for the traditional
  50154.           # shared library, or the linker may eventually find shared libraries
  50155.           # /with/ Import File - we do not want to mix them.
  50156.           shared_flag_aix='-shared'
  50157.           shared_flag_svr4='-shared $wl-G'
  50158.        else
  50159.          # not using gcc
  50160.          if test ia64 = "$host_cpu"; then
  50161.           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  50162.           # chokes on -Wl,-G. The following line is correct:
  50163.           shared_flag='-G'
  50164.          else
  50165.             if test yes = "$aix_use_runtimelinking"; then
  50166.               shared_flag='$wl-G'
  50167.             else
  50168.               shared_flag='$wl-bM:SRE'
  50169.             fi
  50170.             shared_flag_aix='$wl-bM:SRE'
  50171.             shared_flag_svr4='$wl-G'
  50172.          fi
  50173.        fi
  50174.  
  50175.        export_dynamic_flag_spec_CXX='$wl-bexpall'
  50176.        # It seems that -bexpall does not export symbols beginning with
  50177.        # underscore (_), so it is better to generate a list of symbols to
  50178.         # export.
  50179.        always_export_symbols_CXX=yes
  50180.         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  50181.          # Warning - without using the other runtime loading flags (-brtl),
  50182.          # -berok will link without error, but may produce a broken library.
  50183.          # The "-G" linker flag allows undefined symbols.
  50184.          no_undefined_flag_CXX='-bernotok'
  50185.          # Determine the default libpath from the value encoded in an empty
  50186.          # executable.
  50187.          if test set = "${lt_cv_aix_libpath+set}"; then
  50188.  aix_libpath=$lt_cv_aix_libpath
  50189. else
  50190.  if ${lt_cv_aix_libpath__CXX+:} false; then :
  50191.  $as_echo_n "(cached) " >&6
  50192. else
  50193.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50194. /* end confdefs.h.  */
  50195.  
  50196. int
  50197. main ()
  50198. {
  50199.  
  50200.  ;
  50201.  return 0;
  50202. }
  50203. _ACEOF
  50204. if ac_fn_cxx_try_link "$LINENO"; then :
  50205.  
  50206.  lt_aix_libpath_sed='
  50207.      /Import File Strings/,/^$/ {
  50208.           /^0/ {
  50209.               s/^0  *\([^ ]*\) *$/\1/
  50210.               p
  50211.           }
  50212.      }'
  50213.  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  50214.  # Check for a 64-bit object if we didn't find anything.
  50215.  if test -z "$lt_cv_aix_libpath__CXX"; then
  50216.    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  50217.  fi
  50218. fi
  50219. rm -f core conftest.err conftest.$ac_objext \
  50220.    conftest$ac_exeext conftest.$ac_ext
  50221.  if test -z "$lt_cv_aix_libpath__CXX"; then
  50222.    lt_cv_aix_libpath__CXX=/usr/lib:/lib
  50223.  fi
  50224.  
  50225. fi
  50226.  
  50227.  aix_libpath=$lt_cv_aix_libpath__CXX
  50228. fi
  50229.  
  50230.          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  50231.  
  50232.          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  50233.        else
  50234.          if test ia64 = "$host_cpu"; then
  50235.             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  50236.             allow_undefined_flag_CXX="-z nodefs"
  50237.             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  50238.          else
  50239.             # Determine the default libpath from the value encoded in an
  50240.             # empty executable.
  50241.             if test set = "${lt_cv_aix_libpath+set}"; then
  50242.  aix_libpath=$lt_cv_aix_libpath
  50243. else
  50244.  if ${lt_cv_aix_libpath__CXX+:} false; then :
  50245.  $as_echo_n "(cached) " >&6
  50246. else
  50247.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50248. /* end confdefs.h.  */
  50249.  
  50250. int
  50251. main ()
  50252. {
  50253.  
  50254.  ;
  50255.  return 0;
  50256. }
  50257. _ACEOF
  50258. if ac_fn_cxx_try_link "$LINENO"; then :
  50259.  
  50260.  lt_aix_libpath_sed='
  50261.      /Import File Strings/,/^$/ {
  50262.           /^0/ {
  50263.               s/^0  *\([^ ]*\) *$/\1/
  50264.               p
  50265.           }
  50266.      }'
  50267.  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  50268.  # Check for a 64-bit object if we didn't find anything.
  50269.  if test -z "$lt_cv_aix_libpath__CXX"; then
  50270.    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  50271.  fi
  50272. fi
  50273. rm -f core conftest.err conftest.$ac_objext \
  50274.    conftest$ac_exeext conftest.$ac_ext
  50275.  if test -z "$lt_cv_aix_libpath__CXX"; then
  50276.    lt_cv_aix_libpath__CXX=/usr/lib:/lib
  50277.  fi
  50278.  
  50279. fi
  50280.  
  50281.  aix_libpath=$lt_cv_aix_libpath__CXX
  50282. fi
  50283.  
  50284.             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  50285.             # Warning - without using the other run time loading flags,
  50286.             # -berok will link without error, but may produce a broken library.
  50287.             no_undefined_flag_CXX=' $wl-bernotok'
  50288.             allow_undefined_flag_CXX=' $wl-berok'
  50289.             if test yes = "$with_gnu_ld"; then
  50290.               # We only use this code for GNU lds that support --whole-archive.
  50291.               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  50292.             else
  50293.               # Exported symbols can be pulled into shared objects from archives
  50294.               whole_archive_flag_spec_CXX='$convenience'
  50295.             fi
  50296.             archive_cmds_need_lc_CXX=yes
  50297.             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  50298.             # -brtl affects multiple linker settings, -berok does not and is overridden later
  50299.             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  50300.             if test svr4 != "$with_aix_soname"; then
  50301.               # This is similar to how AIX traditionally builds its shared
  50302.               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  50303.               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  50304.             fi
  50305.             if test aix != "$with_aix_soname"; then
  50306.               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  50307.             else
  50308.               # used by -dlpreopen to get the symbols
  50309.               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
  50310.             fi
  50311.             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  50312.          fi
  50313.        fi
  50314.        ;;
  50315.  
  50316.      beos*)
  50317.         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  50318.           allow_undefined_flag_CXX=unsupported
  50319.           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  50320.           # support --undefined.  This deserves some investigation.  FIXME
  50321.           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  50322.         else
  50323.           ld_shlibs_CXX=no
  50324.         fi
  50325.         ;;
  50326.  
  50327.      chorus*)
  50328.        case $cc_basename in
  50329.          *)
  50330.           # FIXME: insert proper C++ library support
  50331.           ld_shlibs_CXX=no
  50332.           ;;
  50333.        esac
  50334.        ;;
  50335.  
  50336.      cygwin* | mingw* | pw32* | cegcc*)
  50337.         case $GXX,$cc_basename in
  50338.         ,cl* | no,cl*)
  50339.           # Native MSVC
  50340.           # hardcode_libdir_flag_spec is actually meaningless, as there is
  50341.           # no search path for DLLs.
  50342.           hardcode_libdir_flag_spec_CXX=' '
  50343.           allow_undefined_flag_CXX=unsupported
  50344.           always_export_symbols_CXX=yes
  50345.           file_list_spec_CXX='@'
  50346.           # Tell ltmain to make .lib files, not .a files.
  50347.           libext=lib
  50348.           # Tell ltmain to make .dll files, not .so files.
  50349.           shrext_cmds=.dll
  50350.           # FIXME: Setting linknames here is a bad hack.
  50351.           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  50352.           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
  50353.              cp "$export_symbols" "$output_objdir/$soname.def";
  50354.              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  50355.            else
  50356.              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  50357.            fi~
  50358.            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  50359.            linknames='
  50360.           # The linker will not automatically build a static lib if we build a DLL.
  50361.           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  50362.           enable_shared_with_static_runtimes_CXX=yes
  50363.           # Don't use ranlib
  50364.           old_postinstall_cmds_CXX='chmod 644 $oldlib'
  50365.           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  50366.            lt_tool_outputfile="@TOOL_OUTPUT@"~
  50367.            case $lt_outputfile in
  50368.              *.exe|*.EXE) ;;
  50369.              *)
  50370.                lt_outputfile=$lt_outputfile.exe
  50371.                lt_tool_outputfile=$lt_tool_outputfile.exe
  50372.                ;;
  50373.            esac~
  50374.            func_to_tool_file "$lt_outputfile"~
  50375.            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  50376.              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  50377.              $RM "$lt_outputfile.manifest";
  50378.            fi'
  50379.           ;;
  50380.         *)
  50381.           # g++
  50382.           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  50383.           # as there is no search path for DLLs.
  50384.           hardcode_libdir_flag_spec_CXX='-L$libdir'
  50385.           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  50386.           allow_undefined_flag_CXX=unsupported
  50387.           always_export_symbols_CXX=no
  50388.           enable_shared_with_static_runtimes_CXX=yes
  50389.  
  50390.           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  50391.             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  50392.             # If the export-symbols file already is a .def file, use it as
  50393.             # is; otherwise, prepend EXPORTS...
  50394.             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
  50395.              cp $export_symbols $output_objdir/$soname.def;
  50396.            else
  50397.              echo EXPORTS > $output_objdir/$soname.def;
  50398.              cat $export_symbols >> $output_objdir/$soname.def;
  50399.            fi~
  50400.            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  50401.           else
  50402.             ld_shlibs_CXX=no
  50403.           fi
  50404.           ;;
  50405.         esac
  50406.         ;;
  50407.      darwin* | rhapsody*)
  50408.  
  50409.  
  50410.  archive_cmds_need_lc_CXX=no
  50411.  hardcode_direct_CXX=no
  50412.  hardcode_automatic_CXX=yes
  50413.  hardcode_shlibpath_var_CXX=unsupported
  50414.  if test yes = "$lt_cv_ld_force_load"; then
  50415.    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  50416.  
  50417.  else
  50418.    whole_archive_flag_spec_CXX=''
  50419.  fi
  50420.  link_all_deplibs_CXX=yes
  50421.  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  50422.  case $cc_basename in
  50423.     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  50424.     *) _lt_dar_can_shared=$GCC ;;
  50425.  esac
  50426.  if test yes = "$_lt_dar_can_shared"; then
  50427.    output_verbose_link_cmd=func_echo_all
  50428.    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  50429.    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  50430.    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  50431.    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  50432.       if test yes != "$lt_cv_apple_cc_single_mod"; then
  50433.      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  50434.      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  50435.    fi
  50436.  
  50437.  else
  50438.  ld_shlibs_CXX=no
  50439.  fi
  50440.  
  50441.         ;;
  50442.  
  50443.      os2*)
  50444.         hardcode_libdir_flag_spec_CXX='-L$libdir'
  50445.         hardcode_minus_L_CXX=yes
  50446.         allow_undefined_flag_CXX=unsupported
  50447.         shrext_cmds=.dll
  50448.         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  50449.           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  50450.           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  50451.           $ECHO EXPORTS >> $output_objdir/$libname.def~
  50452.           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  50453.           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  50454.           emximp -o $lib $output_objdir/$libname.def'
  50455.         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  50456.           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  50457.           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  50458.           $ECHO EXPORTS >> $output_objdir/$libname.def~
  50459.           prefix_cmds="$SED"~
  50460.           if test EXPORTS = "`$SED 1q $export_symbols`"; then
  50461.             prefix_cmds="$prefix_cmds -e 1d";
  50462.           fi~
  50463.           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  50464.           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  50465.           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  50466.           emximp -o $lib $output_objdir/$libname.def'
  50467.         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  50468.         enable_shared_with_static_runtimes_CXX=yes
  50469.         ;;
  50470.  
  50471.      dgux*)
  50472.        case $cc_basename in
  50473.          ec++*)
  50474.             # FIXME: insert proper C++ library support
  50475.             ld_shlibs_CXX=no
  50476.             ;;
  50477.          ghcx*)
  50478.             # Green Hills C++ Compiler
  50479.             # FIXME: insert proper C++ library support
  50480.             ld_shlibs_CXX=no
  50481.             ;;
  50482.          *)
  50483.             # FIXME: insert proper C++ library support
  50484.             ld_shlibs_CXX=no
  50485.             ;;
  50486.        esac
  50487.        ;;
  50488.  
  50489.      freebsd2.*)
  50490.        # C++ shared libraries reported to be fairly broken before
  50491.         # switch to ELF
  50492.        ld_shlibs_CXX=no
  50493.        ;;
  50494.  
  50495.      freebsd-elf*)
  50496.        archive_cmds_need_lc_CXX=no
  50497.        ;;
  50498.  
  50499.      freebsd* | dragonfly*)
  50500.        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  50501.        # conventions
  50502.        ld_shlibs_CXX=yes
  50503.        ;;
  50504.  
  50505.      haiku*)
  50506.        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  50507.        link_all_deplibs_CXX=yes
  50508.        ;;
  50509.  
  50510.      hpux9*)
  50511.        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  50512.        hardcode_libdir_separator_CXX=:
  50513.        export_dynamic_flag_spec_CXX='$wl-E'
  50514.        hardcode_direct_CXX=yes
  50515.        hardcode_minus_L_CXX=yes # Not in the search PATH,
  50516.                                              # but as the default
  50517.                                              # location of the library.
  50518.  
  50519.        case $cc_basename in
  50520.          CC*)
  50521.            # FIXME: insert proper C++ library support
  50522.            ld_shlibs_CXX=no
  50523.            ;;
  50524.          aCC*)
  50525.            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  50526.            # Commands to make compiler produce verbose output that lists
  50527.            # what "hidden" libraries, object files and flags are used when
  50528.            # linking a shared library.
  50529.            #
  50530.            # There doesn't appear to be a way to prevent this compiler from
  50531.            # explicitly linking system object files so we need to strip them
  50532.            # from the output so that they don't get included in the library
  50533.            # dependencies.
  50534.            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  50535.            ;;
  50536.          *)
  50537.            if test yes = "$GXX"; then
  50538.              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  50539.            else
  50540.              # FIXME: insert proper C++ library support
  50541.              ld_shlibs_CXX=no
  50542.            fi
  50543.            ;;
  50544.        esac
  50545.        ;;
  50546.  
  50547.      hpux10*|hpux11*)
  50548.        if test no = "$with_gnu_ld"; then
  50549.           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  50550.           hardcode_libdir_separator_CXX=:
  50551.  
  50552.          case $host_cpu in
  50553.            hppa*64*|ia64*)
  50554.              ;;
  50555.            *)
  50556.               export_dynamic_flag_spec_CXX='$wl-E'
  50557.              ;;
  50558.          esac
  50559.        fi
  50560.        case $host_cpu in
  50561.          hppa*64*|ia64*)
  50562.            hardcode_direct_CXX=no
  50563.            hardcode_shlibpath_var_CXX=no
  50564.            ;;
  50565.          *)
  50566.            hardcode_direct_CXX=yes
  50567.            hardcode_direct_absolute_CXX=yes
  50568.            hardcode_minus_L_CXX=yes # Not in the search PATH,
  50569.                                                  # but as the default
  50570.                                                  # location of the library.
  50571.            ;;
  50572.        esac
  50573.  
  50574.        case $cc_basename in
  50575.          CC*)
  50576.             # FIXME: insert proper C++ library support
  50577.             ld_shlibs_CXX=no
  50578.             ;;
  50579.          aCC*)
  50580.             case $host_cpu in
  50581.               hppa*64*)
  50582.                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  50583.                 ;;
  50584.               ia64*)
  50585.                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  50586.                 ;;
  50587.               *)
  50588.                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  50589.                 ;;
  50590.             esac
  50591.             # Commands to make compiler produce verbose output that lists
  50592.             # what "hidden" libraries, object files and flags are used when
  50593.             # linking a shared library.
  50594.             #
  50595.             # There doesn't appear to be a way to prevent this compiler from
  50596.             # explicitly linking system object files so we need to strip them
  50597.             # from the output so that they don't get included in the library
  50598.             # dependencies.
  50599.             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  50600.             ;;
  50601.          *)
  50602.             if test yes = "$GXX"; then
  50603.               if test no = "$with_gnu_ld"; then
  50604.                 case $host_cpu in
  50605.                   hppa*64*)
  50606.                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  50607.                     ;;
  50608.                   ia64*)
  50609.                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  50610.                     ;;
  50611.                   *)
  50612.                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  50613.                     ;;
  50614.                 esac
  50615.               fi
  50616.             else
  50617.               # FIXME: insert proper C++ library support
  50618.               ld_shlibs_CXX=no
  50619.             fi
  50620.             ;;
  50621.        esac
  50622.        ;;
  50623.  
  50624.      interix[3-9]*)
  50625.         hardcode_direct_CXX=no
  50626.         hardcode_shlibpath_var_CXX=no
  50627.         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  50628.         export_dynamic_flag_spec_CXX='$wl-E'
  50629.         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  50630.         # Instead, shared libraries are loaded at an image base (0x10000000 by
  50631.         # default) and relocated if they conflict, which is a slow very memory
  50632.         # consuming and fragmenting process.  To avoid this, we pick a random,
  50633.         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  50634.         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  50635.         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  50636.         archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  50637.         ;;
  50638.      irix5* | irix6*)
  50639.        case $cc_basename in
  50640.          CC*)
  50641.             # SGI C++
  50642.             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  50643.  
  50644.             # Archives containing C++ object files must be created using
  50645.             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  50646.             # necessary to make sure instantiated templates are included
  50647.             # in the archive.
  50648.             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  50649.             ;;
  50650.          *)
  50651.             if test yes = "$GXX"; then
  50652.               if test no = "$with_gnu_ld"; then
  50653.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  50654.               else
  50655.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  50656.               fi
  50657.             fi
  50658.             link_all_deplibs_CXX=yes
  50659.             ;;
  50660.        esac
  50661.        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  50662.        hardcode_libdir_separator_CXX=:
  50663.        inherit_rpath_CXX=yes
  50664.        ;;
  50665.  
  50666.      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  50667.        case $cc_basename in
  50668.          KCC*)
  50669.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  50670.  
  50671.             # KCC will only create a shared library if the output file
  50672.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  50673.             # to its proper name (with version) after linking.
  50674.             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  50675.             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  50676.             # Commands to make compiler produce verbose output that lists
  50677.             # what "hidden" libraries, object files and flags are used when
  50678.             # linking a shared library.
  50679.             #
  50680.             # There doesn't appear to be a way to prevent this compiler from
  50681.             # explicitly linking system object files so we need to strip them
  50682.             # from the output so that they don't get included in the library
  50683.             # dependencies.
  50684.             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  50685.  
  50686.             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  50687.             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  50688.  
  50689.             # Archives containing C++ object files must be created using
  50690.             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  50691.             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  50692.             ;;
  50693.           icpc* | ecpc* )
  50694.             # Intel C++
  50695.             with_gnu_ld=yes
  50696.             # version 8.0 and above of icpc choke on multiply defined symbols
  50697.             # if we add $predep_objects and $postdep_objects, however 7.1 and
  50698.             # earlier do not add the objects themselves.
  50699.             case `$CC -V 2>&1` in
  50700.               *"Version 7."*)
  50701.                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  50702.                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  50703.                 ;;
  50704.               *)  # Version 8.0 or newer
  50705.                 tmp_idyn=
  50706.                 case $host_cpu in
  50707.                   ia64*) tmp_idyn=' -i_dynamic';;
  50708.                 esac
  50709.                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  50710.                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  50711.                 ;;
  50712.             esac
  50713.             archive_cmds_need_lc_CXX=no
  50714.             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  50715.             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  50716.             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  50717.             ;;
  50718.          pgCC* | pgcpp*)
  50719.            # Portland Group C++ compiler
  50720.             case `$CC -V` in
  50721.             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  50722.               prelink_cmds_CXX='tpldir=Template.dir~
  50723.               rm -rf $tpldir~
  50724.               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  50725.               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  50726.               old_archive_cmds_CXX='tpldir=Template.dir~
  50727.                rm -rf $tpldir~
  50728.                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  50729.                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  50730.                $RANLIB $oldlib'
  50731.               archive_cmds_CXX='tpldir=Template.dir~
  50732.                rm -rf $tpldir~
  50733.                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  50734.                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  50735.               archive_expsym_cmds_CXX='tpldir=Template.dir~
  50736.                rm -rf $tpldir~
  50737.                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  50738.                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  50739.               ;;
  50740.             *) # Version 6 and above use weak symbols
  50741.               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  50742.               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  50743.               ;;
  50744.             esac
  50745.  
  50746.             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  50747.             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  50748.             whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  50749.            ;;
  50750.           cxx*)
  50751.             # Compaq C++
  50752.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  50753.             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
  50754.  
  50755.             runpath_var=LD_RUN_PATH
  50756.             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  50757.             hardcode_libdir_separator_CXX=:
  50758.  
  50759.             # Commands to make compiler produce verbose output that lists
  50760.             # what "hidden" libraries, object files and flags are used when
  50761.             # linking a shared library.
  50762.             #
  50763.             # There doesn't appear to be a way to prevent this compiler from
  50764.             # explicitly linking system object files so we need to strip them
  50765.             # from the output so that they don't get included in the library
  50766.             # dependencies.
  50767.             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  50768.             ;;
  50769.           xl* | mpixl* | bgxl*)
  50770.             # IBM XL 8.0 on PPC, with GNU ld
  50771.             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  50772.             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  50773.             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  50774.             if test yes = "$supports_anon_versioning"; then
  50775.               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  50776.                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  50777.                echo "local: *; };" >> $output_objdir/$libname.ver~
  50778.                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  50779.             fi
  50780.             ;;
  50781.           *)
  50782.             case `$CC -V 2>&1 | sed 5q` in
  50783.             *Sun\ C*)
  50784.               # Sun C++ 5.9
  50785.               no_undefined_flag_CXX=' -zdefs'
  50786.               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  50787.               archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  50788.               hardcode_libdir_flag_spec_CXX='-R$libdir'
  50789.               whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  50790.               compiler_needs_object_CXX=yes
  50791.  
  50792.               # Not sure whether something based on
  50793.               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  50794.               # would be better.
  50795.               output_verbose_link_cmd='func_echo_all'
  50796.  
  50797.               # Archives containing C++ object files must be created using
  50798.               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  50799.               # necessary to make sure instantiated templates are included
  50800.               # in the archive.
  50801.               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  50802.               ;;
  50803.             esac
  50804.             ;;
  50805.         esac
  50806.         ;;
  50807.  
  50808.      lynxos*)
  50809.        # FIXME: insert proper C++ library support
  50810.         ld_shlibs_CXX=no
  50811.         ;;
  50812.  
  50813.      m88k*)
  50814.        # FIXME: insert proper C++ library support
  50815.        ld_shlibs_CXX=no
  50816.         ;;
  50817.  
  50818.      mvs*)
  50819.        case $cc_basename in
  50820.          cxx*)
  50821.             # FIXME: insert proper C++ library support
  50822.             ld_shlibs_CXX=no
  50823.             ;;
  50824.           *)
  50825.             # FIXME: insert proper C++ library support
  50826.             ld_shlibs_CXX=no
  50827.             ;;
  50828.         esac
  50829.         ;;
  50830.  
  50831.      netbsd*)
  50832.        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  50833.           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  50834.           wlarc=
  50835.           hardcode_libdir_flag_spec_CXX='-R$libdir'
  50836.           hardcode_direct_CXX=yes
  50837.           hardcode_shlibpath_var_CXX=no
  50838.         fi
  50839.         # Workaround some broken pre-1.5 toolchains
  50840.         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  50841.         ;;
  50842.  
  50843.      *nto* | *qnx*)
  50844.        ld_shlibs_CXX=yes
  50845.         ;;
  50846.  
  50847.      openbsd* | bitrig*)
  50848.         if test -f /usr/libexec/ld.so; then
  50849.           hardcode_direct_CXX=yes
  50850.           hardcode_shlibpath_var_CXX=no
  50851.           hardcode_direct_absolute_CXX=yes
  50852.           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  50853.           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  50854.           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  50855.             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  50856.             export_dynamic_flag_spec_CXX='$wl-E'
  50857.             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  50858.           fi
  50859.           output_verbose_link_cmd=func_echo_all
  50860.         else
  50861.           ld_shlibs_CXX=no
  50862.         fi
  50863.         ;;
  50864.  
  50865.      osf3* | osf4* | osf5*)
  50866.        case $cc_basename in
  50867.          KCC*)
  50868.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  50869.  
  50870.             # KCC will only create a shared library if the output file
  50871.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  50872.             # to its proper name (with version) after linking.
  50873.             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  50874.  
  50875.             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  50876.             hardcode_libdir_separator_CXX=:
  50877.  
  50878.             # Archives containing C++ object files must be created using
  50879.             # the KAI C++ compiler.
  50880.             case $host in
  50881.               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  50882.               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  50883.             esac
  50884.             ;;
  50885.          RCC*)
  50886.             # Rational C++ 2.4.1
  50887.             # FIXME: insert proper C++ library support
  50888.             ld_shlibs_CXX=no
  50889.             ;;
  50890.          cxx*)
  50891.             case $host in
  50892.               osf3*)
  50893.                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  50894.                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  50895.                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  50896.                 ;;
  50897.               *)
  50898.                 allow_undefined_flag_CXX=' -expect_unresolved \*'
  50899.                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  50900.                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  50901.                  echo "-hidden">> $lib.exp~
  50902.                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  50903.                  $RM $lib.exp'
  50904.                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  50905.                 ;;
  50906.             esac
  50907.  
  50908.             hardcode_libdir_separator_CXX=:
  50909.  
  50910.             # Commands to make compiler produce verbose output that lists
  50911.             # what "hidden" libraries, object files and flags are used when
  50912.             # linking a shared library.
  50913.             #
  50914.             # There doesn't appear to be a way to prevent this compiler from
  50915.             # explicitly linking system object files so we need to strip them
  50916.             # from the output so that they don't get included in the library
  50917.             # dependencies.
  50918.             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  50919.             ;;
  50920.           *)
  50921.             if test yes,no = "$GXX,$with_gnu_ld"; then
  50922.               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  50923.               case $host in
  50924.                 osf3*)
  50925.                   archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  50926.                   ;;
  50927.                 *)
  50928.                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  50929.                   ;;
  50930.               esac
  50931.  
  50932.               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  50933.               hardcode_libdir_separator_CXX=:
  50934.  
  50935.               # Commands to make compiler produce verbose output that lists
  50936.               # what "hidden" libraries, object files and flags are used when
  50937.               # linking a shared library.
  50938.               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  50939.  
  50940.             else
  50941.               # FIXME: insert proper C++ library support
  50942.               ld_shlibs_CXX=no
  50943.             fi
  50944.             ;;
  50945.        esac
  50946.        ;;
  50947.  
  50948.      psos*)
  50949.        # FIXME: insert proper C++ library support
  50950.        ld_shlibs_CXX=no
  50951.        ;;
  50952.  
  50953.      sunos4*)
  50954.        case $cc_basename in
  50955.          CC*)
  50956.             # Sun C++ 4.x
  50957.             # FIXME: insert proper C++ library support
  50958.             ld_shlibs_CXX=no
  50959.             ;;
  50960.          lcc*)
  50961.             # Lucid
  50962.             # FIXME: insert proper C++ library support
  50963.             ld_shlibs_CXX=no
  50964.             ;;
  50965.          *)
  50966.             # FIXME: insert proper C++ library support
  50967.             ld_shlibs_CXX=no
  50968.             ;;
  50969.        esac
  50970.        ;;
  50971.  
  50972.      solaris*)
  50973.        case $cc_basename in
  50974.          CC* | sunCC*)
  50975.             # Sun C++ 4.2, 5.x and Centerline C++
  50976.            archive_cmds_need_lc_CXX=yes
  50977.             no_undefined_flag_CXX=' -zdefs'
  50978.             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  50979.             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  50980.              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  50981.  
  50982.             hardcode_libdir_flag_spec_CXX='-R$libdir'
  50983.             hardcode_shlibpath_var_CXX=no
  50984.             case $host_os in
  50985.               solaris2.[0-5] | solaris2.[0-5].*) ;;
  50986.               *)
  50987.                 # The compiler driver will combine and reorder linker options,
  50988.                 # but understands '-z linker_flag'.
  50989.                 # Supported since Solaris 2.6 (maybe 2.5.1?)
  50990.                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  50991.                 ;;
  50992.             esac
  50993.             link_all_deplibs_CXX=yes
  50994.  
  50995.             output_verbose_link_cmd='func_echo_all'
  50996.  
  50997.             # Archives containing C++ object files must be created using
  50998.             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  50999.             # necessary to make sure instantiated templates are included
  51000.             # in the archive.
  51001.             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  51002.             ;;
  51003.          gcx*)
  51004.             # Green Hills C++ Compiler
  51005.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  51006.  
  51007.             # The C++ compiler must be used to create the archive.
  51008.             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  51009.             ;;
  51010.          *)
  51011.             # GNU C++ compiler with Solaris linker
  51012.             if test yes,no = "$GXX,$with_gnu_ld"; then
  51013.               no_undefined_flag_CXX=' $wl-z ${wl}defs'
  51014.               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  51015.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  51016.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  51017.                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  51018.  
  51019.                 # Commands to make compiler produce verbose output that lists
  51020.                 # what "hidden" libraries, object files and flags are used when
  51021.                 # linking a shared library.
  51022.                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  51023.               else
  51024.                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
  51025.                 # platform.
  51026.                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  51027.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  51028.                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  51029.  
  51030.                 # Commands to make compiler produce verbose output that lists
  51031.                 # what "hidden" libraries, object files and flags are used when
  51032.                 # linking a shared library.
  51033.                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  51034.               fi
  51035.  
  51036.               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  51037.               case $host_os in
  51038.                 solaris2.[0-5] | solaris2.[0-5].*) ;;
  51039.                 *)
  51040.                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  51041.                   ;;
  51042.               esac
  51043.             fi
  51044.             ;;
  51045.        esac
  51046.        ;;
  51047.  
  51048.    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  51049.      no_undefined_flag_CXX='$wl-z,text'
  51050.      archive_cmds_need_lc_CXX=no
  51051.      hardcode_shlibpath_var_CXX=no
  51052.      runpath_var='LD_RUN_PATH'
  51053.  
  51054.      case $cc_basename in
  51055.        CC*)
  51056.           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  51057.           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  51058.           ;;
  51059.         *)
  51060.           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  51061.           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  51062.           ;;
  51063.      esac
  51064.      ;;
  51065.  
  51066.      sysv5* | sco3.2v5* | sco5v6*)
  51067.         # Note: We CANNOT use -z defs as we might desire, because we do not
  51068.         # link with -lc, and that would cause any symbols used from libc to
  51069.         # always be unresolved, which means just about no library would
  51070.         # ever link correctly.  If we're not using GNU ld we use -z text
  51071.         # though, which does catch some bad symbols but isn't as heavy-handed
  51072.         # as -z defs.
  51073.         no_undefined_flag_CXX='$wl-z,text'
  51074.         allow_undefined_flag_CXX='$wl-z,nodefs'
  51075.         archive_cmds_need_lc_CXX=no
  51076.         hardcode_shlibpath_var_CXX=no
  51077.         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  51078.         hardcode_libdir_separator_CXX=':'
  51079.         link_all_deplibs_CXX=yes
  51080.         export_dynamic_flag_spec_CXX='$wl-Bexport'
  51081.         runpath_var='LD_RUN_PATH'
  51082.  
  51083.         case $cc_basename in
  51084.          CC*)
  51085.             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  51086.             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  51087.             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  51088.              '"$old_archive_cmds_CXX"
  51089.             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  51090.              '"$reload_cmds_CXX"
  51091.             ;;
  51092.           *)
  51093.             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  51094.             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  51095.             ;;
  51096.         esac
  51097.      ;;
  51098.  
  51099.      tandem*)
  51100.        case $cc_basename in
  51101.          NCC*)
  51102.             # NonStop-UX NCC 3.20
  51103.             # FIXME: insert proper C++ library support
  51104.             ld_shlibs_CXX=no
  51105.             ;;
  51106.          *)
  51107.             # FIXME: insert proper C++ library support
  51108.             ld_shlibs_CXX=no
  51109.             ;;
  51110.        esac
  51111.        ;;
  51112.  
  51113.      vxworks*)
  51114.        # FIXME: insert proper C++ library support
  51115.        ld_shlibs_CXX=no
  51116.        ;;
  51117.  
  51118.      *)
  51119.        # FIXME: insert proper C++ library support
  51120.        ld_shlibs_CXX=no
  51121.        ;;
  51122.    esac
  51123.  
  51124.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  51125. $as_echo "$ld_shlibs_CXX" >&6; }
  51126.    test no = "$ld_shlibs_CXX" && can_build_shared=no
  51127.  
  51128.    GCC_CXX=$GXX
  51129.    LD_CXX=$LD
  51130.  
  51131.    ## CAVEAT EMPTOR:
  51132.    ## There is no encapsulation within the following macros, do not change
  51133.    ## the running order or otherwise move them around unless you know exactly
  51134.    ## what you are doing...
  51135.    # Dependencies to place before and after the object being linked:
  51136. predep_objects_CXX=
  51137. postdep_objects_CXX=
  51138. predeps_CXX=
  51139. postdeps_CXX=
  51140. compiler_lib_search_path_CXX=
  51141.  
  51142. cat > conftest.$ac_ext <<_LT_EOF
  51143. class Foo
  51144. {
  51145. public:
  51146.  Foo (void) { a = 0; }
  51147. private:
  51148.  int a;
  51149. };
  51150. _LT_EOF
  51151.  
  51152.  
  51153. _lt_libdeps_save_CFLAGS=$CFLAGS
  51154. case "$CC $CFLAGS " in #(
  51155. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  51156. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  51157. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  51158. esac
  51159.  
  51160. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  51161.  (eval $ac_compile) 2>&5
  51162.  ac_status=$?
  51163.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  51164.  test $ac_status = 0; }; then
  51165.  # Parse the compiler output and extract the necessary
  51166.  # objects, libraries and library flags.
  51167.  
  51168.  # Sentinel used to keep track of whether or not we are before
  51169.  # the conftest object file.
  51170.  pre_test_object_deps_done=no
  51171.  
  51172.  for p in `eval "$output_verbose_link_cmd"`; do
  51173.    case $prev$p in
  51174.  
  51175.    -L* | -R* | -l*)
  51176.       # Some compilers place space between "-{L,R}" and the path.
  51177.       # Remove the space.
  51178.       if test x-L = "$p" ||
  51179.          test x-R = "$p"; then
  51180.          prev=$p
  51181.          continue
  51182.       fi
  51183.  
  51184.       # Expand the sysroot to ease extracting the directories later.
  51185.       if test -z "$prev"; then
  51186.         case $p in
  51187.         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  51188.         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  51189.         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  51190.         esac
  51191.       fi
  51192.       case $p in
  51193.       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  51194.       esac
  51195.       if test no = "$pre_test_object_deps_done"; then
  51196.          case $prev in
  51197.          -L | -R)
  51198.            # Internal compiler library paths should come after those
  51199.            # provided the user.  The postdeps already come after the
  51200.            # user supplied libs so there is no need to process them.
  51201.            if test -z "$compiler_lib_search_path_CXX"; then
  51202.              compiler_lib_search_path_CXX=$prev$p
  51203.            else
  51204.              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  51205.            fi
  51206.            ;;
  51207.          # The "-l" case would never come before the object being
  51208.          # linked, so don't bother handling this case.
  51209.          esac
  51210.       else
  51211.          if test -z "$postdeps_CXX"; then
  51212.            postdeps_CXX=$prev$p
  51213.          else
  51214.            postdeps_CXX="${postdeps_CXX} $prev$p"
  51215.          fi
  51216.       fi
  51217.       prev=
  51218.       ;;
  51219.  
  51220.    *.lto.$objext) ;; # Ignore GCC LTO objects
  51221.    *.$objext)
  51222.       # This assumes that the test object file only shows up
  51223.       # once in the compiler output.
  51224.       if test "$p" = "conftest.$objext"; then
  51225.          pre_test_object_deps_done=yes
  51226.          continue
  51227.       fi
  51228.  
  51229.       if test no = "$pre_test_object_deps_done"; then
  51230.          if test -z "$predep_objects_CXX"; then
  51231.            predep_objects_CXX=$p
  51232.          else
  51233.            predep_objects_CXX="$predep_objects_CXX $p"
  51234.          fi
  51235.       else
  51236.          if test -z "$postdep_objects_CXX"; then
  51237.            postdep_objects_CXX=$p
  51238.          else
  51239.            postdep_objects_CXX="$postdep_objects_CXX $p"
  51240.          fi
  51241.       fi
  51242.       ;;
  51243.  
  51244.    *) ;; # Ignore the rest.
  51245.  
  51246.    esac
  51247.  done
  51248.  
  51249.  # Clean up.
  51250.  rm -f a.out a.exe
  51251. else
  51252.  echo "libtool.m4: error: problem compiling CXX test program"
  51253. fi
  51254.  
  51255. $RM -f confest.$objext
  51256. CFLAGS=$_lt_libdeps_save_CFLAGS
  51257.  
  51258. # PORTME: override above test on systems where it is broken
  51259. case $host_os in
  51260. interix[3-9]*)
  51261.  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  51262.  # hack all around it, let's just trust "g++" to DTRT.
  51263.  predep_objects_CXX=
  51264.  postdep_objects_CXX=
  51265.  postdeps_CXX=
  51266.  ;;
  51267. esac
  51268.  
  51269.  
  51270. case " $postdeps_CXX " in
  51271. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  51272. esac
  51273. compiler_lib_search_dirs_CXX=
  51274. if test -n "${compiler_lib_search_path_CXX}"; then
  51275. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  51276. fi
  51277.  
  51278.  
  51279.  
  51280.  
  51281.  
  51282.  
  51283.  
  51284.  
  51285.  
  51286.  
  51287.  
  51288.  
  51289.  
  51290.  
  51291.  
  51292.  
  51293.  
  51294.  
  51295.  
  51296.  
  51297.  
  51298.  
  51299.  
  51300.  
  51301.  
  51302.  
  51303.  
  51304.  
  51305.  
  51306.  
  51307.  
  51308.    lt_prog_compiler_wl_CXX=
  51309. lt_prog_compiler_pic_CXX=
  51310. lt_prog_compiler_static_CXX=
  51311.  
  51312.  
  51313.  # C++ specific cases for pic, static, wl, etc.
  51314.  if test yes = "$GXX"; then
  51315.    lt_prog_compiler_wl_CXX='-Wl,'
  51316.    lt_prog_compiler_static_CXX='-static'
  51317.  
  51318.    case $host_os in
  51319.    aix*)
  51320.      # All AIX code is PIC.
  51321.      if test ia64 = "$host_cpu"; then
  51322.         # AIX 5 now supports IA64 processor
  51323.         lt_prog_compiler_static_CXX='-Bstatic'
  51324.      fi
  51325.      lt_prog_compiler_pic_CXX='-fPIC'
  51326.      ;;
  51327.  
  51328.    amigaos*)
  51329.      case $host_cpu in
  51330.      powerpc)
  51331.            # see comment about AmigaOS4 .so support
  51332.            lt_prog_compiler_pic_CXX='-fPIC'
  51333.        ;;
  51334.      m68k)
  51335.            # FIXME: we need at least 68020 code to build shared libraries, but
  51336.            # adding the '-m68020' flag to GCC prevents building anything better,
  51337.            # like '-m68040'.
  51338.            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  51339.        ;;
  51340.      esac
  51341.      ;;
  51342.  
  51343.    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  51344.      # PIC is the default for these OSes.
  51345.      ;;
  51346.    mingw* | cygwin* | os2* | pw32* | cegcc*)
  51347.      # This hack is so that the source file can tell whether it is being
  51348.      # built for inclusion in a dll (and should export symbols for example).
  51349.      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  51350.      # (--disable-auto-import) libraries
  51351.      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  51352.      case $host_os in
  51353.      os2*)
  51354.         lt_prog_compiler_static_CXX='$wl-static'
  51355.         ;;
  51356.      esac
  51357.      ;;
  51358.    darwin* | rhapsody*)
  51359.      # PIC is the default on this platform
  51360.      # Common symbols not allowed in MH_DYLIB files
  51361.      lt_prog_compiler_pic_CXX='-fno-common'
  51362.      ;;
  51363.    *djgpp*)
  51364.      # DJGPP does not support shared libraries at all
  51365.      lt_prog_compiler_pic_CXX=
  51366.      ;;
  51367.    haiku*)
  51368.      # PIC is the default for Haiku.
  51369.      # The "-static" flag exists, but is broken.
  51370.      lt_prog_compiler_static_CXX=
  51371.      ;;
  51372.    interix[3-9]*)
  51373.      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  51374.      # Instead, we relocate shared libraries at runtime.
  51375.      ;;
  51376.    sysv4*MP*)
  51377.      if test -d /usr/nec; then
  51378.         lt_prog_compiler_pic_CXX=-Kconform_pic
  51379.      fi
  51380.      ;;
  51381.    hpux*)
  51382.      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  51383.      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  51384.      # sets the default TLS model and affects inlining.
  51385.      case $host_cpu in
  51386.      hppa*64*)
  51387.         ;;
  51388.      *)
  51389.         lt_prog_compiler_pic_CXX='-fPIC'
  51390.         ;;
  51391.      esac
  51392.      ;;
  51393.    *qnx* | *nto*)
  51394.      # QNX uses GNU C++, but need to define -shared option too, otherwise
  51395.      # it will coredump.
  51396.      lt_prog_compiler_pic_CXX='-fPIC -shared'
  51397.      ;;
  51398.    *)
  51399.      lt_prog_compiler_pic_CXX='-fPIC'
  51400.      ;;
  51401.    esac
  51402.  else
  51403.    case $host_os in
  51404.      aix[4-9]*)
  51405.         # All AIX code is PIC.
  51406.         if test ia64 = "$host_cpu"; then
  51407.           # AIX 5 now supports IA64 processor
  51408.           lt_prog_compiler_static_CXX='-Bstatic'
  51409.         else
  51410.           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  51411.         fi
  51412.         ;;
  51413.      chorus*)
  51414.         case $cc_basename in
  51415.         cxch68*)
  51416.           # Green Hills C++ Compiler
  51417.           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  51418.           ;;
  51419.         esac
  51420.         ;;
  51421.      mingw* | cygwin* | os2* | pw32* | cegcc*)
  51422.         # This hack is so that the source file can tell whether it is being
  51423.         # built for inclusion in a dll (and should export symbols for example).
  51424.         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  51425.         ;;
  51426.      dgux*)
  51427.         case $cc_basename in
  51428.           ec++*)
  51429.             lt_prog_compiler_pic_CXX='-KPIC'
  51430.             ;;
  51431.           ghcx*)
  51432.             # Green Hills C++ Compiler
  51433.             lt_prog_compiler_pic_CXX='-pic'
  51434.             ;;
  51435.           *)
  51436.             ;;
  51437.         esac
  51438.         ;;
  51439.      freebsd* | dragonfly*)
  51440.         # FreeBSD uses GNU C++
  51441.         ;;
  51442.      hpux9* | hpux10* | hpux11*)
  51443.         case $cc_basename in
  51444.           CC*)
  51445.             lt_prog_compiler_wl_CXX='-Wl,'
  51446.             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  51447.             if test ia64 != "$host_cpu"; then
  51448.               lt_prog_compiler_pic_CXX='+Z'
  51449.             fi
  51450.             ;;
  51451.           aCC*)
  51452.             lt_prog_compiler_wl_CXX='-Wl,'
  51453.             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  51454.             case $host_cpu in
  51455.             hppa*64*|ia64*)
  51456.               # +Z the default
  51457.               ;;
  51458.             *)
  51459.               lt_prog_compiler_pic_CXX='+Z'
  51460.               ;;
  51461.             esac
  51462.             ;;
  51463.           *)
  51464.             ;;
  51465.         esac
  51466.         ;;
  51467.      interix*)
  51468.         # This is c89, which is MS Visual C++ (no shared libs)
  51469.         # Anyone wants to do a port?
  51470.         ;;
  51471.      irix5* | irix6* | nonstopux*)
  51472.         case $cc_basename in
  51473.           CC*)
  51474.             lt_prog_compiler_wl_CXX='-Wl,'
  51475.             lt_prog_compiler_static_CXX='-non_shared'
  51476.             # CC pic flag -KPIC is the default.
  51477.             ;;
  51478.           *)
  51479.             ;;
  51480.         esac
  51481.         ;;
  51482.      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  51483.         case $cc_basename in
  51484.           KCC*)
  51485.             # KAI C++ Compiler
  51486.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  51487.             lt_prog_compiler_pic_CXX='-fPIC'
  51488.             ;;
  51489.           ecpc* )
  51490.             # old Intel C++ for x86_64, which still supported -KPIC.
  51491.             lt_prog_compiler_wl_CXX='-Wl,'
  51492.             lt_prog_compiler_pic_CXX='-KPIC'
  51493.             lt_prog_compiler_static_CXX='-static'
  51494.             ;;
  51495.           icpc* )
  51496.             # Intel C++, used to be incompatible with GCC.
  51497.             # ICC 10 doesn't accept -KPIC any more.
  51498.             lt_prog_compiler_wl_CXX='-Wl,'
  51499.             lt_prog_compiler_pic_CXX='-fPIC'
  51500.             lt_prog_compiler_static_CXX='-static'
  51501.             ;;
  51502.           pgCC* | pgcpp*)
  51503.             # Portland Group C++ compiler
  51504.             lt_prog_compiler_wl_CXX='-Wl,'
  51505.             lt_prog_compiler_pic_CXX='-fpic'
  51506.             lt_prog_compiler_static_CXX='-Bstatic'
  51507.             ;;
  51508.           cxx*)
  51509.             # Compaq C++
  51510.             # Make sure the PIC flag is empty.  It appears that all Alpha
  51511.             # Linux and Compaq Tru64 Unix objects are PIC.
  51512.             lt_prog_compiler_pic_CXX=
  51513.             lt_prog_compiler_static_CXX='-non_shared'
  51514.             ;;
  51515.           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  51516.             # IBM XL 8.0, 9.0 on PPC and BlueGene
  51517.             lt_prog_compiler_wl_CXX='-Wl,'
  51518.             lt_prog_compiler_pic_CXX='-qpic'
  51519.             lt_prog_compiler_static_CXX='-qstaticlink'
  51520.             ;;
  51521.           *)
  51522.             case `$CC -V 2>&1 | sed 5q` in
  51523.             *Sun\ C*)
  51524.               # Sun C++ 5.9
  51525.               lt_prog_compiler_pic_CXX='-KPIC'
  51526.               lt_prog_compiler_static_CXX='-Bstatic'
  51527.               lt_prog_compiler_wl_CXX='-Qoption ld '
  51528.               ;;
  51529.             esac
  51530.             ;;
  51531.         esac
  51532.         ;;
  51533.      lynxos*)
  51534.         ;;
  51535.      m88k*)
  51536.         ;;
  51537.      mvs*)
  51538.         case $cc_basename in
  51539.           cxx*)
  51540.             lt_prog_compiler_pic_CXX='-W c,exportall'
  51541.             ;;
  51542.           *)
  51543.             ;;
  51544.         esac
  51545.         ;;
  51546.      netbsd* | netbsdelf*-gnu)
  51547.         ;;
  51548.      *qnx* | *nto*)
  51549.        # QNX uses GNU C++, but need to define -shared option too, otherwise
  51550.        # it will coredump.
  51551.        lt_prog_compiler_pic_CXX='-fPIC -shared'
  51552.        ;;
  51553.      osf3* | osf4* | osf5*)
  51554.         case $cc_basename in
  51555.           KCC*)
  51556.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  51557.             ;;
  51558.           RCC*)
  51559.             # Rational C++ 2.4.1
  51560.             lt_prog_compiler_pic_CXX='-pic'
  51561.             ;;
  51562.           cxx*)
  51563.             # Digital/Compaq C++
  51564.             lt_prog_compiler_wl_CXX='-Wl,'
  51565.             # Make sure the PIC flag is empty.  It appears that all Alpha
  51566.             # Linux and Compaq Tru64 Unix objects are PIC.
  51567.             lt_prog_compiler_pic_CXX=
  51568.             lt_prog_compiler_static_CXX='-non_shared'
  51569.             ;;
  51570.           *)
  51571.             ;;
  51572.         esac
  51573.         ;;
  51574.      psos*)
  51575.         ;;
  51576.      solaris*)
  51577.         case $cc_basename in
  51578.           CC* | sunCC*)
  51579.             # Sun C++ 4.2, 5.x and Centerline C++
  51580.             lt_prog_compiler_pic_CXX='-KPIC'
  51581.             lt_prog_compiler_static_CXX='-Bstatic'
  51582.             lt_prog_compiler_wl_CXX='-Qoption ld '
  51583.             ;;
  51584.           gcx*)
  51585.             # Green Hills C++ Compiler
  51586.             lt_prog_compiler_pic_CXX='-PIC'
  51587.             ;;
  51588.           *)
  51589.             ;;
  51590.         esac
  51591.         ;;
  51592.      sunos4*)
  51593.         case $cc_basename in
  51594.           CC*)
  51595.             # Sun C++ 4.x
  51596.             lt_prog_compiler_pic_CXX='-pic'
  51597.             lt_prog_compiler_static_CXX='-Bstatic'
  51598.             ;;
  51599.           lcc*)
  51600.             # Lucid
  51601.             lt_prog_compiler_pic_CXX='-pic'
  51602.             ;;
  51603.           *)
  51604.             ;;
  51605.         esac
  51606.         ;;
  51607.      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  51608.         case $cc_basename in
  51609.           CC*)
  51610.             lt_prog_compiler_wl_CXX='-Wl,'
  51611.             lt_prog_compiler_pic_CXX='-KPIC'
  51612.             lt_prog_compiler_static_CXX='-Bstatic'
  51613.             ;;
  51614.         esac
  51615.         ;;
  51616.      tandem*)
  51617.         case $cc_basename in
  51618.           NCC*)
  51619.             # NonStop-UX NCC 3.20
  51620.             lt_prog_compiler_pic_CXX='-KPIC'
  51621.             ;;
  51622.           *)
  51623.             ;;
  51624.         esac
  51625.         ;;
  51626.      vxworks*)
  51627.         ;;
  51628.      *)
  51629.         lt_prog_compiler_can_build_shared_CXX=no
  51630.         ;;
  51631.    esac
  51632.  fi
  51633.  
  51634. case $host_os in
  51635.  # For platforms that do not support PIC, -DPIC is meaningless:
  51636.  *djgpp*)
  51637.    lt_prog_compiler_pic_CXX=
  51638.    ;;
  51639.  *)
  51640.    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  51641.    ;;
  51642. esac
  51643.  
  51644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  51645. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  51646. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  51647.  $as_echo_n "(cached) " >&6
  51648. else
  51649.  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  51650. fi
  51651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  51652. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  51653. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  51654.  
  51655. #
  51656. # Check to make sure the PIC flag actually works.
  51657. #
  51658. if test -n "$lt_prog_compiler_pic_CXX"; then
  51659.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  51660. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  51661. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  51662.  $as_echo_n "(cached) " >&6
  51663. else
  51664.  lt_cv_prog_compiler_pic_works_CXX=no
  51665.   ac_outfile=conftest.$ac_objext
  51666.   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  51667.   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
  51668.   # Insert the option either (1) after the last *FLAGS variable, or
  51669.   # (2) before a word containing "conftest.", or (3) at the end.
  51670.   # Note that $ac_compile itself does not contain backslashes and begins
  51671.   # with a dollar sign (not a hyphen), so the echo should work correctly.
  51672.   # The option is referenced via a variable to avoid confusing sed.
  51673.   lt_compile=`echo "$ac_compile" | $SED \
  51674.   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  51675.   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  51676.   -e 's:$: $lt_compiler_flag:'`
  51677.   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  51678.   (eval "$lt_compile" 2>conftest.err)
  51679.   ac_status=$?
  51680.   cat conftest.err >&5
  51681.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51682.   if (exit $ac_status) && test -s "$ac_outfile"; then
  51683.     # The compiler can only warn and ignore the option if not recognized
  51684.     # So say no if there are warnings other than the usual output.
  51685.     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  51686.     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  51687.     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  51688.       lt_cv_prog_compiler_pic_works_CXX=yes
  51689.     fi
  51690.   fi
  51691.   $RM conftest*
  51692.  
  51693. fi
  51694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  51695. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  51696.  
  51697. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  51698.    case $lt_prog_compiler_pic_CXX in
  51699.     "" | " "*) ;;
  51700.     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  51701.     esac
  51702. else
  51703.    lt_prog_compiler_pic_CXX=
  51704.     lt_prog_compiler_can_build_shared_CXX=no
  51705. fi
  51706.  
  51707. fi
  51708.  
  51709.  
  51710.  
  51711.  
  51712.  
  51713. #
  51714. # Check to make sure the static flag actually works.
  51715. #
  51716. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  51717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  51718. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  51719. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  51720.  $as_echo_n "(cached) " >&6
  51721. else
  51722.  lt_cv_prog_compiler_static_works_CXX=no
  51723.   save_LDFLAGS=$LDFLAGS
  51724.   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  51725.   echo "$lt_simple_link_test_code" > conftest.$ac_ext
  51726.   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  51727.     # The linker can only warn and ignore the option if not recognized
  51728.     # So say no if there are warnings
  51729.     if test -s conftest.err; then
  51730.       # Append any errors to the config.log.
  51731.       cat conftest.err 1>&5
  51732.       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  51733.       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  51734.       if diff conftest.exp conftest.er2 >/dev/null; then
  51735.         lt_cv_prog_compiler_static_works_CXX=yes
  51736.       fi
  51737.     else
  51738.       lt_cv_prog_compiler_static_works_CXX=yes
  51739.     fi
  51740.   fi
  51741.   $RM -r conftest*
  51742.   LDFLAGS=$save_LDFLAGS
  51743.  
  51744. fi
  51745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  51746. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  51747.  
  51748. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  51749.    :
  51750. else
  51751.    lt_prog_compiler_static_CXX=
  51752. fi
  51753.  
  51754.  
  51755.  
  51756.  
  51757.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  51758. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  51759. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  51760.  $as_echo_n "(cached) " >&6
  51761. else
  51762.  lt_cv_prog_compiler_c_o_CXX=no
  51763.   $RM -r conftest 2>/dev/null
  51764.   mkdir conftest
  51765.   cd conftest
  51766.   mkdir out
  51767.   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  51768.  
  51769.   lt_compiler_flag="-o out/conftest2.$ac_objext"
  51770.   # Insert the option either (1) after the last *FLAGS variable, or
  51771.   # (2) before a word containing "conftest.", or (3) at the end.
  51772.   # Note that $ac_compile itself does not contain backslashes and begins
  51773.   # with a dollar sign (not a hyphen), so the echo should work correctly.
  51774.   lt_compile=`echo "$ac_compile" | $SED \
  51775.   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  51776.   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  51777.   -e 's:$: $lt_compiler_flag:'`
  51778.   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  51779.   (eval "$lt_compile" 2>out/conftest.err)
  51780.   ac_status=$?
  51781.   cat out/conftest.err >&5
  51782.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51783.   if (exit $ac_status) && test -s out/conftest2.$ac_objext
  51784.   then
  51785.     # The compiler can only warn and ignore the option if not recognized
  51786.     # So say no if there are warnings
  51787.     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  51788.     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  51789.     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  51790.       lt_cv_prog_compiler_c_o_CXX=yes
  51791.     fi
  51792.   fi
  51793.   chmod u+w . 2>&5
  51794.   $RM conftest*
  51795.   # SGI C++ compiler will create directory out/ii_files/ for
  51796.   # template instantiation
  51797.   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  51798.   $RM out/* && rmdir out
  51799.   cd ..
  51800.   $RM -r conftest
  51801.   $RM conftest*
  51802.  
  51803. fi
  51804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  51805. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  51806.  
  51807.  
  51808.  
  51809.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  51810. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  51811. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  51812.  $as_echo_n "(cached) " >&6
  51813. else
  51814.  lt_cv_prog_compiler_c_o_CXX=no
  51815.   $RM -r conftest 2>/dev/null
  51816.   mkdir conftest
  51817.   cd conftest
  51818.   mkdir out
  51819.   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  51820.  
  51821.   lt_compiler_flag="-o out/conftest2.$ac_objext"
  51822.   # Insert the option either (1) after the last *FLAGS variable, or
  51823.   # (2) before a word containing "conftest.", or (3) at the end.
  51824.   # Note that $ac_compile itself does not contain backslashes and begins
  51825.   # with a dollar sign (not a hyphen), so the echo should work correctly.
  51826.   lt_compile=`echo "$ac_compile" | $SED \
  51827.   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  51828.   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  51829.   -e 's:$: $lt_compiler_flag:'`
  51830.   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  51831.   (eval "$lt_compile" 2>out/conftest.err)
  51832.   ac_status=$?
  51833.   cat out/conftest.err >&5
  51834.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51835.   if (exit $ac_status) && test -s out/conftest2.$ac_objext
  51836.   then
  51837.     # The compiler can only warn and ignore the option if not recognized
  51838.     # So say no if there are warnings
  51839.     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  51840.     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  51841.     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  51842.       lt_cv_prog_compiler_c_o_CXX=yes
  51843.     fi
  51844.   fi
  51845.   chmod u+w . 2>&5
  51846.   $RM conftest*
  51847.   # SGI C++ compiler will create directory out/ii_files/ for
  51848.   # template instantiation
  51849.   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  51850.   $RM out/* && rmdir out
  51851.   cd ..
  51852.   $RM -r conftest
  51853.   $RM conftest*
  51854.  
  51855. fi
  51856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  51857. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  51858.  
  51859.  
  51860.  
  51861.  
  51862. hard_links=nottested
  51863. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  51864.  # do not overwrite the value of need_locks provided by the user
  51865.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  51866. $as_echo_n "checking if we can lock with hard links... " >&6; }
  51867.  hard_links=yes
  51868.  $RM conftest*
  51869.  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  51870.  touch conftest.a
  51871.  ln conftest.a conftest.b 2>&5 || hard_links=no
  51872.  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  51873.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  51874. $as_echo "$hard_links" >&6; }
  51875.  if test no = "$hard_links"; then
  51876.    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  51877. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  51878.    need_locks=warn
  51879.  fi
  51880. else
  51881.  need_locks=no
  51882. fi
  51883.  
  51884.  
  51885.  
  51886.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  51887. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  51888.  
  51889.  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  51890.  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  51891.  case $host_os in
  51892.  aix[4-9]*)
  51893.    # If we're using GNU nm, then we don't want the "-C" option.
  51894.    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  51895.    # Without the "-l" option, or with the "-B" option, AIX nm treats
  51896.    # weak defined symbols like other global defined symbols, whereas
  51897.    # GNU nm marks them as "W".
  51898.    # While the 'weak' keyword is ignored in the Export File, we need
  51899.    # it in the Import File for the 'aix-soname' feature, so we have
  51900.    # to replace the "-B" option with "-P" for AIX nm.
  51901.    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  51902.      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  51903.    else
  51904.      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  51905.    fi
  51906.    ;;
  51907.  pw32*)
  51908.    export_symbols_cmds_CXX=$ltdll_cmds
  51909.    ;;
  51910.  cygwin* | mingw* | cegcc*)
  51911.    case $cc_basename in
  51912.    cl*)
  51913.      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  51914.      ;;
  51915.    *)
  51916.      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  51917.      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  51918.      ;;
  51919.    esac
  51920.    ;;
  51921.  linux* | k*bsd*-gnu | gnu*)
  51922.    link_all_deplibs_CXX=no
  51923.    ;;
  51924.  *)
  51925.    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  51926.    ;;
  51927.  esac
  51928.  
  51929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  51930. $as_echo "$ld_shlibs_CXX" >&6; }
  51931. test no = "$ld_shlibs_CXX" && can_build_shared=no
  51932.  
  51933. with_gnu_ld_CXX=$with_gnu_ld
  51934.  
  51935.  
  51936.  
  51937.  
  51938.  
  51939.  
  51940. #
  51941. # Do we need to explicitly link libc?
  51942. #
  51943. case "x$archive_cmds_need_lc_CXX" in
  51944. x|xyes)
  51945.  # Assume -lc should be added
  51946.  archive_cmds_need_lc_CXX=yes
  51947.  
  51948.  if test yes,yes = "$GCC,$enable_shared"; then
  51949.    case $archive_cmds_CXX in
  51950.    *'~'*)
  51951.      # FIXME: we may have to deal with multi-command sequences.
  51952.      ;;
  51953.    '$CC '*)
  51954.      # Test whether the compiler implicitly links with -lc since on some
  51955.      # systems, -lgcc has to come before -lc. If gcc already passes -lc
  51956.      # to ld, don't add -lc before -lgcc.
  51957.      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  51958. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  51959. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  51960.  $as_echo_n "(cached) " >&6
  51961. else
  51962.  $RM conftest*
  51963.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  51964.  
  51965.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  51966.  (eval $ac_compile) 2>&5
  51967.  ac_status=$?
  51968.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  51969.  test $ac_status = 0; } 2>conftest.err; then
  51970.           soname=conftest
  51971.           lib=conftest
  51972.           libobjs=conftest.$ac_objext
  51973.           deplibs=
  51974.           wl=$lt_prog_compiler_wl_CXX
  51975.           pic_flag=$lt_prog_compiler_pic_CXX
  51976.           compiler_flags=-v
  51977.           linker_flags=-v
  51978.           verstring=
  51979.           output_objdir=.
  51980.           libname=conftest
  51981.           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  51982.           allow_undefined_flag_CXX=
  51983.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  51984.  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  51985.  ac_status=$?
  51986.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  51987.  test $ac_status = 0; }
  51988.           then
  51989.             lt_cv_archive_cmds_need_lc_CXX=no
  51990.           else
  51991.             lt_cv_archive_cmds_need_lc_CXX=yes
  51992.           fi
  51993.           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  51994.         else
  51995.           cat conftest.err 1>&5
  51996.         fi
  51997.         $RM conftest*
  51998.  
  51999. fi
  52000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  52001. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  52002.      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  52003.      ;;
  52004.    esac
  52005.  fi
  52006.  ;;
  52007. esac
  52008.  
  52009.  
  52010.  
  52011.  
  52012.  
  52013.  
  52014.  
  52015.  
  52016.  
  52017.  
  52018.  
  52019.  
  52020.  
  52021.  
  52022.  
  52023.  
  52024.  
  52025.  
  52026.  
  52027.  
  52028.  
  52029.  
  52030.  
  52031.  
  52032.  
  52033.  
  52034.  
  52035.  
  52036.  
  52037.  
  52038.  
  52039.  
  52040.  
  52041.  
  52042.  
  52043.  
  52044.  
  52045.  
  52046.  
  52047.  
  52048.  
  52049.  
  52050.  
  52051.  
  52052.  
  52053.  
  52054.  
  52055.  
  52056.  
  52057.  
  52058.  
  52059.  
  52060.  
  52061.  
  52062.  
  52063.  
  52064.  
  52065.  
  52066.  
  52067.  
  52068.  
  52069.  
  52070.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  52071. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  52072.  
  52073. library_names_spec=
  52074. libname_spec='lib$name'
  52075. soname_spec=
  52076. shrext_cmds=.so
  52077. postinstall_cmds=
  52078. postuninstall_cmds=
  52079. finish_cmds=
  52080. finish_eval=
  52081. shlibpath_var=
  52082. shlibpath_overrides_runpath=unknown
  52083. version_type=none
  52084. dynamic_linker="$host_os ld.so"
  52085. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  52086. need_lib_prefix=unknown
  52087. hardcode_into_libs=no
  52088.  
  52089. # when you set need_version to no, make sure it does not cause -set_version
  52090. # flags to be left without arguments
  52091. need_version=unknown
  52092.  
  52093.  
  52094.  
  52095. case $host_os in
  52096. aix3*)
  52097.  version_type=linux # correct to gnu/linux during the next big refactor
  52098.  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  52099.  shlibpath_var=LIBPATH
  52100.  
  52101.  # AIX 3 has no versioning support, so we append a major version to the name.
  52102.  soname_spec='$libname$release$shared_ext$major'
  52103.  ;;
  52104.  
  52105. aix[4-9]*)
  52106.  version_type=linux # correct to gnu/linux during the next big refactor
  52107.  need_lib_prefix=no
  52108.  need_version=no
  52109.  hardcode_into_libs=yes
  52110.  if test ia64 = "$host_cpu"; then
  52111.    # AIX 5 supports IA64
  52112.    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  52113.    shlibpath_var=LD_LIBRARY_PATH
  52114.  else
  52115.    # With GCC up to 2.95.x, collect2 would create an import file
  52116.    # for dependence libraries.  The import file would start with
  52117.    # the line '#! .'.  This would cause the generated library to
  52118.    # depend on '.', always an invalid library.  This was fixed in
  52119.    # development snapshots of GCC prior to 3.0.
  52120.    case $host_os in
  52121.      aix4 | aix4.[01] | aix4.[01].*)
  52122.      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  52123.            echo ' yes '
  52124.            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  52125.         :
  52126.      else
  52127.         can_build_shared=no
  52128.      fi
  52129.      ;;
  52130.    esac
  52131.    # Using Import Files as archive members, it is possible to support
  52132.    # filename-based versioning of shared library archives on AIX. While
  52133.    # this would work for both with and without runtime linking, it will
  52134.    # prevent static linking of such archives. So we do filename-based
  52135.    # shared library versioning with .so extension only, which is used
  52136.    # when both runtime linking and shared linking is enabled.
  52137.    # Unfortunately, runtime linking may impact performance, so we do
  52138.    # not want this to be the default eventually. Also, we use the
  52139.    # versioned .so libs for executables only if there is the -brtl
  52140.    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  52141.    # To allow for filename-based versioning support, we need to create
  52142.    # libNAME.so.V as an archive file, containing:
  52143.    # *) an Import File, referring to the versioned filename of the
  52144.    #    archive as well as the shared archive member, telling the
  52145.    #    bitwidth (32 or 64) of that shared object, and providing the
  52146.    #    list of exported symbols of that shared object, eventually
  52147.    #    decorated with the 'weak' keyword
  52148.    # *) the shared object with the F_LOADONLY flag set, to really avoid
  52149.    #    it being seen by the linker.
  52150.    # At run time we better use the real file rather than another symlink,
  52151.    # but for link time we create the symlink libNAME.so -> libNAME.so.V
  52152.  
  52153.    case $with_aix_soname,$aix_use_runtimelinking in
  52154.    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  52155.    # soname into executable. Probably we can add versioning support to
  52156.    # collect2, so additional links can be useful in future.
  52157.    aix,yes) # traditional libtool
  52158.      dynamic_linker='AIX unversionable lib.so'
  52159.      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  52160.      # instead of lib<name>.a to let people know that these are not
  52161.      # typical AIX shared libraries.
  52162.      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52163.      ;;
  52164.    aix,no) # traditional AIX only
  52165.      dynamic_linker='AIX lib.a(lib.so.V)'
  52166.      # We preserve .a as extension for shared libraries through AIX4.2
  52167.      # and later when we are not doing run time linking.
  52168.      library_names_spec='$libname$release.a $libname.a'
  52169.      soname_spec='$libname$release$shared_ext$major'
  52170.      ;;
  52171.    svr4,*) # full svr4 only
  52172.      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  52173.      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  52174.      # We do not specify a path in Import Files, so LIBPATH fires.
  52175.      shlibpath_overrides_runpath=yes
  52176.      ;;
  52177.    *,yes) # both, prefer svr4
  52178.      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  52179.      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  52180.      # unpreferred sharedlib libNAME.a needs extra handling
  52181.      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  52182.      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  52183.      # We do not specify a path in Import Files, so LIBPATH fires.
  52184.      shlibpath_overrides_runpath=yes
  52185.      ;;
  52186.    *,no) # both, prefer aix
  52187.      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  52188.      library_names_spec='$libname$release.a $libname.a'
  52189.      soname_spec='$libname$release$shared_ext$major'
  52190.      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  52191.      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  52192.      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  52193.      ;;
  52194.    esac
  52195.    shlibpath_var=LIBPATH
  52196.  fi
  52197.  ;;
  52198.  
  52199. amigaos*)
  52200.  case $host_cpu in
  52201.  powerpc)
  52202.    # Since July 2007 AmigaOS4 officially supports .so libraries.
  52203.    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  52204.    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52205.    ;;
  52206.  m68k)
  52207.    library_names_spec='$libname.ixlibrary $libname.a'
  52208.    # Create ${libname}_ixlibrary.a entries in /sys/libs.
  52209.    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  52210.    ;;
  52211.  esac
  52212.  ;;
  52213.  
  52214. beos*)
  52215.  library_names_spec='$libname$shared_ext'
  52216.  dynamic_linker="$host_os ld.so"
  52217.  shlibpath_var=LIBRARY_PATH
  52218.  ;;
  52219.  
  52220. bsdi[45]*)
  52221.  version_type=linux # correct to gnu/linux during the next big refactor
  52222.  need_version=no
  52223.  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52224.  soname_spec='$libname$release$shared_ext$major'
  52225.  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  52226.  shlibpath_var=LD_LIBRARY_PATH
  52227.  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  52228.  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  52229.  # the default ld.so.conf also contains /usr/contrib/lib and
  52230.  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  52231.  # libtool to hard-code these into programs
  52232.  ;;
  52233.  
  52234. cygwin* | mingw* | pw32* | cegcc*)
  52235.  version_type=windows
  52236.  shrext_cmds=.dll
  52237.  need_version=no
  52238.  need_lib_prefix=no
  52239.  
  52240.  case $GCC,$cc_basename in
  52241.  yes,*)
  52242.    # gcc
  52243.    library_names_spec='$libname.dll.a'
  52244.    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  52245.    postinstall_cmds='base_file=`basename \$file`~
  52246.      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  52247.      dldir=$destdir/`dirname \$dlpath`~
  52248.      test -d \$dldir || mkdir -p \$dldir~
  52249.      $install_prog $dir/$dlname \$dldir/$dlname~
  52250.      chmod a+x \$dldir/$dlname~
  52251.      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  52252.        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  52253.      fi'
  52254.    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  52255.      dlpath=$dir/\$dldll~
  52256.       $RM \$dlpath'
  52257.    shlibpath_overrides_runpath=yes
  52258.  
  52259.    case $host_os in
  52260.    cygwin*)
  52261.      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  52262.      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  52263.  
  52264.      ;;
  52265.    mingw* | cegcc*)
  52266.      # MinGW DLLs use traditional 'lib' prefix
  52267.      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  52268.      ;;
  52269.    pw32*)
  52270.      # pw32 DLLs use 'pw' prefix rather than 'lib'
  52271.      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  52272.      ;;
  52273.    esac
  52274.    dynamic_linker='Win32 ld.exe'
  52275.    ;;
  52276.  
  52277.  *,cl*)
  52278.    # Native MSVC
  52279.    libname_spec='$name'
  52280.    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  52281.    library_names_spec='$libname.dll.lib'
  52282.  
  52283.    case $build_os in
  52284.    mingw*)
  52285.      sys_lib_search_path_spec=
  52286.      lt_save_ifs=$IFS
  52287.      IFS=';'
  52288.      for lt_path in $LIB
  52289.      do
  52290.        IFS=$lt_save_ifs
  52291.        # Let DOS variable expansion print the short 8.3 style file name.
  52292.        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  52293.        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  52294.      done
  52295.      IFS=$lt_save_ifs
  52296.      # Convert to MSYS style.
  52297.      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  52298.      ;;
  52299.    cygwin*)
  52300.      # Convert to unix form, then to dos form, then back to unix form
  52301.      # but this time dos style (no spaces!) so that the unix form looks
  52302.      # like /cygdrive/c/PROGRA~1:/cygdr...
  52303.      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  52304.      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  52305.      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  52306.      ;;
  52307.    *)
  52308.      sys_lib_search_path_spec=$LIB
  52309.      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  52310.        # It is most probably a Windows format PATH.
  52311.        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  52312.      else
  52313.        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  52314.      fi
  52315.      # FIXME: find the short name or the path components, as spaces are
  52316.      # common. (e.g. "Program Files" -> "PROGRA~1")
  52317.      ;;
  52318.    esac
  52319.  
  52320.    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  52321.    postinstall_cmds='base_file=`basename \$file`~
  52322.      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  52323.      dldir=$destdir/`dirname \$dlpath`~
  52324.      test -d \$dldir || mkdir -p \$dldir~
  52325.      $install_prog $dir/$dlname \$dldir/$dlname'
  52326.    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  52327.      dlpath=$dir/\$dldll~
  52328.       $RM \$dlpath'
  52329.    shlibpath_overrides_runpath=yes
  52330.    dynamic_linker='Win32 link.exe'
  52331.    ;;
  52332.  
  52333.  *)
  52334.    # Assume MSVC wrapper
  52335.    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  52336.    dynamic_linker='Win32 ld.exe'
  52337.    ;;
  52338.  esac
  52339.  # FIXME: first we should search . and the directory the executable is in
  52340.  shlibpath_var=PATH
  52341.  ;;
  52342.  
  52343. darwin* | rhapsody*)
  52344.  dynamic_linker="$host_os dyld"
  52345.  version_type=darwin
  52346.  need_lib_prefix=no
  52347.  need_version=no
  52348.  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  52349.  soname_spec='$libname$release$major$shared_ext'
  52350.  shlibpath_overrides_runpath=yes
  52351.  shlibpath_var=DYLD_LIBRARY_PATH
  52352.  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  52353.  
  52354.  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  52355.  ;;
  52356.  
  52357. dgux*)
  52358.  version_type=linux # correct to gnu/linux during the next big refactor
  52359.  need_lib_prefix=no
  52360.  need_version=no
  52361.  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52362.  soname_spec='$libname$release$shared_ext$major'
  52363.  shlibpath_var=LD_LIBRARY_PATH
  52364.  ;;
  52365.  
  52366. freebsd* | dragonfly*)
  52367.  # DragonFly does not have aout.  When/if they implement a new
  52368.  # versioning mechanism, adjust this.
  52369.  if test -x /usr/bin/objformat; then
  52370.    objformat=`/usr/bin/objformat`
  52371.  else
  52372.    case $host_os in
  52373.    freebsd[23].*) objformat=aout ;;
  52374.    *) objformat=elf ;;
  52375.    esac
  52376.  fi
  52377.  version_type=freebsd-$objformat
  52378.  case $version_type in
  52379.    freebsd-elf*)
  52380.      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52381.      soname_spec='$libname$release$shared_ext$major'
  52382.      need_version=no
  52383.      need_lib_prefix=no
  52384.      ;;
  52385.    freebsd-*)
  52386.      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  52387.      need_version=yes
  52388.      ;;
  52389.  esac
  52390.  shlibpath_var=LD_LIBRARY_PATH
  52391.  case $host_os in
  52392.  freebsd2.*)
  52393.    shlibpath_overrides_runpath=yes
  52394.    ;;
  52395.  freebsd3.[01]* | freebsdelf3.[01]*)
  52396.    shlibpath_overrides_runpath=yes
  52397.    hardcode_into_libs=yes
  52398.    ;;
  52399.  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  52400.  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  52401.    shlibpath_overrides_runpath=no
  52402.    hardcode_into_libs=yes
  52403.    ;;
  52404.  *) # from 4.6 on, and DragonFly
  52405.    shlibpath_overrides_runpath=yes
  52406.    hardcode_into_libs=yes
  52407.    ;;
  52408.  esac
  52409.  ;;
  52410.  
  52411. haiku*)
  52412.  version_type=linux # correct to gnu/linux during the next big refactor
  52413.  need_lib_prefix=no
  52414.  need_version=no
  52415.  dynamic_linker="$host_os runtime_loader"
  52416.  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52417.  soname_spec='$libname$release$shared_ext$major'
  52418.  shlibpath_var=LIBRARY_PATH
  52419.  shlibpath_overrides_runpath=no
  52420.  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  52421.  hardcode_into_libs=yes
  52422.  ;;
  52423.  
  52424. hpux9* | hpux10* | hpux11*)
  52425.  # Give a soname corresponding to the major version so that dld.sl refuses to
  52426.  # link against other versions.
  52427.  version_type=sunos
  52428.  need_lib_prefix=no
  52429.  need_version=no
  52430.  case $host_cpu in
  52431.  ia64*)
  52432.    shrext_cmds='.so'
  52433.    hardcode_into_libs=yes
  52434.    dynamic_linker="$host_os dld.so"
  52435.    shlibpath_var=LD_LIBRARY_PATH
  52436.    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  52437.    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52438.    soname_spec='$libname$release$shared_ext$major'
  52439.    if test 32 = "$HPUX_IA64_MODE"; then
  52440.      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  52441.      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  52442.    else
  52443.      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  52444.      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  52445.    fi
  52446.    ;;
  52447.  hppa*64*)
  52448.    shrext_cmds='.sl'
  52449.    hardcode_into_libs=yes
  52450.    dynamic_linker="$host_os dld.sl"
  52451.    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  52452.    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  52453.    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52454.    soname_spec='$libname$release$shared_ext$major'
  52455.    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  52456.    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  52457.    ;;
  52458.  *)
  52459.    shrext_cmds='.sl'
  52460.    dynamic_linker="$host_os dld.sl"
  52461.    shlibpath_var=SHLIB_PATH
  52462.    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  52463.    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52464.    soname_spec='$libname$release$shared_ext$major'
  52465.    ;;
  52466.  esac
  52467.  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  52468.  postinstall_cmds='chmod 555 $lib'
  52469.  # or fails outright, so override atomically:
  52470.  install_override_mode=555
  52471.  ;;
  52472.  
  52473. interix[3-9]*)
  52474.  version_type=linux # correct to gnu/linux during the next big refactor
  52475.  need_lib_prefix=no
  52476.  need_version=no
  52477.  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52478.  soname_spec='$libname$release$shared_ext$major'
  52479.  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  52480.  shlibpath_var=LD_LIBRARY_PATH
  52481.  shlibpath_overrides_runpath=no
  52482.  hardcode_into_libs=yes
  52483.  ;;
  52484.  
  52485. irix5* | irix6* | nonstopux*)
  52486.  case $host_os in
  52487.    nonstopux*) version_type=nonstopux ;;
  52488.    *)
  52489.         if test yes = "$lt_cv_prog_gnu_ld"; then
  52490.                 version_type=linux # correct to gnu/linux during the next big refactor
  52491.         else
  52492.                 version_type=irix
  52493.         fi ;;
  52494.  esac
  52495.  need_lib_prefix=no
  52496.  need_version=no
  52497.  soname_spec='$libname$release$shared_ext$major'
  52498.  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  52499.  case $host_os in
  52500.  irix5* | nonstopux*)
  52501.    libsuff= shlibsuff=
  52502.    ;;
  52503.  *)
  52504.    case $LD in # libtool.m4 will add one of these switches to LD
  52505.    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  52506.      libsuff= shlibsuff= libmagic=32-bit;;
  52507.    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  52508.      libsuff=32 shlibsuff=N32 libmagic=N32;;
  52509.    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  52510.      libsuff=64 shlibsuff=64 libmagic=64-bit;;
  52511.    *) libsuff= shlibsuff= libmagic=never-match;;
  52512.    esac
  52513.    ;;
  52514.  esac
  52515.  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  52516.  shlibpath_overrides_runpath=no
  52517.  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  52518.  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  52519.  hardcode_into_libs=yes
  52520.  ;;
  52521.  
  52522. # No shared lib support for Linux oldld, aout, or coff.
  52523. linux*oldld* | linux*aout* | linux*coff*)
  52524.  dynamic_linker=no
  52525.  ;;
  52526.  
  52527. linux*android*)
  52528.  version_type=none # Android doesn't support versioned libraries.
  52529.  need_lib_prefix=no
  52530.  need_version=no
  52531.  library_names_spec='$libname$release$shared_ext'
  52532.  soname_spec='$libname$release$shared_ext'
  52533.  finish_cmds=
  52534.  shlibpath_var=LD_LIBRARY_PATH
  52535.  shlibpath_overrides_runpath=yes
  52536.  
  52537.  # This implies no fast_install, which is unacceptable.
  52538.  # Some rework will be needed to allow for fast_install
  52539.  # before this can be enabled.
  52540.  hardcode_into_libs=yes
  52541.  
  52542.  dynamic_linker='Android linker'
  52543.  # Don't embed -rpath directories since the linker doesn't support them.
  52544.  hardcode_libdir_flag_spec_CXX='-L$libdir'
  52545.  ;;
  52546.  
  52547. # This must be glibc/ELF.
  52548. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  52549.  version_type=linux # correct to gnu/linux during the next big refactor
  52550.  need_lib_prefix=no
  52551.  need_version=no
  52552.  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52553.  soname_spec='$libname$release$shared_ext$major'
  52554.  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  52555.  shlibpath_var=LD_LIBRARY_PATH
  52556.  shlibpath_overrides_runpath=no
  52557.  
  52558.  # Some binutils ld are patched to set DT_RUNPATH
  52559.  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  52560.  $as_echo_n "(cached) " >&6
  52561. else
  52562.  lt_cv_shlibpath_overrides_runpath=no
  52563.    save_LDFLAGS=$LDFLAGS
  52564.    save_libdir=$libdir
  52565.    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  52566.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  52567.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52568. /* end confdefs.h.  */
  52569.  
  52570. int
  52571. main ()
  52572. {
  52573.  
  52574.  ;
  52575.  return 0;
  52576. }
  52577. _ACEOF
  52578. if ac_fn_cxx_try_link "$LINENO"; then :
  52579.  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  52580.  lt_cv_shlibpath_overrides_runpath=yes
  52581. fi
  52582. fi
  52583. rm -f core conftest.err conftest.$ac_objext \
  52584.    conftest$ac_exeext conftest.$ac_ext
  52585.    LDFLAGS=$save_LDFLAGS
  52586.    libdir=$save_libdir
  52587.  
  52588. fi
  52589.  
  52590.  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  52591.  
  52592.  # This implies no fast_install, which is unacceptable.
  52593.  # Some rework will be needed to allow for fast_install
  52594.  # before this can be enabled.
  52595.  hardcode_into_libs=yes
  52596.  
  52597.  # Ideally, we could use ldconfig to report *all* directores which are
  52598.  # searched for libraries, however this is still not possible.  Aside from not
  52599.  # being certain /sbin/ldconfig is available, command
  52600.  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  52601.  # even though it is searched at run-time.  Try to do the best guess by
  52602.  # appending ld.so.conf contents (and includes) to the search path.
  52603.  if test -f /etc/ld.so.conf; then
  52604.     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  52605.    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  52606.  fi
  52607.  
  52608.  # We used to test for /lib/ld.so.1 and disable shared libraries on
  52609.  # powerpc, because MkLinux only supported shared libraries with the
  52610.  # GNU dynamic linker.  Since this was broken with cross compilers,
  52611.  # most powerpc-linux boxes support dynamic linking these days and
  52612.  # people can always --disable-shared, the test was removed, and we
  52613.  # assume the GNU/Linux dynamic linker is in use.
  52614.  dynamic_linker='GNU/Linux ld.so'
  52615.  ;;
  52616.  
  52617. netbsdelf*-gnu)
  52618.  version_type=linux
  52619.  need_lib_prefix=no
  52620.  need_version=no
  52621.  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  52622.  soname_spec='${libname}${release}${shared_ext}$major'
  52623.  shlibpath_var=LD_LIBRARY_PATH
  52624.  shlibpath_overrides_runpath=no
  52625.  hardcode_into_libs=yes
  52626.  dynamic_linker='NetBSD ld.elf_so'
  52627.  ;;
  52628.  
  52629. netbsd*)
  52630.  version_type=sunos
  52631.  need_lib_prefix=no
  52632.  need_version=no
  52633.  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  52634.    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  52635.    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  52636.    dynamic_linker='NetBSD (a.out) ld.so'
  52637.  else
  52638.    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52639.    soname_spec='$libname$release$shared_ext$major'
  52640.    dynamic_linker='NetBSD ld.elf_so'
  52641.  fi
  52642.  shlibpath_var=LD_LIBRARY_PATH
  52643.  shlibpath_overrides_runpath=yes
  52644.  hardcode_into_libs=yes
  52645.  ;;
  52646.  
  52647. newsos6)
  52648.  version_type=linux # correct to gnu/linux during the next big refactor
  52649.  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52650.  shlibpath_var=LD_LIBRARY_PATH
  52651.  shlibpath_overrides_runpath=yes
  52652.  ;;
  52653.  
  52654. *nto* | *qnx*)
  52655.  version_type=qnx
  52656.  need_lib_prefix=no
  52657.  need_version=no
  52658.  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52659.  soname_spec='$libname$release$shared_ext$major'
  52660.  shlibpath_var=LD_LIBRARY_PATH
  52661.  shlibpath_overrides_runpath=no
  52662.  hardcode_into_libs=yes
  52663.  dynamic_linker='ldqnx.so'
  52664.  ;;
  52665.  
  52666. openbsd* | bitrig*)
  52667.  version_type=sunos
  52668.  sys_lib_dlsearch_path_spec=/usr/lib
  52669.  need_lib_prefix=no
  52670.  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  52671.    need_version=no
  52672.  else
  52673.    need_version=yes
  52674.  fi
  52675.  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  52676.  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  52677.  shlibpath_var=LD_LIBRARY_PATH
  52678.  shlibpath_overrides_runpath=yes
  52679.  ;;
  52680.  
  52681. os2*)
  52682.  libname_spec='$name'
  52683.  version_type=windows
  52684.  shrext_cmds=.dll
  52685.  need_version=no
  52686.  need_lib_prefix=no
  52687.  # OS/2 can only load a DLL with a base name of 8 characters or less.
  52688.  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  52689.     v=$($ECHO $release$versuffix | tr -d .-);
  52690.     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  52691.     $ECHO $n$v`$shared_ext'
  52692.  library_names_spec='${libname}_dll.$libext'
  52693.  dynamic_linker='OS/2 ld.exe'
  52694.  shlibpath_var=BEGINLIBPATH
  52695.  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  52696.  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  52697.  postinstall_cmds='base_file=`basename \$file`~
  52698.     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  52699.    dldir=$destdir/`dirname \$dlpath`~
  52700.    test -d \$dldir || mkdir -p \$dldir~
  52701.    $install_prog $dir/$dlname \$dldir/$dlname~
  52702.    chmod a+x \$dldir/$dlname~
  52703.    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  52704.      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  52705.    fi'
  52706.   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  52707.    dlpath=$dir/\$dldll~
  52708.    $RM \$dlpath'
  52709.   ;;
  52710.  
  52711. osf3* | osf4* | osf5*)
  52712.   version_type=osf
  52713.   need_lib_prefix=no
  52714.   need_version=no
  52715.   soname_spec='$libname$release$shared_ext$major'
  52716.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52717.   shlibpath_var=LD_LIBRARY_PATH
  52718.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  52719.   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  52720.   ;;
  52721.  
  52722. rdos*)
  52723.   dynamic_linker=no
  52724.   ;;
  52725.  
  52726. solaris*)
  52727.   version_type=linux # correct to gnu/linux during the next big refactor
  52728.   need_lib_prefix=no
  52729.   need_version=no
  52730.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52731.   soname_spec='$libname$release$shared_ext$major'
  52732.   shlibpath_var=LD_LIBRARY_PATH
  52733.   shlibpath_overrides_runpath=yes
  52734.   hardcode_into_libs=yes
  52735.   # ldd complains unless libraries are executable
  52736.   postinstall_cmds='chmod +x $lib'
  52737.   ;;
  52738.  
  52739. sunos4*)
  52740.   version_type=sunos
  52741.   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  52742.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  52743.   shlibpath_var=LD_LIBRARY_PATH
  52744.   shlibpath_overrides_runpath=yes
  52745.   if test yes = "$with_gnu_ld"; then
  52746.     need_lib_prefix=no
  52747.   fi
  52748.   need_version=yes
  52749.   ;;
  52750.  
  52751. sysv4 | sysv4.3*)
  52752.   version_type=linux # correct to gnu/linux during the next big refactor
  52753.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52754.   soname_spec='$libname$release$shared_ext$major'
  52755.   shlibpath_var=LD_LIBRARY_PATH
  52756.   case $host_vendor in
  52757.     sni)
  52758.       shlibpath_overrides_runpath=no
  52759.       need_lib_prefix=no
  52760.       runpath_var=LD_RUN_PATH
  52761.       ;;
  52762.     siemens)
  52763.       need_lib_prefix=no
  52764.       ;;
  52765.     motorola)
  52766.       need_lib_prefix=no
  52767.       need_version=no
  52768.       shlibpath_overrides_runpath=no
  52769.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  52770.       ;;
  52771.   esac
  52772.   ;;
  52773.  
  52774. sysv4*MP*)
  52775.   if test -d /usr/nec; then
  52776.     version_type=linux # correct to gnu/linux during the next big refactor
  52777.     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  52778.     soname_spec='$libname$shared_ext.$major'
  52779.     shlibpath_var=LD_LIBRARY_PATH
  52780.   fi
  52781.   ;;
  52782.  
  52783. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  52784.   version_type=sco
  52785.   need_lib_prefix=no
  52786.   need_version=no
  52787.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  52788.   soname_spec='$libname$release$shared_ext$major'
  52789.   shlibpath_var=LD_LIBRARY_PATH
  52790.   shlibpath_overrides_runpath=yes
  52791.   hardcode_into_libs=yes
  52792.   if test yes = "$with_gnu_ld"; then
  52793.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  52794.   else
  52795.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  52796.     case $host_os in
  52797.       sco3.2v5*)
  52798.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  52799.         ;;
  52800.     esac
  52801.   fi
  52802.   sys_lib_dlsearch_path_spec='/usr/lib'
  52803.   ;;
  52804.  
  52805. tpf*)
  52806.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  52807.   version_type=linux # correct to gnu/linux during the next big refactor
  52808.   need_lib_prefix=no
  52809.   need_version=no
  52810.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52811.   shlibpath_var=LD_LIBRARY_PATH
  52812.   shlibpath_overrides_runpath=no
  52813.   hardcode_into_libs=yes
  52814.   ;;
  52815.  
  52816. uts4*)
  52817.   version_type=linux # correct to gnu/linux during the next big refactor
  52818.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  52819.   soname_spec='$libname$release$shared_ext$major'
  52820.   shlibpath_var=LD_LIBRARY_PATH
  52821.   ;;
  52822.  
  52823. *)
  52824.   dynamic_linker=no
  52825.   ;;
  52826. esac
  52827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  52828. $as_echo "$dynamic_linker" >&6; }
  52829. test no = "$dynamic_linker" && can_build_shared=no
  52830.  
  52831. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  52832. if test yes = "$GCC"; then
  52833.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  52834. fi
  52835.  
  52836. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  52837.   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  52838. fi
  52839.  
  52840. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  52841.   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  52842. fi
  52843.  
  52844. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  52845. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  52846.  
  52847. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  52848. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  52849.  
  52850. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  52851. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  52852.  
  52853.  
  52854.  
  52855.  
  52856.  
  52857.  
  52858.  
  52859.  
  52860.  
  52861.  
  52862.  
  52863.  
  52864.  
  52865.  
  52866.  
  52867.  
  52868.  
  52869.  
  52870.  
  52871.  
  52872.  
  52873.  
  52874.  
  52875.  
  52876.  
  52877.  
  52878.  
  52879.  
  52880.  
  52881.  
  52882.  
  52883.  
  52884.  
  52885.  
  52886.  
  52887.  
  52888.  
  52889.  
  52890.  
  52891.  
  52892.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  52893. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  52894. hardcode_action_CXX=
  52895. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  52896.    test -n "$runpath_var_CXX" ||
  52897.    test yes = "$hardcode_automatic_CXX"; then
  52898.  
  52899.   # We can hardcode non-existent directories.
  52900.   if test no != "$hardcode_direct_CXX" &&
  52901.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  52902.      # have to relink, otherwise we might link with an installed library
  52903.      # when we should be linking with a yet-to-be-installed one
  52904.      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  52905.      test no != "$hardcode_minus_L_CXX"; then
  52906.     # Linking always hardcodes the temporary library directory.
  52907.     hardcode_action_CXX=relink
  52908.   else
  52909.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  52910.     hardcode_action_CXX=immediate
  52911.   fi
  52912. else
  52913.   # We cannot hardcode anything, or else we can only hardcode existing
  52914.   # directories.
  52915.   hardcode_action_CXX=unsupported
  52916. fi
  52917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  52918. $as_echo "$hardcode_action_CXX" >&6; }
  52919.  
  52920. if test relink = "$hardcode_action_CXX" ||
  52921.    test yes = "$inherit_rpath_CXX"; then
  52922.   # Fast installation is not supported
  52923.   enable_fast_install=no
  52924. elif test yes = "$shlibpath_overrides_runpath" ||
  52925.      test no = "$enable_shared"; then
  52926.   # Fast installation is not necessary
  52927.   enable_fast_install=needless
  52928. fi
  52929.  
  52930.  
  52931.  
  52932.  
  52933.  
  52934.  
  52935.  
  52936.   fi # test -n "$compiler"
  52937.  
  52938.   CC=$lt_save_CC
  52939.   CFLAGS=$lt_save_CFLAGS
  52940.   LDCXX=$LD
  52941.   LD=$lt_save_LD
  52942.   GCC=$lt_save_GCC
  52943.   with_gnu_ld=$lt_save_with_gnu_ld
  52944.   lt_cv_path_LDCXX=$lt_cv_path_LD
  52945.   lt_cv_path_LD=$lt_save_path_LD
  52946.   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  52947.   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  52948. fi # test yes != "$_lt_caught_CXX_error"
  52949.  
  52950. ac_ext=c
  52951. ac_cpp='$CPP $CPPFLAGS'
  52952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52955.  
  52956.  
  52957.  
  52958.  
  52959.  
  52960.  
  52961.  
  52962.  
  52963.  
  52964.  
  52965.  
  52966.  
  52967.  
  52968.  
  52969.  
  52970.         ac_config_commands="$ac_config_commands libtool"
  52971.  
  52972.  
  52973.  
  52974.  
  52975. # Only expand once:
  52976.  
  52977.  
  52978.  
  52979.  
  52980.  
  52981.  
  52982.  
  52983.  
  52984.  
  52985.  
  52986.  
  52987.  
  52988.  
  52989.  
  52990.  
  52991.  
  52992.  
  52993.  
  52994.     use_additional=yes
  52995.  
  52996.   acl_save_prefix="$prefix"
  52997.   prefix="$acl_final_prefix"
  52998.   acl_save_exec_prefix="$exec_prefix"
  52999.   exec_prefix="$acl_final_exec_prefix"
  53000.  
  53001.     eval additional_includedir=\"$includedir\"
  53002.     eval additional_libdir=\"$libdir\"
  53003.  
  53004.   exec_prefix="$acl_save_exec_prefix"
  53005.   prefix="$acl_save_prefix"
  53006.  
  53007.  
  53008. # Check whether --with-libdl-prefix was given.
  53009. if test "${with_libdl_prefix+set}" = set; then :
  53010.   withval=$with_libdl_prefix;
  53011.     if test "X$withval" = "Xno"; then
  53012.       use_additional=no
  53013.     else
  53014.       if test "X$withval" = "X"; then
  53015.  
  53016.   acl_save_prefix="$prefix"
  53017.   prefix="$acl_final_prefix"
  53018.   acl_save_exec_prefix="$exec_prefix"
  53019.   exec_prefix="$acl_final_exec_prefix"
  53020.  
  53021.           eval additional_includedir=\"$includedir\"
  53022.           eval additional_libdir=\"$libdir\"
  53023.  
  53024.   exec_prefix="$acl_save_exec_prefix"
  53025.   prefix="$acl_save_prefix"
  53026.  
  53027.       else
  53028.         additional_includedir="$withval/include"
  53029.         additional_libdir="$withval/$acl_libdirstem"
  53030.         if test "$acl_libdirstem2" != "$acl_libdirstem" \
  53031.            && ! test -d "$withval/$acl_libdirstem"; then
  53032.           additional_libdir="$withval/$acl_libdirstem2"
  53033.         fi
  53034.       fi
  53035.     fi
  53036.  
  53037. fi
  53038.  
  53039.       LIBDL=
  53040.   LTLIBDL=
  53041.   INCDL=
  53042.   LIBDL_PREFIX=
  53043.       HAVE_LIBDL=
  53044.   rpathdirs=
  53045.   ltrpathdirs=
  53046.   names_already_handled=
  53047.   names_next_round='dl '
  53048.   while test -n "$names_next_round"; do
  53049.     names_this_round="$names_next_round"
  53050.     names_next_round=
  53051.     for name in $names_this_round; do
  53052.       already_handled=
  53053.       for n in $names_already_handled; do
  53054.         if test "$n" = "$name"; then
  53055.           already_handled=yes
  53056.           break
  53057.         fi
  53058.       done
  53059.       if test -z "$already_handled"; then
  53060.         names_already_handled="$names_already_handled $name"
  53061.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  53062.         eval value=\"\$HAVE_LIB$uppername\"
  53063.         if test -n "$value"; then
  53064.           if test "$value" = yes; then
  53065.             eval value=\"\$LIB$uppername\"
  53066.             test -z "$value" || LIBDL="${LIBDL}${LIBDL:+ }$value"
  53067.             eval value=\"\$LTLIB$uppername\"
  53068.             test -z "$value" || LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$value"
  53069.           else
  53070.                                     :
  53071.           fi
  53072.         else
  53073.                               found_dir=
  53074.           found_la=
  53075.           found_so=
  53076.           found_a=
  53077.           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  53078.           if test -n "$acl_shlibext"; then
  53079.             shrext=".$acl_shlibext"             # typically: shrext=.so
  53080.           else
  53081.             shrext=
  53082.           fi
  53083.           if test $use_additional = yes; then
  53084.             dir="$additional_libdir"
  53085.                                     if test -n "$acl_shlibext"; then
  53086.               if test -f "$dir/$libname$shrext"; then
  53087.                 found_dir="$dir"
  53088.                 found_so="$dir/$libname$shrext"
  53089.               else
  53090.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  53091.                   ver=`(cd "$dir" && \
  53092.                         for f in "$libname$shrext".*; do echo "$f"; done \
  53093.                         | sed -e "s,^$libname$shrext\\\\.,," \
  53094.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  53095.                         | sed 1q ) 2>/dev/null`
  53096.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  53097.                     found_dir="$dir"
  53098.                     found_so="$dir/$libname$shrext.$ver"
  53099.                   fi
  53100.                 else
  53101.                   eval library_names=\"$acl_library_names_spec\"
  53102.                   for f in $library_names; do
  53103.                     if test -f "$dir/$f"; then
  53104.                       found_dir="$dir"
  53105.                       found_so="$dir/$f"
  53106.                       break
  53107.                     fi
  53108.                   done
  53109.                 fi
  53110.               fi
  53111.             fi
  53112.                         if test "X$found_dir" = "X"; then
  53113.               if test -f "$dir/$libname.$acl_libext"; then
  53114.                 found_dir="$dir"
  53115.                 found_a="$dir/$libname.$acl_libext"
  53116.               fi
  53117.             fi
  53118.             if test "X$found_dir" != "X"; then
  53119.               if test -f "$dir/$libname.la"; then
  53120.                 found_la="$dir/$libname.la"
  53121.               fi
  53122.             fi
  53123.           fi
  53124.           if test "X$found_dir" = "X"; then
  53125.             for x in $LDFLAGS $LTLIBDL; do
  53126.  
  53127.   acl_save_prefix="$prefix"
  53128.   prefix="$acl_final_prefix"
  53129.   acl_save_exec_prefix="$exec_prefix"
  53130.   exec_prefix="$acl_final_exec_prefix"
  53131.   eval x=\"$x\"
  53132.   exec_prefix="$acl_save_exec_prefix"
  53133.   prefix="$acl_save_prefix"
  53134.  
  53135.               case "$x" in
  53136.                 -L*)
  53137.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  53138.                                     if test -n "$acl_shlibext"; then
  53139.                     if test -f "$dir/$libname$shrext"; then
  53140.                       found_dir="$dir"
  53141.                       found_so="$dir/$libname$shrext"
  53142.                     else
  53143.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  53144.                         ver=`(cd "$dir" && \
  53145.                               for f in "$libname$shrext".*; do echo "$f"; done \
  53146.                               | sed -e "s,^$libname$shrext\\\\.,," \
  53147.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  53148.                               | sed 1q ) 2>/dev/null`
  53149.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  53150.                           found_dir="$dir"
  53151.                           found_so="$dir/$libname$shrext.$ver"
  53152.                         fi
  53153.                       else
  53154.                         eval library_names=\"$acl_library_names_spec\"
  53155.                         for f in $library_names; do
  53156.                           if test -f "$dir/$f"; then
  53157.                             found_dir="$dir"
  53158.                             found_so="$dir/$f"
  53159.                             break
  53160.                           fi
  53161.                         done
  53162.                       fi
  53163.                     fi
  53164.                   fi
  53165.                                     if test "X$found_dir" = "X"; then
  53166.                     if test -f "$dir/$libname.$acl_libext"; then
  53167.                       found_dir="$dir"
  53168.                       found_a="$dir/$libname.$acl_libext"
  53169.                     fi
  53170.                   fi
  53171.                   if test "X$found_dir" != "X"; then
  53172.                     if test -f "$dir/$libname.la"; then
  53173.                       found_la="$dir/$libname.la"
  53174.                     fi
  53175.                   fi
  53176.                   ;;
  53177.               esac
  53178.               if test "X$found_dir" != "X"; then
  53179.                 break
  53180.               fi
  53181.             done
  53182.           fi
  53183.           if test "X$found_dir" != "X"; then
  53184.                         LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$found_dir -l$name"
  53185.             if test "X$found_so" != "X"; then
  53186.                                                         if test "$enable_rpath" = no \
  53187.                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  53188.                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  53189.                                 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
  53190.               else
  53191.                                                                                 haveit=
  53192.                 for x in $ltrpathdirs; do
  53193.                   if test "X$x" = "X$found_dir"; then
  53194.                     haveit=yes
  53195.                     break
  53196.                   fi
  53197.                 done
  53198.                 if test -z "$haveit"; then
  53199.                   ltrpathdirs="$ltrpathdirs $found_dir"
  53200.                 fi
  53201.                                 if test "$acl_hardcode_direct" = yes; then
  53202.                                                       LIBDL="${LIBDL}${LIBDL:+ }$found_so"
  53203.                 else
  53204.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  53205.                                                             LIBDL="${LIBDL}${LIBDL:+ }$found_so"
  53206.                                                             haveit=
  53207.                     for x in $rpathdirs; do
  53208.                       if test "X$x" = "X$found_dir"; then
  53209.                         haveit=yes
  53210.                         break
  53211.                       fi
  53212.                     done
  53213.                     if test -z "$haveit"; then
  53214.                       rpathdirs="$rpathdirs $found_dir"
  53215.                     fi
  53216.                   else
  53217.                                                                                 haveit=
  53218.                     for x in $LDFLAGS $LIBDL; do
  53219.  
  53220.   acl_save_prefix="$prefix"
  53221.   prefix="$acl_final_prefix"
  53222.   acl_save_exec_prefix="$exec_prefix"
  53223.   exec_prefix="$acl_final_exec_prefix"
  53224.   eval x=\"$x\"
  53225.   exec_prefix="$acl_save_exec_prefix"
  53226.   prefix="$acl_save_prefix"
  53227.  
  53228.                       if test "X$x" = "X-L$found_dir"; then
  53229.                         haveit=yes
  53230.                         break
  53231.                       fi
  53232.                     done
  53233.                     if test -z "$haveit"; then
  53234.                       LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir"
  53235.                     fi
  53236.                     if test "$acl_hardcode_minus_L" != no; then
  53237.                                                                                         LIBDL="${LIBDL}${LIBDL:+ }$found_so"
  53238.                     else
  53239.                                                                                                                                                                                 LIBDL="${LIBDL}${LIBDL:+ }-l$name"
  53240.                     fi
  53241.                   fi
  53242.                 fi
  53243.               fi
  53244.             else
  53245.               if test "X$found_a" != "X"; then
  53246.                                 LIBDL="${LIBDL}${LIBDL:+ }$found_a"
  53247.               else
  53248.                                                 LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir -l$name"
  53249.               fi
  53250.             fi
  53251.                         additional_includedir=
  53252.             case "$found_dir" in
  53253.               */$acl_libdirstem | */$acl_libdirstem/)
  53254.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  53255.                 if test "$name" = 'dl'; then
  53256.                   LIBDL_PREFIX="$basedir"
  53257.                 fi
  53258.                 additional_includedir="$basedir/include"
  53259.                 ;;
  53260.               */$acl_libdirstem2 | */$acl_libdirstem2/)
  53261.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  53262.                 if test "$name" = 'dl'; then
  53263.                   LIBDL_PREFIX="$basedir"
  53264.                 fi
  53265.                 additional_includedir="$basedir/include"
  53266.                 ;;
  53267.             esac
  53268.             if test "X$additional_includedir" != "X"; then
  53269.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  53270.                 haveit=
  53271.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  53272.                   if test -n "$GCC"; then
  53273.                     case $host_os in
  53274.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  53275.                     esac
  53276.                   fi
  53277.                 fi
  53278.                 if test -z "$haveit"; then
  53279.                   for x in $CPPFLAGS $INCDL; do
  53280.  
  53281.   acl_save_prefix="$prefix"
  53282.   prefix="$acl_final_prefix"
  53283.   acl_save_exec_prefix="$exec_prefix"
  53284.   exec_prefix="$acl_final_exec_prefix"
  53285.   eval x=\"$x\"
  53286.   exec_prefix="$acl_save_exec_prefix"
  53287.   prefix="$acl_save_prefix"
  53288.  
  53289.                     if test "X$x" = "X-I$additional_includedir"; then
  53290.                       haveit=yes
  53291.                       break
  53292.                     fi
  53293.                   done
  53294.                   if test -z "$haveit"; then
  53295.                     if test -d "$additional_includedir"; then
  53296.                                             INCDL="${INCDL}${INCDL:+ }-I$additional_includedir"
  53297.                     fi
  53298.                   fi
  53299.                 fi
  53300.               fi
  53301.             fi
  53302.                         if test -n "$found_la"; then
  53303.                                                         save_libdir="$libdir"
  53304.               case "$found_la" in
  53305.                 */* | *\\*) . "$found_la" ;;
  53306.                 *) . "./$found_la" ;;
  53307.               esac
  53308.               libdir="$save_libdir"
  53309.                             for dep in $dependency_libs; do
  53310.                 case "$dep" in
  53311.                   -L*)
  53312.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  53313.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  53314.                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  53315.                       haveit=
  53316.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  53317.                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  53318.                         if test -n "$GCC"; then
  53319.                           case $host_os in
  53320.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  53321.                           esac
  53322.                         fi
  53323.                       fi
  53324.                       if test -z "$haveit"; then
  53325.                         haveit=
  53326.                         for x in $LDFLAGS $LIBDL; do
  53327.  
  53328.   acl_save_prefix="$prefix"
  53329.   prefix="$acl_final_prefix"
  53330.   acl_save_exec_prefix="$exec_prefix"
  53331.   exec_prefix="$acl_final_exec_prefix"
  53332.   eval x=\"$x\"
  53333.   exec_prefix="$acl_save_exec_prefix"
  53334.   prefix="$acl_save_prefix"
  53335.  
  53336.                           if test "X$x" = "X-L$additional_libdir"; then
  53337.                             haveit=yes
  53338.                             break
  53339.                           fi
  53340.                         done
  53341.                         if test -z "$haveit"; then
  53342.                           if test -d "$additional_libdir"; then
  53343.                                                         LIBDL="${LIBDL}${LIBDL:+ }-L$additional_libdir"
  53344.                           fi
  53345.                         fi
  53346.                         haveit=
  53347.                         for x in $LDFLAGS $LTLIBDL; do
  53348.  
  53349.   acl_save_prefix="$prefix"
  53350.   prefix="$acl_final_prefix"
  53351.   acl_save_exec_prefix="$exec_prefix"
  53352.   exec_prefix="$acl_final_exec_prefix"
  53353.   eval x=\"$x\"
  53354.   exec_prefix="$acl_save_exec_prefix"
  53355.   prefix="$acl_save_prefix"
  53356.  
  53357.                           if test "X$x" = "X-L$additional_libdir"; then
  53358.                             haveit=yes
  53359.                             break
  53360.                           fi
  53361.                         done
  53362.                         if test -z "$haveit"; then
  53363.                           if test -d "$additional_libdir"; then
  53364.                                                         LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$additional_libdir"
  53365.                           fi
  53366.                         fi
  53367.                       fi
  53368.                     fi
  53369.                     ;;
  53370.                   -R*)
  53371.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  53372.                     if test "$enable_rpath" != no; then
  53373.                                                                   haveit=
  53374.                       for x in $rpathdirs; do
  53375.                         if test "X$x" = "X$dir"; then
  53376.                           haveit=yes
  53377.                           break
  53378.                         fi
  53379.                       done
  53380.                       if test -z "$haveit"; then
  53381.                         rpathdirs="$rpathdirs $dir"
  53382.                       fi
  53383.                                                                   haveit=
  53384.                       for x in $ltrpathdirs; do
  53385.                         if test "X$x" = "X$dir"; then
  53386.                           haveit=yes
  53387.                           break
  53388.                         fi
  53389.                       done
  53390.                       if test -z "$haveit"; then
  53391.                         ltrpathdirs="$ltrpathdirs $dir"
  53392.                       fi
  53393.                     fi
  53394.                     ;;
  53395.                   -l*)
  53396.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  53397.                     ;;
  53398.                   *.la)
  53399.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  53400.                     ;;
  53401.                   *)
  53402.                                         LIBDL="${LIBDL}${LIBDL:+ }$dep"
  53403.                     LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$dep"
  53404.                     ;;
  53405.                 esac
  53406.               done
  53407.             fi
  53408.           else
  53409.                                                             LIBDL="${LIBDL}${LIBDL:+ }-l$name"
  53410.             LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-l$name"
  53411.           fi
  53412.         fi
  53413.       fi
  53414.     done
  53415.   done
  53416.   if test "X$rpathdirs" != "X"; then
  53417.     if test -n "$acl_hardcode_libdir_separator"; then
  53418.                         alldirs=
  53419.       for found_dir in $rpathdirs; do
  53420.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  53421.       done
  53422.             acl_save_libdir="$libdir"
  53423.       libdir="$alldirs"
  53424.       eval flag=\"$acl_hardcode_libdir_flag_spec\"
  53425.       libdir="$acl_save_libdir"
  53426.       LIBDL="${LIBDL}${LIBDL:+ }$flag"
  53427.     else
  53428.             for found_dir in $rpathdirs; do
  53429.         acl_save_libdir="$libdir"
  53430.         libdir="$found_dir"
  53431.         eval flag=\"$acl_hardcode_libdir_flag_spec\"
  53432.         libdir="$acl_save_libdir"
  53433.         LIBDL="${LIBDL}${LIBDL:+ }$flag"
  53434.       done
  53435.     fi
  53436.   fi
  53437.   if test "X$ltrpathdirs" != "X"; then
  53438.             for found_dir in $ltrpathdirs; do
  53439.       LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-R$found_dir"
  53440.     done
  53441.   fi
  53442.  
  53443.  
  53444.  
  53445.  
  53446.  
  53447.  
  53448.  
  53449.         ac_save_CPPFLAGS="$CPPFLAGS"
  53450.  
  53451.   for element in $INCDL; do
  53452.     haveit=
  53453.     for x in $CPPFLAGS; do
  53454.  
  53455.   acl_save_prefix="$prefix"
  53456.   prefix="$acl_final_prefix"
  53457.   acl_save_exec_prefix="$exec_prefix"
  53458.   exec_prefix="$acl_final_exec_prefix"
  53459.   eval x=\"$x\"
  53460.   exec_prefix="$acl_save_exec_prefix"
  53461.   prefix="$acl_save_prefix"
  53462.  
  53463.       if test "X$x" = "X$element"; then
  53464.         haveit=yes
  53465.         break
  53466.       fi
  53467.     done
  53468.     if test -z "$haveit"; then
  53469.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  53470.     fi
  53471.   done
  53472.  
  53473.  
  53474.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
  53475. $as_echo_n "checking for libdl... " >&6; }
  53476. if ${ac_cv_libdl+:} false; then :
  53477.   $as_echo_n "(cached) " >&6
  53478. else
  53479.  
  53480.     ac_save_LIBS="$LIBS"
  53481.                                 case " $LIBDL" in
  53482.       *" -l"*) LIBS="$LIBS $LIBDL" ;;
  53483.       *)       LIBS="$LIBDL $LIBS" ;;
  53484.     esac
  53485.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53486. /* end confdefs.h.  */
  53487. #include <dlfcn.h>
  53488. int
  53489. main ()
  53490. {
  53491. dladdr (0, 0);
  53492.   ;
  53493.   return 0;
  53494. }
  53495. _ACEOF
  53496. if ac_fn_c_try_link "$LINENO"; then :
  53497.   ac_cv_libdl=yes
  53498. else
  53499.   ac_cv_libdl='no'
  53500. fi
  53501. rm -f core conftest.err conftest.$ac_objext \
  53502.     conftest$ac_exeext conftest.$ac_ext
  53503.     LIBS="$ac_save_LIBS"
  53504.  
  53505. fi
  53506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libdl" >&5
  53507. $as_echo "$ac_cv_libdl" >&6; }
  53508.   if test "$ac_cv_libdl" = yes; then
  53509.     HAVE_LIBDL=yes
  53510.  
  53511. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  53512.  
  53513.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libdl" >&5
  53514. $as_echo_n "checking how to link with libdl... " >&6; }
  53515.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBDL" >&5
  53516. $as_echo "$LIBDL" >&6; }
  53517.   else
  53518.     HAVE_LIBDL=no
  53519.             CPPFLAGS="$ac_save_CPPFLAGS"
  53520.     LIBDL=
  53521.     LTLIBDL=
  53522.     LIBDL_PREFIX=
  53523.   fi
  53524.  
  53525.  
  53526.  
  53527.  
  53528.  
  53529.  
  53530.  
  53531.  
  53532. # Check whether --enable-fips140-mode was given.
  53533. if test "${enable_fips140_mode+set}" = set; then :
  53534.   enableval=$enable_fips140_mode; enable_fips=$enableval
  53535. else
  53536.   enable_fips=no
  53537. fi
  53538.  
  53539.  if test "$enable_fips" = "yes"; then
  53540.   ENABLE_FIPS140_TRUE=
  53541.   ENABLE_FIPS140_FALSE='#'
  53542. else
  53543.   ENABLE_FIPS140_TRUE='#'
  53544.   ENABLE_FIPS140_FALSE=
  53545. fi
  53546.  
  53547. if  test "$enable_fips" = "yes" ;then
  53548.   if test "x$HAVE_LIBDL" = "xyes";then
  53549.  
  53550. $as_echo "#define ENABLE_FIPS140 1" >>confdefs.h
  53551.  
  53552.     FIPS140_LIBS=$LIBDL
  53553.  
  53554.  
  53555. # Check whether --with-fips140-key was given.
  53556. if test "${with_fips140_key+set}" = set; then :
  53557.   withval=$with_fips140_key; fips_key="$withval"
  53558. else
  53559.   fips_key="orboDeJITITejsirpADONivirpUkvarP"
  53560. fi
  53561.  
  53562.  
  53563.  
  53564. cat >>confdefs.h <<_ACEOF
  53565. #define FIPS_KEY "$fips_key"
  53566. _ACEOF
  53567.  
  53568.   else
  53569.     enable_fips=no
  53570.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  53571. ***
  53572. *** This system is not supported in FIPS140 mode.
  53573. *** libdl and dladdr() are required.
  53574. *** " >&5
  53575. $as_echo "$as_me: WARNING:
  53576. ***
  53577. *** This system is not supported in FIPS140 mode.
  53578. *** libdl and dladdr() are required.
  53579. *** " >&2;}
  53580.   fi
  53581. fi
  53582.  
  53583.  
  53584. pkg_failed=no
  53585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMOCKA" >&5
  53586. $as_echo_n "checking for CMOCKA... " >&6; }
  53587.  
  53588. if test -n "$PKG_CONFIG"; then
  53589.     if test -n "$CMOCKA_CFLAGS"; then
  53590.         pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
  53591.     else
  53592.         if test -n "$PKG_CONFIG" && \
  53593.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.1\""; } >&5
  53594.   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.1") 2>&5
  53595.   ac_status=$?
  53596.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53597.   test $ac_status = 0; }; then
  53598.   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.1" 2>/dev/null`
  53599. else
  53600.   pkg_failed=yes
  53601. fi
  53602.     fi
  53603. else
  53604.         pkg_failed=untried
  53605. fi
  53606. if test -n "$PKG_CONFIG"; then
  53607.     if test -n "$CMOCKA_LIBS"; then
  53608.         pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
  53609.     else
  53610.         if test -n "$PKG_CONFIG" && \
  53611.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.1\""; } >&5
  53612.   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.1") 2>&5
  53613.   ac_status=$?
  53614.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  53615.   test $ac_status = 0; }; then
  53616.   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.1" 2>/dev/null`
  53617. else
  53618.   pkg_failed=yes
  53619. fi
  53620.     fi
  53621. else
  53622.         pkg_failed=untried
  53623. fi
  53624.  
  53625.  
  53626.  
  53627. if test $pkg_failed = yes; then
  53628.  
  53629. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  53630.         _pkg_short_errors_supported=yes
  53631. else
  53632.         _pkg_short_errors_supported=no
  53633. fi
  53634.         if test $_pkg_short_errors_supported = yes; then
  53635.                 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cmocka >= 1.0.1"`
  53636.         else
  53637.                 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cmocka >= 1.0.1"`
  53638.         fi
  53639.         # Put the nasty error message in config.log where it belongs
  53640.         echo "$CMOCKA_PKG_ERRORS" >&5
  53641.  
  53642.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  53643. $as_echo "no" >&6; }
  53644.                 with_cmocka=no
  53645. elif test $pkg_failed = untried; then
  53646.         with_cmocka=no
  53647. else
  53648.         CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
  53649.         CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
  53650.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  53651. $as_echo "yes" >&6; }
  53652.         with_cmocka=yes
  53653. fi
  53654.  if test "$with_cmocka" != "no"; then
  53655.   HAVE_CMOCKA_TRUE=
  53656.   HAVE_CMOCKA_FALSE='#'
  53657. else
  53658.   HAVE_CMOCKA_TRUE='#'
  53659.   HAVE_CMOCKA_FALSE=
  53660. fi
  53661.  
  53662.  
  53663. with_old_nettle=no
  53664. if ! $PKG_CONFIG --atleast-version=3.3 nettle; then
  53665.         with_old_nettle=yes
  53666. fi
  53667.  if test "$with_old_nettle" != "no"; then
  53668.   WITH_OLD_NETTLE_TRUE=
  53669.   WITH_OLD_NETTLE_FALSE='#'
  53670. else
  53671.   WITH_OLD_NETTLE_TRUE='#'
  53672.   WITH_OLD_NETTLE_FALSE=
  53673. fi
  53674.  
  53675.  
  53676.  
  53677.  
  53678. # Check whether --with-idn was given.
  53679. if test "${with_idn+set}" = set; then :
  53680.   withval=$with_idn; try_libidn2="$withval"
  53681. else
  53682.   try_libidn2=yes
  53683. fi
  53684.  
  53685.  
  53686. idna_support=no
  53687. with_libidn2=no
  53688.  
  53689. if test "$try_libidn2" = yes;then
  53690.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_lookup_u8" >&5
  53691. $as_echo_n "checking for library containing idn2_lookup_u8... " >&6; }
  53692. if ${ac_cv_search_idn2_lookup_u8+:} false; then :
  53693.   $as_echo_n "(cached) " >&6
  53694. else
  53695.   ac_func_search_save_LIBS=$LIBS
  53696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53697. /* end confdefs.h.  */
  53698.  
  53699. /* Override any GCC internal prototype to avoid an error.
  53700.    Use char because int might match the return type of a GCC
  53701.    builtin and then its argument prototype would still apply.  */
  53702. #ifdef __cplusplus
  53703. extern "C"
  53704. #endif
  53705. char idn2_lookup_u8 ();
  53706. int
  53707. main ()
  53708. {
  53709. return idn2_lookup_u8 ();
  53710.   ;
  53711.   return 0;
  53712. }
  53713. _ACEOF
  53714. for ac_lib in '' idn2; do
  53715.   if test -z "$ac_lib"; then
  53716.     ac_res="none required"
  53717.   else
  53718.     ac_res=-l$ac_lib
  53719.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  53720.   fi
  53721.   if ac_fn_c_try_link "$LINENO"; then :
  53722.   ac_cv_search_idn2_lookup_u8=$ac_res
  53723. fi
  53724. rm -f core conftest.err conftest.$ac_objext \
  53725.     conftest$ac_exeext
  53726.   if ${ac_cv_search_idn2_lookup_u8+:} false; then :
  53727.   break
  53728. fi
  53729. done
  53730. if ${ac_cv_search_idn2_lookup_u8+:} false; then :
  53731.  
  53732. else
  53733.   ac_cv_search_idn2_lookup_u8=no
  53734. fi
  53735. rm conftest.$ac_ext
  53736. LIBS=$ac_func_search_save_LIBS
  53737. fi
  53738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_lookup_u8" >&5
  53739. $as_echo "$ac_cv_search_idn2_lookup_u8" >&6; }
  53740. ac_res=$ac_cv_search_idn2_lookup_u8
  53741. if test "$ac_res" != no; then :
  53742.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  53743.  
  53744.       with_libidn2=yes;
  53745.       idna_support="IDNA 2008 (libidn2)"
  53746.  
  53747. $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
  53748.  
  53749.  
  53750.       LIBIDN2_LIBS=-lidn2
  53751.  
  53752. else
  53753.  
  53754.       with_libidn2=no;
  53755.       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** LIBIDN2 was not found. You will not be able to use IDN2008 support" >&5
  53756. $as_echo "$as_me: WARNING: *** LIBIDN2 was not found. You will not be able to use IDN2008 support" >&2;}
  53757.  
  53758. fi
  53759.  
  53760. else
  53761.     with_libidn2=no
  53762. fi
  53763.  
  53764.  if test "$with_libidn2" != "no"; then
  53765.   HAVE_LIBIDN2_TRUE=
  53766.   HAVE_LIBIDN2_FALSE='#'
  53767. else
  53768.   HAVE_LIBIDN2_TRUE='#'
  53769.   HAVE_LIBIDN2_FALSE=
  53770. fi
  53771.  
  53772.  
  53773. # Check whether --enable-non-suiteb-curves was given.
  53774. if test "${enable_non_suiteb_curves+set}" = set; then :
  53775.   enableval=$enable_non_suiteb_curves; enable_non_suiteb=$enableval
  53776. else
  53777.   enable_non_suiteb=yes
  53778. fi
  53779.  
  53780.  
  53781. if test "$enable_non_suiteb" = "yes";then
  53782.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_secp_192r1 in -lhogweed" >&5
  53783. $as_echo_n "checking for nettle_secp_192r1 in -lhogweed... " >&6; }
  53784. if ${ac_cv_lib_hogweed_nettle_secp_192r1+:} false; then :
  53785.   $as_echo_n "(cached) " >&6
  53786. else
  53787.   ac_check_lib_save_LIBS=$LIBS
  53788. LIBS="-lhogweed $HOGWEED_LIBS $LIBS"
  53789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53790. /* end confdefs.h.  */
  53791.  
  53792. /* Override any GCC internal prototype to avoid an error.
  53793.    Use char because int might match the return type of a GCC
  53794.    builtin and then its argument prototype would still apply.  */
  53795. #ifdef __cplusplus
  53796. extern "C"
  53797. #endif
  53798. char nettle_secp_192r1 ();
  53799. int
  53800. main ()
  53801. {
  53802. return nettle_secp_192r1 ();
  53803.   ;
  53804.   return 0;
  53805. }
  53806. _ACEOF
  53807. if ac_fn_c_try_link "$LINENO"; then :
  53808.   ac_cv_lib_hogweed_nettle_secp_192r1=yes
  53809. else
  53810.   ac_cv_lib_hogweed_nettle_secp_192r1=no
  53811. fi
  53812. rm -f core conftest.err conftest.$ac_objext \
  53813.     conftest$ac_exeext conftest.$ac_ext
  53814. LIBS=$ac_check_lib_save_LIBS
  53815. fi
  53816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hogweed_nettle_secp_192r1" >&5
  53817. $as_echo "$ac_cv_lib_hogweed_nettle_secp_192r1" >&6; }
  53818. if test "x$ac_cv_lib_hogweed_nettle_secp_192r1" = xyes; then :
  53819.   enable_non_suiteb=yes
  53820. else
  53821.   enable_non_suiteb=no
  53822. fi
  53823.  
  53824.  
  53825.         if test "$enable_non_suiteb" = "yes";then
  53826.  
  53827. $as_echo "#define ENABLE_NON_SUITEB_CURVES 1" >>confdefs.h
  53828.  
  53829.         fi
  53830. fi
  53831.  if test "$enable_non_suiteb" = "yes"; then
  53832.   ENABLE_NON_SUITEB_CURVES_TRUE=
  53833.   ENABLE_NON_SUITEB_CURVES_FALSE='#'
  53834. else
  53835.   ENABLE_NON_SUITEB_CURVES_TRUE='#'
  53836.   ENABLE_NON_SUITEB_CURVES_FALSE=
  53837. fi
  53838.  
  53839.  
  53840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_rsa_pss_sha256_verify_digest in -lhogweed" >&5
  53841. $as_echo_n "checking for nettle_rsa_pss_sha256_verify_digest in -lhogweed... " >&6; }
  53842. if ${ac_cv_lib_hogweed_nettle_rsa_pss_sha256_verify_digest+:} false; then :
  53843.   $as_echo_n "(cached) " >&6
  53844. else
  53845.   ac_check_lib_save_LIBS=$LIBS
  53846. LIBS="-lhogweed $HOGWEED_LIBS $LIBS"
  53847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53848. /* end confdefs.h.  */
  53849.  
  53850. /* Override any GCC internal prototype to avoid an error.
  53851.    Use char because int might match the return type of a GCC
  53852.    builtin and then its argument prototype would still apply.  */
  53853. #ifdef __cplusplus
  53854. extern "C"
  53855. #endif
  53856. char nettle_rsa_pss_sha256_verify_digest ();
  53857. int
  53858. main ()
  53859. {
  53860. return nettle_rsa_pss_sha256_verify_digest ();
  53861.   ;
  53862.   return 0;
  53863. }
  53864. _ACEOF
  53865. if ac_fn_c_try_link "$LINENO"; then :
  53866.   ac_cv_lib_hogweed_nettle_rsa_pss_sha256_verify_digest=yes
  53867. else
  53868.   ac_cv_lib_hogweed_nettle_rsa_pss_sha256_verify_digest=no
  53869. fi
  53870. rm -f core conftest.err conftest.$ac_objext \
  53871.     conftest$ac_exeext conftest.$ac_ext
  53872. LIBS=$ac_check_lib_save_LIBS
  53873. fi
  53874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hogweed_nettle_rsa_pss_sha256_verify_digest" >&5
  53875. $as_echo "$ac_cv_lib_hogweed_nettle_rsa_pss_sha256_verify_digest" >&6; }
  53876. if test "x$ac_cv_lib_hogweed_nettle_rsa_pss_sha256_verify_digest" = xyes; then :
  53877.   have_nettle_rsa_pss=yes
  53878. else
  53879.   have_nettle_rsa_pss=no
  53880. fi
  53881.  
  53882.  
  53883. if test "$have_nettle_rsa_pss" = "yes";then
  53884.  
  53885. $as_echo "#define HAVE_NETTLE_RSA_PSS 1" >>confdefs.h
  53886.  
  53887. fi
  53888.  if test "$have_nettle_rsa_pss" = "yes"; then
  53889.   HAVE_NETTLE_RSA_PSS_TRUE=
  53890.   HAVE_NETTLE_RSA_PSS_FALSE='#'
  53891. else
  53892.   HAVE_NETTLE_RSA_PSS_TRUE='#'
  53893.   HAVE_NETTLE_RSA_PSS_FALSE=
  53894. fi
  53895.  
  53896.  
  53897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libdane" >&5
  53898. $as_echo_n "checking whether to build libdane... " >&6; }
  53899. # Check whether --enable-libdane was given.
  53900. if test "${enable_libdane+set}" = set; then :
  53901.   enableval=$enable_libdane; enable_dane=$enableval
  53902. else
  53903.   enable_dane=yes
  53904. fi
  53905.  
  53906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dane" >&5
  53907. $as_echo "$enable_dane" >&6; }
  53908.  
  53909. if test "$enable_dane" != "no"; then
  53910.     LIBS="$oldlibs -lunbound"
  53911.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unbound library" >&5
  53912. $as_echo_n "checking for unbound library... " >&6; }
  53913.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53914. /* end confdefs.h.  */
  53915.  
  53916.                    #include <unbound.h>
  53917. int
  53918. main ()
  53919. {
  53920.  
  53921.                    struct ub_ctx* ctx;
  53922.                    ctx = ub_ctx_create();
  53923.   ;
  53924.   return 0;
  53925. }
  53926. _ACEOF
  53927. if ac_fn_c_try_link "$LINENO"; then :
  53928.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  53929. $as_echo "yes" >&6; }
  53930.                    UNBOUND_LIBS=-lunbound
  53931.  
  53932.  
  53933.  
  53934. $as_echo "#define HAVE_DANE 1" >>confdefs.h
  53935.  
  53936.                    enable_dane=yes
  53937. else
  53938.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  53939. $as_echo "no" >&6; }
  53940.                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  53941. ***
  53942. *** libunbound was not found. Libdane will not be built.
  53943. *** " >&5
  53944. $as_echo "$as_me: WARNING:
  53945. ***
  53946. *** libunbound was not found. Libdane will not be built.
  53947. *** " >&2;}
  53948.                   enable_dane=no
  53949. fi
  53950. rm -f core conftest.err conftest.$ac_objext \
  53951.     conftest$ac_exeext conftest.$ac_ext
  53952.     LIBS="$oldlibs"
  53953. fi
  53954.  
  53955.  if test "$enable_dane" = "yes"; then
  53956.   ENABLE_DANE_TRUE=
  53957.   ENABLE_DANE_FALSE='#'
  53958. else
  53959.   ENABLE_DANE_TRUE='#'
  53960.   ENABLE_DANE_FALSE=
  53961. fi
  53962.  
  53963.  
  53964.  
  53965. # Check whether --with-unbound-root-key-file was given.
  53966. if test "${with_unbound_root_key_file+set}" = set; then :
  53967.   withval=$with_unbound_root_key_file; unbound_root_key_file="$withval"
  53968. else
  53969.   if test "$have_win" = yes; then
  53970.     unbound_root_key_file="C:\\Program Files\\Unbound\\root.key"
  53971. else
  53972.     if test -f /var/lib/unbound/root.key;then
  53973.         unbound_root_key_file="/var/lib/unbound/root.key"
  53974.     else
  53975.         if test -f /usr/share/dns/root.key;then
  53976.             unbound_root_key_file="/usr/share/dns/root.key"
  53977.         else
  53978.             unbound_root_key_file="/etc/unbound/root.key"
  53979.         fi
  53980.     fi
  53981. fi
  53982.  
  53983. fi
  53984.  
  53985.  
  53986.  
  53987. cat >>confdefs.h <<_ACEOF
  53988. #define UNBOUND_ROOT_KEY_FILE "$unbound_root_key_file"
  53989. _ACEOF
  53990.  
  53991.  
  53992.  
  53993. # Check whether --with-system-priority-file was given.
  53994. if test "${with_system_priority_file+set}" = set; then :
  53995.   withval=$with_system_priority_file; system_priority_file="$withval"
  53996. else
  53997.   system_priority_file="/etc/gnutls/default-priorities"
  53998.  
  53999. fi
  54000.  
  54001.  
  54002.  
  54003. cat >>confdefs.h <<_ACEOF
  54004. #define SYSTEM_PRIORITY_FILE "$system_priority_file"
  54005. _ACEOF
  54006.  
  54007.  
  54008.  
  54009. # Check whether --with-default-priority-string was given.
  54010. if test "${with_default_priority_string+set}" = set; then :
  54011.   withval=$with_default_priority_string; prio_string="$withval"
  54012. else
  54013.   prio_string="NORMAL"
  54014. fi
  54015.  
  54016.  
  54017.  
  54018. cat >>confdefs.h <<_ACEOF
  54019. #define DEFAULT_PRIORITY_STRING "$prio_string"
  54020. _ACEOF
  54021.  
  54022.  
  54023. P11_KIT_MINIMUM=0.23.1
  54024.  
  54025. # Check whether --with-p11-kit was given.
  54026. if test "${with_p11_kit+set}" = set; then :
  54027.   withval=$with_p11_kit;
  54028. fi
  54029.  
  54030. if test "$with_p11_kit" != "no"; then
  54031.  
  54032. pkg_failed=no
  54033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
  54034. $as_echo_n "checking for P11_KIT... " >&6; }
  54035.  
  54036. if test -n "$PKG_CONFIG"; then
  54037.     if test -n "$P11_KIT_CFLAGS"; then
  54038.         pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
  54039.     else
  54040.         if test -n "$PKG_CONFIG" && \
  54041.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
  54042.   ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
  54043.   ac_status=$?
  54044.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  54045.   test $ac_status = 0; }; then
  54046.   pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
  54047. else
  54048.   pkg_failed=yes
  54049. fi
  54050.     fi
  54051. else
  54052.         pkg_failed=untried
  54053. fi
  54054. if test -n "$PKG_CONFIG"; then
  54055.     if test -n "$P11_KIT_LIBS"; then
  54056.         pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
  54057.     else
  54058.         if test -n "$PKG_CONFIG" && \
  54059.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
  54060.   ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
  54061.   ac_status=$?
  54062.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  54063.   test $ac_status = 0; }; then
  54064.   pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
  54065. else
  54066.   pkg_failed=yes
  54067. fi
  54068.     fi
  54069. else
  54070.         pkg_failed=untried
  54071. fi
  54072.  
  54073.  
  54074.  
  54075. if test $pkg_failed = yes; then
  54076.  
  54077. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  54078.         _pkg_short_errors_supported=yes
  54079. else
  54080.         _pkg_short_errors_supported=no
  54081. fi
  54082.         if test $_pkg_short_errors_supported = yes; then
  54083.                 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
  54084.         else
  54085.                 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
  54086.         fi
  54087.         # Put the nasty error message in config.log where it belongs
  54088.         echo "$P11_KIT_PKG_ERRORS" >&5
  54089.  
  54090.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  54091. $as_echo "no" >&6; }
  54092.                 with_p11_kit=no
  54093. elif test $pkg_failed = untried; then
  54094.         with_p11_kit=no
  54095. else
  54096.         P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
  54097.         P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
  54098.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  54099. $as_echo "yes" >&6; }
  54100.         with_p11_kit=yes
  54101. fi
  54102.         if test "$with_p11_kit" != "no";then
  54103.  
  54104. $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
  54105.  
  54106.                 if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
  54107.                         GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
  54108.                 else
  54109.                         GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
  54110.                 fi
  54111.         else
  54112.                 with_p11_kit=no
  54113.                 as_fn_error $? "
  54114. ***
  54115. *** p11-kit >= $P11_KIT_MINIMUM was not found. To disable PKCS #11 support
  54116. *** use --without-p11-kit, otherwise you may get p11-kit from
  54117. *** http://p11-glue.freedesktop.org/p11-kit.html
  54118. *** " "$LINENO" 5
  54119.         fi
  54120. fi
  54121.  
  54122.  if test "$with_p11_kit" != "no"; then
  54123.   ENABLE_PKCS11_TRUE=
  54124.   ENABLE_PKCS11_FALSE='#'
  54125. else
  54126.   ENABLE_PKCS11_TRUE='#'
  54127.   ENABLE_PKCS11_FALSE=
  54128. fi
  54129.  
  54130.  
  54131.  
  54132. # Check whether --with-tpm was given.
  54133. if test "${with_tpm+set}" = set; then :
  54134.   withval=$with_tpm; with_tpm=$withval
  54135. else
  54136.   with_tpm=yes
  54137. fi
  54138.  
  54139. if test "$with_tpm" != "no"; then
  54140.     LIBS="$oldlibs -ltspi"
  54141.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tss library" >&5
  54142. $as_echo_n "checking for tss library... " >&6; }
  54143.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54144. /* end confdefs.h.  */
  54145.  
  54146.                    #include <trousers/tss.h>
  54147.                    #include <trousers/trousers.h>
  54148. int
  54149. main ()
  54150. {
  54151.  
  54152.                    int err = Tspi_Context_Create((void *)0);
  54153.                    Trspi_Error_String(err);
  54154.   ;
  54155.   return 0;
  54156. }
  54157. _ACEOF
  54158. if ac_fn_c_try_link "$LINENO"; then :
  54159.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  54160. $as_echo "yes" >&6; }
  54161.                    TSS_LIBS=-ltspi
  54162.  
  54163.  
  54164.  
  54165. $as_echo "#define HAVE_TROUSERS 1" >>confdefs.h
  54166.  
  54167.                    with_tpm=yes
  54168. else
  54169.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  54170. $as_echo "no" >&6; }
  54171.                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  54172. ***
  54173. *** trousers was not found. TPM support will be disabled.
  54174. *** " >&5
  54175. $as_echo "$as_me: WARNING:
  54176. ***
  54177. *** trousers was not found. TPM support will be disabled.
  54178. *** " >&2;}
  54179.                   with_tpm=no
  54180. fi
  54181. rm -f core conftest.err conftest.$ac_objext \
  54182.     conftest$ac_exeext conftest.$ac_ext
  54183.     LIBS="$oldlibs"
  54184. fi
  54185.  
  54186.  if test "$with_tpm" != "no"; then
  54187.   ENABLE_TROUSERS_TRUE=
  54188.   ENABLE_TROUSERS_FALSE='#'
  54189. else
  54190.   ENABLE_TROUSERS_TRUE='#'
  54191.   ENABLE_TROUSERS_FALSE=
  54192. fi
  54193.  
  54194.  
  54195. for l in /usr/lib64 /usr/lib /lib64 /lib /usr/lib/x86_64-linux-gnu/; do
  54196.     if test -f "${l}/libtspi.so.1";then
  54197.         default_trousers_lib="${l}/libtspi.so.1"
  54198.         break
  54199.     fi
  54200. done
  54201.  
  54202.  
  54203. # Check whether --with-trousers-lib was given.
  54204. if test "${with_trousers_lib+set}" = set; then :
  54205.   withval=$with_trousers_lib; ac_trousers_lib=$withval
  54206. else
  54207.   ac_trousers_lib=$default_trousers_lib
  54208. fi
  54209.  
  54210.  
  54211. if test "$with_tpm" != "no" && test -z "$ac_trousers_lib"; then
  54212.     as_fn_error $? "
  54213.  ***
  54214.  *** unable to find trousers library, please specify with --with-trousers-lib=<lib file>
  54215.  ***
  54216.  " "$LINENO" 5
  54217. fi
  54218.  
  54219.  
  54220. cat >>confdefs.h <<_ACEOF
  54221. #define TROUSERS_LIB "$ac_trousers_lib"
  54222. _ACEOF
  54223.  
  54224.  
  54225.  
  54226. included_libopts=no
  54227. create_libopts_links=no
  54228. if test "$enable_tools" != "no" || test "$enable_doc" != "no"; then
  54229.  
  54230.  
  54231.   ac_header_dirent=no
  54232. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  54233.   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  54234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  54235. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  54236. if eval \${$as_ac_Header+:} false; then :
  54237.   $as_echo_n "(cached) " >&6
  54238. else
  54239.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54240. /* end confdefs.h.  */
  54241. #include <sys/types.h>
  54242. #include <$ac_hdr>
  54243.  
  54244. int
  54245. main ()
  54246. {
  54247. if ((DIR *) 0)
  54248. return 0;
  54249.   ;
  54250.   return 0;
  54251. }
  54252. _ACEOF
  54253. if ac_fn_c_try_compile "$LINENO"; then :
  54254.   eval "$as_ac_Header=yes"
  54255. else
  54256.   eval "$as_ac_Header=no"
  54257. fi
  54258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54259. fi
  54260. eval ac_res=\$$as_ac_Header
  54261.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  54262. $as_echo "$ac_res" >&6; }
  54263. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  54264.   cat >>confdefs.h <<_ACEOF
  54265. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  54266. _ACEOF
  54267.  
  54268. ac_header_dirent=$ac_hdr; break
  54269. fi
  54270.  
  54271. done
  54272. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  54273. if test $ac_header_dirent = dirent.h; then
  54274.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  54275. $as_echo_n "checking for library containing opendir... " >&6; }
  54276. if ${ac_cv_search_opendir+:} false; then :
  54277.   $as_echo_n "(cached) " >&6
  54278. else
  54279.   ac_func_search_save_LIBS=$LIBS
  54280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54281. /* end confdefs.h.  */
  54282.  
  54283. /* Override any GCC internal prototype to avoid an error.
  54284.    Use char because int might match the return type of a GCC
  54285.    builtin and then its argument prototype would still apply.  */
  54286. #ifdef __cplusplus
  54287. extern "C"
  54288. #endif
  54289. char opendir ();
  54290. int
  54291. main ()
  54292. {
  54293. return opendir ();
  54294.   ;
  54295.   return 0;
  54296. }
  54297. _ACEOF
  54298. for ac_lib in '' dir; do
  54299.   if test -z "$ac_lib"; then
  54300.     ac_res="none required"
  54301.   else
  54302.     ac_res=-l$ac_lib
  54303.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  54304.   fi
  54305.   if ac_fn_c_try_link "$LINENO"; then :
  54306.   ac_cv_search_opendir=$ac_res
  54307. fi
  54308. rm -f core conftest.err conftest.$ac_objext \
  54309.     conftest$ac_exeext
  54310.   if ${ac_cv_search_opendir+:} false; then :
  54311.   break
  54312. fi
  54313. done
  54314. if ${ac_cv_search_opendir+:} false; then :
  54315.  
  54316. else
  54317.   ac_cv_search_opendir=no
  54318. fi
  54319. rm conftest.$ac_ext
  54320. LIBS=$ac_func_search_save_LIBS
  54321. fi
  54322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  54323. $as_echo "$ac_cv_search_opendir" >&6; }
  54324. ac_res=$ac_cv_search_opendir
  54325. if test "$ac_res" != no; then :
  54326.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  54327.  
  54328. fi
  54329.  
  54330. else
  54331.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  54332. $as_echo_n "checking for library containing opendir... " >&6; }
  54333. if ${ac_cv_search_opendir+:} false; then :
  54334.   $as_echo_n "(cached) " >&6
  54335. else
  54336.   ac_func_search_save_LIBS=$LIBS
  54337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54338. /* end confdefs.h.  */
  54339.  
  54340. /* Override any GCC internal prototype to avoid an error.
  54341.    Use char because int might match the return type of a GCC
  54342.    builtin and then its argument prototype would still apply.  */
  54343. #ifdef __cplusplus
  54344. extern "C"
  54345. #endif
  54346. char opendir ();
  54347. int
  54348. main ()
  54349. {
  54350. return opendir ();
  54351.   ;
  54352.   return 0;
  54353. }
  54354. _ACEOF
  54355. for ac_lib in '' x; do
  54356.   if test -z "$ac_lib"; then
  54357.     ac_res="none required"
  54358.   else
  54359.     ac_res=-l$ac_lib
  54360.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  54361.   fi
  54362.   if ac_fn_c_try_link "$LINENO"; then :
  54363.   ac_cv_search_opendir=$ac_res
  54364. fi
  54365. rm -f core conftest.err conftest.$ac_objext \
  54366.     conftest$ac_exeext
  54367.   if ${ac_cv_search_opendir+:} false; then :
  54368.   break
  54369. fi
  54370. done
  54371. if ${ac_cv_search_opendir+:} false; then :
  54372.  
  54373. else
  54374.   ac_cv_search_opendir=no
  54375. fi
  54376. rm conftest.$ac_ext
  54377. LIBS=$ac_func_search_save_LIBS
  54378. fi
  54379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  54380. $as_echo "$ac_cv_search_opendir" >&6; }
  54381. ac_res=$ac_cv_search_opendir
  54382. if test "$ac_res" != no; then :
  54383.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  54384.  
  54385. fi
  54386.  
  54387. fi
  54388.  
  54389.  
  54390.   # =================
  54391.   # AC_CHECK_HEADERS
  54392.   # =================
  54393.   for ac_header in  \
  54394.       sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
  54395.       sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
  54396.       sys/un.h      sys/wait.h    dlfcn.h       errno.h \
  54397.       fcntl.h       libgen.h      libintl.h     memory.h \
  54398.       netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
  54399.       unistd.h      utime.h
  54400. do :
  54401.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  54402. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  54403. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  54404.   cat >>confdefs.h <<_ACEOF
  54405. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  54406. _ACEOF
  54407.  
  54408. fi
  54409.  
  54410. done
  54411.  
  54412.  
  54413.   for ac_header in stdarg.h     varargs.h
  54414. do :
  54415.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  54416. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  54417. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  54418.   cat >>confdefs.h <<_ACEOF
  54419. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  54420. _ACEOF
  54421.  lo_have_arg_hdr=true;break
  54422. else
  54423.   lo_have_arg_hdr=false
  54424. fi
  54425.  
  54426. done
  54427.  
  54428.  
  54429.   for ac_header in string.h     strings.h
  54430. do :
  54431.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  54432. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  54433. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  54434.   cat >>confdefs.h <<_ACEOF
  54435. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  54436. _ACEOF
  54437.  lo_have_str_hdr=true;break
  54438. else
  54439.   lo_have_str_hdr=false
  54440. fi
  54441.  
  54442. done
  54443.  
  54444.  
  54445.   for ac_header in limits.h     sys/limits.h  values.h
  54446. do :
  54447.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  54448. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  54449. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  54450.   cat >>confdefs.h <<_ACEOF
  54451. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  54452. _ACEOF
  54453.  lo_have_lim_hdr=true;break
  54454. else
  54455.   lo_have_lim_hdr=false
  54456. fi
  54457.  
  54458. done
  54459.  
  54460.  
  54461.   for ac_header in inttypes.h   stdint.h
  54462. do :
  54463.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  54464. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  54465. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  54466.   cat >>confdefs.h <<_ACEOF
  54467. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  54468. _ACEOF
  54469.  lo_have_typ_hdr=true;break
  54470. else
  54471.   lo_have_typ_hdr=false
  54472. fi
  54473.  
  54474. done
  54475.  
  54476.  
  54477.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  54478. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  54479. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  54480.   $as_echo_n "(cached) " >&6
  54481. else
  54482.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54483. /* end confdefs.h.  */
  54484. #include <stdlib.h>
  54485.             #include <stdnoreturn.h>
  54486.             /* Do not check for 'noreturn' after the return type.
  54487.                C11 allows it, but it's rarely done that way
  54488.               and circa-2012 bleeding-edge GCC rejects it when given
  54489.               -Werror=old-style-declaration.  */
  54490.            noreturn void foo1 (void) { exit (0); }
  54491.            _Noreturn void foo2 (void) { exit (0); }
  54492.            int testit (int argc, char **argv) {
  54493.              if (argc & 1)
  54494.                return 0;
  54495.              (argv[0][0] ? foo1 : foo2) ();
  54496.            }
  54497.  
  54498. int
  54499. main ()
  54500. {
  54501.  
  54502.  ;
  54503.  return 0;
  54504. }
  54505. _ACEOF
  54506. if ac_fn_c_try_compile "$LINENO"; then :
  54507.  gl_cv_header_working_stdnoreturn_h=yes
  54508. else
  54509.  gl_cv_header_working_stdnoreturn_h=no
  54510. fi
  54511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54512. fi
  54513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  54514. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  54515.  
  54516.  if test $gl_cv_header_working_stdnoreturn_h = yes; then
  54517.    STDNORETURN_H=''
  54518.  else
  54519.    STDNORETURN_H='stdnoreturn.h'
  54520.  fi
  54521.  
  54522.  
  54523.   if test -n "$STDNORETURN_H"; then
  54524.  GL_GENERATE_STDNORETURN_H_TRUE=
  54525.  GL_GENERATE_STDNORETURN_H_FALSE='#'
  54526. else
  54527.   GL_GENERATE_STDNORETURN_H_TRUE='#'
  54528.   GL_GENERATE_STDNORETURN_H_FALSE=
  54529. fi
  54530.  
  54531.  
  54532.  
  54533.   # ----------------------------------------------------------------------
  54534.   # check for various programs used during the build.
  54535.   # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  54536.   # ----------------------------------------------------------------------
  54537.   for ac_header in runetype.h wchar.h
  54538. do :
  54539.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  54540. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  54541.  $ac_includes_default
  54542.  #if HAVE_RUNETYPE_H
  54543.  # include <runetype.h>
  54544.  #endif
  54545.  
  54546. "
  54547. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  54548.   cat >>confdefs.h <<_ACEOF
  54549. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  54550. _ACEOF
  54551.  
  54552. fi
  54553.  
  54554. done
  54555.  
  54556.  
  54557.   # Check whether --enable-nls was given.
  54558. if test "${enable_nls+set}" = set; then :
  54559.   enableval=$enable_nls;
  54560. fi
  54561.  
  54562.   if test "x$enable_nls" != "xno" && \
  54563.   test "X${ac_cv_header_libintl_h}" = Xyes; then :
  54564.  
  54565.  
  54566. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  54567.  
  54568. fi
  54569.  
  54570.   # --------------------------------------------
  54571.   # Verify certain entries from AC_CHECK_HEADERS
  54572.   # --------------------------------------------
  54573.   ${lo_have_arg_hdr} || \
  54574.     as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  54575.  
  54576.   ${lo_have_str_hdr} || \
  54577.     as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  54578.  
  54579.   ${lo_have_lim_hdr} || \
  54580.     as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  54581.  
  54582.   ${lo_have_typ_hdr} || \
  54583.     as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  54584.  
  54585.   for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  54586.   do eval as_ac_var=\${ac_cv_header_${f}_h}
  54587.      test "X${as_ac_var}" = Xyes || {
  54588.        as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  54589.      }
  54590.   done
  54591.   test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  54592.     echo '#include <stdint.h>' > inttypes.h
  54593.  
  54594.   # ----------------------------------------------------------------------
  54595.   # Checks for typedefs
  54596.   # ----------------------------------------------------------------------
  54597.   ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  54598. if test "x$ac_cv_type_wchar_t" = xyes; then :
  54599.  
  54600. cat >>confdefs.h <<_ACEOF
  54601. #define HAVE_WCHAR_T 1
  54602. _ACEOF
  54603.  
  54604.  
  54605. fi
  54606.  
  54607.   ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  54608.    $ac_includes_default
  54609.    #if HAVE_RUNETYPE_H
  54610.    # include <runetype.h>
  54611.    #endif
  54612.    #if HAVE_WCHAR_H
  54613.    # include <wchar.h>
  54614.    #endif
  54615.  
  54616. "
  54617. if test "x$ac_cv_type_wint_t" = xyes; then :
  54618.  
  54619. cat >>confdefs.h <<_ACEOF
  54620. #define HAVE_WINT_T 1
  54621. _ACEOF
  54622.  
  54623.  
  54624. fi
  54625.  
  54626.   ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  54627. if test "x$ac_cv_type_int8_t" = xyes; then :
  54628.  
  54629. cat >>confdefs.h <<_ACEOF
  54630. #define HAVE_INT8_T 1
  54631. _ACEOF
  54632.  
  54633.  
  54634. fi
  54635. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  54636. if test "x$ac_cv_type_uint8_t" = xyes; then :
  54637.  
  54638. cat >>confdefs.h <<_ACEOF
  54639. #define HAVE_UINT8_T 1
  54640. _ACEOF
  54641.  
  54642.  
  54643. fi
  54644. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  54645. if test "x$ac_cv_type_int16_t" = xyes; then :
  54646.  
  54647. cat >>confdefs.h <<_ACEOF
  54648. #define HAVE_INT16_T 1
  54649. _ACEOF
  54650.  
  54651.  
  54652. fi
  54653. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  54654. if test "x$ac_cv_type_uint16_t" = xyes; then :
  54655.  
  54656. cat >>confdefs.h <<_ACEOF
  54657. #define HAVE_UINT16_T 1
  54658. _ACEOF
  54659.  
  54660.  
  54661. fi
  54662. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  54663. if test "x$ac_cv_type_int32_t" = xyes; then :
  54664.  
  54665. cat >>confdefs.h <<_ACEOF
  54666. #define HAVE_INT32_T 1
  54667. _ACEOF
  54668.  
  54669.  
  54670. fi
  54671. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  54672. if test "x$ac_cv_type_uint32_t" = xyes; then :
  54673.  
  54674. cat >>confdefs.h <<_ACEOF
  54675. #define HAVE_UINT32_T 1
  54676. _ACEOF
  54677.  
  54678.  
  54679. fi
  54680. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  54681. if test "x$ac_cv_type_intptr_t" = xyes; then :
  54682.  
  54683. cat >>confdefs.h <<_ACEOF
  54684. #define HAVE_INTPTR_T 1
  54685. _ACEOF
  54686.  
  54687.  
  54688. fi
  54689. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  54690. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  54691.  
  54692. cat >>confdefs.h <<_ACEOF
  54693. #define HAVE_UINTPTR_T 1
  54694. _ACEOF
  54695.  
  54696.  
  54697. fi
  54698. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  54699. if test "x$ac_cv_type_uint_t" = xyes; then :
  54700.  
  54701. cat >>confdefs.h <<_ACEOF
  54702. #define HAVE_UINT_T 1
  54703. _ACEOF
  54704.  
  54705.  
  54706. fi
  54707. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  54708. if test "x$ac_cv_type_pid_t" = xyes; then :
  54709.  
  54710. cat >>confdefs.h <<_ACEOF
  54711. #define HAVE_PID_T 1
  54712. _ACEOF
  54713.  
  54714.  
  54715. fi
  54716. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  54717. if test "x$ac_cv_type_size_t" = xyes; then :
  54718.  
  54719. cat >>confdefs.h <<_ACEOF
  54720. #define HAVE_SIZE_T 1
  54721. _ACEOF
  54722.  
  54723.  
  54724. fi
  54725. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  54726. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  54727.  
  54728. cat >>confdefs.h <<_ACEOF
  54729. #define HAVE_PTRDIFF_T 1
  54730. _ACEOF
  54731.  
  54732.  
  54733. fi
  54734.  
  54735.   # The cast to long int works around a bug in the HP C Compiler
  54736. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  54737. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  54738. # This bug is HP SR number 8606223364.
  54739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  54740. $as_echo_n "checking size of char *... " >&6; }
  54741. if ${ac_cv_sizeof_char_p+:} false; then :
  54742.   $as_echo_n "(cached) " >&6
  54743. else
  54744.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
  54745.  
  54746. else
  54747.   if test "$ac_cv_type_char_p" = yes; then
  54748.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  54749. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  54750. as_fn_error 77 "cannot compute sizeof (char *)
  54751. See \`config.log' for more details" "$LINENO" 5; }
  54752.   else
  54753.     ac_cv_sizeof_char_p=0
  54754.   fi
  54755. fi
  54756.  
  54757. fi
  54758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  54759. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  54760.  
  54761.  
  54762.  
  54763. cat >>confdefs.h <<_ACEOF
  54764. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  54765. _ACEOF
  54766.  
  54767.  
  54768.  # The cast to long int works around a bug in the HP C Compiler
  54769. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  54770. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  54771. # This bug is HP SR number 8606223364.
  54772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  54773. $as_echo_n "checking size of int... " >&6; }
  54774. if ${ac_cv_sizeof_int+:} false; then :
  54775.  $as_echo_n "(cached) " >&6
  54776. else
  54777.  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
  54778.  
  54779. else
  54780.  if test "$ac_cv_type_int" = yes; then
  54781.     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  54782. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  54783. as_fn_error 77 "cannot compute sizeof (int)
  54784. See \`config.log' for more details" "$LINENO" 5; }
  54785.   else
  54786.     ac_cv_sizeof_int=0
  54787.   fi
  54788. fi
  54789.  
  54790. fi
  54791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  54792. $as_echo "$ac_cv_sizeof_int" >&6; }
  54793.  
  54794.  
  54795.  
  54796. cat >>confdefs.h <<_ACEOF
  54797. #define SIZEOF_INT $ac_cv_sizeof_int
  54798. _ACEOF
  54799.  
  54800.  
  54801.  # The cast to long int works around a bug in the HP C Compiler
  54802. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  54803. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  54804. # This bug is HP SR number 8606223364.
  54805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  54806. $as_echo_n "checking size of long... " >&6; }
  54807. if ${ac_cv_sizeof_long+:} false; then :
  54808.   $as_echo_n "(cached) " >&6
  54809. else
  54810.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
  54811.  
  54812. else
  54813.   if test "$ac_cv_type_long" = yes; then
  54814.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  54815. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  54816. as_fn_error 77 "cannot compute sizeof (long)
  54817. See \`config.log' for more details" "$LINENO" 5; }
  54818.   else
  54819.     ac_cv_sizeof_long=0
  54820.   fi
  54821. fi
  54822.  
  54823. fi
  54824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  54825. $as_echo "$ac_cv_sizeof_long" >&6; }
  54826.  
  54827.  
  54828.  
  54829. cat >>confdefs.h <<_ACEOF
  54830. #define SIZEOF_LONG $ac_cv_sizeof_long
  54831. _ACEOF
  54832.  
  54833.  
  54834.  # The cast to long int works around a bug in the HP C Compiler
  54835. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  54836. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  54837. # This bug is HP SR number 8606223364.
  54838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  54839. $as_echo_n "checking size of short... " >&6; }
  54840. if ${ac_cv_sizeof_short+:} false; then :
  54841.  $as_echo_n "(cached) " >&6
  54842. else
  54843.  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
  54844.  
  54845. else
  54846.  if test "$ac_cv_type_short" = yes; then
  54847.     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  54848. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  54849. as_fn_error 77 "cannot compute sizeof (short)
  54850. See \`config.log' for more details" "$LINENO" 5; }
  54851.   else
  54852.     ac_cv_sizeof_short=0
  54853.   fi
  54854. fi
  54855.  
  54856. fi
  54857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  54858. $as_echo "$ac_cv_sizeof_short" >&6; }
  54859.  
  54860.  
  54861.  
  54862. cat >>confdefs.h <<_ACEOF
  54863. #define SIZEOF_SHORT $ac_cv_sizeof_short
  54864. _ACEOF
  54865.  
  54866.  
  54867.  
  54868.  # ------------
  54869.  # AC_CHECK_LIB
  54870.  # ------------
  54871.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  54872. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  54873. if ${ac_cv_lib_gen_pathfind+:} false; then :
  54874.  $as_echo_n "(cached) " >&6
  54875. else
  54876.  ac_check_lib_save_LIBS=$LIBS
  54877. LIBS="-lgen  $LIBS"
  54878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54879. /* end confdefs.h.  */
  54880.  
  54881. /* Override any GCC internal prototype to avoid an error.
  54882.   Use char because int might match the return type of a GCC
  54883.   builtin and then its argument prototype would still apply.  */
  54884. #ifdef __cplusplus
  54885. extern "C"
  54886. #endif
  54887. char pathfind ();
  54888. int
  54889. main ()
  54890. {
  54891. return pathfind ();
  54892.  ;
  54893.  return 0;
  54894. }
  54895. _ACEOF
  54896. if ac_fn_c_try_link "$LINENO"; then :
  54897.  ac_cv_lib_gen_pathfind=yes
  54898. else
  54899.  ac_cv_lib_gen_pathfind=no
  54900. fi
  54901. rm -f core conftest.err conftest.$ac_objext \
  54902.    conftest$ac_exeext conftest.$ac_ext
  54903. LIBS=$ac_check_lib_save_LIBS
  54904. fi
  54905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  54906. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  54907. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  54908.  cat >>confdefs.h <<_ACEOF
  54909. #define HAVE_LIBGEN 1
  54910. _ACEOF
  54911.  
  54912.  LIBS="-lgen $LIBS"
  54913.  
  54914. fi
  54915.  
  54916.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  54917. $as_echo_n "checking for gettext in -lintl... " >&6; }
  54918. if ${ac_cv_lib_intl_gettext+:} false; then :
  54919.  $as_echo_n "(cached) " >&6
  54920. else
  54921.  ac_check_lib_save_LIBS=$LIBS
  54922. LIBS="-lintl  $LIBS"
  54923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54924. /* end confdefs.h.  */
  54925.  
  54926. /* Override any GCC internal prototype to avoid an error.
  54927.   Use char because int might match the return type of a GCC
  54928.   builtin and then its argument prototype would still apply.  */
  54929. #ifdef __cplusplus
  54930. extern "C"
  54931. #endif
  54932. char gettext ();
  54933. int
  54934. main ()
  54935. {
  54936. return gettext ();
  54937.  ;
  54938.  return 0;
  54939. }
  54940. _ACEOF
  54941. if ac_fn_c_try_link "$LINENO"; then :
  54942.  ac_cv_lib_intl_gettext=yes
  54943. else
  54944.  ac_cv_lib_intl_gettext=no
  54945. fi
  54946. rm -f core conftest.err conftest.$ac_objext \
  54947.    conftest$ac_exeext conftest.$ac_ext
  54948. LIBS=$ac_check_lib_save_LIBS
  54949. fi
  54950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  54951. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  54952. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  54953.  cat >>confdefs.h <<_ACEOF
  54954. #define HAVE_LIBINTL 1
  54955. _ACEOF
  54956.  
  54957.  LIBS="-lintl $LIBS"
  54958.  
  54959. fi
  54960.  
  54961.  for ac_func in vprintf
  54962. do :
  54963.  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  54964. if test "x$ac_cv_func_vprintf" = xyes; then :
  54965.  cat >>confdefs.h <<_ACEOF
  54966. #define HAVE_VPRINTF 1
  54967. _ACEOF
  54968.  
  54969. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  54970. if test "x$ac_cv_func__doprnt" = xyes; then :
  54971.  
  54972. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  54973.  
  54974. fi
  54975.  
  54976. fi
  54977. done
  54978.  
  54979.  
  54980.  for ac_header in vfork.h
  54981. do :
  54982.  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  54983. if test "x$ac_cv_header_vfork_h" = xyes; then :
  54984.  cat >>confdefs.h <<_ACEOF
  54985. #define HAVE_VFORK_H 1
  54986. _ACEOF
  54987.  
  54988. fi
  54989.  
  54990. done
  54991.  
  54992. for ac_func in fork vfork
  54993. do :
  54994.  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  54995. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  54996. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  54997.  cat >>confdefs.h <<_ACEOF
  54998. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  54999. _ACEOF
  55000.  
  55001. fi
  55002. done
  55003.  
  55004. if test "x$ac_cv_func_fork" = xyes; then
  55005.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  55006. $as_echo_n "checking for working fork... " >&6; }
  55007. if ${ac_cv_func_fork_works+:} false; then :
  55008.  $as_echo_n "(cached) " >&6
  55009. else
  55010.  if test "$cross_compiling" = yes; then :
  55011.  ac_cv_func_fork_works=cross
  55012. else
  55013.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55014. /* end confdefs.h.  */
  55015. $ac_includes_default
  55016. int
  55017. main ()
  55018. {
  55019.  
  55020.           /* By Ruediger Kuhlmann. */
  55021.           return fork () < 0;
  55022.  
  55023.  ;
  55024.  return 0;
  55025. }
  55026. _ACEOF
  55027. if ac_fn_c_try_run "$LINENO"; then :
  55028.  ac_cv_func_fork_works=yes
  55029. else
  55030.  ac_cv_func_fork_works=no
  55031. fi
  55032. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  55033.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  55034. fi
  55035.  
  55036. fi
  55037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  55038. $as_echo "$ac_cv_func_fork_works" >&6; }
  55039.  
  55040. else
  55041.  ac_cv_func_fork_works=$ac_cv_func_fork
  55042. fi
  55043. if test "x$ac_cv_func_fork_works" = xcross; then
  55044.  case $host in
  55045.    *-*-amigaos* | *-*-msdosdjgpp*)
  55046.      # Override, as these systems have only a dummy fork() stub
  55047.      ac_cv_func_fork_works=no
  55048.      ;;
  55049.    *)
  55050.      ac_cv_func_fork_works=yes
  55051.      ;;
  55052.  esac
  55053.  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  55054. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  55055. fi
  55056. ac_cv_func_vfork_works=$ac_cv_func_vfork
  55057. if test "x$ac_cv_func_vfork" = xyes; then
  55058.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  55059. $as_echo_n "checking for working vfork... " >&6; }
  55060. if ${ac_cv_func_vfork_works+:} false; then :
  55061.  $as_echo_n "(cached) " >&6
  55062. else
  55063.  if test "$cross_compiling" = yes; then :
  55064.  ac_cv_func_vfork_works=cross
  55065. else
  55066.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55067. /* end confdefs.h.  */
  55068. /* Thanks to Paul Eggert for this test.  */
  55069. $ac_includes_default
  55070. #include <sys/wait.h>
  55071. #ifdef HAVE_VFORK_H
  55072. # include <vfork.h>
  55073. #endif
  55074. /* On some sparc systems, changes by the child to local and incoming
  55075.   argument registers are propagated back to the parent.  The compiler
  55076.   is told about this with #include <vfork.h>, but some compilers
  55077.   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
  55078.    static variable whose address is put into a register that is
  55079.    clobbered by the vfork.  */
  55080. static void
  55081. #ifdef __cplusplus
  55082. sparc_address_test (int arg)
  55083. # else
  55084. sparc_address_test (arg) int arg;
  55085. #endif
  55086. {
  55087.   static pid_t child;
  55088.   if (!child) {
  55089.     child = vfork ();
  55090.     if (child < 0) {
  55091.       perror ("vfork");
  55092.       _exit(2);
  55093.     }
  55094.     if (!child) {
  55095.       arg = getpid();
  55096.       write(-1, "", 0);
  55097.       _exit (arg);
  55098.     }
  55099.   }
  55100. }
  55101.  
  55102. int
  55103. main ()
  55104. {
  55105.   pid_t parent = getpid ();
  55106.   pid_t child;
  55107.  
  55108.   sparc_address_test (0);
  55109.  
  55110.   child = vfork ();
  55111.  
  55112.   if (child == 0) {
  55113.     /* Here is another test for sparc vfork register problems.  This
  55114.        test uses lots of local variables, at least as many local
  55115.        variables as main has allocated so far including compiler
  55116.        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
  55117.        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
  55118.        reuse the register of parent for one of the local variables,
  55119.        since it will think that parent can't possibly be used any more
  55120.       in this routine.  Assigning to the local variable will thus
  55121.       munge parent in the parent process.  */
  55122.    pid_t
  55123.      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  55124.      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  55125.    /* Convince the compiler that p..p7 are live; otherwise, it might
  55126.       use the same hardware register for all 8 local variables.  */
  55127.    if (p != p1 || p != p2 || p != p3 || p != p4
  55128.         || p != p5 || p != p6 || p != p7)
  55129.      _exit(1);
  55130.  
  55131.    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  55132.        from child file descriptors.  If the child closes a descriptor
  55133.        before it execs or exits, this munges the parent's descriptor
  55134.       as well.  Test for this by closing stdout in the child.  */
  55135.    _exit(close(fileno(stdout)) != 0);
  55136.  } else {
  55137.    int status;
  55138.    struct stat st;
  55139.  
  55140.    while (wait(&status) != child)
  55141.      ;
  55142.    return (
  55143.          /* Was there some problem with vforking?  */
  55144.          child < 0
  55145.  
  55146.          /* Did the child fail?  (This shouldn't happen.)  */
  55147.          || status
  55148.  
  55149.          /* Did the vfork/compiler bug occur?  */
  55150.          || parent != getpid()
  55151.  
  55152.          /* Did the file descriptor bug occur?  */
  55153.          || fstat(fileno(stdout), &st) != 0
  55154.          );
  55155.   }
  55156. }
  55157. _ACEOF
  55158. if ac_fn_c_try_run "$LINENO"; then :
  55159.   ac_cv_func_vfork_works=yes
  55160. else
  55161.   ac_cv_func_vfork_works=no
  55162. fi
  55163. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  55164.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  55165. fi
  55166.  
  55167. fi
  55168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  55169. $as_echo "$ac_cv_func_vfork_works" >&6; }
  55170.  
  55171. fi;
  55172. if test "x$ac_cv_func_fork_works" = xcross; then
  55173.   ac_cv_func_vfork_works=$ac_cv_func_vfork
  55174.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  55175. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  55176. fi
  55177.  
  55178. if test "x$ac_cv_func_vfork_works" = xyes; then
  55179.  
  55180. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  55181.  
  55182. else
  55183.  
  55184. $as_echo "#define vfork fork" >>confdefs.h
  55185.  
  55186. fi
  55187. if test "x$ac_cv_func_fork_works" = xyes; then
  55188.  
  55189. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  55190.  
  55191. fi
  55192.  
  55193.   for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  55194.                  strrchr strsignal fchmod fstat chmod
  55195. do :
  55196.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  55197. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  55198. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  55199.   cat >>confdefs.h <<_ACEOF
  55200. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  55201. _ACEOF
  55202.  
  55203. fi
  55204. done
  55205.  
  55206.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  55207. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  55208. if ${ac_cv_path_SED+:} false; then :
  55209.   $as_echo_n "(cached) " >&6
  55210. else
  55211.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  55212.      for ac_i in 1 2 3 4 5 6 7; do
  55213.        ac_script="$ac_script$as_nl$ac_script"
  55214.      done
  55215.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  55216.      { ac_script=; unset ac_script;}
  55217.      if test -z "$SED"; then
  55218.   ac_path_SED_found=false
  55219.   # Loop through the user's path and test for each of PROGNAME-LIST
  55220.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  55221. for as_dir in $PATH
  55222. do
  55223.   IFS=$as_save_IFS
  55224.   test -z "$as_dir" && as_dir=.
  55225.     for ac_prog in sed gsed; do
  55226.     for ac_exec_ext in '' $ac_executable_extensions; do
  55227.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  55228.       as_fn_executable_p "$ac_path_SED" || continue
  55229. # Check for GNU ac_path_SED and select it if it is found.
  55230.   # Check for GNU $ac_path_SED
  55231. case `"$ac_path_SED" --version 2>&1` in
  55232. *GNU*)
  55233.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  55234. *)
  55235.   ac_count=0
  55236.   $as_echo_n 0123456789 >"conftest.in"
  55237.   while :
  55238.   do
  55239.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  55240.     mv "conftest.tmp" "conftest.in"
  55241.     cp "conftest.in" "conftest.nl"
  55242.     $as_echo '' >> "conftest.nl"
  55243.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  55244.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  55245.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  55246.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  55247.       # Best one so far, save it but keep looking for a better one
  55248.       ac_cv_path_SED="$ac_path_SED"
  55249.       ac_path_SED_max=$ac_count
  55250.     fi
  55251.     # 10*(2^10) chars as input seems more than enough
  55252.     test $ac_count -gt 10 && break
  55253.   done
  55254.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  55255. esac
  55256.  
  55257.       $ac_path_SED_found && break 3
  55258.     done
  55259.   done
  55260.   done
  55261. IFS=$as_save_IFS
  55262.   if test -z "$ac_cv_path_SED"; then
  55263.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  55264.   fi
  55265. else
  55266.   ac_cv_path_SED=$SED
  55267. fi
  55268.  
  55269. fi
  55270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  55271. $as_echo "$ac_cv_path_SED" >&6; }
  55272.  SED="$ac_cv_path_SED"
  55273.   rm -f conftest.sed
  55274.  
  55275.   while :
  55276.   do
  55277.       POSIX_SHELL=`which bash`
  55278.       test -x "$POSIX_SHELL" && break
  55279.       POSIX_SHELL=`which dash`
  55280.       test -x "$POSIX_SHELL" && break
  55281.       POSIX_SHELL=/usr/xpg4/bin/sh
  55282.       test -x "$POSIX_SHELL" && break
  55283.       POSIX_SHELL=`/bin/sh -c '
  55284.          exec 2>/dev/null
  55285.          if ! true ; then exit 1 ; fi
  55286.          echo /bin/sh'`
  55287.       test -x "$POSIX_SHELL" && break
  55288.       as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  55289.   done
  55290.  
  55291. cat >>confdefs.h <<_ACEOF
  55292. #define POSIX_SHELL "${POSIX_SHELL}"
  55293. _ACEOF
  55294.  
  55295.  
  55296.  
  55297.  
  55298.  
  55299.   LIBOPTS_BUILD_BLOCKED=''
  55300.  
  55301.  
  55302.   NEED_LIBOPTS_DIR=''
  55303.  
  55304.   # Check whether --enable-local-libopts was given.
  55305. if test "${enable_local_libopts+set}" = set; then :
  55306.   enableval=$enable_local_libopts;
  55307.     if test x$enableval = xyes ; then
  55308.        { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  55309. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  55310.        LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
  55311.        NEED_LIBOPTS_DIR=true
  55312.        LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
  55313.     fi
  55314. fi
  55315.  
  55316.  
  55317.   # Check whether --enable-libopts-install was given.
  55318. if test "${enable_libopts_install+set}" = set; then :
  55319.   enableval=$enable_libopts_install;
  55320. fi
  55321.  
  55322.    if test "X${enable_libopts_install}" = Xyes; then
  55323.   INSTALL_LIBOPTS_TRUE=
  55324.   INSTALL_LIBOPTS_FALSE='#'
  55325. else
  55326.   INSTALL_LIBOPTS_TRUE='#'
  55327.   INSTALL_LIBOPTS_FALSE=
  55328. fi
  55329.  
  55330.  
  55331.   if test -z "${NEED_LIBOPTS_DIR}" ; then
  55332.      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  55333. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  55334.  
  55335. # Check whether --with-autoopts-config was given.
  55336. if test "${with_autoopts_config+set}" = set; then :
  55337.   withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  55338. else
  55339.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  55340. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  55341. if ${lo_cv_with_autoopts_config+:} false; then :
  55342.   $as_echo_n "(cached) " >&6
  55343. else
  55344.   if autoopts-config --help 2>/dev/null 1>&2
  55345.         then lo_cv_with_autoopts_config=autoopts-config
  55346.         elif libopts-config --help 2>/dev/null 1>&2
  55347.         then lo_cv_with_autoopts_config=libopts-config
  55348.         else lo_cv_with_autoopts_config=no ; fi
  55349. fi
  55350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  55351. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  55352.  
  55353. fi
  55354.  # end of AC_ARG_WITH
  55355.  
  55356.      if ${lo_cv_test_autoopts+:} false; then :
  55357.   $as_echo_n "(cached) " >&6
  55358. else
  55359.  
  55360.         if test -z "${lo_cv_with_autoopts_config}" \
  55361.                 -o X"${lo_cv_with_autoopts_config}" = Xno
  55362.         then
  55363.            if autoopts-config --help 2>/dev/null 1>&2
  55364.            then lo_cv_with_autoopts_config=autoopts-config
  55365.            elif libopts-config --help 2>/dev/null 1>&2
  55366.            then lo_cv_with_autoopts_config=libopts-config
  55367.            else lo_cv_with_autoopts_config=false ; fi
  55368.         fi
  55369.         lo_cv_test_autoopts=`
  55370.             ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  55371.         if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  55372.         then lo_cv_test_autoopts=no ; fi
  55373.  
  55374. fi
  55375.  # end of CACHE_VAL
  55376.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  55377. $as_echo "${lo_cv_test_autoopts}" >&6; }
  55378.  
  55379.      if test "X${lo_cv_test_autoopts}" != Xno
  55380.      then
  55381.         LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  55382.         LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  55383.      else
  55384.         LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
  55385.         LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
  55386.         NEED_LIBOPTS_DIR=true
  55387.      fi
  55388.   fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  55389.   if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  55390.     NEED_LIBOPTS_DIR=''
  55391.   fi
  55392.    if test -n "${NEED_LIBOPTS_DIR}"; then
  55393.   NEED_LIBOPTS_TRUE=
  55394.   NEED_LIBOPTS_FALSE='#'
  55395. else
  55396.   NEED_LIBOPTS_TRUE='#'
  55397.   NEED_LIBOPTS_FALSE=
  55398. fi
  55399.  
  55400.  
  55401.  
  55402.   LIBOPTS_DIR=src/libopts
  55403.  
  55404.  
  55405. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  55406.  
  55407.  
  55408.     if test -z "$NEED_LIBOPTS_TRUE"; then :
  55409.  
  55410.  
  55411.  
  55412.   # Check to see if a reg expr header is specified.
  55413.  
  55414.  
  55415. # Check whether --with-regex-header was given.
  55416. if test "${with_regex_header+set}" = set; then :
  55417.   withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  55418. else
  55419.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  55420. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  55421. if ${libopts_cv_with_regex_header+:} false; then :
  55422.   $as_echo_n "(cached) " >&6
  55423. else
  55424.   libopts_cv_with_regex_header=no
  55425. fi
  55426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  55427. $as_echo "$libopts_cv_with_regex_header" >&6; }
  55428.  
  55429. fi
  55430.  # end of AC_ARG_WITH
  55431.   if test "X${libopts_cv_with_regex_header}" != Xno
  55432.   then
  55433.     cat >>confdefs.h <<_ACEOF
  55434. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  55435. _ACEOF
  55436.  
  55437.   else
  55438.  
  55439. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  55440.  
  55441.   fi
  55442.  
  55443.  
  55444.  
  55445.   # Check to see if a working libregex can be found.
  55446.  
  55447.  
  55448. # Check whether --with-libregex was given.
  55449. if test "${with_libregex+set}" = set; then :
  55450.   withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  55451. else
  55452.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  55453. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  55454. if ${libopts_cv_with_libregex_root+:} false; then :
  55455.   $as_echo_n "(cached) " >&6
  55456. else
  55457.   libopts_cv_with_libregex_root=no
  55458. fi
  55459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  55460. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  55461.  
  55462. fi
  55463.  # end of AC_ARG_WITH libregex
  55464.  
  55465.   if test "${with_libregex+set}" = set && \
  55466.      test "X${withval}" = Xno
  55467.   then ## disabled by request
  55468.     libopts_cv_with_libregex_root=no
  55469.     libopts_cv_with_libregex_cflags=no
  55470.     libopts_cv_with_libregex_libs=no
  55471.   else
  55472.  
  55473.  
  55474. # Check whether --with-libregex-cflags was given.
  55475. if test "${with_libregex_cflags+set}" = set; then :
  55476.   withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  55477. else
  55478.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  55479. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  55480. if ${libopts_cv_with_libregex_cflags+:} false; then :
  55481.   $as_echo_n "(cached) " >&6
  55482. else
  55483.   libopts_cv_with_libregex_cflags=no
  55484. fi
  55485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  55486. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  55487.  
  55488. fi
  55489.  # end of AC_ARG_WITH libregex-cflags
  55490.  
  55491.  
  55492. # Check whether --with-libregex-libs was given.
  55493. if test "${with_libregex_libs+set}" = set; then :
  55494.   withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  55495. else
  55496.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  55497. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  55498. if ${libopts_cv_with_libregex_libs+:} false; then :
  55499.   $as_echo_n "(cached) " >&6
  55500. else
  55501.   libopts_cv_with_libregex_libs=no
  55502. fi
  55503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  55504. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  55505.  
  55506. fi
  55507.  # end of AC_ARG_WITH libregex-libs
  55508.  
  55509.   case "X${libopts_cv_with_libregex_cflags}" in
  55510.   Xyes|Xno|X )
  55511.     case "X${libopts_cv_with_libregex_root}" in
  55512.     Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  55513.     * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  55514.     esac
  55515.   esac
  55516.   case "X${libopts_cv_with_libregex_libs}" in
  55517.   Xyes|Xno|X )
  55518.     case "X${libopts_cv_with_libregex_root}" in
  55519.     Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  55520.     * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  55521.     esac
  55522.   esac
  55523.   libopts_save_CPPFLAGS="${CPPFLAGS}"
  55524.   libopts_save_LIBS="${LIBS}"
  55525.   case "X${libopts_cv_with_libregex_cflags}" in
  55526.   Xyes|Xno|X )
  55527.     libopts_cv_with_libregex_cflags="" ;;
  55528.   * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  55529.   esac
  55530.   case "X${libopts_cv_with_libregex_libs}" in
  55531.   Xyes|Xno|X )
  55532.     libopts_cv_with_libregex_libs="" ;;
  55533.   * )
  55534.     LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  55535.   esac
  55536.   LIBREGEX_CFLAGS=""
  55537.   LIBREGEX_LIBS=""
  55538.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  55539. $as_echo_n "checking whether libregex functions properly... " >&6; }
  55540.   if ${libopts_cv_with_libregex+:} false; then :
  55541.   $as_echo_n "(cached) " >&6
  55542. else
  55543.  
  55544.   if test "$cross_compiling" = yes; then :
  55545.   libopts_cv_with_libregex=no
  55546. else
  55547.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55548. /* end confdefs.h.  */
  55549. #include <stdio.h>
  55550. #include <stdlib.h>
  55551. #include <sys/types.h>
  55552. #include REGEX_HEADER
  55553. static regex_t re;
  55554. void comp_re(char const * pzPat) {
  55555.   int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  55556.   if (res == 0) return;
  55557.   exit( res ); }
  55558. int main() {
  55559.   regmatch_t m[2];
  55560.   comp_re( "^.*\$"   );
  55561.   comp_re( "()|no.*" );
  55562.   comp_re( "."       );
  55563.   if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
  55564.   if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  55565.     fputs( "error: regex -->.<-- did not match\n", stderr );
  55566.     return 1;
  55567.   }
  55568.   return 0; }
  55569. _ACEOF
  55570. if ac_fn_c_try_run "$LINENO"; then :
  55571.   libopts_cv_with_libregex=yes
  55572. else
  55573.   libopts_cv_with_libregex=no
  55574. fi
  55575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  55576.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  55577. fi
  55578.  # end of AC_RUN_IFELSE
  55579.  
  55580. fi
  55581.  # end of AC_CACHE_VAL for libopts_cv_with_libregex
  55582.   fi ## disabled by request
  55583.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  55584. $as_echo "${libopts_cv_with_libregex}" >&6; }
  55585.   if test "X${libopts_cv_with_libregex}" != Xno
  55586.   then
  55587.  
  55588. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  55589.  
  55590.   else
  55591.     CPPFLAGS="${libopts_save_CPPFLAGS}"
  55592.     LIBS="${libopts_save_LIBS}"
  55593.     libopts_cv_with_libregex_root=no
  55594. libopts_cv_with_libregex_cflags=no
  55595. libopts_cv_with_libregex_libs=no
  55596. libopts_cv_with_libregex=no
  55597.   fi
  55598.  
  55599.  
  55600.  
  55601.   # Check to see if pathfind(3) works.
  55602.  
  55603.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  55604. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  55605.   if ${libopts_cv_run_pathfind+:} false; then :
  55606.   $as_echo_n "(cached) " >&6
  55607. else
  55608.  
  55609.   if test "$cross_compiling" = yes; then :
  55610.   libopts_cv_run_pathfind=no
  55611.  
  55612. else
  55613.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55614. /* end confdefs.h.  */
  55615. #include <string.h>
  55616. #include <stdlib.h>
  55617. int main (int argc, char ** argv) {
  55618.    char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  55619.    return (pz == 0) ? 1 : 0;
  55620. }
  55621. _ACEOF
  55622. if ac_fn_c_try_run "$LINENO"; then :
  55623.   libopts_cv_run_pathfind=yes
  55624. else
  55625.   libopts_cv_run_pathfind=no
  55626. fi
  55627. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  55628.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  55629. fi
  55630.  # end of RUN_IFELSE
  55631.  
  55632. fi
  55633.  # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  55634.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  55635. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  55636.   if test "X${libopts_cv_run_pathfind}" != Xno
  55637.   then
  55638.  
  55639. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  55640.  
  55641.   fi
  55642.  
  55643.  
  55644.  
  55645.   # Check to see if /dev/zero is readable device.
  55646.  
  55647.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  55648. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  55649.   if ${libopts_cv_test_dev_zero+:} false; then :
  55650.   $as_echo_n "(cached) " >&6
  55651. else
  55652.  
  55653.     libopts_cv_test_dev_zero=`exec 2> /dev/null
  55654. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  55655. test -z "${dzero}" && exit 1
  55656. echo ${dzero}`
  55657.     if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  55658.     then libopts_cv_test_dev_zero=no
  55659.     fi
  55660.  
  55661. fi
  55662.  # end of CACHE_VAL of libopts_cv_test_dev_zero
  55663.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  55664. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  55665.   if test "X${libopts_cv_test_dev_zero}" != Xno
  55666.   then
  55667.  
  55668. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  55669.  
  55670.   fi
  55671.  
  55672.  
  55673.  
  55674.   # Check to see if we have a functional realpath(3C).
  55675.  
  55676.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  55677. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  55678.   if ${libopts_cv_run_realpath+:} false; then :
  55679.   $as_echo_n "(cached) " >&6
  55680. else
  55681.  
  55682.   if test "$cross_compiling" = yes; then :
  55683.   libopts_cv_run_realpath=no
  55684.  
  55685. else
  55686.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55687. /* end confdefs.h.  */
  55688. #include <limits.h>
  55689. #include <stdlib.h>
  55690. int main (int argc, char ** argv) {
  55691. #ifndef PATH_MAX
  55692. choke me!!
  55693. #else
  55694.    char zPath[PATH_MAX+1];
  55695. #endif
  55696.    char *pz = realpath(argv[0], zPath);
  55697.    return (pz == zPath) ? 0 : 1;
  55698. }
  55699. _ACEOF
  55700. if ac_fn_c_try_run "$LINENO"; then :
  55701.   libopts_cv_run_realpath=yes
  55702. else
  55703.   libopts_cv_run_realpath=no
  55704. fi
  55705. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  55706.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  55707. fi
  55708.  # end of RUN_IFELSE
  55709.  
  55710. fi
  55711.  # end of AC_CACHE_VAL for libopts_cv_run_realpath
  55712.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  55713. $as_echo "${libopts_cv_run_realpath}" >&6; }
  55714.   if test "X${libopts_cv_run_realpath}" != Xno
  55715.   then
  55716.  
  55717. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  55718.  
  55719.   fi
  55720.  
  55721.  
  55722.  
  55723.   # Check to see if strftime() works.
  55724.  
  55725.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  55726. $as_echo_n "checking whether strftime() works... " >&6; }
  55727.   if ${libopts_cv_run_strftime+:} false; then :
  55728.   $as_echo_n "(cached) " >&6
  55729. else
  55730.  
  55731.   if test "$cross_compiling" = yes; then :
  55732.   libopts_cv_run_strftime=no
  55733.  
  55734. else
  55735.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55736. /* end confdefs.h.  */
  55737. #include <time.h>
  55738. #include <string.h>
  55739. char t_buf[ 64 ];
  55740. int main() {
  55741.   static char const z[] = "Thursday Aug 28 240";
  55742.   struct tm tm;
  55743.   tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
  55744.   tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
  55745.   tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
  55746.   tm.tm_mday  = 28;  /* day of the month [1, 31] */
  55747.   tm.tm_mon   =  7;  /* months since January [0, 11] */
  55748.   tm.tm_year  = 86;  /* years since 1900 */
  55749.   tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
  55750.   tm.tm_yday  = 239; /* days since January 1 [0, 365] */
  55751.   tm.tm_isdst =  1;  /* flag for daylight savings time */
  55752.   strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  55753.   return (strcmp( t_buf, z ) != 0); }
  55754. _ACEOF
  55755. if ac_fn_c_try_run "$LINENO"; then :
  55756.   libopts_cv_run_strftime=yes
  55757. else
  55758.   libopts_cv_run_strftime=no
  55759. fi
  55760. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  55761.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  55762. fi
  55763.  # end of RUN_IFELSE
  55764.  
  55765. fi
  55766.  # end of AC_CACHE_VAL for libopts_cv_run_strftime
  55767.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  55768. $as_echo "${libopts_cv_run_strftime}" >&6; }
  55769.   if test "X${libopts_cv_run_strftime}" != Xno
  55770.   then
  55771.  
  55772. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  55773.  
  55774.   fi
  55775.  
  55776.  
  55777.  
  55778.   # Check to see if fopen accepts "b" mode.
  55779.  
  55780.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  55781. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  55782.   if ${libopts_cv_run_fopen_binary+:} false; then :
  55783.   $as_echo_n "(cached) " >&6
  55784. else
  55785.  
  55786.   if test "$cross_compiling" = yes; then :
  55787.   libopts_cv_run_fopen_binary=no
  55788.  
  55789. else
  55790.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55791. /* end confdefs.h.  */
  55792. #include <stdio.h>
  55793. int main (int argc, char ** argv) {
  55794. FILE * fp = fopen("conftest.$ac_ext", "rb");
  55795. return (fp == NULL) ? 1 : fclose(fp); }
  55796. _ACEOF
  55797. if ac_fn_c_try_run "$LINENO"; then :
  55798.   libopts_cv_run_fopen_binary=yes
  55799. else
  55800.   libopts_cv_run_fopen_binary=no
  55801. fi
  55802. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  55803.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  55804. fi
  55805.  # end of RUN_IFELSE
  55806.  
  55807. fi
  55808.  # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  55809.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  55810. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  55811.   if test "X${libopts_cv_run_fopen_binary}" != Xno
  55812.   then
  55813.  
  55814. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  55815.  
  55816.   else
  55817.  
  55818. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  55819.  
  55820.   fi
  55821.  
  55822.  
  55823.  
  55824.   # Check to see if fopen accepts "t" mode.
  55825.  
  55826.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  55827. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  55828.   if ${libopts_cv_run_fopen_text+:} false; then :
  55829.   $as_echo_n "(cached) " >&6
  55830. else
  55831.  
  55832.   if test "$cross_compiling" = yes; then :
  55833.   libopts_cv_run_fopen_text=no
  55834.  
  55835. else
  55836.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55837. /* end confdefs.h.  */
  55838. #include <stdio.h>
  55839. int main (int argc, char ** argv) {
  55840. FILE * fp = fopen("conftest.$ac_ext", "rt");
  55841. return (fp == NULL) ? 1 : fclose(fp); }
  55842. _ACEOF
  55843. if ac_fn_c_try_run "$LINENO"; then :
  55844.   libopts_cv_run_fopen_text=yes
  55845. else
  55846.   libopts_cv_run_fopen_text=no
  55847. fi
  55848. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  55849.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  55850. fi
  55851.  # end of RUN_IFELSE
  55852.  
  55853. fi
  55854.  # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  55855.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  55856. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  55857.   if test "X${libopts_cv_run_fopen_text}" != Xno
  55858.   then
  55859.  
  55860. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  55861.  
  55862.   else
  55863.  
  55864. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  55865.  
  55866.   fi
  55867.  
  55868.  
  55869.  
  55870.   # Check to see if not wanting optional option args.
  55871.  
  55872.   # Check whether --enable-optional-args was given.
  55873. if test "${enable_optional_args+set}" = set; then :
  55874.   enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  55875. else
  55876.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  55877. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  55878. if ${libopts_cv_enable_optional_args+:} false; then :
  55879.   $as_echo_n "(cached) " >&6
  55880. else
  55881.   libopts_cv_enable_optional_args=yes
  55882. fi
  55883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  55884. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  55885.  
  55886. fi
  55887.  # end of AC_ARG_ENABLE
  55888.   if test "X${libopts_cv_enable_optional_args}" = Xno
  55889.   then
  55890.  
  55891. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  55892.  
  55893.   fi
  55894.  
  55895.  
  55896.  
  55897.  
  55898.  
  55899.           fi
  55900.   ac_config_files="$ac_config_files src/libopts/Makefile"
  55901.  
  55902.   # end of AC_DEFUN of LIBOPTS_CHECK
  55903.  
  55904.         if test "$NEED_LIBOPTS_DIR" = "true";then
  55905.                                 create_libopts_links=yes
  55906.                 AUTOGEN=/bin/true
  55907.  
  55908.                 included_libopts=yes
  55909.         fi
  55910. else
  55911.         # Need to ensure the relevant conditionals get set
  55912.  
  55913.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  55914. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  55915. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  55916.   $as_echo_n "(cached) " >&6
  55917. else
  55918.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55919. /* end confdefs.h.  */
  55920. #include <stdlib.h>
  55921.             #include <stdnoreturn.h>
  55922.             /* Do not check for 'noreturn' after the return type.
  55923.                C11 allows it, but it's rarely done that way
  55924.               and circa-2012 bleeding-edge GCC rejects it when given
  55925.               -Werror=old-style-declaration.  */
  55926.            noreturn void foo1 (void) { exit (0); }
  55927.            _Noreturn void foo2 (void) { exit (0); }
  55928.            int testit (int argc, char **argv) {
  55929.              if (argc & 1)
  55930.                return 0;
  55931.              (argv[0][0] ? foo1 : foo2) ();
  55932.            }
  55933.  
  55934. int
  55935. main ()
  55936. {
  55937.  
  55938.  ;
  55939.  return 0;
  55940. }
  55941. _ACEOF
  55942. if ac_fn_c_try_compile "$LINENO"; then :
  55943.  gl_cv_header_working_stdnoreturn_h=yes
  55944. else
  55945.  gl_cv_header_working_stdnoreturn_h=no
  55946. fi
  55947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55948. fi
  55949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  55950. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  55951.  
  55952.  if test $gl_cv_header_working_stdnoreturn_h = yes; then
  55953.    STDNORETURN_H=''
  55954.  else
  55955.    STDNORETURN_H='stdnoreturn.h'
  55956.  fi
  55957.  
  55958.  
  55959.   if test -n "$STDNORETURN_H"; then
  55960.  GL_GENERATE_STDNORETURN_H_TRUE=
  55961.  GL_GENERATE_STDNORETURN_H_FALSE='#'
  55962. else
  55963.   GL_GENERATE_STDNORETURN_H_TRUE='#'
  55964.   GL_GENERATE_STDNORETURN_H_FALSE=
  55965. fi
  55966.  
  55967.  
  55968.          if false; then
  55969.   INSTALL_LIBOPTS_TRUE=
  55970.   INSTALL_LIBOPTS_FALSE='#'
  55971. else
  55972.   INSTALL_LIBOPTS_TRUE='#'
  55973.   INSTALL_LIBOPTS_FALSE=
  55974. fi
  55975.  
  55976.          if false; then
  55977.   NEED_LIBOPTS_TRUE=
  55978.   NEED_LIBOPTS_FALSE='#'
  55979. else
  55980.   NEED_LIBOPTS_TRUE='#'
  55981.   NEED_LIBOPTS_FALSE=
  55982. fi
  55983.  
  55984.         included_libopts=yes
  55985. fi
  55986.  
  55987.  if test "$included_libopts" = "yes"; then
  55988.   NEED_LIBOPTS_TRUE=
  55989.   NEED_LIBOPTS_FALSE='#'
  55990. else
  55991.   NEED_LIBOPTS_TRUE='#'
  55992.   NEED_LIBOPTS_FALSE=
  55993. fi
  55994.  
  55995.  
  55996. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
  55997.    #include <sys/types.h>
  55998.  
  55999. "
  56000. if test "x$ac_cv_type_ssize_t" = xyes; then :
  56001.  
  56002.     DEFINE_SSIZE_T="#include <sys/types.h>"
  56003.  
  56004.  
  56005. else
  56006.  
  56007.  
  56008. $as_echo "#define NO_SSIZE_T 1" >>confdefs.h
  56009.  
  56010.     DEFINE_SSIZE_T="typedef int ssize_t;"
  56011.  
  56012.  
  56013. fi
  56014.  
  56015.  
  56016. # For minitasn1.
  56017. # The cast to long int works around a bug in the HP C Compiler
  56018. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  56019. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  56020. # This bug is HP SR number 8606223364.
  56021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
  56022. $as_echo_n "checking size of unsigned long int... " >&6; }
  56023. if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
  56024.   $as_echo_n "(cached) " >&6
  56025. else
  56026.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
  56027.  
  56028. else
  56029.   if test "$ac_cv_type_unsigned_long_int" = yes; then
  56030.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  56031. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  56032. as_fn_error 77 "cannot compute sizeof (unsigned long int)
  56033. See \`config.log' for more details" "$LINENO" 5; }
  56034.   else
  56035.     ac_cv_sizeof_unsigned_long_int=0
  56036.   fi
  56037. fi
  56038.  
  56039. fi
  56040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
  56041. $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
  56042.  
  56043.  
  56044.  
  56045. cat >>confdefs.h <<_ACEOF
  56046. #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
  56047. _ACEOF
  56048.  
  56049.  
  56050. # The cast to long int works around a bug in the HP C Compiler
  56051. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  56052. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  56053. # This bug is HP SR number 8606223364.
  56054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
  56055. $as_echo_n "checking size of unsigned int... " >&6; }
  56056. if ${ac_cv_sizeof_unsigned_int+:} false; then :
  56057.  $as_echo_n "(cached) " >&6
  56058. else
  56059.  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
  56060.  
  56061. else
  56062.  if test "$ac_cv_type_unsigned_int" = yes; then
  56063.     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  56064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  56065. as_fn_error 77 "cannot compute sizeof (unsigned int)
  56066. See \`config.log' for more details" "$LINENO" 5; }
  56067.   else
  56068.     ac_cv_sizeof_unsigned_int=0
  56069.   fi
  56070. fi
  56071.  
  56072. fi
  56073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
  56074. $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
  56075.  
  56076.  
  56077.  
  56078. cat >>confdefs.h <<_ACEOF
  56079. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  56080. _ACEOF
  56081.  
  56082.  
  56083.  
  56084. # export for use in scripts
  56085.  
  56086.  
  56087.  
  56088.  
  56089.  
  56090.  
  56091. # Check whether --with-default-trust-store-pkcs11 was given.
  56092. if test "${with_default_trust_store_pkcs11+set}" = set; then :
  56093.  withval=$with_default_trust_store_pkcs11;
  56094. fi
  56095.  
  56096.  
  56097. if test "x$with_default_trust_store_pkcs11" != x; then
  56098.  if test "x$with_p11_kit" = xno; then
  56099.    as_fn_error $? "cannot use pkcs11 store without p11-kit" "$LINENO" 5
  56100.  fi
  56101.  
  56102. cat >>confdefs.h <<_ACEOF
  56103. #define DEFAULT_TRUST_STORE_PKCS11 "$with_default_trust_store_pkcs11"
  56104. _ACEOF
  56105.  
  56106. fi
  56107.  
  56108. if test -n "${with_default_trust_store_pkcs11}"; then
  56109.  HAVE_PKCS11_TRUST_STORE_TRUE=
  56110.  HAVE_PKCS11_TRUST_STORE_FALSE='#'
  56111. else
  56112.   HAVE_PKCS11_TRUST_STORE_TRUE='#'
  56113.   HAVE_PKCS11_TRUST_STORE_FALSE=
  56114. fi
  56115.  
  56116.  
  56117.  
  56118. # Check whether --with-default-trust-store-dir was given.
  56119. if test "${with_default_trust_store_dir+set}" = set; then :
  56120.   withval=$with_default_trust_store_dir;
  56121. fi
  56122.  
  56123.  
  56124. if test "x$with_default_trust_store_dir" != x; then
  56125.  
  56126. cat >>confdefs.h <<_ACEOF
  56127. #define DEFAULT_TRUST_STORE_DIR "$with_default_trust_store_dir"
  56128. _ACEOF
  56129.  
  56130. fi
  56131.  
  56132.  
  56133. # Check whether --with-default-trust-store-file was given.
  56134. if test "${with_default_trust_store_file+set}" = set; then :
  56135.   withval=$with_default_trust_store_file; with_default_trust_store_file="$withval"
  56136. else
  56137.   if test "$build" = "$host" && test x$with_default_trust_store_pkcs11 = x && test x$with_default_trust_store_dir = x && test x$have_macosx = x;then
  56138.   for i in \
  56139.     /etc/ssl/ca-bundle.pem \
  56140.     /etc/ssl/certs/ca-certificates.crt \
  56141.     /etc/pki/tls/cert.pem \
  56142.     /usr/local/share/certs/ca-root-nss.crt \
  56143.     /etc/ssl/cert.pem
  56144.     do
  56145.     if test -e "$i"; then
  56146.       with_default_trust_store_file="$i"
  56147.       break
  56148.     fi
  56149.   done
  56150.   fi
  56151.  
  56152. fi
  56153.  
  56154.  
  56155. if test "$with_default_trust_store_file" = "no";then
  56156.   with_default_trust_store_file=""
  56157. fi
  56158.  
  56159.  
  56160. # Check whether --with-default-crl-file was given.
  56161. if test "${with_default_crl_file+set}" = set; then :
  56162.   withval=$with_default_crl_file;
  56163. fi
  56164.  
  56165.  
  56166.  
  56167. # Check whether --with-default-blacklist-file was given.
  56168. if test "${with_default_blacklist_file+set}" = set; then :
  56169.   withval=$with_default_blacklist_file;
  56170. fi
  56171.  
  56172.  
  56173. if test "x$with_default_trust_store_file" != x; then
  56174.  
  56175. cat >>confdefs.h <<_ACEOF
  56176. #define DEFAULT_TRUST_STORE_FILE "$with_default_trust_store_file"
  56177. _ACEOF
  56178.  
  56179. fi
  56180.  
  56181. if test "x$with_default_crl_file" != x; then
  56182.  
  56183. cat >>confdefs.h <<_ACEOF
  56184. #define DEFAULT_CRL_FILE "$with_default_crl_file"
  56185. _ACEOF
  56186.  
  56187. fi
  56188.  
  56189. if test "x$with_default_blacklist_file" != x; then
  56190.  
  56191. cat >>confdefs.h <<_ACEOF
  56192. #define DEFAULT_BLACKLIST_FILE "$with_default_blacklist_file"
  56193. _ACEOF
  56194.  
  56195. fi
  56196.  
  56197. opt_guile_bindings=yes
  56198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building Guile bindings" >&5
  56199. $as_echo_n "checking whether building Guile bindings... " >&6; }
  56200. # Check whether --enable-guile was given.
  56201. if test "${enable_guile+set}" = set; then :
  56202.   enableval=$enable_guile; opt_guile_bindings=$enableval
  56203. fi
  56204.  
  56205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_guile_bindings" >&5
  56206. $as_echo "$opt_guile_bindings" >&6; }
  56207.  
  56208.  
  56209. # Check whether --with-guile-site-dir was given.
  56210. if test "${with_guile_site_dir+set}" = set; then :
  56211.   withval=$with_guile_site_dir;
  56212. fi
  56213.  
  56214.  
  56215. if test "$opt_guile_bindings" = "yes"; then
  56216.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
  56217. *** Detecting GNU Guile...
  56218. " >&5
  56219. $as_echo "***
  56220. *** Detecting GNU Guile...
  56221. " >&6; }
  56222.  
  56223.    # Extract the first word of "guile-snarf", so it can be a program name with args.
  56224. set dummy guile-snarf; ac_word=$2
  56225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  56226. $as_echo_n "checking for $ac_word... " >&6; }
  56227. if ${ac_cv_path_guile_snarf+:} false; then :
  56228.   $as_echo_n "(cached) " >&6
  56229. else
  56230.   case $guile_snarf in
  56231.   [\\/]* | ?:[\\/]*)
  56232.   ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
  56233.   ;;
  56234.   *)
  56235.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  56236. for as_dir in $PATH
  56237. do
  56238.   IFS=$as_save_IFS
  56239.   test -z "$as_dir" && as_dir=.
  56240.     for ac_exec_ext in '' $ac_executable_extensions; do
  56241.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  56242.     ac_cv_path_guile_snarf="$as_dir/$ac_word$ac_exec_ext"
  56243.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  56244.     break 2
  56245.   fi
  56246. done
  56247.   done
  56248. IFS=$as_save_IFS
  56249.  
  56250.   ;;
  56251. esac
  56252. fi
  56253. guile_snarf=$ac_cv_path_guile_snarf
  56254. if test -n "$guile_snarf"; then
  56255.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
  56256. $as_echo "$guile_snarf" >&6; }
  56257. else
  56258.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  56259. $as_echo "no" >&6; }
  56260. fi
  56261.  
  56262.  
  56263.    if test "x$guile_snarf" = "x"; then
  56264.       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`guile-snarf' from Guile not found.  Guile bindings not built." >&5
  56265. $as_echo "$as_me: WARNING: \`guile-snarf' from Guile not found.  Guile bindings not built." >&2;}
  56266.       opt_guile_bindings=no
  56267.    else
  56268.                   # Extract the first word of "guild", so it can be a program name with args.
  56269. set dummy guild; ac_word=$2
  56270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  56271. $as_echo_n "checking for $ac_word... " >&6; }
  56272. if ${ac_cv_path_GUILD+:} false; then :
  56273.   $as_echo_n "(cached) " >&6
  56274. else
  56275.   case $GUILD in
  56276.   [\\/]* | ?:[\\/]*)
  56277.   ac_cv_path_GUILD="$GUILD" # Let the user override the test with a path.
  56278.   ;;
  56279.   *)
  56280.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  56281. for as_dir in $PATH
  56282. do
  56283.   IFS=$as_save_IFS
  56284.   test -z "$as_dir" && as_dir=.
  56285.     for ac_exec_ext in '' $ac_executable_extensions; do
  56286.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  56287.     ac_cv_path_GUILD="$as_dir/$ac_word$ac_exec_ext"
  56288.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  56289.     break 2
  56290.   fi
  56291. done
  56292.   done
  56293. IFS=$as_save_IFS
  56294.  
  56295.   ;;
  56296. esac
  56297. fi
  56298. GUILD=$ac_cv_path_GUILD
  56299. if test -n "$GUILD"; then
  56300.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILD" >&5
  56301. $as_echo "$GUILD" >&6; }
  56302. else
  56303.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  56304. $as_echo "no" >&6; }
  56305. fi
  56306.  
  56307.  
  56308.  
  56309.  
  56310.       # Extract the first word of "guile", so it can be a program name with args.
  56311. set dummy guile; ac_word=$2
  56312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  56313. $as_echo_n "checking for $ac_word... " >&6; }
  56314. if ${ac_cv_path_GUILE+:} false; then :
  56315.   $as_echo_n "(cached) " >&6
  56316. else
  56317.   case $GUILE in
  56318.   [\\/]* | ?:[\\/]*)
  56319.   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
  56320.   ;;
  56321.   *)
  56322.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  56323. for as_dir in $PATH
  56324. do
  56325.   IFS=$as_save_IFS
  56326.   test -z "$as_dir" && as_dir=.
  56327.     for ac_exec_ext in '' $ac_executable_extensions; do
  56328.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  56329.     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
  56330.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  56331.     break 2
  56332.   fi
  56333. done
  56334.   done
  56335. IFS=$as_save_IFS
  56336.  
  56337.   ;;
  56338. esac
  56339. fi
  56340. GUILE=$ac_cv_path_GUILE
  56341. if test -n "$GUILE"; then
  56342.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
  56343. $as_echo "$GUILE" >&6; }
  56344. else
  56345.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  56346. $as_echo "no" >&6; }
  56347. fi
  56348.  
  56349.  
  56350.   if test "$GUILE" = "" ; then
  56351.       as_fn_error $? "guile required but not found" "$LINENO" 5
  56352.   fi
  56353.  
  56354.   # Extract the first word of "guile-config", so it can be a program name with args.
  56355. set dummy guile-config; ac_word=$2
  56356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  56357. $as_echo_n "checking for $ac_word... " >&6; }
  56358. if ${ac_cv_path_GUILE_CONFIG+:} false; then :
  56359.   $as_echo_n "(cached) " >&6
  56360. else
  56361.   case $GUILE_CONFIG in
  56362.   [\\/]* | ?:[\\/]*)
  56363.   ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
  56364.   ;;
  56365.   *)
  56366.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  56367. for as_dir in $PATH
  56368. do
  56369.   IFS=$as_save_IFS
  56370.   test -z "$as_dir" && as_dir=.
  56371.     for ac_exec_ext in '' $ac_executable_extensions; do
  56372.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  56373.     ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  56374.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  56375.     break 2
  56376.   fi
  56377. done
  56378.   done
  56379. IFS=$as_save_IFS
  56380.  
  56381.   ;;
  56382. esac
  56383. fi
  56384. GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
  56385. if test -n "$GUILE_CONFIG"; then
  56386.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
  56387. $as_echo "$GUILE_CONFIG" >&6; }
  56388. else
  56389.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  56390. $as_echo "no" >&6; }
  56391. fi
  56392.  
  56393.  
  56394.   if test "$GUILE_CONFIG" = "" ; then
  56395.       as_fn_error $? "guile-config required but not found" "$LINENO" 5
  56396.   fi
  56397.  
  56398.   # Extract the first word of "guile-tools", so it can be a program name with args.
  56399. set dummy guile-tools; ac_word=$2
  56400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  56401. $as_echo_n "checking for $ac_word... " >&6; }
  56402. if ${ac_cv_path_GUILE_TOOLS+:} false; then :
  56403.   $as_echo_n "(cached) " >&6
  56404. else
  56405.   case $GUILE_TOOLS in
  56406.   [\\/]* | ?:[\\/]*)
  56407.   ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
  56408.   ;;
  56409.   *)
  56410.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  56411. for as_dir in $PATH
  56412. do
  56413.   IFS=$as_save_IFS
  56414.   test -z "$as_dir" && as_dir=.
  56415.     for ac_exec_ext in '' $ac_executable_extensions; do
  56416.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  56417.     ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
  56418.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  56419.     break 2
  56420.   fi
  56421. done
  56422.   done
  56423. IFS=$as_save_IFS
  56424.  
  56425.   ;;
  56426. esac
  56427. fi
  56428. GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
  56429. if test -n "$GUILE_TOOLS"; then
  56430.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
  56431. $as_echo "$GUILE_TOOLS" >&6; }
  56432. else
  56433.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  56434. $as_echo "no" >&6; }
  56435. fi
  56436.  
  56437.  
  56438.  
  56439.  
  56440.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
  56441. $as_echo_n "checking libguile compile flags... " >&6; }
  56442.   GUILE_CFLAGS="`$GUILE_CONFIG compile`"
  56443.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
  56444. $as_echo "$GUILE_CFLAGS" >&6; }
  56445.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
  56446. $as_echo_n "checking libguile link flags... " >&6; }
  56447.   GUILE_LDFLAGS="`$GUILE_CONFIG link`"
  56448.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
  56449. $as_echo "$GUILE_LDFLAGS" >&6; }
  56450.  
  56451.  
  56452.  
  56453.  
  56454.       save_CFLAGS="$CFLAGS"
  56455.       save_LIBS="$LIBS"
  56456.       CFLAGS="$CFLAGS $GUILE_CFLAGS"
  56457.       LIBS="$LIBS $GUILE_LDFLAGS"
  56458.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU Guile is recent enough" >&5
  56459. $as_echo_n "checking whether GNU Guile is recent enough... " >&6; }
  56460.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56461. /* end confdefs.h.  */
  56462.  
  56463. int
  56464. main ()
  56465. {
  56466. scm_from_locale_string ("")
  56467.   ;
  56468.   return 0;
  56469. }
  56470. _ACEOF
  56471. if ac_fn_c_try_link "$LINENO"; then :
  56472.  
  56473. else
  56474.   opt_guile_bindings=no
  56475. fi
  56476. rm -f core conftest.err conftest.$ac_objext \
  56477.     conftest$ac_exeext conftest.$ac_ext
  56478.       CFLAGS="$save_CFLAGS"
  56479.       LIBS="$save_LIBS"
  56480.  
  56481.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Guile effective version" >&5
  56482. $as_echo_n "checking the Guile effective version... " >&6; }
  56483.       guile_effective_version="`$GUILE -c '(display (effective-version))'`"
  56484.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_effective_version" >&5
  56485. $as_echo "$guile_effective_version" >&6; }
  56486.  
  56487.       if test "$opt_guile_bindings" = "yes"; then
  56488.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  56489. $as_echo "yes" >&6; }
  56490.         case "x$with_guile_site_dir" in
  56491.              xno)
  56492.                 # Use the default $(GUILE_SITE).
  56493.                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
  56494. $as_echo_n "checking for Guile site directory... " >&6; }
  56495.   GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site
  56496.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
  56497. $as_echo "$GUILE_SITE" >&6; }
  56498.  
  56499.  
  56500.                 ;;
  56501.              x|xyes)
  56502.                 # Automatically derive $(GUILE_SITE) from $(pkgdatadir).  This
  56503.                 # hack is used to allow `distcheck' to work (see
  56504.                 # `DISTCHECK_CONFIGURE_FLAGS' in the top-level `Makefile.am').
  56505.                 GUILE_SITE="\$(datadir)/guile/site/$guile_effective_version"
  56506.  
  56507.                 ;;
  56508.              *)
  56509.                 # Use the user-specified directory as $(GUILE_SITE).
  56510.                 GUILE_SITE="$with_guile_site_dir"
  56511.  
  56512.                 ;;
  56513.         esac
  56514.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fgnu89-inline" >&5
  56515. $as_echo_n "checking whether gcc supports -fgnu89-inline... " >&6; }
  56516.         _gcc_cflags_save="$CFLAGS"
  56517.         CFLAGS="${CFLAGS} -fgnu89-inline"
  56518.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56519. /* end confdefs.h.  */
  56520.  
  56521. int
  56522. main ()
  56523. {
  56524.  
  56525.   ;
  56526.   return 0;
  56527. }
  56528. _ACEOF
  56529. if ac_fn_c_try_compile "$LINENO"; then :
  56530.   gnu89_inline=yes
  56531. else
  56532.   gnu89_inline=no
  56533. fi
  56534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56535.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnu89_inline" >&5
  56536. $as_echo "$gnu89_inline" >&6; }
  56537.         CFLAGS="$_gcc_cflags_save"
  56538.  
  56539.         # Optional Guile functions.
  56540.         save_CFLAGS="$CFLAGS"
  56541.         save_LIBS="$LIBS"
  56542.         CFLAGS="$CFLAGS $GUILE_CFLAGS"
  56543.         LIBS="$LIBS $GUILE_LDFLAGS"
  56544.         for ac_func in scm_gc_malloc_pointerless
  56545. do :
  56546.   ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
  56547. if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes; then :
  56548.   cat >>confdefs.h <<_ACEOF
  56549. #define HAVE_SCM_GC_MALLOC_POINTERLESS 1
  56550. _ACEOF
  56551.  
  56552. fi
  56553. done
  56554.  
  56555.         CFLAGS="$save_CFLAGS"
  56556.         LIBS="$save_LIBS"
  56557.  
  56558.         # The place where guile-gnutls.la will go.
  56559.         guileextensiondir="$libdir/guile/$guile_effective_version"
  56560.  
  56561.  
  56562.         # The location of .go files.
  56563.         guileobjectdir="$libdir/guile/$guile_effective_version/site-ccache"
  56564.  
  56565.       else
  56566.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  56567. $as_echo "no" >&6; }
  56568.         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&5
  56569. $as_echo "$as_me: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&2;}
  56570.         opt_guile_bindings=no
  56571.       fi
  56572.    fi
  56573. fi
  56574.  
  56575.  if test "$opt_guile_bindings" = "yes"; then
  56576.   HAVE_GUILE_TRUE=
  56577.   HAVE_GUILE_FALSE='#'
  56578. else
  56579.   HAVE_GUILE_TRUE='#'
  56580.   HAVE_GUILE_FALSE=
  56581. fi
  56582.  
  56583.  if test "x$GUILD" != "x"; then
  56584.   HAVE_GUILD_TRUE=
  56585.   HAVE_GUILD_FALSE='#'
  56586. else
  56587.   HAVE_GUILD_TRUE='#'
  56588.   HAVE_GUILD_FALSE=
  56589. fi
  56590.  
  56591.  
  56592. LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
  56593. LIBGNUTLS_CFLAGS="-I${includedir}"
  56594.  
  56595.  
  56596.  
  56597.  if test "$gnutls_needs_librt" = "yes"; then
  56598.   NEEDS_LIBRT_TRUE=
  56599.   NEEDS_LIBRT_FALSE='#'
  56600. else
  56601.   NEEDS_LIBRT_TRUE='#'
  56602.   NEEDS_LIBRT_FALSE=
  56603. fi
  56604.  
  56605.  
  56606.  
  56607. $as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
  56608.  
  56609.  
  56610. $as_echo "#define GNUTLS_INTERNAL_BUILD 1" >>confdefs.h
  56611.  
  56612.  
  56613.  
  56614. $as_echo "#define fread_file _gnutls_fread_file" >>confdefs.h
  56615.  
  56616.  
  56617. $as_echo "#define read_file _gnutls_read_file" >>confdefs.h
  56618.  
  56619.  
  56620. $as_echo "#define read_binary_file _gnutls_read_binary_file" >>confdefs.h
  56621.  
  56622.  
  56623. YEAR=`date +%Y`
  56624. YEAR=$YEAR
  56625.  
  56626.  
  56627. for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do
  56628.         nam=$(basename $i|sed 's/.bak//g')
  56629.         if test "$create_libopts_links" = "yes";then
  56630.                 rm -f "src/$nam.stamp"
  56631.                 rm -f "src/$nam"
  56632.                 ac_config_links="$ac_config_links src/$nam:$i"
  56633.  
  56634.         fi
  56635. done
  56636.  
  56637. ac_config_files="$ac_config_files guile/pre-inst-guile"
  56638.  
  56639. ac_config_files="$ac_config_files Makefile doc/Makefile doc/credentials/Makefile doc/credentials/srp/Makefile doc/credentials/x509/Makefile doc/cyclo/Makefile doc/doxygen/Doxyfile doc/examples/Makefile doc/latex/Makefile doc/manpages/Makefile doc/reference/Makefile doc/reference/version.xml doc/scripts/Makefile extra/Makefile extra/includes/Makefile libdane/Makefile libdane/includes/Makefile libdane/gnutls-dane.pc gl/Makefile gl/tests/Makefile guile/Makefile guile/src/Makefile lib/Makefile lib/accelerated/Makefile lib/accelerated/x86/Makefile lib/accelerated/aarch64/Makefile lib/algorithms/Makefile lib/auth/Makefile lib/ext/Makefile lib/extras/Makefile lib/gnutls.pc lib/includes/Makefile lib/includes/gnutls/gnutls.h lib/minitasn1/Makefile lib/nettle/Makefile lib/x509/Makefile lib/unistring/Makefile po/Makefile.in src/Makefile src/gl/Makefile tests/Makefile tests/windows/Makefile tests/cert-tests/Makefile tests/slow/Makefile tests/suite/Makefile fuzz/Makefile"
  56640.  
  56641.  
  56642. cat >confcache <<\_ACEOF
  56643. # This file is a shell script that caches the results of configure
  56644. # tests run on this system so they can be shared between configure
  56645. # scripts and configure runs, see configure's option --config-cache.
  56646. # It is not useful on other systems.  If it contains results you don't
  56647. # want to keep, you may remove or edit it.
  56648. #
  56649. # config.status only pays attention to the cache file if you give it
  56650. # the --recheck option to rerun configure.
  56651. #
  56652. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  56653. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  56654. # following values.
  56655.  
  56656. _ACEOF
  56657.  
  56658. # The following way of writing the cache mishandles newlines in values,
  56659. # but we know of no workaround that is simple, portable, and efficient.
  56660. # So, we kill variables containing newlines.
  56661. # Ultrix sh set writes to stderr and can't be redirected directly,
  56662. # and sets the high bit in the cache file unless we assign to the vars.
  56663. (
  56664.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  56665.     eval ac_val=\$$ac_var
  56666.     case $ac_val in #(
  56667.     *${as_nl}*)
  56668.       case $ac_var in #(
  56669.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  56670. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  56671.       esac
  56672.       case $ac_var in #(
  56673.       _ | IFS | as_nl) ;; #(
  56674.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  56675.       *) { eval $ac_var=; unset $ac_var;} ;;
  56676.       esac ;;
  56677.     esac
  56678.   done
  56679.  
  56680.   (set) 2>&1 |
  56681.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  56682.     *${as_nl}ac_space=\ *)
  56683.       # `set' does not quote correctly, so add quotes: double-quote
  56684.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  56685.       sed -n \
  56686.         "s/'/'\\\\''/g;
  56687.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  56688.       ;; #(
  56689.     *)
  56690.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  56691.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  56692.       ;;
  56693.     esac |
  56694.     sort
  56695. ) |
  56696.   sed '
  56697.     /^ac_cv_env_/b end
  56698.     t clear
  56699.     :clear
  56700.     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  56701.     t end
  56702.     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  56703.     :end' >>confcache
  56704. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  56705.   if test -w "$cache_file"; then
  56706.     if test "x$cache_file" != "x/dev/null"; then
  56707.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  56708. $as_echo "$as_me: updating cache $cache_file" >&6;}
  56709.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  56710.         cat confcache >"$cache_file"
  56711.       else
  56712.         case $cache_file in #(
  56713.         */* | ?:*)
  56714.           mv -f confcache "$cache_file"$$ &&
  56715.           mv -f "$cache_file"$$ "$cache_file" ;; #(
  56716.         *)
  56717.           mv -f confcache "$cache_file" ;;
  56718.         esac
  56719.       fi
  56720.     fi
  56721.   else
  56722.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  56723. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  56724.   fi
  56725. fi
  56726. rm -f confcache
  56727.  
  56728. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  56729. # Let make expand exec_prefix.
  56730. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  56731.  
  56732. DEFS=-DHAVE_CONFIG_H
  56733.  
  56734. ac_libobjs=
  56735. ac_ltlibobjs=
  56736. U=
  56737. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  56738.   # 1. Remove the extension, and $U if already installed.
  56739.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  56740.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  56741.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  56742.   #    will be set to the directory where LIBOBJS objects are built.
  56743.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  56744.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  56745. done
  56746. LIBOBJS=$ac_libobjs
  56747.  
  56748. LTLIBOBJS=$ac_ltlibobjs
  56749.  
  56750.  
  56751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  56752. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  56753.    if test -n "$am_sleep_pid"; then
  56754.      # Hide warnings about reused PIDs.
  56755.      wait $am_sleep_pid 2>/dev/null
  56756.    fi
  56757.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  56758. $as_echo "done" >&6; }
  56759.  if test -n "$EXEEXT"; then
  56760.   am__EXEEXT_TRUE=
  56761.   am__EXEEXT_FALSE='#'
  56762. else
  56763.   am__EXEEXT_TRUE='#'
  56764.   am__EXEEXT_FALSE=
  56765. fi
  56766.  
  56767. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  56768.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  56769. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56770. fi
  56771. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  56772.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  56773. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56774. fi
  56775. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  56776.   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  56777. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56778. fi
  56779. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  56780.   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  56781. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56782. fi
  56783. if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
  56784.   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
  56785. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56786. fi
  56787. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  56788.   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  56789. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56790. fi
  56791. if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
  56792.   as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
  56793. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56794. fi
  56795. if test -z "${ENABLE_MANPAGES_TRUE}" && test -z "${ENABLE_MANPAGES_FALSE}"; then
  56796.   as_fn_error $? "conditional \"ENABLE_MANPAGES\" was never defined.
  56797. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56798. fi
  56799. if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
  56800.   as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
  56801. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56802. fi
  56803. if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
  56804.   as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
  56805. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56806. fi
  56807. if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
  56808.   as_fn_error $? "conditional \"ANDROID\" was never defined.
  56809. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56810. fi
  56811. if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
  56812.   as_fn_error $? "conditional \"WINDOWS\" was never defined.
  56813. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56814. fi
  56815. if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
  56816.   as_fn_error $? "conditional \"MACOSX\" was never defined.
  56817. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56818. fi
  56819. if test -z "${ELF_TRUE}" && test -z "${ELF_FALSE}"; then
  56820.   as_fn_error $? "conditional \"ELF\" was never defined.
  56821. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56822. fi
  56823. if test -z "${ENABLE_PADLOCK_TRUE}" && test -z "${ENABLE_PADLOCK_FALSE}"; then
  56824.   as_fn_error $? "conditional \"ENABLE_PADLOCK\" was never defined.
  56825. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56826. fi
  56827. if test -z "${ASM_AARCH64_TRUE}" && test -z "${ASM_AARCH64_FALSE}"; then
  56828.   as_fn_error $? "conditional \"ASM_AARCH64\" was never defined.
  56829. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56830. fi
  56831. if test -z "${ASM_X86_64_TRUE}" && test -z "${ASM_X86_64_FALSE}"; then
  56832.   as_fn_error $? "conditional \"ASM_X86_64\" was never defined.
  56833. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56834. fi
  56835. if test -z "${ASM_X86_32_TRUE}" && test -z "${ASM_X86_32_FALSE}"; then
  56836.   as_fn_error $? "conditional \"ASM_X86_32\" was never defined.
  56837. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56838. fi
  56839. if test -z "${ASM_X86_TRUE}" && test -z "${ASM_X86_FALSE}"; then
  56840.   as_fn_error $? "conditional \"ASM_X86\" was never defined.
  56841. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56842. fi
  56843. if test -z "${HAVE_GCC_GNU89_INLINE_OPTION_TRUE}" && test -z "${HAVE_GCC_GNU89_INLINE_OPTION_FALSE}"; then
  56844.   as_fn_error $? "conditional \"HAVE_GCC_GNU89_INLINE_OPTION\" was never defined.
  56845. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56846. fi
  56847. if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
  56848.   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
  56849. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56850. fi
  56851. if test -z "${HAVE_GETENTROPY_TRUE}" && test -z "${HAVE_GETENTROPY_FALSE}"; then
  56852.   as_fn_error $? "conditional \"HAVE_GETENTROPY\" was never defined.
  56853. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56854. fi
  56855. if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
  56856.   as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
  56857. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56858. fi
  56859. if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
  56860.   as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
  56861. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56862. fi
  56863. if test -z "${ALLOW_SHA1_TRUE}" && test -z "${ALLOW_SHA1_FALSE}"; then
  56864.   as_fn_error $? "conditional \"ALLOW_SHA1\" was never defined.
  56865. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56866. fi
  56867. if test -z "${ENABLE_SSL3_TRUE}" && test -z "${ENABLE_SSL3_FALSE}"; then
  56868.   as_fn_error $? "conditional \"ENABLE_SSL3\" was never defined.
  56869. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56870. fi
  56871. if test -z "${ENABLE_SSL3_TRUE}" && test -z "${ENABLE_SSL3_FALSE}"; then
  56872.   as_fn_error $? "conditional \"ENABLE_SSL3\" was never defined.
  56873. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56874. fi
  56875. if test -z "${ENABLE_DTLS_SRTP_TRUE}" && test -z "${ENABLE_DTLS_SRTP_FALSE}"; then
  56876.   as_fn_error $? "conditional \"ENABLE_DTLS_SRTP\" was never defined.
  56877. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56878. fi
  56879. if test -z "${ENABLE_ALPN_TRUE}" && test -z "${ENABLE_ALPN_FALSE}"; then
  56880.   as_fn_error $? "conditional \"ENABLE_ALPN\" was never defined.
  56881. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56882. fi
  56883. if test -z "${ENABLE_HEARTBEAT_TRUE}" && test -z "${ENABLE_HEARTBEAT_FALSE}"; then
  56884.   as_fn_error $? "conditional \"ENABLE_HEARTBEAT\" was never defined.
  56885. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56886. fi
  56887. if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
  56888.   as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
  56889. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56890. fi
  56891. if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
  56892.   as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
  56893. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56894. fi
  56895. if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
  56896.   as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
  56897. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56898. fi
  56899. if test -z "${ENABLE_DHE_TRUE}" && test -z "${ENABLE_DHE_FALSE}"; then
  56900.   as_fn_error $? "conditional \"ENABLE_DHE\" was never defined.
  56901. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56902. fi
  56903. if test -z "${ENABLE_ECDHE_TRUE}" && test -z "${ENABLE_ECDHE_FALSE}"; then
  56904.   as_fn_error $? "conditional \"ENABLE_ECDHE\" was never defined.
  56905. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56906. fi
  56907. if test -z "${ENABLE_OCSP_TRUE}" && test -z "${ENABLE_OCSP_FALSE}"; then
  56908.   as_fn_error $? "conditional \"ENABLE_OCSP\" was never defined.
  56909. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56910. fi
  56911. if test -z "${ENABLE_SESSION_TICKETS_TRUE}" && test -z "${ENABLE_SESSION_TICKETS_FALSE}"; then
  56912.   as_fn_error $? "conditional \"ENABLE_SESSION_TICKETS\" was never defined.
  56913. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56914. fi
  56915. if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
  56916.   as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
  56917. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56918. fi
  56919. if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
  56920.   as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
  56921. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56922. fi
  56923. if test -z "${ENABLE_DESTRUCTIVE_TESTS_TRUE}" && test -z "${ENABLE_DESTRUCTIVE_TESTS_FALSE}"; then
  56924.   as_fn_error $? "conditional \"ENABLE_DESTRUCTIVE_TESTS\" was never defined.
  56925. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56926. fi
  56927. if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
  56928.   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
  56929. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56930. fi
  56931. if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
  56932.   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
  56933. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56934. fi
  56935. if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
  56936.   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
  56937. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56938. fi
  56939. if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
  56940.   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
  56941. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56942. fi
  56943. if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
  56944.   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
  56945. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56946. fi
  56947. if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
  56948.   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
  56949. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56950. fi
  56951.  
  56952. if test -z "${HAVE_FORK_TRUE}" && test -z "${HAVE_FORK_FALSE}"; then
  56953.   as_fn_error $? "conditional \"HAVE_FORK\" was never defined.
  56954. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56955. fi
  56956. if test -z "${HAVE_SECCOMP_TESTS_TRUE}" && test -z "${HAVE_SECCOMP_TESTS_FALSE}"; then
  56957.   as_fn_error $? "conditional \"HAVE_SECCOMP_TESTS\" was never defined.
  56958. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56959. fi
  56960. if test -z "${HAVE_LIBCRYPTO_TRUE}" && test -z "${HAVE_LIBCRYPTO_FALSE}"; then
  56961.   as_fn_error $? "conditional \"HAVE_LIBCRYPTO\" was never defined.
  56962. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56963. fi
  56964. if test -z "${HAVE_LIBUNISTRING_TRUE}" && test -z "${HAVE_LIBUNISTRING_FALSE}"; then
  56965.   as_fn_error $? "conditional \"HAVE_LIBUNISTRING\" was never defined.
  56966. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56967. fi
  56968. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  56969.   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
  56970. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56971. fi
  56972. if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
  56973.   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
  56974. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56975. fi
  56976. if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
  56977.   as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
  56978. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56979. fi
  56980. if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
  56981.   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
  56982. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56983. fi
  56984. if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
  56985.   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
  56986. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56987. fi
  56988. if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
  56989.   as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
  56990. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56991. fi
  56992. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  56993.   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  56994. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56995. fi
  56996. if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
  56997.   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
  56998. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  56999. fi
  57000. CONFIG_INCLUDE=config.h
  57001.  
  57002. if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
  57003.   as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
  57004. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57005. fi
  57006. if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
  57007.   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
  57008. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57009. fi
  57010. if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
  57011.   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
  57012. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57013. fi
  57014. if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
  57015.   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
  57016. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57017. fi
  57018. if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
  57019.   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
  57020. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57021. fi
  57022. if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
  57023.   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
  57024. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57025. fi
  57026.  
  57027.  
  57028.     gl_libobjs=
  57029.     gl_ltlibobjs=
  57030.     if test -n "$gl_LIBOBJS"; then
  57031.       # Remove the extension.
  57032.       sed_drop_objext='s/\.o$//;s/\.obj$//'
  57033.       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  57034.         gl_libobjs="$gl_libobjs $i.$ac_objext"
  57035.         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  57036.       done
  57037.     fi
  57038.     gl_LIBOBJS=$gl_libobjs
  57039.  
  57040.     gl_LTLIBOBJS=$gl_ltlibobjs
  57041.  
  57042.  
  57043.  
  57044.     gltests_libobjs=
  57045.     gltests_ltlibobjs=
  57046.     if test -n "$gltests_LIBOBJS"; then
  57047.       # Remove the extension.
  57048.       sed_drop_objext='s/\.o$//;s/\.obj$//'
  57049.       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  57050.         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  57051.         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  57052.       done
  57053.     fi
  57054.     gltests_LIBOBJS=$gltests_libobjs
  57055.  
  57056.     gltests_LTLIBOBJS=$gltests_ltlibobjs
  57057.  
  57058.  
  57059. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  57060.   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
  57061. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57062. fi
  57063. if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
  57064.   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
  57065. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57066. fi
  57067. if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
  57068.   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
  57069. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57070. fi
  57071. if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
  57072.   as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
  57073. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57074. fi
  57075. if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
  57076.   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
  57077. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57078. fi
  57079. if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
  57080.   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
  57081. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57082. fi
  57083. if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
  57084.   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
  57085. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57086. fi
  57087.  
  57088.     ggl_libobjs=
  57089.     ggl_ltlibobjs=
  57090.     if test -n "$ggl_LIBOBJS"; then
  57091.       # Remove the extension.
  57092.       sed_drop_objext='s/\.o$//;s/\.obj$//'
  57093.       for i in `for i in $ggl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  57094.         ggl_libobjs="$ggl_libobjs $i.$ac_objext"
  57095.         ggl_ltlibobjs="$ggl_ltlibobjs $i.lo"
  57096.       done
  57097.     fi
  57098.     ggl_LIBOBJS=$ggl_libobjs
  57099.  
  57100.     ggl_LTLIBOBJS=$ggl_ltlibobjs
  57101.  
  57102.  
  57103.  
  57104.     ggltests_libobjs=
  57105.     ggltests_ltlibobjs=
  57106.     if test -n "$ggltests_LIBOBJS"; then
  57107.       # Remove the extension.
  57108.       sed_drop_objext='s/\.o$//;s/\.obj$//'
  57109.       for i in `for i in $ggltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  57110.         ggltests_libobjs="$ggltests_libobjs $i.$ac_objext"
  57111.         ggltests_ltlibobjs="$ggltests_ltlibobjs $i.lo"
  57112.       done
  57113.     fi
  57114.     ggltests_LIBOBJS=$ggltests_libobjs
  57115.  
  57116.     ggltests_LTLIBOBJS=$ggltests_ltlibobjs
  57117.  
  57118.  
  57119. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  57120.   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
  57121. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57122. fi
  57123. if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
  57124.   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
  57125. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57126. fi
  57127. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_FALSE}"; then
  57128.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C\" was never defined.
  57129. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57130. fi
  57131. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_FALSE}"; then
  57132.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC\" was never defined.
  57133. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57134. fi
  57135. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_FALSE}"; then
  57136.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF\" was never defined.
  57137. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57138. fi
  57139. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_FALSE}"; then
  57140.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN\" was never defined.
  57141. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57142. fi
  57143. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_FALSE}"; then
  57144.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO\" was never defined.
  57145. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57146. fi
  57147. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_FALSE}"; then
  57148.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS\" was never defined.
  57149. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57150. fi
  57151. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_FALSE}"; then
  57152.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L\" was never defined.
  57153. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57154. fi
  57155. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_FALSE}"; then
  57156.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC\" was never defined.
  57157. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57158. fi
  57159. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_FALSE}"; then
  57160.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL\" was never defined.
  57161. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57162. fi
  57163. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_FALSE}"; then
  57164.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM\" was never defined.
  57165. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57166. fi
  57167. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_FALSE}"; then
  57168.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO\" was never defined.
  57169. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57170. fi
  57171. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_FALSE}"; then
  57172.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT\" was never defined.
  57173. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57174. fi
  57175. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_FALSE}"; then
  57176.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU\" was never defined.
  57177. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57178. fi
  57179. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_FALSE}"; then
  57180.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M\" was never defined.
  57181. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57182. fi
  57183. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_FALSE}"; then
  57184.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC\" was never defined.
  57185. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57186. fi
  57187. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_FALSE}"; then
  57188.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME\" was never defined.
  57189. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57190. fi
  57191. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_FALSE}"; then
  57192.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN\" was never defined.
  57193. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57194. fi
  57195. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_FALSE}"; then
  57196.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N\" was never defined.
  57197. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57198. fi
  57199. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_FALSE}"; then
  57200.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND\" was never defined.
  57201. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57202. fi
  57203. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_FALSE}"; then
  57204.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL\" was never defined.
  57205. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57206. fi
  57207. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_FALSE}"; then
  57208.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO\" was never defined.
  57209. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57210. fi
  57211. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_FALSE}"; then
  57212.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P\" was never defined.
  57213. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57214. fi
  57215. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_FALSE}"; then
  57216.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC\" was never defined.
  57217. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57218. fi
  57219. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_FALSE}"; then
  57220.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD\" was never defined.
  57221. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57222. fi
  57223. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_FALSE}"; then
  57224.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE\" was never defined.
  57225. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57226. fi
  57227. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_FALSE}"; then
  57228.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF\" was never defined.
  57229. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57230. fi
  57231. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_FALSE}"; then
  57232.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI\" was never defined.
  57233. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57234. fi
  57235. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_FALSE}"; then
  57236.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO\" was never defined.
  57237. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57238. fi
  57239. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_FALSE}"; then
  57240.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS\" was never defined.
  57241. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57242. fi
  57243. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_FALSE}"; then
  57244.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S\" was never defined.
  57245. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57246. fi
  57247. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_FALSE}"; then
  57248.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC\" was never defined.
  57249. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57250. fi
  57251. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_FALSE}"; then
  57252.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK\" was never defined.
  57253. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57254. fi
  57255. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_FALSE}"; then
  57256.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM\" was never defined.
  57257. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57258. fi
  57259. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_FALSE}"; then
  57260.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO\" was never defined.
  57261. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57262. fi
  57263. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_FALSE}"; then
  57264.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z\" was never defined.
  57265. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57266. fi
  57267. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_FALSE}"; then
  57268.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL\" was never defined.
  57269. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57270. fi
  57271. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_FALSE}"; then
  57272.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP\" was never defined.
  57273. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57274. fi
  57275. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_FALSE}"; then
  57276.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS\" was never defined.
  57277. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57278. fi
  57279. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_FALSE}"; then
  57280.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND\" was never defined.
  57281. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57282. fi
  57283. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_FALSE}"; then
  57284.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT\" was never defined.
  57285. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57286. fi
  57287. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_FALSE}"; then
  57288.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME\" was never defined.
  57289. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57290. fi
  57291. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_FALSE}"; then
  57292.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME\" was never defined.
  57293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57294. fi
  57295. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_FALSE}"; then
  57296.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME\" was never defined.
  57297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57298. fi
  57299. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE}"; then
  57300.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE\" was never defined.
  57301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57302. fi
  57303. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE}"; then
  57304.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF\" was never defined.
  57305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57306. fi
  57307. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_FALSE}"; then
  57308.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR\" was never defined.
  57309. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57310. fi
  57311. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_FALSE}"; then
  57312.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST\" was never defined.
  57313. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57314. fi
  57315. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE}"; then
  57316.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS\" was never defined.
  57317. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57318. fi
  57319. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_FALSE}"; then
  57320.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT\" was never defined.
  57321. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57322. fi
  57323. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_FALSE}"; then
  57324.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL\" was never defined.
  57325. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57326. fi
  57327. if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_FALSE}"; then
  57328.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER\" was never defined.
  57329. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57330. fi
  57331. if test -z "${LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE}"; then
  57332.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION\" was never defined.
  57333. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57334. fi
  57335. if test -z "${LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_FALSE}"; then
  57336.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_COMPOSITION\" was never defined.
  57337. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57338. fi
  57339. if test -z "${LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE}"; then
  57340.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION\" was never defined.
  57341. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57342. fi
  57343. if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFC_FALSE}"; then
  57344.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFC\" was never defined.
  57345. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57346. fi
  57347. if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE}"; then
  57348.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFD\" was never defined.
  57349. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57350. fi
  57351. if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKC_FALSE}"; then
  57352.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFKC\" was never defined.
  57353. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57354. fi
  57355. if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE}"; then
  57356.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFKD\" was never defined.
  57357. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57358. fi
  57359. if test -z "${LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_FALSE}"; then
  57360.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE\" was never defined.
  57361. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57362. fi
  57363. if test -z "${LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_FALSE}"; then
  57364.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE\" was never defined.
  57365. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57366. fi
  57367. if test -z "${LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE}"; then
  57368.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE\" was never defined.
  57369. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57370. fi
  57371. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_CPY_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_CPY_FALSE}"; then
  57372.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_CPY\" was never defined.
  57373. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57374. fi
  57375. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_FALSE}"; then
  57376.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE\" was never defined.
  57377. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57378. fi
  57379. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_FALSE}"; then
  57380.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR\" was never defined.
  57381. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57382. fi
  57383. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_FALSE}"; then
  57384.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8\" was never defined.
  57385. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57386. fi
  57387. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_FALSE}"; then
  57388.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB\" was never defined.
  57389. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57390. fi
  57391. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_CPY_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_CPY_FALSE}"; then
  57392.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U32_CPY\" was never defined.
  57393. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57394. fi
  57395. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_FALSE}"; then
  57396.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE\" was never defined.
  57397. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57398. fi
  57399. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_FALSE}"; then
  57400.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8\" was never defined.
  57401. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57402. fi
  57403. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_FALSE}"; then
  57404.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB\" was never defined.
  57405. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57406. fi
  57407. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
  57408.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
  57409. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57410. fi
  57411. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE}"; then
  57412.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CPY\" was never defined.
  57413. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57414. fi
  57415. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
  57416.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
  57417. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57418. fi
  57419. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
  57420.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
  57421. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57422. fi
  57423. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_FALSE}"; then
  57424.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16\" was never defined.
  57425. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57426. fi
  57427. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_FALSE}"; then
  57428.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32\" was never defined.
  57429. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57430. fi
  57431. if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
  57432.   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
  57433. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57434. fi
  57435.  
  57436.     unistring_libobjs=
  57437.     unistring_ltlibobjs=
  57438.     if test -n "$unistring_LIBOBJS"; then
  57439.       # Remove the extension.
  57440.       sed_drop_objext='s/\.o$//;s/\.obj$//'
  57441.       for i in `for i in $unistring_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  57442.         unistring_libobjs="$unistring_libobjs $i.$ac_objext"
  57443.         unistring_ltlibobjs="$unistring_ltlibobjs $i.lo"
  57444.       done
  57445.     fi
  57446.     unistring_LIBOBJS=$unistring_libobjs
  57447.  
  57448.     unistring_LTLIBOBJS=$unistring_ltlibobjs
  57449.  
  57450.  
  57451.  
  57452.     unistringtests_libobjs=
  57453.     unistringtests_ltlibobjs=
  57454.     if test -n "$unistringtests_LIBOBJS"; then
  57455.       # Remove the extension.
  57456.       sed_drop_objext='s/\.o$//;s/\.obj$//'
  57457.       for i in `for i in $unistringtests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  57458.         unistringtests_libobjs="$unistringtests_libobjs $i.$ac_objext"
  57459.         unistringtests_ltlibobjs="$unistringtests_ltlibobjs $i.lo"
  57460.       done
  57461.     fi
  57462.     unistringtests_LIBOBJS=$unistringtests_libobjs
  57463.  
  57464.     unistringtests_LTLIBOBJS=$unistringtests_ltlibobjs
  57465.  
  57466.  
  57467. if test -z "${WANT_TEST_SUITE_TRUE}" && test -z "${WANT_TEST_SUITE_FALSE}"; then
  57468.   as_fn_error $? "conditional \"WANT_TEST_SUITE\" was never defined.
  57469. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57470. fi
  57471. if test -z "${ENABLE_FIPS140_TRUE}" && test -z "${ENABLE_FIPS140_FALSE}"; then
  57472.   as_fn_error $? "conditional \"ENABLE_FIPS140\" was never defined.
  57473. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57474. fi
  57475. if test -z "${HAVE_CMOCKA_TRUE}" && test -z "${HAVE_CMOCKA_FALSE}"; then
  57476.   as_fn_error $? "conditional \"HAVE_CMOCKA\" was never defined.
  57477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57478. fi
  57479. if test -z "${WITH_OLD_NETTLE_TRUE}" && test -z "${WITH_OLD_NETTLE_FALSE}"; then
  57480.   as_fn_error $? "conditional \"WITH_OLD_NETTLE\" was never defined.
  57481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57482. fi
  57483. if test -z "${HAVE_LIBIDN2_TRUE}" && test -z "${HAVE_LIBIDN2_FALSE}"; then
  57484.   as_fn_error $? "conditional \"HAVE_LIBIDN2\" was never defined.
  57485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57486. fi
  57487. if test -z "${ENABLE_NON_SUITEB_CURVES_TRUE}" && test -z "${ENABLE_NON_SUITEB_CURVES_FALSE}"; then
  57488.   as_fn_error $? "conditional \"ENABLE_NON_SUITEB_CURVES\" was never defined.
  57489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57490. fi
  57491. if test -z "${HAVE_NETTLE_RSA_PSS_TRUE}" && test -z "${HAVE_NETTLE_RSA_PSS_FALSE}"; then
  57492.   as_fn_error $? "conditional \"HAVE_NETTLE_RSA_PSS\" was never defined.
  57493. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57494. fi
  57495. if test -z "${ENABLE_DANE_TRUE}" && test -z "${ENABLE_DANE_FALSE}"; then
  57496.   as_fn_error $? "conditional \"ENABLE_DANE\" was never defined.
  57497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57498. fi
  57499. if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
  57500.   as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
  57501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57502. fi
  57503. if test -z "${ENABLE_TROUSERS_TRUE}" && test -z "${ENABLE_TROUSERS_FALSE}"; then
  57504.   as_fn_error $? "conditional \"ENABLE_TROUSERS\" was never defined.
  57505. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57506. fi
  57507. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  57508.   as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  57509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57510. fi
  57511. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  57512.   as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  57513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57514. fi
  57515. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  57516.   as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  57517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57518. fi
  57519. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  57520.   as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  57521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57522. fi
  57523. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  57524.   as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  57525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57526. fi
  57527. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  57528.   as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  57529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57530. fi
  57531. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  57532.   as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  57533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57534. fi
  57535. if test -z "${HAVE_PKCS11_TRUST_STORE_TRUE}" && test -z "${HAVE_PKCS11_TRUST_STORE_FALSE}"; then
  57536.   as_fn_error $? "conditional \"HAVE_PKCS11_TRUST_STORE\" was never defined.
  57537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57538. fi
  57539. if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
  57540.   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
  57541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57542. fi
  57543. if test -z "${HAVE_GUILD_TRUE}" && test -z "${HAVE_GUILD_FALSE}"; then
  57544.   as_fn_error $? "conditional \"HAVE_GUILD\" was never defined.
  57545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57546. fi
  57547. if test -z "${NEEDS_LIBRT_TRUE}" && test -z "${NEEDS_LIBRT_FALSE}"; then
  57548.   as_fn_error $? "conditional \"NEEDS_LIBRT\" was never defined.
  57549. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57550. fi
  57551.  
  57552. : "${CONFIG_STATUS=./config.status}"
  57553. ac_write_fail=0
  57554. ac_clean_files_save=$ac_clean_files
  57555. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  57556. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  57557. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  57558. as_write_fail=0
  57559. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  57560. #! $SHELL
  57561. # Generated by $as_me.
  57562. # Run this file to recreate the current configuration.
  57563. # Compiler output produced by configure, useful for debugging
  57564. # configure, is in config.log if it exists.
  57565.  
  57566. debug=false
  57567. ac_cs_recheck=false
  57568. ac_cs_silent=false
  57569.  
  57570. SHELL=\${CONFIG_SHELL-$SHELL}
  57571. export SHELL
  57572. _ASEOF
  57573. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  57574. ## -------------------- ##
  57575. ## M4sh Initialization. ##
  57576. ## -------------------- ##
  57577.  
  57578. # Be more Bourne compatible
  57579. DUALCASE=1; export DUALCASE # for MKS sh
  57580. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  57581.   emulate sh
  57582.   NULLCMD=:
  57583.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  57584.   # is contrary to our usage.  Disable this feature.
  57585.   alias -g '${1+"$@"}'='"$@"'
  57586.   setopt NO_GLOB_SUBST
  57587. else
  57588.   case `(set -o) 2>/dev/null` in #(
  57589.   *posix*) :
  57590.     set -o posix ;; #(
  57591.   *) :
  57592.      ;;
  57593. esac
  57594. fi
  57595.  
  57596.  
  57597. as_nl='
  57598. '
  57599. export as_nl
  57600. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  57601. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  57602. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  57603. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  57604. # Prefer a ksh shell builtin over an external printf program on Solaris,
  57605. # but without wasting forks for bash or zsh.
  57606. if test -z "$BASH_VERSION$ZSH_VERSION" \
  57607.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  57608.   as_echo='print -r --'
  57609.   as_echo_n='print -rn --'
  57610. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  57611.   as_echo='printf %s\n'
  57612.   as_echo_n='printf %s'
  57613. else
  57614.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  57615.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  57616.     as_echo_n='/usr/ucb/echo -n'
  57617.   else
  57618.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57619.     as_echo_n_body='eval
  57620.      arg=$1;
  57621.      case $arg in #(
  57622.      *"$as_nl"*)
  57623.         expr "X$arg" : "X\\(.*\\)$as_nl";
  57624.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57625.      esac;
  57626.      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57627.    '
  57628.     export as_echo_n_body
  57629.     as_echo_n='sh -c $as_echo_n_body as_echo'
  57630.   fi
  57631.   export as_echo_body
  57632.   as_echo='sh -c $as_echo_body as_echo'
  57633. fi
  57634.  
  57635. # The user is always right.
  57636. if test "${PATH_SEPARATOR+set}" != set; then
  57637.   PATH_SEPARATOR=:
  57638.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  57639.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  57640.       PATH_SEPARATOR=';'
  57641.   }
  57642. fi
  57643.  
  57644.  
  57645. # IFS
  57646. # We need space, tab and new line, in precisely that order.  Quoting is
  57647. # there to prevent editors from complaining about space-tab.
  57648. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57649. # splitting by setting IFS to empty value.)
  57650. IFS=" ""        $as_nl"
  57651.  
  57652. # Find who we are.  Look in the path if we contain no directory separator.
  57653. as_myself=
  57654. case $0 in #((
  57655.   *[\\/]* ) as_myself=$0 ;;
  57656.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  57657. for as_dir in $PATH
  57658. do
  57659.   IFS=$as_save_IFS
  57660.   test -z "$as_dir" && as_dir=.
  57661.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  57662.   done
  57663. IFS=$as_save_IFS
  57664.  
  57665.      ;;
  57666. esac
  57667. # We did not find ourselves, most probably we were run as `sh COMMAND'
  57668. # in which case we are not to be found in the path.
  57669. if test "x$as_myself" = x; then
  57670.   as_myself=$0
  57671. fi
  57672. if test ! -f "$as_myself"; then
  57673.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  57674.   exit 1
  57675. fi
  57676.  
  57677. # Unset variables that we do not need and which cause bugs (e.g. in
  57678. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  57679. # suppresses any "Segmentation fault" message there.  '((' could
  57680. # trigger a bug in pdksh 5.2.14.
  57681. for as_var in BASH_ENV ENV MAIL MAILPATH
  57682. do eval test x\${$as_var+set} = xset \
  57683.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  57684. done
  57685. PS1='$ '
  57686. PS2='> '
  57687. PS4='+ '
  57688.  
  57689. # NLS nuisances.
  57690. LC_ALL=C
  57691. export LC_ALL
  57692. LANGUAGE=C
  57693. export LANGUAGE
  57694.  
  57695. # CDPATH.
  57696. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  57697.  
  57698.  
  57699. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  57700. # ----------------------------------------
  57701. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  57702. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  57703. # script with STATUS, using 1 if that was 0.
  57704. as_fn_error ()
  57705. {
  57706.   as_status=$1; test $as_status -eq 0 && as_status=1
  57707.   if test "$4"; then
  57708.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  57709.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  57710.   fi
  57711.   $as_echo "$as_me: error: $2" >&2
  57712.   as_fn_exit $as_status
  57713. } # as_fn_error
  57714.  
  57715.  
  57716. # as_fn_set_status STATUS
  57717. # -----------------------
  57718. # Set $? to STATUS, without forking.
  57719. as_fn_set_status ()
  57720. {
  57721.   return $1
  57722. } # as_fn_set_status
  57723.  
  57724. # as_fn_exit STATUS
  57725. # -----------------
  57726. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  57727. as_fn_exit ()
  57728. {
  57729.   set +e
  57730.   as_fn_set_status $1
  57731.   exit $1
  57732. } # as_fn_exit
  57733.  
  57734. # as_fn_unset VAR
  57735. # ---------------
  57736. # Portably unset VAR.
  57737. as_fn_unset ()
  57738. {
  57739.   { eval $1=; unset $1;}
  57740. }
  57741. as_unset=as_fn_unset
  57742. # as_fn_append VAR VALUE
  57743. # ----------------------
  57744. # Append the text in VALUE to the end of the definition contained in VAR. Take
  57745. # advantage of any shell optimizations that allow amortized linear growth over
  57746. # repeated appends, instead of the typical quadratic growth present in naive
  57747. # implementations.
  57748. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  57749.   eval 'as_fn_append ()
  57750.  {
  57751.    eval $1+=\$2
  57752.  }'
  57753. else
  57754.   as_fn_append ()
  57755.   {
  57756.     eval $1=\$$1\$2
  57757.   }
  57758. fi # as_fn_append
  57759.  
  57760. # as_fn_arith ARG...
  57761. # ------------------
  57762. # Perform arithmetic evaluation on the ARGs, and store the result in the
  57763. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  57764. # must be portable across $(()) and expr.
  57765. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  57766.   eval 'as_fn_arith ()
  57767.  {
  57768.    as_val=$(( $* ))
  57769.  }'
  57770. else
  57771.   as_fn_arith ()
  57772.   {
  57773.     as_val=`expr "$@" || test $? -eq 1`
  57774.   }
  57775. fi # as_fn_arith
  57776.  
  57777.  
  57778. if expr a : '\(a\)' >/dev/null 2>&1 &&
  57779.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  57780.   as_expr=expr
  57781. else
  57782.   as_expr=false
  57783. fi
  57784.  
  57785. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  57786.   as_basename=basename
  57787. else
  57788.   as_basename=false
  57789. fi
  57790.  
  57791. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  57792.   as_dirname=dirname
  57793. else
  57794.   as_dirname=false
  57795. fi
  57796.  
  57797. as_me=`$as_basename -- "$0" ||
  57798. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  57799.          X"$0" : 'X\(//\)$' \| \
  57800.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  57801. $as_echo X/"$0" |
  57802.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  57803.             s//\1/
  57804.             q
  57805.           }
  57806.           /^X\/\(\/\/\)$/{
  57807.             s//\1/
  57808.             q
  57809.           }
  57810.           /^X\/\(\/\).*/{
  57811.             s//\1/
  57812.             q
  57813.           }
  57814.           s/.*/./; q'`
  57815.  
  57816. # Avoid depending upon Character Ranges.
  57817. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  57818. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  57819. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  57820. as_cr_digits='0123456789'
  57821. as_cr_alnum=$as_cr_Letters$as_cr_digits
  57822.  
  57823. ECHO_C= ECHO_N= ECHO_T=
  57824. case `echo -n x` in #(((((
  57825. -n*)
  57826.   case `echo 'xy\c'` in
  57827.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  57828.   xy)  ECHO_C='\c';;
  57829.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  57830.        ECHO_T=' ';;
  57831.   esac;;
  57832. *)
  57833.   ECHO_N='-n';;
  57834. esac
  57835.  
  57836. rm -f conf$$ conf$$.exe conf$$.file
  57837. if test -d conf$$.dir; then
  57838.   rm -f conf$$.dir/conf$$.file
  57839. else
  57840.   rm -f conf$$.dir
  57841.   mkdir conf$$.dir 2>/dev/null
  57842. fi
  57843. if (echo >conf$$.file) 2>/dev/null; then
  57844.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  57845.     as_ln_s='ln -s'
  57846.     # ... but there are two gotchas:
  57847.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  57848.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  57849.     # In both cases, we have to default to `cp -pR'.
  57850.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  57851.       as_ln_s='cp -pR'
  57852.   elif ln conf$$.file conf$$ 2>/dev/null; then
  57853.     as_ln_s=ln
  57854.   else
  57855.     as_ln_s='cp -pR'
  57856.   fi
  57857. else
  57858.   as_ln_s='cp -pR'
  57859. fi
  57860. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  57861. rmdir conf$$.dir 2>/dev/null
  57862.  
  57863.  
  57864. # as_fn_mkdir_p
  57865. # -------------
  57866. # Create "$as_dir" as a directory, including parents if necessary.
  57867. as_fn_mkdir_p ()
  57868. {
  57869.  
  57870.   case $as_dir in #(
  57871.   -*) as_dir=./$as_dir;;
  57872.   esac
  57873.   test -d "$as_dir" || eval $as_mkdir_p || {
  57874.     as_dirs=
  57875.     while :; do
  57876.       case $as_dir in #(
  57877.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  57878.       *) as_qdir=$as_dir;;
  57879.       esac
  57880.       as_dirs="'$as_qdir' $as_dirs"
  57881.       as_dir=`$as_dirname -- "$as_dir" ||
  57882. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  57883.          X"$as_dir" : 'X\(//\)[^/]' \| \
  57884.          X"$as_dir" : 'X\(//\)$' \| \
  57885.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  57886. $as_echo X"$as_dir" |
  57887.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  57888.             s//\1/
  57889.             q
  57890.           }
  57891.           /^X\(\/\/\)[^/].*/{
  57892.             s//\1/
  57893.             q
  57894.           }
  57895.           /^X\(\/\/\)$/{
  57896.             s//\1/
  57897.             q
  57898.           }
  57899.           /^X\(\/\).*/{
  57900.             s//\1/
  57901.             q
  57902.           }
  57903.           s/.*/./; q'`
  57904.       test -d "$as_dir" && break
  57905.     done
  57906.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  57907.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  57908.  
  57909.  
  57910. } # as_fn_mkdir_p
  57911. if mkdir -p . 2>/dev/null; then
  57912.   as_mkdir_p='mkdir -p "$as_dir"'
  57913. else
  57914.   test -d ./-p && rmdir ./-p
  57915.   as_mkdir_p=false
  57916. fi
  57917.  
  57918.  
  57919. # as_fn_executable_p FILE
  57920. # -----------------------
  57921. # Test if FILE is an executable regular file.
  57922. as_fn_executable_p ()
  57923. {
  57924.   test -f "$1" && test -x "$1"
  57925. } # as_fn_executable_p
  57926. as_test_x='test -x'
  57927. as_executable_p=as_fn_executable_p
  57928.  
  57929. # Sed expression to map a string onto a valid CPP name.
  57930. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  57931.  
  57932. # Sed expression to map a string onto a valid variable name.
  57933. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  57934.  
  57935.  
  57936. exec 6>&1
  57937. ## ----------------------------------- ##
  57938. ## Main body of $CONFIG_STATUS script. ##
  57939. ## ----------------------------------- ##
  57940. _ASEOF
  57941. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  57942.  
  57943. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  57944. # Save the log message, to keep $0 and so on meaningful, and to
  57945. # report actual input values of CONFIG_FILES etc. instead of their
  57946. # values after options handling.
  57947. ac_log="
  57948. This file was extended by GnuTLS $as_me 3.6.2, which was
  57949. generated by GNU Autoconf 2.69.  Invocation command line was
  57950.  
  57951.  CONFIG_FILES    = $CONFIG_FILES
  57952.  CONFIG_HEADERS  = $CONFIG_HEADERS
  57953.  CONFIG_LINKS    = $CONFIG_LINKS
  57954.  CONFIG_COMMANDS = $CONFIG_COMMANDS
  57955.  $ $0 $@
  57956.  
  57957. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  57958. "
  57959.  
  57960. _ACEOF
  57961.  
  57962. case $ac_config_files in *"
  57963. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  57964. esac
  57965.  
  57966. case $ac_config_headers in *"
  57967. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  57968. esac
  57969.  
  57970.  
  57971. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  57972. # Files that config.status was made for.
  57973. config_files="$ac_config_files"
  57974. config_headers="$ac_config_headers"
  57975. config_links="$ac_config_links"
  57976. config_commands="$ac_config_commands"
  57977.  
  57978. _ACEOF
  57979.  
  57980. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  57981. ac_cs_usage="\
  57982. \`$as_me' instantiates files and other configuration actions
  57983. from templates according to the current configuration.  Unless the files
  57984. and actions are specified as TAGs, all are instantiated by default.
  57985.  
  57986. Usage: $0 [OPTION]... [TAG]...
  57987.  
  57988.  -h, --help       print this help, then exit
  57989.  -V, --version    print version number and configuration settings, then exit
  57990.      --config     print configuration, then exit
  57991.  -q, --quiet, --silent
  57992.                   do not print progress messages
  57993.  -d, --debug      don't remove temporary files
  57994.      --recheck    update $as_me by reconfiguring in the same conditions
  57995.      --file=FILE[:TEMPLATE]
  57996.                   instantiate the configuration file FILE
  57997.      --header=FILE[:TEMPLATE]
  57998.                   instantiate the configuration header FILE
  57999.  
  58000. Configuration files:
  58001. $config_files
  58002.  
  58003. Configuration headers:
  58004. $config_headers
  58005.  
  58006. Configuration links:
  58007. $config_links
  58008.  
  58009. Configuration commands:
  58010. $config_commands
  58011.  
  58012. Report bugs to <bugs@gnutls.org>."
  58013.  
  58014. _ACEOF
  58015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  58016. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  58017. ac_cs_version="\\
  58018. GnuTLS config.status 3.6.2
  58019. configured by $0, generated by GNU Autoconf 2.69,
  58020.  with options \\"\$ac_cs_config\\"
  58021.  
  58022. Copyright (C) 2012 Free Software Foundation, Inc.
  58023. This config.status script is free software; the Free Software Foundation
  58024. gives unlimited permission to copy, distribute and modify it."
  58025.  
  58026. ac_pwd='$ac_pwd'
  58027. srcdir='$srcdir'
  58028. INSTALL='$INSTALL'
  58029. MKDIR_P='$MKDIR_P'
  58030. AWK='$AWK'
  58031. test -n "\$AWK" || AWK=awk
  58032. _ACEOF
  58033.  
  58034. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  58035. # The default lists apply if the user does not specify any file.
  58036. ac_need_defaults=:
  58037. while test $# != 0
  58038. do
  58039.  case $1 in
  58040.  --*=?*)
  58041.    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  58042.    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  58043.    ac_shift=:
  58044.    ;;
  58045.  --*=)
  58046.    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  58047.    ac_optarg=
  58048.    ac_shift=:
  58049.    ;;
  58050.  *)
  58051.    ac_option=$1
  58052.    ac_optarg=$2
  58053.    ac_shift=shift
  58054.    ;;
  58055.  esac
  58056.  
  58057.  case $ac_option in
  58058.  # Handling of the options.
  58059.  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  58060.    ac_cs_recheck=: ;;
  58061.  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  58062.    $as_echo "$ac_cs_version"; exit ;;
  58063.  --config | --confi | --conf | --con | --co | --c )
  58064.    $as_echo "$ac_cs_config"; exit ;;
  58065.  --debug | --debu | --deb | --de | --d | -d )
  58066.    debug=: ;;
  58067.  --file | --fil | --fi | --f )
  58068.    $ac_shift
  58069.    case $ac_optarg in
  58070.    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  58071.     '') as_fn_error $? "missing file argument" ;;
  58072.     esac
  58073.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  58074.     ac_need_defaults=false;;
  58075.   --header | --heade | --head | --hea )
  58076.     $ac_shift
  58077.     case $ac_optarg in
  58078.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  58079.     esac
  58080.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  58081.     ac_need_defaults=false;;
  58082.   --he | --h)
  58083.     # Conflict between --help and --header
  58084.     as_fn_error $? "ambiguous option: \`$1'
  58085. Try \`$0 --help' for more information.";;
  58086.   --help | --hel | -h )
  58087.     $as_echo "$ac_cs_usage"; exit ;;
  58088.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  58089.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  58090.     ac_cs_silent=: ;;
  58091.  
  58092.   # This is an error.
  58093.   -*) as_fn_error $? "unrecognized option: \`$1'
  58094. Try \`$0 --help' for more information." ;;
  58095.  
  58096.   *) as_fn_append ac_config_targets " $1"
  58097.      ac_need_defaults=false ;;
  58098.  
  58099.   esac
  58100.   shift
  58101. done
  58102.  
  58103. ac_configure_extra_args=
  58104.  
  58105. if $ac_cs_silent; then
  58106.   exec 6>/dev/null
  58107.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  58108. fi
  58109.  
  58110. _ACEOF
  58111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  58112. if \$ac_cs_recheck; then
  58113.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  58114.   shift
  58115.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  58116.   CONFIG_SHELL='$SHELL'
  58117.   export CONFIG_SHELL
  58118.   exec "\$@"
  58119. fi
  58120.  
  58121. _ACEOF
  58122. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  58123. exec 5>>config.log
  58124. {
  58125.   echo
  58126.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  58127. ## Running $as_me. ##
  58128. _ASBOX
  58129.   $as_echo "$ac_log"
  58130. } >&5
  58131.  
  58132. _ACEOF
  58133. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  58134. #
  58135. # INIT-COMMANDS
  58136. #
  58137. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  58138. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  58139.     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  58140.     # from automake < 1.5.
  58141.     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  58142.     # Capture the value of LINGUAS because we need it to compute CATALOGS.
  58143.     LINGUAS="${LINGUAS-%UNSET%}"
  58144.  
  58145. GNUmakefile=$GNUmakefile
  58146.  
  58147.  
  58148. # The HP-UX ksh and POSIX shell print the target directory to stdout
  58149. # if CDPATH is set.
  58150. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  58151.  
  58152. sed_quote_subst='$sed_quote_subst'
  58153. double_quote_subst='$double_quote_subst'
  58154. delay_variable_subst='$delay_variable_subst'
  58155. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  58156. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  58157. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  58158. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  58159. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  58160. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  58161. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  58162. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  58163. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  58164. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  58165. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  58166. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  58167. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  58168. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  58169. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  58170. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  58171. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  58172. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  58173. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  58174. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  58175. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  58176. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  58177. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  58178. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  58179. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  58180. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  58181. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  58182. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  58183. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  58184. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  58185. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  58186. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  58187. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  58188. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  58189. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  58190. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  58191. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  58192. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  58193. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  58194. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  58195. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  58196. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  58197. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  58198. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  58199. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  58200. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  58201. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  58202. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  58203. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  58204. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  58205. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  58206. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  58207. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  58208. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  58209. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  58210. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  58211. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  58212. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  58213. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  58214. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  58215. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  58216. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  58217. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  58218. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  58219. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  58220. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  58221. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  58222. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  58223. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  58224. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  58225. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  58226. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  58227. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  58228. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  58229. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  58230. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  58231. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  58232. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  58233. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  58234. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  58235. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  58236. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  58237. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  58238. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  58239. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  58240. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  58241. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  58242. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  58243. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  58244. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  58245. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  58246. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  58247. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  58248. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  58249. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  58250. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  58251. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  58252. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  58253. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  58254. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  58255. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  58256. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  58257. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  58258. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  58259. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  58260. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  58261. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  58262. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  58263. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  58264. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  58265. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  58266. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  58267. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  58268. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  58269. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  58270. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  58271. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  58272. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  58273. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  58274. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  58275. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  58276. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  58277. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  58278. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  58279. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  58280. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  58281. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  58282. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  58283. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  58284. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  58285. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  58286. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  58287. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  58288. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  58289. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  58290. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  58291. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  58292. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  58293. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  58294. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  58295. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  58296. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  58297. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  58298. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58299. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58300. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  58301. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  58302. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  58303. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  58304. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  58305. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  58306. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  58307. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  58308. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  58309. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  58310. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  58311. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  58312. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58313. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58314. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58315. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58316. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58317. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58318. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  58319. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  58320. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  58321. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  58322. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  58323. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  58324. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  58325. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  58326. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  58327. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  58328. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  58329. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  58330. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  58331. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58332. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  58333. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  58334. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58335. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  58336. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  58337. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  58338. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  58339. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  58340. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  58341. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  58342. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  58343. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  58344.  
  58345. LTCC='$LTCC'
  58346. LTCFLAGS='$LTCFLAGS'
  58347. compiler='$compiler_DEFAULT'
  58348.  
  58349. # A function that is used when there is no print builtin or printf.
  58350. func_fallback_echo ()
  58351. {
  58352.   eval 'cat <<_LTECHO_EOF
  58353. \$1
  58354. _LTECHO_EOF'
  58355. }
  58356.  
  58357. # Quote evaled strings.
  58358. for var in SHELL \
  58359. ECHO \
  58360. PATH_SEPARATOR \
  58361. SED \
  58362. GREP \
  58363. EGREP \
  58364. FGREP \
  58365. LD \
  58366. NM \
  58367. LN_S \
  58368. lt_SP2NL \
  58369. lt_NL2SP \
  58370. reload_flag \
  58371. OBJDUMP \
  58372. deplibs_check_method \
  58373. file_magic_cmd \
  58374. file_magic_glob \
  58375. want_nocaseglob \
  58376. DLLTOOL \
  58377. sharedlib_from_linklib_cmd \
  58378. AR \
  58379. AR_FLAGS \
  58380. archiver_list_spec \
  58381. STRIP \
  58382. RANLIB \
  58383. CC \
  58384. CFLAGS \
  58385. compiler \
  58386. lt_cv_sys_global_symbol_pipe \
  58387. lt_cv_sys_global_symbol_to_cdecl \
  58388. lt_cv_sys_global_symbol_to_import \
  58389. lt_cv_sys_global_symbol_to_c_name_address \
  58390. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  58391. lt_cv_nm_interface \
  58392. nm_file_list_spec \
  58393. lt_cv_truncate_bin \
  58394. lt_prog_compiler_no_builtin_flag \
  58395. lt_prog_compiler_pic \
  58396. lt_prog_compiler_wl \
  58397. lt_prog_compiler_static \
  58398. lt_cv_prog_compiler_c_o \
  58399. need_locks \
  58400. MANIFEST_TOOL \
  58401. DSYMUTIL \
  58402. NMEDIT \
  58403. LIPO \
  58404. OTOOL \
  58405. OTOOL64 \
  58406. shrext_cmds \
  58407. export_dynamic_flag_spec \
  58408. whole_archive_flag_spec \
  58409. compiler_needs_object \
  58410. with_gnu_ld \
  58411. allow_undefined_flag \
  58412. no_undefined_flag \
  58413. hardcode_libdir_flag_spec \
  58414. hardcode_libdir_separator \
  58415. exclude_expsyms \
  58416. include_expsyms \
  58417. file_list_spec \
  58418. variables_saved_for_relink \
  58419. libname_spec \
  58420. library_names_spec \
  58421. soname_spec \
  58422. install_override_mode \
  58423. finish_eval \
  58424. old_striplib \
  58425. striplib \
  58426. compiler_lib_search_dirs \
  58427. predep_objects \
  58428. postdep_objects \
  58429. predeps \
  58430. postdeps \
  58431. compiler_lib_search_path \
  58432. LD_CXX \
  58433. reload_flag_CXX \
  58434. compiler_CXX \
  58435. lt_prog_compiler_no_builtin_flag_CXX \
  58436. lt_prog_compiler_pic_CXX \
  58437. lt_prog_compiler_wl_CXX \
  58438. lt_prog_compiler_static_CXX \
  58439. lt_cv_prog_compiler_c_o_CXX \
  58440. export_dynamic_flag_spec_CXX \
  58441. whole_archive_flag_spec_CXX \
  58442. compiler_needs_object_CXX \
  58443. with_gnu_ld_CXX \
  58444. allow_undefined_flag_CXX \
  58445. no_undefined_flag_CXX \
  58446. hardcode_libdir_flag_spec_CXX \
  58447. hardcode_libdir_separator_CXX \
  58448. exclude_expsyms_CXX \
  58449. include_expsyms_CXX \
  58450. file_list_spec_CXX \
  58451. compiler_lib_search_dirs_CXX \
  58452. predep_objects_CXX \
  58453. postdep_objects_CXX \
  58454. predeps_CXX \
  58455. postdeps_CXX \
  58456. compiler_lib_search_path_CXX; do
  58457.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  58458.     *[\\\\\\\`\\"\\\$]*)
  58459.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  58460.       ;;
  58461.     *)
  58462.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  58463.       ;;
  58464.     esac
  58465. done
  58466.  
  58467. # Double-quote double-evaled strings.
  58468. for var in reload_cmds \
  58469. old_postinstall_cmds \
  58470. old_postuninstall_cmds \
  58471. old_archive_cmds \
  58472. extract_expsyms_cmds \
  58473. old_archive_from_new_cmds \
  58474. old_archive_from_expsyms_cmds \
  58475. archive_cmds \
  58476. archive_expsym_cmds \
  58477. module_cmds \
  58478. module_expsym_cmds \
  58479. export_symbols_cmds \
  58480. prelink_cmds \
  58481. postlink_cmds \
  58482. postinstall_cmds \
  58483. postuninstall_cmds \
  58484. finish_cmds \
  58485. sys_lib_search_path_spec \
  58486. configure_time_dlsearch_path \
  58487. configure_time_lt_sys_library_path \
  58488. reload_cmds_CXX \
  58489. old_archive_cmds_CXX \
  58490. old_archive_from_new_cmds_CXX \
  58491. old_archive_from_expsyms_cmds_CXX \
  58492. archive_cmds_CXX \
  58493. archive_expsym_cmds_CXX \
  58494. module_cmds_CXX \
  58495. module_expsym_cmds_CXX \
  58496. export_symbols_cmds_CXX \
  58497. prelink_cmds_CXX \
  58498. postlink_cmds_CXX; do
  58499.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  58500.     *[\\\\\\\`\\"\\\$]*)
  58501.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  58502.       ;;
  58503.     *)
  58504.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  58505.       ;;
  58506.     esac
  58507. done
  58508.  
  58509. ac_aux_dir='$ac_aux_dir'
  58510.  
  58511. # See if we are running on zsh, and set the options that allow our
  58512. # commands through without removal of \ escapes INIT.
  58513. if test -n "\${ZSH_VERSION+set}"; then
  58514.    setopt NO_GLOB_SUBST
  58515. fi
  58516.  
  58517.  
  58518.     PACKAGE='$PACKAGE'
  58519.     VERSION='$VERSION'
  58520.     RM='$RM'
  58521.     ofile='$ofile'
  58522.  
  58523.  
  58524.  
  58525.  
  58526.  
  58527.  
  58528. _ACEOF
  58529.  
  58530. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  58531.  
  58532. # Handling of arguments.
  58533. for ac_config_target in $ac_config_targets
  58534. do
  58535.   case $ac_config_target in
  58536.     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  58537.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  58538.     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  58539.     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
  58540.     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  58541.     "src/libopts/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopts/Makefile" ;;
  58542.     "src/$nam") CONFIG_LINKS="$CONFIG_LINKS src/$nam:$i" ;;
  58543.     "guile/pre-inst-guile") CONFIG_FILES="$CONFIG_FILES guile/pre-inst-guile" ;;
  58544.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  58545.     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  58546.     "doc/credentials/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/Makefile" ;;
  58547.     "doc/credentials/srp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/srp/Makefile" ;;
  58548.     "doc/credentials/x509/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/x509/Makefile" ;;
  58549.     "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
  58550.     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
  58551.     "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
  58552.     "doc/latex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/latex/Makefile" ;;
  58553.     "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
  58554.     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
  58555.     "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
  58556.     "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
  58557.     "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
  58558.     "extra/includes/Makefile") CONFIG_FILES="$CONFIG_FILES extra/includes/Makefile" ;;
  58559.     "libdane/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/Makefile" ;;
  58560.     "libdane/includes/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/includes/Makefile" ;;
  58561.     "libdane/gnutls-dane.pc") CONFIG_FILES="$CONFIG_FILES libdane/gnutls-dane.pc" ;;
  58562.     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
  58563.     "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;;
  58564.     "guile/Makefile") CONFIG_FILES="$CONFIG_FILES guile/Makefile" ;;
  58565.     "guile/src/Makefile") CONFIG_FILES="$CONFIG_FILES guile/src/Makefile" ;;
  58566.     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  58567.     "lib/accelerated/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/Makefile" ;;
  58568.     "lib/accelerated/x86/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/x86/Makefile" ;;
  58569.     "lib/accelerated/aarch64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/aarch64/Makefile" ;;
  58570.     "lib/algorithms/Makefile") CONFIG_FILES="$CONFIG_FILES lib/algorithms/Makefile" ;;
  58571.     "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
  58572.     "lib/ext/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ext/Makefile" ;;
  58573.     "lib/extras/Makefile") CONFIG_FILES="$CONFIG_FILES lib/extras/Makefile" ;;
  58574.     "lib/gnutls.pc") CONFIG_FILES="$CONFIG_FILES lib/gnutls.pc" ;;
  58575.     "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
  58576.     "lib/includes/gnutls/gnutls.h") CONFIG_FILES="$CONFIG_FILES lib/includes/gnutls/gnutls.h" ;;
  58577.     "lib/minitasn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/minitasn1/Makefile" ;;
  58578.     "lib/nettle/Makefile") CONFIG_FILES="$CONFIG_FILES lib/nettle/Makefile" ;;
  58579.     "lib/x509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/x509/Makefile" ;;
  58580.     "lib/unistring/Makefile") CONFIG_FILES="$CONFIG_FILES lib/unistring/Makefile" ;;
  58581.     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  58582.     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  58583.     "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;;
  58584.     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  58585.     "tests/windows/Makefile") CONFIG_FILES="$CONFIG_FILES tests/windows/Makefile" ;;
  58586.     "tests/cert-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cert-tests/Makefile" ;;
  58587.     "tests/slow/Makefile") CONFIG_FILES="$CONFIG_FILES tests/slow/Makefile" ;;
  58588.     "tests/suite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/Makefile" ;;
  58589.     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
  58590.  
  58591.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  58592.  esac
  58593. done
  58594.  
  58595.  
  58596. # If the user did not use the arguments to specify the items to instantiate,
  58597. # then the envvar interface is used.  Set only those that are not.
  58598. # We use the long form for the default assignment because of an extremely
  58599. # bizarre bug on SunOS 4.1.3.
  58600. if $ac_need_defaults; then
  58601.  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  58602.  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  58603.  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  58604.  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  58605. fi
  58606.  
  58607. # Have a temporary directory for convenience.  Make it in the build tree
  58608. # simply because there is no reason against having it here, and in addition,
  58609. # creating and moving files from /tmp can sometimes cause problems.
  58610. # Hook for its removal unless debugging.
  58611. # Note that there is a small window in which the directory will not be cleaned:
  58612. # after its creation but before its name has been assigned to `$tmp'.
  58613. $debug ||
  58614. {
  58615.  tmp= ac_tmp=
  58616.  trap 'exit_status=$?
  58617.  : "${ac_tmp:=$tmp}"
  58618.  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  58619. ' 0
  58620.  trap 'as_fn_exit 1' 1 2 13 15
  58621. }
  58622. # Create a (secure) tmp directory for tmp files.
  58623.  
  58624. {
  58625.  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  58626.  test -d "$tmp"
  58627. }  ||
  58628. {
  58629.  tmp=./conf$$-$RANDOM
  58630.  (umask 077 && mkdir "$tmp")
  58631. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  58632. ac_tmp=$tmp
  58633.  
  58634. # Set up the scripts for CONFIG_FILES section.
  58635. # No need to generate them if there are no CONFIG_FILES.
  58636. # This happens for instance with `./config.status config.h'.
  58637. if test -n "$CONFIG_FILES"; then
  58638.  
  58639.  
  58640. ac_cr=`echo X | tr X '\015'`
  58641. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  58642. # But we know of no other shell where ac_cr would be empty at this
  58643. # point, so we can use a bashism as a fallback.
  58644. if test "x$ac_cr" = x; then
  58645.  eval ac_cr=\$\'\\r\'
  58646. fi
  58647. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  58648. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  58649.  ac_cs_awk_cr='\\r'
  58650. else
  58651.  ac_cs_awk_cr=$ac_cr
  58652. fi
  58653.  
  58654. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  58655. _ACEOF
  58656.  
  58657.  
  58658. {
  58659.  echo "cat >conf$$subs.awk <<_ACEOF" &&
  58660.  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  58661.  echo "_ACEOF"
  58662. } >conf$$subs.sh ||
  58663.  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  58664. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  58665. ac_delim='%!_!# '
  58666. for ac_last_try in false false false false false :; do
  58667.  . ./conf$$subs.sh ||
  58668.    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  58669.  
  58670.  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  58671.  if test $ac_delim_n = $ac_delim_num; then
  58672.    break
  58673.  elif $ac_last_try; then
  58674.    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  58675.  else
  58676.    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  58677.  fi
  58678. done
  58679. rm -f conf$$subs.sh
  58680.  
  58681. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  58682. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  58683. _ACEOF
  58684. sed -n '
  58685. h
  58686. s/^/S["/; s/!.*/"]=/
  58687. p
  58688. g
  58689. s/^[^!]*!//
  58690. :repl
  58691. t repl
  58692. s/'"$ac_delim"'$//
  58693. t delim
  58694. :nl
  58695. h
  58696. s/\(.\{148\}\)..*/\1/
  58697. t more1
  58698. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  58699. p
  58700. n
  58701. b repl
  58702. :more1
  58703. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  58704. p
  58705. g
  58706. s/.\{148\}//
  58707. t nl
  58708. :delim
  58709. h
  58710. s/\(.\{148\}\)..*/\1/
  58711. t more2
  58712. s/["\\]/\\&/g; s/^/"/; s/$/"/
  58713. p
  58714. b
  58715. :more2
  58716. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  58717. p
  58718. g
  58719. s/.\{148\}//
  58720. t delim
  58721. ' <conf$$subs.awk | sed '
  58722. /^[^""]/{
  58723.  N
  58724.  s/\n//
  58725. }
  58726. ' >>$CONFIG_STATUS || ac_write_fail=1
  58727. rm -f conf$$subs.awk
  58728. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  58729. _ACAWK
  58730. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  58731.  for (key in S) S_is_set[key] = 1
  58732.  FS = ""
  58733.  
  58734. }
  58735. {
  58736.  line = $ 0
  58737.  nfields = split(line, field, "@")
  58738.  substed = 0
  58739.  len = length(field[1])
  58740.  for (i = 2; i < nfields; i++) {
  58741.    key = field[i]
  58742.    keylen = length(key)
  58743.    if (S_is_set[key]) {
  58744.      value = S[key]
  58745.      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  58746.      len += length(value) + length(field[++i])
  58747.      substed = 1
  58748.    } else
  58749.      len += 1 + keylen
  58750.  }
  58751.  
  58752.  print line
  58753. }
  58754.  
  58755. _ACAWK
  58756. _ACEOF
  58757. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  58758. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  58759.  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  58760. else
  58761.  cat
  58762. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  58763.  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  58764. _ACEOF
  58765.  
  58766. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  58767. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  58768. # trailing colons and then remove the whole line if VPATH becomes empty
  58769. # (actually we leave an empty line to preserve line numbers).
  58770. if test "x$srcdir" = x.; then
  58771.   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
  58772. h
  58773. s///
  58774. s/^/:/
  58775. s/[      ]*$/:/
  58776. s/:\$(srcdir):/:/g
  58777. s/:\${srcdir}:/:/g
  58778. s/:@srcdir@:/:/g
  58779. s/^:*//
  58780. s/:*$//
  58781. x
  58782. s/\(=[   ]*\).*/\1/
  58783. G
  58784. s/\n//
  58785. s/^[^=]*=[       ]*$//
  58786. }'
  58787. fi
  58788.  
  58789. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  58790. fi # test -n "$CONFIG_FILES"
  58791.  
  58792. # Set up the scripts for CONFIG_HEADERS section.
  58793. # No need to generate them if there are no CONFIG_HEADERS.
  58794. # This happens for instance with `./config.status Makefile'.
  58795. if test -n "$CONFIG_HEADERS"; then
  58796. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  58797. BEGIN {
  58798. _ACEOF
  58799.  
  58800. # Transform confdefs.h into an awk script `defines.awk', embedded as
  58801. # here-document in config.status, that substitutes the proper values into
  58802. # config.h.in to produce config.h.
  58803.  
  58804. # Create a delimiter string that does not exist in confdefs.h, to ease
  58805. # handling of long lines.
  58806. ac_delim='%!_!# '
  58807. for ac_last_try in false false :; do
  58808.  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  58809.  if test -z "$ac_tt"; then
  58810.    break
  58811.  elif $ac_last_try; then
  58812.    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  58813.  else
  58814.    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  58815.  fi
  58816. done
  58817.  
  58818. # For the awk script, D is an array of macro values keyed by name,
  58819. # likewise P contains macro parameters if any.  Preserve backslash
  58820. # newline sequences.
  58821.  
  58822. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  58823. sed -n '
  58824. s/.\{148\}/&'"$ac_delim"'/g
  58825. t rset
  58826. :rset
  58827. s/^[     ]*#[    ]*define[       ][      ]*/ /
  58828. t def
  58829. d
  58830. :def
  58831. s/\\$//
  58832. t bsnl
  58833. s/["\\]/\\&/g
  58834. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  58835. D["\1"]=" \3"/p
  58836. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
  58837. d
  58838. :bsnl
  58839. s/["\\]/\\&/g
  58840. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  58841. D["\1"]=" \3\\\\\\n"\\/p
  58842. t cont
  58843. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  58844. t cont
  58845. d
  58846. :cont
  58847. n
  58848. s/.\{148\}/&'"$ac_delim"'/g
  58849. t clear
  58850. :clear
  58851. s/\\$//
  58852. t bsnlc
  58853. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  58854. d
  58855. :bsnlc
  58856. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  58857. b cont
  58858. ' <confdefs.h | sed '
  58859. s/'"$ac_delim"'/"\\\
  58860. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  58861.  
  58862. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  58863.  for (key in D) D_is_set[key] = 1
  58864.  FS = ""
  58865. }
  58866. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  58867.  line = \$ 0
  58868.  split(line, arg, " ")
  58869.  if (arg[1] == "#") {
  58870.    defundef = arg[2]
  58871.    mac1 = arg[3]
  58872.  } else {
  58873.    defundef = substr(arg[1], 2)
  58874.    mac1 = arg[2]
  58875.  }
  58876.  split(mac1, mac2, "(") #)
  58877.  macro = mac2[1]
  58878.  prefix = substr(line, 1, index(line, defundef) - 1)
  58879.  if (D_is_set[macro]) {
  58880.    # Preserve the white space surrounding the "#".
  58881.    print prefix "define", macro P[macro] D[macro]
  58882.    next
  58883.  } else {
  58884.    # Replace #undef with comments.  This is necessary, for example,
  58885.    # in the case of _POSIX_SOURCE, which is predefined and required
  58886.    # on some systems where configure will not decide to define it.
  58887.    if (defundef == "undef") {
  58888.      print "/*", prefix defundef, macro, "*/"
  58889.      next
  58890.    }
  58891.  }
  58892. }
  58893. { print }
  58894. _ACAWK
  58895. _ACEOF
  58896. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  58897.  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  58898. fi # test -n "$CONFIG_HEADERS"
  58899.  
  58900.  
  58901. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
  58902. shift
  58903. for ac_tag
  58904. do
  58905.  case $ac_tag in
  58906.  :[FHLC]) ac_mode=$ac_tag; continue;;
  58907.  esac
  58908.  case $ac_mode$ac_tag in
  58909.  :[FHL]*:*);;
  58910.  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  58911.   :[FH]-) ac_tag=-:-;;
  58912.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  58913.   esac
  58914.   ac_save_IFS=$IFS
  58915.   IFS=:
  58916.   set x $ac_tag
  58917.   IFS=$ac_save_IFS
  58918.   shift
  58919.   ac_file=$1
  58920.   shift
  58921.  
  58922.   case $ac_mode in
  58923.   :L) ac_source=$1;;
  58924.   :[FH])
  58925.     ac_file_inputs=
  58926.     for ac_f
  58927.     do
  58928.       case $ac_f in
  58929.       -) ac_f="$ac_tmp/stdin";;
  58930.       *) # Look for the file first in the build tree, then in the source tree
  58931.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  58932.          # because $ac_f cannot contain `:'.
  58933.          test -f "$ac_f" ||
  58934.            case $ac_f in
  58935.            [\\/$]*) false;;
  58936.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  58937.            esac ||
  58938.            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  58939.      esac
  58940.      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  58941.      as_fn_append ac_file_inputs " '$ac_f'"
  58942.    done
  58943.  
  58944.    # Let's still pretend it is `configure' which instantiates (i.e., don't
  58945.     # use $as_me), people would be surprised to read:
  58946.     #    /* config.h.  Generated by config.status.  */
  58947.     configure_input='Generated from '`
  58948.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  58949.         `' by configure.'
  58950.     if test x"$ac_file" != x-; then
  58951.       configure_input="$ac_file.  $configure_input"
  58952.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  58953. $as_echo "$as_me: creating $ac_file" >&6;}
  58954.     fi
  58955.     # Neutralize special characters interpreted by sed in replacement strings.
  58956.     case $configure_input in #(
  58957.     *\&* | *\|* | *\\* )
  58958.        ac_sed_conf_input=`$as_echo "$configure_input" |
  58959.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  58960.     *) ac_sed_conf_input=$configure_input;;
  58961.     esac
  58962.  
  58963.     case $ac_tag in
  58964.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  58965.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  58966.     esac
  58967.     ;;
  58968.   esac
  58969.  
  58970.   ac_dir=`$as_dirname -- "$ac_file" ||
  58971. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  58972.          X"$ac_file" : 'X\(//\)[^/]' \| \
  58973.          X"$ac_file" : 'X\(//\)$' \| \
  58974.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  58975. $as_echo X"$ac_file" |
  58976.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  58977.             s//\1/
  58978.             q
  58979.           }
  58980.           /^X\(\/\/\)[^/].*/{
  58981.             s//\1/
  58982.             q
  58983.           }
  58984.           /^X\(\/\/\)$/{
  58985.             s//\1/
  58986.             q
  58987.           }
  58988.           /^X\(\/\).*/{
  58989.             s//\1/
  58990.             q
  58991.           }
  58992.           s/.*/./; q'`
  58993.   as_dir="$ac_dir"; as_fn_mkdir_p
  58994.   ac_builddir=.
  58995.  
  58996. case "$ac_dir" in
  58997. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  58998. *)
  58999.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  59000.   # A ".." for each directory in $ac_dir_suffix.
  59001.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  59002.   case $ac_top_builddir_sub in
  59003.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  59004.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  59005.   esac ;;
  59006. esac
  59007. ac_abs_top_builddir=$ac_pwd
  59008. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  59009. # for backward compatibility:
  59010. ac_top_builddir=$ac_top_build_prefix
  59011.  
  59012. case $srcdir in
  59013.   .)  # We are building in place.
  59014.     ac_srcdir=.
  59015.     ac_top_srcdir=$ac_top_builddir_sub
  59016.     ac_abs_top_srcdir=$ac_pwd ;;
  59017.   [\\/]* | ?:[\\/]* )  # Absolute name.
  59018.     ac_srcdir=$srcdir$ac_dir_suffix;
  59019.     ac_top_srcdir=$srcdir
  59020.     ac_abs_top_srcdir=$srcdir ;;
  59021.   *) # Relative name.
  59022.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  59023.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  59024.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  59025. esac
  59026. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  59027.  
  59028.  
  59029.   case $ac_mode in
  59030.   :F)
  59031.   #
  59032.   # CONFIG_FILE
  59033.   #
  59034.  
  59035.   case $INSTALL in
  59036.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  59037.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  59038.   esac
  59039.   ac_MKDIR_P=$MKDIR_P
  59040.   case $MKDIR_P in
  59041.   [\\/$]* | ?:[\\/]* ) ;;
  59042.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  59043.   esac
  59044. _ACEOF
  59045.  
  59046. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  59047. # If the template does not know about datarootdir, expand it.
  59048. # FIXME: This hack should be removed a few years after 2.60.
  59049. ac_datarootdir_hack=; ac_datarootdir_seen=
  59050. ac_sed_dataroot='
  59051. /datarootdir/ {
  59052.  p
  59053.  q
  59054. }
  59055. /@datadir@/p
  59056. /@docdir@/p
  59057. /@infodir@/p
  59058. /@localedir@/p
  59059. /@mandir@/p'
  59060. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  59061. *datarootdir*) ac_datarootdir_seen=yes;;
  59062. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  59063.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  59064. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  59065. _ACEOF
  59066. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  59067.   ac_datarootdir_hack='
  59068.  s&@datadir@&$datadir&g
  59069.  s&@docdir@&$docdir&g
  59070.  s&@infodir@&$infodir&g
  59071.  s&@localedir@&$localedir&g
  59072.  s&@mandir@&$mandir&g
  59073.  s&\\\${datarootdir}&$datarootdir&g' ;;
  59074. esac
  59075. _ACEOF
  59076.  
  59077. # Neutralize VPATH when `$srcdir' = `.'.
  59078. # Shell code in configure.ac might set extrasub.
  59079. # FIXME: do we really want to maintain this feature?
  59080. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  59081. ac_sed_extra="$ac_vpsub
  59082. $extrasub
  59083. _ACEOF
  59084. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  59085. :t
  59086. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  59087. s|@configure_input@|$ac_sed_conf_input|;t t
  59088. s&@top_builddir@&$ac_top_builddir_sub&;t t
  59089. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  59090. s&@srcdir@&$ac_srcdir&;t t
  59091. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  59092. s&@top_srcdir@&$ac_top_srcdir&;t t
  59093. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  59094. s&@builddir@&$ac_builddir&;t t
  59095. s&@abs_builddir@&$ac_abs_builddir&;t t
  59096. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  59097. s&@INSTALL@&$ac_INSTALL&;t t
  59098. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  59099. $ac_datarootdir_hack
  59100. "
  59101. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  59102.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  59103.  
  59104. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  59105.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  59106.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  59107.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  59108.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  59109. which seems to be undefined.  Please make sure it is defined" >&5
  59110. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  59111. which seems to be undefined.  Please make sure it is defined" >&2;}
  59112.  
  59113.   rm -f "$ac_tmp/stdin"
  59114.   case $ac_file in
  59115.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  59116.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  59117.   esac \
  59118.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  59119.  ;;
  59120.   :H)
  59121.   #
  59122.   # CONFIG_HEADER
  59123.   #
  59124.   if test x"$ac_file" != x-; then
  59125.     {
  59126.       $as_echo "/* $configure_input  */" \
  59127.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  59128.     } >"$ac_tmp/config.h" \
  59129.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  59130.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  59131.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  59132. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  59133.     else
  59134.       rm -f "$ac_file"
  59135.       mv "$ac_tmp/config.h" "$ac_file" \
  59136.         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  59137.     fi
  59138.   else
  59139.     $as_echo "/* $configure_input  */" \
  59140.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  59141.       || as_fn_error $? "could not create -" "$LINENO" 5
  59142.   fi
  59143. # Compute "$ac_file"'s index in $config_headers.
  59144. _am_arg="$ac_file"
  59145. _am_stamp_count=1
  59146. for _am_header in $config_headers :; do
  59147.   case $_am_header in
  59148.     $_am_arg | $_am_arg:* )
  59149.       break ;;
  59150.     * )
  59151.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  59152.   esac
  59153. done
  59154. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  59155. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  59156.          X"$_am_arg" : 'X\(//\)[^/]' \| \
  59157.          X"$_am_arg" : 'X\(//\)$' \| \
  59158.          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  59159. $as_echo X"$_am_arg" |
  59160.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  59161.             s//\1/
  59162.             q
  59163.           }
  59164.           /^X\(\/\/\)[^/].*/{
  59165.             s//\1/
  59166.             q
  59167.           }
  59168.           /^X\(\/\/\)$/{
  59169.             s//\1/
  59170.             q
  59171.           }
  59172.           /^X\(\/\).*/{
  59173.             s//\1/
  59174.             q
  59175.           }
  59176.           s/.*/./; q'`/stamp-h$_am_stamp_count
  59177.  ;;
  59178.   :L)
  59179.   #
  59180.   # CONFIG_LINK
  59181.   #
  59182.  
  59183.   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  59184.     :
  59185.   else
  59186.     # Prefer the file from the source tree if names are identical.
  59187.     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  59188.       ac_source=$srcdir/$ac_source
  59189.     fi
  59190.  
  59191.     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  59192. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  59193.  
  59194.     if test ! -r "$ac_source"; then
  59195.       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
  59196.     fi
  59197.     rm -f "$ac_file"
  59198.  
  59199.     # Try a relative symlink, then a hard link, then a copy.
  59200.     case $ac_source in
  59201.     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  59202.         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  59203.     esac
  59204.     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  59205.       ln "$ac_source" "$ac_file" 2>/dev/null ||
  59206.       cp -p "$ac_source" "$ac_file" ||
  59207.       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  59208.   fi
  59209.  ;;
  59210.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  59211. $as_echo "$as_me: executing $ac_file commands" >&6;}
  59212.  ;;
  59213.   esac
  59214.  
  59215.  
  59216.   case $ac_file$ac_mode in
  59217.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  59218.   # Older Autoconf quotes --file arguments for eval, but not when files
  59219.   # are listed without --file.  Let's play safe and only enable the eval
  59220.   # if we detect the quoting.
  59221.   case $CONFIG_FILES in
  59222.   *\'*) eval set x "$CONFIG_FILES" ;;
  59223.   *)   set x $CONFIG_FILES ;;
  59224.   esac
  59225.   shift
  59226.   for mf
  59227.   do
  59228.     # Strip MF so we end up with the name of the file.
  59229.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  59230.     # Check whether this is an Automake generated Makefile or not.
  59231.     # We used to match only the files named 'Makefile.in', but
  59232.     # some people rename them; so instead we look at the file content.
  59233.     # Grep'ing the first line is not enough: some people post-process
  59234.     # each Makefile.in and add a new line on top of each file to say so.
  59235.     # Grep'ing the whole file is not good either: AIX grep has a line
  59236.     # limit of 2048, but all sed's we know have understand at least 4000.
  59237.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  59238.       dirpart=`$as_dirname -- "$mf" ||
  59239. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  59240.          X"$mf" : 'X\(//\)[^/]' \| \
  59241.          X"$mf" : 'X\(//\)$' \| \
  59242.          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  59243. $as_echo X"$mf" |
  59244.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  59245.             s//\1/
  59246.             q
  59247.           }
  59248.           /^X\(\/\/\)[^/].*/{
  59249.             s//\1/
  59250.             q
  59251.           }
  59252.           /^X\(\/\/\)$/{
  59253.             s//\1/
  59254.             q
  59255.           }
  59256.           /^X\(\/\).*/{
  59257.             s//\1/
  59258.             q
  59259.           }
  59260.           s/.*/./; q'`
  59261.     else
  59262.       continue
  59263.     fi
  59264.     # Extract the definition of DEPDIR, am__include, and am__quote
  59265.     # from the Makefile without running 'make'.
  59266.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  59267.     test -z "$DEPDIR" && continue
  59268.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  59269.     test -z "$am__include" && continue
  59270.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  59271.     # Find all dependency output files, they are included files with
  59272.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  59273.     # simplest approach to changing $(DEPDIR) to its actual value in the
  59274.     # expansion.
  59275.     for file in `sed -n "
  59276.      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  59277.          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  59278.       # Make sure the directory exists.
  59279.       test -f "$dirpart/$file" && continue
  59280.       fdir=`$as_dirname -- "$file" ||
  59281. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  59282.          X"$file" : 'X\(//\)[^/]' \| \
  59283.          X"$file" : 'X\(//\)$' \| \
  59284.          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  59285. $as_echo X"$file" |
  59286.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  59287.             s//\1/
  59288.             q
  59289.           }
  59290.           /^X\(\/\/\)[^/].*/{
  59291.             s//\1/
  59292.             q
  59293.           }
  59294.           /^X\(\/\/\)$/{
  59295.             s//\1/
  59296.             q
  59297.           }
  59298.           /^X\(\/\).*/{
  59299.             s//\1/
  59300.             q
  59301.           }
  59302.           s/.*/./; q'`
  59303.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  59304.       # echo "creating $dirpart/$file"
  59305.       echo '# dummy' > "$dirpart/$file"
  59306.     done
  59307.   done
  59308. }
  59309.  ;;
  59310.     "po-directories":C)
  59311.     for ac_file in $CONFIG_FILES; do
  59312.       # Support "outfile[:infile[:infile...]]"
  59313.       case "$ac_file" in
  59314.         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  59315.       esac
  59316.       # PO directories have a Makefile.in generated from Makefile.in.in.
  59317.       case "$ac_file" in */Makefile.in)
  59318.         # Adjust a relative srcdir.
  59319.         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  59320.         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  59321.         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  59322.         # In autoconf-2.13 it is called $ac_given_srcdir.
  59323.         # In autoconf-2.50 it is called $srcdir.
  59324.         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  59325.         case "$ac_given_srcdir" in
  59326.           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  59327.           /*) top_srcdir="$ac_given_srcdir" ;;
  59328.           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
  59329.         esac
  59330.         # Treat a directory as a PO directory if and only if it has a
  59331.         # POTFILES.in file. This allows packages to have multiple PO
  59332.         # directories under different names or in different locations.
  59333.         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  59334.           rm -f "$ac_dir/POTFILES"
  59335.           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  59336.           gt_tab=`printf '\t'`
  59337.           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  59338.           POMAKEFILEDEPS="POTFILES.in"
  59339.           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  59340.           # on $ac_dir but don't depend on user-specified configuration
  59341.           # parameters.
  59342.           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  59343.             # The LINGUAS file contains the set of available languages.
  59344.             if test -n "$OBSOLETE_ALL_LINGUAS"; then
  59345.               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  59346.             fi
  59347.             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  59348.             # Hide the ALL_LINGUAS assignment from automake < 1.5.
  59349.             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  59350.             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  59351.           else
  59352.             # The set of available languages was given in configure.in.
  59353.             # Hide the ALL_LINGUAS assignment from automake < 1.5.
  59354.             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  59355.           fi
  59356.           # Compute POFILES
  59357.           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  59358.           # Compute UPDATEPOFILES
  59359.           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  59360.           # Compute DUMMYPOFILES
  59361.           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  59362.           # Compute GMOFILES
  59363.           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  59364.           case "$ac_given_srcdir" in
  59365.             .) srcdirpre= ;;
  59366.             *) srcdirpre='$(srcdir)/' ;;
  59367.           esac
  59368.           POFILES=
  59369.           UPDATEPOFILES=
  59370.           DUMMYPOFILES=
  59371.           GMOFILES=
  59372.           for lang in $ALL_LINGUAS; do
  59373.             POFILES="$POFILES $srcdirpre$lang.po"
  59374.             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  59375.             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  59376.             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  59377.           done
  59378.           # CATALOGS depends on both $ac_dir and the user's LINGUAS
  59379.           # environment variable.
  59380.           INST_LINGUAS=
  59381.           if test -n "$ALL_LINGUAS"; then
  59382.             for presentlang in $ALL_LINGUAS; do
  59383.               useit=no
  59384.               if test "%UNSET%" != "$LINGUAS"; then
  59385.                 desiredlanguages="$LINGUAS"
  59386.               else
  59387.                 desiredlanguages="$ALL_LINGUAS"
  59388.               fi
  59389.               for desiredlang in $desiredlanguages; do
  59390.                 # Use the presentlang catalog if desiredlang is
  59391.                 #   a. equal to presentlang, or
  59392.                 #   b. a variant of presentlang (because in this case,
  59393.                 #      presentlang can be used as a fallback for messages
  59394.                 #      which are not translated in the desiredlang catalog).
  59395.                 case "$desiredlang" in
  59396.                   "$presentlang"*) useit=yes;;
  59397.                 esac
  59398.               done
  59399.               if test $useit = yes; then
  59400.                 INST_LINGUAS="$INST_LINGUAS $presentlang"
  59401.               fi
  59402.             done
  59403.           fi
  59404.           CATALOGS=
  59405.           if test -n "$INST_LINGUAS"; then
  59406.             for lang in $INST_LINGUAS; do
  59407.               CATALOGS="$CATALOGS $lang.gmo"
  59408.             done
  59409.           fi
  59410.           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  59411.           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  59412.           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  59413.             if test -f "$f"; then
  59414.               case "$f" in
  59415.                 *.orig | *.bak | *~) ;;
  59416.                 *) cat "$f" >> "$ac_dir/Makefile" ;;
  59417.               esac
  59418.             fi
  59419.           done
  59420.         fi
  59421.         ;;
  59422.       esac
  59423.     done ;;
  59424.     "libtool":C)
  59425.  
  59426.     # See if we are running on zsh, and set the options that allow our
  59427.     # commands through without removal of \ escapes.
  59428.     if test -n "${ZSH_VERSION+set}"; then
  59429.       setopt NO_GLOB_SUBST
  59430.     fi
  59431.  
  59432.     cfgfile=${ofile}T
  59433.     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  59434.     $RM "$cfgfile"
  59435.  
  59436.     cat <<_LT_EOF >> "$cfgfile"
  59437. #! $SHELL
  59438. # Generated automatically by $as_me ($PACKAGE) $VERSION
  59439. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  59440.  
  59441. # Provide generalized library-building support services.
  59442. # Written by Gordon Matzigkeit, 1996
  59443.  
  59444. # Copyright (C) 2014 Free Software Foundation, Inc.
  59445. # This is free software; see the source for copying conditions.  There is NO
  59446. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  59447.  
  59448. # GNU Libtool is free software; you can redistribute it and/or modify
  59449. # it under the terms of the GNU General Public License as published by
  59450. # the Free Software Foundation; either version 2 of of the License, or
  59451. # (at your option) any later version.
  59452. #
  59453. # As a special exception to the GNU General Public License, if you
  59454. # distribute this file as part of a program or library that is built
  59455. # using GNU Libtool, you may include this file under the  same
  59456. # distribution terms that you use for the rest of that program.
  59457. #
  59458. # GNU Libtool is distributed in the hope that it will be useful, but
  59459. # WITHOUT ANY WARRANTY; without even the implied warranty of
  59460. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  59461. # GNU General Public License for more details.
  59462. #
  59463. # You should have received a copy of the GNU General Public License
  59464. # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  59465.  
  59466.  
  59467. # The names of the tagged configurations supported by this script.
  59468. available_tags='CXX '
  59469.  
  59470. # Configured defaults for sys_lib_dlsearch_path munging.
  59471. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  59472.  
  59473. # ### BEGIN LIBTOOL CONFIG
  59474.  
  59475. # Which release of libtool.m4 was used?
  59476. macro_version=$macro_version
  59477. macro_revision=$macro_revision
  59478.  
  59479. # Whether or not to build static libraries.
  59480. build_old_libs=$enable_static
  59481.  
  59482. # Whether or not to build shared libraries.
  59483. build_libtool_libs=$enable_shared
  59484.  
  59485. # What type of objects to build.
  59486. pic_mode=$pic_mode
  59487.  
  59488. # Whether or not to optimize for fast installation.
  59489. fast_install=$enable_fast_install
  59490.  
  59491. # Shared archive member basename,for filename based shared library versioning on AIX.
  59492. shared_archive_member_spec=$shared_archive_member_spec
  59493.  
  59494. # Shell to use when invoking shell scripts.
  59495. SHELL=$lt_SHELL
  59496.  
  59497. # An echo program that protects backslashes.
  59498. ECHO=$lt_ECHO
  59499.  
  59500. # The PATH separator for the build system.
  59501. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  59502.  
  59503. # The host system.
  59504. host_alias=$host_alias
  59505. host=$host
  59506. host_os=$host_os
  59507.  
  59508. # The build system.
  59509. build_alias=$build_alias
  59510. build=$build
  59511. build_os=$build_os
  59512.  
  59513. # A sed program that does not truncate output.
  59514. SED=$lt_SED
  59515.  
  59516. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  59517. Xsed="\$SED -e 1s/^X//"
  59518.  
  59519. # A grep program that handles long lines.
  59520. GREP=$lt_GREP
  59521.  
  59522. # An ERE matcher.
  59523. EGREP=$lt_EGREP
  59524.  
  59525. # A literal string matcher.
  59526. FGREP=$lt_FGREP
  59527.  
  59528. # A BSD- or MS-compatible name lister.
  59529. NM=$lt_NM
  59530.  
  59531. # Whether we need soft or hard links.
  59532. LN_S=$lt_LN_S
  59533.  
  59534. # What is the maximum length of a command?
  59535. max_cmd_len=$max_cmd_len
  59536.  
  59537. # Object file suffix (normally "o").
  59538. objext=$ac_objext
  59539.  
  59540. # Executable file suffix (normally "").
  59541. exeext=$exeext
  59542.  
  59543. # whether the shell understands "unset".
  59544. lt_unset=$lt_unset
  59545.  
  59546. # turn spaces into newlines.
  59547. SP2NL=$lt_lt_SP2NL
  59548.  
  59549. # turn newlines into spaces.
  59550. NL2SP=$lt_lt_NL2SP
  59551.  
  59552. # convert \$build file names to \$host format.
  59553. to_host_file_cmd=$lt_cv_to_host_file_cmd
  59554.  
  59555. # convert \$build files to toolchain format.
  59556. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  59557.  
  59558. # An object symbol dumper.
  59559. OBJDUMP=$lt_OBJDUMP
  59560.  
  59561. # Method to check whether dependent libraries are shared objects.
  59562. deplibs_check_method=$lt_deplibs_check_method
  59563.  
  59564. # Command to use when deplibs_check_method = "file_magic".
  59565. file_magic_cmd=$lt_file_magic_cmd
  59566.  
  59567. # How to find potential files when deplibs_check_method = "file_magic".
  59568. file_magic_glob=$lt_file_magic_glob
  59569.  
  59570. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  59571. want_nocaseglob=$lt_want_nocaseglob
  59572.  
  59573. # DLL creation program.
  59574. DLLTOOL=$lt_DLLTOOL
  59575.  
  59576. # Command to associate shared and link libraries.
  59577. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  59578.  
  59579. # The archiver.
  59580. AR=$lt_AR
  59581.  
  59582. # Flags to create an archive.
  59583. AR_FLAGS=$lt_AR_FLAGS
  59584.  
  59585. # How to feed a file listing to the archiver.
  59586. archiver_list_spec=$lt_archiver_list_spec
  59587.  
  59588. # A symbol stripping program.
  59589. STRIP=$lt_STRIP
  59590.  
  59591. # Commands used to install an old-style archive.
  59592. RANLIB=$lt_RANLIB
  59593. old_postinstall_cmds=$lt_old_postinstall_cmds
  59594. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  59595.  
  59596. # Whether to use a lock for old archive extraction.
  59597. lock_old_archive_extraction=$lock_old_archive_extraction
  59598.  
  59599. # A C compiler.
  59600. LTCC=$lt_CC
  59601.  
  59602. # LTCC compiler flags.
  59603. LTCFLAGS=$lt_CFLAGS
  59604.  
  59605. # Take the output of nm and produce a listing of raw symbols and C names.
  59606. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  59607.  
  59608. # Transform the output of nm in a proper C declaration.
  59609. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  59610.  
  59611. # Transform the output of nm into a list of symbols to manually relocate.
  59612. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  59613.  
  59614. # Transform the output of nm in a C name address pair.
  59615. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  59616.  
  59617. # Transform the output of nm in a C name address pair when lib prefix is needed.
  59618. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  59619.  
  59620. # The name lister interface.
  59621. nm_interface=$lt_lt_cv_nm_interface
  59622.  
  59623. # Specify filename containing input files for \$NM.
  59624. nm_file_list_spec=$lt_nm_file_list_spec
  59625.  
  59626. # The root where to search for dependent libraries,and where our libraries should be installed.
  59627. lt_sysroot=$lt_sysroot
  59628.  
  59629. # Command to truncate a binary pipe.
  59630. lt_truncate_bin=$lt_lt_cv_truncate_bin
  59631.  
  59632. # The name of the directory that contains temporary libtool files.
  59633. objdir=$objdir
  59634.  
  59635. # Used to examine libraries when file_magic_cmd begins with "file".
  59636. MAGIC_CMD=$MAGIC_CMD
  59637.  
  59638. # Must we lock files when doing compilation?
  59639. need_locks=$lt_need_locks
  59640.  
  59641. # Manifest tool.
  59642. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  59643.  
  59644. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  59645. DSYMUTIL=$lt_DSYMUTIL
  59646.  
  59647. # Tool to change global to local symbols on Mac OS X.
  59648. NMEDIT=$lt_NMEDIT
  59649.  
  59650. # Tool to manipulate fat objects and archives on Mac OS X.
  59651. LIPO=$lt_LIPO
  59652.  
  59653. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  59654. OTOOL=$lt_OTOOL
  59655.  
  59656. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  59657. OTOOL64=$lt_OTOOL64
  59658.  
  59659. # Old archive suffix (normally "a").
  59660. libext=$libext
  59661.  
  59662. # Shared library suffix (normally ".so").
  59663. shrext_cmds=$lt_shrext_cmds
  59664.  
  59665. # The commands to extract the exported symbol list from a shared archive.
  59666. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  59667.  
  59668. # Variables whose values should be saved in libtool wrapper scripts and
  59669. # restored at link time.
  59670. variables_saved_for_relink=$lt_variables_saved_for_relink
  59671.  
  59672. # Do we need the "lib" prefix for modules?
  59673. need_lib_prefix=$need_lib_prefix
  59674.  
  59675. # Do we need a version for libraries?
  59676. need_version=$need_version
  59677.  
  59678. # Library versioning type.
  59679. version_type=$version_type
  59680.  
  59681. # Shared library runtime path variable.
  59682. runpath_var=$runpath_var
  59683.  
  59684. # Shared library path variable.
  59685. shlibpath_var=$shlibpath_var
  59686.  
  59687. # Is shlibpath searched before the hard-coded library search path?
  59688. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  59689.  
  59690. # Format of library name prefix.
  59691. libname_spec=$lt_libname_spec
  59692.  
  59693. # List of archive names.  First name is the real one, the rest are links.
  59694. # The last name is the one that the linker finds with -lNAME
  59695. library_names_spec=$lt_library_names_spec
  59696.  
  59697. # The coded name of the library, if different from the real name.
  59698. soname_spec=$lt_soname_spec
  59699.  
  59700. # Permission mode override for installation of shared libraries.
  59701. install_override_mode=$lt_install_override_mode
  59702.  
  59703. # Command to use after installation of a shared archive.
  59704. postinstall_cmds=$lt_postinstall_cmds
  59705.  
  59706. # Command to use after uninstallation of a shared archive.
  59707. postuninstall_cmds=$lt_postuninstall_cmds
  59708.  
  59709. # Commands used to finish a libtool library installation in a directory.
  59710. finish_cmds=$lt_finish_cmds
  59711.  
  59712. # As "finish_cmds", except a single script fragment to be evaled but
  59713. # not shown.
  59714. finish_eval=$lt_finish_eval
  59715.  
  59716. # Whether we should hardcode library paths into libraries.
  59717. hardcode_into_libs=$hardcode_into_libs
  59718.  
  59719. # Compile-time system search path for libraries.
  59720. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  59721.  
  59722. # Detected run-time system search path for libraries.
  59723. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  59724.  
  59725. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  59726. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  59727.  
  59728. # Whether dlopen is supported.
  59729. dlopen_support=$enable_dlopen
  59730.  
  59731. # Whether dlopen of programs is supported.
  59732. dlopen_self=$enable_dlopen_self
  59733.  
  59734. # Whether dlopen of statically linked programs is supported.
  59735. dlopen_self_static=$enable_dlopen_self_static
  59736.  
  59737. # Commands to strip libraries.
  59738. old_striplib=$lt_old_striplib
  59739. striplib=$lt_striplib
  59740.  
  59741.  
  59742. # The linker used to build libraries.
  59743. LD=$lt_LD
  59744.  
  59745. # How to create reloadable object files.
  59746. reload_flag=$lt_reload_flag
  59747. reload_cmds=$lt_reload_cmds
  59748.  
  59749. # Commands used to build an old-style archive.
  59750. old_archive_cmds=$lt_old_archive_cmds
  59751.  
  59752. # A language specific compiler.
  59753. CC=$lt_compiler
  59754.  
  59755. # Is the compiler the GNU compiler?
  59756. with_gcc=$GCC
  59757.  
  59758. # Compiler flag to turn off builtin functions.
  59759. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  59760.  
  59761. # Additional compiler flags for building library objects.
  59762. pic_flag=$lt_lt_prog_compiler_pic
  59763.  
  59764. # How to pass a linker flag through the compiler.
  59765. wl=$lt_lt_prog_compiler_wl
  59766.  
  59767. # Compiler flag to prevent dynamic linking.
  59768. link_static_flag=$lt_lt_prog_compiler_static
  59769.  
  59770. # Does compiler simultaneously support -c and -o options?
  59771. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  59772.  
  59773. # Whether or not to add -lc for building shared libraries.
  59774. build_libtool_need_lc=$archive_cmds_need_lc
  59775.  
  59776. # Whether or not to disallow shared libs when runtime libs are static.
  59777. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  59778.  
  59779. # Compiler flag to allow reflexive dlopens.
  59780. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  59781.  
  59782. # Compiler flag to generate shared objects directly from archives.
  59783. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  59784.  
  59785. # Whether the compiler copes with passing no objects directly.
  59786. compiler_needs_object=$lt_compiler_needs_object
  59787.  
  59788. # Create an old-style archive from a shared archive.
  59789. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  59790.  
  59791. # Create a temporary old-style archive to link instead of a shared archive.
  59792. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  59793.  
  59794. # Commands used to build a shared archive.
  59795. archive_cmds=$lt_archive_cmds
  59796. archive_expsym_cmds=$lt_archive_expsym_cmds
  59797.  
  59798. # Commands used to build a loadable module if different from building
  59799. # a shared archive.
  59800. module_cmds=$lt_module_cmds
  59801. module_expsym_cmds=$lt_module_expsym_cmds
  59802.  
  59803. # Whether we are building with GNU ld or not.
  59804. with_gnu_ld=$lt_with_gnu_ld
  59805.  
  59806. # Flag that allows shared libraries with undefined symbols to be built.
  59807. allow_undefined_flag=$lt_allow_undefined_flag
  59808.  
  59809. # Flag that enforces no undefined symbols.
  59810. no_undefined_flag=$lt_no_undefined_flag
  59811.  
  59812. # Flag to hardcode \$libdir into a binary during linking.
  59813. # This must work even if \$libdir does not exist
  59814. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  59815.  
  59816. # Whether we need a single "-rpath" flag with a separated argument.
  59817. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  59818.  
  59819. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  59820. # DIR into the resulting binary.
  59821. hardcode_direct=$hardcode_direct
  59822.  
  59823. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  59824. # DIR into the resulting binary and the resulting library dependency is
  59825. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  59826. # library is relocated.
  59827. hardcode_direct_absolute=$hardcode_direct_absolute
  59828.  
  59829. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  59830. # into the resulting binary.
  59831. hardcode_minus_L=$hardcode_minus_L
  59832.  
  59833. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  59834. # into the resulting binary.
  59835. hardcode_shlibpath_var=$hardcode_shlibpath_var
  59836.  
  59837. # Set to "yes" if building a shared library automatically hardcodes DIR
  59838. # into the library and all subsequent libraries and executables linked
  59839. # against it.
  59840. hardcode_automatic=$hardcode_automatic
  59841.  
  59842. # Set to yes if linker adds runtime paths of dependent libraries
  59843. # to runtime path list.
  59844. inherit_rpath=$inherit_rpath
  59845.  
  59846. # Whether libtool must link a program against all its dependency libraries.
  59847. link_all_deplibs=$link_all_deplibs
  59848.  
  59849. # Set to "yes" if exported symbols are required.
  59850. always_export_symbols=$always_export_symbols
  59851.  
  59852. # The commands to list exported symbols.
  59853. export_symbols_cmds=$lt_export_symbols_cmds
  59854.  
  59855. # Symbols that should not be listed in the preloaded symbols.
  59856. exclude_expsyms=$lt_exclude_expsyms
  59857.  
  59858. # Symbols that must always be exported.
  59859. include_expsyms=$lt_include_expsyms
  59860.  
  59861. # Commands necessary for linking programs (against libraries) with templates.
  59862. prelink_cmds=$lt_prelink_cmds
  59863.  
  59864. # Commands necessary for finishing linking programs.
  59865. postlink_cmds=$lt_postlink_cmds
  59866.  
  59867. # Specify filename containing input files.
  59868. file_list_spec=$lt_file_list_spec
  59869.  
  59870. # How to hardcode a shared library path into an executable.
  59871. hardcode_action=$hardcode_action
  59872.  
  59873. # The directories searched by this compiler when creating a shared library.
  59874. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  59875.  
  59876. # Dependencies to place before and after the objects being linked to
  59877. # create a shared library.
  59878. predep_objects=$lt_predep_objects
  59879. postdep_objects=$lt_postdep_objects
  59880. predeps=$lt_predeps
  59881. postdeps=$lt_postdeps
  59882.  
  59883. # The library search path used internally by the compiler when linking
  59884. # a shared library.
  59885. compiler_lib_search_path=$lt_compiler_lib_search_path
  59886.  
  59887. # ### END LIBTOOL CONFIG
  59888.  
  59889. _LT_EOF
  59890.  
  59891.     cat <<'_LT_EOF' >> "$cfgfile"
  59892.  
  59893. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  59894.  
  59895. # func_munge_path_list VARIABLE PATH
  59896. # -----------------------------------
  59897. # VARIABLE is name of variable containing _space_ separated list of
  59898. # directories to be munged by the contents of PATH, which is string
  59899. # having a format:
  59900. # "DIR[:DIR]:"
  59901. #       string "DIR[ DIR]" will be prepended to VARIABLE
  59902. # ":DIR[:DIR]"
  59903. #       string "DIR[ DIR]" will be appended to VARIABLE
  59904. # "DIRP[:DIRP]::[DIRA:]DIRA"
  59905. #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  59906. #       "DIRA[ DIRA]" will be appended to VARIABLE
  59907. # "DIR[:DIR]"
  59908. #       VARIABLE will be replaced by "DIR[ DIR]"
  59909. func_munge_path_list ()
  59910. {
  59911.     case x$2 in
  59912.     x)
  59913.         ;;
  59914.     *:)
  59915.         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  59916.         ;;
  59917.     x:*)
  59918.         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  59919.         ;;
  59920.     *::*)
  59921.         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  59922.         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  59923.         ;;
  59924.     *)
  59925.         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  59926.         ;;
  59927.     esac
  59928. }
  59929.  
  59930.  
  59931. # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  59932. func_cc_basename ()
  59933. {
  59934.     for cc_temp in $*""; do
  59935.       case $cc_temp in
  59936.         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  59937.         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  59938.         \-*) ;;
  59939.         *) break;;
  59940.       esac
  59941.     done
  59942.     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  59943. }
  59944.  
  59945.  
  59946. # ### END FUNCTIONS SHARED WITH CONFIGURE
  59947.  
  59948. _LT_EOF
  59949.  
  59950.   case $host_os in
  59951.   aix3*)
  59952.     cat <<\_LT_EOF >> "$cfgfile"
  59953. # AIX sometimes has problems with the GCC collect2 program.  For some
  59954. # reason, if we set the COLLECT_NAMES environment variable, the problems
  59955. # vanish in a puff of smoke.
  59956. if test set != "${COLLECT_NAMES+set}"; then
  59957.   COLLECT_NAMES=
  59958.   export COLLECT_NAMES
  59959. fi
  59960. _LT_EOF
  59961.     ;;
  59962.   esac
  59963.  
  59964.  
  59965. ltmain=$ac_aux_dir/ltmain.sh
  59966.  
  59967.  
  59968.   # We use sed instead of cat because bash on DJGPP gets confused if
  59969.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  59970.   # text mode, it properly converts lines to CR/LF.  This bash problem
  59971.   # is reportedly fixed, but why not run on old versions too?
  59972.   sed '$q' "$ltmain" >> "$cfgfile" \
  59973.      || (rm -f "$cfgfile"; exit 1)
  59974.  
  59975.    mv -f "$cfgfile" "$ofile" ||
  59976.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  59977.   chmod +x "$ofile"
  59978.  
  59979.  
  59980.     cat <<_LT_EOF >> "$ofile"
  59981.  
  59982. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  59983.  
  59984. # The linker used to build libraries.
  59985. LD=$lt_LD_CXX
  59986.  
  59987. # How to create reloadable object files.
  59988. reload_flag=$lt_reload_flag_CXX
  59989. reload_cmds=$lt_reload_cmds_CXX
  59990.  
  59991. # Commands used to build an old-style archive.
  59992. old_archive_cmds=$lt_old_archive_cmds_CXX
  59993.  
  59994. # A language specific compiler.
  59995. CC=$lt_compiler_CXX
  59996.  
  59997. # Is the compiler the GNU compiler?
  59998. with_gcc=$GCC_CXX
  59999.  
  60000. # Compiler flag to turn off builtin functions.
  60001. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  60002.  
  60003. # Additional compiler flags for building library objects.
  60004. pic_flag=$lt_lt_prog_compiler_pic_CXX
  60005.  
  60006. # How to pass a linker flag through the compiler.
  60007. wl=$lt_lt_prog_compiler_wl_CXX
  60008.  
  60009. # Compiler flag to prevent dynamic linking.
  60010. link_static_flag=$lt_lt_prog_compiler_static_CXX
  60011.  
  60012. # Does compiler simultaneously support -c and -o options?
  60013. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  60014.  
  60015. # Whether or not to add -lc for building shared libraries.
  60016. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  60017.  
  60018. # Whether or not to disallow shared libs when runtime libs are static.
  60019. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  60020.  
  60021. # Compiler flag to allow reflexive dlopens.
  60022. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  60023.  
  60024. # Compiler flag to generate shared objects directly from archives.
  60025. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  60026.  
  60027. # Whether the compiler copes with passing no objects directly.
  60028. compiler_needs_object=$lt_compiler_needs_object_CXX
  60029.  
  60030. # Create an old-style archive from a shared archive.
  60031. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  60032.  
  60033. # Create a temporary old-style archive to link instead of a shared archive.
  60034. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  60035.  
  60036. # Commands used to build a shared archive.
  60037. archive_cmds=$lt_archive_cmds_CXX
  60038. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  60039.  
  60040. # Commands used to build a loadable module if different from building
  60041. # a shared archive.
  60042. module_cmds=$lt_module_cmds_CXX
  60043. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  60044.  
  60045. # Whether we are building with GNU ld or not.
  60046. with_gnu_ld=$lt_with_gnu_ld_CXX
  60047.  
  60048. # Flag that allows shared libraries with undefined symbols to be built.
  60049. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  60050.  
  60051. # Flag that enforces no undefined symbols.
  60052. no_undefined_flag=$lt_no_undefined_flag_CXX
  60053.  
  60054. # Flag to hardcode \$libdir into a binary during linking.
  60055. # This must work even if \$libdir does not exist
  60056. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  60057.  
  60058. # Whether we need a single "-rpath" flag with a separated argument.
  60059. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  60060.  
  60061. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  60062. # DIR into the resulting binary.
  60063. hardcode_direct=$hardcode_direct_CXX
  60064.  
  60065. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  60066. # DIR into the resulting binary and the resulting library dependency is
  60067. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  60068. # library is relocated.
  60069. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  60070.  
  60071. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  60072. # into the resulting binary.
  60073. hardcode_minus_L=$hardcode_minus_L_CXX
  60074.  
  60075. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  60076. # into the resulting binary.
  60077. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  60078.  
  60079. # Set to "yes" if building a shared library automatically hardcodes DIR
  60080. # into the library and all subsequent libraries and executables linked
  60081. # against it.
  60082. hardcode_automatic=$hardcode_automatic_CXX
  60083.  
  60084. # Set to yes if linker adds runtime paths of dependent libraries
  60085. # to runtime path list.
  60086. inherit_rpath=$inherit_rpath_CXX
  60087.  
  60088. # Whether libtool must link a program against all its dependency libraries.
  60089. link_all_deplibs=$link_all_deplibs_CXX
  60090.  
  60091. # Set to "yes" if exported symbols are required.
  60092. always_export_symbols=$always_export_symbols_CXX
  60093.  
  60094. # The commands to list exported symbols.
  60095. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  60096.  
  60097. # Symbols that should not be listed in the preloaded symbols.
  60098. exclude_expsyms=$lt_exclude_expsyms_CXX
  60099.  
  60100. # Symbols that must always be exported.
  60101. include_expsyms=$lt_include_expsyms_CXX
  60102.  
  60103. # Commands necessary for linking programs (against libraries) with templates.
  60104. prelink_cmds=$lt_prelink_cmds_CXX
  60105.  
  60106. # Commands necessary for finishing linking programs.
  60107. postlink_cmds=$lt_postlink_cmds_CXX
  60108.  
  60109. # Specify filename containing input files.
  60110. file_list_spec=$lt_file_list_spec_CXX
  60111.  
  60112. # How to hardcode a shared library path into an executable.
  60113. hardcode_action=$hardcode_action_CXX
  60114.  
  60115. # The directories searched by this compiler when creating a shared library.
  60116. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  60117.  
  60118. # Dependencies to place before and after the objects being linked to
  60119. # create a shared library.
  60120. predep_objects=$lt_predep_objects_CXX
  60121. postdep_objects=$lt_postdep_objects_CXX
  60122. predeps=$lt_predeps_CXX
  60123. postdeps=$lt_postdeps_CXX
  60124.  
  60125. # The library search path used internally by the compiler when linking
  60126. # a shared library.
  60127. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  60128.  
  60129. # ### END LIBTOOL TAG CONFIG: CXX
  60130. _LT_EOF
  60131.  
  60132.  ;;
  60133.     "guile/pre-inst-guile":F) chmod +x guile/pre-inst-guile ;;
  60134.  
  60135.   esac
  60136. done # for ac_tag
  60137.  
  60138.  
  60139. as_fn_exit 0
  60140. _ACEOF
  60141. ac_clean_files=$ac_clean_files_save
  60142.  
  60143. test $ac_write_fail = 0 ||
  60144.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  60145.  
  60146.  
  60147. # configure is writing to config.log, and then calls config.status.
  60148. # config.status does its own redirection, appending to config.log.
  60149. # Unfortunately, on DOS this fails, as config.log is still kept open
  60150. # by configure, so config.status won't be able to write to it; its
  60151. # output is simply discarded.  So we exec the FD to /dev/null,
  60152. # effectively closing config.log, so it can be properly (re)opened and
  60153. # appended to by config.status.  When coming back to configure, we
  60154. # need to make the FD available again.
  60155. if test "$no_create" != yes; then
  60156.   ac_cs_success=:
  60157.   ac_config_status_args=
  60158.   test "$silent" = yes &&
  60159.     ac_config_status_args="$ac_config_status_args --quiet"
  60160.   exec 5>/dev/null
  60161.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  60162.   exec 5>>config.log
  60163.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  60164.   # would make configure fail if this is the last instruction.
  60165.   $ac_cs_success || as_fn_exit 1
  60166. fi
  60167. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  60168.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  60169. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  60170. fi
  60171.  
  60172.  
  60173. { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
  60174.  
  60175.  version:              ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
  60176.  Host/Target system:   ${host}
  60177.  Build system:         ${build}
  60178.  Install prefix:       ${prefix}
  60179.  Compiler:             ${CC}
  60180.  Valgrind:             $opt_valgrind_tests ${VALGRIND}
  60181.  CFlags:               ${CFLAGS}
  60182.  Library types:        Shared=${enable_shared}, Static=${enable_static}
  60183.  Local libopts:        ${included_libopts}
  60184.  Local libtasn1:       ${included_libtasn1}
  60185.  Local unistring:      ${included_unistring}
  60186.  Use nettle-mini:      ${mini_nettle}
  60187.  Documentation:        ${enable_doc} (manpages: ${enable_manpages})
  60188.  Destructive tests:    ${enable_destructive_tests}
  60189. " >&5
  60190. $as_echo "$as_me: summary of build options:
  60191.  
  60192.  version:              ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
  60193.  Host/Target system:   ${host}
  60194.  Build system:         ${build}
  60195.  Install prefix:       ${prefix}
  60196.  Compiler:             ${CC}
  60197.  Valgrind:             $opt_valgrind_tests ${VALGRIND}
  60198.  CFlags:               ${CFLAGS}
  60199.  Library types:        Shared=${enable_shared}, Static=${enable_static}
  60200.  Local libopts:        ${included_libopts}
  60201.  Local libtasn1:       ${included_libtasn1}
  60202.  Local unistring:      ${included_unistring}
  60203.  Use nettle-mini:      ${mini_nettle}
  60204.  Documentation:        ${enable_doc} (manpages: ${enable_manpages})
  60205.  Destructive tests:    ${enable_destructive_tests}
  60206. " >&6;}
  60207.  
  60208. { $as_echo "$as_me:${as_lineno-$LINENO}: External hardware support:
  60209.  
  60210.  /dev/crypto:          $enable_cryptodev
  60211.  Hardware accel:       $hw_accel
  60212.  Padlock accel:        $use_padlock
  60213.  Random gen. variant:  $rnd_variant
  60214.  PKCS#11 support:      $with_p11_kit
  60215.  TPM support:          $with_tpm
  60216. " >&5
  60217. $as_echo "$as_me: External hardware support:
  60218.  
  60219.  /dev/crypto:          $enable_cryptodev
  60220.  Hardware accel:       $hw_accel
  60221.  Padlock accel:        $use_padlock
  60222.  Random gen. variant:  $rnd_variant
  60223.  PKCS#11 support:      $with_p11_kit
  60224.  TPM support:          $with_tpm
  60225. " >&6;}
  60226. if test -n "$ac_trousers_lib";then
  60227. { $as_echo "$as_me:${as_lineno-$LINENO}:
  60228.  TPM library:          $ac_trousers_lib
  60229. " >&5
  60230. $as_echo "$as_me:
  60231.  TPM library:          $ac_trousers_lib
  60232. " >&6;}
  60233. fi
  60234.  
  60235. { $as_echo "$as_me:${as_lineno-$LINENO}: Optional features:
  60236. (note that included applications might not compile properly
  60237. if features are disabled)
  60238.  
  60239.  SSL3.0 support:       $ac_enable_ssl3
  60240.  SSL2.0 client hello:  $ac_enable_ssl2
  60241.  Allow SHA1 sign:      $ac_allow_sha1
  60242.  DTLS-SRTP support:    $ac_enable_srtp
  60243.  ALPN support:         $ac_enable_alpn
  60244.  OCSP support:         $ac_enable_ocsp
  60245.  Ses. ticket support:  $ac_enable_session_tickets
  60246.  SRP support:          $ac_enable_srp
  60247.  PSK support:          $ac_enable_psk
  60248.  DHE support:          $ac_enable_dhe
  60249.  ECDHE support:        $ac_enable_ecdhe
  60250.  Anon auth support:    $ac_enable_anon
  60251.  Heartbeat support:    $ac_enable_heartbeat
  60252.  IDNA support:         $idna_support
  60253.  Non-SuiteB curves:    $enable_non_suiteb
  60254.  FIPS140 mode:         $enable_fips
  60255. " >&5
  60256. $as_echo "$as_me: Optional features:
  60257. (note that included applications might not compile properly
  60258. if features are disabled)
  60259.  
  60260.  SSL3.0 support:       $ac_enable_ssl3
  60261.  SSL2.0 client hello:  $ac_enable_ssl2
  60262.  Allow SHA1 sign:      $ac_allow_sha1
  60263.  DTLS-SRTP support:    $ac_enable_srtp
  60264.  ALPN support:         $ac_enable_alpn
  60265.  OCSP support:         $ac_enable_ocsp
  60266.  Ses. ticket support:  $ac_enable_session_tickets
  60267.  SRP support:          $ac_enable_srp
  60268.  PSK support:          $ac_enable_psk
  60269.  DHE support:          $ac_enable_dhe
  60270.  ECDHE support:        $ac_enable_ecdhe
  60271.  Anon auth support:    $ac_enable_anon
  60272.  Heartbeat support:    $ac_enable_heartbeat
  60273.  IDNA support:         $idna_support
  60274.  Non-SuiteB curves:    $enable_non_suiteb
  60275.  FIPS140 mode:         $enable_fips
  60276. " >&6;}
  60277.  
  60278. { $as_echo "$as_me:${as_lineno-$LINENO}: Optional libraries:
  60279.  
  60280.  Guile wrappers:       $opt_guile_bindings
  60281.  C++ library:          $use_cxx
  60282.  DANE library:         $enable_dane
  60283.  OpenSSL compat:       $enable_openssl
  60284. " >&5
  60285. $as_echo "$as_me: Optional libraries:
  60286.  
  60287.  Guile wrappers:       $opt_guile_bindings
  60288.  C++ library:          $use_cxx
  60289.  DANE library:         $enable_dane
  60290.  OpenSSL compat:       $enable_openssl
  60291. " >&6;}
  60292.  
  60293. { $as_echo "$as_me:${as_lineno-$LINENO}: System files:
  60294.  
  60295.  Trust store pkcs11:   $with_default_trust_store_pkcs11
  60296.  Trust store dir:      $with_default_trust_store_dir
  60297.  Trust store file:     $with_default_trust_store_file
  60298.  Blacklist file:       $with_default_blacklist_file
  60299.  CRL file:             $with_default_crl_file
  60300.  Priority file:        $system_priority_file
  60301.  DNSSEC root key file: $unbound_root_key_file
  60302. " >&5
  60303. $as_echo "$as_me: System files:
  60304.  
  60305.  Trust store pkcs11:   $with_default_trust_store_pkcs11
  60306.  Trust store dir:      $with_default_trust_store_dir
  60307.  Trust store file:     $with_default_trust_store_file
  60308.  Blacklist file:       $with_default_blacklist_file
  60309.  CRL file:             $with_default_crl_file
  60310.  Priority file:        $system_priority_file
  60311.  DNSSEC root key file: $unbound_root_key_file
  60312. " >&6;}
  60313.  
  60314. if test ! -f "$unbound_root_key_file"; then
  60315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  60316. ***
  60317. *** The DNSSEC root key file in $unbound_root_key_file was not found.
  60318. *** This file is needed for the verification of DNSSEC responses.
  60319. *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
  60320. *** to generate or update it.
  60321. *** " >&5
  60322. $as_echo "$as_me: WARNING:
  60323. ***
  60324. *** The DNSSEC root key file in $unbound_root_key_file was not found.
  60325. *** This file is needed for the verification of DNSSEC responses.
  60326. *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
  60327. *** to generate or update it.
  60328. *** " >&2;}
  60329. fi
  60330.  
  60331. if test "${enable_static}" != no;then
  60332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  60333. *** GnuTLS will be build as a static library. That means that library
  60334. *** constructors for gnutls_global_init will not be made available to
  60335. *** linking applications. If you are building that library for arbitrary
  60336. *** applications to link, do not enable static linking.
  60337. " >&5
  60338. $as_echo "$as_me: WARNING:
  60339. *** GnuTLS will be build as a static library. That means that library
  60340. *** constructors for gnutls_global_init will not be made available to
  60341. *** linking applications. If you are building that library for arbitrary
  60342. *** applications to link, do not enable static linking.
  60343. " >&2;}
  60344. fi
  60345.  
  60346. if test "$enable_fuzzer_target" != "no";then
  60347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  60348. *** This version of the library is for fuzzying purposes and is intentionally broken!
  60349. " >&5
  60350. $as_echo "$as_me: WARNING:
  60351. *** This version of the library is for fuzzying purposes and is intentionally broken!
  60352. " >&2;}
  60353. fi
  60354.  

Reply to "BlackKnight"

Here you can reply to the paste above

captcha