SHARE
TWEET

configure

a guest Dec 5th, 2017 30 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for cgminer 4.10.0.
  4. #
  5. # Report bugs to <kernel@kolivas.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.   if (eval "$as_required") 2>/dev/null; then :
  203.   as_have_required=yes
  204. else
  205.   as_have_required=no
  206. fi
  207.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  208.  
  209. else
  210.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. as_found=false
  212. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  213. do
  214.   IFS=$as_save_IFS
  215.   test -z "$as_dir" && as_dir=.
  216.   as_found=:
  217.   case $as_dir in #(
  218.      /*)
  219.        for as_base in sh bash ksh sh5; do
  220.          # Try only shells that exist, to save several forks.
  221.          as_shell=$as_dir/$as_base
  222.          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  223.             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224.   CONFIG_SHELL=$as_shell as_have_required=yes
  225.            if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  226.   break 2
  227. fi
  228. fi
  229.        done;;
  230.        esac
  231.   as_found=false
  232. done
  233. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  234.           { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  235.   CONFIG_SHELL=$SHELL as_have_required=yes
  236. fi; }
  237. IFS=$as_save_IFS
  238.  
  239.  
  240.       if test "x$CONFIG_SHELL" != x; then :
  241.   export CONFIG_SHELL
  242.              # We cannot yet assume a decent shell, so we have to provide a
  243. # neutralization value for shells without unset; and this also
  244. # works around shells that cannot unset nonexistent variables.
  245. # Preserve -v and -x to the replacement shell.
  246. BASH_ENV=/dev/null
  247. ENV=/dev/null
  248. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  249. case $- in # ((((
  250.   *v*x* | *x*v* ) as_opts=-vx ;;
  251.   *v* ) as_opts=-v ;;
  252.   *x* ) as_opts=-x ;;
  253.   * ) as_opts= ;;
  254. esac
  255. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  256. # Admittedly, this is quite paranoid, since all the known shells bail
  257. # out after a failed `exec'.
  258. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  259. exit 255
  260. fi
  261.  
  262.     if test x$as_have_required = xno; then :
  263.   $as_echo "$0: This script requires a shell more modern than all"
  264.   $as_echo "$0: the shells that I found on your system."
  265.   if test x${ZSH_VERSION+set} = xset ; then
  266.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  267.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  268.   else
  269.     $as_echo "$0: Please tell bug-autoconf@gnu.org and kernel@kolivas.org
  270. $0: about your system, including any error possibly output
  271. $0: before this message. Then install a modern shell, or
  272. $0: manually run the script under such a shell if you do
  273. $0: have one."
  274.   fi
  275.   exit 1
  276. fi
  277. fi
  278. fi
  279. SHELL=${CONFIG_SHELL-/bin/sh}
  280. export SHELL
  281. # Unset more variables known to interfere with behavior of common tools.
  282. CLICOLOR_FORCE= GREP_OPTIONS=
  283. unset CLICOLOR_FORCE GREP_OPTIONS
  284.  
  285. ## --------------------- ##
  286. ## M4sh Shell Functions. ##
  287. ## --------------------- ##
  288. # as_fn_unset VAR
  289. # ---------------
  290. # Portably unset VAR.
  291. as_fn_unset ()
  292. {
  293.   { eval $1=; unset $1;}
  294. }
  295. as_unset=as_fn_unset
  296.  
  297. # as_fn_set_status STATUS
  298. # -----------------------
  299. # Set $? to STATUS, without forking.
  300. as_fn_set_status ()
  301. {
  302.   return $1
  303. } # as_fn_set_status
  304.  
  305. # as_fn_exit STATUS
  306. # -----------------
  307. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  308. as_fn_exit ()
  309. {
  310.   set +e
  311.   as_fn_set_status $1
  312.   exit $1
  313. } # as_fn_exit
  314.  
  315. # as_fn_mkdir_p
  316. # -------------
  317. # Create "$as_dir" as a directory, including parents if necessary.
  318. as_fn_mkdir_p ()
  319. {
  320.  
  321.   case $as_dir in #(
  322.   -*) as_dir=./$as_dir;;
  323.   esac
  324.   test -d "$as_dir" || eval $as_mkdir_p || {
  325.     as_dirs=
  326.     while :; do
  327.       case $as_dir in #(
  328.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  329.       *) as_qdir=$as_dir;;
  330.       esac
  331.       as_dirs="'$as_qdir' $as_dirs"
  332.       as_dir=`$as_dirname -- "$as_dir" ||
  333. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  334.      X"$as_dir" : 'X\(//\)[^/]' \| \
  335.      X"$as_dir" : 'X\(//\)$' \| \
  336.      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  337. $as_echo X"$as_dir" |
  338.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  339.         s//\1/
  340.         q
  341.       }
  342.       /^X\(\/\/\)[^/].*/{
  343.         s//\1/
  344.         q
  345.       }
  346.       /^X\(\/\/\)$/{
  347.         s//\1/
  348.         q
  349.       }
  350.       /^X\(\/\).*/{
  351.         s//\1/
  352.         q
  353.       }
  354.       s/.*/./; q'`
  355.       test -d "$as_dir" && break
  356.     done
  357.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  358.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  359.  
  360.  
  361. } # as_fn_mkdir_p
  362.  
  363. # as_fn_executable_p FILE
  364. # -----------------------
  365. # Test if FILE is an executable regular file.
  366. as_fn_executable_p ()
  367. {
  368.   test -f "$1" && test -x "$1"
  369. } # as_fn_executable_p
  370. # as_fn_append VAR VALUE
  371. # ----------------------
  372. # Append the text in VALUE to the end of the definition contained in VAR. Take
  373. # advantage of any shell optimizations that allow amortized linear growth over
  374. # repeated appends, instead of the typical quadratic growth present in naive
  375. # implementations.
  376. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  377.   eval 'as_fn_append ()
  378.   {
  379.     eval $1+=\$2
  380.   }'
  381. else
  382.   as_fn_append ()
  383.   {
  384.     eval $1=\$$1\$2
  385.   }
  386. fi # as_fn_append
  387.  
  388. # as_fn_arith ARG...
  389. # ------------------
  390. # Perform arithmetic evaluation on the ARGs, and store the result in the
  391. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  392. # must be portable across $(()) and expr.
  393. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  394.   eval 'as_fn_arith ()
  395.   {
  396.     as_val=$(( $* ))
  397.   }'
  398. else
  399.   as_fn_arith ()
  400.   {
  401.     as_val=`expr "$@" || test $? -eq 1`
  402.   }
  403. fi # as_fn_arith
  404.  
  405.  
  406. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  407. # ----------------------------------------
  408. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  409. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  410. # script with STATUS, using 1 if that was 0.
  411. as_fn_error ()
  412. {
  413.   as_status=$1; test $as_status -eq 0 && as_status=1
  414.   if test "$4"; then
  415.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  416.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  417.   fi
  418.   $as_echo "$as_me: error: $2" >&2
  419.   as_fn_exit $as_status
  420. } # as_fn_error
  421.  
  422. if expr a : '\(a\)' >/dev/null 2>&1 &&
  423.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  424.   as_expr=expr
  425. else
  426.   as_expr=false
  427. fi
  428.  
  429. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  430.   as_basename=basename
  431. else
  432.   as_basename=false
  433. fi
  434.  
  435. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  436.   as_dirname=dirname
  437. else
  438.   as_dirname=false
  439. fi
  440.  
  441. as_me=`$as_basename -- "$0" ||
  442. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  443.      X"$0" : 'X\(//\)$' \| \
  444.      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  445. $as_echo X/"$0" |
  446.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  447.         s//\1/
  448.         q
  449.       }
  450.       /^X\/\(\/\/\)$/{
  451.         s//\1/
  452.         q
  453.       }
  454.       /^X\/\(\/\).*/{
  455.         s//\1/
  456.         q
  457.       }
  458.       s/.*/./; q'`
  459.  
  460. # Avoid depending upon Character Ranges.
  461. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  462. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  463. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  464. as_cr_digits='0123456789'
  465. as_cr_alnum=$as_cr_Letters$as_cr_digits
  466.  
  467.  
  468.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  469.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  470.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  471.   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  472.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  473.   sed -n '
  474.     p
  475.     /[$]LINENO/=
  476.   ' <$as_myself |
  477.     sed '
  478.       s/[$]LINENO.*/&-/
  479.       t lineno
  480.       b
  481.       :lineno
  482.       N
  483.       :loop
  484.       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  485.       t loop
  486.       s/-\n.*//
  487.     ' >$as_me.lineno &&
  488.   chmod +x "$as_me.lineno" ||
  489.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  490.  
  491.   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  492.   # already done that, so ensure we don't try to do so again and fall
  493.   # in an infinite loop.  This has already happened in practice.
  494.   _as_can_reexec=no; export _as_can_reexec
  495.   # Don't try to exec as it changes $[0], causing all sort of problems
  496.   # (the dirname of $[0] is not the place where we might find the
  497.   # original and so on.  Autoconf is especially sensitive to this).
  498.   . "./$as_me.lineno"
  499.   # Exit status is that of the last command.
  500.   exit
  501. }
  502.  
  503. ECHO_C= ECHO_N= ECHO_T=
  504. case `echo -n x` in #(((((
  505. -n*)
  506.   case `echo 'xy\c'` in
  507.   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  508.   xy)  ECHO_C='\c';;
  509.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  510.        ECHO_T=' ';;
  511.   esac;;
  512. *)
  513.   ECHO_N='-n';;
  514. esac
  515.  
  516. rm -f conf$$ conf$$.exe conf$$.file
  517. if test -d conf$$.dir; then
  518.   rm -f conf$$.dir/conf$$.file
  519. else
  520.   rm -f conf$$.dir
  521.   mkdir conf$$.dir 2>/dev/null
  522. fi
  523. if (echo >conf$$.file) 2>/dev/null; then
  524.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  525.     as_ln_s='ln -s'
  526.     # ... but there are two gotchas:
  527.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  528.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  529.     # In both cases, we have to default to `cp -pR'.
  530.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  531.       as_ln_s='cp -pR'
  532.   elif ln conf$$.file conf$$ 2>/dev/null; then
  533.     as_ln_s=ln
  534.   else
  535.     as_ln_s='cp -pR'
  536.   fi
  537. else
  538.   as_ln_s='cp -pR'
  539. fi
  540. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  541. rmdir conf$$.dir 2>/dev/null
  542.  
  543. if mkdir -p . 2>/dev/null; then
  544.   as_mkdir_p='mkdir -p "$as_dir"'
  545. else
  546.   test -d ./-p && rmdir ./-p
  547.   as_mkdir_p=false
  548. fi
  549.  
  550. as_test_x='test -x'
  551. as_executable_p=as_fn_executable_p
  552.  
  553. # Sed expression to map a string onto a valid CPP name.
  554. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  555.  
  556. # Sed expression to map a string onto a valid variable name.
  557. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  558.  
  559.  
  560. test -n "$DJDIR" || exec 7<&0 </dev/null
  561. exec 6>&1
  562.  
  563. # Name of the host.
  564. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  565. # so uname gets run too.
  566. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  567.  
  568. #
  569. # Initializations.
  570. #
  571. ac_default_prefix=/usr/local
  572. ac_clean_files=
  573. ac_config_libobj_dir=.
  574. LIBOBJS=
  575. cross_compiling=no
  576. subdirs=
  577. MFLAGS=
  578. MAKEFLAGS=
  579.  
  580. # Identity of this package.
  581. PACKAGE_NAME='cgminer'
  582. PACKAGE_TARNAME='cgminer'
  583. PACKAGE_VERSION='4.10.0'
  584. PACKAGE_STRING='cgminer 4.10.0'
  585. PACKAGE_BUGREPORT='kernel@kolivas.org'
  586. PACKAGE_URL=''
  587.  
  588. ac_unique_file="cgminer.c"
  589. # Factoring default headers for most tests.
  590. ac_includes_default="\
  591. #include <stdio.h>
  592. #ifdef HAVE_SYS_TYPES_H
  593. # include <sys/types.h>
  594. #endif
  595. #ifdef HAVE_SYS_STAT_H
  596. # include <sys/stat.h>
  597. #endif
  598. #ifdef STDC_HEADERS
  599. # include <stdlib.h>
  600. # include <stddef.h>
  601. #else
  602. # ifdef HAVE_STDLIB_H
  603. #  include <stdlib.h>
  604. # endif
  605. #endif
  606. #ifdef HAVE_STRING_H
  607. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  608. #  include <memory.h>
  609. # endif
  610. # include <string.h>
  611. #endif
  612. #ifdef HAVE_STRINGS_H
  613. # include <strings.h>
  614. #endif
  615. #ifdef HAVE_INTTYPES_H
  616. # include <inttypes.h>
  617. #endif
  618. #ifdef HAVE_STDINT_H
  619. # include <stdint.h>
  620. #endif
  621. #ifdef HAVE_UNISTD_H
  622. # include <unistd.h>
  623. #endif"
  624.  
  625. gl_header_list=
  626. gl_func_list=
  627. enable_option_checking=no
  628. ac_subst_vars='gltests_LTLIBOBJS
  629. gltests_LIBOBJS
  630. gl_LTLIBOBJS
  631. gl_LIBOBJS
  632. am__EXEEXT_FALSE
  633. am__EXEEXT_TRUE
  634. LTLIBOBJS
  635. LIBOBJS
  636. RT_LIBS
  637. MATH_LIBS
  638. MM_LIBS
  639. WS2_LIBS
  640. PDCURSES_LIBS
  641. NCURSES_LIBS
  642. PTHREAD_LIBS
  643. DLOPEN_FLAGS
  644. PTHREAD_FLAGS
  645. LIBSYSTEMD_LIBS
  646. LIBSYSTEMD_CFLAGS
  647. STATIC_CURL_FALSE
  648. STATIC_CURL_TRUE
  649. LIBCURL_LIBS
  650. LIBCURL_CFLAGS
  651. WANT_STATIC_JANSSON_FALSE
  652. WANT_STATIC_JANSSON_TRUE
  653. subdirs
  654. JANSSON_LIBS
  655. JANSSON_CFLAGS
  656. LIBUSB_LIBS
  657. LIBUSB_CFLAGS
  658. PKG_CONFIG_LIBDIR
  659. PKG_CONFIG_PATH
  660. PKG_CONFIG
  661. NEED_I2C_CONTEXT_FALSE
  662. NEED_I2C_CONTEXT_TRUE
  663. WANT_CRC16_FALSE
  664. WANT_CRC16_TRUE
  665. HAVE_x86_64_FALSE
  666. HAVE_x86_64_TRUE
  667. HAVE_WINDOWS_FALSE
  668. HAVE_WINDOWS_TRUE
  669. HAVE_CURSES_FALSE
  670. HAVE_CURSES_TRUE
  671. WANT_LIBBITFURY_FALSE
  672. WANT_LIBBITFURY_TRUE
  673. WANT_USBUTILS_FALSE
  674. WANT_USBUTILS_TRUE
  675. NEED_FPGAUTILS_FALSE
  676. NEED_FPGAUTILS_TRUE
  677. HAS_SP30_FALSE
  678. HAS_SP30_TRUE
  679. HAS_SP10_FALSE
  680. HAS_SP10_TRUE
  681. HAS_MODMINER_FALSE
  682. HAS_MODMINER_TRUE
  683. HAS_MINION_FALSE
  684. HAS_MINION_TRUE
  685. HAS_KNC_FALSE
  686. HAS_KNC_TRUE
  687. HAS_KLONDIKE_FALSE
  688. HAS_KLONDIKE_TRUE
  689. HAS_ICARUS_FALSE
  690. HAS_ICARUS_TRUE
  691. HAS_HASHRATIO_FALSE
  692. HAS_HASHRATIO_TRUE
  693. HAS_HASHFAST_FALSE
  694. HAS_HASHFAST_TRUE
  695. HAS_DRILLBIT_FALSE
  696. HAS_DRILLBIT_TRUE
  697. HAS_COINTERRA_FALSE
  698. HAS_COINTERRA_TRUE
  699. HAS_BLOCKERUPTER_FALSE
  700. HAS_BLOCKERUPTER_TRUE
  701. HAS_BITMINE_A1_FALSE
  702. HAS_BITMINE_A1_TRUE
  703. HAS_BITFURY_FALSE
  704. HAS_BITFURY_TRUE
  705. HAS_BITFORCE_FALSE
  706. HAS_BITFORCE_TRUE
  707. HAS_BFLSC_FALSE
  708. HAS_BFLSC_TRUE
  709. HAS_BAB_FALSE
  710. HAS_BAB_TRUE
  711. HAS_AVALON_MINER_FALSE
  712. HAS_AVALON_MINER_TRUE
  713. HAS_AVALON7_FALSE
  714. HAS_AVALON7_TRUE
  715. HAS_AVALON4_FALSE
  716. HAS_AVALON4_TRUE
  717. HAS_AVALON2_FALSE
  718. HAS_AVALON2_TRUE
  719. HAS_AVALON_FALSE
  720. HAS_AVALON_TRUE
  721. HAS_ANT_S3_FALSE
  722. HAS_ANT_S3_TRUE
  723. HAS_ANT_S2_FALSE
  724. HAS_ANT_S2_TRUE
  725. HAS_ANT_S1_FALSE
  726. HAS_ANT_S1_TRUE
  727. ALLOCA
  728. LIBGNU_LTLIBDEPS
  729. LIBGNU_LIBDEPS
  730. gltests_WITNESS
  731. NEXT_AS_FIRST_DIRECTIVE_STRING_H
  732. NEXT_STRING_H
  733. GL_GENERATE_STDINT_H_FALSE
  734. GL_GENERATE_STDINT_H_TRUE
  735. STDINT_H
  736. WINT_T_SUFFIX
  737. WCHAR_T_SUFFIX
  738. SIG_ATOMIC_T_SUFFIX
  739. SIZE_T_SUFFIX
  740. PTRDIFF_T_SUFFIX
  741. HAVE_SIGNED_WINT_T
  742. HAVE_SIGNED_WCHAR_T
  743. HAVE_SIGNED_SIG_ATOMIC_T
  744. BITSIZEOF_WINT_T
  745. BITSIZEOF_WCHAR_T
  746. BITSIZEOF_SIG_ATOMIC_T
  747. BITSIZEOF_SIZE_T
  748. BITSIZEOF_PTRDIFF_T
  749. HAVE_SYS_BITYPES_H
  750. HAVE_SYS_INTTYPES_H
  751. HAVE_STDINT_H
  752. NEXT_AS_FIRST_DIRECTIVE_STDINT_H
  753. NEXT_STDINT_H
  754. HAVE_SYS_TYPES_H
  755. HAVE_INTTYPES_H
  756. HAVE_WCHAR_H
  757. HAVE_UNSIGNED_LONG_LONG_INT
  758. HAVE_LONG_LONG_INT
  759. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
  760. NEXT_STDDEF_H
  761. GL_GENERATE_STDDEF_H_FALSE
  762. GL_GENERATE_STDDEF_H_TRUE
  763. STDDEF_H
  764. HAVE_WCHAR_T
  765. REPLACE_NULL
  766. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
  767. NEXT_SIGNAL_H
  768. PRAGMA_COLUMNS
  769. PRAGMA_SYSTEM_HEADER
  770. INCLUDE_NEXT_AS_FIRST_DIRECTIVE
  771. INCLUDE_NEXT
  772. HAVE_SIGHANDLER_T
  773. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
  774. HAVE_STRUCT_SIGACTION_SA_SIGACTION
  775. HAVE_SIGACTION
  776. HAVE_SIGINFO_T
  777. HAVE_SIGSET_T
  778. HAVE_POSIX_SIGNALBLOCKING
  779. GNULIB_SIGACTION
  780. GNULIB_SIGPROCMASK
  781. GNULIB_SIGNAL_H_SIGPIPE
  782. APPLE_UNIVERSAL_BUILD
  783. UNDEFINE_STRTOK_R
  784. REPLACE_STRTOK_R
  785. REPLACE_STRSIGNAL
  786. REPLACE_STRNLEN
  787. REPLACE_STRNDUP
  788. REPLACE_STRNCAT
  789. REPLACE_STRERROR_R
  790. REPLACE_STRERROR
  791. REPLACE_STRCHRNUL
  792. REPLACE_STRCASESTR
  793. REPLACE_STRSTR
  794. REPLACE_STRDUP
  795. REPLACE_STPNCPY
  796. REPLACE_MEMMEM
  797. REPLACE_MEMCHR
  798. HAVE_STRVERSCMP
  799. HAVE_DECL_STRSIGNAL
  800. HAVE_DECL_STRERROR_R
  801. HAVE_DECL_STRTOK_R
  802. HAVE_STRCASESTR
  803. HAVE_STRSEP
  804. HAVE_STRPBRK
  805. HAVE_DECL_STRNLEN
  806. HAVE_DECL_STRNDUP
  807. HAVE_DECL_STRDUP
  808. HAVE_STRCHRNUL
  809. HAVE_STPNCPY
  810. HAVE_STPCPY
  811. HAVE_RAWMEMCHR
  812. HAVE_DECL_MEMRCHR
  813. HAVE_MEMPCPY
  814. HAVE_DECL_MEMMEM
  815. HAVE_MEMCHR
  816. HAVE_MBSLEN
  817. GNULIB_STRVERSCMP
  818. GNULIB_STRSIGNAL
  819. GNULIB_STRERROR_R
  820. GNULIB_STRERROR
  821. GNULIB_MBSTOK_R
  822. GNULIB_MBSSEP
  823. GNULIB_MBSSPN
  824. GNULIB_MBSPBRK
  825. GNULIB_MBSCSPN
  826. GNULIB_MBSCASESTR
  827. GNULIB_MBSPCASECMP
  828. GNULIB_MBSNCASECMP
  829. GNULIB_MBSCASECMP
  830. GNULIB_MBSSTR
  831. GNULIB_MBSRCHR
  832. GNULIB_MBSCHR
  833. GNULIB_MBSNLEN
  834. GNULIB_MBSLEN
  835. GNULIB_STRTOK_R
  836. GNULIB_STRCASESTR
  837. GNULIB_STRSTR
  838. GNULIB_STRSEP
  839. GNULIB_STRPBRK
  840. GNULIB_STRNLEN
  841. GNULIB_STRNDUP
  842. GNULIB_STRNCAT
  843. GNULIB_STRDUP
  844. GNULIB_STRCHRNUL
  845. GNULIB_STPNCPY
  846. GNULIB_STPCPY
  847. GNULIB_RAWMEMCHR
  848. GNULIB_MEMRCHR
  849. GNULIB_MEMPCPY
  850. GNULIB_MEMMEM
  851. GNULIB_MEMCHR
  852. GL_COND_LIBTOOL_FALSE
  853. GL_COND_LIBTOOL_TRUE
  854. RANLIB
  855. MAINT
  856. MAINTAINER_MODE_FALSE
  857. MAINTAINER_MODE_TRUE
  858. VMAJ
  859. release_info
  860. version_info
  861. EGREP
  862. GREP
  863. CPP
  864. am__fastdepCC_FALSE
  865. am__fastdepCC_TRUE
  866. CCDEPMODE
  867. am__nodep
  868. AMDEPBACKSLASH
  869. AMDEP_FALSE
  870. AMDEP_TRUE
  871. am__quote
  872. am__include
  873. DEPDIR
  874. OBJEXT
  875. EXEEXT
  876. ac_ct_CC
  877. CPPFLAGS
  878. LDFLAGS
  879. CFLAGS
  880. CC
  881. AM_BACKSLASH
  882. AM_DEFAULT_VERBOSITY
  883. AM_DEFAULT_V
  884. AM_V
  885. am__untar
  886. am__tar
  887. AMTAR
  888. am__leading_dot
  889. SET_MAKE
  890. AWK
  891. mkdir_p
  892. MKDIR_P
  893. INSTALL_STRIP_PROGRAM
  894. STRIP
  895. install_sh
  896. MAKEINFO
  897. AUTOHEADER
  898. AUTOMAKE
  899. AUTOCONF
  900. ACLOCAL
  901. VERSION
  902. PACKAGE
  903. CYGPATH_W
  904. am__isrc
  905. INSTALL_DATA
  906. INSTALL_SCRIPT
  907. INSTALL_PROGRAM
  908. target_os
  909. target_vendor
  910. target_cpu
  911. target
  912. host_os
  913. host_vendor
  914. host_cpu
  915. host
  916. build_os
  917. build_vendor
  918. build_cpu
  919. build
  920. target_alias
  921. host_alias
  922. build_alias
  923. LIBS
  924. ECHO_T
  925. ECHO_N
  926. ECHO_C
  927. DEFS
  928. mandir
  929. localedir
  930. libdir
  931. psdir
  932. pdfdir
  933. dvidir
  934. htmldir
  935. infodir
  936. docdir
  937. oldincludedir
  938. includedir
  939. runstatedir
  940. localstatedir
  941. sharedstatedir
  942. sysconfdir
  943. datadir
  944. datarootdir
  945. libexecdir
  946. sbindir
  947. bindir
  948. program_transform_name
  949. prefix
  950. exec_prefix
  951. PACKAGE_URL
  952. PACKAGE_BUGREPORT
  953. PACKAGE_STRING
  954. PACKAGE_VERSION
  955. PACKAGE_TARNAME
  956. PACKAGE_NAME
  957. PATH_SEPARATOR
  958. SHELL'
  959. ac_subst_files=''
  960. ac_user_opts='
  961. enable_option_checking
  962. enable_silent_rules
  963. enable_dependency_tracking
  964. enable_maintainer_mode
  965. enable_ants1
  966. enable_ants2
  967. enable_ants3
  968. enable_avalon
  969. enable_avalon2
  970. enable_avalon4
  971. enable_avalon7
  972. enable_avalon_miner
  973. enable_bab
  974. enable_bflsc
  975. enable_bitforce
  976. enable_bitfury
  977. enable_bitmine_A1
  978. enable_blockerupter
  979. enable_cointerra
  980. enable_drillbit
  981. enable_hashfast
  982. enable_hashratio
  983. enable_icarus
  984. enable_klondike
  985. enable_knc
  986. enable_minion
  987. enable_modminer
  988. enable_sp10
  989. enable_sp30
  990. enable_forcecombo
  991. with_curses
  992. with_system_jansson
  993. enable_libcurl
  994. enable_libsystemd
  995. '
  996.       ac_precious_vars='build_alias
  997. host_alias
  998. target_alias
  999. CC
  1000. CFLAGS
  1001. LDFLAGS
  1002. LIBS
  1003. CPPFLAGS
  1004. CPP
  1005. PKG_CONFIG
  1006. PKG_CONFIG_PATH
  1007. PKG_CONFIG_LIBDIR
  1008. LIBUSB_CFLAGS
  1009. LIBUSB_LIBS
  1010. JANSSON_CFLAGS
  1011. JANSSON_LIBS
  1012. LIBCURL_CFLAGS
  1013. LIBCURL_LIBS
  1014. LIBSYSTEMD_CFLAGS
  1015. LIBSYSTEMD_LIBS'
  1016. ac_subdirs_all='compat/jansson-2.9'
  1017.  
  1018. # Initialize some variables set by options.
  1019. ac_init_help=
  1020. ac_init_version=false
  1021. ac_unrecognized_opts=
  1022. ac_unrecognized_sep=
  1023. # The variables have the same names as the options, with
  1024. # dashes changed to underlines.
  1025. cache_file=/dev/null
  1026. exec_prefix=NONE
  1027. no_create=
  1028. no_recursion=
  1029. prefix=NONE
  1030. program_prefix=NONE
  1031. program_suffix=NONE
  1032. program_transform_name=s,x,x,
  1033. silent=
  1034. site=
  1035. srcdir=
  1036. verbose=
  1037. x_includes=NONE
  1038. x_libraries=NONE
  1039.  
  1040. # Installation directory options.
  1041. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1042. # and all the variables that are supposed to be based on exec_prefix
  1043. # by default will actually change.
  1044. # Use braces instead of parens because sh, perl, etc. also accept them.
  1045. # (The list follows the same order as the GNU Coding Standards.)
  1046. bindir='${exec_prefix}/bin'
  1047. sbindir='${exec_prefix}/sbin'
  1048. libexecdir='${exec_prefix}/libexec'
  1049. datarootdir='${prefix}/share'
  1050. datadir='${datarootdir}'
  1051. sysconfdir='${prefix}/etc'
  1052. sharedstatedir='${prefix}/com'
  1053. localstatedir='${prefix}/var'
  1054. runstatedir='${localstatedir}/run'
  1055. includedir='${prefix}/include'
  1056. oldincludedir='/usr/include'
  1057. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1058. infodir='${datarootdir}/info'
  1059. htmldir='${docdir}'
  1060. dvidir='${docdir}'
  1061. pdfdir='${docdir}'
  1062. psdir='${docdir}'
  1063. libdir='${exec_prefix}/lib'
  1064. localedir='${datarootdir}/locale'
  1065. mandir='${datarootdir}/man'
  1066.  
  1067. ac_prev=
  1068. ac_dashdash=
  1069. for ac_option
  1070. do
  1071.   # If the previous option needs an argument, assign it.
  1072.   if test -n "$ac_prev"; then
  1073.     eval $ac_prev=\$ac_option
  1074.     ac_prev=
  1075.     continue
  1076.   fi
  1077.  
  1078.   case $ac_option in
  1079.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1080.   *=)   ac_optarg= ;;
  1081.   *)    ac_optarg=yes ;;
  1082.   esac
  1083.  
  1084.   # Accept the important Cygnus configure options, so we can diagnose typos.
  1085.  
  1086.   case $ac_dashdash$ac_option in
  1087.   --)
  1088.     ac_dashdash=yes ;;
  1089.  
  1090.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1091.     ac_prev=bindir ;;
  1092.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1093.     bindir=$ac_optarg ;;
  1094.  
  1095.   -build | --build | --buil | --bui | --bu)
  1096.     ac_prev=build_alias ;;
  1097.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1098.     build_alias=$ac_optarg ;;
  1099.  
  1100.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  1101.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1102.     ac_prev=cache_file ;;
  1103.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1104.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1105.     cache_file=$ac_optarg ;;
  1106.  
  1107.   --config-cache | -C)
  1108.     cache_file=config.cache ;;
  1109.  
  1110.   -datadir | --datadir | --datadi | --datad)
  1111.     ac_prev=datadir ;;
  1112.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1113.     datadir=$ac_optarg ;;
  1114.  
  1115.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1116.   | --dataroo | --dataro | --datar)
  1117.     ac_prev=datarootdir ;;
  1118.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1119.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1120.     datarootdir=$ac_optarg ;;
  1121.  
  1122.   -disable-* | --disable-*)
  1123.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1124.     # Reject names that are not valid shell variable names.
  1125.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126.       as_fn_error $? "invalid feature name: $ac_useropt"
  1127.     ac_useropt_orig=$ac_useropt
  1128.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129.     case $ac_user_opts in
  1130.       *"
  1131. "enable_$ac_useropt"
  1132. "*) ;;
  1133.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1134.      ac_unrecognized_sep=', ';;
  1135.     esac
  1136.     eval enable_$ac_useropt=no ;;
  1137.  
  1138.   -docdir | --docdir | --docdi | --doc | --do)
  1139.     ac_prev=docdir ;;
  1140.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1141.     docdir=$ac_optarg ;;
  1142.  
  1143.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1144.     ac_prev=dvidir ;;
  1145.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1146.     dvidir=$ac_optarg ;;
  1147.  
  1148.   -enable-* | --enable-*)
  1149.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1150.     # Reject names that are not valid shell variable names.
  1151.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1152.       as_fn_error $? "invalid feature name: $ac_useropt"
  1153.     ac_useropt_orig=$ac_useropt
  1154.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1155.     case $ac_user_opts in
  1156.       *"
  1157. "enable_$ac_useropt"
  1158. "*) ;;
  1159.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1160.      ac_unrecognized_sep=', ';;
  1161.     esac
  1162.     eval enable_$ac_useropt=\$ac_optarg ;;
  1163.  
  1164.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1165.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1166.   | --exec | --exe | --ex)
  1167.     ac_prev=exec_prefix ;;
  1168.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1169.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1170.   | --exec=* | --exe=* | --ex=*)
  1171.     exec_prefix=$ac_optarg ;;
  1172.  
  1173.   -gas | --gas | --ga | --g)
  1174.     # Obsolete; use --with-gas.
  1175.     with_gas=yes ;;
  1176.  
  1177.   -help | --help | --hel | --he | -h)
  1178.     ac_init_help=long ;;
  1179.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1180.     ac_init_help=recursive ;;
  1181.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1182.     ac_init_help=short ;;
  1183.  
  1184.   -host | --host | --hos | --ho)
  1185.     ac_prev=host_alias ;;
  1186.   -host=* | --host=* | --hos=* | --ho=*)
  1187.     host_alias=$ac_optarg ;;
  1188.  
  1189.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1190.     ac_prev=htmldir ;;
  1191.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1192.   | --ht=*)
  1193.     htmldir=$ac_optarg ;;
  1194.  
  1195.   -includedir | --includedir | --includedi | --included | --include \
  1196.   | --includ | --inclu | --incl | --inc)
  1197.     ac_prev=includedir ;;
  1198.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1199.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1200.     includedir=$ac_optarg ;;
  1201.  
  1202.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1203.     ac_prev=infodir ;;
  1204.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1205.     infodir=$ac_optarg ;;
  1206.  
  1207.   -libdir | --libdir | --libdi | --libd)
  1208.     ac_prev=libdir ;;
  1209.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1210.     libdir=$ac_optarg ;;
  1211.  
  1212.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1213.   | --libexe | --libex | --libe)
  1214.     ac_prev=libexecdir ;;
  1215.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1216.   | --libexe=* | --libex=* | --libe=*)
  1217.     libexecdir=$ac_optarg ;;
  1218.  
  1219.   -localedir | --localedir | --localedi | --localed | --locale)
  1220.     ac_prev=localedir ;;
  1221.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1222.     localedir=$ac_optarg ;;
  1223.  
  1224.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1225.   | --localstate | --localstat | --localsta | --localst | --locals)
  1226.     ac_prev=localstatedir ;;
  1227.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1228.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1229.     localstatedir=$ac_optarg ;;
  1230.  
  1231.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1232.     ac_prev=mandir ;;
  1233.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1234.     mandir=$ac_optarg ;;
  1235.  
  1236.   -nfp | --nfp | --nf)
  1237.     # Obsolete; use --without-fp.
  1238.     with_fp=no ;;
  1239.  
  1240.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1241.   | --no-cr | --no-c | -n)
  1242.     no_create=yes ;;
  1243.  
  1244.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1245.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1246.     no_recursion=yes ;;
  1247.  
  1248.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1249.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1250.   | --oldin | --oldi | --old | --ol | --o)
  1251.     ac_prev=oldincludedir ;;
  1252.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1253.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1254.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1255.     oldincludedir=$ac_optarg ;;
  1256.  
  1257.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1258.     ac_prev=prefix ;;
  1259.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1260.     prefix=$ac_optarg ;;
  1261.  
  1262.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1263.   | --program-pre | --program-pr | --program-p)
  1264.     ac_prev=program_prefix ;;
  1265.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1266.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1267.     program_prefix=$ac_optarg ;;
  1268.  
  1269.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1270.   | --program-suf | --program-su | --program-s)
  1271.     ac_prev=program_suffix ;;
  1272.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1273.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1274.     program_suffix=$ac_optarg ;;
  1275.  
  1276.   -program-transform-name | --program-transform-name \
  1277.   | --program-transform-nam | --program-transform-na \
  1278.   | --program-transform-n | --program-transform- \
  1279.   | --program-transform | --program-transfor \
  1280.   | --program-transfo | --program-transf \
  1281.   | --program-trans | --program-tran \
  1282.   | --progr-tra | --program-tr | --program-t)
  1283.     ac_prev=program_transform_name ;;
  1284.   -program-transform-name=* | --program-transform-name=* \
  1285.   | --program-transform-nam=* | --program-transform-na=* \
  1286.   | --program-transform-n=* | --program-transform-=* \
  1287.   | --program-transform=* | --program-transfor=* \
  1288.   | --program-transfo=* | --program-transf=* \
  1289.   | --program-trans=* | --program-tran=* \
  1290.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1291.     program_transform_name=$ac_optarg ;;
  1292.  
  1293.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1294.     ac_prev=pdfdir ;;
  1295.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1296.     pdfdir=$ac_optarg ;;
  1297.  
  1298.   -psdir | --psdir | --psdi | --psd | --ps)
  1299.     ac_prev=psdir ;;
  1300.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1301.     psdir=$ac_optarg ;;
  1302.  
  1303.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1304.   | -silent | --silent | --silen | --sile | --sil)
  1305.     silent=yes ;;
  1306.  
  1307.   -runstatedir | --runstatedir | --runstatedi | --runstated \
  1308.   | --runstate | --runstat | --runsta | --runst | --runs \
  1309.   | --run | --ru | --r)
  1310.     ac_prev=runstatedir ;;
  1311.   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1312.   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1313.   | --run=* | --ru=* | --r=*)
  1314.     runstatedir=$ac_optarg ;;
  1315.  
  1316.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1317.     ac_prev=sbindir ;;
  1318.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1319.   | --sbi=* | --sb=*)
  1320.     sbindir=$ac_optarg ;;
  1321.  
  1322.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1323.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1324.   | --sharedst | --shareds | --shared | --share | --shar \
  1325.   | --sha | --sh)
  1326.     ac_prev=sharedstatedir ;;
  1327.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1328.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1329.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1330.   | --sha=* | --sh=*)
  1331.     sharedstatedir=$ac_optarg ;;
  1332.  
  1333.   -site | --site | --sit)
  1334.     ac_prev=site ;;
  1335.   -site=* | --site=* | --sit=*)
  1336.     site=$ac_optarg ;;
  1337.  
  1338.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1339.     ac_prev=srcdir ;;
  1340.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1341.     srcdir=$ac_optarg ;;
  1342.  
  1343.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1344.   | --syscon | --sysco | --sysc | --sys | --sy)
  1345.     ac_prev=sysconfdir ;;
  1346.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1347.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1348.     sysconfdir=$ac_optarg ;;
  1349.  
  1350.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1351.     ac_prev=target_alias ;;
  1352.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1353.     target_alias=$ac_optarg ;;
  1354.  
  1355.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1356.     verbose=yes ;;
  1357.  
  1358.   -version | --version | --versio | --versi | --vers | -V)
  1359.     ac_init_version=: ;;
  1360.  
  1361.   -with-* | --with-*)
  1362.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1363.     # Reject names that are not valid shell variable names.
  1364.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1365.       as_fn_error $? "invalid package name: $ac_useropt"
  1366.     ac_useropt_orig=$ac_useropt
  1367.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1368.     case $ac_user_opts in
  1369.       *"
  1370. "with_$ac_useropt"
  1371. "*) ;;
  1372.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1373.      ac_unrecognized_sep=', ';;
  1374.     esac
  1375.     eval with_$ac_useropt=\$ac_optarg ;;
  1376.  
  1377.   -without-* | --without-*)
  1378.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1379.     # Reject names that are not valid shell variable names.
  1380.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1381.       as_fn_error $? "invalid package name: $ac_useropt"
  1382.     ac_useropt_orig=$ac_useropt
  1383.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1384.     case $ac_user_opts in
  1385.       *"
  1386. "with_$ac_useropt"
  1387. "*) ;;
  1388.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1389.      ac_unrecognized_sep=', ';;
  1390.     esac
  1391.     eval with_$ac_useropt=no ;;
  1392.  
  1393.   --x)
  1394.     # Obsolete; use --with-x.
  1395.     with_x=yes ;;
  1396.  
  1397.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1398.   | --x-incl | --x-inc | --x-in | --x-i)
  1399.     ac_prev=x_includes ;;
  1400.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1401.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1402.     x_includes=$ac_optarg ;;
  1403.  
  1404.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1405.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1406.     ac_prev=x_libraries ;;
  1407.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1408.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1409.     x_libraries=$ac_optarg ;;
  1410.  
  1411.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1412. Try \`$0 --help' for more information"
  1413.     ;;
  1414.  
  1415.   *=*)
  1416.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1417.     # Reject names that are not valid shell variable names.
  1418.     case $ac_envvar in #(
  1419.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1420.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1421.     esac
  1422.     eval $ac_envvar=\$ac_optarg
  1423.     export $ac_envvar ;;
  1424.  
  1425.   *)
  1426.     # FIXME: should be removed in autoconf 3.0.
  1427.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1428.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1429.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1430.     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1431.     ;;
  1432.  
  1433.   esac
  1434. done
  1435.  
  1436. if test -n "$ac_prev"; then
  1437.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1438.   as_fn_error $? "missing argument to $ac_option"
  1439. fi
  1440.  
  1441. if test -n "$ac_unrecognized_opts"; then
  1442.   case $enable_option_checking in
  1443.     no) ;;
  1444.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1445.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1446.   esac
  1447. fi
  1448.  
  1449. # Check all directory arguments for consistency.
  1450. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1451.         datadir sysconfdir sharedstatedir localstatedir includedir \
  1452.         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1453.         libdir localedir mandir runstatedir
  1454. do
  1455.   eval ac_val=\$$ac_var
  1456.   # Remove trailing slashes.
  1457.   case $ac_val in
  1458.     */ )
  1459.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1460.       eval $ac_var=\$ac_val;;
  1461.   esac
  1462.   # Be sure to have absolute directory names.
  1463.   case $ac_val in
  1464.     [\\/$]* | ?:[\\/]* )  continue;;
  1465.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1466.   esac
  1467.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1468. done
  1469.  
  1470. # There might be people who depend on the old broken behavior: `$host'
  1471. # used to hold the argument of --host etc.
  1472. # FIXME: To remove some day.
  1473. build=$build_alias
  1474. host=$host_alias
  1475. target=$target_alias
  1476.  
  1477. # FIXME: To remove some day.
  1478. if test "x$host_alias" != x; then
  1479.   if test "x$build_alias" = x; then
  1480.     cross_compiling=maybe
  1481.   elif test "x$build_alias" != "x$host_alias"; then
  1482.     cross_compiling=yes
  1483.   fi
  1484. fi
  1485.  
  1486. ac_tool_prefix=
  1487. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1488.  
  1489. test "$silent" = yes && exec 6>/dev/null
  1490.  
  1491.  
  1492. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1493. ac_ls_di=`ls -di .` &&
  1494. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1495.   as_fn_error $? "working directory cannot be determined"
  1496. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1497.   as_fn_error $? "pwd does not report name of working directory"
  1498.  
  1499.  
  1500. # Find the source files, if location was not specified.
  1501. if test -z "$srcdir"; then
  1502.   ac_srcdir_defaulted=yes
  1503.   # Try the directory containing this script, then the parent directory.
  1504.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1505. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1506.      X"$as_myself" : 'X\(//\)[^/]' \| \
  1507.      X"$as_myself" : 'X\(//\)$' \| \
  1508.      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1509. $as_echo X"$as_myself" |
  1510.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1511.         s//\1/
  1512.         q
  1513.       }
  1514.       /^X\(\/\/\)[^/].*/{
  1515.         s//\1/
  1516.         q
  1517.       }
  1518.       /^X\(\/\/\)$/{
  1519.         s//\1/
  1520.         q
  1521.       }
  1522.       /^X\(\/\).*/{
  1523.         s//\1/
  1524.         q
  1525.       }
  1526.       s/.*/./; q'`
  1527.   srcdir=$ac_confdir
  1528.   if test ! -r "$srcdir/$ac_unique_file"; then
  1529.     srcdir=..
  1530.   fi
  1531. else
  1532.   ac_srcdir_defaulted=no
  1533. fi
  1534. if test ! -r "$srcdir/$ac_unique_file"; then
  1535.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1536.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1537. fi
  1538. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1539. ac_abs_confdir=`(
  1540.     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1541.     pwd)`
  1542. # When building in place, set srcdir=.
  1543. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1544.   srcdir=.
  1545. fi
  1546. # Remove unnecessary trailing slashes from srcdir.
  1547. # Double slashes in file names in object file debugging info
  1548. # mess up M-x gdb in Emacs.
  1549. case $srcdir in
  1550. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1551. esac
  1552. for ac_var in $ac_precious_vars; do
  1553.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1554.   eval ac_env_${ac_var}_value=\$${ac_var}
  1555.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1556.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1557. done
  1558.  
  1559. #
  1560. # Report the --help message.
  1561. #
  1562. if test "$ac_init_help" = "long"; then
  1563.   # Omit some internal or obsolete options to make the list less imposing.
  1564.   # This message is too long to be a string in the A/UX 3.1 sh.
  1565.   cat <<_ACEOF
  1566. \`configure' configures cgminer 4.10.0 to adapt to many kinds of systems.
  1567.  
  1568. Usage: $0 [OPTION]... [VAR=VALUE]...
  1569.  
  1570. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1571. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1572.  
  1573. Defaults for the options are specified in brackets.
  1574.  
  1575. Configuration:
  1576.   -h, --help              display this help and exit
  1577.       --help=short        display options specific to this package
  1578.       --help=recursive    display the short help of all the included packages
  1579.   -V, --version           display version information and exit
  1580.   -q, --quiet, --silent   do not print \`checking ...' messages
  1581.       --cache-file=FILE   cache test results in FILE [disabled]
  1582.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1583.   -n, --no-create         do not create output files
  1584.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1585.  
  1586. Installation directories:
  1587.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1588.                           [$ac_default_prefix]
  1589.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1590.                           [PREFIX]
  1591.  
  1592. By default, \`make install' will install all the files in
  1593. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1594. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1595. for instance \`--prefix=\$HOME'.
  1596.  
  1597. For better control, use the options below.
  1598.  
  1599. Fine tuning of the installation directories:
  1600.   --bindir=DIR            user executables [EPREFIX/bin]
  1601.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1602.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1603.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1604.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1605.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1606.   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  1607.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1608.   --includedir=DIR        C header files [PREFIX/include]
  1609.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1610.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1611.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1612.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1613.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1614.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1615.   --docdir=DIR            documentation root [DATAROOTDIR/doc/cgminer]
  1616.   --htmldir=DIR           html documentation [DOCDIR]
  1617.   --dvidir=DIR            dvi documentation [DOCDIR]
  1618.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1619.   --psdir=DIR             ps documentation [DOCDIR]
  1620. _ACEOF
  1621.  
  1622.   cat <<\_ACEOF
  1623.  
  1624. Program names:
  1625.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1626.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1627.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1628.  
  1629. System types:
  1630.   --build=BUILD     configure for building on BUILD [guessed]
  1631.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1632.   --target=TARGET   configure for building compilers for TARGET [HOST]
  1633. _ACEOF
  1634. fi
  1635.  
  1636. if test -n "$ac_init_help"; then
  1637.   case $ac_init_help in
  1638.      short | recursive ) echo "Configuration of cgminer 4.10.0:";;
  1639.    esac
  1640.   cat <<\_ACEOF
  1641.  
  1642. Optional Features:
  1643.   --disable-option-checking  ignore unrecognized --enable/--with options
  1644.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1645.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1646.   --enable-silent-rules   less verbose build output (undo: "make V=1")
  1647.   --disable-silent-rules  verbose build output (undo: "make V=0")
  1648.   --enable-dependency-tracking
  1649.                           do not reject slow dependency extractors
  1650.   --disable-dependency-tracking
  1651.                           speeds up one-time build
  1652.   --enable-maintainer-mode
  1653.                           enable make rules and dependencies not useful (and
  1654.                           sometimes confusing) to the casual installer
  1655.   --enable-ants1          Compile support for Antminer S1 Bitmain
  1656.                           STANDALONE(default disabled)
  1657.   --enable-ants2          Compile support for Antminer S2 Bitmain
  1658.                           STANDALONE(default disabled)
  1659.   --enable-ants3          Compile support for Antminer S3 Bitmain
  1660.                           STANDALONE(default disabled)
  1661.   --enable-avalon         Compile support for Avalon (default disabled)
  1662.   --enable-avalon2        Compile support for Avalon2 (default disabled)
  1663.   --enable-avalon4        Compile support for Avalon4 (default disabled)
  1664.   --enable-avalon7        Compile support for Avalon7 (default disabled)
  1665.   --enable-avalon-miner   Compile support for Avalon miner(default disabled)
  1666.   --enable-bab            Compile support for BlackArrow Bitfury
  1667.                           STANDALONE(default disabled)
  1668.   --enable-bflsc          Compile support for BFL ASICs (default disabled)
  1669.   --enable-bitforce       Compile support for BitForce FPGAs (default
  1670.                           disabled)
  1671.   --enable-bitfury        Compile support for BitFury ASICs (default disabled)
  1672.   --enable-bitmine_A1     Compile support for Bitmine.ch A1 ASICs
  1673.                           STANDALONE(default disabled)
  1674.   --enable-blockerupter   Compile support for BlockErupter BROKEN DRIVER
  1675.                           (default disabled)
  1676.   --enable-cointerra      Compile support for Cointerra ASICs (default
  1677.                           disabled)
  1678.   --enable-drillbit       Compile support for Drillbit BitFury ASICs (default
  1679.                           disabled)
  1680.   --enable-hashfast       Compile support for Hashfast (default disabled)
  1681.   --enable-hashratio      Compile support for Hashratio (default disabled)
  1682.   --enable-icarus         Compile support for Icarus (default disabled)
  1683.   --enable-klondike       Compile support for Klondike (default disabled)
  1684.   --enable-knc            Compile support for KnC miners STANDALONE(default
  1685.                           disabled)
  1686.   --enable-minion         Compile support for Minion BlackArrow ASIC
  1687.                           STANDALONE(default disabled)
  1688.   --enable-modminer       Compile support for ModMiner FPGAs(default disabled)
  1689.   --enable-sp10           Compile support for Spondoolies SP10
  1690.                           STANDALONE(default disabled)
  1691.   --enable-sp30           Compile support for Spondoolies SP30
  1692.                           STANDALONE(default disabled)
  1693.   --enable-forcecombo     Allow combinations of drivers not intended to be
  1694.                           built together(default disabled)
  1695.   --disable-libcurl       Disable building with libcurl for GBT support
  1696.   --enable-libsystemd     Enable building with libsystemd for watchdog and
  1697.                           status notification support
  1698.  
  1699. Optional Packages:
  1700.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1701.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1702.   --without-curses        Compile support for curses TUI (default enabled)
  1703.   --with-system-jansson   NOT RECOMMENDED! Compile against dynamic system
  1704.                           jansson. (Default use included static jansson)
  1705.  
  1706. Some influential environment variables:
  1707.   CC          C compiler command
  1708.   CFLAGS      C compiler flags
  1709.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1710.               nonstandard directory <lib dir>
  1711.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1712.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1713.               you have headers in a nonstandard directory <include dir>
  1714.   CPP         C preprocessor
  1715.   PKG_CONFIG  path to pkg-config utility
  1716.   PKG_CONFIG_PATH
  1717.               directories to add to pkg-config's search path
  1718.   PKG_CONFIG_LIBDIR
  1719.               path overriding pkg-config's built-in search path
  1720.   LIBUSB_CFLAGS
  1721.               C compiler flags for LIBUSB, overriding pkg-config
  1722.   LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1723.   JANSSON_CFLAGS
  1724.               C compiler flags for JANSSON, overriding pkg-config
  1725.   JANSSON_LIBS
  1726.               linker flags for JANSSON, overriding pkg-config
  1727.   LIBCURL_CFLAGS
  1728.               C compiler flags for LIBCURL, overriding pkg-config
  1729.   LIBCURL_LIBS
  1730.               linker flags for LIBCURL, overriding pkg-config
  1731.   LIBSYSTEMD_CFLAGS
  1732.               C compiler flags for LIBSYSTEMD, overriding pkg-config
  1733.   LIBSYSTEMD_LIBS
  1734.               linker flags for LIBSYSTEMD, overriding pkg-config
  1735.  
  1736. Use these variables to override the choices made by `configure' or to help
  1737. it to find libraries and programs with nonstandard names/locations.
  1738.  
  1739. Report bugs to <kernel@kolivas.org>.
  1740. _ACEOF
  1741. ac_status=$?
  1742. fi
  1743.  
  1744. if test "$ac_init_help" = "recursive"; then
  1745.   # If there are subdirs, report their specific --help.
  1746.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1747.     test -d "$ac_dir" ||
  1748.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1749.       continue
  1750.     ac_builddir=.
  1751.  
  1752. case "$ac_dir" in
  1753. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1754. *)
  1755.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1756.   # A ".." for each directory in $ac_dir_suffix.
  1757.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1758.   case $ac_top_builddir_sub in
  1759.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1760.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1761.   esac ;;
  1762. esac
  1763. ac_abs_top_builddir=$ac_pwd
  1764. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1765. # for backward compatibility:
  1766. ac_top_builddir=$ac_top_build_prefix
  1767.  
  1768. case $srcdir in
  1769.   .)  # We are building in place.
  1770.     ac_srcdir=.
  1771.     ac_top_srcdir=$ac_top_builddir_sub
  1772.     ac_abs_top_srcdir=$ac_pwd ;;
  1773.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1774.     ac_srcdir=$srcdir$ac_dir_suffix;
  1775.     ac_top_srcdir=$srcdir
  1776.     ac_abs_top_srcdir=$srcdir ;;
  1777.   *) # Relative name.
  1778.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1779.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1780.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1781. esac
  1782. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1783.  
  1784.     cd "$ac_dir" || { ac_status=$?; continue; }
  1785.     # Check for guested configure.
  1786.     if test -f "$ac_srcdir/configure.gnu"; then
  1787.       echo &&
  1788.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1789.     elif test -f "$ac_srcdir/configure"; then
  1790.       echo &&
  1791.       $SHELL "$ac_srcdir/configure" --help=recursive
  1792.     else
  1793.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1794.     fi || ac_status=$?
  1795.     cd "$ac_pwd" || { ac_status=$?; break; }
  1796.   done
  1797. fi
  1798.  
  1799. test -n "$ac_init_help" && exit $ac_status
  1800. if $ac_init_version; then
  1801.   cat <<\_ACEOF
  1802. cgminer configure 4.10.0
  1803. generated by GNU Autoconf 2.69
  1804.  
  1805. Copyright (C) 2012 Free Software Foundation, Inc.
  1806. This configure script is free software; the Free Software Foundation
  1807. gives unlimited permission to copy, distribute and modify it.
  1808. _ACEOF
  1809.   exit
  1810. fi
  1811.  
  1812. ## ------------------------ ##
  1813. ## Autoconf initialization. ##
  1814. ## ------------------------ ##
  1815.  
  1816. # ac_fn_c_try_compile LINENO
  1817. # --------------------------
  1818. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1819. ac_fn_c_try_compile ()
  1820. {
  1821.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822.   rm -f conftest.$ac_objext
  1823.   if { { ac_try="$ac_compile"
  1824. case "(($ac_try" in
  1825.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1826.   *) ac_try_echo=$ac_try;;
  1827. esac
  1828. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1829. $as_echo "$ac_try_echo"; } >&5
  1830.   (eval "$ac_compile") 2>conftest.err
  1831.   ac_status=$?
  1832.   if test -s conftest.err; then
  1833.     grep -v '^ *+' conftest.err >conftest.er1
  1834.     cat conftest.er1 >&5
  1835.     mv -f conftest.er1 conftest.err
  1836.   fi
  1837.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1838.   test $ac_status = 0; } && {
  1839.      test -z "$ac_c_werror_flag" ||
  1840.      test ! -s conftest.err
  1841.        } && test -s conftest.$ac_objext; then :
  1842.   ac_retval=0
  1843. else
  1844.   $as_echo "$as_me: failed program was:" >&5
  1845. sed 's/^/| /' conftest.$ac_ext >&5
  1846.  
  1847.     ac_retval=1
  1848. fi
  1849.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1850.   as_fn_set_status $ac_retval
  1851.  
  1852. } # ac_fn_c_try_compile
  1853.  
  1854. # ac_fn_c_try_cpp LINENO
  1855. # ----------------------
  1856. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1857. ac_fn_c_try_cpp ()
  1858. {
  1859.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1860.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1861. case "(($ac_try" in
  1862.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1863.   *) ac_try_echo=$ac_try;;
  1864. esac
  1865. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1866. $as_echo "$ac_try_echo"; } >&5
  1867.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1868.   ac_status=$?
  1869.   if test -s conftest.err; then
  1870.     grep -v '^ *+' conftest.err >conftest.er1
  1871.     cat conftest.er1 >&5
  1872.     mv -f conftest.er1 conftest.err
  1873.   fi
  1874.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1875.   test $ac_status = 0; } > conftest.i && {
  1876.      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1877.      test ! -s conftest.err
  1878.        }; then :
  1879.   ac_retval=0
  1880. else
  1881.   $as_echo "$as_me: failed program was:" >&5
  1882. sed 's/^/| /' conftest.$ac_ext >&5
  1883.  
  1884.     ac_retval=1
  1885. fi
  1886.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1887.   as_fn_set_status $ac_retval
  1888.  
  1889. } # ac_fn_c_try_cpp
  1890.  
  1891. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1892. # -------------------------------------------------------
  1893. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1894. # the include files in INCLUDES and setting the cache variable VAR
  1895. # accordingly.
  1896. ac_fn_c_check_header_mongrel ()
  1897. {
  1898.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1899.   if eval \${$3+:} false; then :
  1900.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1901. $as_echo_n "checking for $2... " >&6; }
  1902. if eval \${$3+:} false; then :
  1903.   $as_echo_n "(cached) " >&6
  1904. fi
  1905. eval ac_res=\$$3
  1906.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1907. $as_echo "$ac_res" >&6; }
  1908. else
  1909.   # Is the header compilable?
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1911. $as_echo_n "checking $2 usability... " >&6; }
  1912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1913. /* end confdefs.h.  */
  1914. $4
  1915. #include <$2>
  1916. _ACEOF
  1917. if ac_fn_c_try_compile "$LINENO"; then :
  1918.   ac_header_compiler=yes
  1919. else
  1920.   ac_header_compiler=no
  1921. fi
  1922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1924. $as_echo "$ac_header_compiler" >&6; }
  1925.  
  1926. # Is the header present?
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1928. $as_echo_n "checking $2 presence... " >&6; }
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h.  */
  1931. #include <$2>
  1932. _ACEOF
  1933. if ac_fn_c_try_cpp "$LINENO"; then :
  1934.   ac_header_preproc=yes
  1935. else
  1936.   ac_header_preproc=no
  1937. fi
  1938. rm -f conftest.err conftest.i conftest.$ac_ext
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1940. $as_echo "$ac_header_preproc" >&6; }
  1941.  
  1942. # So?  What about this header?
  1943. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1944.   yes:no: )
  1945.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1946. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1947.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1948. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1949.     ;;
  1950.   no:yes:* )
  1951.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1952. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1953.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1954. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1955.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1956. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1957.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1958. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1959.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1960. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1961. ( $as_echo "## --------------------------------- ##
  1962. ## Report this to kernel@kolivas.org ##
  1963. ## --------------------------------- ##"
  1964.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  1965.     ;;
  1966. esac
  1967.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1968. $as_echo_n "checking for $2... " >&6; }
  1969. if eval \${$3+:} false; then :
  1970.   $as_echo_n "(cached) " >&6
  1971. else
  1972.   eval "$3=\$ac_header_compiler"
  1973. fi
  1974. eval ac_res=\$$3
  1975.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1976. $as_echo "$ac_res" >&6; }
  1977. fi
  1978.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1979.  
  1980. } # ac_fn_c_check_header_mongrel
  1981.  
  1982. # ac_fn_c_try_run LINENO
  1983. # ----------------------
  1984. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1985. # that executables *can* be run.
  1986. ac_fn_c_try_run ()
  1987. {
  1988.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1989.   if { { ac_try="$ac_link"
  1990. case "(($ac_try" in
  1991.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1992.   *) ac_try_echo=$ac_try;;
  1993. esac
  1994. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1995. $as_echo "$ac_try_echo"; } >&5
  1996.   (eval "$ac_link") 2>&5
  1997.   ac_status=$?
  1998.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1999.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2000.   { { case "(($ac_try" in
  2001.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2002.   *) ac_try_echo=$ac_try;;
  2003. esac
  2004. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2005. $as_echo "$ac_try_echo"; } >&5
  2006.   (eval "$ac_try") 2>&5
  2007.   ac_status=$?
  2008.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2009.   test $ac_status = 0; }; }; then :
  2010.   ac_retval=0
  2011. else
  2012.   $as_echo "$as_me: program exited with status $ac_status" >&5
  2013.        $as_echo "$as_me: failed program was:" >&5
  2014. sed 's/^/| /' conftest.$ac_ext >&5
  2015.  
  2016.        ac_retval=$ac_status
  2017. fi
  2018.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2019.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2020.   as_fn_set_status $ac_retval
  2021.  
  2022. } # ac_fn_c_try_run
  2023.  
  2024. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2025. # -------------------------------------------------------
  2026. # Tests whether HEADER exists and can be compiled using the include files in
  2027. # INCLUDES, setting the cache variable VAR accordingly.
  2028. ac_fn_c_check_header_compile ()
  2029. {
  2030.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2031.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2032. $as_echo_n "checking for $2... " >&6; }
  2033. if eval \${$3+:} false; then :
  2034.   $as_echo_n "(cached) " >&6
  2035. else
  2036.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2037. /* end confdefs.h.  */
  2038. $4
  2039. #include <$2>
  2040. _ACEOF
  2041. if ac_fn_c_try_compile "$LINENO"; then :
  2042.   eval "$3=yes"
  2043. else
  2044.   eval "$3=no"
  2045. fi
  2046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2047. fi
  2048. eval ac_res=\$$3
  2049.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2050. $as_echo "$ac_res" >&6; }
  2051.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2052.  
  2053. } # ac_fn_c_check_header_compile
  2054.  
  2055. # ac_fn_c_try_link LINENO
  2056. # -----------------------
  2057. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2058. ac_fn_c_try_link ()
  2059. {
  2060.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061.   rm -f conftest.$ac_objext conftest$ac_exeext
  2062.   if { { ac_try="$ac_link"
  2063. case "(($ac_try" in
  2064.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2065.   *) ac_try_echo=$ac_try;;
  2066. esac
  2067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2068. $as_echo "$ac_try_echo"; } >&5
  2069.   (eval "$ac_link") 2>conftest.err
  2070.   ac_status=$?
  2071.   if test -s conftest.err; then
  2072.     grep -v '^ *+' conftest.err >conftest.er1
  2073.     cat conftest.er1 >&5
  2074.     mv -f conftest.er1 conftest.err
  2075.   fi
  2076.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2077.   test $ac_status = 0; } && {
  2078.      test -z "$ac_c_werror_flag" ||
  2079.      test ! -s conftest.err
  2080.        } && test -s conftest$ac_exeext && {
  2081.      test "$cross_compiling" = yes ||
  2082.      test -x conftest$ac_exeext
  2083.        }; then :
  2084.   ac_retval=0
  2085. else
  2086.   $as_echo "$as_me: failed program was:" >&5
  2087. sed 's/^/| /' conftest.$ac_ext >&5
  2088.  
  2089.     ac_retval=1
  2090. fi
  2091.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2092.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2093.   # interfere with the next link command; also delete a directory that is
  2094.   # left behind by Apple's compiler.  We do this before executing the actions.
  2095.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2096.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2097.   as_fn_set_status $ac_retval
  2098.  
  2099. } # ac_fn_c_try_link
  2100.  
  2101. # ac_fn_c_check_func LINENO FUNC VAR
  2102. # ----------------------------------
  2103. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2104. ac_fn_c_check_func ()
  2105. {
  2106.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2107.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2108. $as_echo_n "checking for $2... " >&6; }
  2109. if eval \${$3+:} false; then :
  2110.   $as_echo_n "(cached) " >&6
  2111. else
  2112.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2113. /* end confdefs.h.  */
  2114. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2115.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  2116. #define $2 innocuous_$2
  2117.  
  2118. /* System header to define __stub macros and hopefully few prototypes,
  2119.     which can conflict with char $2 (); below.
  2120.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2121.     <limits.h> exists even on freestanding compilers.  */
  2122.  
  2123. #ifdef __STDC__
  2124. # include <limits.h>
  2125. #else
  2126. # include <assert.h>
  2127. #endif
  2128.  
  2129. #undef $2
  2130.  
  2131. /* Override any GCC internal prototype to avoid an error.
  2132.    Use char because int might match the return type of a GCC
  2133.    builtin and then its argument prototype would still apply.  */
  2134. #ifdef __cplusplus
  2135. extern "C"
  2136. #endif
  2137. char $2 ();
  2138. /* The GNU C library defines this for functions which it implements
  2139.     to always fail with ENOSYS.  Some functions are actually named
  2140.     something starting with __ and the normal name is an alias.  */
  2141. #if defined __stub_$2 || defined __stub___$2
  2142. choke me
  2143. #endif
  2144.  
  2145. int
  2146. main ()
  2147. {
  2148. return $2 ();
  2149.   ;
  2150.   return 0;
  2151. }
  2152. _ACEOF
  2153. if ac_fn_c_try_link "$LINENO"; then :
  2154.   eval "$3=yes"
  2155. else
  2156.   eval "$3=no"
  2157. fi
  2158. rm -f core conftest.err conftest.$ac_objext \
  2159.     conftest$ac_exeext conftest.$ac_ext
  2160. fi
  2161. eval ac_res=\$$3
  2162.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2163. $as_echo "$ac_res" >&6; }
  2164.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2165.  
  2166. } # ac_fn_c_check_func
  2167.  
  2168. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2169. # ---------------------------------------------
  2170. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2171. # accordingly.
  2172. ac_fn_c_check_decl ()
  2173. {
  2174.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2175.   as_decl_name=`echo $2|sed 's/ *(.*//'`
  2176.   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2177.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2178. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2179. if eval \${$3+:} false; then :
  2180.   $as_echo_n "(cached) " >&6
  2181. else
  2182.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2183. /* end confdefs.h.  */
  2184. $4
  2185. int
  2186. main ()
  2187. {
  2188. #ifndef $as_decl_name
  2189. #ifdef __cplusplus
  2190.   (void) $as_decl_use;
  2191. #else
  2192.   (void) $as_decl_name;
  2193. #endif
  2194. #endif
  2195.  
  2196.   ;
  2197.   return 0;
  2198. }
  2199. _ACEOF
  2200. if ac_fn_c_try_compile "$LINENO"; then :
  2201.   eval "$3=yes"
  2202. else
  2203.   eval "$3=no"
  2204. fi
  2205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2206. fi
  2207. eval ac_res=\$$3
  2208.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2209. $as_echo "$ac_res" >&6; }
  2210.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2211.  
  2212. } # ac_fn_c_check_decl
  2213.  
  2214. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2215. # ----------------------------------------------------
  2216. # Tries to find if the field MEMBER exists in type AGGR, after including
  2217. # INCLUDES, setting cache variable VAR accordingly.
  2218. ac_fn_c_check_member ()
  2219. {
  2220.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2221.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2222. $as_echo_n "checking for $2.$3... " >&6; }
  2223. if eval \${$4+:} false; then :
  2224.   $as_echo_n "(cached) " >&6
  2225. else
  2226.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2227. /* end confdefs.h.  */
  2228. $5
  2229. int
  2230. main ()
  2231. {
  2232. static $2 ac_aggr;
  2233. if (ac_aggr.$3)
  2234. return 0;
  2235.   ;
  2236.   return 0;
  2237. }
  2238. _ACEOF
  2239. if ac_fn_c_try_compile "$LINENO"; then :
  2240.   eval "$4=yes"
  2241. else
  2242.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2243. /* end confdefs.h.  */
  2244. $5
  2245. int
  2246. main ()
  2247. {
  2248. static $2 ac_aggr;
  2249. if (sizeof ac_aggr.$3)
  2250. return 0;
  2251.   ;
  2252.   return 0;
  2253. }
  2254. _ACEOF
  2255. if ac_fn_c_try_compile "$LINENO"; then :
  2256.   eval "$4=yes"
  2257. else
  2258.   eval "$4=no"
  2259. fi
  2260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2261. fi
  2262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2263. fi
  2264. eval ac_res=\$$4
  2265.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2266. $as_echo "$ac_res" >&6; }
  2267.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2268.  
  2269. } # ac_fn_c_check_member
  2270.  
  2271. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2272. # -------------------------------------------
  2273. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2274. # variable VAR accordingly.
  2275. ac_fn_c_check_type ()
  2276. {
  2277.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2278.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2279. $as_echo_n "checking for $2... " >&6; }
  2280. if eval \${$3+:} false; then :
  2281.   $as_echo_n "(cached) " >&6
  2282. else
  2283.   eval "$3=no"
  2284.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2285. /* end confdefs.h.  */
  2286. $4
  2287. int
  2288. main ()
  2289. {
  2290. if (sizeof ($2))
  2291.      return 0;
  2292.   ;
  2293.   return 0;
  2294. }
  2295. _ACEOF
  2296. if ac_fn_c_try_compile "$LINENO"; then :
  2297.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2298. /* end confdefs.h.  */
  2299. $4
  2300. int
  2301. main ()
  2302. {
  2303. if (sizeof (($2)))
  2304.         return 0;
  2305.   ;
  2306.   return 0;
  2307. }
  2308. _ACEOF
  2309. if ac_fn_c_try_compile "$LINENO"; then :
  2310.  
  2311. else
  2312.   eval "$3=yes"
  2313. fi
  2314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2315. fi
  2316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. fi
  2318. eval ac_res=\$$3
  2319.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2320. $as_echo "$ac_res" >&6; }
  2321.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2322.  
  2323. } # ac_fn_c_check_type
  2324.  
  2325. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2326. # --------------------------------------------
  2327. # Tries to find the compile-time value of EXPR in a program that includes
  2328. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2329. # computed
  2330. ac_fn_c_compute_int ()
  2331. {
  2332.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2333.   if test "$cross_compiling" = yes; then
  2334.     # Depending upon the size, compute the lo and hi bounds.
  2335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2336. /* end confdefs.h.  */
  2337. $4
  2338. int
  2339. main ()
  2340. {
  2341. static int test_array [1 - 2 * !(($2) >= 0)];
  2342. test_array [0] = 0;
  2343. return test_array [0];
  2344.  
  2345.   ;
  2346.   return 0;
  2347. }
  2348. _ACEOF
  2349. if ac_fn_c_try_compile "$LINENO"; then :
  2350.   ac_lo=0 ac_mid=0
  2351.   while :; do
  2352.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2353. /* end confdefs.h.  */
  2354. $4
  2355. int
  2356. main ()
  2357. {
  2358. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2359. test_array [0] = 0;
  2360. return test_array [0];
  2361.  
  2362.   ;
  2363.   return 0;
  2364. }
  2365. _ACEOF
  2366. if ac_fn_c_try_compile "$LINENO"; then :
  2367.   ac_hi=$ac_mid; break
  2368. else
  2369.   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2370.             if test $ac_lo -le $ac_mid; then
  2371.               ac_lo= ac_hi=
  2372.               break
  2373.             fi
  2374.             as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2375. fi
  2376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2377.   done
  2378. else
  2379.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2380. /* end confdefs.h.  */
  2381. $4
  2382. int
  2383. main ()
  2384. {
  2385. static int test_array [1 - 2 * !(($2) < 0)];
  2386. test_array [0] = 0;
  2387. return test_array [0];
  2388.  
  2389.   ;
  2390.   return 0;
  2391. }
  2392. _ACEOF
  2393. if ac_fn_c_try_compile "$LINENO"; then :
  2394.   ac_hi=-1 ac_mid=-1
  2395.   while :; do
  2396.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2397. /* end confdefs.h.  */
  2398. $4
  2399. int
  2400. main ()
  2401. {
  2402. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2403. test_array [0] = 0;
  2404. return test_array [0];
  2405.  
  2406.   ;
  2407.   return 0;
  2408. }
  2409. _ACEOF
  2410. if ac_fn_c_try_compile "$LINENO"; then :
  2411.   ac_lo=$ac_mid; break
  2412. else
  2413.   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2414.             if test $ac_mid -le $ac_hi; then
  2415.               ac_lo= ac_hi=
  2416.               break
  2417.             fi
  2418.             as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2419. fi
  2420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2421.   done
  2422. else
  2423.   ac_lo= ac_hi=
  2424. fi
  2425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2426. fi
  2427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2428. # Binary search between lo and hi bounds.
  2429. while test "x$ac_lo" != "x$ac_hi"; do
  2430.   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2431.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2432. /* end confdefs.h.  */
  2433. $4
  2434. int
  2435. main ()
  2436. {
  2437. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2438. test_array [0] = 0;
  2439. return test_array [0];
  2440.  
  2441.   ;
  2442.   return 0;
  2443. }
  2444. _ACEOF
  2445. if ac_fn_c_try_compile "$LINENO"; then :
  2446.   ac_hi=$ac_mid
  2447. else
  2448.   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2449. fi
  2450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2451. done
  2452. case $ac_lo in #((
  2453. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2454. '') ac_retval=1 ;;
  2455. esac
  2456.   else
  2457.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2458. /* end confdefs.h.  */
  2459. $4
  2460. static long int longval () { return $2; }
  2461. static unsigned long int ulongval () { return $2; }
  2462. #include <stdio.h>
  2463. #include <stdlib.h>
  2464. int
  2465. main ()
  2466. {
  2467.  
  2468.   FILE *f = fopen ("conftest.val", "w");
  2469.   if (! f)
  2470.     return 1;
  2471.   if (($2) < 0)
  2472.     {
  2473.       long int i = longval ();
  2474.       if (i != ($2))
  2475.     return 1;
  2476.       fprintf (f, "%ld", i);
  2477.     }
  2478.   else
  2479.     {
  2480.       unsigned long int i = ulongval ();
  2481.       if (i != ($2))
  2482.     return 1;
  2483.       fprintf (f, "%lu", i);
  2484.     }
  2485.   /* Do not output a trailing newline, as this causes \r\n confusion
  2486.      on some platforms.  */
  2487.   return ferror (f) || fclose (f) != 0;
  2488.  
  2489.   ;
  2490.   return 0;
  2491. }
  2492. _ACEOF
  2493. if ac_fn_c_try_run "$LINENO"; then :
  2494.   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2495. else
  2496.   ac_retval=1
  2497. fi
  2498. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2499.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  2500. rm -f conftest.val
  2501.  
  2502.   fi
  2503.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2504.   as_fn_set_status $ac_retval
  2505.  
  2506. } # ac_fn_c_compute_int
  2507. cat >config.log <<_ACEOF
  2508. This file contains any messages produced by compilers while
  2509. running configure, to aid debugging if configure makes a mistake.
  2510.  
  2511. It was created by cgminer $as_me 4.10.0, which was
  2512. generated by GNU Autoconf 2.69.  Invocation command line was
  2513.  
  2514.   $ $0 $@
  2515.  
  2516. _ACEOF
  2517. exec 5>>config.log
  2518. {
  2519. cat <<_ASUNAME
  2520. ## --------- ##
  2521. ## Platform. ##
  2522. ## --------- ##
  2523.  
  2524. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2525. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2526. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2527. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2528. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2529.  
  2530. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2531. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2532.  
  2533. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2534. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2535. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2536. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2537. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2538. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2539. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2540.  
  2541. _ASUNAME
  2542.  
  2543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2544. for as_dir in $PATH
  2545. do
  2546.   IFS=$as_save_IFS
  2547.   test -z "$as_dir" && as_dir=.
  2548.     $as_echo "PATH: $as_dir"
  2549.   done
  2550. IFS=$as_save_IFS
  2551.  
  2552. } >&5
  2553.  
  2554. cat >&5 <<_ACEOF
  2555.  
  2556.  
  2557. ## ----------- ##
  2558. ## Core tests. ##
  2559. ## ----------- ##
  2560.  
  2561. _ACEOF
  2562.  
  2563.  
  2564. # Keep a trace of the command line.
  2565. # Strip out --no-create and --no-recursion so they do not pile up.
  2566. # Strip out --silent because we don't want to record it for future runs.
  2567. # Also quote any args containing shell meta-characters.
  2568. # Make two passes to allow for proper duplicate-argument suppression.
  2569. ac_configure_args=
  2570. ac_configure_args0=
  2571. ac_configure_args1=
  2572. ac_must_keep_next=false
  2573. for ac_pass in 1 2
  2574. do
  2575.   for ac_arg
  2576.   do
  2577.     case $ac_arg in
  2578.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2579.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2580.     | -silent | --silent | --silen | --sile | --sil)
  2581.       continue ;;
  2582.     *\'*)
  2583.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2584.     esac
  2585.     case $ac_pass in
  2586.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2587.     2)
  2588.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2589.       if test $ac_must_keep_next = true; then
  2590.     ac_must_keep_next=false # Got value, back to normal.
  2591.       else
  2592.     case $ac_arg in
  2593.       *=* | --config-cache | -C | -disable-* | --disable-* \
  2594.       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2595.       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2596.       | -with-* | --with-* | -without-* | --without-* | --x)
  2597.         case "$ac_configure_args0 " in
  2598.           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2599.         esac
  2600.         ;;
  2601.       -* ) ac_must_keep_next=true ;;
  2602.     esac
  2603.       fi
  2604.       as_fn_append ac_configure_args " '$ac_arg'"
  2605.       ;;
  2606.     esac
  2607.   done
  2608. done
  2609. { ac_configure_args0=; unset ac_configure_args0;}
  2610. { ac_configure_args1=; unset ac_configure_args1;}
  2611.  
  2612. # When interrupted or exit'd, cleanup temporary files, and complete
  2613. # config.log.  We remove comments because anyway the quotes in there
  2614. # would cause problems or look ugly.
  2615. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2616. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2617. trap 'exit_status=$?
  2618.   # Save into config.log some information that might help in debugging.
  2619.   {
  2620.     echo
  2621.  
  2622.     $as_echo "## ---------------- ##
  2623. ## Cache variables. ##
  2624. ## ---------------- ##"
  2625.     echo
  2626.     # The following way of writing the cache mishandles newlines in values,
  2627. (
  2628.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2629.     eval ac_val=\$$ac_var
  2630.     case $ac_val in #(
  2631.     *${as_nl}*)
  2632.       case $ac_var in #(
  2633.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2634. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2635.       esac
  2636.       case $ac_var in #(
  2637.       _ | IFS | as_nl) ;; #(
  2638.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2639.       *) { eval $ac_var=; unset $ac_var;} ;;
  2640.       esac ;;
  2641.     esac
  2642.   done
  2643.   (set) 2>&1 |
  2644.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2645.     *${as_nl}ac_space=\ *)
  2646.       sed -n \
  2647.     "s/'\''/'\''\\\\'\'''\''/g;
  2648.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2649.       ;; #(
  2650.     *)
  2651.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2652.       ;;
  2653.     esac |
  2654.     sort
  2655. )
  2656.     echo
  2657.  
  2658.     $as_echo "## ----------------- ##
  2659. ## Output variables. ##
  2660. ## ----------------- ##"
  2661.     echo
  2662.     for ac_var in $ac_subst_vars
  2663.     do
  2664.       eval ac_val=\$$ac_var
  2665.       case $ac_val in
  2666.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2667.       esac
  2668.       $as_echo "$ac_var='\''$ac_val'\''"
  2669.     done | sort
  2670.     echo
  2671.  
  2672.     if test -n "$ac_subst_files"; then
  2673.       $as_echo "## ------------------- ##
  2674. ## File substitutions. ##
  2675. ## ------------------- ##"
  2676.       echo
  2677.       for ac_var in $ac_subst_files
  2678.       do
  2679.     eval ac_val=\$$ac_var
  2680.     case $ac_val in
  2681.     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2682.     esac
  2683.     $as_echo "$ac_var='\''$ac_val'\''"
  2684.       done | sort
  2685.       echo
  2686.     fi
  2687.  
  2688.     if test -s confdefs.h; then
  2689.       $as_echo "## ----------- ##
  2690. ## confdefs.h. ##
  2691. ## ----------- ##"
  2692.       echo
  2693.       cat confdefs.h
  2694.       echo
  2695.     fi
  2696.     test "$ac_signal" != 0 &&
  2697.       $as_echo "$as_me: caught signal $ac_signal"
  2698.     $as_echo "$as_me: exit $exit_status"
  2699.   } >&5
  2700.   rm -f core *.core core.conftest.* &&
  2701.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2702.     exit $exit_status
  2703. ' 0
  2704. for ac_signal in 1 2 13 15; do
  2705.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2706. done
  2707. ac_signal=0
  2708.  
  2709. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2710. rm -f -r conftest* confdefs.h
  2711.  
  2712. $as_echo "/* confdefs.h */" > confdefs.h
  2713.  
  2714. # Predefined preprocessor variables.
  2715.  
  2716. cat >>confdefs.h <<_ACEOF
  2717. #define PACKAGE_NAME "$PACKAGE_NAME"
  2718. _ACEOF
  2719.  
  2720. cat >>confdefs.h <<_ACEOF
  2721. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2722. _ACEOF
  2723.  
  2724. cat >>confdefs.h <<_ACEOF
  2725. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2726. _ACEOF
  2727.  
  2728. cat >>confdefs.h <<_ACEOF
  2729. #define PACKAGE_STRING "$PACKAGE_STRING"
  2730. _ACEOF
  2731.  
  2732. cat >>confdefs.h <<_ACEOF
  2733. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2734. _ACEOF
  2735.  
  2736. cat >>confdefs.h <<_ACEOF
  2737. #define PACKAGE_URL "$PACKAGE_URL"
  2738. _ACEOF
  2739.  
  2740.  
  2741. # Let the site file select an alternate cache file if it wants to.
  2742. # Prefer an explicitly selected file to automatically selected ones.
  2743. ac_site_file1=NONE
  2744. ac_site_file2=NONE
  2745. if test -n "$CONFIG_SITE"; then
  2746.   # We do not want a PATH search for config.site.
  2747.   case $CONFIG_SITE in #((
  2748.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2749.     */*) ac_site_file1=$CONFIG_SITE;;
  2750.     *)   ac_site_file1=./$CONFIG_SITE;;
  2751.   esac
  2752. elif test "x$prefix" != xNONE; then
  2753.   ac_site_file1=$prefix/share/config.site
  2754.   ac_site_file2=$prefix/etc/config.site
  2755. else
  2756.   ac_site_file1=$ac_default_prefix/share/config.site
  2757.   ac_site_file2=$ac_default_prefix/etc/config.site
  2758. fi
  2759. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2760. do
  2761.   test "x$ac_site_file" = xNONE && continue
  2762.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2763.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2764. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2765.     sed 's/^/| /' "$ac_site_file" >&5
  2766.     . "$ac_site_file" \
  2767.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2768. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2769. as_fn_error $? "failed to load site script $ac_site_file
  2770. See \`config.log' for more details" "$LINENO" 5; }
  2771.   fi
  2772. done
  2773.  
  2774. if test -r "$cache_file"; then
  2775.   # Some versions of bash will fail to source /dev/null (special files
  2776.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2777.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2778.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2779. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2780.     case $cache_file in
  2781.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2782.       *)                      . "./$cache_file";;
  2783.     esac
  2784.   fi
  2785. else
  2786.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2787. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2788.   >$cache_file
  2789. fi
  2790.  
  2791. gl_header_list="$gl_header_list sys/mman.h"
  2792. gl_func_list="$gl_func_list mprotect"
  2793. gl_func_list="$gl_func_list sigaction"
  2794. gl_func_list="$gl_func_list sigaltstack"
  2795. gl_func_list="$gl_func_list siginterrupt"
  2796. gl_header_list="$gl_header_list wchar.h"
  2797. gl_header_list="$gl_header_list stdint.h"
  2798. # Check that the precious variables saved in the cache have kept the same
  2799. # value.
  2800. ac_cache_corrupted=false
  2801. for ac_var in $ac_precious_vars; do
  2802.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2803.   eval ac_new_set=\$ac_env_${ac_var}_set
  2804.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2805.   eval ac_new_val=\$ac_env_${ac_var}_value
  2806.   case $ac_old_set,$ac_new_set in
  2807.     set,)
  2808.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2809. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2810.       ac_cache_corrupted=: ;;
  2811.     ,set)
  2812.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2813. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2814.       ac_cache_corrupted=: ;;
  2815.     ,);;
  2816.     *)
  2817.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2818.     # differences in whitespace do not lead to failure.
  2819.     ac_old_val_w=`echo x $ac_old_val`
  2820.     ac_new_val_w=`echo x $ac_new_val`
  2821.     if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2822.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2823. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2824.       ac_cache_corrupted=:
  2825.     else
  2826.       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2827. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2828.       eval $ac_var=\$ac_old_val
  2829.     fi
  2830.     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2831. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2832.     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2833. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2834.       fi;;
  2835.   esac
  2836.   # Pass precious variables to config.status.
  2837.   if test "$ac_new_set" = set; then
  2838.     case $ac_new_val in
  2839.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2840.     *) ac_arg=$ac_var=$ac_new_val ;;
  2841.     esac
  2842.     case " $ac_configure_args " in
  2843.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2844.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2845.     esac
  2846.   fi
  2847. done
  2848. if $ac_cache_corrupted; then
  2849.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2850. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2851.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2852. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2853.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2854. fi
  2855. ## -------------------- ##
  2856. ## Main body of script. ##
  2857. ## -------------------- ##
  2858.  
  2859. ac_ext=c
  2860. ac_cpp='$CPP $CPPFLAGS'
  2861. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2862. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2863. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2864.  
  2865.  
  2866.  
  2867.  
  2868. ac_aux_dir=
  2869. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2870.   if test -f "$ac_dir/install-sh"; then
  2871.     ac_aux_dir=$ac_dir
  2872.     ac_install_sh="$ac_aux_dir/install-sh -c"
  2873.     break
  2874.   elif test -f "$ac_dir/install.sh"; then
  2875.     ac_aux_dir=$ac_dir
  2876.     ac_install_sh="$ac_aux_dir/install.sh -c"
  2877.     break
  2878.   elif test -f "$ac_dir/shtool"; then
  2879.     ac_aux_dir=$ac_dir
  2880.     ac_install_sh="$ac_aux_dir/shtool install -c"
  2881.     break
  2882.   fi
  2883. done
  2884. if test -z "$ac_aux_dir"; then
  2885.   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2886. fi
  2887.  
  2888. # These three variables are undocumented and unsupported,
  2889. # and are intended to be withdrawn in a future Autoconf release.
  2890. # They can cause serious problems if a builder's source tree is in a directory
  2891. # whose full name contains unusual characters.
  2892. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2893. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2894. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2895.  
  2896.  
  2897. # Make sure we can run config.sub.
  2898. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2899.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2900.  
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2902. $as_echo_n "checking build system type... " >&6; }
  2903. if ${ac_cv_build+:} false; then :
  2904.   $as_echo_n "(cached) " >&6
  2905. else
  2906.   ac_build_alias=$build_alias
  2907. test "x$ac_build_alias" = x &&
  2908.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2909. test "x$ac_build_alias" = x &&
  2910.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2911. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2912.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2913.  
  2914. fi
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2916. $as_echo "$ac_cv_build" >&6; }
  2917. case $ac_cv_build in
  2918. *-*-*) ;;
  2919. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2920. esac
  2921. build=$ac_cv_build
  2922. ac_save_IFS=$IFS; IFS='-'
  2923. set x $ac_cv_build
  2924. shift
  2925. build_cpu=$1
  2926. build_vendor=$2
  2927. shift; shift
  2928. # Remember, the first character of IFS is used to create $*,
  2929. # except with old shells:
  2930. build_os=$*
  2931. IFS=$ac_save_IFS
  2932. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2933.  
  2934.  
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2936. $as_echo_n "checking host system type... " >&6; }
  2937. if ${ac_cv_host+:} false; then :
  2938.   $as_echo_n "(cached) " >&6
  2939. else
  2940.   if test "x$host_alias" = x; then
  2941.   ac_cv_host=$ac_cv_build
  2942. else
  2943.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2944.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2945. fi
  2946.  
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2949. $as_echo "$ac_cv_host" >&6; }
  2950. case $ac_cv_host in
  2951. *-*-*) ;;
  2952. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2953. esac
  2954. host=$ac_cv_host
  2955. ac_save_IFS=$IFS; IFS='-'
  2956. set x $ac_cv_host
  2957. shift
  2958. host_cpu=$1
  2959. host_vendor=$2
  2960. shift; shift
  2961. # Remember, the first character of IFS is used to create $*,
  2962. # except with old shells:
  2963. host_os=$*
  2964. IFS=$ac_save_IFS
  2965. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2966.  
  2967.  
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2969. $as_echo_n "checking target system type... " >&6; }
  2970. if ${ac_cv_target+:} false; then :
  2971.   $as_echo_n "(cached) " >&6
  2972. else
  2973.   if test "x$target_alias" = x; then
  2974.   ac_cv_target=$ac_cv_host
  2975. else
  2976.   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2977.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2978. fi
  2979.  
  2980. fi
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2982. $as_echo "$ac_cv_target" >&6; }
  2983. case $ac_cv_target in
  2984. *-*-*) ;;
  2985. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2986. esac
  2987. target=$ac_cv_target
  2988. ac_save_IFS=$IFS; IFS='-'
  2989. set x $ac_cv_target
  2990. shift
  2991. target_cpu=$1
  2992. target_vendor=$2
  2993. shift; shift
  2994. # Remember, the first character of IFS is used to create $*,
  2995. # except with old shells:
  2996. target_os=$*
  2997. IFS=$ac_save_IFS
  2998. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2999.  
  3000.  
  3001. # The aliases save the names the user supplied, while $host etc.
  3002. # will get canonicalized.
  3003. test -n "$target_alias" &&
  3004.   test "$program_prefix$program_suffix$program_transform_name" = \
  3005.     NONENONEs,x,x, &&
  3006.   program_prefix=${target_alias}-
  3007.  
  3008.  
  3009.  
  3010. ac_config_headers="$ac_config_headers config.h"
  3011.  
  3012.  
  3013. am__api_version='1.15'
  3014.  
  3015. # Find a good install program.  We prefer a C program (faster),
  3016. # so one script is as good as another.  But avoid the broken or
  3017. # incompatible versions:
  3018. # SysV /etc/install, /usr/sbin/install
  3019. # SunOS /usr/etc/install
  3020. # IRIX /sbin/install
  3021. # AIX /bin/install
  3022. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3023. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3024. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3025. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3026. # OS/2's system install, which has a completely different semantic
  3027. # ./install, which can be erroneously created by make from ./install.sh.
  3028. # Reject install programs that cannot install multiple files.
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3030. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3031. if test -z "$INSTALL"; then
  3032. if ${ac_cv_path_install+:} false; then :
  3033.   $as_echo_n "(cached) " >&6
  3034. else
  3035.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3036. for as_dir in $PATH
  3037. do
  3038.   IFS=$as_save_IFS
  3039.   test -z "$as_dir" && as_dir=.
  3040.     # Account for people who put trailing slashes in PATH elements.
  3041. case $as_dir/ in #((
  3042.   ./ | .// | /[cC]/* | \
  3043.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3044.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3045.   /usr/ucb/* ) ;;
  3046.   *)
  3047.     # OSF1 and SCO ODT 3.0 have their own names for install.
  3048.     # Don't use installbsd from OSF since it installs stuff as root
  3049.     # by default.
  3050.     for ac_prog in ginstall scoinst install; do
  3051.       for ac_exec_ext in '' $ac_executable_extensions; do
  3052.     if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3053.       if test $ac_prog = install &&
  3054.         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3055.         # AIX install.  It has an incompatible calling convention.
  3056.         :
  3057.       elif test $ac_prog = install &&
  3058.         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3059.         # program-specific install script used by HP pwplus--don't use.
  3060.         :
  3061.       else
  3062.         rm -rf conftest.one conftest.two conftest.dir
  3063.         echo one > conftest.one
  3064.         echo two > conftest.two
  3065.         mkdir conftest.dir
  3066.         if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3067.           test -s conftest.one && test -s conftest.two &&
  3068.           test -s conftest.dir/conftest.one &&
  3069.           test -s conftest.dir/conftest.two
  3070.         then
  3071.           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3072.           break 3
  3073.         fi
  3074.       fi
  3075.     fi
  3076.       done
  3077.     done
  3078.     ;;
  3079. esac
  3080.  
  3081.   done
  3082. IFS=$as_save_IFS
  3083.  
  3084. rm -rf conftest.one conftest.two conftest.dir
  3085.  
  3086. fi
  3087.   if test "${ac_cv_path_install+set}" = set; then
  3088.     INSTALL=$ac_cv_path_install
  3089.   else
  3090.     # As a last resort, use the slow shell script.  Don't cache a
  3091.     # value for INSTALL within a source directory, because that will
  3092.     # break other packages using the cache if that directory is
  3093.     # removed, or if the value is a relative name.
  3094.     INSTALL=$ac_install_sh
  3095.   fi
  3096. fi
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3098. $as_echo "$INSTALL" >&6; }
  3099.  
  3100. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3101. # It thinks the first close brace ends the variable substitution.
  3102. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3103.  
  3104. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3105.  
  3106. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3107.  
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3109. $as_echo_n "checking whether build environment is sane... " >&6; }
  3110. # Reject unsafe characters in $srcdir or the absolute working directory
  3111. # name.  Accept space and tab only in the latter.
  3112. am_lf='
  3113. '
  3114. case `pwd` in
  3115.   *[\\\"\#\$\&\'\`$am_lf]*)
  3116.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3117. esac
  3118. case $srcdir in
  3119.   *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3120.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3121. esac
  3122.  
  3123. # Do 'set' in a subshell so we don't clobber the current shell's
  3124. # arguments.  Must try -L first in case configure is actually a
  3125. # symlink; some systems play weird games with the mod time of symlinks
  3126. # (eg FreeBSD returns the mod time of the symlink's containing
  3127. # directory).
  3128. if (
  3129.    am_has_slept=no
  3130.    for am_try in 1 2; do
  3131.      echo "timestamp, slept: $am_has_slept" > conftest.file
  3132.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3133.      if test "$*" = "X"; then
  3134.     # -L didn't work.
  3135.     set X `ls -t "$srcdir/configure" conftest.file`
  3136.      fi
  3137.      if test "$*" != "X $srcdir/configure conftest.file" \
  3138.     && test "$*" != "X conftest.file $srcdir/configure"; then
  3139.  
  3140.     # If neither matched, then we have a broken ls.  This can happen
  3141.     # if, for instance, CONFIG_SHELL is bash and it inherits a
  3142.     # broken ls alias from the environment.  This has actually
  3143.     # happened.  Such a system could not be considered "sane".
  3144.     as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  3145.   alias in your environment" "$LINENO" 5
  3146.      fi
  3147.      if test "$2" = conftest.file || test $am_try -eq 2; then
  3148.        break
  3149.      fi
  3150.      # Just in case.
  3151.      sleep 1
  3152.      am_has_slept=yes
  3153.    done
  3154.    test "$2" = conftest.file
  3155.    )
  3156. then
  3157.    # Ok.
  3158.    :
  3159. else
  3160.    as_fn_error $? "newly created file is older than distributed files!
  3161. Check your system clock" "$LINENO" 5
  3162. fi
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3164. $as_echo "yes" >&6; }
  3165. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3166. # generated files are strictly newer.
  3167. am_sleep_pid=
  3168. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3169.   ( sleep 1 ) &
  3170.   am_sleep_pid=$!
  3171. fi
  3172.  
  3173. rm -f conftest.file
  3174.  
  3175. test "$program_prefix" != NONE &&
  3176.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3177. # Use a double $ so make ignores it.
  3178. test "$program_suffix" != NONE &&
  3179.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3180. # Double any \ or $.
  3181. # By default was `s,x,x', remove it if useless.
  3182. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3183. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3184.  
  3185. # Expand $ac_aux_dir to an absolute path.
  3186. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3187.  
  3188. if test x"${MISSING+set}" != xset; then
  3189.   case $am_aux_dir in
  3190.   *\ * | *\ *)
  3191.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3192.   *)
  3193.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3194.   esac
  3195. fi
  3196. # Use eval to expand $SHELL
  3197. if eval "$MISSING --is-lightweight"; then
  3198.   am_missing_run="$MISSING "
  3199. else
  3200.   am_missing_run=
  3201.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3202. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3203. fi
  3204.  
  3205. if test x"${install_sh+set}" != xset; then
  3206.   case $am_aux_dir in
  3207.   *\ * | *\ *)
  3208.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3209.   *)
  3210.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  3211.   esac
  3212. fi
  3213.  
  3214. # Installed binaries are usually stripped using 'strip' when the user
  3215. # run "make install-strip".  However 'strip' might not be the right
  3216. # tool to use in cross-compilation environments, therefore Automake
  3217. # will honor the 'STRIP' environment variable to overrule this program.
  3218. if test "$cross_compiling" != no; then
  3219.   if test -n "$ac_tool_prefix"; then
  3220.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3221. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3223. $as_echo_n "checking for $ac_word... " >&6; }
  3224. if ${ac_cv_prog_STRIP+:} false; then :
  3225.   $as_echo_n "(cached) " >&6
  3226. else
  3227.   if test -n "$STRIP"; then
  3228.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3229. else
  3230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3231. for as_dir in $PATH
  3232. do
  3233.   IFS=$as_save_IFS
  3234.   test -z "$as_dir" && as_dir=.
  3235.     for ac_exec_ext in '' $ac_executable_extensions; do
  3236.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3237.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3238.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3239.     break 2
  3240.   fi
  3241. done
  3242.   done
  3243. IFS=$as_save_IFS
  3244.  
  3245. fi
  3246. fi
  3247. STRIP=$ac_cv_prog_STRIP
  3248. if test -n "$STRIP"; then
  3249.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3250. $as_echo "$STRIP" >&6; }
  3251. else
  3252.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3253. $as_echo "no" >&6; }
  3254. fi
  3255.  
  3256.  
  3257. fi
  3258. if test -z "$ac_cv_prog_STRIP"; then
  3259.   ac_ct_STRIP=$STRIP
  3260.   # Extract the first word of "strip", so it can be a program name with args.
  3261. set dummy strip; ac_word=$2
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3263. $as_echo_n "checking for $ac_word... " >&6; }
  3264. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3265.   $as_echo_n "(cached) " >&6
  3266. else
  3267.   if test -n "$ac_ct_STRIP"; then
  3268.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3269. else
  3270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3271. for as_dir in $PATH
  3272. do
  3273.   IFS=$as_save_IFS
  3274.   test -z "$as_dir" && as_dir=.
  3275.     for ac_exec_ext in '' $ac_executable_extensions; do
  3276.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3277.     ac_cv_prog_ac_ct_STRIP="strip"
  3278.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3279.     break 2
  3280.   fi
  3281. done
  3282.   done
  3283. IFS=$as_save_IFS
  3284.  
  3285. fi
  3286. fi
  3287. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3288. if test -n "$ac_ct_STRIP"; then
  3289.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3290. $as_echo "$ac_ct_STRIP" >&6; }
  3291. else
  3292.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3293. $as_echo "no" >&6; }
  3294. fi
  3295.  
  3296.   if test "x$ac_ct_STRIP" = x; then
  3297.     STRIP=":"
  3298.   else
  3299.     case $cross_compiling:$ac_tool_warned in
  3300. yes:)
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3302. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3303. ac_tool_warned=yes ;;
  3304. esac
  3305.     STRIP=$ac_ct_STRIP
  3306.   fi
  3307. else
  3308.   STRIP="$ac_cv_prog_STRIP"
  3309. fi
  3310.  
  3311. fi
  3312. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3313.  
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3315. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3316. if test -z "$MKDIR_P"; then
  3317.   if ${ac_cv_path_mkdir+:} false; then :
  3318.   $as_echo_n "(cached) " >&6
  3319. else
  3320.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3321. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3322. do
  3323.   IFS=$as_save_IFS
  3324.   test -z "$as_dir" && as_dir=.
  3325.     for ac_prog in mkdir gmkdir; do
  3326.      for ac_exec_ext in '' $ac_executable_extensions; do
  3327.        as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3328.        case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3329.          'mkdir (GNU coreutils) '* | \
  3330.          'mkdir (coreutils) '* | \
  3331.          'mkdir (fileutils) '4.1*)
  3332.            ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3333.            break 3;;
  3334.        esac
  3335.      done
  3336.        done
  3337.   done
  3338. IFS=$as_save_IFS
  3339.  
  3340. fi
  3341.  
  3342.   test -d ./--version && rmdir ./--version
  3343.   if test "${ac_cv_path_mkdir+set}" = set; then
  3344.     MKDIR_P="$ac_cv_path_mkdir -p"
  3345.   else
  3346.     # As a last resort, use the slow shell script.  Don't cache a
  3347.     # value for MKDIR_P within a source directory, because that will
  3348.     # break other packages using the cache if that directory is
  3349.     # removed, or if the value is a relative name.
  3350.     MKDIR_P="$ac_install_sh -d"
  3351.   fi
  3352. fi
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3354. $as_echo "$MKDIR_P" >&6; }
  3355.  
  3356.  
  3357. for ac_prog in gawk mawk nawk awk
  3358. do
  3359.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3360. set dummy $ac_prog; ac_word=$2
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3362. $as_echo_n "checking for $ac_word... " >&6; }
  3363. if ${ac_cv_prog_AWK+:} false; then :
  3364.   $as_echo_n "(cached) " >&6
  3365. else
  3366.   if test -n "$AWK"; then
  3367.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3368. else
  3369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3370. for as_dir in $PATH
  3371. do
  3372.   IFS=$as_save_IFS
  3373.   test -z "$as_dir" && as_dir=.
  3374.     for ac_exec_ext in '' $ac_executable_extensions; do
  3375.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3376.     ac_cv_prog_AWK="$ac_prog"
  3377.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3378.     break 2
  3379.   fi
  3380. done
  3381.   done
  3382. IFS=$as_save_IFS
  3383.  
  3384. fi
  3385. fi
  3386. AWK=$ac_cv_prog_AWK
  3387. if test -n "$AWK"; then
  3388.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3389. $as_echo "$AWK" >&6; }
  3390. else
  3391.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3392. $as_echo "no" >&6; }
  3393. fi
  3394.  
  3395.  
  3396.   test -n "$AWK" && break
  3397. done
  3398.  
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3400. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3401. set x ${MAKE-make}
  3402. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3403. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3404.   $as_echo_n "(cached) " >&6
  3405. else
  3406.   cat >conftest.make <<\_ACEOF
  3407. SHELL = /bin/sh
  3408. all:
  3409.     @echo '@@@%%%=$(MAKE)=@@@%%%'
  3410. _ACEOF
  3411. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3412. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3413.   *@@@%%%=?*=@@@%%%*)
  3414.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  3415.   *)
  3416.     eval ac_cv_prog_make_${ac_make}_set=no;;
  3417. esac
  3418. rm -f conftest.make
  3419. fi
  3420. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3421.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3422. $as_echo "yes" >&6; }
  3423.   SET_MAKE=
  3424. else
  3425.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3426. $as_echo "no" >&6; }
  3427.   SET_MAKE="MAKE=${MAKE-make}"
  3428. fi
  3429.  
  3430. rm -rf .tst 2>/dev/null
  3431. mkdir .tst 2>/dev/null
  3432. if test -d .tst; then
  3433.   am__leading_dot=.
  3434. else
  3435.   am__leading_dot=_
  3436. fi
  3437. rmdir .tst 2>/dev/null
  3438.  
  3439. # Check whether --enable-silent-rules was given.
  3440. if test "${enable_silent_rules+set}" = set; then :
  3441.   enableval=$enable_silent_rules;
  3442. fi
  3443.  
  3444. case $enable_silent_rules in # (((
  3445.   yes) AM_DEFAULT_VERBOSITY=0;;
  3446.    no) AM_DEFAULT_VERBOSITY=1;;
  3447.     *) AM_DEFAULT_VERBOSITY=1;;
  3448. esac
  3449. am_make=${MAKE-make}
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3451. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3452. if ${am_cv_make_support_nested_variables+:} false; then :
  3453.   $as_echo_n "(cached) " >&6
  3454. else
  3455.   if $as_echo 'TRUE=$(BAR$(V))
  3456. BAR0=false
  3457. BAR1=true
  3458. V=1
  3459. am__doit:
  3460.     @$(TRUE)
  3461. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3462.   am_cv_make_support_nested_variables=yes
  3463. else
  3464.   am_cv_make_support_nested_variables=no
  3465. fi
  3466. fi
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3468. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3469. if test $am_cv_make_support_nested_variables = yes; then
  3470.     AM_V='$(V)'
  3471.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3472. else
  3473.   AM_V=$AM_DEFAULT_VERBOSITY
  3474.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3475. fi
  3476. AM_BACKSLASH='\'
  3477.  
  3478. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3479.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3480.   # is not polluted with repeated "-I."
  3481.   am__isrc=' -I$(srcdir)'
  3482.   # test to see if srcdir already configured
  3483.   if test -f $srcdir/config.status; then
  3484.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3485.   fi
  3486. fi
  3487.  
  3488. # test whether we have cygpath
  3489. if test -z "$CYGPATH_W"; then
  3490.   if (cygpath --version) >/dev/null 2>/dev/null; then
  3491.     CYGPATH_W='cygpath -w'
  3492.   else
  3493.     CYGPATH_W=echo
  3494.   fi
  3495. fi
  3496.  
  3497.  
  3498. # Define the identity of the package.
  3499.  PACKAGE='cgminer'
  3500.  VERSION='4.10.0'
  3501.  
  3502.  
  3503. cat >>confdefs.h <<_ACEOF
  3504. #define PACKAGE "$PACKAGE"
  3505. _ACEOF
  3506.  
  3507.  
  3508. cat >>confdefs.h <<_ACEOF
  3509. #define VERSION "$VERSION"
  3510. _ACEOF
  3511.  
  3512. # Some tools Automake needs.
  3513.  
  3514. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3515.  
  3516.  
  3517. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3518.  
  3519.  
  3520. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3521.  
  3522.  
  3523. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3524.  
  3525.  
  3526. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3527.  
  3528. # For better backward compatibility.  To be removed once Automake 1.9.x
  3529. # dies out for good.  For more background, see:
  3530. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3531. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3532. mkdir_p='$(MKDIR_P)'
  3533.  
  3534. # We need awk for the "check" target (and possibly the TAP driver).  The
  3535. # system "awk" is bad on some platforms.
  3536. # Always define AMTAR for backward compatibility.  Yes, it's still used
  3537. # in the wild :-(  We should find a proper way to deprecate it ...
  3538. AMTAR='$${TAR-tar}'
  3539.  
  3540.  
  3541. # We'll loop over all known methods to create a tar archive until one works.
  3542. _am_tools='gnutar  pax cpio none'
  3543.  
  3544. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3545.  
  3546.  
  3547.  
  3548.  
  3549.  
  3550.  
  3551. # POSIX will say in a future version that running "rm -f" with no argument
  3552. # is OK; and we want to be able to make that assumption in our Makefile
  3553. # recipes.  So use an aggressive probe to check that the usage we want is
  3554. # actually supported "in the wild" to an acceptable degree.
  3555. # See automake bug#10828.
  3556. # To make any issue more visible, cause the running configure to be aborted
  3557. # by default if the 'rm' program in use doesn't match our expectations; the
  3558. # user can still override this though.
  3559. if rm -f && rm -fr && rm -rf; then : OK; else
  3560.   cat >&2 <<'END'
  3561. Oops!
  3562.  
  3563. Your 'rm' program seems unable to run without file operands specified
  3564. on the command line, even when the '-f' option is present.  This is contrary
  3565. to the behaviour of most rm programs out there, and not conforming with
  3566. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3567.  
  3568. Please tell bug-automake@gnu.org about your system, including the value
  3569. of your $PATH and any error possibly output before this message.  This
  3570. can help us improve future automake versions.
  3571.  
  3572. END
  3573.   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3574.     echo 'Configuration will proceed anyway, since you have set the' >&2
  3575.     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3576.     echo >&2
  3577.   else
  3578.     cat >&2 <<'END'
  3579. Aborting the configuration process, to ensure you take notice of the issue.
  3580.  
  3581. You can download and install GNU coreutils to get an 'rm' implementation
  3582. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3583.  
  3584. If you want to complete the configuration process using your problematic
  3585. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3586. to "yes", and re-run configure.
  3587.  
  3588. END
  3589.     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3590.   fi
  3591. fi
  3592.  
  3593. # Check whether --enable-silent-rules was given.
  3594. if test "${enable_silent_rules+set}" = set; then :
  3595.   enableval=$enable_silent_rules;
  3596. fi
  3597.  
  3598. case $enable_silent_rules in # (((
  3599.   yes) AM_DEFAULT_VERBOSITY=0;;
  3600.    no) AM_DEFAULT_VERBOSITY=1;;
  3601.     *) AM_DEFAULT_VERBOSITY=0;;
  3602. esac
  3603. am_make=${MAKE-make}
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3605. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3606. if ${am_cv_make_support_nested_variables+:} false; then :
  3607.   $as_echo_n "(cached) " >&6
  3608. else
  3609.   if $as_echo 'TRUE=$(BAR$(V))
  3610. BAR0=false
  3611. BAR1=true
  3612. V=1
  3613. am__doit:
  3614.     @$(TRUE)
  3615. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3616.   am_cv_make_support_nested_variables=yes
  3617. else
  3618.   am_cv_make_support_nested_variables=no
  3619. fi
  3620. fi
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3622. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3623. if test $am_cv_make_support_nested_variables = yes; then
  3624.     AM_V='$(V)'
  3625.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3626. else
  3627.   AM_V=$AM_DEFAULT_VERBOSITY
  3628.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3629. fi
  3630. AM_BACKSLASH='\'
  3631.  
  3632. DEPDIR="${am__leading_dot}deps"
  3633.  
  3634. ac_config_commands="$ac_config_commands depfiles"
  3635.  
  3636.  
  3637. am_make=${MAKE-make}
  3638. cat > confinc << 'END'
  3639. am__doit:
  3640.     @echo this is the am__doit target
  3641. .PHONY: am__doit
  3642. END
  3643. # If we don't find an include directive, just comment out the code.
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3645. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3646. am__include="#"
  3647. am__quote=
  3648. _am_result=none
  3649. # First try GNU make style include.
  3650. echo "include confinc" > confmf
  3651. # Ignore all kinds of additional output from 'make'.
  3652. case `$am_make -s -f confmf 2> /dev/null` in #(
  3653. *the\ am__doit\ target*)
  3654.   am__include=include
  3655.   am__quote=
  3656.   _am_result=GNU
  3657.   ;;
  3658. esac
  3659. # Now try BSD make style include.
  3660. if test "$am__include" = "#"; then
  3661.    echo '.include "confinc"' > confmf
  3662.    case `$am_make -s -f confmf 2> /dev/null` in #(
  3663.    *the\ am__doit\ target*)
  3664.      am__include=.include
  3665.      am__quote="\""
  3666.      _am_result=BSD
  3667.      ;;
  3668.    esac
  3669. fi
  3670.  
  3671.  
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3673. $as_echo "$_am_result" >&6; }
  3674. rm -f confinc confmf
  3675.  
  3676. # Check whether --enable-dependency-tracking was given.
  3677. if test "${enable_dependency_tracking+set}" = set; then :
  3678.   enableval=$enable_dependency_tracking;
  3679. fi
  3680.  
  3681. if test "x$enable_dependency_tracking" != xno; then
  3682.   am_depcomp="$ac_aux_dir/depcomp"
  3683.   AMDEPBACKSLASH='\'
  3684.   am__nodep='_no'
  3685. fi
  3686.  if test "x$enable_dependency_tracking" != xno; then
  3687.   AMDEP_TRUE=
  3688.   AMDEP_FALSE='#'
  3689. else
  3690.   AMDEP_TRUE='#'
  3691.   AMDEP_FALSE=
  3692. fi
  3693.  
  3694.  
  3695. ac_ext=c
  3696. ac_cpp='$CPP $CPPFLAGS'
  3697. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3698. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3699. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3700. if test -n "$ac_tool_prefix"; then
  3701.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3702. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3704. $as_echo_n "checking for $ac_word... " >&6; }
  3705. if ${ac_cv_prog_CC+:} false; then :
  3706.   $as_echo_n "(cached) " >&6
  3707. else
  3708.   if test -n "$CC"; then
  3709.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3710. else
  3711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3712. for as_dir in $PATH
  3713. do
  3714.   IFS=$as_save_IFS
  3715.   test -z "$as_dir" && as_dir=.
  3716.     for ac_exec_ext in '' $ac_executable_extensions; do
  3717.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3718.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3719.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3720.     break 2
  3721.   fi
  3722. done
  3723.   done
  3724. IFS=$as_save_IFS
  3725.  
  3726. fi
  3727. fi
  3728. CC=$ac_cv_prog_CC
  3729. if test -n "$CC"; then
  3730.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3731. $as_echo "$CC" >&6; }
  3732. else
  3733.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3734. $as_echo "no" >&6; }
  3735. fi
  3736.  
  3737.  
  3738. fi
  3739. if test -z "$ac_cv_prog_CC"; then
  3740.   ac_ct_CC=$CC
  3741.   # Extract the first word of "gcc", so it can be a program name with args.
  3742. set dummy gcc; ac_word=$2
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3744. $as_echo_n "checking for $ac_word... " >&6; }
  3745. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3746.   $as_echo_n "(cached) " >&6
  3747. else
  3748.   if test -n "$ac_ct_CC"; then
  3749.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3750. else
  3751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3752. for as_dir in $PATH
  3753. do
  3754.   IFS=$as_save_IFS
  3755.   test -z "$as_dir" && as_dir=.
  3756.     for ac_exec_ext in '' $ac_executable_extensions; do
  3757.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3758.     ac_cv_prog_ac_ct_CC="gcc"
  3759.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3760.     break 2
  3761.   fi
  3762. done
  3763.   done
  3764. IFS=$as_save_IFS
  3765.  
  3766. fi
  3767. fi
  3768. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3769. if test -n "$ac_ct_CC"; then
  3770.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3771. $as_echo "$ac_ct_CC" >&6; }
  3772. else
  3773.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3774. $as_echo "no" >&6; }
  3775. fi
  3776.  
  3777.   if test "x$ac_ct_CC" = x; then
  3778.     CC=""
  3779.   else
  3780.     case $cross_compiling:$ac_tool_warned in
  3781. yes:)
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3783. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3784. ac_tool_warned=yes ;;
  3785. esac
  3786.     CC=$ac_ct_CC
  3787.   fi
  3788. else
  3789.   CC="$ac_cv_prog_CC"
  3790. fi
  3791.  
  3792. if test -z "$CC"; then
  3793.           if test -n "$ac_tool_prefix"; then
  3794.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3795. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3797. $as_echo_n "checking for $ac_word... " >&6; }
  3798. if ${ac_cv_prog_CC+:} false; then :
  3799.   $as_echo_n "(cached) " >&6
  3800. else
  3801.   if test -n "$CC"; then
  3802.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3803. else
  3804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3805. for as_dir in $PATH
  3806. do
  3807.   IFS=$as_save_IFS
  3808.   test -z "$as_dir" && as_dir=.
  3809.     for ac_exec_ext in '' $ac_executable_extensions; do
  3810.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3811.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3812.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3813.     break 2
  3814.   fi
  3815. done
  3816.   done
  3817. IFS=$as_save_IFS
  3818.  
  3819. fi
  3820. fi
  3821. CC=$ac_cv_prog_CC
  3822. if test -n "$CC"; then
  3823.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3824. $as_echo "$CC" >&6; }
  3825. else
  3826.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3827. $as_echo "no" >&6; }
  3828. fi
  3829.  
  3830.  
  3831.   fi
  3832. fi
  3833. if test -z "$CC"; then
  3834.   # Extract the first word of "cc", so it can be a program name with args.
  3835. set dummy cc; ac_word=$2
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3837. $as_echo_n "checking for $ac_word... " >&6; }
  3838. if ${ac_cv_prog_CC+:} false; then :
  3839.   $as_echo_n "(cached) " >&6
  3840. else
  3841.   if test -n "$CC"; then
  3842.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3843. else
  3844.   ac_prog_rejected=no
  3845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3846. for as_dir in $PATH
  3847. do
  3848.   IFS=$as_save_IFS
  3849.   test -z "$as_dir" && as_dir=.
  3850.     for ac_exec_ext in '' $ac_executable_extensions; do
  3851.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3852.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3853.        ac_prog_rejected=yes
  3854.        continue
  3855.      fi
  3856.     ac_cv_prog_CC="cc"
  3857.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3858.     break 2
  3859.   fi
  3860. done
  3861.   done
  3862. IFS=$as_save_IFS
  3863.  
  3864. if test $ac_prog_rejected = yes; then
  3865.   # We found a bogon in the path, so make sure we never use it.
  3866.   set dummy $ac_cv_prog_CC
  3867.   shift
  3868.   if test $# != 0; then
  3869.     # We chose a different compiler from the bogus one.
  3870.     # However, it has the same basename, so the bogon will be chosen
  3871.     # first if we set CC to just the basename; use the full file name.
  3872.     shift
  3873.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3874.   fi
  3875. fi
  3876. fi
  3877. fi
  3878. CC=$ac_cv_prog_CC
  3879. if test -n "$CC"; then
  3880.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3881. $as_echo "$CC" >&6; }
  3882. else
  3883.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3884. $as_echo "no" >&6; }
  3885. fi
  3886.  
  3887.  
  3888. fi
  3889. if test -z "$CC"; then
  3890.   if test -n "$ac_tool_prefix"; then
  3891.   for ac_prog in cl.exe
  3892.   do
  3893.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3894. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3896. $as_echo_n "checking for $ac_word... " >&6; }
  3897. if ${ac_cv_prog_CC+:} false; then :
  3898.   $as_echo_n "(cached) " >&6
  3899. else
  3900.   if test -n "$CC"; then
  3901.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3902. else
  3903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3904. for as_dir in $PATH
  3905. do
  3906.   IFS=$as_save_IFS
  3907.   test -z "$as_dir" && as_dir=.
  3908.     for ac_exec_ext in '' $ac_executable_extensions; do
  3909.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3910.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3911.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3912.     break 2
  3913.   fi
  3914. done
  3915.   done
  3916. IFS=$as_save_IFS
  3917.  
  3918. fi
  3919. fi
  3920. CC=$ac_cv_prog_CC
  3921. if test -n "$CC"; then
  3922.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3923. $as_echo "$CC" >&6; }
  3924. else
  3925.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3926. $as_echo "no" >&6; }
  3927. fi
  3928.  
  3929.  
  3930.     test -n "$CC" && break
  3931.   done
  3932. fi
  3933. if test -z "$CC"; then
  3934.   ac_ct_CC=$CC
  3935.   for ac_prog in cl.exe
  3936. do
  3937.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3938. set dummy $ac_prog; ac_word=$2
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3940. $as_echo_n "checking for $ac_word... " >&6; }
  3941. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3942.   $as_echo_n "(cached) " >&6
  3943. else
  3944.   if test -n "$ac_ct_CC"; then
  3945.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3946. else
  3947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3948. for as_dir in $PATH
  3949. do
  3950.   IFS=$as_save_IFS
  3951.   test -z "$as_dir" && as_dir=.
  3952.     for ac_exec_ext in '' $ac_executable_extensions; do
  3953.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3954.     ac_cv_prog_ac_ct_CC="$ac_prog"
  3955.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3956.     break 2
  3957.   fi
  3958. done
  3959.   done
  3960. IFS=$as_save_IFS
  3961.  
  3962. fi
  3963. fi
  3964. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3965. if test -n "$ac_ct_CC"; then
  3966.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3967. $as_echo "$ac_ct_CC" >&6; }
  3968. else
  3969.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3970. $as_echo "no" >&6; }
  3971. fi
  3972.  
  3973.  
  3974.   test -n "$ac_ct_CC" && break
  3975. done
  3976.  
  3977.   if test "x$ac_ct_CC" = x; then
  3978.     CC=""
  3979.   else
  3980.     case $cross_compiling:$ac_tool_warned in
  3981. yes:)
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3983. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3984. ac_tool_warned=yes ;;
  3985. esac
  3986.     CC=$ac_ct_CC
  3987.   fi
  3988. fi
  3989.  
  3990. fi
  3991.  
  3992.  
  3993. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3994. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3995. as_fn_error $? "no acceptable C compiler found in \$PATH
  3996. See \`config.log' for more details" "$LINENO" 5; }
  3997.  
  3998. # Provide some information about the compiler.
  3999. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4000. set X $ac_compile
  4001. ac_compiler=$2
  4002. for ac_option in --version -v -V -qversion; do
  4003.   { { ac_try="$ac_compiler $ac_option >&5"
  4004. case "(($ac_try" in
  4005.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4006.   *) ac_try_echo=$ac_try;;
  4007. esac
  4008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4009. $as_echo "$ac_try_echo"; } >&5
  4010.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4011.   ac_status=$?
  4012.   if test -s conftest.err; then
  4013.     sed '10a\
  4014. ... rest of stderr output deleted ...
  4015.          10q' conftest.err >conftest.er1
  4016.     cat conftest.er1 >&5
  4017.   fi
  4018.   rm -f conftest.er1 conftest.err
  4019.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4020.   test $ac_status = 0; }
  4021. done
  4022.  
  4023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4024. /* end confdefs.h.  */
  4025.  
  4026. int
  4027. main ()
  4028. {
  4029.  
  4030.   ;
  4031.   return 0;
  4032. }
  4033. _ACEOF
  4034. ac_clean_files_save=$ac_clean_files
  4035. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4036. # Try to create an executable without -o first, disregard a.out.
  4037. # It will help us diagnose broken compilers, and finding out an intuition
  4038. # of exeext.
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4040. $as_echo_n "checking whether the C compiler works... " >&6; }
  4041. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4042.  
  4043. # The possible output files:
  4044. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4045.  
  4046. ac_rmfiles=
  4047. for ac_file in $ac_files
  4048. do
  4049.   case $ac_file in
  4050.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4051.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4052.   esac
  4053. done
  4054. rm -f $ac_rmfiles
  4055.  
  4056. if { { ac_try="$ac_link_default"
  4057. case "(($ac_try" in
  4058.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4059.   *) ac_try_echo=$ac_try;;
  4060. esac
  4061. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4062. $as_echo "$ac_try_echo"; } >&5
  4063.   (eval "$ac_link_default") 2>&5
  4064.   ac_status=$?
  4065.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4066.   test $ac_status = 0; }; then :
  4067.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4068. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4069. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  4070. # so that the user can short-circuit this test for compilers unknown to
  4071. # Autoconf.
  4072. for ac_file in $ac_files ''
  4073. do
  4074.   test -f "$ac_file" || continue
  4075.   case $ac_file in
  4076.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4077.     ;;
  4078.     [ab].out )
  4079.     # We found the default executable, but exeext='' is most
  4080.     # certainly right.
  4081.     break;;
  4082.     *.* )
  4083.     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4084.     then :; else
  4085.        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4086.     fi
  4087.     # We set ac_cv_exeext here because the later test for it is not
  4088.     # safe: cross compilers may not add the suffix if given an `-o'
  4089.     # argument, so we may need to know it at that point already.
  4090.     # Even if this section looks crufty: it has the advantage of
  4091.     # actually working.
  4092.     break;;
  4093.     * )
  4094.     break;;
  4095.   esac
  4096. done
  4097. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4098.  
  4099. else
  4100.   ac_file=''
  4101. fi
  4102. if test -z "$ac_file"; then :
  4103.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4104. $as_echo "no" >&6; }
  4105. $as_echo "$as_me: failed program was:" >&5
  4106. sed 's/^/| /' conftest.$ac_ext >&5
  4107.  
  4108. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4110. as_fn_error 77 "C compiler cannot create executables
  4111. See \`config.log' for more details" "$LINENO" 5; }
  4112. else
  4113.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4114. $as_echo "yes" >&6; }
  4115. fi
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4117. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4119. $as_echo "$ac_file" >&6; }
  4120. ac_exeext=$ac_cv_exeext
  4121.  
  4122. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4123. ac_clean_files=$ac_clean_files_save
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4125. $as_echo_n "checking for suffix of executables... " >&6; }
  4126. if { { ac_try="$ac_link"
  4127. case "(($ac_try" in
  4128.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4129.   *) ac_try_echo=$ac_try;;
  4130. esac
  4131. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4132. $as_echo "$ac_try_echo"; } >&5
  4133.   (eval "$ac_link") 2>&5
  4134.   ac_status=$?
  4135.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4136.   test $ac_status = 0; }; then :
  4137.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4138. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  4139. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4140. # `rm'.
  4141. for ac_file in conftest.exe conftest conftest.*; do
  4142.   test -f "$ac_file" || continue
  4143.   case $ac_file in
  4144.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4145.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4146.       break;;
  4147.     * ) break;;
  4148.   esac
  4149. done
  4150. else
  4151.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4152. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4153. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4154. See \`config.log' for more details" "$LINENO" 5; }
  4155. fi
  4156. rm -f conftest conftest$ac_cv_exeext
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4158. $as_echo "$ac_cv_exeext" >&6; }
  4159.  
  4160. rm -f conftest.$ac_ext
  4161. EXEEXT=$ac_cv_exeext
  4162. ac_exeext=$EXEEXT
  4163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4164. /* end confdefs.h.  */
  4165. #include <stdio.h>
  4166. int
  4167. main ()
  4168. {
  4169. FILE *f = fopen ("conftest.out", "w");
  4170.  return ferror (f) || fclose (f) != 0;
  4171.  
  4172.   ;
  4173.   return 0;
  4174. }
  4175. _ACEOF
  4176. ac_clean_files="$ac_clean_files conftest.out"
  4177. # Check that the compiler produces executables we can run.  If not, either
  4178. # the compiler is broken, or we cross compile.
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4180. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4181. if test "$cross_compiling" != yes; then
  4182.   { { ac_try="$ac_link"
  4183. case "(($ac_try" in
  4184.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4185.   *) ac_try_echo=$ac_try;;
  4186. esac
  4187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4188. $as_echo "$ac_try_echo"; } >&5
  4189.   (eval "$ac_link") 2>&5
  4190.   ac_status=$?
  4191.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4192.   test $ac_status = 0; }
  4193.   if { ac_try='./conftest$ac_cv_exeext'
  4194.   { { case "(($ac_try" in
  4195.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4196.   *) ac_try_echo=$ac_try;;
  4197. esac
  4198. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4199. $as_echo "$ac_try_echo"; } >&5
  4200.   (eval "$ac_try") 2>&5
  4201.   ac_status=$?
  4202.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4203.   test $ac_status = 0; }; }; then
  4204.     cross_compiling=no
  4205.   else
  4206.     if test "$cross_compiling" = maybe; then
  4207.     cross_compiling=yes
  4208.     else
  4209.     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4210. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4211. as_fn_error $? "cannot run C compiled programs.
  4212. If you meant to cross compile, use \`--host'.
  4213. See \`config.log' for more details" "$LINENO" 5; }
  4214.     fi
  4215.   fi
  4216. fi
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4218. $as_echo "$cross_compiling" >&6; }
  4219.  
  4220. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4221. ac_clean_files=$ac_clean_files_save
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4223. $as_echo_n "checking for suffix of object files... " >&6; }
  4224. if ${ac_cv_objext+:} false; then :
  4225.   $as_echo_n "(cached) " >&6
  4226. else
  4227.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4228. /* end confdefs.h.  */
  4229.  
  4230. int
  4231. main ()
  4232. {
  4233.  
  4234.   ;
  4235.   return 0;
  4236. }
  4237. _ACEOF
  4238. rm -f conftest.o conftest.obj
  4239. if { { ac_try="$ac_compile"
  4240. case "(($ac_try" in
  4241.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4242.   *) ac_try_echo=$ac_try;;
  4243. esac
  4244. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4245. $as_echo "$ac_try_echo"; } >&5
  4246.   (eval "$ac_compile") 2>&5
  4247.   ac_status=$?
  4248.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4249.   test $ac_status = 0; }; then :
  4250.   for ac_file in conftest.o conftest.obj conftest.*; do
  4251.   test -f "$ac_file" || continue;
  4252.   case $ac_file in
  4253.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4254.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4255.        break;;
  4256.   esac
  4257. done
  4258. else
  4259.   $as_echo "$as_me: failed program was:" >&5
  4260. sed 's/^/| /' conftest.$ac_ext >&5
  4261.  
  4262. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4263. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4264. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4265. See \`config.log' for more details" "$LINENO" 5; }
  4266. fi
  4267. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4270. $as_echo "$ac_cv_objext" >&6; }
  4271. OBJEXT=$ac_cv_objext
  4272. ac_objext=$OBJEXT
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4274. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4275. if ${ac_cv_c_compiler_gnu+:} false; then :
  4276.   $as_echo_n "(cached) " >&6
  4277. else
  4278.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4279. /* end confdefs.h.  */
  4280.  
  4281. int
  4282. main ()
  4283. {
  4284. #ifndef __GNUC__
  4285.        choke me
  4286. #endif
  4287.  
  4288.   ;
  4289.   return 0;
  4290. }
  4291. _ACEOF
  4292. if ac_fn_c_try_compile "$LINENO"; then :
  4293.   ac_compiler_gnu=yes
  4294. else
  4295.   ac_compiler_gnu=no
  4296. fi
  4297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4298. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4299.  
  4300. fi
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4302. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4303. if test $ac_compiler_gnu = yes; then
  4304.   GCC=yes
  4305. else
  4306.   GCC=
  4307. fi
  4308. ac_test_CFLAGS=${CFLAGS+set}
  4309. ac_save_CFLAGS=$CFLAGS
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4311. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4312. if ${ac_cv_prog_cc_g+:} false; then :
  4313.   $as_echo_n "(cached) " >&6
  4314. else
  4315.   ac_save_c_werror_flag=$ac_c_werror_flag
  4316.    ac_c_werror_flag=yes
  4317.    ac_cv_prog_cc_g=no
  4318.    CFLAGS="-g"
  4319.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4320. /* end confdefs.h.  */
  4321.  
  4322. int
  4323. main ()
  4324. {
  4325.  
  4326.   ;
  4327.   return 0;
  4328. }
  4329. _ACEOF
  4330. if ac_fn_c_try_compile "$LINENO"; then :
  4331.   ac_cv_prog_cc_g=yes
  4332. else
  4333.   CFLAGS=""
  4334.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4335. /* end confdefs.h.  */
  4336.  
  4337. int
  4338. main ()
  4339. {
  4340.  
  4341.   ;
  4342.   return 0;
  4343. }
  4344. _ACEOF
  4345. if ac_fn_c_try_compile "$LINENO"; then :
  4346.  
  4347. else
  4348.   ac_c_werror_flag=$ac_save_c_werror_flag
  4349.      CFLAGS="-g"
  4350.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4351. /* end confdefs.h.  */
  4352.  
  4353. int
  4354. main ()
  4355. {
  4356.  
  4357.   ;
  4358.   return 0;
  4359. }
  4360. _ACEOF
  4361. if ac_fn_c_try_compile "$LINENO"; then :
  4362.   ac_cv_prog_cc_g=yes
  4363. fi
  4364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4365. fi
  4366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4367. fi
  4368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4369.    ac_c_werror_flag=$ac_save_c_werror_flag
  4370. fi
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4372. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4373. if test "$ac_test_CFLAGS" = set; then
  4374.   CFLAGS=$ac_save_CFLAGS
  4375. elif test $ac_cv_prog_cc_g = yes; then
  4376.   if test "$GCC" = yes; then
  4377.     CFLAGS="-g -O2"
  4378.   else
  4379.     CFLAGS="-g"
  4380.   fi
  4381. else
  4382.   if test "$GCC" = yes; then
  4383.     CFLAGS="-O2"
  4384.   else
  4385.     CFLAGS=
  4386.   fi
  4387. fi
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4389. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4390. if ${ac_cv_prog_cc_c89+:} false; then :
  4391.   $as_echo_n "(cached) " >&6
  4392. else
  4393.   ac_cv_prog_cc_c89=no
  4394. ac_save_CC=$CC
  4395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4396. /* end confdefs.h.  */
  4397. #include <stdarg.h>
  4398. #include <stdio.h>
  4399. struct stat;
  4400. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4401. struct buf { int x; };
  4402. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4403. static char *e (p, i)
  4404.      char **p;
  4405.      int i;
  4406. {
  4407.   return p[i];
  4408. }
  4409. static char *f (char * (*g) (char **, int), char **p, ...)
  4410. {
  4411.   char *s;
  4412.   va_list v;
  4413.   va_start (v,p);
  4414.   s = g (p, va_arg (v,int));
  4415.   va_end (v);
  4416.   return s;
  4417. }
  4418.  
  4419. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4420.    function prototypes and stuff, but not '\xHH' hex character constants.
  4421.    These don't provoke an error unfortunately, instead are silently treated
  4422.    as 'x'.  The following induces an error, until -std is added to get
  4423.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4424.    array size at least.  It's necessary to write '\x00'==0 to get something
  4425.    that's true only with -std.  */
  4426. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4427.  
  4428. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4429.    inside strings and character constants.  */
  4430. #define FOO(x) 'x'
  4431. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4432.  
  4433. int test (int i, double x);
  4434. struct s1 {int (*f) (int a);};
  4435. struct s2 {int (*f) (double a);};
  4436. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4437. int argc;
  4438. char **argv;
  4439. int
  4440. main ()
  4441. {
  4442. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4443.   ;
  4444.   return 0;
  4445. }
  4446. _ACEOF
  4447. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4448.     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4449. do
  4450.   CC="$ac_save_CC $ac_arg"
  4451.   if ac_fn_c_try_compile "$LINENO"; then :
  4452.   ac_cv_prog_cc_c89=$ac_arg
  4453. fi
  4454. rm -f core conftest.err conftest.$ac_objext
  4455.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4456. done
  4457. rm -f conftest.$ac_ext
  4458. CC=$ac_save_CC
  4459.  
  4460. fi
  4461. # AC_CACHE_VAL
  4462. case "x$ac_cv_prog_cc_c89" in
  4463.   x)
  4464.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4465. $as_echo "none needed" >&6; } ;;
  4466.   xno)
  4467.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4468. $as_echo "unsupported" >&6; } ;;
  4469.   *)
  4470.     CC="$CC $ac_cv_prog_cc_c89"
  4471.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4472. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4473. esac
  4474. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4475.  
  4476. fi
  4477.  
  4478. ac_ext=c
  4479. ac_cpp='$CPP $CPPFLAGS'
  4480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4483.  
  4484. ac_ext=c
  4485. ac_cpp='$CPP $CPPFLAGS'
  4486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4490. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4491. if ${am_cv_prog_cc_c_o+:} false; then :
  4492.   $as_echo_n "(cached) " >&6
  4493. else
  4494.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4495. /* end confdefs.h.  */
  4496.  
  4497. int
  4498. main ()
  4499. {
  4500.  
  4501.   ;
  4502.   return 0;
  4503. }
  4504. _ACEOF
  4505.   # Make sure it works both with $CC and with simple cc.
  4506.   # Following AC_PROG_CC_C_O, we do the test twice because some
  4507.   # compilers refuse to overwrite an existing .o file with -o,
  4508.   # though they will create one.
  4509.   am_cv_prog_cc_c_o=yes
  4510.   for am_i in 1 2; do
  4511.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4512.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4513.    ac_status=$?
  4514.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4515.    (exit $ac_status); } \
  4516.          && test -f conftest2.$ac_objext; then
  4517.       : OK
  4518.     else
  4519.       am_cv_prog_cc_c_o=no
  4520.       break
  4521.     fi
  4522.   done
  4523.   rm -f core conftest*
  4524.   unset am_i
  4525. fi
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4527. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4528. if test "$am_cv_prog_cc_c_o" != yes; then
  4529.    # Losing compiler, so override with the script.
  4530.    # FIXME: It is wrong to rewrite CC.
  4531.    # But if we don't then we get into trouble of one sort or another.
  4532.    # A longer-term fix would be to have automake use am__CC in this case,
  4533.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4534.    CC="$am_aux_dir/compile $CC"
  4535. fi
  4536. ac_ext=c
  4537. ac_cpp='$CPP $CPPFLAGS'
  4538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4539. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4541.  
  4542.  
  4543. depcc="$CC"   am_compiler_list=
  4544.  
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4546. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4547. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4548.   $as_echo_n "(cached) " >&6
  4549. else
  4550.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4551.   # We make a subdir and do the tests there.  Otherwise we can end up
  4552.   # making bogus files that we don't know about and never remove.  For
  4553.   # instance it was reported that on HP-UX the gcc test will end up
  4554.   # making a dummy file named 'D' -- because '-MD' means "put the output
  4555.   # in D".
  4556.   rm -rf conftest.dir
  4557.   mkdir conftest.dir
  4558.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4559.   # using a relative directory.
  4560.   cp "$am_depcomp" conftest.dir
  4561.   cd conftest.dir
  4562.   # We will build objects and dependencies in a subdirectory because
  4563.   # it helps to detect inapplicable dependency modes.  For instance
  4564.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4565.   # side effect of compilation, but ICC will put the dependencies in
  4566.   # the current directory while Tru64 will put them in the object
  4567.   # directory.
  4568.   mkdir sub
  4569.  
  4570.   am_cv_CC_dependencies_compiler_type=none
  4571.   if test "$am_compiler_list" = ""; then
  4572.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4573.   fi
  4574.   am__universal=false
  4575.   case " $depcc " in #(
  4576.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4577.      esac
  4578.  
  4579.   for depmode in $am_compiler_list; do
  4580.     # Setup a source with many dependencies, because some compilers
  4581.     # like to wrap large dependency lists on column 80 (with \), and
  4582.     # we should not choose a depcomp mode which is confused by this.
  4583.     #
  4584.     # We need to recreate these files for each test, as the compiler may
  4585.     # overwrite some of them when testing with obscure command lines.
  4586.     # This happens at least with the AIX C compiler.
  4587.     : > sub/conftest.c
  4588.     for i in 1 2 3 4 5 6; do
  4589.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4590.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4591.       # Solaris 10 /bin/sh.
  4592.       echo '/* dummy */' > sub/conftst$i.h
  4593.     done
  4594.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4595.  
  4596.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4597.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4598.     # handle '-M -o', and we need to detect this.  Also, some Intel
  4599.     # versions had trouble with output in subdirs.
  4600.     am__obj=sub/conftest.${OBJEXT-o}
  4601.     am__minus_obj="-o $am__obj"
  4602.     case $depmode in
  4603.     gcc)
  4604.       # This depmode causes a compiler race in universal mode.
  4605.       test "$am__universal" = false || continue
  4606.       ;;
  4607.     nosideeffect)
  4608.       # After this tag, mechanisms are not by side-effect, so they'll
  4609.       # only be used when explicitly requested.
  4610.       if test "x$enable_dependency_tracking" = xyes; then
  4611.     continue
  4612.       else
  4613.     break
  4614.       fi
  4615.       ;;
  4616.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4617.       # This compiler won't grok '-c -o', but also, the minuso test has
  4618.       # not run yet.  These depmodes are late enough in the game, and
  4619.       # so weak that their functioning should not be impacted.
  4620.       am__obj=conftest.${OBJEXT-o}
  4621.       am__minus_obj=
  4622.       ;;
  4623.     none) break ;;
  4624.     esac
  4625.     if depmode=$depmode \
  4626.        source=sub/conftest.c object=$am__obj \
  4627.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4628.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4629.          >/dev/null 2>conftest.err &&
  4630.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4631.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4632.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4633.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4634.       # icc doesn't choke on unknown options, it will just issue warnings
  4635.       # or remarks (even with -Werror).  So we grep stderr for any message
  4636.       # that says an option was ignored or not supported.
  4637.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4638.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4639.       # The diagnosis changed in icc 8.0:
  4640.       #   icc: Command line remark: option '-MP' not supported
  4641.       if (grep 'ignoring option' conftest.err ||
  4642.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4643.         am_cv_CC_dependencies_compiler_type=$depmode
  4644.         break
  4645.       fi
  4646.     fi
  4647.   done
  4648.  
  4649.   cd ..
  4650.   rm -rf conftest.dir
  4651. else
  4652.   am_cv_CC_dependencies_compiler_type=none
  4653. fi
  4654.  
  4655. fi
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4657. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4658. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4659.  
  4660.  if
  4661.   test "x$enable_dependency_tracking" != xno \
  4662.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4663.   am__fastdepCC_TRUE=
  4664.   am__fastdepCC_FALSE='#'
  4665. else
  4666.   am__fastdepCC_TRUE='#'
  4667.   am__fastdepCC_FALSE=
  4668. fi
  4669.  
  4670.  
  4671.  
  4672. ac_ext=c
  4673. ac_cpp='$CPP $CPPFLAGS'
  4674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4678. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4679. # On Suns, sometimes $CPP names a directory.
  4680. if test -n "$CPP" && test -d "$CPP"; then
  4681.   CPP=
  4682. fi
  4683. if test -z "$CPP"; then
  4684.   if ${ac_cv_prog_CPP+:} false; then :
  4685.   $as_echo_n "(cached) " >&6
  4686. else
  4687.       # Double quotes because CPP needs to be expanded
  4688.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4689.     do
  4690.       ac_preproc_ok=false
  4691. for ac_c_preproc_warn_flag in '' yes
  4692. do
  4693.   # Use a header file that comes with gcc, so configuring glibc
  4694.   # with a fresh cross-compiler works.
  4695.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4696.   # <limits.h> exists even on freestanding compilers.
  4697.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4698.   # not just through cpp. "Syntax error" is here to catch this case.
  4699.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4700. /* end confdefs.h.  */
  4701. #ifdef __STDC__
  4702. # include <limits.h>
  4703. #else
  4704. # include <assert.h>
  4705. #endif
  4706.              Syntax error
  4707. _ACEOF
  4708. if ac_fn_c_try_cpp "$LINENO"; then :
  4709.  
  4710. else
  4711.   # Broken: fails on valid input.
  4712. continue
  4713. fi
  4714. rm -f conftest.err conftest.i conftest.$ac_ext
  4715.  
  4716.   # OK, works on sane cases.  Now check whether nonexistent headers
  4717.   # can be detected and how.
  4718.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4719. /* end confdefs.h.  */
  4720. #include <ac_nonexistent.h>
  4721. _ACEOF
  4722. if ac_fn_c_try_cpp "$LINENO"; then :
  4723.   # Broken: success on invalid input.
  4724. continue
  4725. else
  4726.   # Passes both tests.
  4727. ac_preproc_ok=:
  4728. break
  4729. fi
  4730. rm -f conftest.err conftest.i conftest.$ac_ext
  4731.  
  4732. done
  4733. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4734. rm -f conftest.i conftest.err conftest.$ac_ext
  4735. if $ac_preproc_ok; then :
  4736.   break
  4737. fi
  4738.  
  4739.     done
  4740.     ac_cv_prog_CPP=$CPP
  4741.  
  4742. fi
  4743.   CPP=$ac_cv_prog_CPP
  4744. else
  4745.   ac_cv_prog_CPP=$CPP
  4746. fi
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4748. $as_echo "$CPP" >&6; }
  4749. ac_preproc_ok=false
  4750. for ac_c_preproc_warn_flag in '' yes
  4751. do
  4752.   # Use a header file that comes with gcc, so configuring glibc
  4753.   # with a fresh cross-compiler works.
  4754.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4755.   # <limits.h> exists even on freestanding compilers.
  4756.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4757.   # not just through cpp. "Syntax error" is here to catch this case.
  4758.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4759. /* end confdefs.h.  */
  4760. #ifdef __STDC__
  4761. # include <limits.h>
  4762. #else
  4763. # include <assert.h>
  4764. #endif
  4765.              Syntax error
  4766. _ACEOF
  4767. if ac_fn_c_try_cpp "$LINENO"; then :
  4768.  
  4769. else
  4770.   # Broken: fails on valid input.
  4771. continue
  4772. fi
  4773. rm -f conftest.err conftest.i conftest.$ac_ext
  4774.  
  4775.   # OK, works on sane cases.  Now check whether nonexistent headers
  4776.   # can be detected and how.
  4777.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4778. /* end confdefs.h.  */
  4779. #include <ac_nonexistent.h>
  4780. _ACEOF
  4781. if ac_fn_c_try_cpp "$LINENO"; then :
  4782.   # Broken: success on invalid input.
  4783. continue
  4784. else
  4785.   # Passes both tests.
  4786. ac_preproc_ok=:
  4787. break
  4788. fi
  4789. rm -f conftest.err conftest.i conftest.$ac_ext
  4790.  
  4791. done
  4792. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4793. rm -f conftest.i conftest.err conftest.$ac_ext
  4794. if $ac_preproc_ok; then :
  4795.  
  4796. else
  4797.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4798. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4799. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4800. See \`config.log' for more details" "$LINENO" 5; }
  4801. fi
  4802.  
  4803. ac_ext=c
  4804. ac_cpp='$CPP $CPPFLAGS'
  4805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4808.  
  4809.  
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4811. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4812. if ${ac_cv_path_GREP+:} false; then :
  4813.   $as_echo_n "(cached) " >&6
  4814. else
  4815.   if test -z "$GREP"; then
  4816.   ac_path_GREP_found=false
  4817.   # Loop through the user's path and test for each of PROGNAME-LIST
  4818.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4819. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4820. do
  4821.   IFS=$as_save_IFS
  4822.   test -z "$as_dir" && as_dir=.
  4823.     for ac_prog in grep ggrep; do
  4824.     for ac_exec_ext in '' $ac_executable_extensions; do
  4825.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4826.       as_fn_executable_p "$ac_path_GREP" || continue
  4827. # Check for GNU ac_path_GREP and select it if it is found.
  4828.   # Check for GNU $ac_path_GREP
  4829. case `"$ac_path_GREP" --version 2>&1` in
  4830. *GNU*)
  4831.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4832. *)
  4833.   ac_count=0
  4834.   $as_echo_n 0123456789 >"conftest.in"
  4835.   while :
  4836.   do
  4837.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4838.     mv "conftest.tmp" "conftest.in"
  4839.     cp "conftest.in" "conftest.nl"
  4840.     $as_echo 'GREP' >> "conftest.nl"
  4841.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4842.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4843.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4844.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4845.       # Best one so far, save it but keep looking for a better one
  4846.       ac_cv_path_GREP="$ac_path_GREP"
  4847.       ac_path_GREP_max=$ac_count
  4848.     fi
  4849.     # 10*(2^10) chars as input seems more than enough
  4850.     test $ac_count -gt 10 && break
  4851.   done
  4852.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4853. esac
  4854.  
  4855.       $ac_path_GREP_found && break 3
  4856.     done
  4857.   done
  4858.   done
  4859. IFS=$as_save_IFS
  4860.   if test -z "$ac_cv_path_GREP"; then
  4861.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4862.   fi
  4863. else
  4864.   ac_cv_path_GREP=$GREP
  4865. fi
  4866.  
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4869. $as_echo "$ac_cv_path_GREP" >&6; }
  4870.  GREP="$ac_cv_path_GREP"
  4871.  
  4872.  
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4874. $as_echo_n "checking for egrep... " >&6; }
  4875. if ${ac_cv_path_EGREP+:} false; then :
  4876.   $as_echo_n "(cached) " >&6
  4877. else
  4878.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4879.    then ac_cv_path_EGREP="$GREP -E"
  4880.    else
  4881.      if test -z "$EGREP"; then
  4882.   ac_path_EGREP_found=false
  4883.   # Loop through the user's path and test for each of PROGNAME-LIST
  4884.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4885. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4886. do
  4887.   IFS=$as_save_IFS
  4888.   test -z "$as_dir" && as_dir=.
  4889.     for ac_prog in egrep; do
  4890.     for ac_exec_ext in '' $ac_executable_extensions; do
  4891.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4892.       as_fn_executable_p "$ac_path_EGREP" || continue
  4893. # Check for GNU ac_path_EGREP and select it if it is found.
  4894.   # Check for GNU $ac_path_EGREP
  4895. case `"$ac_path_EGREP" --version 2>&1` in
  4896. *GNU*)
  4897.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4898. *)
  4899.   ac_count=0
  4900.   $as_echo_n 0123456789 >"conftest.in"
  4901.   while :
  4902.   do
  4903.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4904.     mv "conftest.tmp" "conftest.in"
  4905.     cp "conftest.in" "conftest.nl"
  4906.     $as_echo 'EGREP' >> "conftest.nl"
  4907.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4908.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4909.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4910.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4911.       # Best one so far, save it but keep looking for a better one
  4912.       ac_cv_path_EGREP="$ac_path_EGREP"
  4913.       ac_path_EGREP_max=$ac_count
  4914.     fi
  4915.     # 10*(2^10) chars as input seems more than enough
  4916.     test $ac_count -gt 10 && break
  4917.   done
  4918.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4919. esac
  4920.  
  4921.       $ac_path_EGREP_found && break 3
  4922.     done
  4923.   done
  4924.   done
  4925. IFS=$as_save_IFS
  4926.   if test -z "$ac_cv_path_EGREP"; then
  4927.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4928.   fi
  4929. else
  4930.   ac_cv_path_EGREP=$EGREP
  4931. fi
  4932.  
  4933.    fi
  4934. fi
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4936. $as_echo "$ac_cv_path_EGREP" >&6; }
  4937.  EGREP="$ac_cv_path_EGREP"
  4938.  
  4939.  
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4941. $as_echo_n "checking for ANSI C header files... " >&6; }
  4942. if ${ac_cv_header_stdc+:} false; then :
  4943.   $as_echo_n "(cached) " >&6
  4944. else
  4945.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4946. /* end confdefs.h.  */
  4947. #include <stdlib.h>
  4948. #include <stdarg.h>
  4949. #include <string.h>
  4950. #include <float.h>
  4951.  
  4952. int
  4953. main ()
  4954. {
  4955.  
  4956.   ;
  4957.   return 0;
  4958. }
  4959. _ACEOF
  4960. if ac_fn_c_try_compile "$LINENO"; then :
  4961.   ac_cv_header_stdc=yes
  4962. else
  4963.   ac_cv_header_stdc=no
  4964. fi
  4965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4966.  
  4967. if test $ac_cv_header_stdc = yes; then
  4968.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4969.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4970. /* end confdefs.h.  */
  4971. #include <string.h>
  4972.  
  4973. _ACEOF
  4974. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4975.   $EGREP "memchr" >/dev/null 2>&1; then :
  4976.  
  4977. else
  4978.   ac_cv_header_stdc=no
  4979. fi
  4980. rm -f conftest*
  4981.  
  4982. fi
  4983.  
  4984. if test $ac_cv_header_stdc = yes; then
  4985.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4986.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4987. /* end confdefs.h.  */
  4988. #include <stdlib.h>
  4989.  
  4990. _ACEOF
  4991. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4992.   $EGREP "free" >/dev/null 2>&1; then :
  4993.  
  4994. else
  4995.   ac_cv_header_stdc=no
  4996. fi
  4997. rm -f conftest*
  4998.  
  4999. fi
  5000.  
  5001. if test $ac_cv_header_stdc = yes; then
  5002.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5003.   if test "$cross_compiling" = yes; then :
  5004.   :
  5005. else
  5006.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5007. /* end confdefs.h.  */
  5008. #include <ctype.h>
  5009. #include <stdlib.h>
  5010. #if ((' ' & 0x0FF) == 0x020)
  5011. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5012. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5013. #else
  5014. # define ISLOWER(c) \
  5015.            (('a' <= (c) && (c) <= 'i') \
  5016.              || ('j' <= (c) && (c) <= 'r') \
  5017.              || ('s' <= (c) && (c) <= 'z'))
  5018. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5019. #endif
  5020.  
  5021. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5022. int
  5023. main ()
  5024. {
  5025.   int i;
  5026.   for (i = 0; i < 256; i++)
  5027.     if (XOR (islower (i), ISLOWER (i))
  5028.     || toupper (i) != TOUPPER (i))
  5029.       return 2;
  5030.   return 0;
  5031. }
  5032. _ACEOF
  5033. if ac_fn_c_try_run "$LINENO"; then :
  5034.  
  5035. else
  5036.   ac_cv_header_stdc=no
  5037. fi
  5038. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5039.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  5040. fi
  5041.  
  5042. fi
  5043. fi
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5045. $as_echo "$ac_cv_header_stdc" >&6; }
  5046. if test $ac_cv_header_stdc = yes; then
  5047.  
  5048. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5049.  
  5050. fi
  5051.  
  5052. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5053. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5054.           inttypes.h stdint.h unistd.h
  5055. do :
  5056.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5057. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5058. "
  5059. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5060.   cat >>confdefs.h <<_ACEOF
  5061. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5062. _ACEOF
  5063.  
  5064. fi
  5065.  
  5066. done
  5067.  
  5068.  
  5069.  
  5070.  
  5071.  
  5072.   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5073. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  5074.   MINIX=yes
  5075. else
  5076.   MINIX=
  5077. fi
  5078.  
  5079.  
  5080.   if test "$MINIX" = yes; then
  5081.  
  5082. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5083.  
  5084.  
  5085. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5086.  
  5087.  
  5088. $as_echo "#define _MINIX 1" >>confdefs.h
  5089.  
  5090.   fi
  5091.  
  5092.         case "$host_os" in
  5093.     hpux*)
  5094.  
  5095. $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
  5096.  
  5097.       ;;
  5098.   esac
  5099.  
  5100.  
  5101.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5102. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5103. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  5104.   $as_echo_n "(cached) " >&6
  5105. else
  5106.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5107. /* end confdefs.h.  */
  5108.  
  5109. #         define __EXTENSIONS__ 1
  5110.           $ac_includes_default
  5111. int
  5112. main ()
  5113. {
  5114.  
  5115.   ;
  5116.   return 0;
  5117. }
  5118. _ACEOF
  5119. if ac_fn_c_try_compile "$LINENO"; then :
  5120.   ac_cv_safe_to_define___extensions__=yes
  5121. else
  5122.   ac_cv_safe_to_define___extensions__=no
  5123. fi
  5124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5125. fi
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5127. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5128.   test $ac_cv_safe_to_define___extensions__ = yes &&
  5129.     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5130.  
  5131.   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5132.  
  5133.   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5134.  
  5135.   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5136.  
  5137.   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5138.  
  5139.  
  5140.  
  5141. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  5142. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  5143.  
  5144.  
  5145.  
  5146. cat >>confdefs.h <<_ACEOF
  5147. #define CGMINER_MAJOR_VERSION 4
  5148. _ACEOF
  5149.  
  5150.  
  5151. cat >>confdefs.h <<_ACEOF
  5152. #define CGMINER_MINOR_VERSION 10
  5153. _ACEOF
  5154.  
  5155.  
  5156. cat >>confdefs.h <<_ACEOF
  5157. #define CGMINER_MINOR_SUBVERSION 0
  5158. _ACEOF
  5159.  
  5160. version_info="14:0:10"
  5161. release_info=""
  5162.  
  5163.  
  5164. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  5165. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  5166. VMAJ=4
  5167.  
  5168.  
  5169.  
  5170.  
  5171.  
  5172.  
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  5174. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  5175.     # Check whether --enable-maintainer-mode was given.
  5176. if test "${enable_maintainer_mode+set}" = set; then :
  5177.   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  5178. else
  5179.   USE_MAINTAINER_MODE=no
  5180. fi
  5181.  
  5182.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  5183. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  5184.    if test $USE_MAINTAINER_MODE = yes; then
  5185.   MAINTAINER_MODE_TRUE=
  5186.   MAINTAINER_MODE_FALSE='#'
  5187. else
  5188.   MAINTAINER_MODE_TRUE='#'
  5189.   MAINTAINER_MODE_FALSE=
  5190. fi
  5191.  
  5192.   MAINT=$MAINTAINER_MODE_TRUE
  5193.  
  5194.  
  5195.  
  5196. ac_ext=c
  5197. ac_cpp='$CPP $CPPFLAGS'
  5198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5201. if test -n "$ac_tool_prefix"; then
  5202.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5203. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5205. $as_echo_n "checking for $ac_word... " >&6; }
  5206. if ${ac_cv_prog_CC+:} false; then :
  5207.   $as_echo_n "(cached) " >&6
  5208. else
  5209.   if test -n "$CC"; then
  5210.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5211. else
  5212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5213. for as_dir in $PATH
  5214. do
  5215.   IFS=$as_save_IFS
  5216.   test -z "$as_dir" && as_dir=.
  5217.     for ac_exec_ext in '' $ac_executable_extensions; do
  5218.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5219.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5220.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5221.     break 2
  5222.   fi
  5223. done
  5224.   done
  5225. IFS=$as_save_IFS
  5226.  
  5227. fi
  5228. fi
  5229. CC=$ac_cv_prog_CC
  5230. if test -n "$CC"; then
  5231.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5232. $as_echo "$CC" >&6; }
  5233. else
  5234.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5235. $as_echo "no" >&6; }
  5236. fi
  5237.  
  5238.  
  5239. fi
  5240. if test -z "$ac_cv_prog_CC"; then
  5241.   ac_ct_CC=$CC
  5242.   # Extract the first word of "gcc", so it can be a program name with args.
  5243. set dummy gcc; ac_word=$2
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5245. $as_echo_n "checking for $ac_word... " >&6; }
  5246. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5247.   $as_echo_n "(cached) " >&6
  5248. else
  5249.   if test -n "$ac_ct_CC"; then
  5250.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5251. else
  5252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5253. for as_dir in $PATH
  5254. do
  5255.   IFS=$as_save_IFS
  5256.   test -z "$as_dir" && as_dir=.
  5257.     for ac_exec_ext in '' $ac_executable_extensions; do
  5258.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5259.     ac_cv_prog_ac_ct_CC="gcc"
  5260.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5261.     break 2
  5262.   fi
  5263. done
  5264.   done
  5265. IFS=$as_save_IFS
  5266.  
  5267. fi
  5268. fi
  5269. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5270. if test -n "$ac_ct_CC"; then
  5271.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5272. $as_echo "$ac_ct_CC" >&6; }
  5273. else
  5274.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5275. $as_echo "no" >&6; }
  5276. fi
  5277.  
  5278.   if test "x$ac_ct_CC" = x; then
  5279.     CC=""
  5280.   else
  5281.     case $cross_compiling:$ac_tool_warned in
  5282. yes:)
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5284. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5285. ac_tool_warned=yes ;;
  5286. esac
  5287.     CC=$ac_ct_CC
  5288.   fi
  5289. else
  5290.   CC="$ac_cv_prog_CC"
  5291. fi
  5292.  
  5293. if test -z "$CC"; then
  5294.           if test -n "$ac_tool_prefix"; then
  5295.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5296. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5298. $as_echo_n "checking for $ac_word... " >&6; }
  5299. if ${ac_cv_prog_CC+:} false; then :
  5300.   $as_echo_n "(cached) " >&6
  5301. else
  5302.   if test -n "$CC"; then
  5303.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5304. else
  5305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5306. for as_dir in $PATH
  5307. do
  5308.   IFS=$as_save_IFS
  5309.   test -z "$as_dir" && as_dir=.
  5310.     for ac_exec_ext in '' $ac_executable_extensions; do
  5311.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5312.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  5313.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5314.     break 2
  5315.   fi
  5316. done
  5317.   done
  5318. IFS=$as_save_IFS
  5319.  
  5320. fi
  5321. fi
  5322. CC=$ac_cv_prog_CC
  5323. if test -n "$CC"; then
  5324.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5325. $as_echo "$CC" >&6; }
  5326. else
  5327.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5328. $as_echo "no" >&6; }
  5329. fi
  5330.  
  5331.  
  5332.   fi
  5333. fi
  5334. if test -z "$CC"; then
  5335.   # Extract the first word of "cc", so it can be a program name with args.
  5336. set dummy cc; ac_word=$2
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5338. $as_echo_n "checking for $ac_word... " >&6; }
  5339. if ${ac_cv_prog_CC+:} false; then :
  5340.   $as_echo_n "(cached) " >&6
  5341. else
  5342.   if test -n "$CC"; then
  5343.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5344. else
  5345.   ac_prog_rejected=no
  5346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5347. for as_dir in $PATH
  5348. do
  5349.   IFS=$as_save_IFS
  5350.   test -z "$as_dir" && as_dir=.
  5351.     for ac_exec_ext in '' $ac_executable_extensions; do
  5352.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5353.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5354.        ac_prog_rejected=yes
  5355.        continue
  5356.      fi
  5357.     ac_cv_prog_CC="cc"
  5358.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5359.     break 2
  5360.   fi
  5361. done
  5362.   done
  5363. IFS=$as_save_IFS
  5364.  
  5365. if test $ac_prog_rejected = yes; then
  5366.   # We found a bogon in the path, so make sure we never use it.
  5367.   set dummy $ac_cv_prog_CC
  5368.   shift
  5369.   if test $# != 0; then
  5370.     # We chose a different compiler from the bogus one.
  5371.     # However, it has the same basename, so the bogon will be chosen
  5372.     # first if we set CC to just the basename; use the full file name.
  5373.     shift
  5374.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5375.   fi
  5376. fi
  5377. fi
  5378. fi
  5379. CC=$ac_cv_prog_CC
  5380. if test -n "$CC"; then
  5381.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5382. $as_echo "$CC" >&6; }
  5383. else
  5384.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5385. $as_echo "no" >&6; }
  5386. fi
  5387.  
  5388.  
  5389. fi
  5390. if test -z "$CC"; then
  5391.   if test -n "$ac_tool_prefix"; then
  5392.   for ac_prog in cl.exe
  5393.   do
  5394.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5395. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5397. $as_echo_n "checking for $ac_word... " >&6; }
  5398. if ${ac_cv_prog_CC+:} false; then :
  5399.   $as_echo_n "(cached) " >&6
  5400. else
  5401.   if test -n "$CC"; then
  5402.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5403. else
  5404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5405. for as_dir in $PATH
  5406. do
  5407.   IFS=$as_save_IFS
  5408.   test -z "$as_dir" && as_dir=.
  5409.     for ac_exec_ext in '' $ac_executable_extensions; do
  5410.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5411.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5412.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5413.     break 2
  5414.   fi
  5415. done
  5416.   done
  5417. IFS=$as_save_IFS
  5418.  
  5419. fi
  5420. fi
  5421. CC=$ac_cv_prog_CC
  5422. if test -n "$CC"; then
  5423.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5424. $as_echo "$CC" >&6; }
  5425. else
  5426.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5427. $as_echo "no" >&6; }
  5428. fi
  5429.  
  5430.  
  5431.     test -n "$CC" && break
  5432.   done
  5433. fi
  5434. if test -z "$CC"; then
  5435.   ac_ct_CC=$CC
  5436.   for ac_prog in cl.exe
  5437. do
  5438.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5439. set dummy $ac_prog; ac_word=$2
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5441. $as_echo_n "checking for $ac_word... " >&6; }
  5442. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5443.   $as_echo_n "(cached) " >&6
  5444. else
  5445.   if test -n "$ac_ct_CC"; then
  5446.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5447. else
  5448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5449. for as_dir in $PATH
  5450. do
  5451.   IFS=$as_save_IFS
  5452.   test -z "$as_dir" && as_dir=.
  5453.     for ac_exec_ext in '' $ac_executable_extensions; do
  5454.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5455.     ac_cv_prog_ac_ct_CC="$ac_prog"
  5456.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5457.     break 2
  5458.   fi
  5459. done
  5460.   done
  5461. IFS=$as_save_IFS
  5462.  
  5463. fi
  5464. fi
  5465. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5466. if test -n "$ac_ct_CC"; then
  5467.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5468. $as_echo "$ac_ct_CC" >&6; }
  5469. else
  5470.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5471. $as_echo "no" >&6; }
  5472. fi
  5473.  
  5474.  
  5475.   test -n "$ac_ct_CC" && break
  5476. done
  5477.  
  5478.   if test "x$ac_ct_CC" = x; then
  5479.     CC=""
  5480.   else
  5481.     case $cross_compiling:$ac_tool_warned in
  5482. yes:)
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5485. ac_tool_warned=yes ;;
  5486. esac
  5487.     CC=$ac_ct_CC
  5488.   fi
  5489. fi
  5490.  
  5491. fi
  5492.  
  5493.  
  5494. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5496. as_fn_error $? "no acceptable C compiler found in \$PATH
  5497. See \`config.log' for more details" "$LINENO" 5; }
  5498.  
  5499. # Provide some information about the compiler.
  5500. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5501. set X $ac_compile
  5502. ac_compiler=$2
  5503. for ac_option in --version -v -V -qversion; do
  5504.   { { ac_try="$ac_compiler $ac_option >&5"
  5505. case "(($ac_try" in
  5506.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5507.   *) ac_try_echo=$ac_try;;
  5508. esac
  5509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5510. $as_echo "$ac_try_echo"; } >&5
  5511.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5512.   ac_status=$?
  5513.   if test -s conftest.err; then
  5514.     sed '10a\
  5515. ... rest of stderr output deleted ...
  5516.          10q' conftest.err >conftest.er1
  5517.     cat conftest.er1 >&5
  5518.   fi
  5519.   rm -f conftest.er1 conftest.err
  5520.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5521.   test $ac_status = 0; }
  5522. done
  5523.  
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  5525. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5526. if ${ac_cv_c_compiler_gnu+:} false; then :
  5527.   $as_echo_n "(cached) " >&6
  5528. else
  5529.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5530. /* end confdefs.h.  */
  5531.  
  5532. int
  5533. main ()
  5534. {
  5535. #ifndef __GNUC__
  5536.        choke me
  5537. #endif
  5538.  
  5539.   ;
  5540.   return 0;
  5541. }
  5542. _ACEOF
  5543. if ac_fn_c_try_compile "$LINENO"; then :
  5544.   ac_compiler_gnu=yes
  5545. else
  5546.   ac_compiler_gnu=no
  5547. fi
  5548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5549. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5550.  
  5551. fi
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5553. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5554. if test $ac_compiler_gnu = yes; then
  5555.   GCC=yes
  5556. else
  5557.   GCC=
  5558. fi
  5559. ac_test_CFLAGS=${CFLAGS+set}
  5560. ac_save_CFLAGS=$CFLAGS
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5562. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5563. if ${ac_cv_prog_cc_g+:} false; then :
  5564.   $as_echo_n "(cached) " >&6
  5565. else
  5566.   ac_save_c_werror_flag=$ac_c_werror_flag
  5567.    ac_c_werror_flag=yes
  5568.    ac_cv_prog_cc_g=no
  5569.    CFLAGS="-g"
  5570.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5571. /* end confdefs.h.  */
  5572.  
  5573. int
  5574. main ()
  5575. {
  5576.  
  5577.   ;
  5578.   return 0;
  5579. }
  5580. _ACEOF
  5581. if ac_fn_c_try_compile "$LINENO"; then :
  5582.   ac_cv_prog_cc_g=yes
  5583. else
  5584.   CFLAGS=""
  5585.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5586. /* end confdefs.h.  */
  5587.  
  5588. int
  5589. main ()
  5590. {
  5591.  
  5592.   ;
  5593.   return 0;
  5594. }
  5595. _ACEOF
  5596. if ac_fn_c_try_compile "$LINENO"; then :
  5597.  
  5598. else
  5599.   ac_c_werror_flag=$ac_save_c_werror_flag
  5600.      CFLAGS="-g"
  5601.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5602. /* end confdefs.h.  */
  5603.  
  5604. int
  5605. main ()
  5606. {
  5607.  
  5608.   ;
  5609.   return 0;
  5610. }
  5611. _ACEOF
  5612. if ac_fn_c_try_compile "$LINENO"; then :
  5613.   ac_cv_prog_cc_g=yes
  5614. fi
  5615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5616. fi
  5617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5618. fi
  5619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5620.    ac_c_werror_flag=$ac_save_c_werror_flag
  5621. fi
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5623. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5624. if test "$ac_test_CFLAGS" = set; then
  5625.   CFLAGS=$ac_save_CFLAGS
  5626. elif test $ac_cv_prog_cc_g = yes; then
  5627.   if test "$GCC" = yes; then
  5628.     CFLAGS="-g -O2"
  5629.   else
  5630.     CFLAGS="-g"
  5631.   fi
  5632. else
  5633.   if test "$GCC" = yes; then
  5634.     CFLAGS="-O2"
  5635.   else
  5636.     CFLAGS=
  5637.   fi
  5638. fi
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5640. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5641. if ${ac_cv_prog_cc_c89+:} false; then :
  5642.   $as_echo_n "(cached) " >&6
  5643. else
  5644.   ac_cv_prog_cc_c89=no
  5645. ac_save_CC=$CC
  5646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5647. /* end confdefs.h.  */
  5648. #include <stdarg.h>
  5649. #include <stdio.h>
  5650. struct stat;
  5651. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5652. struct buf { int x; };
  5653. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5654. static char *e (p, i)
  5655.      char **p;
  5656.      int i;
  5657. {
  5658.   return p[i];
  5659. }
  5660. static char *f (char * (*g) (char **, int), char **p, ...)
  5661. {
  5662.   char *s;
  5663.   va_list v;
  5664.   va_start (v,p);
  5665.   s = g (p, va_arg (v,int));
  5666.   va_end (v);
  5667.   return s;
  5668. }
  5669.  
  5670. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5671.    function prototypes and stuff, but not '\xHH' hex character constants.
  5672.    These don't provoke an error unfortunately, instead are silently treated
  5673.    as 'x'.  The following induces an error, until -std is added to get
  5674.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5675.    array size at least.  It's necessary to write '\x00'==0 to get something
  5676.    that's true only with -std.  */
  5677. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5678.  
  5679. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5680.    inside strings and character constants.  */
  5681. #define FOO(x) 'x'
  5682. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5683.  
  5684. int test (int i, double x);
  5685. struct s1 {int (*f) (int a);};
  5686. struct s2 {int (*f) (double a);};
  5687. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5688. int argc;
  5689. char **argv;
  5690. int
  5691. main ()
  5692. {
  5693. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5694.   ;
  5695.   return 0;
  5696. }
  5697. _ACEOF
  5698. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5699.     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5700. do
  5701.   CC="$ac_save_CC $ac_arg"
  5702.   if ac_fn_c_try_compile "$LINENO"; then :
  5703.   ac_cv_prog_cc_c89=$ac_arg
  5704. fi
  5705. rm -f core conftest.err conftest.$ac_objext
  5706.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5707. done
  5708. rm -f conftest.$ac_ext
  5709. CC=$ac_save_CC
  5710.  
  5711. fi
  5712. # AC_CACHE_VAL
  5713. case "x$ac_cv_prog_cc_c89" in
  5714.   x)
  5715.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5716. $as_echo "none needed" >&6; } ;;
  5717.   xno)
  5718.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5719. $as_echo "unsupported" >&6; } ;;
  5720.   *)
  5721.     CC="$CC $ac_cv_prog_cc_c89"
  5722.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5723. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5724. esac
  5725. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5726.  
  5727. fi
  5728.  
  5729. ac_ext=c
  5730. ac_cpp='$CPP $CPPFLAGS'
  5731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5734.  
  5735. ac_ext=c
  5736. ac_cpp='$CPP $CPPFLAGS'
  5737. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5738. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5741. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  5742. if ${am_cv_prog_cc_c_o+:} false; then :
  5743.   $as_echo_n "(cached) " >&6
  5744. else
  5745.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5746. /* end confdefs.h.  */
  5747.  
  5748. int
  5749. main ()
  5750. {
  5751.  
  5752.   ;
  5753.   return 0;
  5754. }
  5755. _ACEOF
  5756.   # Make sure it works both with $CC and with simple cc.
  5757.   # Following AC_PROG_CC_C_O, we do the test twice because some
  5758.   # compilers refuse to overwrite an existing .o file with -o,
  5759.   # though they will create one.
  5760.   am_cv_prog_cc_c_o=yes
  5761.   for am_i in 1 2; do
  5762.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5763.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5764.    ac_status=$?
  5765.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5766.    (exit $ac_status); } \
  5767.          && test -f conftest2.$ac_objext; then
  5768.       : OK
  5769.     else
  5770.       am_cv_prog_cc_c_o=no
  5771.       break
  5772.     fi
  5773.   done
  5774.   rm -f core conftest*
  5775.   unset am_i
  5776. fi
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5778. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  5779. if test "$am_cv_prog_cc_c_o" != yes; then
  5780.    # Losing compiler, so override with the script.
  5781.    # FIXME: It is wrong to rewrite CC.
  5782.    # But if we don't then we get into trouble of one sort or another.
  5783.    # A longer-term fix would be to have automake use am__CC in this case,
  5784.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5785.    CC="$am_aux_dir/compile $CC"
  5786. fi
  5787. ac_ext=c
  5788. ac_cpp='$CPP $CPPFLAGS'
  5789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5792.  
  5793.  
  5794. depcc="$CC"   am_compiler_list=
  5795.  
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5797. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5798. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5799.   $as_echo_n "(cached) " >&6
  5800. else
  5801.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5802.   # We make a subdir and do the tests there.  Otherwise we can end up
  5803.   # making bogus files that we don't know about and never remove.  For
  5804.   # instance it was reported that on HP-UX the gcc test will end up
  5805.   # making a dummy file named 'D' -- because '-MD' means "put the output
  5806.   # in D".
  5807.   rm -rf conftest.dir
  5808.   mkdir conftest.dir
  5809.   # Copy depcomp to subdir because otherwise we won't find it if we're
  5810.   # using a relative directory.
  5811.   cp "$am_depcomp" conftest.dir
  5812.   cd conftest.dir
  5813.   # We will build objects and dependencies in a subdirectory because
  5814.   # it helps to detect inapplicable dependency modes.  For instance
  5815.   # both Tru64's cc and ICC support -MD to output dependencies as a
  5816.   # side effect of compilation, but ICC will put the dependencies in
  5817.   # the current directory while Tru64 will put them in the object
  5818.   # directory.
  5819.   mkdir sub
  5820.  
  5821.   am_cv_CC_dependencies_compiler_type=none
  5822.   if test "$am_compiler_list" = ""; then
  5823.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5824.   fi
  5825.   am__universal=false
  5826.   case " $depcc " in #(
  5827.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5828.      esac
  5829.  
  5830.   for depmode in $am_compiler_list; do
  5831.     # Setup a source with many dependencies, because some compilers
  5832.     # like to wrap large dependency lists on column 80 (with \), and
  5833.     # we should not choose a depcomp mode which is confused by this.
  5834.     #
  5835.     # We need to recreate these files for each test, as the compiler may
  5836.     # overwrite some of them when testing with obscure command lines.
  5837.     # This happens at least with the AIX C compiler.
  5838.     : > sub/conftest.c
  5839.     for i in 1 2 3 4 5 6; do
  5840.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5841.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5842.       # Solaris 10 /bin/sh.
  5843.       echo '/* dummy */' > sub/conftst$i.h
  5844.     done
  5845.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5846.  
  5847.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5848.     # mode.  It turns out that the SunPro C++ compiler does not properly
  5849.     # handle '-M -o', and we need to detect this.  Also, some Intel
  5850.     # versions had trouble with output in subdirs.
  5851.     am__obj=sub/conftest.${OBJEXT-o}
  5852.     am__minus_obj="-o $am__obj"
  5853.     case $depmode in
  5854.     gcc)
  5855.       # This depmode causes a compiler race in universal mode.
  5856.       test "$am__universal" = false || continue
  5857.       ;;
  5858.     nosideeffect)
  5859.       # After this tag, mechanisms are not by side-effect, so they'll
  5860.       # only be used when explicitly requested.
  5861.       if test "x$enable_dependency_tracking" = xyes; then
  5862.     continue
  5863.       else
  5864.     break
  5865.       fi
  5866.       ;;
  5867.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5868.       # This compiler won't grok '-c -o', but also, the minuso test has
  5869.       # not run yet.  These depmodes are late enough in the game, and
  5870.       # so weak that their functioning should not be impacted.
  5871.       am__obj=conftest.${OBJEXT-o}
  5872.       am__minus_obj=
  5873.       ;;
  5874.     none) break ;;
  5875.     esac
  5876.     if depmode=$depmode \
  5877.        source=sub/conftest.c object=$am__obj \
  5878.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5879.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5880.          >/dev/null 2>conftest.err &&
  5881.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5882.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5883.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5884.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5885.       # icc doesn't choke on unknown options, it will just issue warnings
  5886.       # or remarks (even with -Werror).  So we grep stderr for any message
  5887.       # that says an option was ignored or not supported.
  5888.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5889.       #   icc: Command line warning: ignoring option '-M'; no argument required
  5890.       # The diagnosis changed in icc 8.0:
  5891.       #   icc: Command line remark: option '-MP' not supported
  5892.       if (grep 'ignoring option' conftest.err ||
  5893.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5894.         am_cv_CC_dependencies_compiler_type=$depmode
  5895.         break
  5896.       fi
  5897.     fi
  5898.   done
  5899.  
  5900.   cd ..
  5901.   rm -rf conftest.dir
  5902. else
  5903.   am_cv_CC_dependencies_compiler_type=none
  5904. fi
  5905.  
  5906. fi
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5908. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5909. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5910.  
  5911.  if
  5912.   test "x$enable_dependency_tracking" != xno \
  5913.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5914.   am__fastdepCC_TRUE=
  5915.   am__fastdepCC_FALSE='#'
  5916. else
  5917.   am__fastdepCC_TRUE='#'
  5918.   am__fastdepCC_FALSE=
  5919. fi
  5920.  
  5921.  
  5922. if test -n "$ac_tool_prefix"; then
  5923.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5924. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5926. $as_echo_n "checking for $ac_word... " >&6; }
  5927. if ${ac_cv_prog_RANLIB+:} false; then :
  5928.   $as_echo_n "(cached) " >&6
  5929. else
  5930.   if test -n "$RANLIB"; then
  5931.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5932. else
  5933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5934. for as_dir in $PATH
  5935. do
  5936.   IFS=$as_save_IFS
  5937.   test -z "$as_dir" && as_dir=.
  5938.     for ac_exec_ext in '' $ac_executable_extensions; do
  5939.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5940.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5941.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5942.     break 2
  5943.   fi
  5944. done
  5945.   done
  5946. IFS=$as_save_IFS
  5947.  
  5948. fi
  5949. fi
  5950. RANLIB=$ac_cv_prog_RANLIB
  5951. if test -n "$RANLIB"; then
  5952.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5953. $as_echo "$RANLIB" >&6; }
  5954. else
  5955.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5956. $as_echo "no" >&6; }
  5957. fi
  5958.  
  5959.  
  5960. fi
  5961. if test -z "$ac_cv_prog_RANLIB"; then
  5962.   ac_ct_RANLIB=$RANLIB
  5963.   # Extract the first word of "ranlib", so it can be a program name with args.
  5964. set dummy ranlib; ac_word=$2
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5966. $as_echo_n "checking for $ac_word... " >&6; }
  5967. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5968.   $as_echo_n "(cached) " >&6
  5969. else
  5970.   if test -n "$ac_ct_RANLIB"; then
  5971.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5972. else
  5973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5974. for as_dir in $PATH
  5975. do
  5976.   IFS=$as_save_IFS
  5977.   test -z "$as_dir" && as_dir=.
  5978.     for ac_exec_ext in '' $ac_executable_extensions; do
  5979.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5980.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  5981.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5982.     break 2
  5983.   fi
  5984. done
  5985.   done
  5986. IFS=$as_save_IFS
  5987.  
  5988. fi
  5989. fi
  5990. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5991. if test -n "$ac_ct_RANLIB"; then
  5992.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5993. $as_echo "$ac_ct_RANLIB" >&6; }
  5994. else
  5995.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5996. $as_echo "no" >&6; }
  5997. fi
  5998.  
  5999.   if test "x$ac_ct_RANLIB" = x; then
  6000.     RANLIB=":"
  6001.   else
  6002.     case $cross_compiling:$ac_tool_warned in
  6003. yes:)
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6006. ac_tool_warned=yes ;;
  6007. esac
  6008.     RANLIB=$ac_ct_RANLIB
  6009.   fi
  6010. else
  6011.   RANLIB="$ac_cv_prog_RANLIB"
  6012. fi
  6013.  
  6014.  
  6015.  
  6016.  
  6017.  
  6018.  
  6019.  
  6020.  
  6021.  
  6022.   # Code from module arg-nonnull:
  6023.   # Code from module c++defs:
  6024.   # Code from module extensions:
  6025.  
  6026.   # Code from module include_next:
  6027.   # Code from module memchr:
  6028.   # Code from module memmem:
  6029.   # Code from module memmem-simple:
  6030.   # Code from module multiarch:
  6031.   # Code from module sigaction:
  6032.   # Code from module signal:
  6033.   # Code from module sigprocmask:
  6034.   # Code from module stddef:
  6035.   # Code from module stdint:
  6036.   # Code from module string:
  6037.   # Code from module warn-on-use:
  6038.  
  6039. if test $ac_cv_c_compiler_gnu = yes; then
  6040.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  6041. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  6042. if ${ac_cv_prog_gcc_traditional+:} false; then :
  6043.   $as_echo_n "(cached) " >&6
  6044. else
  6045.     ac_pattern="Autoconf.*'x'"
  6046.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6047. /* end confdefs.h.  */
  6048. #include <sgtty.h>
  6049. Autoconf TIOCGETP
  6050. _ACEOF
  6051. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6052.   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  6053.   ac_cv_prog_gcc_traditional=yes
  6054. else
  6055.   ac_cv_prog_gcc_traditional=no
  6056. fi
  6057. rm -f conftest*
  6058.  
  6059.  
  6060.   if test $ac_cv_prog_gcc_traditional = no; then
  6061.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6062. /* end confdefs.h.  */
  6063. #include <termio.h>
  6064. Autoconf TCGETA
  6065. _ACEOF
  6066. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6067.   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  6068.   ac_cv_prog_gcc_traditional=yes
  6069. fi
  6070. rm -f conftest*
  6071.  
  6072.   fi
  6073. fi
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  6075. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  6076.   if test $ac_cv_prog_gcc_traditional = yes; then
  6077.     CC="$CC -traditional"
  6078.   fi
  6079. fi
  6080.  
  6081.  
  6082.  
  6083. # This breaks autoreconf so disable it
  6084. # LT_INIT([disable-shared])
  6085.  
  6086.  
  6087.  
  6088.  
  6089.  
  6090.           LIBC_FATAL_STDERR_=1
  6091.   export LIBC_FATAL_STDERR_
  6092.  
  6093.  
  6094.  
  6095.  
  6096.  
  6097.   for ac_header in $gl_header_list
  6098. do :
  6099.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6100. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6101. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6102.   cat >>confdefs.h <<_ACEOF
  6103. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6104. _ACEOF
  6105.  
  6106. fi
  6107.  
  6108. done
  6109.  
  6110.  
  6111.  
  6112.  
  6113.  
  6114.  
  6115.  
  6116.  
  6117.  
  6118.   for ac_func in $gl_func_list
  6119. do :
  6120.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6121. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6122. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6123.   cat >>confdefs.h <<_ACEOF
  6124. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6125. _ACEOF
  6126.  
  6127. fi
  6128. done
  6129.  
  6130.  
  6131.  
  6132.  
  6133.  
  6134.  
  6135.   GNULIB_MEMCHR=0;
  6136.   GNULIB_MEMMEM=0;
  6137.   GNULIB_MEMPCPY=0;
  6138.   GNULIB_MEMRCHR=0;
  6139.   GNULIB_RAWMEMCHR=0;
  6140.   GNULIB_STPCPY=0;
  6141.   GNULIB_STPNCPY=0;
  6142.   GNULIB_STRCHRNUL=0;
  6143.   GNULIB_STRDUP=0;
  6144.   GNULIB_STRNCAT=0;
  6145.   GNULIB_STRNDUP=0;
  6146.   GNULIB_STRNLEN=0;
  6147.   GNULIB_STRPBRK=0;
  6148.   GNULIB_STRSEP=0;
  6149.   GNULIB_STRSTR=0;
  6150.   GNULIB_STRCASESTR=0;
  6151.   GNULIB_STRTOK_R=0;
  6152.   GNULIB_MBSLEN=0;
  6153.   GNULIB_MBSNLEN=0;
  6154.   GNULIB_MBSCHR=0;
  6155.   GNULIB_MBSRCHR=0;
  6156.   GNULIB_MBSSTR=0;
  6157.   GNULIB_MBSCASECMP=0;
  6158.   GNULIB_MBSNCASECMP=0;
  6159.   GNULIB_MBSPCASECMP=0;
  6160.   GNULIB_MBSCASESTR=0;
  6161.   GNULIB_MBSCSPN=0;
  6162.   GNULIB_MBSPBRK=0;
  6163.   GNULIB_MBSSPN=0;
  6164.   GNULIB_MBSSEP=0;
  6165.   GNULIB_MBSTOK_R=0;
  6166.   GNULIB_STRERROR=0;
  6167.   GNULIB_STRERROR_R=0;
  6168.   GNULIB_STRSIGNAL=0;
  6169.   GNULIB_STRVERSCMP=0;
  6170.   HAVE_MBSLEN=0;
  6171.     HAVE_MEMCHR=1;
  6172.   HAVE_DECL_MEMMEM=1;
  6173.   HAVE_MEMPCPY=1;
  6174.   HAVE_DECL_MEMRCHR=1;
  6175.   HAVE_RAWMEMCHR=1;
  6176.   HAVE_STPCPY=1;
  6177.   HAVE_STPNCPY=1;
  6178.   HAVE_STRCHRNUL=1;
  6179.   HAVE_DECL_STRDUP=1;
  6180.   HAVE_DECL_STRNDUP=1;
  6181.   HAVE_DECL_STRNLEN=1;
  6182.   HAVE_STRPBRK=1;
  6183.   HAVE_STRSEP=1;
  6184.   HAVE_STRCASESTR=1;
  6185.   HAVE_DECL_STRTOK_R=1;
  6186.   HAVE_DECL_STRERROR_R=1;
  6187.   HAVE_DECL_STRSIGNAL=1;
  6188.   HAVE_STRVERSCMP=1;
  6189.   REPLACE_MEMCHR=0;
  6190.   REPLACE_MEMMEM=0;
  6191.   REPLACE_STPNCPY=0;
  6192.   REPLACE_STRDUP=0;
  6193.   REPLACE_STRSTR=0;
  6194.   REPLACE_STRCASESTR=0;
  6195.   REPLACE_STRCHRNUL=0;
  6196.   REPLACE_STRERROR=0;
  6197.   REPLACE_STRERROR_R=0;
  6198.   REPLACE_STRNCAT=0;
  6199.   REPLACE_STRNDUP=0;
  6200.   REPLACE_STRNLEN=0;
  6201.   REPLACE_STRSIGNAL=0;
  6202.   REPLACE_STRTOK_R=0;
  6203.   UNDEFINE_STRTOK_R=0;
  6204.  
  6205.  
  6206.  
  6207.  
  6208.  
  6209.   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
  6210.   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
  6211.   # irrelevant for anonymous mappings.
  6212.   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  6213. if test "x$ac_cv_func_mmap" = xyes; then :
  6214.   gl_have_mmap=yes
  6215. else
  6216.   gl_have_mmap=no
  6217. fi
  6218.  
  6219.  
  6220.   # Try to allow MAP_ANONYMOUS.
  6221.   gl_have_mmap_anonymous=no
  6222.   if test $gl_have_mmap = yes; then
  6223.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
  6224. $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
  6225.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6226. /* end confdefs.h.  */
  6227.  
  6228. #include <sys/mman.h>
  6229. #ifdef MAP_ANONYMOUS
  6230.     I cant identify this map.
  6231. #endif
  6232.  
  6233. _ACEOF
  6234. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6235.   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
  6236.   gl_have_mmap_anonymous=yes
  6237. fi
  6238. rm -f conftest*
  6239.  
  6240.     if test $gl_have_mmap_anonymous != yes; then
  6241.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6242. /* end confdefs.h.  */
  6243.  
  6244. #include <sys/mman.h>
  6245. #ifdef MAP_ANON
  6246.     I cant identify this map.
  6247. #endif
  6248.  
  6249. _ACEOF
  6250. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6251.   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
  6252.  
  6253. $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
  6254.  
  6255.          gl_have_mmap_anonymous=yes
  6256. fi
  6257. rm -f conftest*
  6258.  
  6259.     fi
  6260.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
  6261. $as_echo "$gl_have_mmap_anonymous" >&6; }
  6262.     if test $gl_have_mmap_anonymous = yes; then
  6263.  
  6264. $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
  6265.  
  6266.     fi
  6267.   fi
  6268.  
  6269.  
  6270.   :
  6271.  
  6272.  
  6273.  
  6274.  
  6275.  
  6276.  
  6277.   :
  6278.  
  6279.  
  6280.  
  6281.  
  6282.  
  6283.  
  6284.  
  6285.  
  6286.   if test $HAVE_MEMCHR = 1; then
  6287.     # Detect platform-specific bugs in some versions of glibc:
  6288.     # memchr should not dereference anything with length 0
  6289.     #   http://bugzilla.redhat.com/499689
  6290.     # memchr should not dereference overestimated length after a match
  6291.     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
  6292.     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
  6293.     # Assume that memchr works on platforms that lack mprotect.
  6294.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
  6295. $as_echo_n "checking whether memchr works... " >&6; }
  6296. if ${gl_cv_func_memchr_works+:} false; then :
  6297.   $as_echo_n "(cached) " >&6
  6298. else
  6299.   if test "$cross_compiling" = yes; then :
  6300.          gl_cv_func_memchr_works="guessing no"
  6301. else
  6302.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6303. /* end confdefs.h.  */
  6304.  
  6305. #include <string.h>
  6306. #if HAVE_SYS_MMAN_H
  6307. # include <fcntl.h>
  6308. # include <unistd.h>
  6309. # include <sys/types.h>
  6310. # include <sys/mman.h>
  6311. # ifndef MAP_FILE
  6312. #  define MAP_FILE 0
  6313. # endif
  6314. #endif
  6315.  
  6316. int
  6317. main ()
  6318. {
  6319.  
  6320.   int result = 0;
  6321.   char *fence = NULL;
  6322. #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
  6323. # if HAVE_MAP_ANONYMOUS
  6324.   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
  6325.   const int fd = -1;
  6326. # else /* !HAVE_MAP_ANONYMOUS */
  6327.   const int flags = MAP_FILE | MAP_PRIVATE;
  6328.   int fd = open ("/dev/zero", O_RDONLY, 0666);
  6329.   if (fd >= 0)
  6330. # endif
  6331.     {
  6332.       int pagesize = getpagesize ();
  6333.       char *two_pages =
  6334.         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
  6335.                        flags, fd, 0);
  6336.       if (two_pages != (char *)(-1)
  6337.           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
  6338.         fence = two_pages + pagesize;
  6339.     }
  6340. #endif
  6341.   if (fence)
  6342.     {
  6343.       if (memchr (fence, 0, 0))
  6344.         result |= 1;
  6345.       strcpy (fence - 9, "12345678");
  6346.       if (memchr (fence - 9, 0, 79) != fence - 1)
  6347.         result |= 2;
  6348.       if (memchr (fence - 1, 0, 3) != fence - 1)
  6349.         result |= 4;
  6350.     }
  6351.   return result;
  6352.  
  6353.   ;
  6354.   return 0;
  6355. }
  6356. _ACEOF
  6357. if ac_fn_c_try_run "$LINENO"; then :
  6358.   gl_cv_func_memchr_works=yes
  6359. else
  6360.   gl_cv_func_memchr_works=no
  6361. fi
  6362. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6363.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  6364. fi
  6365.  
  6366. fi
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
  6368. $as_echo "$gl_cv_func_memchr_works" >&6; }
  6369.     if test "$gl_cv_func_memchr_works" != yes; then
  6370.       REPLACE_MEMCHR=1
  6371.     fi
  6372.   fi
  6373.  
  6374.  
  6375.       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
  6376. if test "x$ac_cv_have_decl_memmem" = xyes; then :
  6377.   ac_have_decl=1
  6378. else
  6379.   ac_have_decl=0
  6380. fi
  6381.  
  6382. cat >>confdefs.h <<_ACEOF
  6383. #define HAVE_DECL_MEMMEM $ac_have_decl
  6384. _ACEOF
  6385.  
  6386.  
  6387.  
  6388.  
  6389.  
  6390.  
  6391.   for ac_func in memmem
  6392. do :
  6393.   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  6394. if test "x$ac_cv_func_memmem" = xyes; then :
  6395.   cat >>confdefs.h <<_ACEOF
  6396. #define HAVE_MEMMEM 1
  6397. _ACEOF
  6398.  
  6399. fi
  6400. done
  6401.  
  6402.   if test $ac_cv_func_memmem = yes; then
  6403.     HAVE_MEMMEM=1
  6404.   else
  6405.     HAVE_MEMMEM=0
  6406.   fi
  6407.  
  6408.   :
  6409.  
  6410.  
  6411.  
  6412.  
  6413.  
  6414.   if test $ac_cv_have_decl_memmem = no; then
  6415.     HAVE_DECL_MEMMEM=0
  6416.   else
  6417.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
  6418. $as_echo_n "checking whether memmem works... " >&6; }
  6419. if ${gl_cv_func_memmem_works_always+:} false; then :
  6420.   $as_echo_n "(cached) " >&6
  6421. else
  6422.   if test "$cross_compiling" = yes; then :
  6423.                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6424. /* end confdefs.h.  */
  6425.  
  6426. #ifdef __GNU_LIBRARY__
  6427.  #include <features.h>
  6428.  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
  6429.                           || __GLIBC_MINOR__ > 12)) \
  6430.       || (__GLIBC__ > 2)) \
  6431.      || defined __UCLIBC__
  6432.   Lucky user
  6433.  #endif
  6434. #elif defined __CYGWIN__
  6435.  #include <cygwin/version.h>
  6436.  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  6437.   Lucky user
  6438.  #endif
  6439. #else
  6440.   Lucky user
  6441. #endif
  6442.  
  6443. _ACEOF
  6444. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6445.   $EGREP "Lucky user" >/dev/null 2>&1; then :
  6446.   gl_cv_func_memmem_works_always=yes
  6447. else
  6448.   gl_cv_func_memmem_works_always="guessing no"
  6449. fi
  6450. rm -f conftest*
  6451.  
  6452.  
  6453. else
  6454.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6455. /* end confdefs.h.  */
  6456.  
  6457. #include <string.h> /* for memmem */
  6458. #define P "_EF_BF_BD"
  6459. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  6460. #define NEEDLE P P P P P
  6461.  
  6462. int
  6463. main ()
  6464. {
  6465.  
  6466.     int result = 0;
  6467.     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
  6468.       result |= 1;
  6469.     /* Check for empty needle behavior.  */
  6470.     {
  6471.       const char *haystack = "AAA";
  6472.       if (memmem (haystack, 3, NULL, 0) != haystack)
  6473.         result |= 2;
  6474.     }
  6475.     return result;
  6476.  
  6477.   ;
  6478.   return 0;
  6479. }
  6480. _ACEOF
  6481. if ac_fn_c_try_run "$LINENO"; then :
  6482.   gl_cv_func_memmem_works_always=yes
  6483. else
  6484.   gl_cv_func_memmem_works_always=no
  6485. fi
  6486. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6487.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  6488. fi
  6489.  
  6490.  
  6491. fi
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
  6493. $as_echo "$gl_cv_func_memmem_works_always" >&6; }
  6494.     if test "$gl_cv_func_memmem_works_always" != yes; then
  6495.       REPLACE_MEMMEM=1
  6496.     fi
  6497.   fi
  6498.   :
  6499.  
  6500.  
  6501.     gl_cv_c_multiarch=no
  6502.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6503. /* end confdefs.h.  */
  6504. #ifndef __APPLE_CC__
  6505.          not a universal capable compiler
  6506.         #endif
  6507.         typedef int dummy;
  6508.  
  6509. _ACEOF
  6510. if ac_fn_c_try_compile "$LINENO"; then :
  6511.  
  6512.                arch=
  6513.      prev=
  6514.      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
  6515.        if test -n "$prev"; then
  6516.          case $word in
  6517.            i?86 | x86_64 | ppc | ppc64)
  6518.              if test -z "$arch" || test "$arch" = "$word"; then
  6519.                arch="$word"
  6520.              else
  6521.                gl_cv_c_multiarch=yes
  6522.              fi
  6523.              ;;
  6524.          esac
  6525.          prev=
  6526.        else
  6527.          if test "x$word" = "x-arch"; then
  6528.            prev=arch
  6529.          fi
  6530.        fi
  6531.      done
  6532.  
  6533. fi
  6534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6535.   if test $gl_cv_c_multiarch = yes; then
  6536.     APPLE_UNIVERSAL_BUILD=1
  6537.   else
  6538.     APPLE_UNIVERSAL_BUILD=0
  6539.   fi
  6540.  
  6541.  
  6542.  
  6543.   GNULIB_SIGNAL_H_SIGPIPE=0;
  6544.   GNULIB_SIGPROCMASK=0;
  6545.   GNULIB_SIGACTION=0;
  6546.     HAVE_POSIX_SIGNALBLOCKING=1;
  6547.   HAVE_SIGSET_T=1;
  6548.   HAVE_SIGINFO_T=1;
  6549.   HAVE_SIGACTION=1;
  6550.   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
  6551.  
  6552.   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
  6553.  
  6554.   HAVE_SIGHANDLER_T=1;
  6555.  
  6556.  
  6557.  
  6558.  
  6559.  
  6560.  
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  6562. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  6563. if ${ac_cv_c_restrict+:} false; then :
  6564.   $as_echo_n "(cached) " >&6
  6565. else
  6566.   ac_cv_c_restrict=no
  6567.    # The order here caters to the fact that C++ does not require restrict.
  6568.    for ac_kw in __restrict __restrict__ _Restrict restrict; do
  6569.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6570. /* end confdefs.h.  */
  6571. typedef int * int_ptr;
  6572.     int foo (int_ptr $ac_kw ip) {
  6573.     return ip[0];
  6574.        }
  6575. int
  6576. main ()
  6577. {
  6578. int s[1];
  6579.     int * $ac_kw t = s;
  6580.     t[0] = 0;
  6581.     return foo(t)
  6582.   ;
  6583.   return 0;
  6584. }
  6585. _ACEOF
  6586. if ac_fn_c_try_compile "$LINENO"; then :
  6587.   ac_cv_c_restrict=$ac_kw
  6588. fi
  6589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6590.      test "$ac_cv_c_restrict" != no && break
  6591.    done
  6592.  
  6593. fi
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  6595. $as_echo "$ac_cv_c_restrict" >&6; }
  6596.  
  6597.  case $ac_cv_c_restrict in
  6598.    restrict) ;;
  6599.    no) $as_echo "#define restrict /**/" >>confdefs.h
  6600.  ;;
  6601.    *)  cat >>confdefs.h <<_ACEOF
  6602. #define restrict $ac_cv_c_restrict
  6603. _ACEOF
  6604.  ;;
  6605.  esac
  6606.  
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6608. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6609. if ${ac_cv_type_uid_t+:} false; then :
  6610.   $as_echo_n "(cached) " >&6
  6611. else
  6612.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6613. /* end confdefs.h.  */
  6614. #include <sys/types.h>
  6615.  
  6616. _ACEOF
  6617. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6618.   $EGREP "uid_t" >/dev/null 2>&1; then :
  6619.   ac_cv_type_uid_t=yes
  6620. else
  6621.   ac_cv_type_uid_t=no
  6622. fi
  6623. rm -f conftest*
  6624.  
  6625. fi
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6627. $as_echo "$ac_cv_type_uid_t" >&6; }
  6628. if test $ac_cv_type_uid_t = no; then
  6629.  
  6630. $as_echo "#define uid_t int" >>confdefs.h
  6631.  
  6632.  
  6633. $as_echo "#define gid_t int" >>confdefs.h
  6634.  
  6635. fi
  6636.  
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  6638. $as_echo_n "checking for inline... " >&6; }
  6639. if ${ac_cv_c_inline+:} false; then :
  6640.   $as_echo_n "(cached) " >&6
  6641. else
  6642.   ac_cv_c_inline=no
  6643. for ac_kw in inline __inline__ __inline; do
  6644.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6645. /* end confdefs.h.  */
  6646. #ifndef __cplusplus
  6647. typedef int foo_t;
  6648. static $ac_kw foo_t static_foo () {return 0; }
  6649. $ac_kw foo_t foo () {return 0; }
  6650. #endif
  6651.  
  6652. _ACEOF
  6653. if ac_fn_c_try_compile "$LINENO"; then :
  6654.   ac_cv_c_inline=$ac_kw
  6655. fi
  6656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6657.   test "$ac_cv_c_inline" != no && break
  6658. done
  6659.  
  6660. fi
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  6662. $as_echo "$ac_cv_c_inline" >&6; }
  6663.  
  6664. case $ac_cv_c_inline in
  6665.   inline | yes) ;;
  6666.   *)
  6667.     case $ac_cv_c_inline in
  6668.       no) ac_val=;;
  6669.       *) ac_val=$ac_cv_c_inline;;
  6670.     esac
  6671.     cat >>confdefs.h <<_ACEOF
  6672. #ifndef __cplusplus
  6673. #define inline $ac_val
  6674. #endif
  6675. _ACEOF
  6676.     ;;
  6677. esac
  6678.  
  6679.  
  6680.  
  6681.  
  6682.  
  6683.  
  6684.  
  6685.  
  6686.  
  6687.  
  6688.  
  6689.  
  6690.  
  6691.  
  6692.  
  6693.  
  6694.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
  6695. $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
  6696. if ${gl_cv_have_include_next+:} false; then :
  6697.   $as_echo_n "(cached) " >&6
  6698. else
  6699.   rm -rf conftestd1a conftestd1b conftestd2
  6700.      mkdir conftestd1a conftestd1b conftestd2
  6701.                                                   cat <<EOF > conftestd1a/conftest.h
  6702. #define DEFINED_IN_CONFTESTD1
  6703. #include_next <conftest.h>
  6704. #ifdef DEFINED_IN_CONFTESTD2
  6705. int foo;
  6706. #else
  6707. #error "include_next doesn't work"
  6708. #endif
  6709. EOF
  6710.      cat <<EOF > conftestd1b/conftest.h
  6711. #define DEFINED_IN_CONFTESTD1
  6712. #include <stdio.h>
  6713. #include_next <conftest.h>
  6714. #ifdef DEFINED_IN_CONFTESTD2
  6715. int foo;
  6716. #else
  6717. #error "include_next doesn't work"
  6718. #endif
  6719. EOF
  6720.      cat <<EOF > conftestd2/conftest.h
  6721. #ifndef DEFINED_IN_CONFTESTD1
  6722. #error "include_next test doesn't work"
  6723. #endif
  6724. #define DEFINED_IN_CONFTESTD2
  6725. EOF
  6726.      gl_save_CPPFLAGS="$CPPFLAGS"
  6727.      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
  6728.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6729. /* end confdefs.h.  */
  6730. #include <conftest.h>
  6731. _ACEOF
  6732. if ac_fn_c_try_compile "$LINENO"; then :
  6733.   gl_cv_have_include_next=yes
  6734. else
  6735.   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
  6736.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6737. /* end confdefs.h.  */
  6738. #include <conftest.h>
  6739. _ACEOF
  6740. if ac_fn_c_try_compile "$LINENO"; then :
  6741.   gl_cv_have_include_next=buggy
  6742. else
  6743.   gl_cv_have_include_next=no
  6744. fi
  6745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6746.  
  6747. fi
  6748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6749.      CPPFLAGS="$gl_save_CPPFLAGS"
  6750.      rm -rf conftestd1a conftestd1b conftestd2
  6751.  
  6752. fi
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
  6754. $as_echo "$gl_cv_have_include_next" >&6; }
  6755.   PRAGMA_SYSTEM_HEADER=
  6756.   if test $gl_cv_have_include_next = yes; then
  6757.     INCLUDE_NEXT=include_next
  6758.     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  6759.     if test -n "$GCC"; then
  6760.       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
  6761.     fi
  6762.   else
  6763.     if test $gl_cv_have_include_next = buggy; then
  6764.       INCLUDE_NEXT=include
  6765.       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  6766.     else
  6767.       INCLUDE_NEXT=include
  6768.       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
  6769.     fi
  6770.   fi
  6771.  
  6772.  
  6773.  
  6774.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
  6775. $as_echo_n "checking whether system header files limit the line length... " >&6; }
  6776. if ${gl_cv_pragma_columns+:} false; then :
  6777.   $as_echo_n "(cached) " >&6
  6778. else
  6779.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6780. /* end confdefs.h.  */
  6781.  
  6782. #ifdef __TANDEM
  6783. choke me
  6784. #endif
  6785.  
  6786. _ACEOF
  6787. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6788.   $EGREP "choke me" >/dev/null 2>&1; then :
  6789.   gl_cv_pragma_columns=yes
  6790. else
  6791.   gl_cv_pragma_columns=no
  6792. fi
  6793. rm -f conftest*
  6794.  
  6795.  
  6796. fi
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
  6798. $as_echo "$gl_cv_pragma_columns" >&6; }
  6799.   if test $gl_cv_pragma_columns = yes; then
  6800.     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
  6801.   else
  6802.     PRAGMA_COLUMNS=
  6803.   fi
  6804.  
  6805.  
  6806.  
  6807.     REPLACE_NULL=0;
  6808.   HAVE_WCHAR_T=1;
  6809.  
  6810.  
  6811.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  6812. $as_echo_n "checking for wchar_t... " >&6; }
  6813. if ${gt_cv_c_wchar_t+:} false; then :
  6814.   $as_echo_n "(cached) " >&6
  6815. else
  6816.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6817. /* end confdefs.h.  */
  6818. #include <stddef.h>
  6819.             wchar_t foo = (wchar_t)'\0';
  6820. int
  6821. main ()
  6822. {
  6823.  
  6824.   ;
  6825.   return 0;
  6826. }
  6827. _ACEOF
  6828. if ac_fn_c_try_compile "$LINENO"; then :
  6829.   gt_cv_c_wchar_t=yes
  6830. else
  6831.   gt_cv_c_wchar_t=no
  6832. fi
  6833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6834. fi
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  6836. $as_echo "$gt_cv_c_wchar_t" >&6; }
  6837.   if test $gt_cv_c_wchar_t = yes; then
  6838.  
  6839. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  6840.  
  6841.   fi
  6842.  
  6843.  
  6844.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  6845. $as_echo_n "checking for unsigned long long int... " >&6; }
  6846. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  6847.   $as_echo_n "(cached) " >&6
  6848. else
  6849.   ac_cv_type_unsigned_long_long_int=yes
  6850.      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6851.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6852. /* end confdefs.h.  */
  6853.  
  6854.   /* For now, do not test the preprocessor; as of 2007 there are too many
  6855.          implementations with broken preprocessors.  Perhaps this can
  6856.          be revisited in 2012.  In the meantime, code should not expect
  6857.          #if to work with literals wider than 32 bits.  */
  6858.       /* Test literals.  */
  6859.       long long int ll = 9223372036854775807ll;
  6860.       long long int nll = -9223372036854775807LL;
  6861.       unsigned long long int ull = 18446744073709551615ULL;
  6862.       /* Test constant expressions.   */
  6863.       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6864.                      ? 1 : -1)];
  6865.       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6866.                      ? 1 : -1)];
  6867.       int i = 63;
  6868. int
  6869. main ()
  6870. {
  6871. /* Test availability of runtime routines for shift and division.  */
  6872.       long long int llmax = 9223372036854775807ll;
  6873.       unsigned long long int ullmax = 18446744073709551615ull;
  6874.       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6875.               | (llmax / ll) | (llmax % ll)
  6876.               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6877.               | (ullmax / ull) | (ullmax % ull));
  6878.   ;
  6879.   return 0;
  6880. }
  6881.  
  6882. _ACEOF
  6883. if ac_fn_c_try_link "$LINENO"; then :
  6884.  
  6885. else
  6886.   ac_cv_type_unsigned_long_long_int=no
  6887. fi
  6888. rm -f core conftest.err conftest.$ac_objext \
  6889.     conftest$ac_exeext conftest.$ac_ext
  6890.      fi
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  6893. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  6894.   if test $ac_cv_type_unsigned_long_long_int = yes; then
  6895.  
  6896. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  6897.  
  6898.   fi
  6899.  
  6900.  
  6901.  
  6902.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6903. $as_echo_n "checking for long long int... " >&6; }
  6904. if ${ac_cv_type_long_long_int+:} false; then :
  6905.   $as_echo_n "(cached) " >&6
  6906. else
  6907.   ac_cv_type_long_long_int=yes
  6908.       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6909.         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  6910.         if test $ac_cv_type_long_long_int = yes; then
  6911.                                         if test "$cross_compiling" = yes; then :
  6912.   :
  6913. else
  6914.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6915. /* end confdefs.h.  */
  6916. #include <limits.h>
  6917.                  #ifndef LLONG_MAX
  6918.                  # define HALF \
  6919.                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6920.                  # define LLONG_MAX (HALF - 1 + HALF)
  6921.                  #endif
  6922. int
  6923. main ()
  6924. {
  6925. long long int n = 1;
  6926.                  int i;
  6927.                  for (i = 0; ; i++)
  6928.                    {
  6929.                      long long int m = n << i;
  6930.                      if (m >> i != n)
  6931.                        return 1;
  6932.                      if (LLONG_MAX / 2 < m)
  6933.                        break;
  6934.                    }
  6935.                  return 0;
  6936.   ;
  6937.   return 0;
  6938. }
  6939. _ACEOF
  6940. if ac_fn_c_try_run "$LINENO"; then :
  6941.  
  6942. else
  6943.   ac_cv_type_long_long_int=no
  6944. fi
  6945. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6946.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  6947. fi
  6948.  
  6949.         fi
  6950.       fi
  6951. fi
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6953. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6954.   if test $ac_cv_type_long_long_int = yes; then
  6955.  
  6956. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  6957.  
  6958.   fi
  6959.  
  6960.  
  6961.  
  6962.  
  6963.  
  6964.  
  6965.  
  6966.  
  6967.  
  6968.  
  6969.  
  6970.  
  6971.  
  6972.  
  6973.   if test $ac_cv_type_long_long_int = yes; then
  6974.     HAVE_LONG_LONG_INT=1
  6975.   else
  6976.     HAVE_LONG_LONG_INT=0
  6977.   fi
  6978.  
  6979.  
  6980.   if test $ac_cv_type_unsigned_long_long_int = yes; then
  6981.     HAVE_UNSIGNED_LONG_LONG_INT=1
  6982.   else
  6983.     HAVE_UNSIGNED_LONG_LONG_INT=0
  6984.   fi
  6985.  
  6986.  
  6987.  
  6988.   :
  6989.  
  6990.  
  6991.  
  6992.  
  6993.  
  6994.   if test $ac_cv_header_wchar_h = yes; then
  6995.     HAVE_WCHAR_H=1
  6996.   else
  6997.     HAVE_WCHAR_H=0
  6998.   fi
  6999.  
  7000.  
  7001.       if test $ac_cv_header_inttypes_h = yes; then
  7002.     HAVE_INTTYPES_H=1
  7003.   else
  7004.     HAVE_INTTYPES_H=0
  7005.   fi
  7006.  
  7007.  
  7008.       if test $ac_cv_header_sys_types_h = yes; then
  7009.     HAVE_SYS_TYPES_H=1
  7010.   else
  7011.     HAVE_SYS_TYPES_H=0
  7012.   fi
  7013.  
  7014.  
  7015.  
  7016.  
  7017.  
  7018.  
  7019.  
  7020.  
  7021.   :
  7022.  
  7023.  
  7024.  
  7025.  
  7026.  
  7027.  
  7028.  
  7029.  
  7030.      if test $gl_cv_have_include_next = yes; then
  7031.        gl_cv_next_stdint_h='<'stdint.h'>'
  7032.      else
  7033.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
  7034. $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
  7035. if ${gl_cv_next_stdint_h+:} false; then :
  7036.   $as_echo_n "(cached) " >&6
  7037. else
  7038.  
  7039.              if test $ac_cv_header_stdint_h = yes; then
  7040.  
  7041.  
  7042.                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7043. /* end confdefs.h.  */
  7044. #include <stdint.h>
  7045.  
  7046. _ACEOF
  7047.                                                                                                                         case "$host_os" in
  7048.                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
  7049.                  *)    gl_absname_cpp="$ac_cpp" ;;
  7050.                esac
  7051.                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  7052.                   sed -n '\#/stdint.h#{
  7053.                     s#.*"\(.*/stdint.h\)".*#\1#
  7054.                     s#^/[^/]#//&#
  7055.                     p
  7056.                     q
  7057.                   }'`'"'
  7058.           else
  7059.                gl_cv_next_stdint_h='<'stdint.h'>'
  7060.              fi
  7061.  
  7062.  
  7063. fi
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
  7065. $as_echo "$gl_cv_next_stdint_h" >&6; }
  7066.      fi
  7067.      NEXT_STDINT_H=$gl_cv_next_stdint_h
  7068.  
  7069.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  7070.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  7071.        gl_next_as_first_directive='<'stdint.h'>'
  7072.      else
  7073.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  7074.        gl_next_as_first_directive=$gl_cv_next_stdint_h
  7075.      fi
  7076.      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
  7077.  
  7078.  
  7079.  
  7080.  
  7081.   if test $ac_cv_header_stdint_h = yes; then
  7082.     HAVE_STDINT_H=1
  7083.   else
  7084.     HAVE_STDINT_H=0
  7085.   fi
  7086.  
  7087.  
  7088.     if test $ac_cv_header_stdint_h = yes; then
  7089.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
  7090. $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
  7091. if ${gl_cv_header_working_stdint_h+:} false; then :
  7092.   $as_echo_n "(cached) " >&6
  7093. else
  7094.   gl_cv_header_working_stdint_h=no
  7095.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7096. /* end confdefs.h.  */
  7097.  
  7098.  
  7099. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  7100. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  7101. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  7102. #include <stdint.h>
  7103. /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
  7104. #if !(defined WCHAR_MIN && defined WCHAR_MAX)
  7105. #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
  7106. #endif
  7107.  
  7108.  
  7109.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7110.      included before <wchar.h>.  */
  7111.   #include <stddef.h>
  7112.   #include <signal.h>
  7113.   #if HAVE_WCHAR_H
  7114.   # include <stdio.h>
  7115.   # include <time.h>
  7116.   # include <wchar.h>
  7117.   #endif
  7118.  
  7119.  
  7120. #ifdef INT8_MAX
  7121. int8_t a1 = INT8_MAX;
  7122. int8_t a1min = INT8_MIN;
  7123. #endif
  7124. #ifdef INT16_MAX
  7125. int16_t a2 = INT16_MAX;
  7126. int16_t a2min = INT16_MIN;
  7127. #endif
  7128. #ifdef INT32_MAX
  7129. int32_t a3 = INT32_MAX;
  7130. int32_t a3min = INT32_MIN;
  7131. #endif
  7132. #ifdef INT64_MAX
  7133. int64_t a4 = INT64_MAX;
  7134. int64_t a4min = INT64_MIN;
  7135. #endif
  7136. #ifdef UINT8_MAX
  7137. uint8_t b1 = UINT8_MAX;
  7138. #else
  7139. typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
  7140. #endif
  7141. #ifdef UINT16_MAX
  7142. uint16_t b2 = UINT16_MAX;
  7143. #endif
  7144. #ifdef UINT32_MAX
  7145. uint32_t b3 = UINT32_MAX;
  7146. #endif
  7147. #ifdef UINT64_MAX
  7148. uint64_t b4 = UINT64_MAX;
  7149. #endif
  7150. int_least8_t c1 = INT8_C (0x7f);
  7151. int_least8_t c1max = INT_LEAST8_MAX;
  7152. int_least8_t c1min = INT_LEAST8_MIN;
  7153. int_least16_t c2 = INT16_C (0x7fff);
  7154. int_least16_t c2max = INT_LEAST16_MAX;
  7155. int_least16_t c2min = INT_LEAST16_MIN;
  7156. int_least32_t c3 = INT32_C (0x7fffffff);
  7157. int_least32_t c3max = INT_LEAST32_MAX;
  7158. int_least32_t c3min = INT_LEAST32_MIN;
  7159. int_least64_t c4 = INT64_C (0x7fffffffffffffff);
  7160. int_least64_t c4max = INT_LEAST64_MAX;
  7161. int_least64_t c4min = INT_LEAST64_MIN;
  7162. uint_least8_t d1 = UINT8_C (0xff);
  7163. uint_least8_t d1max = UINT_LEAST8_MAX;
  7164. uint_least16_t d2 = UINT16_C (0xffff);
  7165. uint_least16_t d2max = UINT_LEAST16_MAX;
  7166. uint_least32_t d3 = UINT32_C (0xffffffff);
  7167. uint_least32_t d3max = UINT_LEAST32_MAX;
  7168. uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
  7169. uint_least64_t d4max = UINT_LEAST64_MAX;
  7170. int_fast8_t e1 = INT_FAST8_MAX;
  7171. int_fast8_t e1min = INT_FAST8_MIN;
  7172. int_fast16_t e2 = INT_FAST16_MAX;
  7173. int_fast16_t e2min = INT_FAST16_MIN;
  7174. int_fast32_t e3 = INT_FAST32_MAX;
  7175. int_fast32_t e3min = INT_FAST32_MIN;
  7176. int_fast64_t e4 = INT_FAST64_MAX;
  7177. int_fast64_t e4min = INT_FAST64_MIN;
  7178. uint_fast8_t f1 = UINT_FAST8_MAX;
  7179. uint_fast16_t f2 = UINT_FAST16_MAX;
  7180. uint_fast32_t f3 = UINT_FAST32_MAX;
  7181. uint_fast64_t f4 = UINT_FAST64_MAX;
  7182. #ifdef INTPTR_MAX
  7183. intptr_t g = INTPTR_MAX;
  7184. intptr_t gmin = INTPTR_MIN;
  7185. #endif
  7186. #ifdef UINTPTR_MAX
  7187. uintptr_t h = UINTPTR_MAX;
  7188. #endif
  7189. intmax_t i = INTMAX_MAX;
  7190. uintmax_t j = UINTMAX_MAX;
  7191.  
  7192. #include <limits.h> /* for CHAR_BIT */
  7193. #define TYPE_MINIMUM(t) \
  7194.   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
  7195. #define TYPE_MAXIMUM(t) \
  7196.   ((t) ((t) 0 < (t) -1 \
  7197.         ? (t) -1 \
  7198.         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
  7199. struct s {
  7200.   int check_PTRDIFF:
  7201.       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
  7202.       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
  7203.       ? 1 : -1;
  7204.   /* Detect bug in FreeBSD 6.0 / ia64.  */
  7205.   int check_SIG_ATOMIC:
  7206.       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
  7207.       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
  7208.       ? 1 : -1;
  7209.   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
  7210.   int check_WCHAR:
  7211.       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
  7212.       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
  7213.       ? 1 : -1;
  7214.   /* Detect bug in mingw.  */
  7215.   int check_WINT:
  7216.       WINT_MIN == TYPE_MINIMUM (wint_t)
  7217.       && WINT_MAX == TYPE_MAXIMUM (wint_t)
  7218.       ? 1 : -1;
  7219.  
  7220.   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
  7221.   int check_UINT8_C:
  7222.         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
  7223.   int check_UINT16_C:
  7224.         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
  7225.  
  7226.   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
  7227. #ifdef UINT8_MAX
  7228.   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
  7229. #endif
  7230. #ifdef UINT16_MAX
  7231.   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
  7232. #endif
  7233. #ifdef UINT32_MAX
  7234.   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
  7235. #endif
  7236. #ifdef UINT64_MAX
  7237.   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
  7238. #endif
  7239.   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
  7240.   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
  7241.   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
  7242.   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
  7243.   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
  7244.   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
  7245.   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
  7246.   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
  7247.   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
  7248.   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
  7249.   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
  7250. };
  7251.  
  7252. int
  7253. main ()
  7254. {
  7255.  
  7256.   ;
  7257.   return 0;
  7258. }
  7259. _ACEOF
  7260. if ac_fn_c_try_compile "$LINENO"; then :
  7261.                                                     if test "$cross_compiling" = yes; then :
  7262.                  gl_cv_header_working_stdint_h=yes
  7263.  
  7264. else
  7265.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7266. /* end confdefs.h.  */
  7267.  
  7268.  
  7269. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  7270. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  7271. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  7272. #include <stdint.h>
  7273.  
  7274.  
  7275.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7276.      included before <wchar.h>.  */
  7277.   #include <stddef.h>
  7278.   #include <signal.h>
  7279.   #if HAVE_WCHAR_H
  7280.   # include <stdio.h>
  7281.   # include <time.h>
  7282.   # include <wchar.h>
  7283.   #endif
  7284.  
  7285.  
  7286. #include <stdio.h>
  7287. #include <string.h>
  7288. #define MVAL(macro) MVAL1(macro)
  7289. #define MVAL1(expression) #expression
  7290. static const char *macro_values[] =
  7291.   {
  7292. #ifdef INT8_MAX
  7293.     MVAL (INT8_MAX),
  7294. #endif
  7295. #ifdef INT16_MAX
  7296.     MVAL (INT16_MAX),
  7297. #endif
  7298. #ifdef INT32_MAX
  7299.     MVAL (INT32_MAX),
  7300. #endif
  7301. #ifdef INT64_MAX
  7302.     MVAL (INT64_MAX),
  7303. #endif
  7304. #ifdef UINT8_MAX
  7305.     MVAL (UINT8_MAX),
  7306. #endif
  7307. #ifdef UINT16_MAX
  7308.     MVAL (UINT16_MAX),
  7309. #endif
  7310. #ifdef UINT32_MAX
  7311.     MVAL (UINT32_MAX),
  7312. #endif
  7313. #ifdef UINT64_MAX
  7314.     MVAL (UINT64_MAX),
  7315. #endif
  7316.     NULL
  7317.   };
  7318.  
  7319. int
  7320. main ()
  7321. {
  7322.  
  7323.   const char **mv;
  7324.   for (mv = macro_values; *mv != NULL; mv++)
  7325.     {
  7326.       const char *value = *mv;
  7327.       /* Test whether it looks like a cast expression.  */
  7328.       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
  7329.           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
  7330.           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
  7331.           || strncmp (value, "((int)"/*)*/, 6) == 0
  7332.           || strncmp (value, "((signed short)"/*)*/, 15) == 0
  7333.           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
  7334.         return mv - macro_values + 1;
  7335.     }
  7336.   return 0;
  7337.  
  7338.   ;
  7339.   return 0;
  7340. }
  7341. _ACEOF
  7342. if ac_fn_c_try_run "$LINENO"; then :
  7343.   gl_cv_header_working_stdint_h=yes
  7344. fi
  7345. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7346.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  7347. fi
  7348.  
  7349.  
  7350. fi
  7351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7352.  
  7353. fi
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
  7355. $as_echo "$gl_cv_header_working_stdint_h" >&6; }
  7356.   fi
  7357.   if test "$gl_cv_header_working_stdint_h" = yes; then
  7358.     STDINT_H=
  7359.   else
  7360.             for ac_header in sys/inttypes.h sys/bitypes.h
  7361. do :
  7362.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7363. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7364. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7365.   cat >>confdefs.h <<_ACEOF
  7366. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7367. _ACEOF
  7368.  
  7369. fi
  7370.  
  7371. done
  7372.  
  7373.     if test $ac_cv_header_sys_inttypes_h = yes; then
  7374.       HAVE_SYS_INTTYPES_H=1
  7375.     else
  7376.       HAVE_SYS_INTTYPES_H=0
  7377.     fi
  7378.  
  7379.     if test $ac_cv_header_sys_bitypes_h = yes; then
  7380.       HAVE_SYS_BITYPES_H=1
  7381.     else
  7382.       HAVE_SYS_BITYPES_H=0
  7383.     fi
  7384.  
  7385.  
  7386.  
  7387.  
  7388.   if test $APPLE_UNIVERSAL_BUILD = 0; then
  7389.  
  7390.  
  7391.   for gltype in ptrdiff_t size_t ; do
  7392.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  7393. $as_echo_n "checking for bit size of $gltype... " >&6; }
  7394. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  7395.   $as_echo_n "(cached) " >&6
  7396. else
  7397.   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
  7398.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7399.      included before <wchar.h>.  */
  7400.   #include <stddef.h>
  7401.   #include <signal.h>
  7402.   #if HAVE_WCHAR_H
  7403.   # include <stdio.h>
  7404.   # include <time.h>
  7405.   # include <wchar.h>
  7406.   #endif
  7407.  
  7408. #include <limits.h>"; then :
  7409.  
  7410. else
  7411.   result=unknown
  7412. fi
  7413.  
  7414.        eval gl_cv_bitsizeof_${gltype}=\$result
  7415.  
  7416. fi
  7417. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  7418.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7419. $as_echo "$ac_res" >&6; }
  7420.     eval result=\$gl_cv_bitsizeof_${gltype}
  7421.     if test $result = unknown; then
  7422.                                                 result=0
  7423.     fi
  7424.     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7425.     cat >>confdefs.h <<_ACEOF
  7426. #define BITSIZEOF_${GLTYPE} $result
  7427. _ACEOF
  7428.  
  7429.     eval BITSIZEOF_${GLTYPE}=\$result
  7430.   done
  7431.  
  7432.  
  7433.   fi
  7434.  
  7435.  
  7436.   for gltype in sig_atomic_t wchar_t wint_t ; do
  7437.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  7438. $as_echo_n "checking for bit size of $gltype... " >&6; }
  7439. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  7440.   $as_echo_n "(cached) " >&6
  7441. else
  7442.   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
  7443.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7444.      included before <wchar.h>.  */
  7445.   #include <stddef.h>
  7446.   #include <signal.h>
  7447.   #if HAVE_WCHAR_H
  7448.   # include <stdio.h>
  7449.   # include <time.h>
  7450.   # include <wchar.h>
  7451.   #endif
  7452.  
  7453. #include <limits.h>"; then :
  7454.  
  7455. else
  7456.   result=unknown
  7457. fi
  7458.  
  7459.        eval gl_cv_bitsizeof_${gltype}=\$result
  7460.  
  7461. fi
  7462. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  7463.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7464. $as_echo "$ac_res" >&6; }
  7465.     eval result=\$gl_cv_bitsizeof_${gltype}
  7466.     if test $result = unknown; then
  7467.                                                 result=0
  7468.     fi
  7469.     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7470.     cat >>confdefs.h <<_ACEOF
  7471. #define BITSIZEOF_${GLTYPE} $result
  7472. _ACEOF
  7473.  
  7474.     eval BITSIZEOF_${GLTYPE}=\$result
  7475.   done
  7476.  
  7477.  
  7478.  
  7479.  
  7480.   for gltype in sig_atomic_t wchar_t wint_t ; do
  7481.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
  7482. $as_echo_n "checking whether $gltype is signed... " >&6; }
  7483. if eval \${gl_cv_type_${gltype}_signed+:} false; then :
  7484.   $as_echo_n "(cached) " >&6
  7485. else
  7486.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7487. /* end confdefs.h.  */
  7488.  
  7489.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7490.      included before <wchar.h>.  */
  7491.   #include <stddef.h>
  7492.   #include <signal.h>
  7493.   #if HAVE_WCHAR_H
  7494.   # include <stdio.h>
  7495.   # include <time.h>
  7496.   # include <wchar.h>
  7497.   #endif
  7498.  
  7499.             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
  7500. int
  7501. main ()
  7502. {
  7503.  
  7504.   ;
  7505.   return 0;
  7506. }
  7507. _ACEOF
  7508. if ac_fn_c_try_compile "$LINENO"; then :
  7509.   result=yes
  7510. else
  7511.   result=no
  7512. fi
  7513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7514.        eval gl_cv_type_${gltype}_signed=\$result
  7515.  
  7516. fi
  7517. eval ac_res=\$gl_cv_type_${gltype}_signed
  7518.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7519. $as_echo "$ac_res" >&6; }
  7520.     eval result=\$gl_cv_type_${gltype}_signed
  7521.     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7522.     if test "$result" = yes; then
  7523.       cat >>confdefs.h <<_ACEOF
  7524. #define HAVE_SIGNED_${GLTYPE} 1
  7525. _ACEOF
  7526.  
  7527.       eval HAVE_SIGNED_${GLTYPE}=1
  7528.     else
  7529.       eval HAVE_SIGNED_${GLTYPE}=0
  7530.     fi
  7531.   done
  7532.  
  7533.  
  7534.   gl_cv_type_ptrdiff_t_signed=yes
  7535.   gl_cv_type_size_t_signed=no
  7536.   if test $APPLE_UNIVERSAL_BUILD = 0; then
  7537.  
  7538.  
  7539.   for gltype in ptrdiff_t size_t ; do
  7540.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  7541. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  7542. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  7543.   $as_echo_n "(cached) " >&6
  7544. else
  7545.   eval gl_cv_type_${gltype}_suffix=no
  7546.        eval result=\$gl_cv_type_${gltype}_signed
  7547.        if test "$result" = yes; then
  7548.          glsufu=
  7549.        else
  7550.          glsufu=u
  7551.        fi
  7552.        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  7553.          case $glsuf in
  7554.            '')  gltype1='int';;
  7555.            l)   gltype1='long int';;
  7556.            ll)  gltype1='long long int';;
  7557.            i64) gltype1='__int64';;
  7558.            u)   gltype1='unsigned int';;
  7559.            ul)  gltype1='unsigned long int';;
  7560.            ull) gltype1='unsigned long long int';;
  7561.            ui64)gltype1='unsigned __int64';;
  7562.          esac
  7563.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7564. /* end confdefs.h.  */
  7565.  
  7566.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7567.      included before <wchar.h>.  */
  7568.   #include <stddef.h>
  7569.   #include <signal.h>
  7570.   #if HAVE_WCHAR_H
  7571.   # include <stdio.h>
  7572.   # include <time.h>
  7573.   # include <wchar.h>
  7574.   #endif
  7575.  
  7576.               extern $gltype foo;
  7577.               extern $gltype1 foo;
  7578. int
  7579. main ()
  7580. {
  7581.  
  7582.   ;
  7583.   return 0;
  7584. }
  7585. _ACEOF
  7586. if ac_fn_c_try_compile "$LINENO"; then :
  7587.   eval gl_cv_type_${gltype}_suffix=\$glsuf
  7588. fi
  7589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7590.          eval result=\$gl_cv_type_${gltype}_suffix
  7591.          test "$result" != no && break
  7592.        done
  7593. fi
  7594. eval ac_res=\$gl_cv_type_${gltype}_suffix
  7595.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7596. $as_echo "$ac_res" >&6; }
  7597.     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7598.     eval result=\$gl_cv_type_${gltype}_suffix
  7599.     test "$result" = no && result=
  7600.     eval ${GLTYPE}_SUFFIX=\$result
  7601.     cat >>confdefs.h <<_ACEOF
  7602. #define ${GLTYPE}_SUFFIX $result
  7603. _ACEOF
  7604.  
  7605.   done
  7606.  
  7607.  
  7608.   fi
  7609.  
  7610.  
  7611.   for gltype in sig_atomic_t wchar_t wint_t ; do
  7612.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  7613. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  7614. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  7615.   $as_echo_n "(cached) " >&6
  7616. else
  7617.   eval gl_cv_type_${gltype}_suffix=no
  7618.        eval result=\$gl_cv_type_${gltype}_signed
  7619.        if test "$result" = yes; then
  7620.          glsufu=
  7621.        else
  7622.          glsufu=u
  7623.        fi
  7624.        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  7625.          case $glsuf in
  7626.            '')  gltype1='int';;
  7627.            l)   gltype1='long int';;
  7628.            ll)  gltype1='long long int';;
  7629.            i64) gltype1='__int64';;
  7630.            u)   gltype1='unsigned int';;
  7631.            ul)  gltype1='unsigned long int';;
  7632.            ull) gltype1='unsigned long long int';;
  7633.            ui64)gltype1='unsigned __int64';;
  7634.          esac
  7635.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7636. /* end confdefs.h.  */
  7637.  
  7638.   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  7639.      included before <wchar.h>.  */
  7640.   #include <stddef.h>
  7641.   #include <signal.h>
  7642.   #if HAVE_WCHAR_H
  7643.   # include <stdio.h>
  7644.   # include <time.h>
  7645.   # include <wchar.h>
  7646.   #endif
  7647.  
  7648.               extern $gltype foo;
  7649.               extern $gltype1 foo;
  7650. int
  7651. main ()
  7652. {
  7653.  
  7654.   ;
  7655.   return 0;
  7656. }
  7657. _ACEOF
  7658. if ac_fn_c_try_compile "$LINENO"; then :
  7659.   eval gl_cv_type_${gltype}_suffix=\$glsuf
  7660. fi
  7661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7662.          eval result=\$gl_cv_type_${gltype}_suffix
  7663.          test "$result" != no && break
  7664.        done
  7665. fi
  7666. eval ac_res=\$gl_cv_type_${gltype}_suffix
  7667.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7668. $as_echo "$ac_res" >&6; }
  7669.     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7670.     eval result=\$gl_cv_type_${gltype}_suffix
  7671.     test "$result" = no && result=
  7672.     eval ${GLTYPE}_SUFFIX=\$result
  7673.     cat >>confdefs.h <<_ACEOF
  7674. #define ${GLTYPE}_SUFFIX $result
  7675. _ACEOF
  7676.  
  7677.   done
  7678.  
  7679.  
  7680.  
  7681.     STDINT_H=stdint.h
  7682.   fi
  7683.  
  7684.    if test -n "$STDINT_H"; then
  7685.   GL_GENERATE_STDINT_H_TRUE=
  7686.   GL_GENERATE_STDINT_H_FALSE='#'
  7687. else
  7688.   GL_GENERATE_STDINT_H_TRUE='#'
  7689.   GL_GENERATE_STDINT_H_FALSE=
  7690. fi
  7691.  
  7692.  
  7693.  
  7694.  
  7695.  
  7696.  
  7697.  
  7698.  
  7699.  
  7700.  
  7701.  
  7702.  
  7703.  
  7704.      if test $gl_cv_have_include_next = yes; then
  7705.        gl_cv_next_string_h='<'string.h'>'
  7706.      else
  7707.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
  7708. $as_echo_n "checking absolute name of <string.h>... " >&6; }
  7709. if ${gl_cv_next_string_h+:} false; then :
  7710.   $as_echo_n "(cached) " >&6
  7711. else
  7712.  
  7713.                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7714. /* end confdefs.h.  */
  7715. #include <string.h>
  7716.  
  7717. _ACEOF
  7718.                                                                                                                         case "$host_os" in
  7719.                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
  7720.                  *)    gl_absname_cpp="$ac_cpp" ;;
  7721.                esac
  7722.                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  7723.                   sed -n '\#/string.h#{
  7724.                     s#.*"\(.*/string.h\)".*#\1#
  7725.                     s#^/[^/]#//&#
  7726.                     p
  7727.                     q
  7728.                   }'`'"'
  7729.  
  7730.  
  7731. fi
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
  7733. $as_echo "$gl_cv_next_string_h" >&6; }
  7734.      fi
  7735.      NEXT_STRING_H=$gl_cv_next_string_h
  7736.  
  7737.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  7738.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  7739.        gl_next_as_first_directive='<'string.h'>'
  7740.      else
  7741.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  7742.        gl_next_as_first_directive=$gl_cv_next_string_h
  7743.      fi
  7744.      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
  7745.  
  7746.  
  7747.  
  7748.  
  7749.  
  7750.  
  7751.     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r      strsignal strverscmp; do
  7752.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  7753.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  7754. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  7755. if eval \${$as_gl_Symbol+:} false; then :
  7756.   $as_echo_n "(cached) " >&6
  7757. else
  7758.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7759. /* end confdefs.h.  */
  7760. #include <string.h>
  7761.  
  7762. int
  7763. main ()
  7764. {
  7765. #undef $gl_func
  7766.   (void) $gl_func;
  7767.   ;
  7768.   return 0;
  7769. }
  7770. _ACEOF
  7771. if ac_fn_c_try_compile "$LINENO"; then :
  7772.   eval "$as_gl_Symbol=yes"
  7773. else
  7774.   eval "$as_gl_Symbol=no"
  7775. fi
  7776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7777. fi
  7778. eval ac_res=\$$as_gl_Symbol
  7779.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7780. $as_echo "$ac_res" >&6; }
  7781.      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  7782.   cat >>confdefs.h <<_ACEOF
  7783. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  7784. _ACEOF
  7785.  
  7786.                      eval ac_cv_have_decl_$gl_func=yes
  7787. fi
  7788.       done
  7789.  
  7790.  
  7791.  
  7792.    if false; then
  7793.   GL_COND_LIBTOOL_TRUE=
  7794.   GL_COND_LIBTOOL_FALSE='#'
  7795. else
  7796.   GL_COND_LIBTOOL_TRUE='#'
  7797.   GL_COND_LIBTOOL_FALSE=
  7798. fi
  7799.  
  7800.   gl_cond_libtool=false
  7801.   gl_libdeps=
  7802.   gl_ltlibdeps=
  7803.   gl_m4_base='m4'
  7804.  
  7805.  
  7806.  
  7807.  
  7808.  
  7809.  
  7810.  
  7811.  
  7812.  
  7813.   gl_source_base='lib'
  7814.  
  7815. if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  7816.  
  7817.  
  7818.  
  7819.  
  7820.  
  7821.  
  7822.  
  7823.  
  7824.   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
  7825.  
  7826.  
  7827.   for ac_header in bp-sym.h
  7828. do :
  7829.   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
  7830. if test "x$ac_cv_header_bp_sym_h" = xyes; then :
  7831.   cat >>confdefs.h <<_ACEOF
  7832. #define HAVE_BP_SYM_H 1
  7833. _ACEOF
  7834.  
  7835. fi
  7836.  
  7837. done
  7838.  
  7839.  
  7840. fi
  7841.  
  7842.  
  7843.  
  7844.  
  7845.  
  7846.           GNULIB_MEMCHR=1
  7847.  
  7848.  
  7849.  
  7850.  
  7851.  
  7852. $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
  7853.  
  7854.  
  7855.  
  7856.  
  7857.  
  7858.   if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
  7859.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
  7860. $as_echo_n "checking whether memmem works in linear time... " >&6; }
  7861. if ${gl_cv_func_memmem_works_fast+:} false; then :
  7862.   $as_echo_n "(cached) " >&6
  7863. else
  7864.   if test "$cross_compiling" = yes; then :
  7865.                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7866. /* end confdefs.h.  */
  7867.  
  7868. #include <features.h>
  7869. #ifdef __GNU_LIBRARY__
  7870.  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
  7871.      && !defined __UCLIBC__
  7872.   Lucky user
  7873.  #endif
  7874. #endif
  7875. #ifdef __CYGWIN__
  7876.  #include <cygwin/version.h>
  7877.  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
  7878.   Lucky user
  7879.  #endif
  7880. #endif
  7881.  
  7882. _ACEOF
  7883. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7884.   $EGREP "Lucky user" >/dev/null 2>&1; then :
  7885.   gl_cv_func_memmem_works_fast=yes
  7886. else
  7887.   gl_cv_func_memmem_works_fast="guessing no"
  7888. fi
  7889. rm -f conftest*
  7890.  
  7891.  
  7892. else
  7893.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7894. /* end confdefs.h.  */
  7895.  
  7896. #include <signal.h> /* for signal */
  7897. #include <string.h> /* for memmem */
  7898. #include <stdlib.h> /* for malloc */
  7899. #include <unistd.h> /* for alarm */
  7900. static void quit (int sig) { exit (sig + 128); }
  7901.  
  7902. int
  7903. main ()
  7904. {
  7905.  
  7906.     int result = 0;
  7907.     size_t m = 1000000;
  7908.     char *haystack = (char *) malloc (2 * m + 1);
  7909.     char *needle = (char *) malloc (m + 1);
  7910.     /* Failure to compile this test due to missing alarm is okay,
  7911.        since all such platforms (mingw) also lack memmem.  */
  7912.     signal (SIGALRM, quit);
  7913.     alarm (5);
  7914.     /* Check for quadratic performance.  */
  7915.     if (haystack && needle)
  7916.       {
  7917.         memset (haystack, 'A', 2 * m);
  7918.         haystack[2 * m] = 'B';
  7919.         memset (needle, 'A', m);
  7920.         needle[m] = 'B';
  7921.         if (!memmem (haystack, 2 * m + 1, needle, m + 1))
  7922.           result |= 1;
  7923.       }
  7924.     return result;
  7925.  
  7926.   ;
  7927.   return 0;
  7928. }
  7929. _ACEOF
  7930. if ac_fn_c_try_run "$LINENO"; then :
  7931.   gl_cv_func_memmem_works_fast=yes
  7932. else
  7933.   gl_cv_func_memmem_works_fast=no
  7934. fi
  7935. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7936.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  7937. fi
  7938.  
  7939.  
  7940. fi
  7941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
  7942. $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
  7943.     if test "$gl_cv_func_memmem_works_fast" != yes; then
  7944.       REPLACE_MEMMEM=1
  7945.     fi
  7946.   fi
  7947.  
  7948. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  7949.  
  7950.  
  7951.  
  7952.  
  7953.  
  7954.  
  7955.  
  7956.  
  7957.   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
  7958.  
  7959. fi
  7960.  
  7961.  
  7962.  
  7963.  
  7964.   for ac_func in memmem
  7965. do :
  7966.   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  7967. if test "x$ac_cv_func_memmem" = xyes; then :
  7968.   cat >>confdefs.h <<_ACEOF
  7969. #define HAVE_MEMMEM 1
  7970. _ACEOF
  7971.  
  7972. fi
  7973. done
  7974.  
  7975.   if test $ac_cv_func_memmem = yes; then
  7976.     HAVE_MEMMEM=1
  7977.   else
  7978.     HAVE_MEMMEM=0
  7979.   fi
  7980.  
  7981.   :
  7982.  
  7983.  
  7984.  
  7985.  
  7986.  
  7987.   if test $ac_cv_have_decl_memmem = no; then
  7988.     HAVE_DECL_MEMMEM=0
  7989.   else
  7990.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
  7991. $as_echo_n "checking whether memmem works... " >&6; }
  7992. if ${gl_cv_func_memmem_works_always+:} false; then :
  7993.   $as_echo_n "(cached) " >&6
  7994. else
  7995.   if test "$cross_compiling" = yes; then :
  7996.                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7997. /* end confdefs.h.  */
  7998.  
  7999. #ifdef __GNU_LIBRARY__
  8000.  #include <features.h>
  8001.  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
  8002.                           || __GLIBC_MINOR__ > 12)) \
  8003.       || (__GLIBC__ > 2)) \
  8004.      || defined __UCLIBC__
  8005.   Lucky user
  8006.  #endif
  8007. #elif defined __CYGWIN__
  8008.  #include <cygwin/version.h>
  8009.  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  8010.   Lucky user
  8011.  #endif
  8012. #else
  8013.   Lucky user
  8014. #endif
  8015.  
  8016. _ACEOF
  8017. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8018.   $EGREP "Lucky user" >/dev/null 2>&1; then :
  8019.   gl_cv_func_memmem_works_always=yes
  8020. else
  8021.   gl_cv_func_memmem_works_always="guessing no"
  8022. fi
  8023. rm -f conftest*
  8024.  
  8025.  
  8026. else
  8027.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8028. /* end confdefs.h.  */
  8029.  
  8030. #include <string.h> /* for memmem */
  8031. #define P "_EF_BF_BD"
  8032. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  8033. #define NEEDLE P P P P P
  8034.  
  8035. int
  8036. main ()
  8037. {
  8038.  
  8039.     int result = 0;
  8040.     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
  8041.       result |= 1;
  8042.     /* Check for empty needle behavior.  */
  8043.     {
  8044.       const char *haystack = "AAA";
  8045.       if (memmem (haystack, 3, NULL, 0) != haystack)
  8046.         result |= 2;
  8047.     }
  8048.     return result;
  8049.  
  8050.   ;
  8051.   return 0;
  8052. }
  8053. _ACEOF
  8054. if ac_fn_c_try_run "$LINENO"; then :
  8055.   gl_cv_func_memmem_works_always=yes
  8056. else
  8057.   gl_cv_func_memmem_works_always=no
  8058. fi
  8059. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8060.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  8061. fi
  8062.  
  8063.  
  8064. fi
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
  8066. $as_echo "$gl_cv_func_memmem_works_always" >&6; }
  8067.     if test "$gl_cv_func_memmem_works_always" != yes; then
  8068.       REPLACE_MEMMEM=1
  8069.     fi
  8070.   fi
  8071.   :
  8072.  
  8073. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  8074.  
  8075.  
  8076.  
  8077.  
  8078.  
  8079.  
  8080.  
  8081.  
  8082.   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
  8083.  
  8084. fi
  8085.  
  8086.  
  8087.  
  8088.  
  8089.  
  8090.           GNULIB_MEMMEM=1
  8091.  
  8092.  
  8093.  
  8094.  
  8095.  
  8096. $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
  8097.  
  8098.  
  8099.  
  8100.  
  8101.  
  8102.  
  8103.  
  8104.   :
  8105.  
  8106.  
  8107.  
  8108.  
  8109.  
  8110.   if test $ac_cv_func_sigaction = yes; then
  8111.     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  8112. "
  8113. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  8114.  
  8115. cat >>confdefs.h <<_ACEOF
  8116. #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
  8117. _ACEOF
  8118.  
  8119.  
  8120. fi
  8121.  
  8122.     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
  8123.       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
  8124.     fi
  8125.   else
  8126.     HAVE_SIGACTION=0
  8127.   fi
  8128.  
  8129. if test $HAVE_SIGACTION = 0; then
  8130.  
  8131.  
  8132.  
  8133.  
  8134.  
  8135.  
  8136.  
  8137.  
  8138.   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
  8139.  
  8140.  
  8141.  
  8142.  
  8143.  
  8144.  
  8145.  
  8146.   :
  8147.  
  8148.  
  8149.  
  8150.  
  8151.  
  8152.  
  8153.  
  8154.  
  8155.   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
  8156. #include <signal.h>
  8157.  
  8158. "
  8159. if test "x$ac_cv_type_siginfo_t" = xyes; then :
  8160.  
  8161. cat >>confdefs.h <<_ACEOF
  8162. #define HAVE_SIGINFO_T 1
  8163. _ACEOF
  8164.  
  8165.  
  8166. fi
  8167.  
  8168.   if test $ac_cv_type_siginfo_t = no; then
  8169.     HAVE_SIGINFO_T=0
  8170.   fi
  8171.  
  8172. fi
  8173.  
  8174.  
  8175.  
  8176.  
  8177.  
  8178.           GNULIB_SIGACTION=1
  8179.  
  8180.  
  8181.  
  8182.  
  8183.  
  8184. $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
  8185.  
  8186.  
  8187.  
  8188.  
  8189.  
  8190.  
  8191.  
  8192.  
  8193.  
  8194.  
  8195.  
  8196.  
  8197.  
  8198.      if test $gl_cv_have_include_next = yes; then
  8199.        gl_cv_next_signal_h='<'signal.h'>'
  8200.      else
  8201.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
  8202. $as_echo_n "checking absolute name of <signal.h>... " >&6; }
  8203. if ${gl_cv_next_signal_h+:} false; then :
  8204.   $as_echo_n "(cached) " >&6
  8205. else
  8206.  
  8207.                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8208. /* end confdefs.h.  */
  8209. #include <signal.h>
  8210.  
  8211. _ACEOF
  8212.                                                                                                                         case "$host_os" in
  8213.                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
  8214.                  *)    gl_absname_cpp="$ac_cpp" ;;
  8215.                esac
  8216.                                                             gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  8217.                   sed -n '\#/signal.h#{
  8218.                     s#.*"\(.*/signal.h\)".*#\1#
  8219.                     s#^/[^/]#//&#
  8220.                     p
  8221.                     q
  8222.                   }'`'"'
  8223.  
  8224.  
  8225. fi
  8226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
  8227. $as_echo "$gl_cv_next_signal_h" >&6; }
  8228.      fi
  8229.      NEXT_SIGNAL_H=$gl_cv_next_signal_h
  8230.  
  8231.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  8232.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  8233.        gl_next_as_first_directive='<'signal.h'>'
  8234.      else
  8235.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  8236.        gl_next_as_first_directive=$gl_cv_next_signal_h
  8237.      fi
  8238.      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
  8239.  
  8240.  
  8241.  
  8242.  
  8243.  
  8244. # AIX declares sig_atomic_t to already include volatile, and C89 compilers
  8245. # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
  8246.   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
  8247. #include <signal.h>
  8248.  
  8249. "
  8250. if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
  8251.  
  8252. else
  8253.   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
  8254. fi
  8255.  
  8256.  
  8257.  
  8258.  
  8259.  
  8260.   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
  8261. #include <signal.h>
  8262.  
  8263. "
  8264. if test "x$ac_cv_type_sighandler_t" = xyes; then :
  8265.  
  8266. else
  8267.   HAVE_SIGHANDLER_T=0
  8268. fi
  8269.  
  8270.  
  8271.  
  8272.     for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
  8273.     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  8274.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  8275. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  8276. if eval \${$as_gl_Symbol+:} false; then :
  8277.   $as_echo_n "(cached) " >&6
  8278. else
  8279.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8280. /* end confdefs.h.  */
  8281. #include <signal.h>
  8282.  
  8283. int
  8284. main ()
  8285. {
  8286. #undef $gl_func
  8287.   (void) $gl_func;
  8288.   ;
  8289.   return 0;
  8290. }
  8291. _ACEOF
  8292. if ac_fn_c_try_compile "$LINENO"; then :
  8293.   eval "$as_gl_Symbol=yes"
  8294. else
  8295.   eval "$as_gl_Symbol=no"
  8296. fi
  8297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8298. fi
  8299. eval ac_res=\$$as_gl_Symbol
  8300.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  8301. $as_echo "$ac_res" >&6; }
  8302.      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  8303.   cat >>confdefs.h <<_ACEOF
  8304. #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  8305. _ACEOF
  8306.  
  8307.                      eval ac_cv_have_decl_$gl_func=yes
  8308. fi
  8309.       done
  8310.  
  8311.  
  8312.  
  8313.  
  8314.   signals_not_posix=
  8315.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8316. /* end confdefs.h.  */
  8317. #include <signal.h>
  8318.  
  8319. _ACEOF
  8320. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8321.   $EGREP "sigset_t" >/dev/null 2>&1; then :
  8322.  
  8323. else
  8324.   signals_not_posix=1
  8325. fi
  8326. rm -f conftest*
  8327.  
  8328.   if test -z "$signals_not_posix"; then
  8329.     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
  8330. if test "x$ac_cv_func_sigprocmask" = xyes; then :
  8331.   gl_cv_func_sigprocmask=1
  8332. fi
  8333.  
  8334.   fi
  8335.   if test -z "$gl_cv_func_sigprocmask"; then
  8336.     HAVE_POSIX_SIGNALBLOCKING=0
  8337.   fi
  8338.  
  8339. if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
  8340.  
  8341.  
  8342.  
  8343.  
  8344.  
  8345.  
  8346.  
  8347.  
  8348.   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
  8349.  
  8350.  
  8351.  
  8352.   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
  8353. /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
  8354. #include <sys/types.h>
  8355. "
  8356. if test "x$ac_cv_type_sigset_t" = xyes; then :
  8357.  
  8358. cat >>confdefs.h <<_ACEOF
  8359. #define HAVE_SIGSET_T 1
  8360. _ACEOF
  8361.  
  8362. gl_cv_type_sigset_t=yes
  8363. else
  8364.   gl_cv_type_sigset_t=no
  8365. fi
  8366.  
  8367.   if test $gl_cv_type_sigset_t != yes; then
  8368.     HAVE_SIGSET_T=0
  8369.   fi
  8370.  
  8371.  
  8372. fi
  8373.  
  8374.  
  8375.  
  8376.  
  8377.  
  8378.           GNULIB_SIGPROCMASK=1
  8379.  
  8380.  
  8381.  
  8382.  
  8383.  
  8384. $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
  8385.  
  8386.  
  8387.  
  8388.  
  8389.  
  8390.  
  8391.   STDDEF_H=
  8392.   if test $gt_cv_c_wchar_t = no; then
  8393.     HAVE_WCHAR_T=0
  8394.     STDDEF_H=stddef.h
  8395.   fi
  8396.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
  8397. $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
  8398. if ${gl_cv_decl_null_works+:} false; then :
  8399.   $as_echo_n "(cached) " >&6
  8400. else
  8401.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8402. /* end confdefs.h.  */
  8403. #include <stddef.h>
  8404.       int test[2 * (sizeof NULL == sizeof (void *)) -1];
  8405.  
  8406. int
  8407. main ()
  8408. {
  8409.  
  8410.   ;
  8411.   return 0;
  8412. }
  8413. _ACEOF
  8414. if ac_fn_c_try_compile "$LINENO"; then :
  8415.   gl_cv_decl_null_works=yes
  8416. else
  8417.   gl_cv_decl_null_works=no
  8418. fi
  8419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8420. fi
  8421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
  8422. $as_echo "$gl_cv_decl_null_works" >&6; }
  8423.   if test $gl_cv_decl_null_works = no; then
  8424.     REPLACE_NULL=1
  8425.     STDDEF_H=stddef.h
  8426.   fi
  8427.  
  8428.    if test -n "$STDDEF_H"; then
  8429.   GL_GENERATE_STDDEF_H_TRUE=
  8430.   GL_GENERATE_STDDEF_H_FALSE='#'
  8431. else
  8432.   GL_GENERATE_STDDEF_H_TRUE='#'
  8433.   GL_GENERATE_STDDEF_H_FALSE=
  8434. fi
  8435.  
  8436.   if test -n "$STDDEF_H"; then
  8437.  
  8438.  
  8439.  
  8440.  
  8441.  
  8442.  
  8443.  
  8444.  
  8445.      if test $gl_cv_have_include_next = yes; then
  8446.        gl_cv_next_stddef_h='<'stddef.h'>'
  8447.      else
  8448.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
  8449. $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
  8450. if ${gl_cv_next_stddef_h+:} false; then :
  8451.   $as_echo_n "(cached) " >&6
  8452. else
  8453.  
  8454.                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8455. /* end confdefs.h.  */
  8456. #include <stddef.h>
  8457.  
  8458. _ACEOF
  8459.                                                                                                                         case "$host_os" in
  8460.                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
  8461.                  *)    gl_absname_cpp="$ac_cpp" ;;
  8462.                esac
  8463.                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  8464.                   sed -n '\#/stddef.h#{
  8465.                     s#.*"\(.*/stddef.h\)".*#\1#
  8466.                     s#^/[^/]#//&#
  8467.                     p
  8468.                     q
  8469.                   }'`'"'
  8470.  
  8471.  
  8472. fi
  8473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
  8474. $as_echo "$gl_cv_next_stddef_h" >&6; }
  8475.      fi
  8476.      NEXT_STDDEF_H=$gl_cv_next_stddef_h
  8477.  
  8478.      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  8479.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  8480.        gl_next_as_first_directive='<'stddef.h'>'
  8481.      else
  8482.        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  8483.        gl_next_as_first_directive=$gl_cv_next_stddef_h
  8484.      fi
  8485.      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
  8486.  
  8487.  
  8488.  
  8489.  
  8490.   fi
  8491.  
  8492.  
  8493.  
  8494.  
  8495.  
  8496.   # End of code from modules
  8497.  
  8498.  
  8499.  
  8500.  
  8501.  
  8502.  
  8503.  
  8504.  
  8505.  
  8506.   gltests_libdeps=
  8507.   gltests_ltlibdeps=
  8508.  
  8509.  
  8510.  
  8511.  
  8512.  
  8513.  
  8514.  
  8515.  
  8516.  
  8517.   gl_source_base='tests'
  8518.   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
  8519.  
  8520.   gl_module_indicator_condition=$gltests_WITNESS
  8521.  
  8522.  
  8523.  
  8524.  
  8525.  
  8526.  
  8527.  
  8528.  
  8529.  
  8530.   LIBGNU_LIBDEPS="$gl_libdeps"
  8531.  
  8532.   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  8533.  
  8534.  
  8535.  
  8536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8537. $as_echo_n "checking for ANSI C header files... " >&6; }
  8538. if ${ac_cv_header_stdc+:} false; then :
  8539.   $as_echo_n "(cached) " >&6
  8540. else
  8541.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8542. /* end confdefs.h.  */
  8543. #include <stdlib.h>
  8544. #include <stdarg.h>
  8545. #include <string.h>
  8546. #include <float.h>
  8547.  
  8548. int
  8549. main ()
  8550. {
  8551.  
  8552.   ;
  8553.   return 0;
  8554. }
  8555. _ACEOF
  8556. if ac_fn_c_try_compile "$LINENO"; then :
  8557.   ac_cv_header_stdc=yes
  8558. else
  8559.   ac_cv_header_stdc=no
  8560. fi
  8561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8562.  
  8563. if test $ac_cv_header_stdc = yes; then
  8564.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8565.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8566. /* end confdefs.h.  */
  8567. #include <string.h>
  8568.  
  8569. _ACEOF
  8570. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8571.   $EGREP "memchr" >/dev/null 2>&1; then :
  8572.  
  8573. else
  8574.   ac_cv_header_stdc=no
  8575. fi
  8576. rm -f conftest*
  8577.  
  8578. fi
  8579.  
  8580. if test $ac_cv_header_stdc = yes; then
  8581.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8582.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8583. /* end confdefs.h.  */
  8584. #include <stdlib.h>
  8585.  
  8586. _ACEOF
  8587. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8588.   $EGREP "free" >/dev/null 2>&1; then :
  8589.  
  8590. else
  8591.   ac_cv_header_stdc=no
  8592. fi
  8593. rm -f conftest*
  8594.  
  8595. fi
  8596.  
  8597. if test $ac_cv_header_stdc = yes; then
  8598.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8599.   if test "$cross_compiling" = yes; then :
  8600.   :
  8601. else
  8602.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8603. /* end confdefs.h.  */
  8604. #include <ctype.h>
  8605. #include <stdlib.h>
  8606. #if ((' ' & 0x0FF) == 0x020)
  8607. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8608. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8609. #else
  8610. # define ISLOWER(c) \
  8611.            (('a' <= (c) && (c) <= 'i') \
  8612.              || ('j' <= (c) && (c) <= 'r') \
  8613.              || ('s' <= (c) && (c) <= 'z'))
  8614. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8615. #endif
  8616.  
  8617. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8618. int
  8619. main ()
  8620. {
  8621.   int i;
  8622.   for (i = 0; i < 256; i++)
  8623.     if (XOR (islower (i), ISLOWER (i))
  8624.     || toupper (i) != TOUPPER (i))
  8625.       return 2;
  8626.   return 0;
  8627. }
  8628. _ACEOF
  8629. if ac_fn_c_try_run "$LINENO"; then :
  8630.  
  8631. else
  8632.   ac_cv_header_stdc=no
  8633. fi
  8634. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8635.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  8636. fi
  8637.  
  8638. fi
  8639. fi
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8641. $as_echo "$ac_cv_header_stdc" >&6; }
  8642. if test $ac_cv_header_stdc = yes; then
  8643.  
  8644. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8645.  
  8646. fi
  8647.  
  8648. for ac_header in syslog.h
  8649. do :
  8650.   ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  8651. if test "x$ac_cv_header_syslog_h" = xyes; then :
  8652.   cat >>confdefs.h <<_ACEOF
  8653. #define HAVE_SYSLOG_H 1
  8654. _ACEOF
  8655.  
  8656. fi
  8657.  
  8658. done
  8659.  
  8660.  
  8661. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  8662. if test "x$ac_cv_type_size_t" = xyes; then :
  8663.  
  8664. else
  8665.  
  8666. cat >>confdefs.h <<_ACEOF
  8667. #define size_t unsigned int
  8668. _ACEOF
  8669.  
  8670. fi
  8671.  
  8672. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  8673. # for constant arguments.  Useless!
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  8675. $as_echo_n "checking for working alloca.h... " >&6; }
  8676. if ${ac_cv_working_alloca_h+:} false; then :
  8677.   $as_echo_n "(cached) " >&6
  8678. else
  8679.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8680. /* end confdefs.h.  */
  8681. #include <alloca.h>
  8682. int
  8683. main ()
  8684. {
  8685. char *p = (char *) alloca (2 * sizeof (int));
  8686.               if (p) return 0;
  8687.   ;
  8688.   return 0;
  8689. }
  8690. _ACEOF
  8691. if ac_fn_c_try_link "$LINENO"; then :
  8692.   ac_cv_working_alloca_h=yes
  8693. else
  8694.   ac_cv_working_alloca_h=no
  8695. fi
  8696. rm -f core conftest.err conftest.$ac_objext \
  8697.     conftest$ac_exeext conftest.$ac_ext
  8698. fi
  8699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  8700. $as_echo "$ac_cv_working_alloca_h" >&6; }
  8701. if test $ac_cv_working_alloca_h = yes; then
  8702.  
  8703. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  8704.  
  8705. fi
  8706.  
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  8708. $as_echo_n "checking for alloca... " >&6; }
  8709. if ${ac_cv_func_alloca_works+:} false; then :
  8710.   $as_echo_n "(cached) " >&6
  8711. else
  8712.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8713. /* end confdefs.h.  */
  8714. #ifdef __GNUC__
  8715. # define alloca __builtin_alloca
  8716. #else
  8717. # ifdef _MSC_VER
  8718. #  include <malloc.h>
  8719. #  define alloca _alloca
  8720. # else
  8721. #  ifdef HAVE_ALLOCA_H
  8722. #   include <alloca.h>
  8723. #  else
  8724. #   ifdef _AIX
  8725.  #pragma alloca
  8726. #   else
  8727. #    ifndef alloca /* predefined by HP cc +Olibcalls */
  8728. void *alloca (size_t);
  8729. #    endif
  8730. #   endif
  8731. #  endif
  8732. # endif
  8733. #endif
  8734.  
  8735. int
  8736. main ()
  8737. {
  8738. char *p = (char *) alloca (1);
  8739.                     if (p) return 0;
  8740.   ;
  8741.   return 0;
  8742. }
  8743. _ACEOF
  8744. if ac_fn_c_try_link "$LINENO"; then :
  8745.   ac_cv_func_alloca_works=yes
  8746. else
  8747.   ac_cv_func_alloca_works=no
  8748. fi
  8749. rm -f core conftest.err conftest.$ac_objext \
  8750.     conftest$ac_exeext conftest.$ac_ext
  8751. fi
  8752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  8753. $as_echo "$ac_cv_func_alloca_works" >&6; }
  8754.  
  8755. if test $ac_cv_func_alloca_works = yes; then
  8756.  
  8757. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  8758.  
  8759. else
  8760.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  8761. # that cause trouble.  Some versions do not even contain alloca or
  8762. # contain a buggy version.  If you still want to use their alloca,
  8763. # use ar to extract alloca.o from them instead of compiling alloca.c.
  8764.  
  8765. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  8766.  
  8767. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  8768.  
  8769.  
  8770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  8771. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  8772. if ${ac_cv_os_cray+:} false; then :
  8773.   $as_echo_n "(cached) " >&6
  8774. else
  8775.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8776. /* end confdefs.h.  */
  8777. #if defined CRAY && ! defined CRAY2
  8778. webecray
  8779. #else
  8780. wenotbecray
  8781. #endif
  8782.  
  8783. _ACEOF
  8784. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8785.   $EGREP "webecray" >/dev/null 2>&1; then :
  8786.   ac_cv_os_cray=yes
  8787. else
  8788.   ac_cv_os_cray=no
  8789. fi
  8790. rm -f conftest*
  8791.  
  8792. fi
  8793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  8794. $as_echo "$ac_cv_os_cray" >&6; }
  8795. if test $ac_cv_os_cray = yes; then
  8796.   for ac_func in _getb67 GETB67 getb67; do
  8797.     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8798. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8799. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8800.  
  8801. cat >>confdefs.h <<_ACEOF
  8802. #define CRAY_STACKSEG_END $ac_func
  8803. _ACEOF
  8804.  
  8805.     break
  8806. fi
  8807.  
  8808.   done
  8809. fi
  8810.  
  8811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  8812. $as_echo_n "checking stack direction for C alloca... " >&6; }
  8813. if ${ac_cv_c_stack_direction+:} false; then :
  8814.   $as_echo_n "(cached) " >&6
  8815. else
  8816.   if test "$cross_compiling" = yes; then :
  8817.   ac_cv_c_stack_direction=0
  8818. else
  8819.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8820. /* end confdefs.h.  */
  8821. $ac_includes_default
  8822. int
  8823. find_stack_direction (int *addr, int depth)
  8824. {
  8825.   int dir, dummy = 0;
  8826.   if (! addr)
  8827.     addr = &dummy;
  8828.   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  8829.   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  8830.   return dir + dummy;
  8831. }
  8832.  
  8833. int
  8834. main (int argc, char **argv)
  8835. {
  8836.   return find_stack_direction (0, argc + !argv + 20) < 0;
  8837. }
  8838. _ACEOF
  8839. if ac_fn_c_try_run "$LINENO"; then :
  8840.   ac_cv_c_stack_direction=1
  8841. else
  8842.   ac_cv_c_stack_direction=-1
  8843. fi
  8844. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8845.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  8846. fi
  8847.  
  8848. fi
  8849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  8850. $as_echo "$ac_cv_c_stack_direction" >&6; }
  8851. cat >>confdefs.h <<_ACEOF
  8852. #define STACK_DIRECTION $ac_cv_c_stack_direction
  8853. _ACEOF
  8854.  
  8855.  
  8856. fi
  8857.  
  8858.  
  8859. have_win32=false
  8860. PTHREAD_FLAGS="-lpthread"
  8861. DLOPEN_FLAGS="-ldl"
  8862. WS2_LIBS=""
  8863. MM_LIBS=""
  8864. MATH_LIBS="-lm"
  8865. RT_LIBS="-lrt"
  8866.  
  8867. case $target in
  8868.   amd64-*)
  8869.     have_x86_64=true
  8870.     ;;
  8871.   x86_64-*)
  8872.     have_x86_64=true
  8873.     ;;
  8874.   *)
  8875.     have_x86_64=false
  8876.     ;;
  8877. esac
  8878.  
  8879. case $target in
  8880.   *-*-linux-gnu*)
  8881.     have_linux=true
  8882.     ;;
  8883.   *-*-mingw*)
  8884.     have_win32=true
  8885.     PTHREAD_FLAGS=""
  8886.     DLOPEN_FLAGS=""
  8887.     WS2_LIBS="-lws2_32"
  8888.     MM_LIBS="-lwinmm"
  8889.     RT_LIBS=""
  8890.     #AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
  8891.     ;;
  8892.   powerpc-*-darwin*)
  8893.     have_darwin=true
  8894.     CFLAGS="$CFLAGS -faltivec"
  8895.     PTHREAD_FLAGS=""
  8896.     RT_LIBS=""
  8897.     ;;
  8898.   *-*-darwin*)
  8899.     have_darwin=true
  8900.     PTHREAD_FLAGS=""
  8901.     RT_LIBS=""
  8902.     ;;
  8903.   *-*-freebsd*)
  8904.     PTHREAD_FLAGS=""
  8905.     DLOPEN_FLAGS=""
  8906.     RT_LIBS=""
  8907.     ;;
  8908. esac
  8909.  
  8910. has_winpthread=false
  8911. if test "x$have_win32" = xtrue; then
  8912.         has_winpthread=true
  8913.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lwinpthread" >&5
  8914. $as_echo_n "checking for nanosleep in -lwinpthread... " >&6; }
  8915. if ${ac_cv_lib_winpthread_nanosleep+:} false; then :
  8916.   $as_echo_n "(cached) " >&6
  8917. else
  8918.   ac_check_lib_save_LIBS=$LIBS
  8919. LIBS="-lwinpthread  $LIBS"
  8920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8921. /* end confdefs.h.  */
  8922.  
  8923. /* Override any GCC internal prototype to avoid an error.
  8924.    Use char because int might match the return type of a GCC
  8925.    builtin and then its argument prototype would still apply.  */
  8926. #ifdef __cplusplus
  8927. extern "C"
  8928. #endif
  8929. char nanosleep ();
  8930. int
  8931. main ()
  8932. {
  8933. return nanosleep ();
  8934.   ;
  8935.   return 0;
  8936. }
  8937. _ACEOF
  8938. if ac_fn_c_try_link "$LINENO"; then :
  8939.   ac_cv_lib_winpthread_nanosleep=yes
  8940. else
  8941.   ac_cv_lib_winpthread_nanosleep=no
  8942. fi
  8943. rm -f core conftest.err conftest.$ac_objext \
  8944.     conftest$ac_exeext conftest.$ac_ext
  8945. LIBS=$ac_check_lib_save_LIBS
  8946. fi
  8947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winpthread_nanosleep" >&5
  8948. $as_echo "$ac_cv_lib_winpthread_nanosleep" >&6; }
  8949. if test "x$ac_cv_lib_winpthread_nanosleep" = xyes; then :
  8950.   cat >>confdefs.h <<_ACEOF
  8951. #define HAVE_LIBWINPTHREAD 1
  8952. _ACEOF
  8953.  
  8954.   LIBS="-lwinpthread $LIBS"
  8955.  
  8956. else
  8957.   has_winpthread=false
  8958. fi
  8959.  
  8960.         PTHREAD_LIBS=-lwinpthread
  8961. fi
  8962.  
  8963. if test "x$has_winpthread" != xtrue; then
  8964.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  8965. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  8966. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  8967.   $as_echo_n "(cached) " >&6
  8968. else
  8969.   ac_check_lib_save_LIBS=$LIBS
  8970. #LIBS="-lpthread  $LIBS"
  8971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8972. /* end confdefs.h.  */
  8973.  
  8974. /* Override any GCC internal prototype to avoid an error.
  8975.    Use char because int might match the return type of a GCC
  8976.    builtin and then its argument prototype would still apply.  */
  8977. #ifdef __cplusplus
  8978. extern "C"
  8979. #endif
  8980. char pthread_create ();
  8981. int
  8982. main ()
  8983. {
  8984. return pthread_create ();
  8985.   ;
  8986.   return 0;
  8987. }
  8988. _ACEOF
  8989. if ac_fn_c_try_link "$LINENO"; then :
  8990.   ac_cv_lib_pthread_pthread_create=yes
  8991. else
  8992.   ac_cv_lib_pthread_pthread_create=no
  8993. fi
  8994. rm -f core conftest.err conftest.$ac_objext \
  8995.     conftest$ac_exeext conftest.$ac_ext
  8996. LIBS=$ac_check_lib_save_LIBS
  8997. fi
  8998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  8999. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  9000. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  9001.   cat >>confdefs.h <<_ACEOF
  9002. #define HAVE_LIBPTHREAD 1
  9003. _ACEOF
  9004.  
  9005.   LIBS="-lpthread $LIBS"
  9006.  
  9007. else
  9008.   as_fn_error $? "Could not find pthread library - please install libpthread" "$LINENO" 5
  9009. fi
  9010.  
  9011.         PTHREAD_LIBS=-lpthread
  9012. fi
  9013.  
  9014. # Drivers that are designed to be run on dedicated hardware should set standalone to yes
  9015. # All drivers should prepend an x to the drivercount
  9016.  
  9017. standalone="no"
  9018. drivercount=""
  9019.  
  9020. ants1="no"
  9021.  
  9022. # Check whether --enable-ants1 was given.
  9023. if test "${enable_ants1+set}" = set; then :
  9024.   enableval=$enable_ants1; ants1=$enableval
  9025.  
  9026. fi
  9027.  
  9028. if test "x$ants1" = xyes; then
  9029.  
  9030. $as_echo "#define USE_ANT_S1 1" >>confdefs.h
  9031.  
  9032.     drivercount=x$drivercount
  9033.     standalone="yes"
  9034. fi
  9035.  if test x$ants1 = xyes; then
  9036.   HAS_ANT_S1_TRUE=
  9037.   HAS_ANT_S1_FALSE='#'
  9038. else
  9039.   HAS_ANT_S1_TRUE='#'
  9040.   HAS_ANT_S1_FALSE=
  9041. fi
  9042.  
  9043.  
  9044. ants2="no"
  9045.  
  9046. # Check whether --enable-ants2 was given.
  9047. if test "${enable_ants2+set}" = set; then :
  9048.   enableval=$enable_ants2; ants2=$enableval
  9049.  
  9050. fi
  9051.  
  9052. if test "x$ants2" = xyes; then
  9053.  
  9054. $as_echo "#define USE_ANT_S2 1" >>confdefs.h
  9055.  
  9056.     drivercount=x$drivercount
  9057.     standalone="yes"
  9058. fi
  9059.  if test x$ants2 = xyes; then
  9060.   HAS_ANT_S2_TRUE=
  9061.   HAS_ANT_S2_FALSE='#'
  9062. else
  9063.   HAS_ANT_S2_TRUE='#'
  9064.   HAS_ANT_S2_FALSE=
  9065. fi
  9066.  
  9067.  
  9068. ants3="no"
  9069.  
  9070. # Check whether --enable-ants3 was given.
  9071. if test "${enable_ants3+set}" = set; then :
  9072.   enableval=$enable_ants3; ants3=$enableval
  9073.  
  9074. fi
  9075.  
  9076. if test "x$ants3" = xyes; then
  9077.  
  9078. $as_echo "#define USE_ANT_S3 1" >>confdefs.h
  9079.  
  9080.     drivercount=x$drivercount
  9081.     standalone="yes"
  9082. fi
  9083.  if test x$ants3 = xyes; then
  9084.   HAS_ANT_S3_TRUE=
  9085.   HAS_ANT_S3_FALSE='#'
  9086. else
  9087.   HAS_ANT_S3_TRUE='#'
  9088.   HAS_ANT_S3_FALSE=
  9089. fi
  9090.  
  9091.  
  9092. avalon="no"
  9093.  
  9094. # Check whether --enable-avalon was given.
  9095. if test "${enable_avalon+set}" = set; then :
  9096.   enableval=$enable_avalon; avalon=$enableval
  9097.  
  9098. fi
  9099.  
  9100. if test "x$avalon" = xyes; then
  9101.  
  9102. $as_echo "#define USE_AVALON 1" >>confdefs.h
  9103.  
  9104.     drivercount=x$drivercount
  9105. fi
  9106.  if test x$avalon = xyes; then
  9107.   HAS_AVALON_TRUE=
  9108.   HAS_AVALON_FALSE='#'
  9109. else
  9110.   HAS_AVALON_TRUE='#'
  9111.   HAS_AVALON_FALSE=
  9112. fi
  9113.  
  9114.  
  9115.  
  9116. avalon2="no"
  9117.  
  9118. # Check whether --enable-avalon2 was given.
  9119. if test "${enable_avalon2+set}" = set; then :
  9120.   enableval=$enable_avalon2; avalon2=$enableval
  9121.  
  9122. fi
  9123.  
  9124. if test "x$avalon2" = xyes; then
  9125.  
  9126. $as_echo "#define USE_AVALON2 1" >>confdefs.h
  9127.  
  9128.     drivercount=x$drivercount
  9129. fi
  9130.  if test x$avalon2 = xyes; then
  9131.   HAS_AVALON2_TRUE=
  9132.   HAS_AVALON2_FALSE='#'
  9133. else
  9134.   HAS_AVALON2_TRUE='#'
  9135.   HAS_AVALON2_FALSE=
  9136. fi
  9137.  
  9138.  
  9139.  
  9140. avalon4="no"
  9141.  
  9142. # Check whether --enable-avalon4 was given.
  9143. if test "${enable_avalon4+set}" = set; then :
  9144.   enableval=$enable_avalon4; avalon4=$enableval
  9145.  
  9146. fi
  9147.  
  9148. if test "x$avalon4" = xyes; then
  9149.  
  9150. $as_echo "#define USE_AVALON4 1" >>confdefs.h
  9151.  
  9152. fi
  9153.  if test x$avalon4 = xyes; then
  9154.   HAS_AVALON4_TRUE=
  9155.   HAS_AVALON4_FALSE='#'
  9156. else
  9157.   HAS_AVALON4_TRUE='#'
  9158.   HAS_AVALON4_FALSE=
  9159. fi
  9160.  
  9161.  
  9162. avalon7="no"
  9163.  
  9164. # Check whether --enable-avalon7 was given.
  9165. if test "${enable_avalon7+set}" = set; then :
  9166.   enableval=$enable_avalon7; avalon7=$enableval
  9167.  
  9168. fi
  9169.  
  9170. if test "x$avalon7" = xyes; then
  9171.  
  9172. $as_echo "#define USE_AVALON7 1" >>confdefs.h
  9173.  
  9174. fi
  9175.  if test x$avalon7 = xyes; then
  9176.   HAS_AVALON7_TRUE=
  9177.   HAS_AVALON7_FALSE='#'
  9178. else
  9179.   HAS_AVALON7_TRUE='#'
  9180.   HAS_AVALON7_FALSE=
  9181. fi
  9182.  
  9183.  
  9184. avalon_miner="no"
  9185.  
  9186. # Check whether --enable-avalon_miner was given.
  9187. if test "${enable_avalon_miner+set}" = set; then :
  9188.   enableval=$enable_avalon_miner; avalon_miner=$enableval
  9189.  
  9190. fi
  9191.  
  9192. if test "x$avalon_miner" = xyes; then
  9193.  
  9194. $as_echo "#define USE_AVALON_MINER 1" >>confdefs.h
  9195.  
  9196. fi
  9197.  if test x$avalon_miner = xyes; then
  9198.   HAS_AVALON_MINER_TRUE=
  9199.   HAS_AVALON_MINER_FALSE='#'
  9200. else
  9201.   HAS_AVALON_MINER_TRUE='#'
  9202.   HAS_AVALON_MINER_FALSE=
  9203. fi
  9204.  
  9205.  
  9206. bab="no"
  9207.  
  9208. # Check whether --enable-bab was given.
  9209. if test "${enable_bab+set}" = set; then :
  9210.   enableval=$enable_bab; bab=$enableval
  9211.  
  9212. fi
  9213.  
  9214. if test "x$bab" = xyes; then
  9215.  
  9216. $as_echo "#define USE_BAB 1" >>confdefs.h
  9217.  
  9218.     drivercount=x$drivercount
  9219.     standalone="yes"
  9220. fi
  9221.  if test x$bab = xyes; then
  9222.   HAS_BAB_TRUE=
  9223.   HAS_BAB_FALSE='#'
  9224. else
  9225.   HAS_BAB_TRUE='#'
  9226.   HAS_BAB_FALSE=
  9227. fi
  9228.  
  9229.  
  9230.  
  9231. bflsc="no"
  9232.  
  9233. # Check whether --enable-bflsc was given.
  9234. if test "${enable_bflsc+set}" = set; then :
  9235.   enableval=$enable_bflsc; bflsc=$enableval
  9236.  
  9237. fi
  9238.  
  9239. if test "x$bflsc" = xyes; then
  9240.  
  9241. $as_echo "#define USE_BFLSC 1" >>confdefs.h
  9242.  
  9243.     drivercount=x$drivercount
  9244. fi
  9245.  if test x$bflsc = xyes; then
  9246.   HAS_BFLSC_TRUE=
  9247.   HAS_BFLSC_FALSE='#'
  9248. else
  9249.   HAS_BFLSC_TRUE='#'
  9250.   HAS_BFLSC_FALSE=
  9251. fi
  9252.  
  9253.  
  9254.  
  9255. bitforce="no"
  9256.  
  9257. # Check whether --enable-bitforce was given.
  9258. if test "${enable_bitforce+set}" = set; then :
  9259.   enableval=$enable_bitforce; bitforce=$enableval
  9260.  
  9261. fi
  9262.  
  9263. if test "x$bitforce" = xyes; then
  9264.  
  9265. $as_echo "#define USE_BITFORCE 1" >>confdefs.h
  9266.  
  9267.     drivercount=x$drivercount
  9268. fi
  9269.  if test x$bitforce = xyes; then
  9270.   HAS_BITFORCE_TRUE=
  9271.   HAS_BITFORCE_FALSE='#'
  9272. else
  9273.   HAS_BITFORCE_TRUE='#'
  9274.   HAS_BITFORCE_FALSE=
  9275. fi
  9276.  
  9277.  
  9278.  
  9279. bitfury="no"
  9280.  
  9281. # Check whether --enable-bitfury was given.
  9282. if test "${enable_bitfury+set}" = set; then :
  9283.   enableval=$enable_bitfury; bitfury=$enableval
  9284.  
  9285. fi
  9286.  
  9287. if test "x$bitfury" = xyes; then
  9288.  
  9289. $as_echo "#define USE_BITFURY 1" >>confdefs.h
  9290.  
  9291.     drivercount=x$drivercount
  9292. fi
  9293.  if test x$bitfury = xyes; then
  9294.   HAS_BITFURY_TRUE=
  9295.   HAS_BITFURY_FALSE='#'
  9296. else
  9297.   HAS_BITFURY_TRUE='#'
  9298.   HAS_BITFURY_FALSE=
  9299. fi
  9300.  
  9301.  
  9302.  
  9303. bitmine_A1="no"
  9304.  
  9305. # Check whether --enable-bitmine_A1 was given.
  9306. if test "${enable_bitmine_A1+set}" = set; then :
  9307.   enableval=$enable_bitmine_A1; bitmine_A1=$enableval
  9308.  
  9309. fi
  9310.  
  9311. if test "x$bitmine_A1" = xyes; then
  9312.  
  9313. $as_echo "#define USE_BITMINE_A1 1" >>confdefs.h
  9314.  
  9315.     drivercount=x$drivercount
  9316.     standalone="yes"
  9317. fi
  9318.  if test x$bitmine_A1 = xyes; then
  9319.   HAS_BITMINE_A1_TRUE=
  9320.   HAS_BITMINE_A1_FALSE='#'
  9321. else
  9322.   HAS_BITMINE_A1_TRUE='#'
  9323.   HAS_BITMINE_A1_FALSE=
  9324. fi
  9325.  
  9326.  
  9327.  
  9328. blockerupter="no"
  9329.  
  9330. # Check whether --enable-blockerupter was given.
  9331. if test "${enable_blockerupter+set}" = set; then :
  9332.   enableval=$enable_blockerupter; blockerupter=$enableval
  9333.  
  9334. fi
  9335.  
  9336. if test "x$blockerupter" = xyes; then
  9337.  
  9338. $as_echo "#define USE_BLOCKERUPTER 1" >>confdefs.h
  9339.  
  9340.     drivercount=x$drivercount
  9341. fi
  9342.  if test x$blockerupter = xyes; then
  9343.   HAS_BLOCKERUPTER_TRUE=
  9344.   HAS_BLOCKERUPTER_FALSE='#'
  9345. else
  9346.   HAS_BLOCKERUPTER_TRUE='#'
  9347.   HAS_BLOCKERUPTER_FALSE=
  9348. fi
  9349.  
  9350.  
  9351.  
  9352. cointerra="no"
  9353.  
  9354. # Check whether --enable-cointerra was given.
  9355. if test "${enable_cointerra+set}" = set; then :
  9356.   enableval=$enable_cointerra; cointerra=$enableval
  9357.  
  9358. fi
  9359.  
  9360. if test "x$cointerra" = xyes; then
  9361.  
  9362. $as_echo "#define USE_COINTERRA 1" >>confdefs.h
  9363.  
  9364.     drivercount=x$drivercount
  9365. fi
  9366.  if test x$cointerra = xyes; then
  9367.   HAS_COINTERRA_TRUE=
  9368.   HAS_COINTERRA_FALSE='#'
  9369. else
  9370.   HAS_COINTERRA_TRUE='#'
  9371.   HAS_COINTERRA_FALSE=
  9372. fi
  9373.  
  9374.  
  9375.  
  9376. drillbit="no"
  9377.  
  9378. # Check whether --enable-drillbit was given.
  9379. if test "${enable_drillbit+set}" = set; then :
  9380.   enableval=$enable_drillbit; drillbit=$enableval
  9381.  
  9382. fi
  9383.  
  9384. if test "x$drillbit" = xyes; then
  9385.  
  9386. $as_echo "#define USE_DRILLBIT 1" >>confdefs.h
  9387.  
  9388.     drivercount=x$drivercount
  9389. fi
  9390.  if test x$drillbit = xyes; then
  9391.   HAS_DRILLBIT_TRUE=
  9392.   HAS_DRILLBIT_FALSE='#'
  9393. else
  9394.   HAS_DRILLBIT_TRUE='#'
  9395.   HAS_DRILLBIT_FALSE=
  9396. fi
  9397.  
  9398.  
  9399.  
  9400. hashfast="no"
  9401.  
  9402. # Check whether --enable-hashfast was given.
  9403. if test "${enable_hashfast+set}" = set; then :
  9404.   enableval=$enable_hashfast; hashfast=$enableval
  9405.  
  9406. fi
  9407.  
  9408. if test "x$hashfast" = xyes; then
  9409.  
  9410. $as_echo "#define USE_HASHFAST 1" >>confdefs.h
  9411.  
  9412.     drivercount=x$drivercount
  9413. fi
  9414.  if test x$hashfast = xyes; then
  9415.   HAS_HASHFAST_TRUE=
  9416.   HAS_HASHFAST_FALSE='#'
  9417. else
  9418.   HAS_HASHFAST_TRUE='#'
  9419.   HAS_HASHFAST_FALSE=
  9420. fi
  9421.  
  9422.  
  9423.  
  9424. hashratio="no"
  9425.  
  9426. # Check whether --enable-hashratio was given.
  9427. if test "${enable_hashratio+set}" = set; then :
  9428.   enableval=$enable_hashratio; hashratio=$enableval
  9429.  
  9430. fi
  9431.  
  9432. if test "x$hashratio" = xyes; then
  9433.  
  9434. $as_echo "#define USE_HASHRATIO 1" >>confdefs.h
  9435.  
  9436.     drivercount=x$drivercount
  9437. fi
  9438.  if test x$hashratio = xyes; then
  9439.   HAS_HASHRATIO_TRUE=
  9440.   HAS_HASHRATIO_FALSE='#'
  9441. else
  9442.   HAS_HASHRATIO_TRUE='#'
  9443.   HAS_HASHRATIO_FALSE=
  9444. fi
  9445.  
  9446.  
  9447.  
  9448. icarus="no"
  9449.  
  9450. # Check whether --enable-icarus was given.
  9451. if test "${enable_icarus+set}" = set; then :
  9452.   enableval=$enable_icarus; icarus=$enableval
  9453.  
  9454. fi
  9455.  
  9456. if test "x$icarus" = xyes; then
  9457.  
  9458. $as_echo "#define USE_ICARUS 1" >>confdefs.h
  9459.  
  9460.     drivercount=x$drivercount
  9461. fi
  9462.  if test x$icarus = xyes; then
  9463.   HAS_ICARUS_TRUE=
  9464.   HAS_ICARUS_FALSE='#'
  9465. else
  9466.   HAS_ICARUS_TRUE='#'
  9467.   HAS_ICARUS_FALSE=
  9468. fi
  9469.  
  9470.  
  9471.  
  9472. klondike="no"
  9473.  
  9474. # Check whether --enable-klondike was given.
  9475. if test "${enable_klondike+set}" = set; then :
  9476.   enableval=$enable_klondike; klondike=$enableval
  9477.  
  9478. fi
  9479.  
  9480. if test "x$klondike" = xyes; then
  9481.  
  9482. $as_echo "#define USE_KLONDIKE 1" >>confdefs.h
  9483.  
  9484.     drivercount=x$drivercount
  9485. fi
  9486.  if test x$klondike = xyes; then
  9487.   HAS_KLONDIKE_TRUE=
  9488.   HAS_KLONDIKE_FALSE='#'
  9489. else
  9490.   HAS_KLONDIKE_TRUE='#'
  9491.   HAS_KLONDIKE_FALSE=
  9492. fi
  9493.  
  9494.  
  9495.  
  9496. knc="no"
  9497.  
  9498. # Check whether --enable-knc was given.
  9499. if test "${enable_knc+set}" = set; then :
  9500.   enableval=$enable_knc; knc=$enableval
  9501.  
  9502. fi
  9503.  
  9504. if test "x$knc" = xyes; then
  9505.  
  9506. $as_echo "#define USE_KNC 1" >>confdefs.h
  9507.  
  9508.     drivercount=x$drivercount
  9509.     standalone="yes"
  9510. fi
  9511.  if test x$knc = xyes; then
  9512.   HAS_KNC_TRUE=
  9513.   HAS_KNC_FALSE='#'
  9514. else
  9515.   HAS_KNC_TRUE='#'
  9516.   HAS_KNC_FALSE=
  9517. fi
  9518.  
  9519.  
  9520.  
  9521. minion="no"
  9522.  
  9523. # Check whether --enable-minion was given.
  9524. if test "${enable_minion+set}" = set; then :
  9525.   enableval=$enable_minion; minion=$enableval
  9526.  
  9527. fi
  9528.  
  9529. if test "x$minion" = xyes; then
  9530.  
  9531. $as_echo "#define USE_MINION 1" >>confdefs.h
  9532.  
  9533.     drivercount=x$drivercount
  9534.     standalone="yes"
  9535. fi
  9536.  if test x$minion = xyes; then
  9537.   HAS_MINION_TRUE=
  9538.   HAS_MINION_FALSE='#'
  9539. else
  9540.   HAS_MINION_TRUE='#'
  9541.   HAS_MINION_FALSE=
  9542. fi
  9543.  
  9544.  
  9545.  
  9546. modminer="no"
  9547.  
  9548. # Check whether --enable-modminer was given.
  9549. if test "${enable_modminer+set}" = set; then :
  9550.   enableval=$enable_modminer; modminer=$enableval
  9551.  
  9552. fi
  9553.  
  9554. if test "x$modminer" = xyes; then
  9555.  
  9556. $as_echo "#define USE_MODMINER 1" >>confdefs.h
  9557.  
  9558.     drivercount=x$drivercount
  9559. fi
  9560.  if test x$modminer = xyes; then
  9561.   HAS_MODMINER_TRUE=
  9562.   HAS_MODMINER_FALSE='#'
  9563. else
  9564.   HAS_MODMINER_TRUE='#'
  9565.   HAS_MODMINER_FALSE=
  9566. fi
  9567.  
  9568.  
  9569.  
  9570. sp10="no"
  9571.  
  9572. # Check whether --enable-sp10 was given.
  9573. if test "${enable_sp10+set}" = set; then :
  9574.   enableval=$enable_sp10; sp10=$enableval
  9575.  
  9576. fi
  9577.  
  9578. if test "x$sp10" = xyes; then
  9579.  
  9580. $as_echo "#define USE_SP10 1" >>confdefs.h
  9581.  
  9582.     drivercount=x$drivercount
  9583.     standalone="yes"
  9584. fi
  9585.  if test x$sp10 = xyes; then
  9586.   HAS_SP10_TRUE=
  9587.   HAS_SP10_FALSE='#'
  9588. else
  9589.   HAS_SP10_TRUE='#'
  9590.   HAS_SP10_FALSE=
  9591. fi
  9592.  
  9593.  
  9594.  
  9595.  
  9596. sp30="no"
  9597.  
  9598. # Check whether --enable-sp30 was given.
  9599. if test "${enable_sp30+set}" = set; then :
  9600.   enableval=$enable_sp30; sp30=$enableval
  9601.  
  9602. fi
  9603.  
  9604. if test "x$sp30" = xyes; then
  9605.  
  9606. $as_echo "#define USE_SP30 1" >>confdefs.h
  9607.  
  9608.     drivercount=x$drivercount
  9609.     standalone="yes"
  9610. fi
  9611.  if test x$sp30 = xyes; then
  9612.   HAS_SP30_TRUE=
  9613.   HAS_SP30_FALSE='#'
  9614. else
  9615.   HAS_SP30_TRUE='#'
  9616.   HAS_SP30_FALSE=
  9617. fi
  9618.  
  9619.  
  9620.  
  9621. forcecombo="no"
  9622.  
  9623. # Check whether --enable-forcecombo was given.
  9624. if test "${enable_forcecombo+set}" = set; then :
  9625.   enableval=$enable_forcecombo; forcecombo=$enableval
  9626.  
  9627. fi
  9628.  
  9629. if test "x$forcecombo" = xyes; then
  9630.     standalone="no"
  9631. fi
  9632.  
  9633. curses="auto"
  9634.  
  9635.  
  9636. # Check whether --with-curses was given.
  9637. if test "${with_curses+set}" = set; then :
  9638.   withval=$with_curses; curses=$withval
  9639.  
  9640. fi
  9641.  
  9642. if test "x$curses" = "xno"; then
  9643.     cursesmsg='User specified --without-curses. TUI support DISABLED'
  9644. else
  9645.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing addstr" >&5
  9646. $as_echo_n "checking for library containing addstr... " >&6; }
  9647. if ${ac_cv_search_addstr+:} false; then :
  9648.   $as_echo_n "(cached) " >&6
  9649. else
  9650.   ac_func_search_save_LIBS=$LIBS
  9651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9652. /* end confdefs.h.  */
  9653.  
  9654. /* Override any GCC internal prototype to avoid an error.
  9655.    Use char because int might match the return type of a GCC
  9656.    builtin and then its argument prototype would still apply.  */
  9657. #ifdef __cplusplus
  9658. extern "C"
  9659. #endif
  9660. char addstr ();
  9661. int
  9662. main ()
  9663. {
  9664. return addstr ();
  9665.   ;
  9666.   return 0;
  9667. }
  9668. _ACEOF
  9669. for ac_lib in '' pdcurses ncurses pdcurses; do
  9670.   if test -z "$ac_lib"; then
  9671.     ac_res="none required"
  9672.   else
  9673.     ac_res=-l$ac_lib
  9674.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  9675.   fi
  9676.   if ac_fn_c_try_link "$LINENO"; then :
  9677.   ac_cv_search_addstr=$ac_res
  9678. fi
  9679. rm -f core conftest.err conftest.$ac_objext \
  9680.     conftest$ac_exeext
  9681.   if ${ac_cv_search_addstr+:} false; then :
  9682.   break
  9683. fi
  9684. done
  9685. if ${ac_cv_search_addstr+:} false; then :
  9686.  
  9687. else
  9688.   ac_cv_search_addstr=no
  9689. fi
  9690. rm conftest.$ac_ext
  9691. LIBS=$ac_func_search_save_LIBS
  9692. fi
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_addstr" >&5
  9694. $as_echo "$ac_cv_search_addstr" >&6; }
  9695. ac_res=$ac_cv_search_addstr
  9696. if test "$ac_res" != no; then :
  9697.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9698.  
  9699.         curses=yes
  9700.         cursesmsg="FOUND: ${ac_cv_search_addstr}"
  9701.  
  9702. $as_echo "#define HAVE_CURSES 1" >>confdefs.h
  9703.  
  9704.  
  9705. else
  9706.  
  9707.         if test "x$curses" = "xyes"; then
  9708.             as_fn_error $? "Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)" "$LINENO" 5
  9709.         else
  9710.             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev" >&5
  9711. $as_echo "$as_me: WARNING: Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev" >&2;}
  9712.             curses=no
  9713.             cursesmsg='NOT FOUND. TUI support DISABLED'
  9714.         fi
  9715.  
  9716. fi
  9717.  
  9718. fi
  9719.  
  9720.  
  9721. #Add a new device to this list if it needs libusb, along with a no on the end.
  9722. if test x$avalon$avalon2$avalon4$avalon7$avalon_miner$bitforce$bitfury$blockerupter$modminer$bflsc$icarus$hashfast$hashratio$klondike$drillbit$cointerra$ants1$ants3 != xnononononononononononononononononono; then
  9723.     want_usbutils=true
  9724. else
  9725.     want_usbutils=false
  9726. fi
  9727.  
  9728. if test x$bitfury != xno; then
  9729.     want_libbitfury=true
  9730. else
  9731.     want_libbitfury=false
  9732. fi
  9733.  
  9734. if test x$avalon2$avalon4$avalon7$avalon_miner$hashratio != xnonononono; then
  9735.     want_crc16=true
  9736. else
  9737.     want_crc16=false
  9738. fi
  9739.  
  9740.  if test x$modminer != xno; then
  9741.   NEED_FPGAUTILS_TRUE=
  9742.   NEED_FPGAUTILS_FALSE='#'
  9743. else
  9744.   NEED_FPGAUTILS_TRUE='#'
  9745.   NEED_FPGAUTILS_FALSE=
  9746. fi
  9747.  
  9748.  if test x$want_usbutils != xfalse; then
  9749.   WANT_USBUTILS_TRUE=
  9750.   WANT_USBUTILS_FALSE='#'
  9751. else
  9752.   WANT_USBUTILS_TRUE='#'
  9753.   WANT_USBUTILS_FALSE=
  9754. fi
  9755.  
  9756.  if test x$want_libbitfury != xfalse; then
  9757.   WANT_LIBBITFURY_TRUE=
  9758.   WANT_LIBBITFURY_FALSE='#'
  9759. else
  9760.   WANT_LIBBITFURY_TRUE='#'
  9761.   WANT_LIBBITFURY_FALSE=
  9762. fi
  9763.  
  9764.  if test x$curses = xyes; then
  9765.   HAVE_CURSES_TRUE=
  9766.   HAVE_CURSES_FALSE='#'
  9767. else
  9768.   HAVE_CURSES_TRUE='#'
  9769.   HAVE_CURSES_FALSE=
  9770. fi
  9771.  
  9772.  if test x$have_win32 = xtrue; then
  9773.   HAVE_WINDOWS_TRUE=
  9774.   HAVE_WINDOWS_FALSE='#'
  9775. else
  9776.   HAVE_WINDOWS_TRUE='#'
  9777.   HAVE_WINDOWS_FALSE=
  9778. fi
  9779.  
  9780.  if test x$have_x86_64 = xtrue; then
  9781.   HAVE_x86_64_TRUE=
  9782.   HAVE_x86_64_FALSE='#'
  9783. else
  9784.   HAVE_x86_64_TRUE='#'
  9785.   HAVE_x86_64_FALSE=
  9786. fi
  9787.  
  9788.  if test x$want_crc16 != xfalse; then
  9789.   WANT_CRC16_TRUE=
  9790.   WANT_CRC16_FALSE='#'
  9791. else
  9792.   WANT_CRC16_TRUE='#'
  9793.   WANT_CRC16_FALSE=
  9794. fi
  9795.  
  9796.  if test x$avalon4$avalon7 != xnono; then
  9797.   NEED_I2C_CONTEXT_TRUE=
  9798.   NEED_I2C_CONTEXT_FALSE='#'
  9799. else
  9800.   NEED_I2C_CONTEXT_TRUE='#'
  9801.   NEED_I2C_CONTEXT_FALSE=
  9802. fi
  9803.  
  9804.  
  9805. if test "x$want_usbutils" != xfalse; then
  9806.  
  9807. $as_echo "#define USE_USBUTILS 1" >>confdefs.h
  9808.  
  9809.     case $target in
  9810.         *-*-freebsd*)
  9811.             LIBUSB_LIBS="-lusb"
  9812.             LIBUSB_CFLAGS=""
  9813.  
  9814. $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
  9815.  
  9816.             ;;
  9817.         *)
  9818.  
  9819.  
  9820.  
  9821.  
  9822.  
  9823.  
  9824.  
  9825. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  9826.     if test -n "$ac_tool_prefix"; then
  9827.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  9828. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9830. $as_echo_n "checking for $ac_word... " >&6; }
  9831. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  9832.   $as_echo_n "(cached) " >&6
  9833. else
  9834.   case $PKG_CONFIG in
  9835.   [\\/]* | ?:[\\/]*)
  9836.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9837.   ;;
  9838.   *)
  9839.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9840. for as_dir in $PATH
  9841. do
  9842.   IFS=$as_save_IFS
  9843.   test -z "$as_dir" && as_dir=.
  9844.     for ac_exec_ext in '' $ac_executable_extensions; do
  9845.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9846.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9847.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9848.     break 2
  9849.   fi
  9850. done
  9851.   done
  9852. IFS=$as_save_IFS
  9853.  
  9854.   ;;
  9855. esac
  9856. fi
  9857. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9858. if test -n "$PKG_CONFIG"; then
  9859.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9860. $as_echo "$PKG_CONFIG" >&6; }
  9861. else
  9862.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9863. $as_echo "no" >&6; }
  9864. fi
  9865.  
  9866.  
  9867. fi
  9868. if test -z "$ac_cv_path_PKG_CONFIG"; then
  9869.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  9870.   # Extract the first word of "pkg-config", so it can be a program name with args.
  9871. set dummy pkg-config; ac_word=$2
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9873. $as_echo_n "checking for $ac_word... " >&6; }
  9874. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  9875.   $as_echo_n "(cached) " >&6
  9876. else
  9877.   case $ac_pt_PKG_CONFIG in
  9878.   [\\/]* | ?:[\\/]*)
  9879.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  9880.   ;;
  9881.   *)
  9882.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9883. for as_dir in $PATH
  9884. do
  9885.   IFS=$as_save_IFS
  9886.   test -z "$as_dir" && as_dir=.
  9887.     for ac_exec_ext in '' $ac_executable_extensions; do
  9888.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9889.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9890.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9891.     break 2
  9892.   fi
  9893. done
  9894.   done
  9895. IFS=$as_save_IFS
  9896.  
  9897.   ;;
  9898. esac
  9899. fi
  9900. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  9901. if test -n "$ac_pt_PKG_CONFIG"; then
  9902.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  9903. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  9904. else
  9905.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9906. $as_echo "no" >&6; }
  9907. fi
  9908.  
  9909.   if test "x$ac_pt_PKG_CONFIG" = x; then
  9910.     PKG_CONFIG=""
  9911.   else
  9912.     case $cross_compiling:$ac_tool_warned in
  9913. yes:)
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9915. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9916. ac_tool_warned=yes ;;
  9917. esac
  9918.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  9919.   fi
  9920. else
  9921.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  9922. fi
  9923.  
  9924. fi
  9925. if test -n "$PKG_CONFIG"; then
  9926.     _pkg_min_version=0.9.0
  9927.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  9928. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  9929.     if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  9930.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9931. $as_echo "yes" >&6; }
  9932.     else
  9933.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9934. $as_echo "no" >&6; }
  9935.         PKG_CONFIG=""
  9936.     fi
  9937. fi
  9938.  
  9939. pkg_failed=no
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  9941. $as_echo_n "checking for LIBUSB... " >&6; }
  9942.  
  9943. if test -n "$LIBUSB_CFLAGS"; then
  9944.     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  9945.  elif test -n "$PKG_CONFIG"; then
  9946.     if test -n "$PKG_CONFIG" && \
  9947.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  9948.   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  9949.   ac_status=$?
  9950.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9951.   test $ac_status = 0; }; then
  9952.   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  9953.               test "x$?" != "x0" && pkg_failed=yes
  9954. else
  9955.   pkg_failed=yes
  9956. fi
  9957.  else
  9958.     pkg_failed=untried
  9959. fi
  9960. if test -n "$LIBUSB_LIBS"; then
  9961.     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  9962.  elif test -n "$PKG_CONFIG"; then
  9963.     if test -n "$PKG_CONFIG" && \
  9964.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  9965.   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  9966.   ac_status=$?
  9967.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9968.   test $ac_status = 0; }; then
  9969.   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  9970.               test "x$?" != "x0" && pkg_failed=yes
  9971. else
  9972.   pkg_failed=yes
  9973. fi
  9974.  else
  9975.     pkg_failed=untried
  9976. fi
  9977.  
  9978.  
  9979.  
  9980. if test $pkg_failed = yes; then
  9981.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9982. $as_echo "no" >&6; }
  9983.  
  9984. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9985.         _pkg_short_errors_supported=yes
  9986. else
  9987.         _pkg_short_errors_supported=no
  9988. fi
  9989.         if test $_pkg_short_errors_supported = yes; then
  9990.             LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  9991.         else
  9992.             LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  9993.         fi
  9994.     # Put the nasty error message in config.log where it belongs
  9995.     echo "$LIBUSB_PKG_ERRORS" >&5
  9996.  
  9997.     as_fn_error $? "Could not find usb library - please install libusb-1.0" "$LINENO" 5
  9998. elif test $pkg_failed = untried; then
  9999.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10000. $as_echo "no" >&6; }
  10001.     as_fn_error $? "Could not find usb library - please install libusb-1.0" "$LINENO" 5
  10002. else
  10003.     LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  10004.     LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  10005.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10006. $as_echo "yes" >&6; }
  10007.  
  10008. $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
  10009.  
  10010. fi
  10011.             ;;
  10012.     esac
  10013. else
  10014.     LIBUSB_LIBS=""
  10015. fi
  10016.  
  10017. djansson="no"
  10018.  
  10019. # Check whether --with-system-jansson was given.
  10020. if test "${with_system_jansson+set}" = set; then :
  10021.   withval=$with_system_jansson; djansson=$withval
  10022.  
  10023. fi
  10024.  
  10025.  
  10026. if test "x$djansson" != xno; then
  10027.     case $target in
  10028.         *-*-freebsd*)
  10029.             JANSSON_LIBS="-ljansson"
  10030.             JANSSON_CFLAGS=""
  10031.  
  10032. $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
  10033.  
  10034.             ;;
  10035.         *)
  10036.  
  10037. pkg_failed=no
  10038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5
  10039. $as_echo_n "checking for JANSSON... " >&6; }
  10040.  
  10041. if test -n "$JANSSON_CFLAGS"; then
  10042.     pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
  10043.  elif test -n "$PKG_CONFIG"; then
  10044.     if test -n "$PKG_CONFIG" && \
  10045.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.6\""; } >&5
  10046.   ($PKG_CONFIG --exists --print-errors "jansson >= 2.6") 2>&5
  10047.   ac_status=$?
  10048.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10049.   test $ac_status = 0; }; then
  10050.   pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.6" 2>/dev/null`
  10051.               test "x$?" != "x0" && pkg_failed=yes
  10052. else
  10053.   pkg_failed=yes
  10054. fi
  10055.  else
  10056.     pkg_failed=untried
  10057. fi
  10058. if test -n "$JANSSON_LIBS"; then
  10059.     pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
  10060.  elif test -n "$PKG_CONFIG"; then
  10061.     if test -n "$PKG_CONFIG" && \
  10062.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.6\""; } >&5
  10063.   ($PKG_CONFIG --exists --print-errors "jansson >= 2.6") 2>&5
  10064.   ac_status=$?
  10065.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10066.   test $ac_status = 0; }; then
  10067.   pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.6" 2>/dev/null`
  10068.               test "x$?" != "x0" && pkg_failed=yes
  10069. else
  10070.   pkg_failed=yes
  10071. fi
  10072.  else
  10073.     pkg_failed=untried
  10074. fi
  10075.  
  10076.  
  10077.  
  10078. if test $pkg_failed = yes; then
  10079.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10080. $as_echo "no" >&6; }
  10081.  
  10082. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10083.         _pkg_short_errors_supported=yes
  10084. else
  10085.         _pkg_short_errors_supported=no
  10086. fi
  10087.         if test $_pkg_short_errors_supported = yes; then
  10088.             JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.6" 2>&1`
  10089.         else
  10090.             JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.6" 2>&1`
  10091.         fi
  10092.     # Put the nasty error message in config.log where it belongs
  10093.     echo "$JANSSON_PKG_ERRORS" >&5
  10094.  
  10095.     as_fn_error $? "Could not find jansson library - please install jansson >= 2.6" "$LINENO" 5
  10096. elif test $pkg_failed = untried; then
  10097.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10098. $as_echo "no" >&6; }
  10099.     as_fn_error $? "Could not find jansson library - please install jansson >= 2.6" "$LINENO" 5
  10100. else
  10101.     JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
  10102.     JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
  10103.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10104. $as_echo "yes" >&6; }
  10105.  
  10106. $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
  10107.  
  10108. fi
  10109.             ;;
  10110.     esac
  10111. else
  10112.  
  10113.  
  10114. subdirs="$subdirs compat/jansson-2.9"
  10115.  
  10116.     JANSSON_LIBS="compat/jansson-2.9/src/.libs/libjansson.a"
  10117. fi
  10118.  
  10119.  if test x$djansson = xno; then
  10120.   WANT_STATIC_JANSSON_TRUE=
  10121.   WANT_STATIC_JANSSON_FALSE='#'
  10122. else
  10123.   WANT_STATIC_JANSSON_TRUE='#'
  10124.   WANT_STATIC_JANSSON_FALSE=
  10125. fi
  10126.  
  10127.  
  10128.  
  10129.  
  10130.  
  10131.  
  10132.  
  10133.  
  10134.  
  10135. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10136.     if test -n "$ac_tool_prefix"; then
  10137.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10138. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10140. $as_echo_n "checking for $ac_word... " >&6; }
  10141. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10142.   $as_echo_n "(cached) " >&6
  10143. else
  10144.   case $PKG_CONFIG in
  10145.   [\\/]* | ?:[\\/]*)
  10146.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10147.   ;;
  10148.   *)
  10149.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10150. for as_dir in $PATH
  10151. do
  10152.   IFS=$as_save_IFS
  10153.   test -z "$as_dir" && as_dir=.
  10154.     for ac_exec_ext in '' $ac_executable_extensions; do
  10155.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10156.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10157.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10158.     break 2
  10159.   fi
  10160. done
  10161.   done
  10162. IFS=$as_save_IFS
  10163.  
  10164.   ;;
  10165. esac
  10166. fi
  10167. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10168. if test -n "$PKG_CONFIG"; then
  10169.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10170. $as_echo "$PKG_CONFIG" >&6; }
  10171. else
  10172.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10173. $as_echo "no" >&6; }
  10174. fi
  10175.  
  10176.  
  10177. fi
  10178. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10179.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  10180.   # Extract the first word of "pkg-config", so it can be a program name with args.
  10181. set dummy pkg-config; ac_word=$2
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10183. $as_echo_n "checking for $ac_word... " >&6; }
  10184. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  10185.   $as_echo_n "(cached) " >&6
  10186. else
  10187.   case $ac_pt_PKG_CONFIG in
  10188.   [\\/]* | ?:[\\/]*)
  10189.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10190.   ;;
  10191.   *)
  10192.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10193. for as_dir in $PATH
  10194. do
  10195.   IFS=$as_save_IFS
  10196.   test -z "$as_dir" && as_dir=.
  10197.     for ac_exec_ext in '' $ac_executable_extensions; do
  10198.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10199.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10200.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10201.     break 2
  10202.   fi
  10203. done
  10204.   done
  10205. IFS=$as_save_IFS
  10206.  
  10207.   ;;
  10208. esac
  10209. fi
  10210. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10211. if test -n "$ac_pt_PKG_CONFIG"; then
  10212.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10213. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10214. else
  10215.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10216. $as_echo "no" >&6; }
  10217. fi
  10218.  
  10219.   if test "x$ac_pt_PKG_CONFIG" = x; then
  10220.     PKG_CONFIG=""
  10221.   else
  10222.     case $cross_compiling:$ac_tool_warned in
  10223. yes:)
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10225. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10226. ac_tool_warned=yes ;;
  10227. esac
  10228.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  10229.   fi
  10230. else
  10231.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10232. fi
  10233.  
  10234. fi
  10235. if test -n "$PKG_CONFIG"; then
  10236.     _pkg_min_version=0.9.0
  10237.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  10238. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10239.     if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10240.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10241. $as_echo "yes" >&6; }
  10242.     else
  10243.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10244. $as_echo "no" >&6; }
  10245.         PKG_CONFIG=""
  10246.     fi
  10247. fi
  10248.  
  10249. if test "x$have_cgminer_sdk" = "xtrue"; then
  10250.     if test "x$have_x86_64" = xtrue; then
  10251.         ARCH_DIR=x86_64
  10252.     else
  10253.         ARCH_DIR=x86
  10254.     fi
  10255.     PKG_CONFIG="${PKG_CONFIG:-pkg-config} --define-variable=arch=$ARCH_DIR --define-variable=target=$target --define-variable=cgminersdkdir=$CGMINER_SDK"
  10256.     PKG_CONFIG_PATH="$CGMINER_SDK/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
  10257. fi
  10258.  
  10259.  
  10260.  
  10261.  
  10262. # Check whether --enable-libcurl was given.
  10263. if test "${enable_libcurl+set}" = set; then :
  10264.   enableval=$enable_libcurl; libcurl=$enableval
  10265.  
  10266. fi
  10267.  
  10268.  
  10269. static_curl="no"
  10270. if test "x$libcurl" != xno; then
  10271.     if test "x$have_win32" != xtrue; then
  10272.  
  10273. pkg_failed=no
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
  10275. $as_echo_n "checking for LIBCURL... " >&6; }
  10276.  
  10277. if test -n "$LIBCURL_CFLAGS"; then
  10278.     pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
  10279.  elif test -n "$PKG_CONFIG"; then
  10280.     if test -n "$PKG_CONFIG" && \
  10281.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.25.0\""; } >&5
  10282.   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.25.0") 2>&5
  10283.   ac_status=$?
  10284.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10285.   test $ac_status = 0; }; then
  10286.   pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.25.0" 2>/dev/null`
  10287.               test "x$?" != "x0" && pkg_failed=yes
  10288. else
  10289.   pkg_failed=yes
  10290. fi
  10291.  else
  10292.     pkg_failed=untried
  10293. fi
  10294. if test -n "$LIBCURL_LIBS"; then
  10295.     pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
  10296.  elif test -n "$PKG_CONFIG"; then
  10297.     if test -n "$PKG_CONFIG" && \
  10298.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.25.0\""; } >&5
  10299.   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.25.0") 2>&5
  10300.   ac_status=$?
  10301.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10302.   test $ac_status = 0; }; then
  10303.   pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.25.0" 2>/dev/null`
  10304.               test "x$?" != "x0" && pkg_failed=yes
  10305. else
  10306.   pkg_failed=yes
  10307. fi
  10308.  else
  10309.     pkg_failed=untried
  10310. fi
  10311.  
  10312.  
  10313.  
  10314. if test $pkg_failed = yes; then
  10315.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10316. $as_echo "no" >&6; }
  10317.  
  10318. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10319.         _pkg_short_errors_supported=yes
  10320. else
  10321.         _pkg_short_errors_supported=no
  10322. fi
  10323.         if test $_pkg_short_errors_supported = yes; then
  10324.             LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.25.0" 2>&1`
  10325.         else
  10326.             LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.25.0" 2>&1`
  10327.         fi
  10328.     # Put the nasty error message in config.log where it belongs
  10329.     echo "$LIBCURL_PKG_ERRORS" >&5
  10330.  
  10331.  
  10332. pkg_failed=no
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
  10334. $as_echo_n "checking for LIBCURL... " >&6; }
  10335.  
  10336. if test -n "$LIBCURL_CFLAGS"; then
  10337.     pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
  10338.  elif test -n "$PKG_CONFIG"; then
  10339.     if test -n "$PKG_CONFIG" && \
  10340.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.2\""; } >&5
  10341.   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.2") 2>&5
  10342.   ac_status=$?
  10343.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10344.   test $ac_status = 0; }; then
  10345.   pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.18.2" 2>/dev/null`
  10346.               test "x$?" != "x0" && pkg_failed=yes
  10347. else
  10348.   pkg_failed=yes
  10349. fi
  10350.  else
  10351.     pkg_failed=untried
  10352. fi
  10353. if test -n "$LIBCURL_LIBS"; then
  10354.     pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
  10355.  elif test -n "$PKG_CONFIG"; then
  10356.     if test -n "$PKG_CONFIG" && \
  10357.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.2\""; } >&5
  10358.   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.2") 2>&5
  10359.   ac_status=$?
  10360.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10361.   test $ac_status = 0; }; then
  10362.   pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.18.2" 2>/dev/null`
  10363.               test "x$?" != "x0" && pkg_failed=yes
  10364. else
  10365.   pkg_failed=yes
  10366. fi
  10367.  else
  10368.     pkg_failed=untried
  10369. fi
  10370.  
  10371.  
  10372.  
  10373. if test $pkg_failed = yes; then
  10374.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10375. $as_echo "no" >&6; }
  10376.  
  10377. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10378.         _pkg_short_errors_supported=yes
  10379. else
  10380.         _pkg_short_errors_supported=no
  10381. fi
  10382.         if test $_pkg_short_errors_supported = yes; then
  10383.             LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.18.2" 2>&1`
  10384.         else
  10385.             LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.18.2" 2>&1`
  10386.         fi
  10387.     # Put the nasty error message in config.log where it belongs
  10388.     echo "$LIBCURL_PKG_ERRORS" >&5
  10389.  
  10390.     as_fn_error $? "Missing required libcurl dev >= 7.18.2" "$LINENO" 5
  10391. elif test $pkg_failed = untried; then
  10392.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10393. $as_echo "no" >&6; }
  10394.     as_fn_error $? "Missing required libcurl dev >= 7.18.2" "$LINENO" 5
  10395. else
  10396.     LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
  10397.     LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
  10398.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10399. $as_echo "yes" >&6; }
  10400.  
  10401. fi
  10402. elif test $pkg_failed = untried; then
  10403.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10404. $as_echo "no" >&6; }
  10405.  
  10406. pkg_failed=no
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
  10408. $as_echo_n "checking for LIBCURL... " >&6; }
  10409.  
  10410. if test -n "$LIBCURL_CFLAGS"; then
  10411.     pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
  10412.  elif test -n "$PKG_CONFIG"; then
  10413.     if test -n "$PKG_CONFIG" && \
  10414.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.2\""; } >&5
  10415.   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.2") 2>&5
  10416.   ac_status=$?
  10417.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10418.   test $ac_status = 0; }; then
  10419.   pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.18.2" 2>/dev/null`
  10420.               test "x$?" != "x0" && pkg_failed=yes
  10421. else
  10422.   pkg_failed=yes
  10423. fi
  10424.  else
  10425.     pkg_failed=untried
  10426. fi
  10427. if test -n "$LIBCURL_LIBS"; then
  10428.     pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
  10429.  elif test -n "$PKG_CONFIG"; then
  10430.     if test -n "$PKG_CONFIG" && \
  10431.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.2\""; } >&5
  10432.   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.2") 2>&5
  10433.   ac_status=$?
  10434.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10435.   test $ac_status = 0; }; then
  10436.   pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.18.2" 2>/dev/null`
  10437.               test "x$?" != "x0" && pkg_failed=yes
  10438. else
  10439.   pkg_failed=yes
  10440. fi
  10441.  else
  10442.     pkg_failed=untried
  10443. fi
  10444.  
  10445.  
  10446.  
  10447. if test $pkg_failed = yes; then
  10448.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10449. $as_echo "no" >&6; }
  10450.  
  10451. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10452.         _pkg_short_errors_supported=yes
  10453. else
  10454.         _pkg_short_errors_supported=no
  10455. fi
  10456.         if test $_pkg_short_errors_supported = yes; then
  10457.             LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.18.2" 2>&1`
  10458.         else
  10459.             LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.18.2" 2>&1`
  10460.         fi
  10461.     # Put the nasty error message in config.log where it belongs
  10462.     echo "$LIBCURL_PKG_ERRORS" >&5
  10463.  
  10464.     as_fn_error $? "Missing required libcurl dev >= 7.18.2" "$LINENO" 5
  10465. elif test $pkg_failed = untried; then
  10466.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10467. $as_echo "no" >&6; }
  10468.     as_fn_error $? "Missing required libcurl dev >= 7.18.2" "$LINENO" 5
  10469. else
  10470.     LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
  10471.     LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
  10472.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10473. $as_echo "yes" >&6; }
  10474.  
  10475. fi
  10476. else
  10477.     LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
  10478.     LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
  10479.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10480. $as_echo "yes" >&6; }
  10481.  
  10482. $as_echo "#define CURL_HAS_KEEPALIVE 1" >>confdefs.h
  10483.  
  10484. fi
  10485.     else
  10486.  
  10487. pkg_failed=no
  10488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
  10489. $as_echo_n "checking for LIBCURL... " >&6; }
  10490.  
  10491. if test -n "$LIBCURL_CFLAGS"; then
  10492.     pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
  10493.  elif test -n "$PKG_CONFIG"; then
  10494.     if test -n "$PKG_CONFIG" && \
  10495.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.25.0\""; } >&5
  10496.   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.25.0") 2>&5
  10497.   ac_status=$?
  10498.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10499.   test $ac_status = 0; }; then
  10500.   pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.25.0" 2>/dev/null`
  10501.               test "x$?" != "x0" && pkg_failed=yes
  10502. else
  10503.   pkg_failed=yes
  10504. fi
  10505.  else
  10506.     pkg_failed=untried
  10507. fi
  10508. if test -n "$LIBCURL_LIBS"; then
  10509.     pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
  10510.  elif test -n "$PKG_CONFIG"; then
  10511.     if test -n "$PKG_CONFIG" && \
  10512.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.25.0\""; } >&5
  10513.   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.25.0") 2>&5
  10514.   ac_status=$?
  10515.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10516.   test $ac_status = 0; }; then
  10517.   pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.25.0" 2>/dev/null`
  10518.               test "x$?" != "x0" && pkg_failed=yes
  10519. else
  10520.   pkg_failed=yes
  10521. fi
  10522.  else
  10523.     pkg_failed=untried
  10524. fi
  10525.  
  10526.  
  10527.  
  10528. if test $pkg_failed = yes; then
  10529.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10530. $as_echo "no" >&6; }
  10531.  
  10532. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10533.         _pkg_short_errors_supported=yes
  10534. else
  10535.         _pkg_short_errors_supported=no
  10536. fi
  10537.         if test $_pkg_short_errors_supported = yes; then
  10538.             LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.25.0" 2>&1`
  10539.         else
  10540.             LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.25.0" 2>&1`
  10541.         fi
  10542.     # Put the nasty error message in config.log where it belongs
  10543.     echo "$LIBCURL_PKG_ERRORS" >&5
  10544.  
  10545.     as_fn_error $? "Missing required libcurl dev >= 7.25.0" "$LINENO" 5
  10546. elif test $pkg_failed = untried; then
  10547.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10548. $as_echo "no" >&6; }
  10549.     as_fn_error $? "Missing required libcurl dev >= 7.25.0" "$LINENO" 5
  10550. else
  10551.     LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
  10552.     LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
  10553.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10554. $as_echo "yes" >&6; }
  10555.  
  10556. fi
  10557.         $as_echo "#define CURL_HAS_KEEPALIVE 1" >>confdefs.h
  10558.  
  10559.         static_curl="yes"
  10560.     fi
  10561.  
  10562. $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
  10563.  
  10564. else
  10565.     LIBCURL_LIBS=""
  10566. fi
  10567.  
  10568.  if test x$static_curl = xyes; then
  10569.   STATIC_CURL_TRUE=
  10570.   STATIC_CURL_FALSE='#'
  10571. else
  10572.   STATIC_CURL_TRUE='#'
  10573.   STATIC_CURL_FALSE=
  10574. fi
  10575.  
  10576.  
  10577. libsystemd="no"
  10578.  
  10579. # Check whether --enable-libsystemd was given.
  10580. if test "${enable_libsystemd+set}" = set; then :
  10581.   enableval=$enable_libsystemd; libsystemd=$enableval
  10582.  
  10583. fi
  10584.  
  10585.  
  10586. if test "x$libsystemd" != xno; then
  10587.     if test "x$have_linux" != xtrue; then
  10588.         as_fn_error $? "libsystemd is only supported on Linux platforms" "$LINENO" 5
  10589.     fi
  10590.  
  10591.  
  10592. pkg_failed=no
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD" >&5
  10594. $as_echo_n "checking for LIBSYSTEMD... " >&6; }
  10595.  
  10596. if test -n "$LIBSYSTEMD_CFLAGS"; then
  10597.     pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
  10598.  elif test -n "$PKG_CONFIG"; then
  10599.     if test -n "$PKG_CONFIG" && \
  10600.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
  10601.   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
  10602.   ac_status=$?
  10603.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10604.   test $ac_status = 0; }; then
  10605.   pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
  10606.               test "x$?" != "x0" && pkg_failed=yes
  10607. else
  10608.   pkg_failed=yes
  10609. fi
  10610.  else
  10611.     pkg_failed=untried
  10612. fi
  10613. if test -n "$LIBSYSTEMD_LIBS"; then
  10614.     pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
  10615.  elif test -n "$PKG_CONFIG"; then
  10616.     if test -n "$PKG_CONFIG" && \
  10617.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
  10618.   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
  10619.   ac_status=$?
  10620.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10621.   test $ac_status = 0; }; then
  10622.   pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
  10623.               test "x$?" != "x0" && pkg_failed=yes
  10624. else
  10625.   pkg_failed=yes
  10626. fi
  10627.  else
  10628.     pkg_failed=untried
  10629. fi
  10630.  
  10631.  
  10632.  
  10633. if test $pkg_failed = yes; then
  10634.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10635. $as_echo "no" >&6; }
  10636.  
  10637. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10638.         _pkg_short_errors_supported=yes
  10639. else
  10640.         _pkg_short_errors_supported=no
  10641. fi
  10642.         if test $_pkg_short_errors_supported = yes; then
  10643.             LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
  10644.         else
  10645.             LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
  10646.         fi
  10647.     # Put the nasty error message in config.log where it belongs
  10648.     echo "$LIBSYSTEMD_PKG_ERRORS" >&5
  10649.  
  10650.     as_fn_error $? "Could not find libsystemd dev" "$LINENO" 5
  10651. elif test $pkg_failed = untried; then
  10652.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10653. $as_echo "no" >&6; }
  10654.     as_fn_error $? "Could not find libsystemd dev" "$LINENO" 5
  10655. else
  10656.     LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
  10657.     LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
  10658.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10659. $as_echo "yes" >&6; }
  10660.  
  10661. fi
  10662.  
  10663. $as_echo "#define USE_LIBSYSTEMD 1" >>confdefs.h
  10664.  
  10665. else
  10666.     LIBSYSTEMD_LIBS=""
  10667. fi
  10668.  
  10669. #check execv signature
  10670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10671. /* end confdefs.h.  */
  10672.  
  10673.            #include <process.h>
  10674.            int execv(const char*, const char*const*);
  10675.  
  10676. _ACEOF
  10677. if ac_fn_c_try_compile "$LINENO"; then :
  10678.  
  10679. $as_echo "#define EXECV_2ND_ARG_TYPE const char* const*" >>confdefs.h
  10680.  
  10681. else
  10682.  
  10683. $as_echo "#define EXECV_2ND_ARG_TYPE char* const*" >>confdefs.h
  10684.  
  10685. fi
  10686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10687.  
  10688. # All the configuration checks.  Regrettably, the __attribute__ checks will
  10689. # give false positives on old GCCs, since they just cause warnings.  But that's
  10690. # fairly harmless.
  10691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10692. /* end confdefs.h.  */
  10693. static void __attribute__((cold)) cleanup(void) { }
  10694. _ACEOF
  10695. if ac_fn_c_try_compile "$LINENO"; then :
  10696.  
  10697. $as_echo "#define HAVE_ATTRIBUTE_COLD 1" >>confdefs.h
  10698.  
  10699. fi
  10700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10702. /* end confdefs.h.  */
  10703. static void __attribute__((const)) cleanup(void) { }
  10704. _ACEOF
  10705. if ac_fn_c_try_compile "$LINENO"; then :
  10706.  
  10707. $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
  10708.  
  10709. fi
  10710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10712. /* end confdefs.h.  */
  10713. static void __attribute__((noreturn)) cleanup(void) { exit(1); }
  10714. _ACEOF
  10715. if ac_fn_c_try_compile "$LINENO"; then :
  10716.  
  10717. $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
  10718.  
  10719. fi
  10720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10722. /* end confdefs.h.  */
  10723. static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }
  10724. _ACEOF
  10725. if ac_fn_c_try_compile "$LINENO"; then :
  10726.  
  10727. $as_echo "#define HAVE_ATTRIBUTE_PRINTF 1" >>confdefs.h
  10728.  
  10729. fi
  10730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10732. /* end confdefs.h.  */
  10733. static void __attribute__((unused)) cleanup(void) { }
  10734. _ACEOF
  10735. if ac_fn_c_try_compile "$LINENO"; then :
  10736.  
  10737. $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
  10738.  
  10739. fi
  10740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10742. /* end confdefs.h.  */
  10743. static void __attribute__((used)) cleanup(void) { }
  10744. _ACEOF
  10745. if ac_fn_c_try_compile "$LINENO"; then :
  10746.  
  10747. $as_echo "#define HAVE_ATTRIBUTE_USED 1" >>confdefs.h
  10748.  
  10749. fi
  10750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10752. /* end confdefs.h.  */
  10753. int main(void) { return __builtin_constant_p(1) ? 0 : 1; }
  10754. _ACEOF
  10755. if ac_fn_c_try_link "$LINENO"; then :
  10756.  
  10757. $as_echo "#define HAVE_BUILTIN_CONSTANT_P 1" >>confdefs.h
  10758.  
  10759. fi
  10760. rm -f core conftest.err conftest.$ac_objext \
  10761.     conftest$ac_exeext conftest.$ac_ext
  10762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10763. /* end confdefs.h.  */
  10764. int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }
  10765. _ACEOF
  10766. if ac_fn_c_try_link "$LINENO"; then :
  10767.  
  10768. $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
  10769.  
  10770. fi
  10771. rm -f core conftest.err conftest.$ac_objext \
  10772.     conftest$ac_exeext conftest.$ac_ext
  10773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10774. /* end confdefs.h.  */
  10775. static int __attribute__((warn_unused_result)) func(int x) { return x; }
  10776. _ACEOF
  10777. if ac_fn_c_try_compile "$LINENO"; then :
  10778.  
  10779. $as_echo "#define HAVE_WARN_UNUSED_RESULT 1" >>confdefs.h
  10780.  
  10781. fi
  10782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10783.  
  10784. if test "x$prefix" = xNONE; then
  10785.     prefix=/usr/local
  10786. fi
  10787.  
  10788.  
  10789. cat >>confdefs.h <<_ACEOF
  10790. #define CGMINER_PREFIX "$prefix/bin"
  10791. _ACEOF
  10792.  
  10793.  
  10794.  
  10795.  
  10796.  
  10797.  
  10798.  
  10799.  
  10800.  
  10801.  
  10802.  
  10803.  
  10804.  
  10805. ac_config_files="$ac_config_files Makefile compat/Makefile ccan/Makefile lib/Makefile"
  10806.  
  10807. cat >confcache <<\_ACEOF
  10808. # This file is a shell script that caches the results of configure
  10809. # tests run on this system so they can be shared between configure
  10810. # scripts and configure runs, see configure's option --config-cache.
  10811. # It is not useful on other systems.  If it contains results you don't
  10812. # want to keep, you may remove or edit it.
  10813. #
  10814. # config.status only pays attention to the cache file if you give it
  10815. # the --recheck option to rerun configure.
  10816. #
  10817. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10818. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10819. # following values.
  10820.  
  10821. _ACEOF
  10822.  
  10823. # The following way of writing the cache mishandles newlines in values,
  10824. # but we know of no workaround that is simple, portable, and efficient.
  10825. # So, we kill variables containing newlines.
  10826. # Ultrix sh set writes to stderr and can't be redirected directly,
  10827. # and sets the high bit in the cache file unless we assign to the vars.
  10828. (
  10829.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10830.     eval ac_val=\$$ac_var
  10831.     case $ac_val in #(
  10832.     *${as_nl}*)
  10833.       case $ac_var in #(
  10834.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10835. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10836.       esac
  10837.       case $ac_var in #(
  10838.       _ | IFS | as_nl) ;; #(
  10839.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10840.       *) { eval $ac_var=; unset $ac_var;} ;;
  10841.       esac ;;
  10842.     esac
  10843.   done
  10844.  
  10845.   (set) 2>&1 |
  10846.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10847.     *${as_nl}ac_space=\ *)
  10848.       # `set' does not quote correctly, so add quotes: double-quote
  10849.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  10850.       sed -n \
  10851.     "s/'/'\\\\''/g;
  10852.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10853.       ;; #(
  10854.     *)
  10855.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  10856.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10857.       ;;
  10858.     esac |
  10859.     sort
  10860. ) |
  10861.   sed '
  10862.      /^ac_cv_env_/b end
  10863.      t clear
  10864.      :clear
  10865.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10866.      t end
  10867.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10868.      :end' >>confcache
  10869. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10870.   if test -w "$cache_file"; then
  10871.     if test "x$cache_file" != "x/dev/null"; then
  10872.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10873. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10874.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  10875.     cat confcache >"$cache_file"
  10876.       else
  10877.         case $cache_file in #(
  10878.         */* | ?:*)
  10879.       mv -f confcache "$cache_file"$$ &&
  10880.       mv -f "$cache_file"$$ "$cache_file" ;; #(
  10881.         *)
  10882.       mv -f confcache "$cache_file" ;;
  10883.     esac
  10884.       fi
  10885.     fi
  10886.   else
  10887.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10888. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10889.   fi
  10890. fi
  10891. rm -f confcache
  10892.  
  10893. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10894. # Let make expand exec_prefix.
  10895. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10896.  
  10897. DEFS=-DHAVE_CONFIG_H
  10898.  
  10899. ac_libobjs=
  10900. ac_ltlibobjs=
  10901. U=
  10902. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10903.   # 1. Remove the extension, and $U if already installed.
  10904.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10905.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10906.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  10907.   #    will be set to the directory where LIBOBJS objects are built.
  10908.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10909.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10910. done
  10911. LIBOBJS=$ac_libobjs
  10912.  
  10913. LTLIBOBJS=$ac_ltlibobjs
  10914.  
  10915.  
  10916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10917. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10918.    if test -n "$am_sleep_pid"; then
  10919.      # Hide warnings about reused PIDs.
  10920.      wait $am_sleep_pid 2>/dev/null
  10921.    fi
  10922.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10923. $as_echo "done" >&6; }
  10924.  if test -n "$EXEEXT"; then
  10925.   am__EXEEXT_TRUE=
  10926.   am__EXEEXT_FALSE='#'
  10927. else
  10928.   am__EXEEXT_TRUE='#'
  10929.   am__EXEEXT_FALSE=
  10930. fi
  10931.  
  10932. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10933.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  10934. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10935. fi
  10936. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10937.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10938. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10939. fi
  10940. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10941.   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  10942. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10943. fi
  10944. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10945.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10946. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10947. fi
  10948. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  10949.   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
  10950. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10951. fi
  10952. if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
  10953.   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
  10954. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10955. fi
  10956. if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
  10957.   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
  10958. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10959. fi
  10960.  
  10961.     gl_libobjs=
  10962.     gl_ltlibobjs=
  10963.     if test -n "$gl_LIBOBJS"; then
  10964.       # Remove the extension.
  10965.       sed_drop_objext='s/\.o$//;s/\.obj$//'
  10966.       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  10967.         gl_libobjs="$gl_libobjs $i.$ac_objext"
  10968.         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  10969.       done
  10970.     fi
  10971.     gl_LIBOBJS=$gl_libobjs
  10972.  
  10973.     gl_LTLIBOBJS=$gl_ltlibobjs
  10974.  
  10975.  
  10976.  
  10977.     gltests_libobjs=
  10978.     gltests_ltlibobjs=
  10979.     if test -n "$gltests_LIBOBJS"; then
  10980.       # Remove the extension.
  10981.       sed_drop_objext='s/\.o$//;s/\.obj$//'
  10982.       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  10983.         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  10984.         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  10985.       done
  10986.     fi
  10987.     gltests_LIBOBJS=$gltests_libobjs
  10988.  
  10989.     gltests_LTLIBOBJS=$gltests_ltlibobjs
  10990.  
  10991.  
  10992. if test -z "${HAS_ANT_S1_TRUE}" && test -z "${HAS_ANT_S1_FALSE}"; then
  10993.   as_fn_error $? "conditional \"HAS_ANT_S1\" was never defined.
  10994. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10995. fi
  10996. if test -z "${HAS_ANT_S2_TRUE}" && test -z "${HAS_ANT_S2_FALSE}"; then
  10997.   as_fn_error $? "conditional \"HAS_ANT_S2\" was never defined.
  10998. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10999. fi
  11000. if test -z "${HAS_ANT_S3_TRUE}" && test -z "${HAS_ANT_S3_FALSE}"; then
  11001.   as_fn_error $? "conditional \"HAS_ANT_S3\" was never defined.
  11002. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11003. fi
  11004. if test -z "${HAS_AVALON_TRUE}" && test -z "${HAS_AVALON_FALSE}"; then
  11005.   as_fn_error $? "conditional \"HAS_AVALON\" was never defined.
  11006. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11007. fi
  11008. if test -z "${HAS_AVALON2_TRUE}" && test -z "${HAS_AVALON2_FALSE}"; then
  11009.   as_fn_error $? "conditional \"HAS_AVALON2\" was never defined.
  11010. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11011. fi
  11012. if test -z "${HAS_AVALON4_TRUE}" && test -z "${HAS_AVALON4_FALSE}"; then
  11013.   as_fn_error $? "conditional \"HAS_AVALON4\" was never defined.
  11014. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11015. fi
  11016. if test -z "${HAS_AVALON7_TRUE}" && test -z "${HAS_AVALON7_FALSE}"; then
  11017.   as_fn_error $? "conditional \"HAS_AVALON7\" was never defined.
  11018. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11019. fi
  11020. if test -z "${HAS_AVALON_MINER_TRUE}" && test -z "${HAS_AVALON_MINER_FALSE}"; then
  11021.   as_fn_error $? "conditional \"HAS_AVALON_MINER\" was never defined.
  11022. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11023. fi
  11024. if test -z "${HAS_BAB_TRUE}" && test -z "${HAS_BAB_FALSE}"; then
  11025.   as_fn_error $? "conditional \"HAS_BAB\" was never defined.
  11026. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11027. fi
  11028. if test -z "${HAS_BFLSC_TRUE}" && test -z "${HAS_BFLSC_FALSE}"; then
  11029.   as_fn_error $? "conditional \"HAS_BFLSC\" was never defined.
  11030. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11031. fi
  11032. if test -z "${HAS_BITFORCE_TRUE}" && test -z "${HAS_BITFORCE_FALSE}"; then
  11033.   as_fn_error $? "conditional \"HAS_BITFORCE\" was never defined.
  11034. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11035. fi
  11036. if test -z "${HAS_BITFURY_TRUE}" && test -z "${HAS_BITFURY_FALSE}"; then
  11037.   as_fn_error $? "conditional \"HAS_BITFURY\" was never defined.
  11038. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11039. fi
  11040. if test -z "${HAS_BITMINE_A1_TRUE}" && test -z "${HAS_BITMINE_A1_FALSE}"; then
  11041.   as_fn_error $? "conditional \"HAS_BITMINE_A1\" was never defined.
  11042. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11043. fi
  11044. if test -z "${HAS_BLOCKERUPTER_TRUE}" && test -z "${HAS_BLOCKERUPTER_FALSE}"; then
  11045.   as_fn_error $? "conditional \"HAS_BLOCKERUPTER\" was never defined.
  11046. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11047. fi
  11048. if test -z "${HAS_COINTERRA_TRUE}" && test -z "${HAS_COINTERRA_FALSE}"; then
  11049.   as_fn_error $? "conditional \"HAS_COINTERRA\" was never defined.
  11050. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11051. fi
  11052. if test -z "${HAS_DRILLBIT_TRUE}" && test -z "${HAS_DRILLBIT_FALSE}"; then
  11053.   as_fn_error $? "conditional \"HAS_DRILLBIT\" was never defined.
  11054. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11055. fi
  11056. if test -z "${HAS_HASHFAST_TRUE}" && test -z "${HAS_HASHFAST_FALSE}"; then
  11057.   as_fn_error $? "conditional \"HAS_HASHFAST\" was never defined.
  11058. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11059. fi
  11060. if test -z "${HAS_HASHRATIO_TRUE}" && test -z "${HAS_HASHRATIO_FALSE}"; then
  11061.   as_fn_error $? "conditional \"HAS_HASHRATIO\" was never defined.
  11062. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11063. fi
  11064. if test -z "${HAS_ICARUS_TRUE}" && test -z "${HAS_ICARUS_FALSE}"; then
  11065.   as_fn_error $? "conditional \"HAS_ICARUS\" was never defined.
  11066. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11067. fi
  11068. if test -z "${HAS_KLONDIKE_TRUE}" && test -z "${HAS_KLONDIKE_FALSE}"; then
  11069.   as_fn_error $? "conditional \"HAS_KLONDIKE\" was never defined.
  11070. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11071. fi
  11072. if test -z "${HAS_KNC_TRUE}" && test -z "${HAS_KNC_FALSE}"; then
  11073.   as_fn_error $? "conditional \"HAS_KNC\" was never defined.
  11074. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11075. fi
  11076. if test -z "${HAS_MINION_TRUE}" && test -z "${HAS_MINION_FALSE}"; then
  11077.   as_fn_error $? "conditional \"HAS_MINION\" was never defined.
  11078. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11079. fi
  11080. if test -z "${HAS_MODMINER_TRUE}" && test -z "${HAS_MODMINER_FALSE}"; then
  11081.   as_fn_error $? "conditional \"HAS_MODMINER\" was never defined.
  11082. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11083. fi
  11084. if test -z "${HAS_SP10_TRUE}" && test -z "${HAS_SP10_FALSE}"; then
  11085.   as_fn_error $? "conditional \"HAS_SP10\" was never defined.
  11086. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11087. fi
  11088. if test -z "${HAS_SP30_TRUE}" && test -z "${HAS_SP30_FALSE}"; then
  11089.   as_fn_error $? "conditional \"HAS_SP30\" was never defined.
  11090. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11091. fi
  11092. if test -z "${NEED_FPGAUTILS_TRUE}" && test -z "${NEED_FPGAUTILS_FALSE}"; then
  11093.   as_fn_error $? "conditional \"NEED_FPGAUTILS\" was never defined.
  11094. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11095. fi
  11096. if test -z "${WANT_USBUTILS_TRUE}" && test -z "${WANT_USBUTILS_FALSE}"; then
  11097.   as_fn_error $? "conditional \"WANT_USBUTILS\" was never defined.
  11098. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11099. fi
  11100. if test -z "${WANT_LIBBITFURY_TRUE}" && test -z "${WANT_LIBBITFURY_FALSE}"; then
  11101.   as_fn_error $? "conditional \"WANT_LIBBITFURY\" was never defined.
  11102. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11103. fi
  11104. if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
  11105.   as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
  11106. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11107. fi
  11108. if test -z "${HAVE_WINDOWS_TRUE}" && test -z "${HAVE_WINDOWS_FALSE}"; then
  11109.   as_fn_error $? "conditional \"HAVE_WINDOWS\" was never defined.
  11110. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11111. fi
  11112. if test -z "${HAVE_x86_64_TRUE}" && test -z "${HAVE_x86_64_FALSE}"; then
  11113.   as_fn_error $? "conditional \"HAVE_x86_64\" was never defined.
  11114. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11115. fi
  11116. if test -z "${WANT_CRC16_TRUE}" && test -z "${WANT_CRC16_FALSE}"; then
  11117.   as_fn_error $? "conditional \"WANT_CRC16\" was never defined.
  11118. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11119. fi
  11120. if test -z "${NEED_I2C_CONTEXT_TRUE}" && test -z "${NEED_I2C_CONTEXT_FALSE}"; then
  11121.   as_fn_error $? "conditional \"NEED_I2C_CONTEXT\" was never defined.
  11122. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11123. fi
  11124. if test -z "${WANT_STATIC_JANSSON_TRUE}" && test -z "${WANT_STATIC_JANSSON_FALSE}"; then
  11125.   as_fn_error $? "conditional \"WANT_STATIC_JANSSON\" was never defined.
  11126. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11127. fi
  11128. if test -z "${STATIC_CURL_TRUE}" && test -z "${STATIC_CURL_FALSE}"; then
  11129.   as_fn_error $? "conditional \"STATIC_CURL\" was never defined.
  11130. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11131. fi
  11132.  
  11133. : "${CONFIG_STATUS=./config.status}"
  11134. ac_write_fail=0
  11135. ac_clean_files_save=$ac_clean_files
  11136. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11138. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11139. as_write_fail=0
  11140. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11141. #! $SHELL
  11142. # Generated by $as_me.
  11143. # Run this file to recreate the current configuration.
  11144. # Compiler output produced by configure, useful for debugging
  11145. # configure, is in config.log if it exists.
  11146.  
  11147. debug=false
  11148. ac_cs_recheck=false
  11149. ac_cs_silent=false
  11150.  
  11151. SHELL=\${CONFIG_SHELL-$SHELL}
  11152. export SHELL
  11153. _ASEOF
  11154. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11155. ## -------------------- ##
  11156. ## M4sh Initialization. ##
  11157. ## -------------------- ##
  11158.  
  11159. # Be more Bourne compatible
  11160. DUALCASE=1; export DUALCASE # for MKS sh
  11161. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11162.   emulate sh
  11163.   NULLCMD=:
  11164.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11165.   # is contrary to our usage.  Disable this feature.
  11166.   alias -g '${1+"$@"}'='"$@"'
  11167.   setopt NO_GLOB_SUBST
  11168. else
  11169.   case `(set -o) 2>/dev/null` in #(
  11170.   *posix*) :
  11171.     set -o posix ;; #(
  11172.   *) :
  11173.      ;;
  11174. esac
  11175. fi
  11176.  
  11177.  
  11178. as_nl='
  11179. '
  11180. export as_nl
  11181. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11182. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11183. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11184. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11185. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11186. # but without wasting forks for bash or zsh.
  11187. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11188.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11189.   as_echo='print -r --'
  11190.   as_echo_n='print -rn --'
  11191. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11192.   as_echo='printf %s\n'
  11193.   as_echo_n='printf %s'
  11194. else
  11195.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11196.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11197.     as_echo_n='/usr/ucb/echo -n'
  11198.   else
  11199.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11200.     as_echo_n_body='eval
  11201.       arg=$1;
  11202.       case $arg in #(
  11203.       *"$as_nl"*)
  11204.     expr "X$arg" : "X\\(.*\\)$as_nl";
  11205.     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11206.       esac;
  11207.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11208.     '
  11209.     export as_echo_n_body
  11210.     as_echo_n='sh -c $as_echo_n_body as_echo'
  11211.   fi
  11212.   export as_echo_body
  11213.   as_echo='sh -c $as_echo_body as_echo'
  11214. fi
  11215.  
  11216. # The user is always right.
  11217. if test "${PATH_SEPARATOR+set}" != set; then
  11218.   PATH_SEPARATOR=:
  11219.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11220.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11221.       PATH_SEPARATOR=';'
  11222.   }
  11223. fi
  11224.  
  11225.  
  11226. # IFS
  11227. # We need space, tab and new line, in precisely that order.  Quoting is
  11228. # there to prevent editors from complaining about space-tab.
  11229. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11230. # splitting by setting IFS to empty value.)
  11231. IFS=" ""    $as_nl"
  11232.  
  11233. # Find who we are.  Look in the path if we contain no directory separator.
  11234. as_myself=
  11235. case $0 in #((
  11236.   *[\\/]* ) as_myself=$0 ;;
  11237.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11238. for as_dir in $PATH
  11239. do
  11240.   IFS=$as_save_IFS
  11241.   test -z "$as_dir" && as_dir=.
  11242.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11243.   done
  11244. IFS=$as_save_IFS
  11245.  
  11246.      ;;
  11247. esac
  11248. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11249. # in which case we are not to be found in the path.
  11250. if test "x$as_myself" = x; then
  11251.   as_myself=$0
  11252. fi
  11253. if test ! -f "$as_myself"; then
  11254.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11255.   exit 1
  11256. fi
  11257.  
  11258. # Unset variables that we do not need and which cause bugs (e.g. in
  11259. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  11260. # suppresses any "Segmentation fault" message there.  '((' could
  11261. # trigger a bug in pdksh 5.2.14.
  11262. for as_var in BASH_ENV ENV MAIL MAILPATH
  11263. do eval test x\${$as_var+set} = xset \
  11264.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11265. done
  11266. PS1='$ '
  11267. PS2='> '
  11268. PS4='+ '
  11269.  
  11270. # NLS nuisances.
  11271. LC_ALL=C
  11272. export LC_ALL
  11273. LANGUAGE=C
  11274. export LANGUAGE
  11275.  
  11276. # CDPATH.
  11277. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11278.  
  11279.  
  11280. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11281. # ----------------------------------------
  11282. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11283. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11284. # script with STATUS, using 1 if that was 0.
  11285. as_fn_error ()
  11286. {
  11287.   as_status=$1; test $as_status -eq 0 && as_status=1
  11288.   if test "$4"; then
  11289.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11290.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11291.   fi
  11292.   $as_echo "$as_me: error: $2" >&2
  11293.   as_fn_exit $as_status
  11294. } # as_fn_error
  11295.  
  11296.  
  11297. # as_fn_set_status STATUS
  11298. # -----------------------
  11299. # Set $? to STATUS, without forking.
  11300. as_fn_set_status ()
  11301. {
  11302.   return $1
  11303. } # as_fn_set_status
  11304.  
  11305. # as_fn_exit STATUS
  11306. # -----------------
  11307. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11308. as_fn_exit ()
  11309. {
  11310.   set +e
  11311.   as_fn_set_status $1
  11312.   exit $1
  11313. } # as_fn_exit
  11314.  
  11315. # as_fn_unset VAR
  11316. # ---------------
  11317. # Portably unset VAR.
  11318. as_fn_unset ()
  11319. {
  11320.   { eval $1=; unset $1;}
  11321. }
  11322. as_unset=as_fn_unset
  11323. # as_fn_append VAR VALUE
  11324. # ----------------------
  11325. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11326. # advantage of any shell optimizations that allow amortized linear growth over
  11327. # repeated appends, instead of the typical quadratic growth present in naive
  11328. # implementations.
  11329. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11330.   eval 'as_fn_append ()
  11331.   {
  11332.     eval $1+=\$2
  11333.   }'
  11334. else
  11335.   as_fn_append ()
  11336.   {
  11337.     eval $1=\$$1\$2
  11338.   }
  11339. fi # as_fn_append
  11340.  
  11341. # as_fn_arith ARG...
  11342. # ------------------
  11343. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11344. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11345. # must be portable across $(()) and expr.
  11346. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11347.   eval 'as_fn_arith ()
  11348.   {
  11349.     as_val=$(( $* ))
  11350.   }'
  11351. else
  11352.   as_fn_arith ()
  11353.   {
  11354.     as_val=`expr "$@" || test $? -eq 1`
  11355.   }
  11356. fi # as_fn_arith
  11357.  
  11358.  
  11359. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11360.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11361.   as_expr=expr
  11362. else
  11363.   as_expr=false
  11364. fi
  11365.  
  11366. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11367.   as_basename=basename
  11368. else
  11369.   as_basename=false
  11370. fi
  11371.  
  11372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11373.   as_dirname=dirname
  11374. else
  11375.   as_dirname=false
  11376. fi
  11377.  
  11378. as_me=`$as_basename -- "$0" ||
  11379. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11380.      X"$0" : 'X\(//\)$' \| \
  11381.      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11382. $as_echo X/"$0" |
  11383.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  11384.         s//\1/
  11385.         q
  11386.       }
  11387.       /^X\/\(\/\/\)$/{
  11388.         s//\1/
  11389.         q
  11390.       }
  11391.       /^X\/\(\/\).*/{
  11392.         s//\1/
  11393.         q
  11394.       }
  11395.       s/.*/./; q'`
  11396.  
  11397. # Avoid depending upon Character Ranges.
  11398. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11399. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11400. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11401. as_cr_digits='0123456789'
  11402. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11403.  
  11404. ECHO_C= ECHO_N= ECHO_T=
  11405. case `echo -n x` in #(((((
  11406. -n*)
  11407.   case `echo 'xy\c'` in
  11408.   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11409.   xy)  ECHO_C='\c';;
  11410.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11411.        ECHO_T=' ';;
  11412.   esac;;
  11413. *)
  11414.   ECHO_N='-n';;
  11415. esac
  11416.  
  11417. rm -f conf$$ conf$$.exe conf$$.file
  11418. if test -d conf$$.dir; then
  11419.   rm -f conf$$.dir/conf$$.file
  11420. else
  11421.   rm -f conf$$.dir
  11422.   mkdir conf$$.dir 2>/dev/null
  11423. fi
  11424. if (echo >conf$$.file) 2>/dev/null; then
  11425.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  11426.     as_ln_s='ln -s'
  11427.     # ... but there are two gotchas:
  11428.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11429.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11430.     # In both cases, we have to default to `cp -pR'.
  11431.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11432.       as_ln_s='cp -pR'
  11433.   elif ln conf$$.file conf$$ 2>/dev/null; then
  11434.     as_ln_s=ln
  11435.   else
  11436.     as_ln_s='cp -pR'
  11437.   fi
  11438. else
  11439.   as_ln_s='cp -pR'
  11440. fi
  11441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11442. rmdir conf$$.dir 2>/dev/null
  11443.  
  11444.  
  11445. # as_fn_mkdir_p
  11446. # -------------
  11447. # Create "$as_dir" as a directory, including parents if necessary.
  11448. as_fn_mkdir_p ()
  11449. {
  11450.  
  11451.   case $as_dir in #(
  11452.   -*) as_dir=./$as_dir;;
  11453.   esac
  11454.   test -d "$as_dir" || eval $as_mkdir_p || {
  11455.     as_dirs=
  11456.     while :; do
  11457.       case $as_dir in #(
  11458.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11459.       *) as_qdir=$as_dir;;
  11460.       esac
  11461.       as_dirs="'$as_qdir' $as_dirs"
  11462.       as_dir=`$as_dirname -- "$as_dir" ||
  11463. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11464.      X"$as_dir" : 'X\(//\)[^/]' \| \
  11465.      X"$as_dir" : 'X\(//\)$' \| \
  11466.      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11467. $as_echo X"$as_dir" |
  11468.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11469.         s//\1/
  11470.         q
  11471.       }
  11472.       /^X\(\/\/\)[^/].*/{
  11473.         s//\1/
  11474.         q
  11475.       }
  11476.       /^X\(\/\/\)$/{
  11477.         s//\1/
  11478.         q
  11479.       }
  11480.       /^X\(\/\).*/{
  11481.         s//\1/
  11482.         q
  11483.       }
  11484.       s/.*/./; q'`
  11485.       test -d "$as_dir" && break
  11486.     done
  11487.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  11488.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11489.  
  11490.  
  11491. } # as_fn_mkdir_p
  11492. if mkdir -p . 2>/dev/null; then
  11493.   as_mkdir_p='mkdir -p "$as_dir"'
  11494. else
  11495.   test -d ./-p && rmdir ./-p
  11496.   as_mkdir_p=false
  11497. fi
  11498.  
  11499.  
  11500. # as_fn_executable_p FILE
  11501. # -----------------------
  11502. # Test if FILE is an executable regular file.
  11503. as_fn_executable_p ()
  11504. {
  11505.   test -f "$1" && test -x "$1"
  11506. } # as_fn_executable_p
  11507. as_test_x='test -x'
  11508. as_executable_p=as_fn_executable_p
  11509.  
  11510. # Sed expression to map a string onto a valid CPP name.
  11511. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11512.  
  11513. # Sed expression to map a string onto a valid variable name.
  11514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11515.  
  11516.  
  11517. exec 6>&1
  11518. ## ----------------------------------- ##
  11519. ## Main body of $CONFIG_STATUS script. ##
  11520. ## ----------------------------------- ##
  11521. _ASEOF
  11522. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11523.  
  11524. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11525. # Save the log message, to keep $0 and so on meaningful, and to
  11526. # report actual input values of CONFIG_FILES etc. instead of their
  11527. # values after options handling.
  11528. ac_log="
  11529. This file was extended by cgminer $as_me 4.10.0, which was
  11530. generated by GNU Autoconf 2.69.  Invocation command line was
  11531.  
  11532.   CONFIG_FILES    = $CONFIG_FILES
  11533.   CONFIG_HEADERS  = $CONFIG_HEADERS
  11534.   CONFIG_LINKS    = $CONFIG_LINKS
  11535.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  11536.   $ $0 $@
  11537.  
  11538. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11539. "
  11540.  
  11541. _ACEOF
  11542.  
  11543. case $ac_config_files in *"
  11544. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11545. esac
  11546.  
  11547. case $ac_config_headers in *"
  11548. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11549. esac
  11550.  
  11551.  
  11552. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11553. # Files that config.status was made for.
  11554. config_files="$ac_config_files"
  11555. config_headers="$ac_config_headers"
  11556. config_commands="$ac_config_commands"
  11557.  
  11558. _ACEOF
  11559.  
  11560. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11561. ac_cs_usage="\
  11562. \`$as_me' instantiates files and other configuration actions
  11563. from templates according to the current configuration.  Unless the files
  11564. and actions are specified as TAGs, all are instantiated by default.
  11565.  
  11566. Usage: $0 [OPTION]... [TAG]...
  11567.  
  11568.   -h, --help       print this help, then exit
  11569.   -V, --version    print version number and configuration settings, then exit
  11570.       --config     print configuration, then exit
  11571.   -q, --quiet, --silent
  11572.                    do not print progress messages
  11573.   -d, --debug      don't remove temporary files
  11574.       --recheck    update $as_me by reconfiguring in the same conditions
  11575.       --file=FILE[:TEMPLATE]
  11576.                    instantiate the configuration file FILE
  11577.       --header=FILE[:TEMPLATE]
  11578.                    instantiate the configuration header FILE
  11579.  
  11580. Configuration files:
  11581. $config_files
  11582.  
  11583. Configuration headers:
  11584. $config_headers
  11585.  
  11586. Configuration commands:
  11587. $config_commands
  11588.  
  11589. Report bugs to <kernel@kolivas.org>."
  11590.  
  11591. _ACEOF
  11592. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11593. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11594. ac_cs_version="\\
  11595. cgminer config.status 4.10.0
  11596. configured by $0, generated by GNU Autoconf 2.69,
  11597.   with options \\"\$ac_cs_config\\"
  11598.  
  11599. Copyright (C) 2012 Free Software Foundation, Inc.
  11600. This config.status script is free software; the Free Software Foundation
  11601. gives unlimited permission to copy, distribute and modify it."
  11602.  
  11603. ac_pwd='$ac_pwd'
  11604. srcdir='$srcdir'
  11605. INSTALL='$INSTALL'
  11606. MKDIR_P='$MKDIR_P'
  11607. AWK='$AWK'
  11608. test -n "\$AWK" || AWK=awk
  11609. _ACEOF
  11610.  
  11611. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11612. # The default lists apply if the user does not specify any file.
  11613. ac_need_defaults=:
  11614. while test $# != 0
  11615. do
  11616.   case $1 in
  11617.   --*=?*)
  11618.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11619.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11620.     ac_shift=:
  11621.     ;;
  11622.   --*=)
  11623.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11624.     ac_optarg=
  11625.     ac_shift=:
  11626.     ;;
  11627.   *)
  11628.     ac_option=$1
  11629.     ac_optarg=$2
  11630.     ac_shift=shift
  11631.     ;;
  11632.   esac
  11633.  
  11634.   case $ac_option in
  11635.   # Handling of the options.
  11636.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11637.     ac_cs_recheck=: ;;
  11638.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11639.     $as_echo "$ac_cs_version"; exit ;;
  11640.   --config | --confi | --conf | --con | --co | --c )
  11641.     $as_echo "$ac_cs_config"; exit ;;
  11642.   --debug | --debu | --deb | --de | --d | -d )
  11643.     debug=: ;;
  11644.   --file | --fil | --fi | --f )
  11645.     $ac_shift
  11646.     case $ac_optarg in
  11647.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11648.     '') as_fn_error $? "missing file argument" ;;
  11649.     esac
  11650.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  11651.     ac_need_defaults=false;;
  11652.   --header | --heade | --head | --hea )
  11653.     $ac_shift
  11654.     case $ac_optarg in
  11655.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11656.     esac
  11657.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11658.     ac_need_defaults=false;;
  11659.   --he | --h)
  11660.     # Conflict between --help and --header
  11661.     as_fn_error $? "ambiguous option: \`$1'
  11662. Try \`$0 --help' for more information.";;
  11663.   --help | --hel | -h )
  11664.     $as_echo "$ac_cs_usage"; exit ;;
  11665.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11666.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11667.     ac_cs_silent=: ;;
  11668.  
  11669.   # This is an error.
  11670.   -*) as_fn_error $? "unrecognized option: \`$1'
  11671. Try \`$0 --help' for more information." ;;
  11672.  
  11673.   *) as_fn_append ac_config_targets " $1"
  11674.      ac_need_defaults=false ;;
  11675.  
  11676.   esac
  11677.   shift
  11678. done
  11679.  
  11680. ac_configure_extra_args=
  11681.  
  11682. if $ac_cs_silent; then
  11683.   exec 6>/dev/null
  11684.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  11685. fi
  11686.  
  11687. _ACEOF
  11688. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11689. if \$ac_cs_recheck; then
  11690.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11691.   shift
  11692.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11693.   CONFIG_SHELL='$SHELL'
  11694.   export CONFIG_SHELL
  11695.   exec "\$@"
  11696. fi
  11697.  
  11698. _ACEOF
  11699. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11700. exec 5>>config.log
  11701. {
  11702.   echo
  11703.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11704. ## Running $as_me. ##
  11705. _ASBOX
  11706.   $as_echo "$ac_log"
  11707. } >&5
  11708.  
  11709. _ACEOF
  11710. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11711. #
  11712. # INIT-COMMANDS
  11713. #
  11714. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11715.  
  11716. _ACEOF
  11717.  
  11718. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11719.  
  11720. # Handling of arguments.
  11721. for ac_config_target in $ac_config_targets
  11722. do
  11723.   case $ac_config_target in
  11724.     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11725.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11726.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11727.     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
  11728.     "ccan/Makefile") CONFIG_FILES="$CONFIG_FILES ccan/Makefile" ;;
  11729.     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  11730.  
  11731.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11732.   esac
  11733. done
  11734.  
  11735.  
  11736. # If the user did not use the arguments to specify the items to instantiate,
  11737. # then the envvar interface is used.  Set only those that are not.
  11738. # We use the long form for the default assignment because of an extremely
  11739. # bizarre bug on SunOS 4.1.3.
  11740. if $ac_need_defaults; then
  11741.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11742.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11743.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11744. fi
  11745.  
  11746. # Have a temporary directory for convenience.  Make it in the build tree
  11747. # simply because there is no reason against having it here, and in addition,
  11748. # creating and moving files from /tmp can sometimes cause problems.
  11749. # Hook for its removal unless debugging.
  11750. # Note that there is a small window in which the directory will not be cleaned:
  11751. # after its creation but before its name has been assigned to `$tmp'.
  11752. $debug ||
  11753. {
  11754.   tmp= ac_tmp=
  11755.   trap 'exit_status=$?
  11756.   : "${ac_tmp:=$tmp}"
  11757.   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11758. ' 0
  11759.   trap 'as_fn_exit 1' 1 2 13 15
  11760. }
  11761. # Create a (secure) tmp directory for tmp files.
  11762.  
  11763. {
  11764.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11765.   test -d "$tmp"
  11766. }  ||
  11767. {
  11768.   tmp=./conf$$-$RANDOM
  11769.   (umask 077 && mkdir "$tmp")
  11770. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11771. ac_tmp=$tmp
  11772.  
  11773. # Set up the scripts for CONFIG_FILES section.
  11774. # No need to generate them if there are no CONFIG_FILES.
  11775. # This happens for instance with `./config.status config.h'.
  11776. if test -n "$CONFIG_FILES"; then
  11777.  
  11778.  
  11779. ac_cr=`echo X | tr X '\015'`
  11780. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11781. # But we know of no other shell where ac_cr would be empty at this
  11782. # point, so we can use a bashism as a fallback.
  11783. if test "x$ac_cr" = x; then
  11784.   eval ac_cr=\$\'\\r\'
  11785. fi
  11786. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11787. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11788.   ac_cs_awk_cr='\\r'
  11789. else
  11790.   ac_cs_awk_cr=$ac_cr
  11791. fi
  11792.  
  11793. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11794. _ACEOF
  11795.  
  11796.  
  11797. {
  11798.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  11799.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11800.   echo "_ACEOF"
  11801. } >conf$$subs.sh ||
  11802.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11803. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11804. ac_delim='%!_!# '
  11805. for ac_last_try in false false false false false :; do
  11806.   . ./conf$$subs.sh ||
  11807.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11808.  
  11809.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11810.   if test $ac_delim_n = $ac_delim_num; then
  11811.     break
  11812.   elif $ac_last_try; then
  11813.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11814.   else
  11815.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11816.   fi
  11817. done
  11818. rm -f conf$$subs.sh
  11819.  
  11820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11821. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11822. _ACEOF
  11823. sed -n '
  11824. h
  11825. s/^/S["/; s/!.*/"]=/
  11826. p
  11827. g
  11828. s/^[^!]*!//
  11829. :repl
  11830. t repl
  11831. s/'"$ac_delim"'$//
  11832. t delim
  11833. :nl
  11834. h
  11835. s/\(.\{148\}\)..*/\1/
  11836. t more1
  11837. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11838. p
  11839. n
  11840. b repl
  11841. :more1
  11842. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11843. p
  11844. g
  11845. s/.\{148\}//
  11846. t nl
  11847. :delim
  11848. h
  11849. s/\(.\{148\}\)..*/\1/
  11850. t more2
  11851. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11852. p
  11853. b
  11854. :more2
  11855. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11856. p
  11857. g
  11858. s/.\{148\}//
  11859. t delim
  11860. ' <conf$$subs.awk | sed '
  11861. /^[^""]/{
  11862.   N
  11863.   s/\n//
  11864. }
  11865. ' >>$CONFIG_STATUS || ac_write_fail=1
  11866. rm -f conf$$subs.awk
  11867. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11868. _ACAWK
  11869. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11870.   for (key in S) S_is_set[key] = 1
  11871.   FS = ""
  11872.  
  11873. }
  11874. {
  11875.   line = $ 0
  11876.   nfields = split(line, field, "@")
  11877.   substed = 0
  11878.   len = length(field[1])
  11879.   for (i = 2; i < nfields; i++) {
  11880.     key = field[i]
  11881.     keylen = length(key)
  11882.     if (S_is_set[key]) {
  11883.       value = S[key]
  11884.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11885.       len += length(value) + length(field[++i])
  11886.       substed = 1
  11887.     } else
  11888.       len += 1 + keylen
  11889.   }
  11890.  
  11891.   print line
  11892. }
  11893.  
  11894. _ACAWK
  11895. _ACEOF
  11896. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11897. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11898.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11899. else
  11900.   cat
  11901. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11902.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11903. _ACEOF
  11904.  
  11905. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11906. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11907. # trailing colons and then remove the whole line if VPATH becomes empty
  11908. # (actually we leave an empty line to preserve line numbers).
  11909. if test "x$srcdir" = x.; then
  11910.   ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
  11911. h
  11912. s///
  11913. s/^/:/
  11914. s/[  ]*$/:/
  11915. s/:\$(srcdir):/:/g
  11916. s/:\${srcdir}:/:/g
  11917. s/:@srcdir@:/:/g
  11918. s/^:*//
  11919. s/:*$//
  11920. x
  11921. s/\(=[   ]*\).*/\1/
  11922. G
  11923. s/\n//
  11924. s/^[^=]*=[   ]*$//
  11925. }'
  11926. fi
  11927.  
  11928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11929. fi # test -n "$CONFIG_FILES"
  11930.  
  11931. # Set up the scripts for CONFIG_HEADERS section.
  11932. # No need to generate them if there are no CONFIG_HEADERS.
  11933. # This happens for instance with `./config.status Makefile'.
  11934. if test -n "$CONFIG_HEADERS"; then
  11935. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11936. BEGIN {
  11937. _ACEOF
  11938.  
  11939. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11940. # here-document in config.status, that substitutes the proper values into
  11941. # config.h.in to produce config.h.
  11942.  
  11943. # Create a delimiter string that does not exist in confdefs.h, to ease
  11944. # handling of long lines.
  11945. ac_delim='%!_!# '
  11946. for ac_last_try in false false :; do
  11947.   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11948.   if test -z "$ac_tt"; then
  11949.     break
  11950.   elif $ac_last_try; then
  11951.     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11952.   else
  11953.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11954.   fi
  11955. done
  11956.  
  11957. # For the awk script, D is an array of macro values keyed by name,
  11958. # likewise P contains macro parameters if any.  Preserve backslash
  11959. # newline sequences.
  11960.  
  11961. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11962. sed -n '
  11963. s/.\{148\}/&'"$ac_delim"'/g
  11964. t rset
  11965. :rset
  11966. s/^[     ]*#[    ]*define[   ][  ]*/ /
  11967. t def
  11968. d
  11969. :def
  11970. s/\\$//
  11971. t bsnl
  11972. s/["\\]/\\&/g
  11973. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  11974. D["\1"]=" \3"/p
  11975. s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
  11976. d
  11977. :bsnl
  11978. s/["\\]/\\&/g
  11979. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  11980. D["\1"]=" \3\\\\\\n"\\/p
  11981. t cont
  11982. s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11983. t cont
  11984. d
  11985. :cont
  11986. n
  11987. s/.\{148\}/&'"$ac_delim"'/g
  11988. t clear
  11989. :clear
  11990. s/\\$//
  11991. t bsnlc
  11992. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11993. d
  11994. :bsnlc
  11995. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11996. b cont
  11997. ' <confdefs.h | sed '
  11998. s/'"$ac_delim"'/"\\\
  11999. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12000.  
  12001. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12002.   for (key in D) D_is_set[key] = 1
  12003.   FS = ""
  12004. }
  12005. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12006.   line = \$ 0
  12007.   split(line, arg, " ")
  12008.   if (arg[1] == "#") {
  12009.     defundef = arg[2]
  12010.     mac1 = arg[3]
  12011.   } else {
  12012.     defundef = substr(arg[1], 2)
  12013.     mac1 = arg[2]
  12014.   }
  12015.   split(mac1, mac2, "(") #)
  12016.   macro = mac2[1]
  12017.   prefix = substr(line, 1, index(line, defundef) - 1)
  12018.   if (D_is_set[macro]) {
  12019.     # Preserve the white space surrounding the "#".
  12020.     print prefix "define", macro P[macro] D[macro]
  12021.     next
  12022.   } else {
  12023.     # Replace #undef with comments.  This is necessary, for example,
  12024.     # in the case of _POSIX_SOURCE, which is predefined and required
  12025.     # on some systems where configure will not decide to define it.
  12026.     if (defundef == "undef") {
  12027.       print "/*", prefix defundef, macro, "*/"
  12028.       next
  12029.     }
  12030.   }
  12031. }
  12032. { print }
  12033. _ACAWK
  12034. _ACEOF
  12035. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12036.   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12037. fi # test -n "$CONFIG_HEADERS"
  12038.  
  12039.  
  12040. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  12041. shift
  12042. for ac_tag
  12043. do
  12044.   case $ac_tag in
  12045.   :[FHLC]) ac_mode=$ac_tag; continue;;
  12046.   esac
  12047.   case $ac_mode$ac_tag in
  12048.   :[FHL]*:*);;
  12049.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12050.   :[FH]-) ac_tag=-:-;;
  12051.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12052.   esac
  12053.   ac_save_IFS=$IFS
  12054.   IFS=:
  12055.   set x $ac_tag
  12056.   IFS=$ac_save_IFS
  12057.   shift
  12058.   ac_file=$1
  12059.   shift
  12060.  
  12061.   case $ac_mode in
  12062.   :L) ac_source=$1;;
  12063.   :[FH])
  12064.     ac_file_inputs=
  12065.     for ac_f
  12066.     do
  12067.       case $ac_f in
  12068.       -) ac_f="$ac_tmp/stdin";;
  12069.       *) # Look for the file first in the build tree, then in the source tree
  12070.      # (if the path is not absolute).  The absolute path cannot be DOS-style,
  12071.      # because $ac_f cannot contain `:'.
  12072.      test -f "$ac_f" ||
  12073.        case $ac_f in
  12074.        [\\/$]*) false;;
  12075.        *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12076.        esac ||
  12077.        as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12078.       esac
  12079.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12080.       as_fn_append ac_file_inputs " '$ac_f'"
  12081.     done
  12082.  
  12083.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  12084.     # use $as_me), people would be surprised to read:
  12085.     #    /* config.h.  Generated by config.status.  */
  12086.     configure_input='Generated from '`
  12087.       $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12088.     `' by configure.'
  12089.     if test x"$ac_file" != x-; then
  12090.       configure_input="$ac_file.  $configure_input"
  12091.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12092. $as_echo "$as_me: creating $ac_file" >&6;}
  12093.     fi
  12094.     # Neutralize special characters interpreted by sed in replacement strings.
  12095.     case $configure_input in #(
  12096.     *\&* | *\|* | *\\* )
  12097.        ac_sed_conf_input=`$as_echo "$configure_input" |
  12098.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12099.     *) ac_sed_conf_input=$configure_input;;
  12100.     esac
  12101.  
  12102.     case $ac_tag in
  12103.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12104.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12105.     esac
  12106.     ;;
  12107.   esac
  12108.  
  12109.   ac_dir=`$as_dirname -- "$ac_file" ||
  12110. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12111.      X"$ac_file" : 'X\(//\)[^/]' \| \
  12112.      X"$ac_file" : 'X\(//\)$' \| \
  12113.      X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12114. $as_echo X"$ac_file" |
  12115.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12116.         s//\1/
  12117.         q
  12118.       }
  12119.       /^X\(\/\/\)[^/].*/{
  12120.         s//\1/
  12121.         q
  12122.       }
  12123.       /^X\(\/\/\)$/{
  12124.         s//\1/
  12125.         q
  12126.       }
  12127.       /^X\(\/\).*/{
  12128.         s//\1/
  12129.         q
  12130.       }
  12131.       s/.*/./; q'`
  12132.   as_dir="$ac_dir"; as_fn_mkdir_p
  12133.   ac_builddir=.
  12134.  
  12135. case "$ac_dir" in
  12136. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12137. *)
  12138.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12139.   # A ".." for each directory in $ac_dir_suffix.
  12140.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12141.   case $ac_top_builddir_sub in
  12142.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12143.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12144.   esac ;;
  12145. esac
  12146. ac_abs_top_builddir=$ac_pwd
  12147. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12148. # for backward compatibility:
  12149. ac_top_builddir=$ac_top_build_prefix
  12150.  
  12151. case $srcdir in
  12152.   .)  # We are building in place.
  12153.     ac_srcdir=.
  12154.     ac_top_srcdir=$ac_top_builddir_sub
  12155.     ac_abs_top_srcdir=$ac_pwd ;;
  12156.   [\\/]* | ?:[\\/]* )  # Absolute name.
  12157.     ac_srcdir=$srcdir$ac_dir_suffix;
  12158.     ac_top_srcdir=$srcdir
  12159.     ac_abs_top_srcdir=$srcdir ;;
  12160.   *) # Relative name.
  12161.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12162.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  12163.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12164. esac
  12165. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12166.  
  12167.  
  12168.   case $ac_mode in
  12169.   :F)
  12170.   #
  12171.   # CONFIG_FILE
  12172.   #
  12173.  
  12174.   case $INSTALL in
  12175.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12176.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12177.   esac
  12178.   ac_MKDIR_P=$MKDIR_P
  12179.   case $MKDIR_P in
  12180.   [\\/$]* | ?:[\\/]* ) ;;
  12181.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12182.   esac
  12183. _ACEOF
  12184.  
  12185. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12186. # If the template does not know about datarootdir, expand it.
  12187. # FIXME: This hack should be removed a few years after 2.60.
  12188. ac_datarootdir_hack=; ac_datarootdir_seen=
  12189. ac_sed_dataroot='
  12190. /datarootdir/ {
  12191.   p
  12192.   q
  12193. }
  12194. /@datadir@/p
  12195. /@docdir@/p
  12196. /@infodir@/p
  12197. /@localedir@/p
  12198. /@mandir@/p'
  12199. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12200. *datarootdir*) ac_datarootdir_seen=yes;;
  12201. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12202.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12203. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12204. _ACEOF
  12205. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12206.   ac_datarootdir_hack='
  12207.   s&@datadir@&$datadir&g
  12208.   s&@docdir@&$docdir&g
  12209.   s&@infodir@&$infodir&g
  12210.   s&@localedir@&$localedir&g
  12211.   s&@mandir@&$mandir&g
  12212.   s&\\\${datarootdir}&$datarootdir&g' ;;
  12213. esac
  12214. _ACEOF
  12215.  
  12216. # Neutralize VPATH when `$srcdir' = `.'.
  12217. # Shell code in configure.ac might set extrasub.
  12218. # FIXME: do we really want to maintain this feature?
  12219. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12220. ac_sed_extra="$ac_vpsub
  12221. $extrasub
  12222. _ACEOF
  12223. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12224. :t
  12225. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12226. s|@configure_input@|$ac_sed_conf_input|;t t
  12227. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12228. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12229. s&@srcdir@&$ac_srcdir&;t t
  12230. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12231. s&@top_srcdir@&$ac_top_srcdir&;t t
  12232. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12233. s&@builddir@&$ac_builddir&;t t
  12234. s&@abs_builddir@&$ac_abs_builddir&;t t
  12235. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12236. s&@INSTALL@&$ac_INSTALL&;t t
  12237. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12238. $ac_datarootdir_hack
  12239. "
  12240. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12241.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12242.  
  12243. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12244.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12245.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  12246.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12247.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12248. which seems to be undefined.  Please make sure it is defined" >&5
  12249. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12250. which seems to be undefined.  Please make sure it is defined" >&2;}
  12251.  
  12252.   rm -f "$ac_tmp/stdin"
  12253.   case $ac_file in
  12254.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12255.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12256.   esac \
  12257.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12258.  ;;
  12259.   :H)
  12260.   #
  12261.   # CONFIG_HEADER
  12262.   #
  12263.   if test x"$ac_file" != x-; then
  12264.     {
  12265.       $as_echo "/* $configure_input  */" \
  12266.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12267.     } >"$ac_tmp/config.h" \
  12268.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12269.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12270.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12271. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12272.     else
  12273.       rm -f "$ac_file"
  12274.       mv "$ac_tmp/config.h" "$ac_file" \
  12275.     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12276.     fi
  12277.   else
  12278.     $as_echo "/* $configure_input  */" \
  12279.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12280.       || as_fn_error $? "could not create -" "$LINENO" 5
  12281.   fi
  12282. # Compute "$ac_file"'s index in $config_headers.
  12283. _am_arg="$ac_file"
  12284. _am_stamp_count=1
  12285. for _am_header in $config_headers :; do
  12286.   case $_am_header in
  12287.     $_am_arg | $_am_arg:* )
  12288.       break ;;
  12289.     * )
  12290.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12291.   esac
  12292. done
  12293. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12294. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12295.      X"$_am_arg" : 'X\(//\)[^/]' \| \
  12296.      X"$_am_arg" : 'X\(//\)$' \| \
  12297.      X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12298. $as_echo X"$_am_arg" |
  12299.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12300.         s//\1/
  12301.         q
  12302.       }
  12303.       /^X\(\/\/\)[^/].*/{
  12304.         s//\1/
  12305.         q
  12306.       }
  12307.       /^X\(\/\/\)$/{
  12308.         s//\1/
  12309.         q
  12310.       }
  12311.       /^X\(\/\).*/{
  12312.         s//\1/
  12313.         q
  12314.       }
  12315.       s/.*/./; q'`/stamp-h$_am_stamp_count
  12316.  ;;
  12317.  
  12318.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12319. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12320.  ;;
  12321.   esac
  12322.  
  12323.  
  12324.   case $ac_file$ac_mode in
  12325.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12326.   # Older Autoconf quotes --file arguments for eval, but not when files
  12327.   # are listed without --file.  Let's play safe and only enable the eval
  12328.   # if we detect the quoting.
  12329.   case $CONFIG_FILES in
  12330.   *\'*) eval set x "$CONFIG_FILES" ;;
  12331.   *)   set x $CONFIG_FILES ;;
  12332.   esac
  12333.   shift
  12334.   for mf
  12335.   do
  12336.     # Strip MF so we end up with the name of the file.
  12337.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  12338.     # Check whether this is an Automake generated Makefile or not.
  12339.     # We used to match only the files named 'Makefile.in', but
  12340.     # some people rename them; so instead we look at the file content.
  12341.     # Grep'ing the first line is not enough: some people post-process
  12342.     # each Makefile.in and add a new line on top of each file to say so.
  12343.     # Grep'ing the whole file is not good either: AIX grep has a line
  12344.     # limit of 2048, but all sed's we know have understand at least 4000.
  12345.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12346.       dirpart=`$as_dirname -- "$mf" ||
  12347. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12348.      X"$mf" : 'X\(//\)[^/]' \| \
  12349.      X"$mf" : 'X\(//\)$' \| \
  12350.      X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12351. $as_echo X"$mf" |
  12352.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12353.         s//\1/
  12354.         q
  12355.       }
  12356.       /^X\(\/\/\)[^/].*/{
  12357.         s//\1/
  12358.         q
  12359.       }
  12360.       /^X\(\/\/\)$/{
  12361.         s//\1/
  12362.         q
  12363.       }
  12364.       /^X\(\/\).*/{
  12365.         s//\1/
  12366.         q
  12367.       }
  12368.       s/.*/./; q'`
  12369.     else
  12370.       continue
  12371.     fi
  12372.     # Extract the definition of DEPDIR, am__include, and am__quote
  12373.     # from the Makefile without running 'make'.
  12374.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12375.     test -z "$DEPDIR" && continue
  12376.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12377.     test -z "$am__include" && continue
  12378.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12379.     # Find all dependency output files, they are included files with
  12380.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  12381.     # simplest approach to changing $(DEPDIR) to its actual value in the
  12382.     # expansion.
  12383.     for file in `sed -n "
  12384.       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12385.      sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12386.       # Make sure the directory exists.
  12387.       test -f "$dirpart/$file" && continue
  12388.       fdir=`$as_dirname -- "$file" ||
  12389. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12390.      X"$file" : 'X\(//\)[^/]' \| \
  12391.      X"$file" : 'X\(//\)$' \| \
  12392.      X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12393. $as_echo X"$file" |
  12394.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12395.         s//\1/
  12396.         q
  12397.       }
  12398.       /^X\(\/\/\)[^/].*/{
  12399.         s//\1/
  12400.         q
  12401.       }
  12402.       /^X\(\/\/\)$/{
  12403.         s//\1/
  12404.         q
  12405.       }
  12406.       /^X\(\/\).*/{
  12407.         s//\1/
  12408.         q
  12409.       }
  12410.       s/.*/./; q'`
  12411.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12412.       # echo "creating $dirpart/$file"
  12413.       echo '# dummy' > "$dirpart/$file"
  12414.     done
  12415.   done
  12416. }
  12417.  ;;
  12418.  
  12419.   esac
  12420. done # for ac_tag
  12421.  
  12422.  
  12423. as_fn_exit 0
  12424. _ACEOF
  12425. ac_clean_files=$ac_clean_files_save
  12426.  
  12427. test $ac_write_fail = 0 ||
  12428.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12429.  
  12430.  
  12431. # configure is writing to config.log, and then calls config.status.
  12432. # config.status does its own redirection, appending to config.log.
  12433. # Unfortunately, on DOS this fails, as config.log is still kept open
  12434. # by configure, so config.status won't be able to write to it; its
  12435. # output is simply discarded.  So we exec the FD to /dev/null,
  12436. # effectively closing config.log, so it can be properly (re)opened and
  12437. # appended to by config.status.  When coming back to configure, we
  12438. # need to make the FD available again.
  12439. if test "$no_create" != yes; then
  12440.   ac_cs_success=:
  12441.   ac_config_status_args=
  12442.   test "$silent" = yes &&
  12443.     ac_config_status_args="$ac_config_status_args --quiet"
  12444.   exec 5>/dev/null
  12445.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12446.   exec 5>>config.log
  12447.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12448.   # would make configure fail if this is the last instruction.
  12449.   $ac_cs_success || as_fn_exit 1
  12450. fi
  12451.  
  12452. #
  12453. # CONFIG_SUBDIRS section.
  12454. #
  12455. if test "$no_recursion" != yes; then
  12456.  
  12457.   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  12458.   # so they do not pile up.
  12459.   ac_sub_configure_args=
  12460.   ac_prev=
  12461.   eval "set x $ac_configure_args"
  12462.   shift
  12463.   for ac_arg
  12464.   do
  12465.     if test -n "$ac_prev"; then
  12466.       ac_prev=
  12467.       continue
  12468.     fi
  12469.     case $ac_arg in
  12470.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  12471.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  12472.       ac_prev=cache_file ;;
  12473.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  12474.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  12475.     | --c=*)
  12476.       ;;
  12477.     --config-cache | -C)
  12478.       ;;
  12479.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  12480.       ac_prev=srcdir ;;
  12481.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  12482.       ;;
  12483.     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  12484.       ac_prev=prefix ;;
  12485.     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  12486.       ;;
  12487.     --disable-option-checking)
  12488.       ;;
  12489.     *)
  12490.       case $ac_arg in
  12491.       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12492.       esac
  12493.       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  12494.     esac
  12495.   done
  12496.  
  12497.   # Always prepend --prefix to ensure using the same prefix
  12498.   # in subdir configurations.
  12499.   ac_arg="--prefix=$prefix"
  12500.   case $ac_arg in
  12501.   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12502.   esac
  12503.   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  12504.  
  12505.   # Pass --silent
  12506.   if test "$silent" = yes; then
  12507.     ac_sub_configure_args="--silent $ac_sub_configure_args"
  12508.   fi
  12509.  
  12510.   # Always prepend --disable-option-checking to silence warnings, since
  12511.   # different subdirs can have different --enable and --with options.
  12512.   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  12513.  
  12514.   ac_popdir=`pwd`
  12515.   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  12516.  
  12517.     # Do not complain, so a configure script can configure whichever
  12518.     # parts of a large source tree are present.
  12519.     test -d "$srcdir/$ac_dir" || continue
  12520.  
  12521.     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  12522.     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  12523.     $as_echo "$ac_msg" >&6
  12524.     as_dir="$ac_dir"; as_fn_mkdir_p
  12525.     ac_builddir=.
  12526.  
  12527. case "$ac_dir" in
  12528. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12529. *)
  12530.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12531.   # A ".." for each directory in $ac_dir_suffix.
  12532.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12533.   case $ac_top_builddir_sub in
  12534.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12535.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12536.   esac ;;
  12537. esac
  12538. ac_abs_top_builddir=$ac_pwd
  12539. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12540. # for backward compatibility:
  12541. ac_top_builddir=$ac_top_build_prefix
  12542.  
  12543. case $srcdir in
  12544.   .)  # We are building in place.
  12545.     ac_srcdir=.
  12546.     ac_top_srcdir=$ac_top_builddir_sub
  12547.     ac_abs_top_srcdir=$ac_pwd ;;
  12548.   [\\/]* | ?:[\\/]* )  # Absolute name.
  12549.     ac_srcdir=$srcdir$ac_dir_suffix;
  12550.     ac_top_srcdir=$srcdir
  12551.     ac_abs_top_srcdir=$srcdir ;;
  12552.   *) # Relative name.
  12553.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12554.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  12555.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12556. esac
  12557. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12558.  
  12559.  
  12560.     cd "$ac_dir"
  12561.  
  12562.     # Check for guested configure; otherwise get Cygnus style configure.
  12563.     if test -f "$ac_srcdir/configure.gnu"; then
  12564.       ac_sub_configure=$ac_srcdir/configure.gnu
  12565.     elif test -f "$ac_srcdir/configure"; then
  12566.       ac_sub_configure=$ac_srcdir/configure
  12567.     elif test -f "$ac_srcdir/configure.in"; then
  12568.       # This should be Cygnus configure.
  12569.       ac_sub_configure=$ac_aux_dir/configure
  12570.     else
  12571.       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  12572. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  12573.       ac_sub_configure=
  12574.     fi
  12575.  
  12576.     # The recursion is here.
  12577.     if test -n "$ac_sub_configure"; then
  12578.       # Make the cache file name correct relative to the subdirectory.
  12579.       case $cache_file in
  12580.       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  12581.       *) # Relative name.
  12582.     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  12583.       esac
  12584.  
  12585.       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  12586. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  12587.       # The eval makes quoting arguments work.
  12588.       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  12589.        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  12590.     as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  12591.     fi
  12592.  
  12593.     cd "$ac_popdir"
  12594.   done
  12595. fi
  12596. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12597.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12598. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12599. fi
  12600.  
  12601.  
  12602.  
  12603. echo
  12604. echo
  12605. echo
  12606. echo "------------------------------------------------------------------------"
  12607. echo "$PACKAGE $VERSION"
  12608. echo "------------------------------------------------------------------------"
  12609. echo
  12610. echo
  12611. echo "Configuration Options Summary:"
  12612. echo
  12613.  
  12614. if test "x$libcurl" != xno; then
  12615.     echo "  libcurl(GBT).: Enabled: $LIBCURL_LIBS"
  12616. else
  12617.     echo "  libcurl(GBT).: Disabled"
  12618. fi
  12619.  
  12620. if test "x$libsystemd" != xno; then
  12621.     echo "  libsystemd...........: Enabled: $LIBSYSTEMD_LIBS"
  12622. else
  12623.     echo "  libsystemd...........: Disabled"
  12624. fi
  12625.  
  12626. echo "  curses.TUI...........: $cursesmsg"
  12627.  
  12628.  
  12629. echo
  12630. if test "x$ants1" = xyes; then
  12631.     echo "  Antminer.S1.Bitmain..: Enabled"
  12632. else
  12633.     echo "  Antminer.S1.Bitmain..: Disabled"
  12634. fi
  12635.  
  12636. if test "x$ants2" = xyes; then
  12637.     echo "  Antminer.S2.Bitmain..: Enabled"
  12638. else
  12639.     echo "  Antminer.S2.Bitmain..: Disabled"
  12640. fi
  12641.  
  12642. if test "x$ants3" = xyes; then
  12643.     echo "  Antminer.S3.Bitmain..: Enabled"
  12644. else
  12645.     echo "  Antminer.S3.Bitmain..: Disabled"
  12646. fi
  12647.  
  12648. if test "x$avalon" = xyes; then
  12649.     echo "  Avalon.ASICs.........: Enabled"
  12650. else
  12651.     echo "  Avalon.ASICs.........: Disabled"
  12652. fi
  12653.  
  12654. if test "x$avalon2" = xyes; then
  12655.     echo "  Avalon2.ASICs........: Enabled"
  12656. else
  12657.     echo "  Avalon2.ASICs........: Disabled"
  12658. fi
  12659.  
  12660. if test "x$avalon4" = xyes; then
  12661.     echo "  Avalon4.ASICs........: Enabled"
  12662. else
  12663.     echo "  Avalon4.ASICs........: Disabled"
  12664. fi
  12665.  
  12666. if test "x$avalon7" = xyes; then
  12667.     echo "  Avalon7.ASICs........: Enabled"
  12668. else
  12669.     echo "  Avalon7.ASICs........: Disabled"
  12670. fi
  12671.  
  12672. if test "x$avalon_miner" = xyes; then
  12673.     echo "  Avalon miner.ASICs...: Enabled"
  12674. else
  12675.     echo "  Avalon miner.ASICs...: Disabled"
  12676. fi
  12677.  
  12678. if test "x$minion" = xyes; then
  12679.     echo "  BlackArrowMinion.ASIC: Enabled"
  12680. else
  12681.     echo "  BlackArrowMinion.ASIC: Disabled"
  12682. fi
  12683.  
  12684. if test "x$bab" = xyes; then
  12685.     echo "  BlackArrow.ASICs.....: Enabled"
  12686. else
  12687.     echo "  BlackArrow.ASICs.....: Disabled"
  12688. fi
  12689.  
  12690. if test "x$bflsc" = xyes; then
  12691.     echo "  BFL.ASICs............: Enabled"
  12692. else
  12693.     echo "  BFL.ASICs............: Disabled"
  12694. fi
  12695.  
  12696. if test "x$bitforce" = xyes; then
  12697.     echo "  BitForce.FPGAs.......: Enabled"
  12698. else
  12699.     echo "  BitForce.FPGAs.......: Disabled"
  12700. fi
  12701.  
  12702. if test "x$bitfury" = xyes; then
  12703.     echo "  BitFury.ASICs........: Enabled"
  12704. else
  12705.     echo "  BitFury.ASICs........: Disabled"
  12706. fi
  12707.  
  12708. if test "x$blockerupter" = xyes; then
  12709.     echo "  BlockErupter.ASICs...: Enabled"
  12710. else
  12711.     echo "  BlockErupter.ASICs...: Disabled"
  12712. fi
  12713.  
  12714. if test "x$cointerra" = xyes; then
  12715.     echo "  Cointerra.ASICs......: Enabled"
  12716. else
  12717.     echo "  Cointerra.ASICs......: Disabled"
  12718. fi
  12719.  
  12720. if test "x$sp10" = xyes; then
  12721.     echo "  Spond-sp10.ASICs.....: Enabled"
  12722. else
  12723.     echo "  Spond-sp10.ASICs.....: Disabled"
  12724. fi
  12725.  
  12726.  
  12727. if test "x$sp30" = xyes; then
  12728.     echo "  Spond-sp30.ASICs.....: Enabled"
  12729. else
  12730.     echo "  Spond-sp30.ASICs.....: Disabled"
  12731. fi
  12732.  
  12733.  
  12734. if test "x$bitmine_A1" = xyes; then
  12735.     echo "  Bitmine-A1.ASICs.....: Enabled"
  12736. else
  12737.     echo "  Bitmine-A1.ASICs.....: Disabled"
  12738. fi
  12739.  
  12740. if test "x$drillbit" = xyes; then
  12741.     echo "  Drillbit.BitFury.....: Enabled"
  12742. else
  12743.     echo "  Drillbit.BitFury.....: Disabled"
  12744. fi
  12745.  
  12746. if test "x$hashfast" = xyes; then
  12747.     echo "  Hashfast.ASICs.......: Enabled"
  12748. else
  12749.     echo "  Hashfast.ASICs.......: Disabled"
  12750. fi
  12751.  
  12752. if test "x$hashratio" = xyes; then
  12753.     echo "  Hashratio.ASICs......: Enabled"
  12754. else
  12755.     echo "  Hashratio.ASICs......: Disabled"
  12756. fi
  12757.  
  12758. if test "x$icarus" = xyes; then
  12759.     echo "  Icarus.ASICs/FPGAs...: Enabled"
  12760. else
  12761.     echo "  Icarus.ASICs/FPGAs...: Disabled"
  12762. fi
  12763.  
  12764. if test "x$klondike" = xyes; then
  12765.     echo "  Klondike.ASICs.......: Enabled"
  12766. else
  12767.     echo "  Klondike.ASICs.......: Disabled"
  12768. fi
  12769.  
  12770. if test "x$knc" = xyes; then
  12771.     echo "  KnC.ASICs............: Enabled"
  12772. else
  12773.     echo "  KnC.ASICs............: Disabled"
  12774. fi
  12775.  
  12776. if test "x$modminer" = xyes; then
  12777.     echo "  ModMiner.FPGAs.......: Enabled"
  12778. else
  12779.     echo "  ModMiner.FPGAs.......: Disabled"
  12780. fi
  12781.  
  12782. #Add any new device to this, along with a no on the end of the test
  12783. if test "x$avalon$avalon2$avalon4$avalon7$avalon_miner$bab$bflsc$bitforce$bitfury$blockerupter$hashfast$hashratio$icarus$klondike$knc$modminer$drillbit$minion$cointerra$bitmine_A1$ants1$ants2$ants3$sp10$sp30" = xnonononononononononononononononononononononononono; then
  12784.     echo
  12785.     as_fn_error $? "No mining devices configured in" "$LINENO" 5
  12786.     echo
  12787. fi
  12788.  
  12789. if test "x$standalone" = xyes; then
  12790.     if test $drivercount != x; then
  12791.         echo
  12792.         as_fn_error $? "You have configured more than one driver in with a driver that is designed to be standalone only (see ./configure --help)" "$LINENO" 5
  12793.         echo
  12794.     fi
  12795. fi
  12796.  
  12797. echo
  12798. echo "Compilation............: make (or gmake)"
  12799. echo "  CPPFLAGS.............: $CPPFLAGS"
  12800. echo "  CFLAGS...............: $CFLAGS"
  12801. echo "  LDFLAGS..............: $LDFLAGS $PTHREAD_FLAGS"
  12802. echo "  LDADD................: $DLOPEN_FLAGS $LIBCURL_LIBS $LIBSYSTEMD_LIBS $JANSSON_LIBS $PTHREAD_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $LIBUSB_LIBS $RT_LIBS"
  12803. echo
  12804. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  12805. echo "  prefix...............: $prefix"
  12806. echo
RAW Paste Data