1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for python 3.8.
4#
5# Report bugs to <https://bugs.python.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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
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
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
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
236fi; }
237IFS=$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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
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
270$0: https://bugs.python.org/ about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_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.
308as_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.
318as_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.
366as_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.
376if (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  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # 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.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # 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.
411as_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
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_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.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_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
503ECHO_C= ECHO_N= ECHO_T=
504case `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';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (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
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_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.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 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.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='python'
582PACKAGE_TARNAME='python'
583PACKAGE_VERSION='3.8'
584PACKAGE_STRING='python 3.8'
585PACKAGE_BUGREPORT='https://bugs.python.org/'
586PACKAGE_URL=''
587
588ac_unique_file="Include/object.h"
589# Factoring default headers for most tests.
590ac_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
625ac_subst_vars='LTLIBOBJS
626OPENSSL_LDFLAGS
627OPENSSL_LIBS
628OPENSSL_INCLUDES
629ENSUREPIP
630SRCDIRS
631THREADHEADERS
632LIBPL
633PY_ENABLE_SHARED
634LIBPYTHON
635EXT_SUFFIX
636ALT_SOABI
637SOABI
638LIBC
639LIBM
640HAVE_GETHOSTBYNAME
641HAVE_GETHOSTBYNAME_R
642HAVE_GETHOSTBYNAME_R_3_ARG
643HAVE_GETHOSTBYNAME_R_5_ARG
644HAVE_GETHOSTBYNAME_R_6_ARG
645LIBOBJS
646TRUE
647MACHDEP_OBJS
648DYNLOADFILE
649DLINCLDIR
650DTRACE_OBJS
651DTRACE_HEADERS
652DFLAGS
653DTRACE
654TCLTK_LIBS
655TCLTK_INCLUDES
656LIBFFI_INCLUDEDIR
657PKG_CONFIG_LIBDIR
658PKG_CONFIG_PATH
659PKG_CONFIG
660SHLIBS
661CFLAGSFORSHARED
662LINKFORSHARED
663CCSHARED
664BLDSHARED
665LDCXXSHARED
666LDSHARED
667SHLIB_SUFFIX
668LIBTOOL_CRUFT
669OTHER_LIBTOOL_OPT
670UNIVERSAL_ARCH_FLAGS
671LDFLAGS_NODIST
672CFLAGS_NODIST
673BASECFLAGS
674CFLAGS_ALIASING
675OPT
676LLVM_PROF_FOUND
677LLVM_PROFDATA
678LLVM_PROF_ERR
679LLVM_PROF_FILE
680LLVM_PROF_MERGER
681PGO_PROF_USE_FLAG
682PGO_PROF_GEN_FLAG
683LLVM_AR_FOUND
684LLVM_AR
685PROFILE_TASK
686DEF_MAKE_RULE
687DEF_MAKE_ALL_RULE
688ABIFLAGS
689LN
690MKDIR_P
691INSTALL_DATA
692INSTALL_SCRIPT
693INSTALL_PROGRAM
694ac_ct_READELF
695READELF
696ARFLAGS
697ac_ct_AR
698AR
699GNULD
700LINKCC
701LDVERSION
702RUNSHARED
703INSTSONAME
704LDLIBRARYDIR
705PY3LIBRARY
706BLDLIBRARY
707DLLLIBRARY
708LDLIBRARY
709LIBRARY
710BUILDEXEEXT
711EGREP
712NO_AS_NEEDED
713MULTIARCH_CPPFLAGS
714PLATFORM_TRIPLET
715MULTIARCH
716ac_ct_CXX
717MAINCC
718CXX
719SED
720GREP
721CPP
722OBJEXT
723EXEEXT
724ac_ct_CC
725CPPFLAGS
726LDFLAGS
727CFLAGS
728CC
729EXPORT_MACOSX_DEPLOYMENT_TARGET
730CONFIGURE_MACOSX_DEPLOYMENT_TARGET
731_PYTHON_HOST_PLATFORM
732MACHDEP
733FRAMEWORKINSTALLAPPSPREFIX
734FRAMEWORKUNIXTOOLSPREFIX
735FRAMEWORKPYTHONW
736FRAMEWORKALTINSTALLLAST
737FRAMEWORKALTINSTALLFIRST
738FRAMEWORKINSTALLLAST
739FRAMEWORKINSTALLFIRST
740PYTHONFRAMEWORKINSTALLDIR
741PYTHONFRAMEWORKPREFIX
742PYTHONFRAMEWORKDIR
743PYTHONFRAMEWORKIDENTIFIER
744PYTHONFRAMEWORK
745LIPO_INTEL64_FLAGS
746LIPO_32BIT_FLAGS
747ARCH_RUN_32BIT
748UNIVERSALSDK
749CONFIG_ARGS
750SOVERSION
751VERSION
752PYTHON_FOR_BUILD
753PYTHON_FOR_REGEN
754host_os
755host_vendor
756host_cpu
757host
758build_os
759build_vendor
760build_cpu
761build
762HAS_GIT
763GITBRANCH
764GITTAG
765GITVERSION
766BASECPPFLAGS
767target_alias
768host_alias
769build_alias
770LIBS
771ECHO_T
772ECHO_N
773ECHO_C
774DEFS
775mandir
776localedir
777libdir
778psdir
779pdfdir
780dvidir
781htmldir
782infodir
783docdir
784oldincludedir
785includedir
786localstatedir
787sharedstatedir
788sysconfdir
789datadir
790datarootdir
791libexecdir
792sbindir
793bindir
794program_transform_name
795prefix
796exec_prefix
797PACKAGE_URL
798PACKAGE_BUGREPORT
799PACKAGE_STRING
800PACKAGE_VERSION
801PACKAGE_TARNAME
802PACKAGE_NAME
803PATH_SEPARATOR
804SHELL'
805ac_subst_files=''
806ac_user_opts='
807enable_option_checking
808enable_universalsdk
809with_universal_archs
810with_framework_name
811enable_framework
812with_cxx_main
813with_suffix
814enable_shared
815enable_profiling
816with_pydebug
817with_trace_refs
818with_assertions
819enable_optimizations
820with_lto
821with_hash_algorithm
822with_address_sanitizer
823with_memory_sanitizer
824with_undefined_behavior_sanitizer
825with_libs
826with_system_expat
827with_system_ffi
828with_system_libmpdec
829with_decimal_contextvar
830enable_loadable_sqlite_extensions
831with_tcltk_includes
832with_tcltk_libs
833with_dbmliborder
834enable_ipv6
835with_doc_strings
836with_pymalloc
837with_c_locale_coercion
838with_valgrind
839with_dtrace
840with_libm
841with_libc
842enable_big_digits
843with_computed_gotos
844with_ensurepip
845with_openssl
846with_ssl_default_suites
847'
848      ac_precious_vars='build_alias
849host_alias
850target_alias
851MACHDEP
852CC
853CFLAGS
854LDFLAGS
855LIBS
856CPPFLAGS
857CPP
858PROFILE_TASK
859PKG_CONFIG
860PKG_CONFIG_PATH
861PKG_CONFIG_LIBDIR'
862
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
867ac_unrecognized_opts=
868ac_unrecognized_sep=
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
891# (The list follows the same order as the GNU Coding Standards.)
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
911
912ac_prev=
913ac_dashdash=
914for ac_option
915do
916  # If the previous option needs an argument, assign it.
917  if test -n "$ac_prev"; then
918    eval $ac_prev=\$ac_option
919    ac_prev=
920    continue
921  fi
922
923  case $ac_option in
924  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925  *=)   ac_optarg= ;;
926  *)    ac_optarg=yes ;;
927  esac
928
929  # Accept the important Cygnus configure options, so we can diagnose typos.
930
931  case $ac_dashdash$ac_option in
932  --)
933    ac_dashdash=yes ;;
934
935  -bindir | --bindir | --bindi | --bind | --bin | --bi)
936    ac_prev=bindir ;;
937  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938    bindir=$ac_optarg ;;
939
940  -build | --build | --buil | --bui | --bu)
941    ac_prev=build_alias ;;
942  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943    build_alias=$ac_optarg ;;
944
945  -cache-file | --cache-file | --cache-fil | --cache-fi \
946  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947    ac_prev=cache_file ;;
948  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950    cache_file=$ac_optarg ;;
951
952  --config-cache | -C)
953    cache_file=config.cache ;;
954
955  -datadir | --datadir | --datadi | --datad)
956    ac_prev=datadir ;;
957  -datadir=* | --datadir=* | --datadi=* | --datad=*)
958    datadir=$ac_optarg ;;
959
960  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961  | --dataroo | --dataro | --datar)
962    ac_prev=datarootdir ;;
963  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965    datarootdir=$ac_optarg ;;
966
967  -disable-* | --disable-*)
968    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969    # Reject names that are not valid shell variable names.
970    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971      as_fn_error $? "invalid feature name: $ac_useropt"
972    ac_useropt_orig=$ac_useropt
973    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974    case $ac_user_opts in
975      *"
976"enable_$ac_useropt"
977"*) ;;
978      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979	 ac_unrecognized_sep=', ';;
980    esac
981    eval enable_$ac_useropt=no ;;
982
983  -docdir | --docdir | --docdi | --doc | --do)
984    ac_prev=docdir ;;
985  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986    docdir=$ac_optarg ;;
987
988  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989    ac_prev=dvidir ;;
990  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991    dvidir=$ac_optarg ;;
992
993  -enable-* | --enable-*)
994    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997      as_fn_error $? "invalid feature name: $ac_useropt"
998    ac_useropt_orig=$ac_useropt
999    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000    case $ac_user_opts in
1001      *"
1002"enable_$ac_useropt"
1003"*) ;;
1004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005	 ac_unrecognized_sep=', ';;
1006    esac
1007    eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011  | --exec | --exe | --ex)
1012    ac_prev=exec_prefix ;;
1013  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015  | --exec=* | --exe=* | --ex=*)
1016    exec_prefix=$ac_optarg ;;
1017
1018  -gas | --gas | --ga | --g)
1019    # Obsolete; use --with-gas.
1020    with_gas=yes ;;
1021
1022  -help | --help | --hel | --he | -h)
1023    ac_init_help=long ;;
1024  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025    ac_init_help=recursive ;;
1026  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027    ac_init_help=short ;;
1028
1029  -host | --host | --hos | --ho)
1030    ac_prev=host_alias ;;
1031  -host=* | --host=* | --hos=* | --ho=*)
1032    host_alias=$ac_optarg ;;
1033
1034  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035    ac_prev=htmldir ;;
1036  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037  | --ht=*)
1038    htmldir=$ac_optarg ;;
1039
1040  -includedir | --includedir | --includedi | --included | --include \
1041  | --includ | --inclu | --incl | --inc)
1042    ac_prev=includedir ;;
1043  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044  | --includ=* | --inclu=* | --incl=* | --inc=*)
1045    includedir=$ac_optarg ;;
1046
1047  -infodir | --infodir | --infodi | --infod | --info | --inf)
1048    ac_prev=infodir ;;
1049  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050    infodir=$ac_optarg ;;
1051
1052  -libdir | --libdir | --libdi | --libd)
1053    ac_prev=libdir ;;
1054  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055    libdir=$ac_optarg ;;
1056
1057  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058  | --libexe | --libex | --libe)
1059    ac_prev=libexecdir ;;
1060  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061  | --libexe=* | --libex=* | --libe=*)
1062    libexecdir=$ac_optarg ;;
1063
1064  -localedir | --localedir | --localedi | --localed | --locale)
1065    ac_prev=localedir ;;
1066  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067    localedir=$ac_optarg ;;
1068
1069  -localstatedir | --localstatedir | --localstatedi | --localstated \
1070  | --localstate | --localstat | --localsta | --localst | --locals)
1071    ac_prev=localstatedir ;;
1072  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074    localstatedir=$ac_optarg ;;
1075
1076  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077    ac_prev=mandir ;;
1078  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079    mandir=$ac_optarg ;;
1080
1081  -nfp | --nfp | --nf)
1082    # Obsolete; use --without-fp.
1083    with_fp=no ;;
1084
1085  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086  | --no-cr | --no-c | -n)
1087    no_create=yes ;;
1088
1089  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091    no_recursion=yes ;;
1092
1093  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095  | --oldin | --oldi | --old | --ol | --o)
1096    ac_prev=oldincludedir ;;
1097  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100    oldincludedir=$ac_optarg ;;
1101
1102  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103    ac_prev=prefix ;;
1104  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105    prefix=$ac_optarg ;;
1106
1107  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108  | --program-pre | --program-pr | --program-p)
1109    ac_prev=program_prefix ;;
1110  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112    program_prefix=$ac_optarg ;;
1113
1114  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115  | --program-suf | --program-su | --program-s)
1116    ac_prev=program_suffix ;;
1117  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119    program_suffix=$ac_optarg ;;
1120
1121  -program-transform-name | --program-transform-name \
1122  | --program-transform-nam | --program-transform-na \
1123  | --program-transform-n | --program-transform- \
1124  | --program-transform | --program-transfor \
1125  | --program-transfo | --program-transf \
1126  | --program-trans | --program-tran \
1127  | --progr-tra | --program-tr | --program-t)
1128    ac_prev=program_transform_name ;;
1129  -program-transform-name=* | --program-transform-name=* \
1130  | --program-transform-nam=* | --program-transform-na=* \
1131  | --program-transform-n=* | --program-transform-=* \
1132  | --program-transform=* | --program-transfor=* \
1133  | --program-transfo=* | --program-transf=* \
1134  | --program-trans=* | --program-tran=* \
1135  | --progr-tra=* | --program-tr=* | --program-t=*)
1136    program_transform_name=$ac_optarg ;;
1137
1138  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139    ac_prev=pdfdir ;;
1140  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141    pdfdir=$ac_optarg ;;
1142
1143  -psdir | --psdir | --psdi | --psd | --ps)
1144    ac_prev=psdir ;;
1145  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146    psdir=$ac_optarg ;;
1147
1148  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149  | -silent | --silent | --silen | --sile | --sil)
1150    silent=yes ;;
1151
1152  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153    ac_prev=sbindir ;;
1154  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155  | --sbi=* | --sb=*)
1156    sbindir=$ac_optarg ;;
1157
1158  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160  | --sharedst | --shareds | --shared | --share | --shar \
1161  | --sha | --sh)
1162    ac_prev=sharedstatedir ;;
1163  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166  | --sha=* | --sh=*)
1167    sharedstatedir=$ac_optarg ;;
1168
1169  -site | --site | --sit)
1170    ac_prev=site ;;
1171  -site=* | --site=* | --sit=*)
1172    site=$ac_optarg ;;
1173
1174  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175    ac_prev=srcdir ;;
1176  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177    srcdir=$ac_optarg ;;
1178
1179  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180  | --syscon | --sysco | --sysc | --sys | --sy)
1181    ac_prev=sysconfdir ;;
1182  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184    sysconfdir=$ac_optarg ;;
1185
1186  -target | --target | --targe | --targ | --tar | --ta | --t)
1187    ac_prev=target_alias ;;
1188  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189    target_alias=$ac_optarg ;;
1190
1191  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192    verbose=yes ;;
1193
1194  -version | --version | --versio | --versi | --vers | -V)
1195    ac_init_version=: ;;
1196
1197  -with-* | --with-*)
1198    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199    # Reject names that are not valid shell variable names.
1200    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201      as_fn_error $? "invalid package name: $ac_useropt"
1202    ac_useropt_orig=$ac_useropt
1203    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204    case $ac_user_opts in
1205      *"
1206"with_$ac_useropt"
1207"*) ;;
1208      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209	 ac_unrecognized_sep=', ';;
1210    esac
1211    eval with_$ac_useropt=\$ac_optarg ;;
1212
1213  -without-* | --without-*)
1214    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217      as_fn_error $? "invalid package name: $ac_useropt"
1218    ac_useropt_orig=$ac_useropt
1219    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220    case $ac_user_opts in
1221      *"
1222"with_$ac_useropt"
1223"*) ;;
1224      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225	 ac_unrecognized_sep=', ';;
1226    esac
1227    eval with_$ac_useropt=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
1249    ;;
1250
1251  *=*)
1252    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253    # Reject names that are not valid shell variable names.
1254    case $ac_envvar in #(
1255      '' | [0-9]* | *[!_$as_cr_alnum]* )
1256      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257    esac
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  as_fn_error $? "missing argument to $ac_option"
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278  case $enable_option_checking in
1279    no) ;;
1280    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282  esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287		datadir sysconfdir sharedstatedir localstatedir includedir \
1288		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289		libdir localedir mandir
1290do
1291  eval ac_val=\$$ac_var
1292  # Remove trailing slashes.
1293  case $ac_val in
1294    */ )
1295      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296      eval $ac_var=\$ac_val;;
1297  esac
1298  # Be sure to have absolute directory names.
1299  case $ac_val in
1300    [\\/$]* | ?:[\\/]* )  continue;;
1301    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302  esac
1303  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315  if test "x$build_alias" = x; then
1316    cross_compiling=maybe
1317  elif test "x$build_alias" != "x$host_alias"; then
1318    cross_compiling=yes
1319  fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331  as_fn_error $? "working directory cannot be determined"
1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333  as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338  ac_srcdir_defaulted=yes
1339  # Try the directory containing this script, then the parent directory.
1340  ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342	 X"$as_myself" : 'X\(//\)[^/]' \| \
1343	 X"$as_myself" : 'X\(//\)$' \| \
1344	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)[^/].*/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)$/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\).*/{
1359	    s//\1/
1360	    q
1361	  }
1362	  s/.*/./; q'`
1363  srcdir=$ac_confdir
1364  if test ! -r "$srcdir/$ac_unique_file"; then
1365    srcdir=..
1366  fi
1367else
1368  ac_srcdir_defaulted=no
1369fi
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
1376	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377	pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380  srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_env_${ac_var}_value=\$${ac_var}
1391  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399  # Omit some internal or obsolete options to make the list less imposing.
1400  # This message is too long to be a string in the A/UX 3.1 sh.
1401  cat <<_ACEOF
1402\`configure' configures python 3.8 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412  -h, --help              display this help and exit
1413      --help=short        display options specific to this package
1414      --help=recursive    display the short help of all the included packages
1415  -V, --version           display version information and exit
1416  -q, --quiet, --silent   do not print \`checking ...' messages
1417      --cache-file=FILE   cache test results in FILE [disabled]
1418  -C, --config-cache      alias for \`--cache-file=config.cache'
1419  -n, --no-create         do not create output files
1420      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423  --prefix=PREFIX         install architecture-independent files in PREFIX
1424                          [$ac_default_prefix]
1425  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                          [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436  --bindir=DIR            user executables [EPREFIX/bin]
1437  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1438  --libexecdir=DIR        program executables [EPREFIX/libexec]
1439  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1440  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1441  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1442  --libdir=DIR            object code libraries [EPREFIX/lib]
1443  --includedir=DIR        C header files [PREFIX/include]
1444  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1445  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1446  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1447  --infodir=DIR           info documentation [DATAROOTDIR/info]
1448  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1449  --mandir=DIR            man documentation [DATAROOTDIR/man]
1450  --docdir=DIR            documentation root [DATAROOTDIR/doc/python]
1451  --htmldir=DIR           html documentation [DOCDIR]
1452  --dvidir=DIR            dvi documentation [DOCDIR]
1453  --pdfdir=DIR            pdf documentation [DOCDIR]
1454  --psdir=DIR             ps documentation [DOCDIR]
1455_ACEOF
1456
1457  cat <<\_ACEOF
1458
1459System types:
1460  --build=BUILD     configure for building on BUILD [guessed]
1461  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466  case $ac_init_help in
1467     short | recursive ) echo "Configuration of python 3.8:";;
1468   esac
1469  cat <<\_ACEOF
1470
1471Optional Features:
1472  --disable-option-checking  ignore unrecognized --enable/--with options
1473  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1474  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1475  --enable-universalsdk[=SDKDIR]
1476                          Build fat binary against Mac OS X SDK
1477  --enable-framework[=INSTALLDIR]
1478                          Build (MacOSX|Darwin) framework
1479  --enable-shared         disable/enable building shared python library
1480  --enable-profiling      enable C-level code profiling
1481  --enable-optimizations  Enable expensive, stable optimizations (PGO, etc).
1482                          Disabled by default.
1483  --enable-loadable-sqlite-extensions
1484                          support loadable extensions in _sqlite module
1485  --enable-ipv6           Enable ipv6 (with ipv4) support
1486  --disable-ipv6          Disable ipv6 support
1487  --enable-big-digits[=BITS]
1488                          use big digits for Python longs [[BITS=30]]
1489
1490Optional Packages:
1491  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493  --with-universal-archs=ARCH
1494                          specify the kind of macOS universal binary that
1495                          should be created. This option is only valid when
1496                          --enable-universalsdk is set; options are:
1497                          ("universal2", "intel-64", "intel-32", "intel",
1498                          "32-bit", "64-bit", "3-way", or "all") see
1499                          Mac/README.rst
1500  --with-framework-name=FRAMEWORK
1501                          specify an alternate name of the framework built
1502                          with --enable-framework
1503  --with-cxx-main=<compiler>
1504                          compile main() and link python executable with C++
1505                          compiler
1506  --with-suffix=.exe      set executable suffix
1507  --with-pydebug          build with Py_DEBUG defined
1508  --with-trace-refs       enable tracing references for debugging purpose
1509  --with-assertions       build with C assertions enabled
1510  --with-lto              Enable Link Time Optimization in any build. Disabled
1511                          by default.
1512  --with-hash-algorithm=[fnv|siphash24]
1513                          select hash algorithm
1514  --with-address-sanitizer
1515                          enable AddressSanitizer (asan)
1516  --with-memory-sanitizer enable MemorySanitizer (msan)
1517  --with-undefined-behavior-sanitizer
1518                          enable UndefinedBehaviorSanitizer (ubsan)
1519  --with-libs='lib1 ...'  link against additional libs
1520  --with-system-expat     build pyexpat module using an installed expat
1521                          library
1522  --with-system-ffi       build _ctypes module using an installed ffi library
1523  --with-system-libmpdec  build _decimal module using an installed libmpdec
1524                          library
1525  --with-decimal-contextvar
1526                          build _decimal module using a coroutine-local rather
1527                          than a thread-local context (default is yes)
1528  --with-tcltk-includes='-I...'
1529                          override search for Tcl and Tk include files
1530  --with-tcltk-libs='-L...'
1531                          override search for Tcl and Tk libs
1532  --with-dbmliborder=db1:db2:...
1533                          order to check db backends for dbm. Valid value is a
1534                          colon separated string with the backend names
1535                          `ndbm', `gdbm' and `bdb'.
1536  --with(out)-doc-strings disable/enable documentation strings
1537  --with(out)-pymalloc    disable/enable specialized mallocs
1538  --with(out)-c-locale-coercion
1539                          disable/enable C locale coercion to a UTF-8 based
1540                          locale
1541  --with-valgrind         Enable Valgrind support
1542  --with(out)-dtrace      disable/enable DTrace support
1543  --with-libm=STRING      math library
1544  --with-libc=STRING      C library
1545  --with(out)-computed-gotos
1546                          Use computed gotos in evaluation loop (enabled by
1547                          default on supported compilers)
1548  --with(out)-ensurepip=[=upgrade]
1549                          "install" or "upgrade" using bundled pip
1550  --with-openssl=DIR      root of the OpenSSL directory
1551  --with-ssl-default-suites=[python|openssl|STRING]
1552                          Override default cipher suites string, python: use
1553                          Python's preferred selection (default), openssl:
1554                          leave OpenSSL's defaults untouched, STRING: use a
1555                          custom string, PROTOCOL_SSLv2 ignores the setting
1556
1557Some influential environment variables:
1558  MACHDEP     name for machine-dependent library files
1559  CC          C compiler command
1560  CFLAGS      C compiler flags
1561  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562              nonstandard directory <lib dir>
1563  LIBS        libraries to pass to the linker, e.g. -l<library>
1564  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565              you have headers in a nonstandard directory <include dir>
1566  CPP         C preprocessor
1567  PROFILE_TASK
1568              Python args for PGO generation task
1569  PKG_CONFIG  path to pkg-config utility
1570  PKG_CONFIG_PATH
1571              directories to add to pkg-config's search path
1572  PKG_CONFIG_LIBDIR
1573              path overriding pkg-config's built-in search path
1574
1575Use these variables to override the choices made by `configure' or to help
1576it to find libraries and programs with nonstandard names/locations.
1577
1578Report bugs to <https://bugs.python.org/>.
1579_ACEOF
1580ac_status=$?
1581fi
1582
1583if test "$ac_init_help" = "recursive"; then
1584  # If there are subdirs, report their specific --help.
1585  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586    test -d "$ac_dir" ||
1587      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588      continue
1589    ac_builddir=.
1590
1591case "$ac_dir" in
1592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593*)
1594  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595  # A ".." for each directory in $ac_dir_suffix.
1596  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597  case $ac_top_builddir_sub in
1598  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600  esac ;;
1601esac
1602ac_abs_top_builddir=$ac_pwd
1603ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604# for backward compatibility:
1605ac_top_builddir=$ac_top_build_prefix
1606
1607case $srcdir in
1608  .)  # We are building in place.
1609    ac_srcdir=.
1610    ac_top_srcdir=$ac_top_builddir_sub
1611    ac_abs_top_srcdir=$ac_pwd ;;
1612  [\\/]* | ?:[\\/]* )  # Absolute name.
1613    ac_srcdir=$srcdir$ac_dir_suffix;
1614    ac_top_srcdir=$srcdir
1615    ac_abs_top_srcdir=$srcdir ;;
1616  *) # Relative name.
1617    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618    ac_top_srcdir=$ac_top_build_prefix$srcdir
1619    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620esac
1621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623    cd "$ac_dir" || { ac_status=$?; continue; }
1624    # Check for guested configure.
1625    if test -f "$ac_srcdir/configure.gnu"; then
1626      echo &&
1627      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628    elif test -f "$ac_srcdir/configure"; then
1629      echo &&
1630      $SHELL "$ac_srcdir/configure" --help=recursive
1631    else
1632      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633    fi || ac_status=$?
1634    cd "$ac_pwd" || { ac_status=$?; break; }
1635  done
1636fi
1637
1638test -n "$ac_init_help" && exit $ac_status
1639if $ac_init_version; then
1640  cat <<\_ACEOF
1641python configure 3.8
1642generated by GNU Autoconf 2.69
1643
1644Copyright (C) 2012 Free Software Foundation, Inc.
1645This configure script is free software; the Free Software Foundation
1646gives unlimited permission to copy, distribute and modify it.
1647_ACEOF
1648  exit
1649fi
1650
1651## ------------------------ ##
1652## Autoconf initialization. ##
1653## ------------------------ ##
1654
1655# ac_fn_c_try_compile LINENO
1656# --------------------------
1657# Try to compile conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_compile ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  rm -f conftest.$ac_objext
1662  if { { ac_try="$ac_compile"
1663case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669  (eval "$ac_compile") 2>conftest.err
1670  ac_status=$?
1671  if test -s conftest.err; then
1672    grep -v '^ *+' conftest.err >conftest.er1
1673    cat conftest.er1 >&5
1674    mv -f conftest.er1 conftest.err
1675  fi
1676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; } && {
1678	 test -z "$ac_c_werror_flag" ||
1679	 test ! -s conftest.err
1680       } && test -s conftest.$ac_objext; then :
1681  ac_retval=0
1682else
1683  $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686	ac_retval=1
1687fi
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689  as_fn_set_status $ac_retval
1690
1691} # ac_fn_c_try_compile
1692
1693# ac_fn_c_try_cpp LINENO
1694# ----------------------
1695# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_cpp ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  if { { ac_try="$ac_cpp conftest.$ac_ext"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1707  ac_status=$?
1708  if test -s conftest.err; then
1709    grep -v '^ *+' conftest.err >conftest.er1
1710    cat conftest.er1 >&5
1711    mv -f conftest.er1 conftest.err
1712  fi
1713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714  test $ac_status = 0; } > conftest.i && {
1715	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1716	 test ! -s conftest.err
1717       }; then :
1718  ac_retval=0
1719else
1720  $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723    ac_retval=1
1724fi
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726  as_fn_set_status $ac_retval
1727
1728} # ac_fn_c_try_cpp
1729
1730# ac_fn_c_try_link LINENO
1731# -----------------------
1732# Try to link conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_c_try_link ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  rm -f conftest.$ac_objext conftest$ac_exeext
1737  if { { ac_try="$ac_link"
1738case "(($ac_try" in
1739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740  *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744  (eval "$ac_link") 2>conftest.err
1745  ac_status=$?
1746  if test -s conftest.err; then
1747    grep -v '^ *+' conftest.err >conftest.er1
1748    cat conftest.er1 >&5
1749    mv -f conftest.er1 conftest.err
1750  fi
1751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752  test $ac_status = 0; } && {
1753	 test -z "$ac_c_werror_flag" ||
1754	 test ! -s conftest.err
1755       } && test -s conftest$ac_exeext && {
1756	 test "$cross_compiling" = yes ||
1757	 test -x conftest$ac_exeext
1758       }; then :
1759  ac_retval=0
1760else
1761  $as_echo "$as_me: failed program was:" >&5
1762sed 's/^/| /' conftest.$ac_ext >&5
1763
1764	ac_retval=1
1765fi
1766  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768  # interfere with the next link command; also delete a directory that is
1769  # left behind by Apple's compiler.  We do this before executing the actions.
1770  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772  as_fn_set_status $ac_retval
1773
1774} # ac_fn_c_try_link
1775
1776# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1777# -------------------------------------------------------
1778# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1779# the include files in INCLUDES and setting the cache variable VAR
1780# accordingly.
1781ac_fn_c_check_header_mongrel ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  if eval \${$3+:} false; then :
1785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786$as_echo_n "checking for $2... " >&6; }
1787if eval \${$3+:} false; then :
1788  $as_echo_n "(cached) " >&6
1789fi
1790eval ac_res=\$$3
1791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793else
1794  # Is the header compilable?
1795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1796$as_echo_n "checking $2 usability... " >&6; }
1797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h.  */
1799$4
1800#include <$2>
1801_ACEOF
1802if ac_fn_c_try_compile "$LINENO"; then :
1803  ac_header_compiler=yes
1804else
1805  ac_header_compiler=no
1806fi
1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1809$as_echo "$ac_header_compiler" >&6; }
1810
1811# Is the header present?
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1813$as_echo_n "checking $2 presence... " >&6; }
1814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_cpp "$LINENO"; then :
1819  ac_header_preproc=yes
1820else
1821  ac_header_preproc=no
1822fi
1823rm -f conftest.err conftest.i conftest.$ac_ext
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1825$as_echo "$ac_header_preproc" >&6; }
1826
1827# So?  What about this header?
1828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1829  yes:no: )
1830    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1831$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834    ;;
1835  no:yes:* )
1836    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1837$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1839$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1840    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1841$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1843$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846( $as_echo "## --------------------------------------- ##
1847## Report this to https://bugs.python.org/ ##
1848## --------------------------------------- ##"
1849     ) | sed "s/^/$as_me: WARNING:     /" >&2
1850    ;;
1851esac
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if eval \${$3+:} false; then :
1855  $as_echo_n "(cached) " >&6
1856else
1857  eval "$3=\$ac_header_compiler"
1858fi
1859eval ac_res=\$$3
1860	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
1862fi
1863  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865} # ac_fn_c_check_header_mongrel
1866
1867# ac_fn_c_try_run LINENO
1868# ----------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1870# that executables *can* be run.
1871ac_fn_c_try_run ()
1872{
1873  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874  if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877  *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881  (eval "$ac_link") 2>&5
1882  ac_status=$?
1883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1885  { { case "(($ac_try" in
1886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887  *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891  (eval "$ac_try") 2>&5
1892  ac_status=$?
1893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894  test $ac_status = 0; }; }; then :
1895  ac_retval=0
1896else
1897  $as_echo "$as_me: program exited with status $ac_status" >&5
1898       $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901       ac_retval=$ac_status
1902fi
1903  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905  as_fn_set_status $ac_retval
1906
1907} # ac_fn_c_try_run
1908
1909# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1910# -------------------------------------------------------
1911# Tests whether HEADER exists and can be compiled using the include files in
1912# INCLUDES, setting the cache variable VAR accordingly.
1913ac_fn_c_check_header_compile ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917$as_echo_n "checking for $2... " >&6; }
1918if eval \${$3+:} false; then :
1919  $as_echo_n "(cached) " >&6
1920else
1921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h.  */
1923$4
1924#include <$2>
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"; then :
1927  eval "$3=yes"
1928else
1929  eval "$3=no"
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932fi
1933eval ac_res=\$$3
1934	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938} # ac_fn_c_check_header_compile
1939
1940# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941# -------------------------------------------
1942# Tests whether TYPE exists after having included INCLUDES, setting cache
1943# variable VAR accordingly.
1944ac_fn_c_check_type ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948$as_echo_n "checking for $2... " >&6; }
1949if eval \${$3+:} false; then :
1950  $as_echo_n "(cached) " >&6
1951else
1952  eval "$3=no"
1953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h.  */
1955$4
1956int
1957main ()
1958{
1959if (sizeof ($2))
1960	 return 0;
1961  ;
1962  return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_compile "$LINENO"; then :
1966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h.  */
1968$4
1969int
1970main ()
1971{
1972if (sizeof (($2)))
1973	    return 0;
1974  ;
1975  return 0;
1976}
1977_ACEOF
1978if ac_fn_c_try_compile "$LINENO"; then :
1979
1980else
1981  eval "$3=yes"
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987eval ac_res=\$$3
1988	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989$as_echo "$ac_res" >&6; }
1990  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992} # ac_fn_c_check_type
1993
1994# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1995# --------------------------------------------
1996# Tries to find the compile-time value of EXPR in a program that includes
1997# INCLUDES, setting VAR accordingly. Returns whether the value could be
1998# computed
1999ac_fn_c_compute_int ()
2000{
2001  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002  if test "$cross_compiling" = yes; then
2003    # Depending upon the size, compute the lo and hi bounds.
2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006$4
2007int
2008main ()
2009{
2010static int test_array [1 - 2 * !(($2) >= 0)];
2011test_array [0] = 0;
2012return test_array [0];
2013
2014  ;
2015  return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019  ac_lo=0 ac_mid=0
2020  while :; do
2021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main ()
2026{
2027static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2028test_array [0] = 0;
2029return test_array [0];
2030
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036  ac_hi=$ac_mid; break
2037else
2038  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2039			if test $ac_lo -le $ac_mid; then
2040			  ac_lo= ac_hi=
2041			  break
2042			fi
2043			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046  done
2047else
2048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$4
2051int
2052main ()
2053{
2054static int test_array [1 - 2 * !(($2) < 0)];
2055test_array [0] = 0;
2056return test_array [0];
2057
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"; then :
2063  ac_hi=-1 ac_mid=-1
2064  while :; do
2065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h.  */
2067$4
2068int
2069main ()
2070{
2071static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2072test_array [0] = 0;
2073return test_array [0];
2074
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080  ac_lo=$ac_mid; break
2081else
2082  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2083			if test $ac_mid -le $ac_hi; then
2084			  ac_lo= ac_hi=
2085			  break
2086			fi
2087			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090  done
2091else
2092  ac_lo= ac_hi=
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097# Binary search between lo and hi bounds.
2098while test "x$ac_lo" != "x$ac_hi"; do
2099  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102$4
2103int
2104main ()
2105{
2106static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2107test_array [0] = 0;
2108return test_array [0];
2109
2110  ;
2111  return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115  ac_hi=$ac_mid
2116else
2117  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120done
2121case $ac_lo in #((
2122?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2123'') ac_retval=1 ;;
2124esac
2125  else
2126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h.  */
2128$4
2129static long int longval () { return $2; }
2130static unsigned long int ulongval () { return $2; }
2131#include <stdio.h>
2132#include <stdlib.h>
2133int
2134main ()
2135{
2136
2137  FILE *f = fopen ("conftest.val", "w");
2138  if (! f)
2139    return 1;
2140  if (($2) < 0)
2141    {
2142      long int i = longval ();
2143      if (i != ($2))
2144	return 1;
2145      fprintf (f, "%ld", i);
2146    }
2147  else
2148    {
2149      unsigned long int i = ulongval ();
2150      if (i != ($2))
2151	return 1;
2152      fprintf (f, "%lu", i);
2153    }
2154  /* Do not output a trailing newline, as this causes \r\n confusion
2155     on some platforms.  */
2156  return ferror (f) || fclose (f) != 0;
2157
2158  ;
2159  return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_run "$LINENO"; then :
2163  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2164else
2165  ac_retval=1
2166fi
2167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2168  conftest.$ac_objext conftest.beam conftest.$ac_ext
2169rm -f conftest.val
2170
2171  fi
2172  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173  as_fn_set_status $ac_retval
2174
2175} # ac_fn_c_compute_int
2176
2177# ac_fn_c_check_func LINENO FUNC VAR
2178# ----------------------------------
2179# Tests whether FUNC exists, setting the cache variable VAR accordingly
2180ac_fn_c_check_func ()
2181{
2182  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184$as_echo_n "checking for $2... " >&6; }
2185if eval \${$3+:} false; then :
2186  $as_echo_n "(cached) " >&6
2187else
2188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h.  */
2190/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2191   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2192#define $2 innocuous_$2
2193
2194/* System header to define __stub macros and hopefully few prototypes,
2195    which can conflict with char $2 (); below.
2196    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2197    <limits.h> exists even on freestanding compilers.  */
2198
2199#ifdef __STDC__
2200# include <limits.h>
2201#else
2202# include <assert.h>
2203#endif
2204
2205#undef $2
2206
2207/* Override any GCC internal prototype to avoid an error.
2208   Use char because int might match the return type of a GCC
2209   builtin and then its argument prototype would still apply.  */
2210#ifdef __cplusplus
2211extern "C"
2212#endif
2213char $2 ();
2214/* The GNU C library defines this for functions which it implements
2215    to always fail with ENOSYS.  Some functions are actually named
2216    something starting with __ and the normal name is an alias.  */
2217#if defined __stub_$2 || defined __stub___$2
2218choke me
2219#endif
2220
2221int
2222main ()
2223{
2224return $2 ();
2225  ;
2226  return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_link "$LINENO"; then :
2230  eval "$3=yes"
2231else
2232  eval "$3=no"
2233fi
2234rm -f core conftest.err conftest.$ac_objext \
2235    conftest$ac_exeext conftest.$ac_ext
2236fi
2237eval ac_res=\$$3
2238	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239$as_echo "$ac_res" >&6; }
2240  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241
2242} # ac_fn_c_check_func
2243
2244# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2245# ---------------------------------------------
2246# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2247# accordingly.
2248ac_fn_c_check_decl ()
2249{
2250  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251  as_decl_name=`echo $2|sed 's/ *(.*//'`
2252  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2254$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2255if eval \${$3+:} false; then :
2256  $as_echo_n "(cached) " >&6
2257else
2258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h.  */
2260$4
2261int
2262main ()
2263{
2264#ifndef $as_decl_name
2265#ifdef __cplusplus
2266  (void) $as_decl_use;
2267#else
2268  (void) $as_decl_name;
2269#endif
2270#endif
2271
2272  ;
2273  return 0;
2274}
2275_ACEOF
2276if ac_fn_c_try_compile "$LINENO"; then :
2277  eval "$3=yes"
2278else
2279  eval "$3=no"
2280fi
2281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282fi
2283eval ac_res=\$$3
2284	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285$as_echo "$ac_res" >&6; }
2286  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287
2288} # ac_fn_c_check_decl
2289
2290# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2291# ----------------------------------------------------
2292# Tries to find if the field MEMBER exists in type AGGR, after including
2293# INCLUDES, setting cache variable VAR accordingly.
2294ac_fn_c_check_member ()
2295{
2296  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2298$as_echo_n "checking for $2.$3... " >&6; }
2299if eval \${$4+:} false; then :
2300  $as_echo_n "(cached) " >&6
2301else
2302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303/* end confdefs.h.  */
2304$5
2305int
2306main ()
2307{
2308static $2 ac_aggr;
2309if (ac_aggr.$3)
2310return 0;
2311  ;
2312  return 0;
2313}
2314_ACEOF
2315if ac_fn_c_try_compile "$LINENO"; then :
2316  eval "$4=yes"
2317else
2318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319/* end confdefs.h.  */
2320$5
2321int
2322main ()
2323{
2324static $2 ac_aggr;
2325if (sizeof ac_aggr.$3)
2326return 0;
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331if ac_fn_c_try_compile "$LINENO"; then :
2332  eval "$4=yes"
2333else
2334  eval "$4=no"
2335fi
2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337fi
2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339fi
2340eval ac_res=\$$4
2341	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2342$as_echo "$ac_res" >&6; }
2343  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2344
2345} # ac_fn_c_check_member
2346cat >config.log <<_ACEOF
2347This file contains any messages produced by compilers while
2348running configure, to aid debugging if configure makes a mistake.
2349
2350It was created by python $as_me 3.8, which was
2351generated by GNU Autoconf 2.69.  Invocation command line was
2352
2353  $ $0 $@
2354
2355_ACEOF
2356exec 5>>config.log
2357{
2358cat <<_ASUNAME
2359## --------- ##
2360## Platform. ##
2361## --------- ##
2362
2363hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2364uname -m = `(uname -m) 2>/dev/null || echo unknown`
2365uname -r = `(uname -r) 2>/dev/null || echo unknown`
2366uname -s = `(uname -s) 2>/dev/null || echo unknown`
2367uname -v = `(uname -v) 2>/dev/null || echo unknown`
2368
2369/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2370/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2371
2372/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2373/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2374/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2375/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2376/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2377/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2378/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2379
2380_ASUNAME
2381
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387    $as_echo "PATH: $as_dir"
2388  done
2389IFS=$as_save_IFS
2390
2391} >&5
2392
2393cat >&5 <<_ACEOF
2394
2395
2396## ----------- ##
2397## Core tests. ##
2398## ----------- ##
2399
2400_ACEOF
2401
2402
2403# Keep a trace of the command line.
2404# Strip out --no-create and --no-recursion so they do not pile up.
2405# Strip out --silent because we don't want to record it for future runs.
2406# Also quote any args containing shell meta-characters.
2407# Make two passes to allow for proper duplicate-argument suppression.
2408ac_configure_args=
2409ac_configure_args0=
2410ac_configure_args1=
2411ac_must_keep_next=false
2412for ac_pass in 1 2
2413do
2414  for ac_arg
2415  do
2416    case $ac_arg in
2417    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2418    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2419    | -silent | --silent | --silen | --sile | --sil)
2420      continue ;;
2421    *\'*)
2422      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2423    esac
2424    case $ac_pass in
2425    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2426    2)
2427      as_fn_append ac_configure_args1 " '$ac_arg'"
2428      if test $ac_must_keep_next = true; then
2429	ac_must_keep_next=false # Got value, back to normal.
2430      else
2431	case $ac_arg in
2432	  *=* | --config-cache | -C | -disable-* | --disable-* \
2433	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2434	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2435	  | -with-* | --with-* | -without-* | --without-* | --x)
2436	    case "$ac_configure_args0 " in
2437	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2438	    esac
2439	    ;;
2440	  -* ) ac_must_keep_next=true ;;
2441	esac
2442      fi
2443      as_fn_append ac_configure_args " '$ac_arg'"
2444      ;;
2445    esac
2446  done
2447done
2448{ ac_configure_args0=; unset ac_configure_args0;}
2449{ ac_configure_args1=; unset ac_configure_args1;}
2450
2451# When interrupted or exit'd, cleanup temporary files, and complete
2452# config.log.  We remove comments because anyway the quotes in there
2453# would cause problems or look ugly.
2454# WARNING: Use '\'' to represent an apostrophe within the trap.
2455# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2456trap 'exit_status=$?
2457  # Save into config.log some information that might help in debugging.
2458  {
2459    echo
2460
2461    $as_echo "## ---------------- ##
2462## Cache variables. ##
2463## ---------------- ##"
2464    echo
2465    # The following way of writing the cache mishandles newlines in values,
2466(
2467  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2468    eval ac_val=\$$ac_var
2469    case $ac_val in #(
2470    *${as_nl}*)
2471      case $ac_var in #(
2472      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2473$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2474      esac
2475      case $ac_var in #(
2476      _ | IFS | as_nl) ;; #(
2477      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2478      *) { eval $ac_var=; unset $ac_var;} ;;
2479      esac ;;
2480    esac
2481  done
2482  (set) 2>&1 |
2483    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2484    *${as_nl}ac_space=\ *)
2485      sed -n \
2486	"s/'\''/'\''\\\\'\'''\''/g;
2487	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2488      ;; #(
2489    *)
2490      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2491      ;;
2492    esac |
2493    sort
2494)
2495    echo
2496
2497    $as_echo "## ----------------- ##
2498## Output variables. ##
2499## ----------------- ##"
2500    echo
2501    for ac_var in $ac_subst_vars
2502    do
2503      eval ac_val=\$$ac_var
2504      case $ac_val in
2505      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2506      esac
2507      $as_echo "$ac_var='\''$ac_val'\''"
2508    done | sort
2509    echo
2510
2511    if test -n "$ac_subst_files"; then
2512      $as_echo "## ------------------- ##
2513## File substitutions. ##
2514## ------------------- ##"
2515      echo
2516      for ac_var in $ac_subst_files
2517      do
2518	eval ac_val=\$$ac_var
2519	case $ac_val in
2520	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521	esac
2522	$as_echo "$ac_var='\''$ac_val'\''"
2523      done | sort
2524      echo
2525    fi
2526
2527    if test -s confdefs.h; then
2528      $as_echo "## ----------- ##
2529## confdefs.h. ##
2530## ----------- ##"
2531      echo
2532      cat confdefs.h
2533      echo
2534    fi
2535    test "$ac_signal" != 0 &&
2536      $as_echo "$as_me: caught signal $ac_signal"
2537    $as_echo "$as_me: exit $exit_status"
2538  } >&5
2539  rm -f core *.core core.conftest.* &&
2540    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2541    exit $exit_status
2542' 0
2543for ac_signal in 1 2 13 15; do
2544  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545done
2546ac_signal=0
2547
2548# confdefs.h avoids OS command line length limits that DEFS can exceed.
2549rm -f -r conftest* confdefs.h
2550
2551$as_echo "/* confdefs.h */" > confdefs.h
2552
2553# Predefined preprocessor variables.
2554
2555cat >>confdefs.h <<_ACEOF
2556#define PACKAGE_NAME "$PACKAGE_NAME"
2557_ACEOF
2558
2559cat >>confdefs.h <<_ACEOF
2560#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2561_ACEOF
2562
2563cat >>confdefs.h <<_ACEOF
2564#define PACKAGE_VERSION "$PACKAGE_VERSION"
2565_ACEOF
2566
2567cat >>confdefs.h <<_ACEOF
2568#define PACKAGE_STRING "$PACKAGE_STRING"
2569_ACEOF
2570
2571cat >>confdefs.h <<_ACEOF
2572#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2573_ACEOF
2574
2575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_URL "$PACKAGE_URL"
2577_ACEOF
2578
2579
2580# Let the site file select an alternate cache file if it wants to.
2581# Prefer an explicitly selected file to automatically selected ones.
2582ac_site_file1=NONE
2583ac_site_file2=NONE
2584if test -n "$CONFIG_SITE"; then
2585  # We do not want a PATH search for config.site.
2586  case $CONFIG_SITE in #((
2587    -*)  ac_site_file1=./$CONFIG_SITE;;
2588    */*) ac_site_file1=$CONFIG_SITE;;
2589    *)   ac_site_file1=./$CONFIG_SITE;;
2590  esac
2591elif test "x$prefix" != xNONE; then
2592  ac_site_file1=$prefix/share/config.site
2593  ac_site_file2=$prefix/etc/config.site
2594else
2595  ac_site_file1=$ac_default_prefix/share/config.site
2596  ac_site_file2=$ac_default_prefix/etc/config.site
2597fi
2598for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2599do
2600  test "x$ac_site_file" = xNONE && continue
2601  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2602    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2603$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2604    sed 's/^/| /' "$ac_site_file" >&5
2605    . "$ac_site_file" \
2606      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2608as_fn_error $? "failed to load site script $ac_site_file
2609See \`config.log' for more details" "$LINENO" 5; }
2610  fi
2611done
2612
2613if test -r "$cache_file"; then
2614  # Some versions of bash will fail to source /dev/null (special files
2615  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2616  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2617    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2618$as_echo "$as_me: loading cache $cache_file" >&6;}
2619    case $cache_file in
2620      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2621      *)                      . "./$cache_file";;
2622    esac
2623  fi
2624else
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2626$as_echo "$as_me: creating cache $cache_file" >&6;}
2627  >$cache_file
2628fi
2629
2630# Check that the precious variables saved in the cache have kept the same
2631# value.
2632ac_cache_corrupted=false
2633for ac_var in $ac_precious_vars; do
2634  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2635  eval ac_new_set=\$ac_env_${ac_var}_set
2636  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2637  eval ac_new_val=\$ac_env_${ac_var}_value
2638  case $ac_old_set,$ac_new_set in
2639    set,)
2640      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2641$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2642      ac_cache_corrupted=: ;;
2643    ,set)
2644      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2645$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2646      ac_cache_corrupted=: ;;
2647    ,);;
2648    *)
2649      if test "x$ac_old_val" != "x$ac_new_val"; then
2650	# differences in whitespace do not lead to failure.
2651	ac_old_val_w=`echo x $ac_old_val`
2652	ac_new_val_w=`echo x $ac_new_val`
2653	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2654	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2655$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2656	  ac_cache_corrupted=:
2657	else
2658	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2659$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2660	  eval $ac_var=\$ac_old_val
2661	fi
2662	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2663$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2664	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2665$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2666      fi;;
2667  esac
2668  # Pass precious variables to config.status.
2669  if test "$ac_new_set" = set; then
2670    case $ac_new_val in
2671    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2672    *) ac_arg=$ac_var=$ac_new_val ;;
2673    esac
2674    case " $ac_configure_args " in
2675      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2676      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2677    esac
2678  fi
2679done
2680if $ac_cache_corrupted; then
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2684$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2685  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2686fi
2687## -------------------- ##
2688## Main body of script. ##
2689## -------------------- ##
2690
2691ac_ext=c
2692ac_cpp='$CPP $CPPFLAGS'
2693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696
2697
2698
2699
2700
2701
2702if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
2703    # If we're building out-of-tree, we need to make sure the following
2704    # resources get picked up before their $srcdir counterparts.
2705    #   Objects/ -> typeslots.inc
2706    #   Include/ -> Python-ast.h, graminit.h
2707    #   Python/  -> importlib.h
2708    # (A side effect of this is that these resources will automatically be
2709    #  regenerated when building out-of-tree, regardless of whether or not
2710    #  the $srcdir counterpart is up-to-date.  This is an acceptable trade
2711    #  off.)
2712    BASECPPFLAGS="-IObjects -IInclude -IPython"
2713else
2714    BASECPPFLAGS=""
2715fi
2716
2717
2718
2719
2720
2721if test -e $srcdir/.git
2722then
2723# Extract the first word of "git", so it can be a program name with args.
2724set dummy git; ac_word=$2
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726$as_echo_n "checking for $ac_word... " >&6; }
2727if ${ac_cv_prog_HAS_GIT+:} false; then :
2728  $as_echo_n "(cached) " >&6
2729else
2730  if test -n "$HAS_GIT"; then
2731  ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736  IFS=$as_save_IFS
2737  test -z "$as_dir" && as_dir=.
2738    for ac_exec_ext in '' $ac_executable_extensions; do
2739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740    ac_cv_prog_HAS_GIT="found"
2741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742    break 2
2743  fi
2744done
2745  done
2746IFS=$as_save_IFS
2747
2748  test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
2749fi
2750fi
2751HAS_GIT=$ac_cv_prog_HAS_GIT
2752if test -n "$HAS_GIT"; then
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
2754$as_echo "$HAS_GIT" >&6; }
2755else
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
2758fi
2759
2760
2761else
2762HAS_GIT=no-repository
2763fi
2764if test $HAS_GIT = found
2765then
2766    GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
2767    GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
2768    GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
2769else
2770    GITVERSION=""
2771    GITTAG=""
2772    GITBRANCH=""
2773fi
2774
2775
2776ac_config_headers="$ac_config_headers pyconfig.h"
2777
2778
2779ac_aux_dir=
2780for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2781  if test -f "$ac_dir/install-sh"; then
2782    ac_aux_dir=$ac_dir
2783    ac_install_sh="$ac_aux_dir/install-sh -c"
2784    break
2785  elif test -f "$ac_dir/install.sh"; then
2786    ac_aux_dir=$ac_dir
2787    ac_install_sh="$ac_aux_dir/install.sh -c"
2788    break
2789  elif test -f "$ac_dir/shtool"; then
2790    ac_aux_dir=$ac_dir
2791    ac_install_sh="$ac_aux_dir/shtool install -c"
2792    break
2793  fi
2794done
2795if test -z "$ac_aux_dir"; then
2796  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2797fi
2798
2799# These three variables are undocumented and unsupported,
2800# and are intended to be withdrawn in a future Autoconf release.
2801# They can cause serious problems if a builder's source tree is in a directory
2802# whose full name contains unusual characters.
2803ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2804ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2805ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2806
2807
2808# Make sure we can run config.sub.
2809$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2810  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2811
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2813$as_echo_n "checking build system type... " >&6; }
2814if ${ac_cv_build+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  ac_build_alias=$build_alias
2818test "x$ac_build_alias" = x &&
2819  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2820test "x$ac_build_alias" = x &&
2821  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2822ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2823  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2824
2825fi
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2827$as_echo "$ac_cv_build" >&6; }
2828case $ac_cv_build in
2829*-*-*) ;;
2830*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2831esac
2832build=$ac_cv_build
2833ac_save_IFS=$IFS; IFS='-'
2834set x $ac_cv_build
2835shift
2836build_cpu=$1
2837build_vendor=$2
2838shift; shift
2839# Remember, the first character of IFS is used to create $*,
2840# except with old shells:
2841build_os=$*
2842IFS=$ac_save_IFS
2843case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2844
2845
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2847$as_echo_n "checking host system type... " >&6; }
2848if ${ac_cv_host+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  if test "x$host_alias" = x; then
2852  ac_cv_host=$ac_cv_build
2853else
2854  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2855    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2856fi
2857
2858fi
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2860$as_echo "$ac_cv_host" >&6; }
2861case $ac_cv_host in
2862*-*-*) ;;
2863*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2864esac
2865host=$ac_cv_host
2866ac_save_IFS=$IFS; IFS='-'
2867set x $ac_cv_host
2868shift
2869host_cpu=$1
2870host_vendor=$2
2871shift; shift
2872# Remember, the first character of IFS is used to create $*,
2873# except with old shells:
2874host_os=$*
2875IFS=$ac_save_IFS
2876case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2877
2878
2879
2880
2881
2882# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2883rm -f pybuilddir.txt
2884
2885for ac_prog in python$PACKAGE_VERSION python3 python
2886do
2887  # Extract the first word of "$ac_prog", so it can be a program name with args.
2888set dummy $ac_prog; ac_word=$2
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
2891if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  if test -n "$PYTHON_FOR_REGEN"; then
2895  ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  test -z "$as_dir" && as_dir=.
2902    for ac_exec_ext in '' $ac_executable_extensions; do
2903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904    ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
2905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906    break 2
2907  fi
2908done
2909  done
2910IFS=$as_save_IFS
2911
2912fi
2913fi
2914PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
2915if test -n "$PYTHON_FOR_REGEN"; then
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
2917$as_echo "$PYTHON_FOR_REGEN" >&6; }
2918else
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
2922
2923
2924  test -n "$PYTHON_FOR_REGEN" && break
2925done
2926test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
2927
2928
2929
2930if test "$cross_compiling" = yes; then
2931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2932$as_echo_n "checking for python interpreter for cross build... " >&6; }
2933    if test -z "$PYTHON_FOR_BUILD"; then
2934        for interp in python$PACKAGE_VERSION python3 python; do
2935	    which $interp >/dev/null 2>&1 || continue
2936	    if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then
2937	        break
2938	    fi
2939            interp=
2940	done
2941        if test x$interp = x; then
2942	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
2943	fi
2944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2945$as_echo "$interp" >&6; }
2946	PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp
2947    fi
2948elif test "$cross_compiling" = maybe; then
2949    as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
2950else
2951    PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
2952fi
2953
2954
2955
2956if test "$prefix" != "/"; then
2957    prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2958fi
2959
2960
2961
2962
2963# We don't use PACKAGE_ variables, and they cause conflicts
2964# with other autoconf-based packages that include Python.h
2965grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2966rm confdefs.h
2967mv confdefs.h.new confdefs.h
2968
2969
2970VERSION=3.8
2971
2972# Version number of Python's own shared library file.
2973
2974SOVERSION=1.0
2975
2976# The later defininition of _XOPEN_SOURCE disables certain features
2977# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2978
2979$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2980
2981
2982# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2983# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2984# them.
2985
2986$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
2987
2988
2989# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2990# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2991# them.
2992
2993$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
2994
2995
2996# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2997# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
2998# them.
2999
3000$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3001
3002
3003
3004define_xopen_source=yes
3005
3006# Arguments passed to configure.
3007
3008CONFIG_ARGS="$ac_configure_args"
3009
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3011$as_echo_n "checking for --enable-universalsdk... " >&6; }
3012# Check whether --enable-universalsdk was given.
3013if test "${enable_universalsdk+set}" = set; then :
3014  enableval=$enable_universalsdk;
3015	case $enableval in
3016	yes)
3017		# Locate the best usable SDK, see Mac/README for more
3018		# information
3019		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
3020		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
3021		then
3022			enableval=/Developer/SDKs/MacOSX10.4u.sdk
3023			if test ! -d "${enableval}"
3024			then
3025				enableval=/
3026			fi
3027		fi
3028		;;
3029	esac
3030	case $enableval in
3031	no)
3032		UNIVERSALSDK=
3033		enable_universalsdk=
3034		;;
3035	*)
3036		UNIVERSALSDK=$enableval
3037		if test ! -d "${UNIVERSALSDK}"
3038		then
3039			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
3040		fi
3041		;;
3042	esac
3043
3044
3045else
3046
3047   	UNIVERSALSDK=
3048	enable_universalsdk=
3049
3050fi
3051
3052if test -n "${UNIVERSALSDK}"
3053then
3054	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3055$as_echo "${UNIVERSALSDK}" >&6; }
3056else
3057	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
3059fi
3060
3061
3062
3063ARCH_RUN_32BIT=""
3064
3065# For backward compatibility reasons we prefer to select '32-bit' if available,
3066# otherwise use 'intel'
3067UNIVERSAL_ARCHS="32-bit"
3068if test "`uname -s`" = "Darwin"
3069then
3070	if test -n "${UNIVERSALSDK}"
3071	then
3072		if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
3073		then
3074			UNIVERSAL_ARCHS="intel"
3075		fi
3076	fi
3077fi
3078
3079
3080
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3082$as_echo_n "checking for --with-universal-archs... " >&6; }
3083
3084# Check whether --with-universal-archs was given.
3085if test "${with_universal_archs+set}" = set; then :
3086  withval=$with_universal_archs;
3087	UNIVERSAL_ARCHS="$withval"
3088
3089fi
3090
3091if test -n "${UNIVERSALSDK}"
3092then
3093	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3094$as_echo "${UNIVERSAL_ARCHS}" >&6; }
3095else
3096	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
3098fi
3099
3100
3101# Check whether --with-framework-name was given.
3102if test "${with_framework_name+set}" = set; then :
3103  withval=$with_framework_name;
3104    PYTHONFRAMEWORK=${withval}
3105    PYTHONFRAMEWORKDIR=${withval}.framework
3106    PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3107
3108else
3109
3110    PYTHONFRAMEWORK=Python
3111    PYTHONFRAMEWORKDIR=Python.framework
3112    PYTHONFRAMEWORKIDENTIFIER=org.python.python
3113
3114fi
3115
3116# Check whether --enable-framework was given.
3117if test "${enable_framework+set}" = set; then :
3118  enableval=$enable_framework;
3119	case $enableval in
3120	yes)
3121		enableval=/Library/Frameworks
3122	esac
3123	case $enableval in
3124	no)
3125		PYTHONFRAMEWORK=
3126		PYTHONFRAMEWORKDIR=no-framework
3127		PYTHONFRAMEWORKPREFIX=
3128		PYTHONFRAMEWORKINSTALLDIR=
3129		FRAMEWORKINSTALLFIRST=
3130		FRAMEWORKINSTALLLAST=
3131		FRAMEWORKALTINSTALLFIRST=
3132		FRAMEWORKALTINSTALLLAST=
3133		FRAMEWORKPYTHONW=
3134		if test "x${prefix}" = "xNONE"; then
3135			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3136		else
3137			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3138		fi
3139		enable_framework=
3140		;;
3141	*)
3142		PYTHONFRAMEWORKPREFIX="${enableval}"
3143		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
3144		FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
3145		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
3146		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3147		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
3148		FRAMEWORKPYTHONW="frameworkpythonw"
3149		FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3150
3151		if test "x${prefix}" = "xNONE" ; then
3152			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3153
3154		else
3155			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3156		fi
3157
3158		case "${enableval}" in
3159		/System*)
3160			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3161			if test "${prefix}" = "NONE" ; then
3162				# See below
3163				FRAMEWORKUNIXTOOLSPREFIX="/usr"
3164			fi
3165			;;
3166
3167		/Library*)
3168			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3169			;;
3170
3171		*/Library/Frameworks)
3172			MDIR="`dirname "${enableval}"`"
3173			MDIR="`dirname "${MDIR}"`"
3174			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3175
3176			if test "${prefix}" = "NONE"; then
3177				# User hasn't specified the
3178				# --prefix option, but wants to install
3179				# the framework in a non-default location,
3180				# ensure that the compatibility links get
3181				# installed relative to that prefix as well
3182				# instead of in /usr/local.
3183				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3184			fi
3185			;;
3186
3187		*)
3188			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3189			;;
3190		esac
3191
3192		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
3193
3194		# Add files for Mac specific code to the list of output
3195		# files:
3196		ac_config_files="$ac_config_files Mac/Makefile"
3197
3198		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
3199
3200		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3201
3202		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3203
3204	esac
3205
3206else
3207
3208	PYTHONFRAMEWORK=
3209	PYTHONFRAMEWORKDIR=no-framework
3210	PYTHONFRAMEWORKPREFIX=
3211	PYTHONFRAMEWORKINSTALLDIR=
3212	FRAMEWORKINSTALLFIRST=
3213	FRAMEWORKINSTALLLAST=
3214	FRAMEWORKALTINSTALLFIRST=
3215	FRAMEWORKALTINSTALLLAST=
3216	FRAMEWORKPYTHONW=
3217	if test "x${prefix}" = "xNONE" ; then
3218		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3219	else
3220		FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3221	fi
3222	enable_framework=
3223
3224
3225fi
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241cat >>confdefs.h <<_ACEOF
3242#define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}"
3243_ACEOF
3244
3245
3246##AC_ARG_WITH(dyld,
3247##            AS_HELP_STRING([--with-dyld],
3248##                           [Use (OpenStep|Rhapsody) dynamic linker]))
3249##
3250# Set name for machine-dependent library files
3251
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3253$as_echo_n "checking MACHDEP... " >&6; }
3254if test -z "$MACHDEP"
3255then
3256    # avoid using uname for cross builds
3257    if test "$cross_compiling" = yes; then
3258       # ac_sys_system and ac_sys_release are used for setting
3259       # a lot of different things including 'define_xopen_source'
3260       # in the case statement below.
3261	case "$host" in
3262	*-*-linux-android*)
3263		ac_sys_system=Linux-android
3264		;;
3265	*-*-linux*)
3266		ac_sys_system=Linux
3267		;;
3268	*-*-cygwin*)
3269		ac_sys_system=Cygwin
3270		;;
3271	*-*-vxworks*)
3272	    ac_sys_system=VxWorks
3273	    ;;
3274	*)
3275		# for now, limit cross builds to known configurations
3276		MACHDEP="unknown"
3277		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3278	esac
3279	ac_sys_release=
3280    else
3281	ac_sys_system=`uname -s`
3282	if test "$ac_sys_system" = "AIX" \
3283	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
3284		ac_sys_release=`uname -v`
3285	else
3286		ac_sys_release=`uname -r`
3287	fi
3288    fi
3289    ac_md_system=`echo $ac_sys_system |
3290			tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3291    ac_md_release=`echo $ac_sys_release |
3292			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3293    MACHDEP="$ac_md_system$ac_md_release"
3294
3295    case $MACHDEP in
3296	aix*) MACHDEP="aix";;
3297	linux*) MACHDEP="linux";;
3298	cygwin*) MACHDEP="cygwin";;
3299	darwin*) MACHDEP="darwin";;
3300	'')	MACHDEP="unknown";;
3301    esac
3302fi
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5
3304$as_echo "\"$MACHDEP\"" >&6; }
3305
3306
3307if test "$cross_compiling" = yes; then
3308	case "$host" in
3309	*-*-linux*)
3310		case "$host_cpu" in
3311		arm*)
3312			_host_cpu=arm
3313			;;
3314		*)
3315			_host_cpu=$host_cpu
3316		esac
3317		;;
3318	*-*-cygwin*)
3319		_host_cpu=
3320		;;
3321	*-*-vxworks*)
3322		_host_cpu=$host_cpu
3323		;;
3324	*)
3325		# for now, limit cross builds to known configurations
3326		MACHDEP="unknown"
3327		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3328	esac
3329	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3330fi
3331
3332# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3333# disable features if it is defined, without any means to access these
3334# features as extensions. For these systems, we skip the definition of
3335# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3336# some feature, make sure there is no alternative way to access this
3337# feature. Also, when using wildcards, make sure you have verified the
3338# need for not defining _XOPEN_SOURCE on all systems matching the
3339# wildcard, and that the wildcard does not include future systems
3340# (which may remove their limitations).
3341case $ac_sys_system/$ac_sys_release in
3342  # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3343  # even though select is a POSIX function. Reported by J. Ribbens.
3344  # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3345  # In addition, Stefan Krah confirms that issue #1244610 exists through
3346  # OpenBSD 4.6, but is fixed in 4.7.
3347  OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
3348    define_xopen_source=no
3349    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3350    # also defined. This can be overridden by defining _BSD_SOURCE
3351    # As this has a different meaning on Linux, only define it on OpenBSD
3352
3353$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3354
3355    ;;
3356  OpenBSD/*)
3357    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3358    # also defined. This can be overridden by defining _BSD_SOURCE
3359    # As this has a different meaning on Linux, only define it on OpenBSD
3360
3361$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3362
3363    ;;
3364  # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3365  # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3366  # Marc Recht
3367  NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
3368    define_xopen_source=no;;
3369  # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3370  # request to enable features supported by the standard as a request
3371  # to disable features not supported by the standard.  The best way
3372  # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3373  # entirely and define __EXTENSIONS__ instead.
3374  SunOS/*)
3375    define_xopen_source=no;;
3376  # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3377  # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
3378  # Reconfirmed for 7.1.4 by Martin v. Loewis.
3379  OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
3380    define_xopen_source=no;;
3381  # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
3382  # but used in struct sockaddr.sa_family. Reported by Tim Rice.
3383  SCO_SV/3.2)
3384    define_xopen_source=no;;
3385  # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3386  # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3387  # identifies itself as Darwin/7.*
3388  # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3389  # disables platform specific features beyond repair.
3390  # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3391  # has no effect, don't bother defining them
3392  Darwin/[6789].*)
3393    define_xopen_source=no;;
3394  Darwin/[12][0-9].*)
3395    define_xopen_source=no;;
3396  # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3397  # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3398  # or has another value. By not (re)defining it, the defaults come in place.
3399  AIX/4)
3400    define_xopen_source=no;;
3401  AIX/5)
3402    if test `uname -r` -eq 1; then
3403      define_xopen_source=no
3404    fi
3405    ;;
3406  # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3407  # defining NI_NUMERICHOST.
3408  QNX/6.3.2)
3409    define_xopen_source=no
3410    ;;
3411  # On VxWorks, defining _XOPEN_SOURCE causes compile failures
3412  # in network headers still using system V types.
3413  VxWorks/*)
3414    define_xopen_source=no
3415    ;;
3416
3417  # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides
3418  # chroot() and other functions
3419  hp*|HP*)
3420    define_xopen_source=no
3421    ;;
3422
3423esac
3424
3425if test $define_xopen_source = yes
3426then
3427  # X/Open 7, incorporating POSIX.1-2008
3428
3429$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
3430
3431
3432  # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3433  # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3434  # several APIs are not declared. Since this is also needed in some
3435  # cases for HP-UX, we define it globally.
3436
3437$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3438
3439
3440
3441$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
3442
3443fi
3444
3445# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
3446case $ac_sys_system in
3447  hp*|HP*)
3448    define_stdc_a1=yes;;
3449  *)
3450    define_stdc_a1=no;;
3451esac
3452
3453if test $define_stdc_a1 = yes
3454then
3455
3456$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
3457
3458fi
3459
3460# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3461# it may influence the way we can build extensions, so distutils
3462# needs to check it
3463
3464
3465CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
3466EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
3467
3468# checks for alternative programs
3469
3470# compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just
3471# for debug/optimization stuff.  BASECFLAGS is for flags that are required
3472# just to get things to compile and link.  Users are free to override OPT
3473# when running configure or make.  The build should not break if they do.
3474# BASECFLAGS should generally not be messed with, however.
3475
3476# If the user switches compilers, we can't believe the cache
3477if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3478then
3479  as_fn_error $? "cached CC is different -- throw away $cache_file
3480(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3481fi
3482
3483# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
3484# when the compiler supports them, but we don't always want -O2, and
3485# we set -g later.
3486if test -z "$CFLAGS"; then
3487        CFLAGS=
3488fi
3489
3490if test "$ac_sys_system" = "Darwin"
3491then
3492	# Compiler selection on MacOSX is more complicated than
3493	# AC_PROG_CC can handle, see Mac/README for more
3494	# information
3495	if test -z "${CC}"
3496	then
3497		found_gcc=
3498		found_clang=
3499		as_save_IFS=$IFS; IFS=:
3500		for as_dir in $PATH
3501		do
3502			IFS=$as_save_IFS
3503			if test -x "${as_dir}/gcc"; then
3504				if test -z "${found_gcc}"; then
3505					found_gcc="${as_dir}/gcc"
3506				fi
3507			fi
3508			if test -x "${as_dir}/clang"; then
3509				if test -z "${found_clang}"; then
3510					found_clang="${as_dir}/clang"
3511				fi
3512			fi
3513		done
3514		IFS=$as_save_IFS
3515
3516		if test -n "$found_gcc" -a -n "$found_clang"
3517		then
3518			if test -n "`"$found_gcc" --version | grep llvm-gcc`"
3519			then
3520				{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
3521$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
3522				CC="$found_clang"
3523				CXX="$found_clang++"
3524			fi
3525
3526
3527		elif test -z "$found_gcc" -a -n "$found_clang"
3528		then
3529			{ $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
3530$as_echo "$as_me: No GCC found, use CLANG" >&6;}
3531			CC="$found_clang"
3532			CXX="$found_clang++"
3533
3534		elif test -z "$found_gcc" -a -z "$found_clang"
3535		then
3536			found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
3537			if test -n "${found_clang}"
3538			then
3539				{ $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
3540$as_echo "$as_me: Using clang from Xcode.app" >&6;}
3541				CC="${found_clang}"
3542				CXX="`/usr/bin/xcrun -find clang++`"
3543
3544			# else: use default behaviour
3545			fi
3546		fi
3547	fi
3548fi
3549ac_ext=c
3550ac_cpp='$CPP $CPPFLAGS'
3551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554if test -n "$ac_tool_prefix"; then
3555  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3556set dummy ${ac_tool_prefix}gcc; ac_word=$2
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558$as_echo_n "checking for $ac_word... " >&6; }
3559if ${ac_cv_prog_CC+:} false; then :
3560  $as_echo_n "(cached) " >&6
3561else
3562  if test -n "$CC"; then
3563  ac_cv_prog_CC="$CC" # Let the user override the test.
3564else
3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568  IFS=$as_save_IFS
3569  test -z "$as_dir" && as_dir=.
3570    for ac_exec_ext in '' $ac_executable_extensions; do
3571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574    break 2
3575  fi
3576done
3577  done
3578IFS=$as_save_IFS
3579
3580fi
3581fi
3582CC=$ac_cv_prog_CC
3583if test -n "$CC"; then
3584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585$as_echo "$CC" >&6; }
3586else
3587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588$as_echo "no" >&6; }
3589fi
3590
3591
3592fi
3593if test -z "$ac_cv_prog_CC"; then
3594  ac_ct_CC=$CC
3595  # Extract the first word of "gcc", so it can be a program name with args.
3596set dummy gcc; ac_word=$2
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598$as_echo_n "checking for $ac_word... " >&6; }
3599if ${ac_cv_prog_ac_ct_CC+:} false; then :
3600  $as_echo_n "(cached) " >&6
3601else
3602  if test -n "$ac_ct_CC"; then
3603  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3604else
3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
3607do
3608  IFS=$as_save_IFS
3609  test -z "$as_dir" && as_dir=.
3610    for ac_exec_ext in '' $ac_executable_extensions; do
3611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612    ac_cv_prog_ac_ct_CC="gcc"
3613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614    break 2
3615  fi
3616done
3617  done
3618IFS=$as_save_IFS
3619
3620fi
3621fi
3622ac_ct_CC=$ac_cv_prog_ac_ct_CC
3623if test -n "$ac_ct_CC"; then
3624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3625$as_echo "$ac_ct_CC" >&6; }
3626else
3627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628$as_echo "no" >&6; }
3629fi
3630
3631  if test "x$ac_ct_CC" = x; then
3632    CC=""
3633  else
3634    case $cross_compiling:$ac_tool_warned in
3635yes:)
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3638ac_tool_warned=yes ;;
3639esac
3640    CC=$ac_ct_CC
3641  fi
3642else
3643  CC="$ac_cv_prog_CC"
3644fi
3645
3646if test -z "$CC"; then
3647          if test -n "$ac_tool_prefix"; then
3648    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3649set dummy ${ac_tool_prefix}cc; ac_word=$2
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651$as_echo_n "checking for $ac_word... " >&6; }
3652if ${ac_cv_prog_CC+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  if test -n "$CC"; then
3656  ac_cv_prog_CC="$CC" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661  IFS=$as_save_IFS
3662  test -z "$as_dir" && as_dir=.
3663    for ac_exec_ext in '' $ac_executable_extensions; do
3664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665    ac_cv_prog_CC="${ac_tool_prefix}cc"
3666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667    break 2
3668  fi
3669done
3670  done
3671IFS=$as_save_IFS
3672
3673fi
3674fi
3675CC=$ac_cv_prog_CC
3676if test -n "$CC"; then
3677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678$as_echo "$CC" >&6; }
3679else
3680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681$as_echo "no" >&6; }
3682fi
3683
3684
3685  fi
3686fi
3687if test -z "$CC"; then
3688  # Extract the first word of "cc", so it can be a program name with args.
3689set dummy cc; ac_word=$2
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691$as_echo_n "checking for $ac_word... " >&6; }
3692if ${ac_cv_prog_CC+:} false; then :
3693  $as_echo_n "(cached) " >&6
3694else
3695  if test -n "$CC"; then
3696  ac_cv_prog_CC="$CC" # Let the user override the test.
3697else
3698  ac_prog_rejected=no
3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700for as_dir in $PATH
3701do
3702  IFS=$as_save_IFS
3703  test -z "$as_dir" && as_dir=.
3704    for ac_exec_ext in '' $ac_executable_extensions; do
3705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3707       ac_prog_rejected=yes
3708       continue
3709     fi
3710    ac_cv_prog_CC="cc"
3711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712    break 2
3713  fi
3714done
3715  done
3716IFS=$as_save_IFS
3717
3718if test $ac_prog_rejected = yes; then
3719  # We found a bogon in the path, so make sure we never use it.
3720  set dummy $ac_cv_prog_CC
3721  shift
3722  if test $# != 0; then
3723    # We chose a different compiler from the bogus one.
3724    # However, it has the same basename, so the bogon will be chosen
3725    # first if we set CC to just the basename; use the full file name.
3726    shift
3727    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3728  fi
3729fi
3730fi
3731fi
3732CC=$ac_cv_prog_CC
3733if test -n "$CC"; then
3734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3735$as_echo "$CC" >&6; }
3736else
3737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738$as_echo "no" >&6; }
3739fi
3740
3741
3742fi
3743if test -z "$CC"; then
3744  if test -n "$ac_tool_prefix"; then
3745  for ac_prog in cl.exe
3746  do
3747    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750$as_echo_n "checking for $ac_word... " >&6; }
3751if ${ac_cv_prog_CC+:} false; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  if test -n "$CC"; then
3755  ac_cv_prog_CC="$CC" # Let the user override the test.
3756else
3757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760  IFS=$as_save_IFS
3761  test -z "$as_dir" && as_dir=.
3762    for ac_exec_ext in '' $ac_executable_extensions; do
3763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766    break 2
3767  fi
3768done
3769  done
3770IFS=$as_save_IFS
3771
3772fi
3773fi
3774CC=$ac_cv_prog_CC
3775if test -n "$CC"; then
3776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777$as_echo "$CC" >&6; }
3778else
3779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780$as_echo "no" >&6; }
3781fi
3782
3783
3784    test -n "$CC" && break
3785  done
3786fi
3787if test -z "$CC"; then
3788  ac_ct_CC=$CC
3789  for ac_prog in cl.exe
3790do
3791  # Extract the first word of "$ac_prog", so it can be a program name with args.
3792set dummy $ac_prog; ac_word=$2
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794$as_echo_n "checking for $ac_word... " >&6; }
3795if ${ac_cv_prog_ac_ct_CC+:} false; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798  if test -n "$ac_ct_CC"; then
3799  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  test -z "$as_dir" && as_dir=.
3806    for ac_exec_ext in '' $ac_executable_extensions; do
3807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808    ac_cv_prog_ac_ct_CC="$ac_prog"
3809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810    break 2
3811  fi
3812done
3813  done
3814IFS=$as_save_IFS
3815
3816fi
3817fi
3818ac_ct_CC=$ac_cv_prog_ac_ct_CC
3819if test -n "$ac_ct_CC"; then
3820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3821$as_echo "$ac_ct_CC" >&6; }
3822else
3823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825fi
3826
3827
3828  test -n "$ac_ct_CC" && break
3829done
3830
3831  if test "x$ac_ct_CC" = x; then
3832    CC=""
3833  else
3834    case $cross_compiling:$ac_tool_warned in
3835yes:)
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838ac_tool_warned=yes ;;
3839esac
3840    CC=$ac_ct_CC
3841  fi
3842fi
3843
3844fi
3845
3846
3847test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3849as_fn_error $? "no acceptable C compiler found in \$PATH
3850See \`config.log' for more details" "$LINENO" 5; }
3851
3852# Provide some information about the compiler.
3853$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3854set X $ac_compile
3855ac_compiler=$2
3856for ac_option in --version -v -V -qversion; do
3857  { { ac_try="$ac_compiler $ac_option >&5"
3858case "(($ac_try" in
3859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860  *) ac_try_echo=$ac_try;;
3861esac
3862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863$as_echo "$ac_try_echo"; } >&5
3864  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3865  ac_status=$?
3866  if test -s conftest.err; then
3867    sed '10a\
3868... rest of stderr output deleted ...
3869         10q' conftest.err >conftest.er1
3870    cat conftest.er1 >&5
3871  fi
3872  rm -f conftest.er1 conftest.err
3873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874  test $ac_status = 0; }
3875done
3876
3877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h.  */
3879
3880int
3881main ()
3882{
3883
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888ac_clean_files_save=$ac_clean_files
3889ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3890# Try to create an executable without -o first, disregard a.out.
3891# It will help us diagnose broken compilers, and finding out an intuition
3892# of exeext.
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3894$as_echo_n "checking whether the C compiler works... " >&6; }
3895ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3896
3897# The possible output files:
3898ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3899
3900ac_rmfiles=
3901for ac_file in $ac_files
3902do
3903  case $ac_file in
3904    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3905    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3906  esac
3907done
3908rm -f $ac_rmfiles
3909
3910if { { ac_try="$ac_link_default"
3911case "(($ac_try" in
3912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913  *) ac_try_echo=$ac_try;;
3914esac
3915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916$as_echo "$ac_try_echo"; } >&5
3917  (eval "$ac_link_default") 2>&5
3918  ac_status=$?
3919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920  test $ac_status = 0; }; then :
3921  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3922# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3923# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3924# so that the user can short-circuit this test for compilers unknown to
3925# Autoconf.
3926for ac_file in $ac_files ''
3927do
3928  test -f "$ac_file" || continue
3929  case $ac_file in
3930    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3931	;;
3932    [ab].out )
3933	# We found the default executable, but exeext='' is most
3934	# certainly right.
3935	break;;
3936    *.* )
3937	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3938	then :; else
3939	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3940	fi
3941	# We set ac_cv_exeext here because the later test for it is not
3942	# safe: cross compilers may not add the suffix if given an `-o'
3943	# argument, so we may need to know it at that point already.
3944	# Even if this section looks crufty: it has the advantage of
3945	# actually working.
3946	break;;
3947    * )
3948	break;;
3949  esac
3950done
3951test "$ac_cv_exeext" = no && ac_cv_exeext=
3952
3953else
3954  ac_file=''
3955fi
3956if test -z "$ac_file"; then :
3957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959$as_echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3964as_fn_error 77 "C compiler cannot create executables
3965See \`config.log' for more details" "$LINENO" 5; }
3966else
3967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3968$as_echo "yes" >&6; }
3969fi
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3971$as_echo_n "checking for C compiler default output file name... " >&6; }
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3973$as_echo "$ac_file" >&6; }
3974ac_exeext=$ac_cv_exeext
3975
3976rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3977ac_clean_files=$ac_clean_files_save
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3979$as_echo_n "checking for suffix of executables... " >&6; }
3980if { { ac_try="$ac_link"
3981case "(($ac_try" in
3982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983  *) ac_try_echo=$ac_try;;
3984esac
3985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986$as_echo "$ac_try_echo"; } >&5
3987  (eval "$ac_link") 2>&5
3988  ac_status=$?
3989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990  test $ac_status = 0; }; then :
3991  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3992# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3993# work properly (i.e., refer to `conftest.exe'), while it won't with
3994# `rm'.
3995for ac_file in conftest.exe conftest conftest.*; do
3996  test -f "$ac_file" || continue
3997  case $ac_file in
3998    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3999    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4000	  break;;
4001    * ) break;;
4002  esac
4003done
4004else
4005  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4008See \`config.log' for more details" "$LINENO" 5; }
4009fi
4010rm -f conftest conftest$ac_cv_exeext
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4012$as_echo "$ac_cv_exeext" >&6; }
4013
4014rm -f conftest.$ac_ext
4015EXEEXT=$ac_cv_exeext
4016ac_exeext=$EXEEXT
4017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019#include <stdio.h>
4020int
4021main ()
4022{
4023FILE *f = fopen ("conftest.out", "w");
4024 return ferror (f) || fclose (f) != 0;
4025
4026  ;
4027  return 0;
4028}
4029_ACEOF
4030ac_clean_files="$ac_clean_files conftest.out"
4031# Check that the compiler produces executables we can run.  If not, either
4032# the compiler is broken, or we cross compile.
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4034$as_echo_n "checking whether we are cross compiling... " >&6; }
4035if test "$cross_compiling" != yes; then
4036  { { ac_try="$ac_link"
4037case "(($ac_try" in
4038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039  *) ac_try_echo=$ac_try;;
4040esac
4041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042$as_echo "$ac_try_echo"; } >&5
4043  (eval "$ac_link") 2>&5
4044  ac_status=$?
4045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046  test $ac_status = 0; }
4047  if { ac_try='./conftest$ac_cv_exeext'
4048  { { case "(($ac_try" in
4049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050  *) ac_try_echo=$ac_try;;
4051esac
4052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053$as_echo "$ac_try_echo"; } >&5
4054  (eval "$ac_try") 2>&5
4055  ac_status=$?
4056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4057  test $ac_status = 0; }; }; then
4058    cross_compiling=no
4059  else
4060    if test "$cross_compiling" = maybe; then
4061	cross_compiling=yes
4062    else
4063	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065as_fn_error $? "cannot run C compiled programs.
4066If you meant to cross compile, use \`--host'.
4067See \`config.log' for more details" "$LINENO" 5; }
4068    fi
4069  fi
4070fi
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4072$as_echo "$cross_compiling" >&6; }
4073
4074rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4075ac_clean_files=$ac_clean_files_save
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4077$as_echo_n "checking for suffix of object files... " >&6; }
4078if ${ac_cv_objext+:} false; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082/* end confdefs.h.  */
4083
4084int
4085main ()
4086{
4087
4088  ;
4089  return 0;
4090}
4091_ACEOF
4092rm -f conftest.o conftest.obj
4093if { { ac_try="$ac_compile"
4094case "(($ac_try" in
4095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096  *) ac_try_echo=$ac_try;;
4097esac
4098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099$as_echo "$ac_try_echo"; } >&5
4100  (eval "$ac_compile") 2>&5
4101  ac_status=$?
4102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103  test $ac_status = 0; }; then :
4104  for ac_file in conftest.o conftest.obj conftest.*; do
4105  test -f "$ac_file" || continue;
4106  case $ac_file in
4107    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4108    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4109       break;;
4110  esac
4111done
4112else
4113  $as_echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
4116{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4118as_fn_error $? "cannot compute suffix of object files: cannot compile
4119See \`config.log' for more details" "$LINENO" 5; }
4120fi
4121rm -f conftest.$ac_cv_objext conftest.$ac_ext
4122fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4124$as_echo "$ac_cv_objext" >&6; }
4125OBJEXT=$ac_cv_objext
4126ac_objext=$OBJEXT
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4128$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4129if ${ac_cv_c_compiler_gnu+:} false; then :
4130  $as_echo_n "(cached) " >&6
4131else
4132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133/* end confdefs.h.  */
4134
4135int
4136main ()
4137{
4138#ifndef __GNUC__
4139       choke me
4140#endif
4141
4142  ;
4143  return 0;
4144}
4145_ACEOF
4146if ac_fn_c_try_compile "$LINENO"; then :
4147  ac_compiler_gnu=yes
4148else
4149  ac_compiler_gnu=no
4150fi
4151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152ac_cv_c_compiler_gnu=$ac_compiler_gnu
4153
4154fi
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4156$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4157if test $ac_compiler_gnu = yes; then
4158  GCC=yes
4159else
4160  GCC=
4161fi
4162ac_test_CFLAGS=${CFLAGS+set}
4163ac_save_CFLAGS=$CFLAGS
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4165$as_echo_n "checking whether $CC accepts -g... " >&6; }
4166if ${ac_cv_prog_cc_g+:} false; then :
4167  $as_echo_n "(cached) " >&6
4168else
4169  ac_save_c_werror_flag=$ac_c_werror_flag
4170   ac_c_werror_flag=yes
4171   ac_cv_prog_cc_g=no
4172   CFLAGS="-g"
4173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175
4176int
4177main ()
4178{
4179
4180  ;
4181  return 0;
4182}
4183_ACEOF
4184if ac_fn_c_try_compile "$LINENO"; then :
4185  ac_cv_prog_cc_g=yes
4186else
4187  CFLAGS=""
4188      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189/* end confdefs.h.  */
4190
4191int
4192main ()
4193{
4194
4195  ;
4196  return 0;
4197}
4198_ACEOF
4199if ac_fn_c_try_compile "$LINENO"; then :
4200
4201else
4202  ac_c_werror_flag=$ac_save_c_werror_flag
4203	 CFLAGS="-g"
4204	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h.  */
4206
4207int
4208main ()
4209{
4210
4211  ;
4212  return 0;
4213}
4214_ACEOF
4215if ac_fn_c_try_compile "$LINENO"; then :
4216  ac_cv_prog_cc_g=yes
4217fi
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219fi
4220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221fi
4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223   ac_c_werror_flag=$ac_save_c_werror_flag
4224fi
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4226$as_echo "$ac_cv_prog_cc_g" >&6; }
4227if test "$ac_test_CFLAGS" = set; then
4228  CFLAGS=$ac_save_CFLAGS
4229elif test $ac_cv_prog_cc_g = yes; then
4230  if test "$GCC" = yes; then
4231    CFLAGS="-g -O2"
4232  else
4233    CFLAGS="-g"
4234  fi
4235else
4236  if test "$GCC" = yes; then
4237    CFLAGS="-O2"
4238  else
4239    CFLAGS=
4240  fi
4241fi
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4243$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4244if ${ac_cv_prog_cc_c89+:} false; then :
4245  $as_echo_n "(cached) " >&6
4246else
4247  ac_cv_prog_cc_c89=no
4248ac_save_CC=$CC
4249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250/* end confdefs.h.  */
4251#include <stdarg.h>
4252#include <stdio.h>
4253struct stat;
4254/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4255struct buf { int x; };
4256FILE * (*rcsopen) (struct buf *, struct stat *, int);
4257static char *e (p, i)
4258     char **p;
4259     int i;
4260{
4261  return p[i];
4262}
4263static char *f (char * (*g) (char **, int), char **p, ...)
4264{
4265  char *s;
4266  va_list v;
4267  va_start (v,p);
4268  s = g (p, va_arg (v,int));
4269  va_end (v);
4270  return s;
4271}
4272
4273/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4274   function prototypes and stuff, but not '\xHH' hex character constants.
4275   These don't provoke an error unfortunately, instead are silently treated
4276   as 'x'.  The following induces an error, until -std is added to get
4277   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4278   array size at least.  It's necessary to write '\x00'==0 to get something
4279   that's true only with -std.  */
4280int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4281
4282/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4283   inside strings and character constants.  */
4284#define FOO(x) 'x'
4285int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4286
4287int test (int i, double x);
4288struct s1 {int (*f) (int a);};
4289struct s2 {int (*f) (double a);};
4290int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4291int argc;
4292char **argv;
4293int
4294main ()
4295{
4296return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4302	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4303do
4304  CC="$ac_save_CC $ac_arg"
4305  if ac_fn_c_try_compile "$LINENO"; then :
4306  ac_cv_prog_cc_c89=$ac_arg
4307fi
4308rm -f core conftest.err conftest.$ac_objext
4309  test "x$ac_cv_prog_cc_c89" != "xno" && break
4310done
4311rm -f conftest.$ac_ext
4312CC=$ac_save_CC
4313
4314fi
4315# AC_CACHE_VAL
4316case "x$ac_cv_prog_cc_c89" in
4317  x)
4318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4319$as_echo "none needed" >&6; } ;;
4320  xno)
4321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4322$as_echo "unsupported" >&6; } ;;
4323  *)
4324    CC="$CC $ac_cv_prog_cc_c89"
4325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4326$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4327esac
4328if test "x$ac_cv_prog_cc_c89" != xno; then :
4329
4330fi
4331
4332ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338ac_ext=c
4339ac_cpp='$CPP $CPPFLAGS'
4340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4344$as_echo_n "checking how to run the C preprocessor... " >&6; }
4345# On Suns, sometimes $CPP names a directory.
4346if test -n "$CPP" && test -d "$CPP"; then
4347  CPP=
4348fi
4349if test -z "$CPP"; then
4350  if ${ac_cv_prog_CPP+:} false; then :
4351  $as_echo_n "(cached) " >&6
4352else
4353      # Double quotes because CPP needs to be expanded
4354    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4355    do
4356      ac_preproc_ok=false
4357for ac_c_preproc_warn_flag in '' yes
4358do
4359  # Use a header file that comes with gcc, so configuring glibc
4360  # with a fresh cross-compiler works.
4361  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362  # <limits.h> exists even on freestanding compilers.
4363  # On the NeXT, cc -E runs the code through the compiler's parser,
4364  # not just through cpp. "Syntax error" is here to catch this case.
4365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366/* end confdefs.h.  */
4367#ifdef __STDC__
4368# include <limits.h>
4369#else
4370# include <assert.h>
4371#endif
4372		     Syntax error
4373_ACEOF
4374if ac_fn_c_try_cpp "$LINENO"; then :
4375
4376else
4377  # Broken: fails on valid input.
4378continue
4379fi
4380rm -f conftest.err conftest.i conftest.$ac_ext
4381
4382  # OK, works on sane cases.  Now check whether nonexistent headers
4383  # can be detected and how.
4384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h.  */
4386#include <ac_nonexistent.h>
4387_ACEOF
4388if ac_fn_c_try_cpp "$LINENO"; then :
4389  # Broken: success on invalid input.
4390continue
4391else
4392  # Passes both tests.
4393ac_preproc_ok=:
4394break
4395fi
4396rm -f conftest.err conftest.i conftest.$ac_ext
4397
4398done
4399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4400rm -f conftest.i conftest.err conftest.$ac_ext
4401if $ac_preproc_ok; then :
4402  break
4403fi
4404
4405    done
4406    ac_cv_prog_CPP=$CPP
4407
4408fi
4409  CPP=$ac_cv_prog_CPP
4410else
4411  ac_cv_prog_CPP=$CPP
4412fi
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4414$as_echo "$CPP" >&6; }
4415ac_preproc_ok=false
4416for ac_c_preproc_warn_flag in '' yes
4417do
4418  # Use a header file that comes with gcc, so configuring glibc
4419  # with a fresh cross-compiler works.
4420  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4421  # <limits.h> exists even on freestanding compilers.
4422  # On the NeXT, cc -E runs the code through the compiler's parser,
4423  # not just through cpp. "Syntax error" is here to catch this case.
4424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h.  */
4426#ifdef __STDC__
4427# include <limits.h>
4428#else
4429# include <assert.h>
4430#endif
4431		     Syntax error
4432_ACEOF
4433if ac_fn_c_try_cpp "$LINENO"; then :
4434
4435else
4436  # Broken: fails on valid input.
4437continue
4438fi
4439rm -f conftest.err conftest.i conftest.$ac_ext
4440
4441  # OK, works on sane cases.  Now check whether nonexistent headers
4442  # can be detected and how.
4443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h.  */
4445#include <ac_nonexistent.h>
4446_ACEOF
4447if ac_fn_c_try_cpp "$LINENO"; then :
4448  # Broken: success on invalid input.
4449continue
4450else
4451  # Passes both tests.
4452ac_preproc_ok=:
4453break
4454fi
4455rm -f conftest.err conftest.i conftest.$ac_ext
4456
4457done
4458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459rm -f conftest.i conftest.err conftest.$ac_ext
4460if $ac_preproc_ok; then :
4461
4462else
4463  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4466See \`config.log' for more details" "$LINENO" 5; }
4467fi
4468
4469ac_ext=c
4470ac_cpp='$CPP $CPPFLAGS'
4471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4476$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4477if ${ac_cv_path_GREP+:} false; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  if test -z "$GREP"; then
4481  ac_path_GREP_found=false
4482  # Loop through the user's path and test for each of PROGNAME-LIST
4483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4485do
4486  IFS=$as_save_IFS
4487  test -z "$as_dir" && as_dir=.
4488    for ac_prog in grep ggrep; do
4489    for ac_exec_ext in '' $ac_executable_extensions; do
4490      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4491      as_fn_executable_p "$ac_path_GREP" || continue
4492# Check for GNU ac_path_GREP and select it if it is found.
4493  # Check for GNU $ac_path_GREP
4494case `"$ac_path_GREP" --version 2>&1` in
4495*GNU*)
4496  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4497*)
4498  ac_count=0
4499  $as_echo_n 0123456789 >"conftest.in"
4500  while :
4501  do
4502    cat "conftest.in" "conftest.in" >"conftest.tmp"
4503    mv "conftest.tmp" "conftest.in"
4504    cp "conftest.in" "conftest.nl"
4505    $as_echo 'GREP' >> "conftest.nl"
4506    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4507    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4508    as_fn_arith $ac_count + 1 && ac_count=$as_val
4509    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4510      # Best one so far, save it but keep looking for a better one
4511      ac_cv_path_GREP="$ac_path_GREP"
4512      ac_path_GREP_max=$ac_count
4513    fi
4514    # 10*(2^10) chars as input seems more than enough
4515    test $ac_count -gt 10 && break
4516  done
4517  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4518esac
4519
4520      $ac_path_GREP_found && break 3
4521    done
4522  done
4523  done
4524IFS=$as_save_IFS
4525  if test -z "$ac_cv_path_GREP"; then
4526    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4527  fi
4528else
4529  ac_cv_path_GREP=$GREP
4530fi
4531
4532fi
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4534$as_echo "$ac_cv_path_GREP" >&6; }
4535 GREP="$ac_cv_path_GREP"
4536
4537
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4539$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4540if ${ac_cv_path_SED+:} false; then :
4541  $as_echo_n "(cached) " >&6
4542else
4543            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4544     for ac_i in 1 2 3 4 5 6 7; do
4545       ac_script="$ac_script$as_nl$ac_script"
4546     done
4547     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4548     { ac_script=; unset ac_script;}
4549     if test -z "$SED"; then
4550  ac_path_SED_found=false
4551  # Loop through the user's path and test for each of PROGNAME-LIST
4552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557    for ac_prog in sed gsed; do
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4560      as_fn_executable_p "$ac_path_SED" || continue
4561# Check for GNU ac_path_SED and select it if it is found.
4562  # Check for GNU $ac_path_SED
4563case `"$ac_path_SED" --version 2>&1` in
4564*GNU*)
4565  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4566*)
4567  ac_count=0
4568  $as_echo_n 0123456789 >"conftest.in"
4569  while :
4570  do
4571    cat "conftest.in" "conftest.in" >"conftest.tmp"
4572    mv "conftest.tmp" "conftest.in"
4573    cp "conftest.in" "conftest.nl"
4574    $as_echo '' >> "conftest.nl"
4575    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577    as_fn_arith $ac_count + 1 && ac_count=$as_val
4578    if test $ac_count -gt ${ac_path_SED_max-0}; then
4579      # Best one so far, save it but keep looking for a better one
4580      ac_cv_path_SED="$ac_path_SED"
4581      ac_path_SED_max=$ac_count
4582    fi
4583    # 10*(2^10) chars as input seems more than enough
4584    test $ac_count -gt 10 && break
4585  done
4586  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587esac
4588
4589      $ac_path_SED_found && break 3
4590    done
4591  done
4592  done
4593IFS=$as_save_IFS
4594  if test -z "$ac_cv_path_SED"; then
4595    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4596  fi
4597else
4598  ac_cv_path_SED=$SED
4599fi
4600
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4603$as_echo "$ac_cv_path_SED" >&6; }
4604 SED="$ac_cv_path_SED"
4605  rm -f conftest.sed
4606
4607
4608
4609
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4611$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4612
4613# Check whether --with-cxx_main was given.
4614if test "${with_cxx_main+set}" = set; then :
4615  withval=$with_cxx_main;
4616
4617	case $withval in
4618	no)	with_cxx_main=no
4619		MAINCC='$(CC)';;
4620	yes)	with_cxx_main=yes
4621		MAINCC='$(CXX)';;
4622	*)	with_cxx_main=yes
4623		MAINCC=$withval
4624		if test -z "$CXX"
4625		then
4626			CXX=$withval
4627		fi;;
4628	esac
4629else
4630
4631	with_cxx_main=no
4632	MAINCC='$(CC)'
4633
4634fi
4635
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4637$as_echo "$with_cxx_main" >&6; }
4638
4639preset_cxx="$CXX"
4640if test -z "$CXX"
4641then
4642        case "$CC" in
4643        gcc)    if test -n "$ac_tool_prefix"; then
4644  # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4645set dummy ${ac_tool_prefix}g++; ac_word=$2
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647$as_echo_n "checking for $ac_word... " >&6; }
4648if ${ac_cv_path_CXX+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  case $CXX in
4652  [\\/]* | ?:[\\/]*)
4653  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4654  ;;
4655  *)
4656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in notfound
4658do
4659  IFS=$as_save_IFS
4660  test -z "$as_dir" && as_dir=.
4661    for ac_exec_ext in '' $ac_executable_extensions; do
4662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665    break 2
4666  fi
4667done
4668  done
4669IFS=$as_save_IFS
4670
4671  ;;
4672esac
4673fi
4674CXX=$ac_cv_path_CXX
4675if test -n "$CXX"; then
4676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4677$as_echo "$CXX" >&6; }
4678else
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684fi
4685if test -z "$ac_cv_path_CXX"; then
4686  ac_pt_CXX=$CXX
4687  # Extract the first word of "g++", so it can be a program name with args.
4688set dummy g++; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if ${ac_cv_path_ac_pt_CXX+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  case $ac_pt_CXX in
4695  [\\/]* | ?:[\\/]*)
4696  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4697  ;;
4698  *)
4699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in notfound
4701do
4702  IFS=$as_save_IFS
4703  test -z "$as_dir" && as_dir=.
4704    for ac_exec_ext in '' $ac_executable_extensions; do
4705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708    break 2
4709  fi
4710done
4711  done
4712IFS=$as_save_IFS
4713
4714  ;;
4715esac
4716fi
4717ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4718if test -n "$ac_pt_CXX"; then
4719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4720$as_echo "$ac_pt_CXX" >&6; }
4721else
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
4724fi
4725
4726  if test "x$ac_pt_CXX" = x; then
4727    CXX="g++"
4728  else
4729    case $cross_compiling:$ac_tool_warned in
4730yes:)
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733ac_tool_warned=yes ;;
4734esac
4735    CXX=$ac_pt_CXX
4736  fi
4737else
4738  CXX="$ac_cv_path_CXX"
4739fi
4740 ;;
4741        cc)     if test -n "$ac_tool_prefix"; then
4742  # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4743set dummy ${ac_tool_prefix}c++; ac_word=$2
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745$as_echo_n "checking for $ac_word... " >&6; }
4746if ${ac_cv_path_CXX+:} false; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  case $CXX in
4750  [\\/]* | ?:[\\/]*)
4751  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4752  ;;
4753  *)
4754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in notfound
4756do
4757  IFS=$as_save_IFS
4758  test -z "$as_dir" && as_dir=.
4759    for ac_exec_ext in '' $ac_executable_extensions; do
4760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4761    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763    break 2
4764  fi
4765done
4766  done
4767IFS=$as_save_IFS
4768
4769  ;;
4770esac
4771fi
4772CXX=$ac_cv_path_CXX
4773if test -n "$CXX"; then
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4775$as_echo "$CXX" >&6; }
4776else
4777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778$as_echo "no" >&6; }
4779fi
4780
4781
4782fi
4783if test -z "$ac_cv_path_CXX"; then
4784  ac_pt_CXX=$CXX
4785  # Extract the first word of "c++", so it can be a program name with args.
4786set dummy c++; ac_word=$2
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788$as_echo_n "checking for $ac_word... " >&6; }
4789if ${ac_cv_path_ac_pt_CXX+:} false; then :
4790  $as_echo_n "(cached) " >&6
4791else
4792  case $ac_pt_CXX in
4793  [\\/]* | ?:[\\/]*)
4794  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4795  ;;
4796  *)
4797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in notfound
4799do
4800  IFS=$as_save_IFS
4801  test -z "$as_dir" && as_dir=.
4802    for ac_exec_ext in '' $ac_executable_extensions; do
4803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806    break 2
4807  fi
4808done
4809  done
4810IFS=$as_save_IFS
4811
4812  ;;
4813esac
4814fi
4815ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4816if test -n "$ac_pt_CXX"; then
4817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4818$as_echo "$ac_pt_CXX" >&6; }
4819else
4820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821$as_echo "no" >&6; }
4822fi
4823
4824  if test "x$ac_pt_CXX" = x; then
4825    CXX="c++"
4826  else
4827    case $cross_compiling:$ac_tool_warned in
4828yes:)
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831ac_tool_warned=yes ;;
4832esac
4833    CXX=$ac_pt_CXX
4834  fi
4835else
4836  CXX="$ac_cv_path_CXX"
4837fi
4838 ;;
4839        clang|*/clang)     if test -n "$ac_tool_prefix"; then
4840  # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
4841set dummy ${ac_tool_prefix}clang++; ac_word=$2
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843$as_echo_n "checking for $ac_word... " >&6; }
4844if ${ac_cv_path_CXX+:} false; then :
4845  $as_echo_n "(cached) " >&6
4846else
4847  case $CXX in
4848  [\\/]* | ?:[\\/]*)
4849  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4850  ;;
4851  *)
4852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in notfound
4854do
4855  IFS=$as_save_IFS
4856  test -z "$as_dir" && as_dir=.
4857    for ac_exec_ext in '' $ac_executable_extensions; do
4858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861    break 2
4862  fi
4863done
4864  done
4865IFS=$as_save_IFS
4866
4867  ;;
4868esac
4869fi
4870CXX=$ac_cv_path_CXX
4871if test -n "$CXX"; then
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4873$as_echo "$CXX" >&6; }
4874else
4875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876$as_echo "no" >&6; }
4877fi
4878
4879
4880fi
4881if test -z "$ac_cv_path_CXX"; then
4882  ac_pt_CXX=$CXX
4883  # Extract the first word of "clang++", so it can be a program name with args.
4884set dummy clang++; ac_word=$2
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886$as_echo_n "checking for $ac_word... " >&6; }
4887if ${ac_cv_path_ac_pt_CXX+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  case $ac_pt_CXX in
4891  [\\/]* | ?:[\\/]*)
4892  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4893  ;;
4894  *)
4895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in notfound
4897do
4898  IFS=$as_save_IFS
4899  test -z "$as_dir" && as_dir=.
4900    for ac_exec_ext in '' $ac_executable_extensions; do
4901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904    break 2
4905  fi
4906done
4907  done
4908IFS=$as_save_IFS
4909
4910  ;;
4911esac
4912fi
4913ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4914if test -n "$ac_pt_CXX"; then
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4916$as_echo "$ac_pt_CXX" >&6; }
4917else
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919$as_echo "no" >&6; }
4920fi
4921
4922  if test "x$ac_pt_CXX" = x; then
4923    CXX="clang++"
4924  else
4925    case $cross_compiling:$ac_tool_warned in
4926yes:)
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929ac_tool_warned=yes ;;
4930esac
4931    CXX=$ac_pt_CXX
4932  fi
4933else
4934  CXX="$ac_cv_path_CXX"
4935fi
4936 ;;
4937        icc|*/icc)         if test -n "$ac_tool_prefix"; then
4938  # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
4939set dummy ${ac_tool_prefix}icpc; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
4942if ${ac_cv_path_CXX+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  case $CXX in
4946  [\\/]* | ?:[\\/]*)
4947  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4948  ;;
4949  *)
4950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in notfound
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955    for ac_exec_ext in '' $ac_executable_extensions; do
4956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959    break 2
4960  fi
4961done
4962  done
4963IFS=$as_save_IFS
4964
4965  ;;
4966esac
4967fi
4968CXX=$ac_cv_path_CXX
4969if test -n "$CXX"; then
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4971$as_echo "$CXX" >&6; }
4972else
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977
4978fi
4979if test -z "$ac_cv_path_CXX"; then
4980  ac_pt_CXX=$CXX
4981  # Extract the first word of "icpc", so it can be a program name with args.
4982set dummy icpc; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if ${ac_cv_path_ac_pt_CXX+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988  case $ac_pt_CXX in
4989  [\\/]* | ?:[\\/]*)
4990  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4991  ;;
4992  *)
4993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in notfound
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998    for ac_exec_ext in '' $ac_executable_extensions; do
4999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
5001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005  done
5006IFS=$as_save_IFS
5007
5008  ;;
5009esac
5010fi
5011ac_pt_CXX=$ac_cv_path_ac_pt_CXX
5012if test -n "$ac_pt_CXX"; then
5013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
5014$as_echo "$ac_pt_CXX" >&6; }
5015else
5016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017$as_echo "no" >&6; }
5018fi
5019
5020  if test "x$ac_pt_CXX" = x; then
5021    CXX="icpc"
5022  else
5023    case $cross_compiling:$ac_tool_warned in
5024yes:)
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5027ac_tool_warned=yes ;;
5028esac
5029    CXX=$ac_pt_CXX
5030  fi
5031else
5032  CXX="$ac_cv_path_CXX"
5033fi
5034 ;;
5035        esac
5036	if test "$CXX" = "notfound"
5037	then
5038		CXX=""
5039	fi
5040fi
5041if test -z "$CXX"
5042then
5043	if test -n "$ac_tool_prefix"; then
5044  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5045  do
5046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049$as_echo_n "checking for $ac_word... " >&6; }
5050if ${ac_cv_prog_CXX+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  if test -n "$CXX"; then
5054  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5055else
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059  IFS=$as_save_IFS
5060  test -z "$as_dir" && as_dir=.
5061    for ac_exec_ext in '' $ac_executable_extensions; do
5062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065    break 2
5066  fi
5067done
5068  done
5069IFS=$as_save_IFS
5070
5071fi
5072fi
5073CXX=$ac_cv_prog_CXX
5074if test -n "$CXX"; then
5075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5076$as_echo "$CXX" >&6; }
5077else
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079$as_echo "no" >&6; }
5080fi
5081
5082
5083    test -n "$CXX" && break
5084  done
5085fi
5086if test -z "$CXX"; then
5087  ac_ct_CXX=$CXX
5088  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5089do
5090  # Extract the first word of "$ac_prog", so it can be a program name with args.
5091set dummy $ac_prog; ac_word=$2
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093$as_echo_n "checking for $ac_word... " >&6; }
5094if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  if test -n "$ac_ct_CXX"; then
5098  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5099else
5100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103  IFS=$as_save_IFS
5104  test -z "$as_dir" && as_dir=.
5105    for ac_exec_ext in '' $ac_executable_extensions; do
5106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107    ac_cv_prog_ac_ct_CXX="$ac_prog"
5108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109    break 2
5110  fi
5111done
5112  done
5113IFS=$as_save_IFS
5114
5115fi
5116fi
5117ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5118if test -n "$ac_ct_CXX"; then
5119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5120$as_echo "$ac_ct_CXX" >&6; }
5121else
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123$as_echo "no" >&6; }
5124fi
5125
5126
5127  test -n "$ac_ct_CXX" && break
5128done
5129
5130  if test "x$ac_ct_CXX" = x; then
5131    CXX="notfound"
5132  else
5133    case $cross_compiling:$ac_tool_warned in
5134yes:)
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137ac_tool_warned=yes ;;
5138esac
5139    CXX=$ac_ct_CXX
5140  fi
5141fi
5142
5143	if test "$CXX" = "notfound"
5144	then
5145		CXX=""
5146	fi
5147fi
5148if test "$preset_cxx" != "$CXX"
5149then
5150        { $as_echo "$as_me:${as_lineno-$LINENO}:
5151
5152  By default, distutils will build C++ extension modules with \"$CXX\".
5153  If this is not intended, then set CXX on the configure command line.
5154  " >&5
5155$as_echo "$as_me:
5156
5157  By default, distutils will build C++ extension modules with \"$CXX\".
5158  If this is not intended, then set CXX on the configure command line.
5159  " >&6;}
5160fi
5161
5162
5163MULTIARCH=$($CC --print-multiarch 2>/dev/null)
5164
5165
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
5167$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
5168cat >> conftest.c <<EOF
5169#undef bfin
5170#undef cris
5171#undef fr30
5172#undef linux
5173#undef hppa
5174#undef hpux
5175#undef i386
5176#undef mips
5177#undef powerpc
5178#undef sparc
5179#undef unix
5180#if defined(__ANDROID__)
5181    # Android is not a multiarch system.
5182#elif defined(__linux__)
5183# if defined(__x86_64__) && defined(__LP64__)
5184        x86_64-linux-gnu
5185# elif defined(__x86_64__) && defined(__ILP32__)
5186        x86_64-linux-gnux32
5187# elif defined(__i386__)
5188        i386-linux-gnu
5189# elif defined(__aarch64__) && defined(__AARCH64EL__)
5190#  if defined(__ILP32__)
5191        aarch64_ilp32-linux-gnu
5192#  else
5193        aarch64-linux-gnu
5194#  endif
5195# elif defined(__aarch64__) && defined(__AARCH64EB__)
5196#  if defined(__ILP32__)
5197        aarch64_be_ilp32-linux-gnu
5198#  else
5199        aarch64_be-linux-gnu
5200#  endif
5201# elif defined(__alpha__)
5202        alpha-linux-gnu
5203# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP)
5204#  if defined(__ARMEL__)
5205        arm-linux-gnueabihf
5206#  else
5207        armeb-linux-gnueabihf
5208#  endif
5209# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP)
5210#  if defined(__ARMEL__)
5211        arm-linux-gnueabi
5212#  else
5213        armeb-linux-gnueabi
5214#  endif
5215# elif defined(__hppa__)
5216        hppa-linux-gnu
5217# elif defined(__ia64__)
5218        ia64-linux-gnu
5219# elif defined(__m68k__) && !defined(__mcoldfire__)
5220        m68k-linux-gnu
5221# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
5222#  if _MIPS_SIM == _ABIO32
5223        mipsisa32r6el-linux-gnu
5224#  elif _MIPS_SIM == _ABIN32
5225        mipsisa64r6el-linux-gnuabin32
5226#  elif _MIPS_SIM == _ABI64
5227        mipsisa64r6el-linux-gnuabi64
5228#  else
5229#   error unknown platform triplet
5230#  endif
5231# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6)
5232#  if _MIPS_SIM == _ABIO32
5233        mipsisa32r6-linux-gnu
5234#  elif _MIPS_SIM == _ABIN32
5235        mipsisa64r6-linux-gnuabin32
5236#  elif _MIPS_SIM == _ABI64
5237        mipsisa64r6-linux-gnuabi64
5238#  else
5239#   error unknown platform triplet
5240#  endif
5241# elif defined(__mips_hard_float) && defined(_MIPSEL)
5242#  if _MIPS_SIM == _ABIO32
5243        mipsel-linux-gnu
5244#  elif _MIPS_SIM == _ABIN32
5245        mips64el-linux-gnuabin32
5246#  elif _MIPS_SIM == _ABI64
5247        mips64el-linux-gnuabi64
5248#  else
5249#   error unknown platform triplet
5250#  endif
5251# elif defined(__mips_hard_float)
5252#  if _MIPS_SIM == _ABIO32
5253        mips-linux-gnu
5254#  elif _MIPS_SIM == _ABIN32
5255        mips64-linux-gnuabin32
5256#  elif _MIPS_SIM == _ABI64
5257        mips64-linux-gnuabi64
5258#  else
5259#   error unknown platform triplet
5260#  endif
5261# elif defined(__or1k__)
5262        or1k-linux-gnu
5263# elif defined(__powerpc__) && defined(__SPE__)
5264        powerpc-linux-gnuspe
5265# elif defined(__powerpc64__)
5266#  if defined(__LITTLE_ENDIAN__)
5267        powerpc64le-linux-gnu
5268#  else
5269        powerpc64-linux-gnu
5270#  endif
5271# elif defined(__powerpc__)
5272        powerpc-linux-gnu
5273# elif defined(__s390x__)
5274        s390x-linux-gnu
5275# elif defined(__s390__)
5276        s390-linux-gnu
5277# elif defined(__sh__) && defined(__LITTLE_ENDIAN__)
5278        sh4-linux-gnu
5279# elif defined(__sparc__) && defined(__arch64__)
5280        sparc64-linux-gnu
5281# elif defined(__sparc__)
5282        sparc-linux-gnu
5283# elif defined(__riscv)
5284#  if __riscv_xlen == 32
5285        riscv32-linux-gnu
5286#  elif __riscv_xlen == 64
5287        riscv64-linux-gnu
5288#  else
5289#   error unknown platform triplet
5290#  endif
5291# else
5292#   error unknown platform triplet
5293# endif
5294#elif defined(__FreeBSD_kernel__)
5295# if defined(__LP64__)
5296        x86_64-kfreebsd-gnu
5297# elif defined(__i386__)
5298        i386-kfreebsd-gnu
5299# else
5300#   error unknown platform triplet
5301# endif
5302#elif defined(__gnu_hurd__)
5303        i386-gnu
5304#elif defined(__APPLE__)
5305        darwin
5306#elif defined(__VXWORKS__)
5307        vxworks
5308#else
5309# error unknown platform triplet
5310#endif
5311
5312EOF
5313
5314if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
5315  PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'`
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
5317$as_echo "$PLATFORM_TRIPLET" >&6; }
5318else
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5320$as_echo "none" >&6; }
5321fi
5322rm -f conftest.c conftest.out
5323
5324if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
5325  if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
5326    as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
5327  fi
5328elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
5329  MULTIARCH=$PLATFORM_TRIPLET
5330fi
5331
5332if test x$MULTIARCH != x; then
5333  MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
5334fi
5335
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
5338$as_echo_n "checking for -Wl,--no-as-needed... " >&6; }
5339save_LDFLAGS="$LDFLAGS"
5340LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
5341
5342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343/* end confdefs.h.  */
5344
5345int
5346main ()
5347{
5348
5349  ;
5350  return 0;
5351}
5352_ACEOF
5353if ac_fn_c_try_link "$LINENO"; then :
5354  NO_AS_NEEDED="-Wl,--no-as-needed"
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356$as_echo "yes" >&6; }
5357else
5358  NO_AS_NEEDED=""
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360$as_echo "no" >&6; }
5361fi
5362rm -f core conftest.err conftest.$ac_objext \
5363    conftest$ac_exeext conftest.$ac_ext
5364LDFLAGS="$save_LDFLAGS"
5365
5366
5367
5368# checks for UNIX variants that set C preprocessor variables
5369
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5371$as_echo_n "checking for egrep... " >&6; }
5372if ${ac_cv_path_EGREP+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5376   then ac_cv_path_EGREP="$GREP -E"
5377   else
5378     if test -z "$EGREP"; then
5379  ac_path_EGREP_found=false
5380  # Loop through the user's path and test for each of PROGNAME-LIST
5381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5383do
5384  IFS=$as_save_IFS
5385  test -z "$as_dir" && as_dir=.
5386    for ac_prog in egrep; do
5387    for ac_exec_ext in '' $ac_executable_extensions; do
5388      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5389      as_fn_executable_p "$ac_path_EGREP" || continue
5390# Check for GNU ac_path_EGREP and select it if it is found.
5391  # Check for GNU $ac_path_EGREP
5392case `"$ac_path_EGREP" --version 2>&1` in
5393*GNU*)
5394  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5395*)
5396  ac_count=0
5397  $as_echo_n 0123456789 >"conftest.in"
5398  while :
5399  do
5400    cat "conftest.in" "conftest.in" >"conftest.tmp"
5401    mv "conftest.tmp" "conftest.in"
5402    cp "conftest.in" "conftest.nl"
5403    $as_echo 'EGREP' >> "conftest.nl"
5404    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5405    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5406    as_fn_arith $ac_count + 1 && ac_count=$as_val
5407    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5408      # Best one so far, save it but keep looking for a better one
5409      ac_cv_path_EGREP="$ac_path_EGREP"
5410      ac_path_EGREP_max=$ac_count
5411    fi
5412    # 10*(2^10) chars as input seems more than enough
5413    test $ac_count -gt 10 && break
5414  done
5415  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5416esac
5417
5418      $ac_path_EGREP_found && break 3
5419    done
5420  done
5421  done
5422IFS=$as_save_IFS
5423  if test -z "$ac_cv_path_EGREP"; then
5424    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5425  fi
5426else
5427  ac_cv_path_EGREP=$EGREP
5428fi
5429
5430   fi
5431fi
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5433$as_echo "$ac_cv_path_EGREP" >&6; }
5434 EGREP="$ac_cv_path_EGREP"
5435
5436
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5438$as_echo_n "checking for ANSI C header files... " >&6; }
5439if ${ac_cv_header_stdc+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444#include <stdlib.h>
5445#include <stdarg.h>
5446#include <string.h>
5447#include <float.h>
5448
5449int
5450main ()
5451{
5452
5453  ;
5454  return 0;
5455}
5456_ACEOF
5457if ac_fn_c_try_compile "$LINENO"; then :
5458  ac_cv_header_stdc=yes
5459else
5460  ac_cv_header_stdc=no
5461fi
5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463
5464if test $ac_cv_header_stdc = yes; then
5465  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h.  */
5468#include <string.h>
5469
5470_ACEOF
5471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5472  $EGREP "memchr" >/dev/null 2>&1; then :
5473
5474else
5475  ac_cv_header_stdc=no
5476fi
5477rm -f conftest*
5478
5479fi
5480
5481if test $ac_cv_header_stdc = yes; then
5482  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h.  */
5485#include <stdlib.h>
5486
5487_ACEOF
5488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5489  $EGREP "free" >/dev/null 2>&1; then :
5490
5491else
5492  ac_cv_header_stdc=no
5493fi
5494rm -f conftest*
5495
5496fi
5497
5498if test $ac_cv_header_stdc = yes; then
5499  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5500  if test "$cross_compiling" = yes; then :
5501  :
5502else
5503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504/* end confdefs.h.  */
5505#include <ctype.h>
5506#include <stdlib.h>
5507#if ((' ' & 0x0FF) == 0x020)
5508# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5509# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5510#else
5511# define ISLOWER(c) \
5512		   (('a' <= (c) && (c) <= 'i') \
5513		     || ('j' <= (c) && (c) <= 'r') \
5514		     || ('s' <= (c) && (c) <= 'z'))
5515# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5516#endif
5517
5518#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5519int
5520main ()
5521{
5522  int i;
5523  for (i = 0; i < 256; i++)
5524    if (XOR (islower (i), ISLOWER (i))
5525	|| toupper (i) != TOUPPER (i))
5526      return 2;
5527  return 0;
5528}
5529_ACEOF
5530if ac_fn_c_try_run "$LINENO"; then :
5531
5532else
5533  ac_cv_header_stdc=no
5534fi
5535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5536  conftest.$ac_objext conftest.beam conftest.$ac_ext
5537fi
5538
5539fi
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5542$as_echo "$ac_cv_header_stdc" >&6; }
5543if test $ac_cv_header_stdc = yes; then
5544
5545$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5546
5547fi
5548
5549# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5550for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5551		  inttypes.h stdint.h unistd.h
5552do :
5553  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5554ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5555"
5556if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5557  cat >>confdefs.h <<_ACEOF
5558#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559_ACEOF
5560
5561fi
5562
5563done
5564
5565
5566
5567  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5568if test "x$ac_cv_header_minix_config_h" = xyes; then :
5569  MINIX=yes
5570else
5571  MINIX=
5572fi
5573
5574
5575  if test "$MINIX" = yes; then
5576
5577$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5578
5579
5580$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5581
5582
5583$as_echo "#define _MINIX 1" >>confdefs.h
5584
5585  fi
5586
5587
5588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5589$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5590if ${ac_cv_safe_to_define___extensions__+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595
5596#         define __EXTENSIONS__ 1
5597          $ac_includes_default
5598int
5599main ()
5600{
5601
5602  ;
5603  return 0;
5604}
5605_ACEOF
5606if ac_fn_c_try_compile "$LINENO"; then :
5607  ac_cv_safe_to_define___extensions__=yes
5608else
5609  ac_cv_safe_to_define___extensions__=no
5610fi
5611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5614$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5615  test $ac_cv_safe_to_define___extensions__ = yes &&
5616    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5617
5618  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5619
5620  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5621
5622  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5623
5624  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5625
5626
5627
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
5629$as_echo_n "checking for the Android API level... " >&6; }
5630cat >> conftest.c <<EOF
5631#ifdef __ANDROID__
5632android_api = __ANDROID_API__
5633arm_arch = __ARM_ARCH
5634#else
5635#error not Android
5636#endif
5637EOF
5638
5639if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
5640  ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
5641  _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
5643$as_echo "$ANDROID_API_LEVEL" >&6; }
5644  if test -z "$ANDROID_API_LEVEL"; then
5645    echo 'Fatal: you must define __ANDROID_API__'
5646    exit 1
5647  fi
5648
5649cat >>confdefs.h <<_ACEOF
5650#define ANDROID_API_LEVEL $ANDROID_API_LEVEL
5651_ACEOF
5652
5653
5654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
5655$as_echo_n "checking for the Android arm ABI... " >&6; }
5656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
5657$as_echo "$_arm_arch" >&6; }
5658  if test "$_arm_arch" = 7; then
5659    BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
5660    LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
5661  fi
5662else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
5664$as_echo "not Android" >&6; }
5665fi
5666rm -f conftest.c conftest.out
5667
5668# Check for unsupported systems
5669case $ac_sys_system/$ac_sys_release in
5670atheos*|Linux*/1*)
5671   echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5672   echo See README for details.
5673   exit 1;;
5674esac
5675
5676
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5678$as_echo_n "checking for --with-suffix... " >&6; }
5679
5680# Check whether --with-suffix was given.
5681if test "${with_suffix+set}" = set; then :
5682  withval=$with_suffix;
5683	case $withval in
5684	no)	EXEEXT=;;
5685	yes)	EXEEXT=.exe;;
5686	*)	EXEEXT=$withval;;
5687	esac
5688fi
5689
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5691$as_echo "$EXEEXT" >&6; }
5692
5693# Test whether we're running on a non-case-sensitive system, in which
5694# case we give a warning if no ext is given
5695
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5697$as_echo_n "checking for case-insensitive build directory... " >&6; }
5698if test ! -d CaseSensitiveTestDir; then
5699mkdir CaseSensitiveTestDir
5700fi
5701
5702if test -d casesensitivetestdir
5703then
5704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5705$as_echo "yes" >&6; }
5706    BUILDEXEEXT=.exe
5707else
5708	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710	BUILDEXEEXT=$EXEEXT
5711fi
5712rmdir CaseSensitiveTestDir
5713
5714case $ac_sys_system in
5715hp*|HP*)
5716    case $CC in
5717    cc|*/cc) CC="$CC -Ae";;
5718    esac;;
5719esac
5720
5721
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5723$as_echo_n "checking LIBRARY... " >&6; }
5724if test -z "$LIBRARY"
5725then
5726	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5729$as_echo "$LIBRARY" >&6; }
5730
5731# LDLIBRARY is the name of the library to link against (as opposed to the
5732# name of the library into which to insert object files). BLDLIBRARY is also
5733# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5734# is blank as the main program is not linked directly against LDLIBRARY.
5735# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5736# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5737# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5738# DLLLIBRARY is the shared (i.e., DLL) library.
5739#
5740# RUNSHARED is used to run shared python without installed libraries
5741#
5742# INSTSONAME is the name of the shared library that will be use to install
5743# on the system - some systems like version suffix, others don't
5744#
5745# LDVERSION is the shared library version number, normally the Python version
5746# with the ABI build flags appended.
5747
5748
5749
5750
5751
5752
5753
5754
5755LDLIBRARY="$LIBRARY"
5756BLDLIBRARY='$(LDLIBRARY)'
5757INSTSONAME='$(LDLIBRARY)'
5758DLLLIBRARY=''
5759LDLIBRARYDIR=''
5760RUNSHARED=''
5761LDVERSION="$VERSION"
5762
5763# LINKCC is the command that links the python executable -- default is $(CC).
5764# If CXX is set, and if it is needed to link a main function that was
5765# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5766# python might then depend on the C++ runtime
5767# This is altered for AIX in order to build the export list before
5768# linking.
5769
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5771$as_echo_n "checking LINKCC... " >&6; }
5772if test -z "$LINKCC"
5773then
5774	LINKCC='$(PURIFY) $(MAINCC)'
5775	case $ac_sys_system in
5776	AIX*)
5777	   exp_extra="\"\""
5778	   if test $ac_sys_release -ge 5 -o \
5779		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5780	       exp_extra="."
5781	   fi
5782	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
5783	QNX*)
5784	   # qcc must be used because the other compilers do not
5785	   # support -N.
5786	   LINKCC=qcc;;
5787	esac
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5790$as_echo "$LINKCC" >&6; }
5791
5792# GNULD is set to "yes" if the GNU linker is used.  If this goes wrong
5793# make sure we default having it set to "no": this is used by
5794# distutils.unixccompiler to know if it should add --enable-new-dtags
5795# to linker command lines, and failing to detect GNU ld simply results
5796# in the same bahaviour as before.
5797
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5799$as_echo_n "checking for GNU ld... " >&6; }
5800ac_prog=ld
5801if test "$GCC" = yes; then
5802       ac_prog=`$CC -print-prog-name=ld`
5803fi
5804case `"$ac_prog" -V 2>&1 < /dev/null` in
5805      *GNU*)
5806          GNULD=yes;;
5807      *)
5808          GNULD=no;;
5809esac
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5811$as_echo "$GNULD" >&6; }
5812
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5814$as_echo_n "checking for --enable-shared... " >&6; }
5815# Check whether --enable-shared was given.
5816if test "${enable_shared+set}" = set; then :
5817  enableval=$enable_shared;
5818fi
5819
5820
5821if test -z "$enable_shared"
5822then
5823  case $ac_sys_system in
5824  CYGWIN*)
5825    enable_shared="yes";;
5826  *)
5827    enable_shared="no";;
5828  esac
5829fi
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5831$as_echo "$enable_shared" >&6; }
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5834$as_echo_n "checking for --enable-profiling... " >&6; }
5835# Check whether --enable-profiling was given.
5836if test "${enable_profiling+set}" = set; then :
5837  enableval=$enable_profiling;
5838fi
5839
5840if test "x$enable_profiling" = xyes; then
5841  ac_save_cc="$CC"
5842  CC="$CC -pg"
5843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h.  */
5845int main() { return 0; }
5846_ACEOF
5847if ac_fn_c_try_link "$LINENO"; then :
5848
5849else
5850  enable_profiling=no
5851fi
5852rm -f core conftest.err conftest.$ac_objext \
5853    conftest$ac_exeext conftest.$ac_ext
5854  CC="$ac_save_cc"
5855else
5856  enable_profiling=no
5857fi
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5859$as_echo "$enable_profiling" >&6; }
5860
5861if test "x$enable_profiling" = xyes; then
5862  BASECFLAGS="-pg $BASECFLAGS"
5863  LDFLAGS="-pg $LDFLAGS"
5864fi
5865
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5867$as_echo_n "checking LDLIBRARY... " >&6; }
5868
5869# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5870# library that we build, but we do not want to link against it (we
5871# will find it with a -framework option). For this reason there is an
5872# extra variable BLDLIBRARY against which Python and the extension
5873# modules are linked, BLDLIBRARY. This is normally the same as
5874# LDLIBRARY, but empty for MacOSX framework builds.
5875if test "$enable_framework"
5876then
5877  LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
5878  RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
5879  BLDLIBRARY=''
5880else
5881  BLDLIBRARY='$(LDLIBRARY)'
5882fi
5883
5884# Other platforms follow
5885if test $enable_shared = "yes"; then
5886  PY_ENABLE_SHARED=1
5887
5888$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
5889
5890  case $ac_sys_system in
5891    CYGWIN*)
5892          LDLIBRARY='libpython$(LDVERSION).dll.a'
5893          DLLLIBRARY='libpython$(LDVERSION).dll'
5894          ;;
5895    SunOS*)
5896	  LDLIBRARY='libpython$(LDVERSION).so'
5897	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
5898	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5899	  INSTSONAME="$LDLIBRARY".$SOVERSION
5900	  if test "$with_pydebug" != yes
5901	  then
5902	      PY3LIBRARY=libpython3.so
5903	  fi
5904          ;;
5905    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
5906	  LDLIBRARY='libpython$(LDVERSION).so'
5907	  BLDLIBRARY='-L. -lpython$(LDVERSION)'
5908	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5909	  INSTSONAME="$LDLIBRARY".$SOVERSION
5910	  if test "$with_pydebug" != yes
5911          then
5912	      PY3LIBRARY=libpython3.so
5913	  fi
5914	  ;;
5915    hp*|HP*)
5916	  case `uname -m` in
5917		ia64)
5918			LDLIBRARY='libpython$(LDVERSION).so'
5919			;;
5920		*)
5921			LDLIBRARY='libpython$(LDVERSION).sl'
5922			;;
5923	  esac
5924	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
5925	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
5926	  ;;
5927    Darwin*)
5928    	LDLIBRARY='libpython$(LDVERSION).dylib'
5929	BLDLIBRARY='-L. -lpython$(LDVERSION)'
5930	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
5931	;;
5932    AIX*)
5933	LDLIBRARY='libpython$(LDVERSION).so'
5934	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
5935	;;
5936
5937  esac
5938else # shared is disabled
5939  PY_ENABLE_SHARED=0
5940  case $ac_sys_system in
5941    CYGWIN*)
5942          BLDLIBRARY='$(LIBRARY)'
5943          LDLIBRARY='libpython$(LDVERSION).dll.a'
5944          ;;
5945  esac
5946fi
5947
5948if test "$cross_compiling" = yes; then
5949	RUNSHARED=
5950fi
5951
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5953$as_echo "$LDLIBRARY" >&6; }
5954
5955
5956if test -n "$ac_tool_prefix"; then
5957  for ac_prog in ar aal
5958  do
5959    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if ${ac_cv_prog_AR+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  if test -n "$AR"; then
5967  ac_cv_prog_AR="$AR" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972  IFS=$as_save_IFS
5973  test -z "$as_dir" && as_dir=.
5974    for ac_exec_ext in '' $ac_executable_extensions; do
5975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978    break 2
5979  fi
5980done
5981  done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986AR=$ac_cv_prog_AR
5987if test -n "$AR"; then
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5989$as_echo "$AR" >&6; }
5990else
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995
5996    test -n "$AR" && break
5997  done
5998fi
5999if test -z "$AR"; then
6000  ac_ct_AR=$AR
6001  for ac_prog in ar aal
6002do
6003  # Extract the first word of "$ac_prog", so it can be a program name with args.
6004set dummy $ac_prog; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
6007if ${ac_cv_prog_ac_ct_AR+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  if test -n "$ac_ct_AR"; then
6011  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016  IFS=$as_save_IFS
6017  test -z "$as_dir" && as_dir=.
6018    for ac_exec_ext in '' $ac_executable_extensions; do
6019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020    ac_cv_prog_ac_ct_AR="$ac_prog"
6021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022    break 2
6023  fi
6024done
6025  done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030ac_ct_AR=$ac_cv_prog_ac_ct_AR
6031if test -n "$ac_ct_AR"; then
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6033$as_echo "$ac_ct_AR" >&6; }
6034else
6035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039
6040  test -n "$ac_ct_AR" && break
6041done
6042
6043  if test "x$ac_ct_AR" = x; then
6044    AR="ar"
6045  else
6046    case $cross_compiling:$ac_tool_warned in
6047yes:)
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050ac_tool_warned=yes ;;
6051esac
6052    AR=$ac_ct_AR
6053  fi
6054fi
6055
6056
6057# tweak ARFLAGS only if the user didn't set it on the command line
6058
6059if test -z "$ARFLAGS"
6060then
6061        ARFLAGS="rcs"
6062fi
6063
6064if test -n "$ac_tool_prefix"; then
6065  for ac_prog in readelf
6066  do
6067    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
6071if ${ac_cv_prog_READELF+:} false; then :
6072  $as_echo_n "(cached) " >&6
6073else
6074  if test -n "$READELF"; then
6075  ac_cv_prog_READELF="$READELF" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080  IFS=$as_save_IFS
6081  test -z "$as_dir" && as_dir=.
6082    for ac_exec_ext in '' $ac_executable_extensions; do
6083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084    ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089  done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094READELF=$ac_cv_prog_READELF
6095if test -n "$READELF"; then
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6097$as_echo "$READELF" >&6; }
6098else
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104    test -n "$READELF" && break
6105  done
6106fi
6107if test -z "$READELF"; then
6108  ac_ct_READELF=$READELF
6109  for ac_prog in readelf
6110do
6111  # Extract the first word of "$ac_prog", so it can be a program name with args.
6112set dummy $ac_prog; ac_word=$2
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114$as_echo_n "checking for $ac_word... " >&6; }
6115if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  if test -n "$ac_ct_READELF"; then
6119  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124  IFS=$as_save_IFS
6125  test -z "$as_dir" && as_dir=.
6126    for ac_exec_ext in '' $ac_executable_extensions; do
6127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128    ac_cv_prog_ac_ct_READELF="$ac_prog"
6129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130    break 2
6131  fi
6132done
6133  done
6134IFS=$as_save_IFS
6135
6136fi
6137fi
6138ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6139if test -n "$ac_ct_READELF"; then
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6141$as_echo "$ac_ct_READELF" >&6; }
6142else
6143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144$as_echo "no" >&6; }
6145fi
6146
6147
6148  test -n "$ac_ct_READELF" && break
6149done
6150
6151  if test "x$ac_ct_READELF" = x; then
6152    READELF=":"
6153  else
6154    case $cross_compiling:$ac_tool_warned in
6155yes:)
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158ac_tool_warned=yes ;;
6159esac
6160    READELF=$ac_ct_READELF
6161  fi
6162fi
6163
6164if test "$cross_compiling" = yes; then
6165    case "$READELF" in
6166	readelf|:)
6167	as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
6168	;;
6169    esac
6170fi
6171
6172
6173
6174case $MACHDEP in
6175hp*|HP*)
6176	# install -d does not work on HP-UX
6177	if test -z "$INSTALL"
6178	then
6179		INSTALL="${srcdir}/install-sh -c"
6180	fi
6181esac
6182# Find a good install program.  We prefer a C program (faster),
6183# so one script is as good as another.  But avoid the broken or
6184# incompatible versions:
6185# SysV /etc/install, /usr/sbin/install
6186# SunOS /usr/etc/install
6187# IRIX /sbin/install
6188# AIX /bin/install
6189# AmigaOS /C/install, which installs bootblocks on floppy discs
6190# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6191# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6192# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6193# OS/2's system install, which has a completely different semantic
6194# ./install, which can be erroneously created by make from ./install.sh.
6195# Reject install programs that cannot install multiple files.
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6197$as_echo_n "checking for a BSD-compatible install... " >&6; }
6198if test -z "$INSTALL"; then
6199if ${ac_cv_path_install+:} false; then :
6200  $as_echo_n "(cached) " >&6
6201else
6202  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205  IFS=$as_save_IFS
6206  test -z "$as_dir" && as_dir=.
6207    # Account for people who put trailing slashes in PATH elements.
6208case $as_dir/ in #((
6209  ./ | .// | /[cC]/* | \
6210  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6211  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6212  /usr/ucb/* ) ;;
6213  *)
6214    # OSF1 and SCO ODT 3.0 have their own names for install.
6215    # Don't use installbsd from OSF since it installs stuff as root
6216    # by default.
6217    for ac_prog in ginstall scoinst install; do
6218      for ac_exec_ext in '' $ac_executable_extensions; do
6219	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6220	  if test $ac_prog = install &&
6221	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6222	    # AIX install.  It has an incompatible calling convention.
6223	    :
6224	  elif test $ac_prog = install &&
6225	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6226	    # program-specific install script used by HP pwplus--don't use.
6227	    :
6228	  else
6229	    rm -rf conftest.one conftest.two conftest.dir
6230	    echo one > conftest.one
6231	    echo two > conftest.two
6232	    mkdir conftest.dir
6233	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6234	      test -s conftest.one && test -s conftest.two &&
6235	      test -s conftest.dir/conftest.one &&
6236	      test -s conftest.dir/conftest.two
6237	    then
6238	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6239	      break 3
6240	    fi
6241	  fi
6242	fi
6243      done
6244    done
6245    ;;
6246esac
6247
6248  done
6249IFS=$as_save_IFS
6250
6251rm -rf conftest.one conftest.two conftest.dir
6252
6253fi
6254  if test "${ac_cv_path_install+set}" = set; then
6255    INSTALL=$ac_cv_path_install
6256  else
6257    # As a last resort, use the slow shell script.  Don't cache a
6258    # value for INSTALL within a source directory, because that will
6259    # break other packages using the cache if that directory is
6260    # removed, or if the value is a relative name.
6261    INSTALL=$ac_install_sh
6262  fi
6263fi
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6265$as_echo "$INSTALL" >&6; }
6266
6267# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6268# It thinks the first close brace ends the variable substitution.
6269test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6270
6271test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6272
6273test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6274
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6276$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6277if test -z "$MKDIR_P"; then
6278  if ${ac_cv_path_mkdir+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6283do
6284  IFS=$as_save_IFS
6285  test -z "$as_dir" && as_dir=.
6286    for ac_prog in mkdir gmkdir; do
6287	 for ac_exec_ext in '' $ac_executable_extensions; do
6288	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6289	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6290	     'mkdir (GNU coreutils) '* | \
6291	     'mkdir (coreutils) '* | \
6292	     'mkdir (fileutils) '4.1*)
6293	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6294	       break 3;;
6295	   esac
6296	 done
6297       done
6298  done
6299IFS=$as_save_IFS
6300
6301fi
6302
6303  test -d ./--version && rmdir ./--version
6304  if test "${ac_cv_path_mkdir+set}" = set; then
6305    MKDIR_P="$ac_cv_path_mkdir -p"
6306  else
6307    # As a last resort, use the slow shell script.  Don't cache a
6308    # value for MKDIR_P within a source directory, because that will
6309    # break other packages using the cache if that directory is
6310    # removed, or if the value is a relative name.
6311    MKDIR_P="$ac_install_sh -d"
6312  fi
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6315$as_echo "$MKDIR_P" >&6; }
6316
6317
6318# Not every filesystem supports hard links
6319
6320if test -z "$LN" ; then
6321	case $ac_sys_system in
6322		CYGWIN*) LN="ln -s";;
6323		*) LN=ln;;
6324	esac
6325fi
6326
6327# For calculating the .so ABI tag.
6328
6329ABIFLAGS=""
6330
6331# Check for --with-pydebug
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
6333$as_echo_n "checking for --with-pydebug... " >&6; }
6334
6335# Check whether --with-pydebug was given.
6336if test "${with_pydebug+set}" = set; then :
6337  withval=$with_pydebug;
6338if test "$withval" != no
6339then
6340
6341$as_echo "#define Py_DEBUG 1" >>confdefs.h
6342
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6344$as_echo "yes" >&6; };
6345  Py_DEBUG='true'
6346  ABIFLAGS="${ABIFLAGS}d"
6347else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348$as_echo "no" >&6; }; Py_DEBUG='false'
6349fi
6350else
6351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352$as_echo "no" >&6; }
6353fi
6354
6355
6356# Check for --with-trace-refs
6357# --with-trace-refs
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5
6359$as_echo_n "checking for --with-trace-refs... " >&6; }
6360
6361# Check whether --with-trace-refs was given.
6362if test "${with_trace_refs+set}" = set; then :
6363  withval=$with_trace_refs;
6364else
6365  with_trace_refs=no
6366fi
6367
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5
6369$as_echo "$with_trace_refs" >&6; }
6370
6371if test "$with_trace_refs" = "yes"
6372then
6373
6374$as_echo "#define Py_TRACE_REFS 1" >>confdefs.h
6375
6376fi
6377
6378# Check for --with-assertions.
6379# This allows enabling assertions without Py_DEBUG.
6380assertions='false'
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
6382$as_echo_n "checking for --with-assertions... " >&6; }
6383
6384# Check whether --with-assertions was given.
6385if test "${with_assertions+set}" = set; then :
6386  withval=$with_assertions;
6387if test "$withval" != no
6388then
6389  assertions='true'
6390fi
6391fi
6392
6393if test "$assertions" = 'true'; then
6394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6395$as_echo "yes" >&6; }
6396elif test "$Py_DEBUG" = 'true'; then
6397  assertions='true'
6398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
6399$as_echo "implied by --with-pydebug" >&6; }
6400else
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; }
6403fi
6404
6405# Enable optimization flags
6406
6407
6408Py_OPT='false'
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6410$as_echo_n "checking for --enable-optimizations... " >&6; }
6411# Check whether --enable-optimizations was given.
6412if test "${enable_optimizations+set}" = set; then :
6413  enableval=$enable_optimizations;
6414if test "$enableval" != no
6415then
6416  Py_OPT='true'
6417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6418$as_echo "yes" >&6; };
6419else
6420  Py_OPT='false'
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; };
6423fi
6424else
6425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429if test "$Py_OPT" = 'true' ; then
6430  # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not
6431  # compile working code using it and both test_distutils and test_gdb are
6432  # broken when you do manage to get a toolchain that works with it.  People
6433  # who want LTO need to use --with-lto themselves.
6434  DEF_MAKE_ALL_RULE="profile-opt"
6435  REQUIRE_PGO="yes"
6436  DEF_MAKE_RULE="build_all"
6437else
6438  DEF_MAKE_ALL_RULE="build_all"
6439  REQUIRE_PGO="no"
6440  DEF_MAKE_RULE="all"
6441fi
6442
6443
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5
6445$as_echo_n "checking PROFILE_TASK... " >&6; }
6446if test -z "$PROFILE_TASK"
6447then
6448	PROFILE_TASK='-m test --pgo'
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
6451$as_echo "$PROFILE_TASK" >&6; }
6452
6453# Make llvm-relatec checks work on systems where llvm tools are not installed with their
6454# normal names in the default $PATH (ie: Ubuntu).  They exist under the
6455# non-suffixed name in their versioned llvm directory.
6456
6457llvm_bin_dir=''
6458llvm_path="${PATH}"
6459if test "${CC}" = "clang"
6460then
6461  clang_bin=`which clang`
6462  # Some systems install clang elsewhere as a symlink to the real path
6463  # which is where the related llvm tools are located.
6464  if test -L "${clang_bin}"
6465  then
6466    clang_dir=`dirname "${clang_bin}"`
6467    clang_bin=`readlink "${clang_bin}"`
6468    llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6469    llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6470  fi
6471fi
6472
6473# Enable LTO flags
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6475$as_echo_n "checking for --with-lto... " >&6; }
6476
6477# Check whether --with-lto was given.
6478if test "${with_lto+set}" = set; then :
6479  withval=$with_lto;
6480if test "$withval" != no
6481then
6482  Py_LTO='true'
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6484$as_echo "yes" >&6; };
6485else
6486  Py_LTO='false'
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488$as_echo "no" >&6; };
6489fi
6490else
6491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492$as_echo "no" >&6; }
6493fi
6494
6495if test "$Py_LTO" = 'true' ; then
6496  case $CC in
6497    *clang*)
6498
6499      if test -n "$ac_tool_prefix"; then
6500  # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
6501set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503$as_echo_n "checking for $ac_word... " >&6; }
6504if ${ac_cv_path_LLVM_AR+:} false; then :
6505  $as_echo_n "(cached) " >&6
6506else
6507  case $LLVM_AR in
6508  [\\/]* | ?:[\\/]*)
6509  ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path.
6510  ;;
6511  *)
6512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in ${llvm_path}
6514do
6515  IFS=$as_save_IFS
6516  test -z "$as_dir" && as_dir=.
6517    for ac_exec_ext in '' $ac_executable_extensions; do
6518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519    ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521    break 2
6522  fi
6523done
6524  done
6525IFS=$as_save_IFS
6526
6527  ;;
6528esac
6529fi
6530LLVM_AR=$ac_cv_path_LLVM_AR
6531if test -n "$LLVM_AR"; then
6532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
6533$as_echo "$LLVM_AR" >&6; }
6534else
6535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536$as_echo "no" >&6; }
6537fi
6538
6539
6540fi
6541if test -z "$ac_cv_path_LLVM_AR"; then
6542  ac_pt_LLVM_AR=$LLVM_AR
6543  # Extract the first word of "llvm-ar", so it can be a program name with args.
6544set dummy llvm-ar; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
6547if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550  case $ac_pt_LLVM_AR in
6551  [\\/]* | ?:[\\/]*)
6552  ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path.
6553  ;;
6554  *)
6555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in ${llvm_path}
6557do
6558  IFS=$as_save_IFS
6559  test -z "$as_dir" && as_dir=.
6560    for ac_exec_ext in '' $ac_executable_extensions; do
6561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562    ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564    break 2
6565  fi
6566done
6567  done
6568IFS=$as_save_IFS
6569
6570  ;;
6571esac
6572fi
6573ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR
6574if test -n "$ac_pt_LLVM_AR"; then
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
6576$as_echo "$ac_pt_LLVM_AR" >&6; }
6577else
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582  if test "x$ac_pt_LLVM_AR" = x; then
6583    LLVM_AR="''"
6584  else
6585    case $cross_compiling:$ac_tool_warned in
6586yes:)
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589ac_tool_warned=yes ;;
6590esac
6591    LLVM_AR=$ac_pt_LLVM_AR
6592  fi
6593else
6594  LLVM_AR="$ac_cv_path_LLVM_AR"
6595fi
6596
6597
6598      if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
6599      then
6600        LLVM_AR_FOUND="found"
6601      else
6602        LLVM_AR_FOUND="not-found"
6603      fi
6604      if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
6605      then
6606        found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null`
6607        if test -n "${found_llvm_ar}"
6608        then
6609          LLVM_AR='/usr/bin/xcrun llvm-ar'
6610          LLVM_AR_FOUND=found
6611          { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
6612$as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
6613        fi
6614      fi
6615      if test $LLVM_AR_FOUND = not-found
6616      then
6617        LLVM_PROFR_ERR=yes
6618        as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
6619      else
6620        LLVM_AR_ERR=no
6621      fi
6622      AR="${LLVM_AR}"
6623      case $ac_sys_system in
6624        Darwin*)
6625          # Any changes made here should be reflected in the GCC+Darwin case below
6626          LTOFLAGS="-flto -Wl,-export_dynamic"
6627          ;;
6628        *)
6629          LTOFLAGS="-flto"
6630          ;;
6631      esac
6632      ;;
6633    *gcc*)
6634      case $ac_sys_system in
6635        Darwin*)
6636          LTOFLAGS="-flto -Wl,-export_dynamic"
6637          ;;
6638        *)
6639          LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6640          ;;
6641      esac
6642      ;;
6643  esac
6644
6645  if test "$ac_cv_prog_cc_g" = "yes"
6646  then
6647      # bpo-30345: Add -g to LDFLAGS when compiling with LTO
6648      # to get debug symbols.
6649      LTOFLAGS="$LTOFLAGS -g"
6650  fi
6651
6652  CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS"
6653  LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS"
6654fi
6655
6656# Enable PGO flags.
6657
6658
6659
6660
6661
6662
6663if test -n "$ac_tool_prefix"; then
6664  # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args.
6665set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6669  $as_echo_n "(cached) " >&6
6670else
6671  case $LLVM_PROFDATA in
6672  [\\/]* | ?:[\\/]*)
6673  ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6674  ;;
6675  *)
6676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in ${llvm_path}
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681    for ac_exec_ext in '' $ac_executable_extensions; do
6682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683    ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688  done
6689IFS=$as_save_IFS
6690
6691  ;;
6692esac
6693fi
6694LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6695if test -n "$LLVM_PROFDATA"; then
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6697$as_echo "$LLVM_PROFDATA" >&6; }
6698else
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
6701fi
6702
6703
6704fi
6705if test -z "$ac_cv_path_LLVM_PROFDATA"; then
6706  ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6707  # Extract the first word of "llvm-profdata", so it can be a program name with args.
6708set dummy llvm-profdata; ac_word=$2
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710$as_echo_n "checking for $ac_word... " >&6; }
6711if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  case $ac_pt_LLVM_PROFDATA in
6715  [\\/]* | ?:[\\/]*)
6716  ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6717  ;;
6718  *)
6719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in ${llvm_path}
6721do
6722  IFS=$as_save_IFS
6723  test -z "$as_dir" && as_dir=.
6724    for ac_exec_ext in '' $ac_executable_extensions; do
6725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726    ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728    break 2
6729  fi
6730done
6731  done
6732IFS=$as_save_IFS
6733
6734  ;;
6735esac
6736fi
6737ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6738if test -n "$ac_pt_LLVM_PROFDATA"; then
6739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6740$as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6741else
6742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743$as_echo "no" >&6; }
6744fi
6745
6746  if test "x$ac_pt_LLVM_PROFDATA" = x; then
6747    LLVM_PROFDATA="''"
6748  else
6749    case $cross_compiling:$ac_tool_warned in
6750yes:)
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753ac_tool_warned=yes ;;
6754esac
6755    LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6756  fi
6757else
6758  LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6759fi
6760
6761
6762if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6763then
6764  LLVM_PROF_FOUND="found"
6765else
6766  LLVM_PROF_FOUND="not-found"
6767fi
6768if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6769then
6770  found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6771  if test -n "${found_llvm_profdata}"
6772  then
6773    # llvm-profdata isn't directly in $PATH in some cases.
6774    # https://apple.stackexchange.com/questions/197053/
6775    LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6776    LLVM_PROF_FOUND=found
6777    { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6778$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6779  fi
6780fi
6781LLVM_PROF_ERR=no
6782case $CC in
6783  *clang*)
6784    # Any changes made here should be reflected in the GCC+Darwin case below
6785    PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6786    PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6787    LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6788    LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6789    if test $LLVM_PROF_FOUND = not-found
6790    then
6791      LLVM_PROF_ERR=yes
6792      if test "${REQUIRE_PGO}" = "yes"
6793      then
6794        as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6795      fi
6796    fi
6797    ;;
6798  *gcc*)
6799    case $ac_sys_system in
6800      Darwin*)
6801        PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6802        PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6803        LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6804        LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6805        if test "${LLVM_PROF_FOUND}" = "not-found"
6806        then
6807          LLVM_PROF_ERR=yes
6808          if test "${REQUIRE_PGO}" = "yes"
6809	  then
6810	    as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6811	  fi
6812        fi
6813        ;;
6814      *)
6815        PGO_PROF_GEN_FLAG="-fprofile-generate"
6816        PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6817        LLVM_PROF_MERGER="true"
6818        LLVM_PROF_FILE=""
6819        ;;
6820    esac
6821    ;;
6822  *icc*)
6823    PGO_PROF_GEN_FLAG="-prof-gen"
6824    PGO_PROF_USE_FLAG="-prof-use"
6825    LLVM_PROF_MERGER="true"
6826    LLVM_PROF_FILE=""
6827    ;;
6828esac
6829
6830# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
6831# merged with this chunk of code?
6832
6833# Optimizer/debugger flags
6834# ------------------------
6835# (The following bit of code is complicated enough - please keep things
6836# indented properly.  Just pretend you're editing Python code. ;-)
6837
6838# There are two parallel sets of case statements below, one that checks to
6839# see if OPT was set and one that does BASECFLAGS setting based upon
6840# compiler and platform.  BASECFLAGS tweaks need to be made even if the
6841# user set OPT.
6842
6843case $CC in
6844    *clang*)
6845        cc_is_clang=1
6846        ;;
6847    *)
6848        if $CC --version 2>&1 | grep -q clang
6849        then
6850            cc_is_clang=1
6851        else
6852            cc_is_clang=
6853        fi
6854esac
6855
6856# tweak OPT based on compiler and platform, only if the user didn't set
6857# it on the command line
6858
6859
6860if test "${OPT-unset}" = "unset"
6861then
6862    case $GCC in
6863    yes)
6864        # For gcc 4.x we need to use -fwrapv so lets check if its supported
6865        if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6866           WRAP="-fwrapv"
6867        fi
6868
6869        if test -n "${cc_is_clang}"
6870        then
6871            # Clang also needs -fwrapv
6872            WRAP="-fwrapv"
6873            # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
6874            # see Makefile.pre.in for more information
6875            CFLAGS_ALIASING="-fno-strict-aliasing"
6876        fi
6877
6878	case $ac_cv_prog_cc_g in
6879	yes)
6880	    if test "$Py_DEBUG" = 'true' ; then
6881		# Optimization messes up debuggers, so turn it off for
6882		# debug builds.
6883                if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
6884                    OPT="-g -Og -Wall"
6885                else
6886                    OPT="-g -O0 -Wall"
6887                fi
6888	    else
6889		OPT="-g $WRAP -O3 -Wall"
6890	    fi
6891	    ;;
6892	*)
6893	    OPT="-O3 -Wall"
6894	    ;;
6895	esac
6896
6897	case $ac_sys_system in
6898	    SCO_SV*) OPT="$OPT -m486 -DSCO5"
6899	    ;;
6900        esac
6901	;;
6902
6903    *)
6904	OPT="-O"
6905	;;
6906    esac
6907fi
6908
6909
6910
6911
6912
6913# The -arch flags for universal builds on macOS
6914UNIVERSAL_ARCH_FLAGS=
6915
6916
6917# tweak BASECFLAGS based on compiler and platform
6918case $GCC in
6919yes)
6920    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
6921
6922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
6923$as_echo_n "checking for -Wextra... " >&6; }
6924     ac_save_cc="$CC"
6925     CC="$CC -Wextra -Werror"
6926     if ${ac_cv_extra_warnings+:} false; then :
6927  $as_echo_n "(cached) " >&6
6928else
6929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931
6932
6933int
6934main ()
6935{
6936
6937  ;
6938  return 0;
6939}
6940
6941_ACEOF
6942if ac_fn_c_try_compile "$LINENO"; then :
6943
6944           ac_cv_extra_warnings=yes
6945
6946else
6947
6948           ac_cv_extra_warnings=no
6949
6950fi
6951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952fi
6953
6954     CC="$ac_save_cc"
6955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5
6956$as_echo "$ac_cv_extra_warnings" >&6; }
6957
6958    if test $ac_cv_extra_warnings = yes
6959    then
6960      CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
6961    fi
6962
6963    # Python doesn't violate C99 aliasing rules, but older versions of
6964    # GCC produce warnings for legal Python code.  Enable
6965    # -fno-strict-aliasing on versions of GCC that support but produce
6966    # warnings.  See Issue3326
6967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
6968$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
6969     ac_save_cc="$CC"
6970     CC="$CC -fno-strict-aliasing"
6971     save_CFLAGS="$CFLAGS"
6972     if ${ac_cv_no_strict_aliasing+:} false; then :
6973  $as_echo_n "(cached) " >&6
6974else
6975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976/* end confdefs.h.  */
6977
6978
6979int
6980main ()
6981{
6982
6983  ;
6984  return 0;
6985}
6986
6987_ACEOF
6988if ac_fn_c_try_compile "$LINENO"; then :
6989
6990	   CC="$ac_save_cc -fstrict-aliasing"
6991           CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
6992           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993/* end confdefs.h.  */
6994
6995	       void f(int **x) {}
6996int
6997main ()
6998{
6999double *x; f((int **) &x);
7000  ;
7001  return 0;
7002}
7003
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"; then :
7006
7007	       ac_cv_no_strict_aliasing=no
7008
7009else
7010
7011               ac_cv_no_strict_aliasing=yes
7012
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015
7016else
7017
7018	   ac_cv_no_strict_aliasing=no
7019
7020fi
7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022fi
7023
7024     CFLAGS="$save_CFLAGS"
7025     CC="$ac_save_cc"
7026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
7027$as_echo "$ac_cv_no_strict_aliasing" >&6; }
7028    if test $ac_cv_no_strict_aliasing = yes
7029    then
7030      BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
7031    fi
7032
7033    # ICC doesn't recognize the option, but only emits a warning
7034    ## XXX does it emit an unused result warning and can it be disabled?
7035    case "$CC" in
7036    *icc*)
7037    ac_cv_disable_unused_result_warning=no
7038    ;;
7039    *)
7040    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5
7041$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; }
7042     ac_save_cc="$CC"
7043     CC="$CC -Wunused-result -Werror"
7044     save_CFLAGS="$CFLAGS"
7045     if ${ac_cv_disable_unused_result_warning+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049/* end confdefs.h.  */
7050
7051
7052int
7053main ()
7054{
7055
7056  ;
7057  return 0;
7058}
7059
7060_ACEOF
7061if ac_fn_c_try_compile "$LINENO"; then :
7062
7063           ac_cv_disable_unused_result_warning=yes
7064
7065else
7066
7067           ac_cv_disable_unused_result_warning=no
7068
7069fi
7070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7071fi
7072
7073     CFLAGS="$save_CFLAGS"
7074     CC="$ac_save_cc"
7075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
7076$as_echo "$ac_cv_disable_unused_result_warning" >&6; }
7077    ;;
7078    esac
7079
7080    if test $ac_cv_disable_unused_result_warning = yes
7081    then
7082      BASECFLAGS="$BASECFLAGS -Wno-unused-result"
7083      CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
7084    fi
7085
7086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5
7087$as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; }
7088     ac_save_cc="$CC"
7089     CC="$CC -Wunused-parameter -Werror"
7090     if ${ac_cv_disable_unused_parameter_warning+:} false; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095
7096
7097int
7098main ()
7099{
7100
7101  ;
7102  return 0;
7103}
7104
7105_ACEOF
7106if ac_fn_c_try_compile "$LINENO"; then :
7107
7108           ac_cv_disable_unused_parameter_warning=yes
7109
7110else
7111
7112           ac_cv_disable_unused_parameter_warning=no
7113
7114fi
7115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116fi
7117
7118     CC="$ac_save_cc"
7119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
7120$as_echo "$ac_cv_disable_unused_parameter_warning" >&6; }
7121
7122    if test $ac_cv_disable_unused_parameter_warning = yes
7123    then
7124      CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
7125    fi
7126
7127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5
7128$as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; }
7129     ac_save_cc="$CC"
7130     CC="$CC -Wmissing-field-initializers -Werror"
7131     if ${ac_cv_disable_missing_field_initializers+:} false; then :
7132  $as_echo_n "(cached) " >&6
7133else
7134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136
7137
7138int
7139main ()
7140{
7141
7142  ;
7143  return 0;
7144}
7145
7146_ACEOF
7147if ac_fn_c_try_compile "$LINENO"; then :
7148
7149           ac_cv_disable_missing_field_initializers=yes
7150
7151else
7152
7153           ac_cv_disable_missing_field_initializers=no
7154
7155fi
7156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157fi
7158
7159     CC="$ac_save_cc"
7160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5
7161$as_echo "$ac_cv_disable_missing_field_initializers" >&6; }
7162
7163    if test $ac_cv_disable_missing_field_initializers = yes
7164    then
7165      CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
7166    fi
7167
7168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5
7169$as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; }
7170     ac_save_cc="$CC"
7171     CC="$CC -Wsign-compare"
7172     save_CFLAGS="$CFLAGS"
7173     if ${ac_cv_enable_sign_compare_warning+:} false; then :
7174  $as_echo_n "(cached) " >&6
7175else
7176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177/* end confdefs.h.  */
7178
7179
7180int
7181main ()
7182{
7183
7184  ;
7185  return 0;
7186}
7187
7188_ACEOF
7189if ac_fn_c_try_compile "$LINENO"; then :
7190
7191           ac_cv_enable_sign_compare_warning=yes
7192
7193else
7194
7195           ac_cv_enable_sign_compare_warning=no
7196
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199fi
7200
7201     CFLAGS="$save_CFLAGS"
7202     CC="$ac_save_cc"
7203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
7204$as_echo "$ac_cv_enable_sign_compare_warning" >&6; }
7205
7206    if test $ac_cv_enable_sign_compare_warning = yes
7207    then
7208      BASECFLAGS="$BASECFLAGS -Wsign-compare"
7209    fi
7210
7211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5
7212$as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; }
7213     ac_save_cc="$CC"
7214     CC="$CC -Wunreachable-code"
7215     save_CFLAGS="$CFLAGS"
7216     if ${ac_cv_enable_unreachable_code_warning+:} false; then :
7217  $as_echo_n "(cached) " >&6
7218else
7219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221
7222
7223int
7224main ()
7225{
7226
7227  ;
7228  return 0;
7229}
7230
7231_ACEOF
7232if ac_fn_c_try_compile "$LINENO"; then :
7233
7234           ac_cv_enable_unreachable_code_warning=yes
7235
7236else
7237
7238           ac_cv_enable_unreachable_code_warning=no
7239
7240fi
7241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242fi
7243
7244     CFLAGS="$save_CFLAGS"
7245     CC="$ac_save_cc"
7246
7247    # Don't enable unreachable code warning in debug mode, since it usually
7248    # results in non-standard code paths.
7249    # Issue #24324: Unfortunately, the unreachable code warning does not work
7250    # correctly on gcc and has been silently removed from the compiler.
7251    # It is supported on clang but on OS X systems gcc may be an alias
7252    # for clang.  Try to determine if the compiler is not really gcc and,
7253    # if so, only then enable the warning.
7254    if test $ac_cv_enable_unreachable_code_warning = yes && \
7255        test "$Py_DEBUG" != "true" && \
7256        test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
7257    then
7258      BASECFLAGS="$BASECFLAGS -Wunreachable-code"
7259    else
7260      ac_cv_enable_unreachable_code_warning=no
7261    fi
7262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
7263$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; }
7264
7265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5
7266$as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; }
7267     ac_save_cc="$CC"
7268     CC="$CC -Werror -Wstrict-prototypes"
7269     if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then :
7270  $as_echo_n "(cached) " >&6
7271else
7272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273/* end confdefs.h.  */
7274
7275
7276int
7277main ()
7278{
7279
7280  ;
7281  return 0;
7282}
7283
7284_ACEOF
7285if ac_fn_c_try_compile "$LINENO"; then :
7286
7287       ac_cv_enable_strict_prototypes_warning=yes
7288
7289else
7290
7291       ac_cv_enable_strict_prototypes_warning=no
7292
7293fi
7294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295fi
7296
7297     CC="$ac_save_cc"
7298    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
7299$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; }
7300
7301    if test $ac_cv_enable_strict_prototypes_warning = yes
7302    then
7303      CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
7304    fi
7305
7306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
7307$as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; }
7308     ac_save_cc="$CC"
7309     CC="$CC -Werror=implicit-function-declaration"
7310     if ${ac_cv_enable_implicit_function_declaration_error+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h.  */
7315
7316
7317int
7318main ()
7319{
7320
7321  ;
7322  return 0;
7323}
7324
7325_ACEOF
7326if ac_fn_c_try_compile "$LINENO"; then :
7327
7328           ac_cv_enable_implicit_function_declaration_error=yes
7329
7330else
7331
7332           ac_cv_enable_implicit_function_declaration_error=no
7333
7334fi
7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336fi
7337
7338     CC="$ac_save_cc"
7339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
7340$as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; }
7341
7342    if test $ac_cv_enable_implicit_function_declaration_error = yes
7343    then
7344      CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
7345    fi
7346
7347    # if using gcc on alpha, use -mieee to get (near) full IEEE 754
7348    # support.  Without this, treatment of subnormals doesn't follow
7349    # the standard.
7350    case $host in
7351         alpha*)
7352                BASECFLAGS="$BASECFLAGS -mieee"
7353                ;;
7354    esac
7355
7356    case $ac_sys_system in
7357	SCO_SV*)
7358	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
7359	    ;;
7360
7361    Darwin*)
7362        # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
7363        # used to be here, but non-Apple gcc doesn't accept them.
7364        if test "${CC}" = gcc
7365        then
7366            { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
7367$as_echo_n "checking which compiler should be used... " >&6; }
7368            case "${UNIVERSALSDK}" in
7369            */MacOSX10.4u.sdk)
7370                # Build using 10.4 SDK, force usage of gcc when the
7371                # compiler is gcc, otherwise the user will get very
7372                # confusing error messages when building on OSX 10.6
7373                CC=gcc-4.0
7374                CPP=cpp-4.0
7375                ;;
7376            esac
7377            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7378$as_echo "$CC" >&6; }
7379        fi
7380
7381        LIPO_INTEL64_FLAGS=""
7382        if test "${enable_universalsdk}"
7383        then
7384            case "$UNIVERSAL_ARCHS" in
7385            32-bit)
7386               UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
7387               LIPO_32BIT_FLAGS=""
7388               ARCH_RUN_32BIT=""
7389               ;;
7390            64-bit)
7391               UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
7392               LIPO_32BIT_FLAGS=""
7393               ARCH_RUN_32BIT="true"
7394               ;;
7395            all)
7396               UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
7397               LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7398               ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7399               ;;
7400            universal2)
7401               UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64"
7402               LIPO_32BIT_FLAGS=""
7403               LIPO_INTEL64_FLAGS="-extract x86_64"
7404               ARCH_RUN_32BIT="true"
7405               ;;
7406            intel)
7407               UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
7408               LIPO_32BIT_FLAGS="-extract i386"
7409               ARCH_RUN_32BIT="/usr/bin/arch -i386"
7410               ;;
7411            intel-32)
7412               UNIVERSAL_ARCH_FLAGS="-arch i386"
7413               LIPO_32BIT_FLAGS=""
7414               ARCH_RUN_32BIT=""
7415               ;;
7416            intel-64)
7417               UNIVERSAL_ARCH_FLAGS="-arch x86_64"
7418               LIPO_32BIT_FLAGS=""
7419               ARCH_RUN_32BIT="true"
7420               ;;
7421            3-way)
7422               UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
7423               LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7424               ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7425               ;;
7426            *)
7427               as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5
7428               ;;
7429            esac
7430
7431            if test "${UNIVERSALSDK}" != "/"
7432            then
7433                CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
7434                LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
7435                CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
7436            else
7437                CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
7438                LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
7439            fi
7440        fi
7441
7442        # Calculate an appropriate deployment target for this build:
7443        # The deployment target value is used explicitly to enable certain
7444        # features are enabled (such as builtin libedit support for readline)
7445        # through the use of Apple's Availability Macros and is used as a
7446        # component of the string returned by distutils.get_platform().
7447        #
7448        # Use the value from:
7449        # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
7450        # 2. the operating system version of the build machine if >= 10.6
7451        # 3. If running on OS X 10.3 through 10.5, use the legacy tests
7452        #       below to pick either 10.3, 10.4, or 10.5 as the target.
7453        # 4. If we are running on OS X 10.2 or earlier, good luck!
7454
7455        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
7456$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
7457        cur_target_major=`sw_vers -productVersion | \
7458                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
7459        cur_target_minor=`sw_vers -productVersion | \
7460                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
7461        cur_target="${cur_target_major}.${cur_target_minor}"
7462        if test ${cur_target_major} -eq 10 && \
7463           test ${cur_target_minor} -ge 3 && \
7464           test ${cur_target_minor} -le 5
7465        then
7466            # OS X 10.3 through 10.5
7467            cur_target=10.3
7468            if test ${enable_universalsdk}
7469            then
7470                case "$UNIVERSAL_ARCHS" in
7471                all|3-way|intel|64-bit)
7472                    # These configurations were first supported in 10.5
7473                    cur_target='10.5'
7474                    ;;
7475                esac
7476            else
7477                if test `/usr/bin/arch` = "i386"
7478                then
7479                    # 10.4 was the first release to support Intel archs
7480                    cur_target="10.4"
7481                fi
7482            fi
7483        fi
7484        CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
7485
7486        # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
7487        # environment with a value that is the same as what we'll use
7488        # in the Makefile to ensure that we'll get the same compiler
7489        # environment during configure and build time.
7490        MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
7491        export MACOSX_DEPLOYMENT_TARGET
7492        EXPORT_MACOSX_DEPLOYMENT_TARGET=''
7493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
7494$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
7495
7496        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5
7497$as_echo_n "checking if specified universal architectures work... " >&6; }
7498        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499/* end confdefs.h.  */
7500#include <stdio.h>
7501int
7502main ()
7503{
7504printf("%d", 42);
7505  ;
7506  return 0;
7507}
7508_ACEOF
7509if ac_fn_c_try_link "$LINENO"; then :
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7511$as_echo "yes" >&6; }
7512else
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
7515             as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5
7516
7517fi
7518rm -f core conftest.err conftest.$ac_objext \
7519    conftest$ac_exeext conftest.$ac_ext
7520
7521        # end of Darwin* tests
7522        ;;
7523    esac
7524    ;;
7525
7526*)
7527    case $ac_sys_system in
7528    OpenUNIX*|UnixWare*)
7529	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
7530	;;
7531    SCO_SV*)
7532	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
7533	;;
7534    esac
7535    ;;
7536esac
7537
7538# ICC needs -fp-model strict or floats behave badly
7539case "$CC" in
7540*icc*)
7541    CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
7542    ;;
7543esac
7544
7545if test "$assertions" = 'true'; then
7546  :
7547else
7548  OPT="-DNDEBUG $OPT"
7549fi
7550
7551if test "$ac_arch_flags"
7552then
7553	BASECFLAGS="$BASECFLAGS $ac_arch_flags"
7554fi
7555
7556# On some compilers, pthreads are available without further options
7557# (e.g. MacOS X). On some of these systems, the compiler will not
7558# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
7559# So we have to see first whether pthreads are available without
7560# options before we can check whether -Kpthread improves anything.
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
7562$as_echo_n "checking whether pthreads are available without options... " >&6; }
7563if ${ac_cv_pthread_is_default+:} false; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  if test "$cross_compiling" = yes; then :
7567  ac_cv_pthread_is_default=no
7568else
7569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h.  */
7571
7572#include <stdio.h>
7573#include <pthread.h>
7574
7575void* routine(void* p){return NULL;}
7576
7577int main(){
7578  pthread_t p;
7579  if(pthread_create(&p,NULL,routine,NULL)!=0)
7580    return 1;
7581  (void)pthread_detach(p);
7582  return 0;
7583}
7584
7585_ACEOF
7586if ac_fn_c_try_run "$LINENO"; then :
7587
7588  ac_cv_pthread_is_default=yes
7589  ac_cv_kthread=no
7590  ac_cv_pthread=no
7591
7592else
7593  ac_cv_pthread_is_default=no
7594fi
7595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7596  conftest.$ac_objext conftest.beam conftest.$ac_ext
7597fi
7598
7599
7600fi
7601
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
7603$as_echo "$ac_cv_pthread_is_default" >&6; }
7604
7605
7606if test $ac_cv_pthread_is_default = yes
7607then
7608  ac_cv_kpthread=no
7609else
7610# -Kpthread, if available, provides the right #defines
7611# and linker options to make pthread_create available
7612# Some compilers won't report that they do not support -Kpthread,
7613# so we need to run a program to see whether it really made the
7614# function available.
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
7616$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
7617if ${ac_cv_kpthread+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  ac_save_cc="$CC"
7621CC="$CC -Kpthread"
7622if test "$cross_compiling" = yes; then :
7623  ac_cv_kpthread=no
7624else
7625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627
7628#include <stdio.h>
7629#include <pthread.h>
7630
7631void* routine(void* p){return NULL;}
7632
7633int main(){
7634  pthread_t p;
7635  if(pthread_create(&p,NULL,routine,NULL)!=0)
7636    return 1;
7637  (void)pthread_detach(p);
7638  return 0;
7639}
7640
7641_ACEOF
7642if ac_fn_c_try_run "$LINENO"; then :
7643  ac_cv_kpthread=yes
7644else
7645  ac_cv_kpthread=no
7646fi
7647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7648  conftest.$ac_objext conftest.beam conftest.$ac_ext
7649fi
7650
7651CC="$ac_save_cc"
7652fi
7653
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
7655$as_echo "$ac_cv_kpthread" >&6; }
7656fi
7657
7658if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
7659then
7660# -Kthread, if available, provides the right #defines
7661# and linker options to make pthread_create available
7662# Some compilers won't report that they do not support -Kthread,
7663# so we need to run a program to see whether it really made the
7664# function available.
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
7666$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
7667if ${ac_cv_kthread+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  ac_save_cc="$CC"
7671CC="$CC -Kthread"
7672if test "$cross_compiling" = yes; then :
7673  ac_cv_kthread=no
7674else
7675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h.  */
7677
7678#include <stdio.h>
7679#include <pthread.h>
7680
7681void* routine(void* p){return NULL;}
7682
7683int main(){
7684  pthread_t p;
7685  if(pthread_create(&p,NULL,routine,NULL)!=0)
7686    return 1;
7687  (void)pthread_detach(p);
7688  return 0;
7689}
7690
7691_ACEOF
7692if ac_fn_c_try_run "$LINENO"; then :
7693  ac_cv_kthread=yes
7694else
7695  ac_cv_kthread=no
7696fi
7697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7698  conftest.$ac_objext conftest.beam conftest.$ac_ext
7699fi
7700
7701CC="$ac_save_cc"
7702fi
7703
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
7705$as_echo "$ac_cv_kthread" >&6; }
7706fi
7707
7708if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
7709then
7710# -pthread, if available, provides the right #defines
7711# and linker options to make pthread_create available
7712# Some compilers won't report that they do not support -pthread,
7713# so we need to run a program to see whether it really made the
7714# function available.
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
7716$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
7717if ${ac_cv_pthread+:} false; then :
7718  $as_echo_n "(cached) " >&6
7719else
7720  ac_save_cc="$CC"
7721CC="$CC -pthread"
7722if test "$cross_compiling" = yes; then :
7723  ac_cv_pthread=no
7724else
7725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h.  */
7727
7728#include <stdio.h>
7729#include <pthread.h>
7730
7731void* routine(void* p){return NULL;}
7732
7733int main(){
7734  pthread_t p;
7735  if(pthread_create(&p,NULL,routine,NULL)!=0)
7736    return 1;
7737  (void)pthread_detach(p);
7738  return 0;
7739}
7740
7741_ACEOF
7742if ac_fn_c_try_run "$LINENO"; then :
7743  ac_cv_pthread=yes
7744else
7745  ac_cv_pthread=no
7746fi
7747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7748  conftest.$ac_objext conftest.beam conftest.$ac_ext
7749fi
7750
7751CC="$ac_save_cc"
7752fi
7753
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
7755$as_echo "$ac_cv_pthread" >&6; }
7756fi
7757
7758# If we have set a CC compiler flag for thread support then
7759# check if it works for CXX, too.
7760ac_cv_cxx_thread=no
7761if test ! -z "$CXX"
7762then
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
7764$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
7765ac_save_cxx="$CXX"
7766
7767if test "$ac_cv_kpthread" = "yes"
7768then
7769  CXX="$CXX -Kpthread"
7770  ac_cv_cxx_thread=yes
7771elif test "$ac_cv_kthread" = "yes"
7772then
7773  CXX="$CXX -Kthread"
7774  ac_cv_cxx_thread=yes
7775elif test "$ac_cv_pthread" = "yes"
7776then
7777  CXX="$CXX -pthread"
7778  ac_cv_cxx_thread=yes
7779fi
7780
7781if test $ac_cv_cxx_thread = yes
7782then
7783  echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
7784  $CXX -c conftest.$ac_ext 2>&5
7785  if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
7786     && test -s conftest$ac_exeext && ./conftest$ac_exeext
7787  then
7788    ac_cv_cxx_thread=yes
7789  else
7790    ac_cv_cxx_thread=no
7791  fi
7792  rm -fr conftest*
7793fi
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
7795$as_echo "$ac_cv_cxx_thread" >&6; }
7796fi
7797CXX="$ac_save_cxx"
7798
7799
7800# checks for header files
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7802$as_echo_n "checking for ANSI C header files... " >&6; }
7803if ${ac_cv_header_stdc+:} false; then :
7804  $as_echo_n "(cached) " >&6
7805else
7806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h.  */
7808#include <stdlib.h>
7809#include <stdarg.h>
7810#include <string.h>
7811#include <float.h>
7812
7813int
7814main ()
7815{
7816
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_compile "$LINENO"; then :
7822  ac_cv_header_stdc=yes
7823else
7824  ac_cv_header_stdc=no
7825fi
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827
7828if test $ac_cv_header_stdc = yes; then
7829  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h.  */
7832#include <string.h>
7833
7834_ACEOF
7835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7836  $EGREP "memchr" >/dev/null 2>&1; then :
7837
7838else
7839  ac_cv_header_stdc=no
7840fi
7841rm -f conftest*
7842
7843fi
7844
7845if test $ac_cv_header_stdc = yes; then
7846  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h.  */
7849#include <stdlib.h>
7850
7851_ACEOF
7852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7853  $EGREP "free" >/dev/null 2>&1; then :
7854
7855else
7856  ac_cv_header_stdc=no
7857fi
7858rm -f conftest*
7859
7860fi
7861
7862if test $ac_cv_header_stdc = yes; then
7863  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7864  if test "$cross_compiling" = yes; then :
7865  :
7866else
7867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h.  */
7869#include <ctype.h>
7870#include <stdlib.h>
7871#if ((' ' & 0x0FF) == 0x020)
7872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7874#else
7875# define ISLOWER(c) \
7876		   (('a' <= (c) && (c) <= 'i') \
7877		     || ('j' <= (c) && (c) <= 'r') \
7878		     || ('s' <= (c) && (c) <= 'z'))
7879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7880#endif
7881
7882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7883int
7884main ()
7885{
7886  int i;
7887  for (i = 0; i < 256; i++)
7888    if (XOR (islower (i), ISLOWER (i))
7889	|| toupper (i) != TOUPPER (i))
7890      return 2;
7891  return 0;
7892}
7893_ACEOF
7894if ac_fn_c_try_run "$LINENO"; then :
7895
7896else
7897  ac_cv_header_stdc=no
7898fi
7899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7900  conftest.$ac_objext conftest.beam conftest.$ac_ext
7901fi
7902
7903fi
7904fi
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7906$as_echo "$ac_cv_header_stdc" >&6; }
7907if test $ac_cv_header_stdc = yes; then
7908
7909$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7910
7911fi
7912
7913for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
7914fcntl.h grp.h \
7915ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \
7916sched.h shadow.h signal.h stropts.h termios.h \
7917utime.h \
7918poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
7919sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
7920sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
7921sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
7922sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
7923sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
7924libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
7925linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
7926sys/endian.h sys/sysmacros.h linux/memfd.h sys/memfd.h sys/mman.h
7927do :
7928  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7929ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7930if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7931  cat >>confdefs.h <<_ACEOF
7932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7933_ACEOF
7934
7935fi
7936
7937done
7938
7939ac_header_dirent=no
7940for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7941  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7943$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7944if eval \${$as_ac_Header+:} false; then :
7945  $as_echo_n "(cached) " >&6
7946else
7947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h.  */
7949#include <sys/types.h>
7950#include <$ac_hdr>
7951
7952int
7953main ()
7954{
7955if ((DIR *) 0)
7956return 0;
7957  ;
7958  return 0;
7959}
7960_ACEOF
7961if ac_fn_c_try_compile "$LINENO"; then :
7962  eval "$as_ac_Header=yes"
7963else
7964  eval "$as_ac_Header=no"
7965fi
7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967fi
7968eval ac_res=\$$as_ac_Header
7969	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7970$as_echo "$ac_res" >&6; }
7971if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7972  cat >>confdefs.h <<_ACEOF
7973#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7974_ACEOF
7975
7976ac_header_dirent=$ac_hdr; break
7977fi
7978
7979done
7980# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7981if test $ac_header_dirent = dirent.h; then
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7983$as_echo_n "checking for library containing opendir... " >&6; }
7984if ${ac_cv_search_opendir+:} false; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  ac_func_search_save_LIBS=$LIBS
7988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h.  */
7990
7991/* Override any GCC internal prototype to avoid an error.
7992   Use char because int might match the return type of a GCC
7993   builtin and then its argument prototype would still apply.  */
7994#ifdef __cplusplus
7995extern "C"
7996#endif
7997char opendir ();
7998int
7999main ()
8000{
8001return opendir ();
8002  ;
8003  return 0;
8004}
8005_ACEOF
8006for ac_lib in '' dir; do
8007  if test -z "$ac_lib"; then
8008    ac_res="none required"
8009  else
8010    ac_res=-l$ac_lib
8011    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8012  fi
8013  if ac_fn_c_try_link "$LINENO"; then :
8014  ac_cv_search_opendir=$ac_res
8015fi
8016rm -f core conftest.err conftest.$ac_objext \
8017    conftest$ac_exeext
8018  if ${ac_cv_search_opendir+:} false; then :
8019  break
8020fi
8021done
8022if ${ac_cv_search_opendir+:} false; then :
8023
8024else
8025  ac_cv_search_opendir=no
8026fi
8027rm conftest.$ac_ext
8028LIBS=$ac_func_search_save_LIBS
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8031$as_echo "$ac_cv_search_opendir" >&6; }
8032ac_res=$ac_cv_search_opendir
8033if test "$ac_res" != no; then :
8034  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8035
8036fi
8037
8038else
8039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8040$as_echo_n "checking for library containing opendir... " >&6; }
8041if ${ac_cv_search_opendir+:} false; then :
8042  $as_echo_n "(cached) " >&6
8043else
8044  ac_func_search_save_LIBS=$LIBS
8045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047
8048/* Override any GCC internal prototype to avoid an error.
8049   Use char because int might match the return type of a GCC
8050   builtin and then its argument prototype would still apply.  */
8051#ifdef __cplusplus
8052extern "C"
8053#endif
8054char opendir ();
8055int
8056main ()
8057{
8058return opendir ();
8059  ;
8060  return 0;
8061}
8062_ACEOF
8063for ac_lib in '' x; do
8064  if test -z "$ac_lib"; then
8065    ac_res="none required"
8066  else
8067    ac_res=-l$ac_lib
8068    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8069  fi
8070  if ac_fn_c_try_link "$LINENO"; then :
8071  ac_cv_search_opendir=$ac_res
8072fi
8073rm -f core conftest.err conftest.$ac_objext \
8074    conftest$ac_exeext
8075  if ${ac_cv_search_opendir+:} false; then :
8076  break
8077fi
8078done
8079if ${ac_cv_search_opendir+:} false; then :
8080
8081else
8082  ac_cv_search_opendir=no
8083fi
8084rm conftest.$ac_ext
8085LIBS=$ac_func_search_save_LIBS
8086fi
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8088$as_echo "$ac_cv_search_opendir" >&6; }
8089ac_res=$ac_cv_search_opendir
8090if test "$ac_res" != no; then :
8091  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8092
8093fi
8094
8095fi
8096
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
8098$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
8099if ${ac_cv_header_sys_types_h_makedev+:} false; then :
8100  $as_echo_n "(cached) " >&6
8101else
8102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103/* end confdefs.h.  */
8104#include <sys/types.h>
8105int
8106main ()
8107{
8108return makedev(0, 0);
8109  ;
8110  return 0;
8111}
8112_ACEOF
8113if ac_fn_c_try_link "$LINENO"; then :
8114  ac_cv_header_sys_types_h_makedev=yes
8115else
8116  ac_cv_header_sys_types_h_makedev=no
8117fi
8118rm -f core conftest.err conftest.$ac_objext \
8119    conftest$ac_exeext conftest.$ac_ext
8120
8121fi
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
8123$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
8124
8125if test $ac_cv_header_sys_types_h_makedev = no; then
8126ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
8127if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
8128
8129$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
8130
8131fi
8132
8133
8134
8135  if test $ac_cv_header_sys_mkdev_h = no; then
8136    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
8137if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
8138
8139$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
8140
8141fi
8142
8143
8144  fi
8145fi
8146
8147
8148# bluetooth/bluetooth.h has been known to not compile with -std=c99.
8149# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
8150SAVE_CFLAGS=$CFLAGS
8151CFLAGS="-std=c99 $CFLAGS"
8152for ac_header in bluetooth/bluetooth.h
8153do :
8154  ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8155if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8156  cat >>confdefs.h <<_ACEOF
8157#define HAVE_BLUETOOTH_BLUETOOTH_H 1
8158_ACEOF
8159
8160fi
8161
8162done
8163
8164CFLAGS=$SAVE_CFLAGS
8165
8166# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
8167for ac_header in net/if.h
8168do :
8169  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
8170#ifdef STDC_HEADERS
8171# include <stdlib.h>
8172# include <stddef.h>
8173#else
8174# ifdef HAVE_STDLIB_H
8175#  include <stdlib.h>
8176# endif
8177#endif
8178#ifdef HAVE_SYS_SOCKET_H
8179# include <sys/socket.h>
8180#endif
8181
8182"
8183if test "x$ac_cv_header_net_if_h" = xyes; then :
8184  cat >>confdefs.h <<_ACEOF
8185#define HAVE_NET_IF_H 1
8186_ACEOF
8187
8188fi
8189
8190done
8191
8192
8193# On Linux, netlink.h requires asm/types.h
8194for ac_header in linux/netlink.h
8195do :
8196  ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
8197#ifdef HAVE_ASM_TYPES_H
8198#include <asm/types.h>
8199#endif
8200#ifdef HAVE_SYS_SOCKET_H
8201#include <sys/socket.h>
8202#endif
8203
8204"
8205if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
8206  cat >>confdefs.h <<_ACEOF
8207#define HAVE_LINUX_NETLINK_H 1
8208_ACEOF
8209
8210fi
8211
8212done
8213
8214
8215# On Linux, qrtr.h requires asm/types.h
8216for ac_header in linux/qrtr.h
8217do :
8218  ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
8219#ifdef HAVE_ASM_TYPES_H
8220#include <asm/types.h>
8221#endif
8222#ifdef HAVE_SYS_SOCKET_H
8223#include <sys/socket.h>
8224#endif
8225
8226"
8227if test "x$ac_cv_header_linux_qrtr_h" = xyes; then :
8228  cat >>confdefs.h <<_ACEOF
8229#define HAVE_LINUX_QRTR_H 1
8230_ACEOF
8231
8232fi
8233
8234done
8235
8236
8237for ac_header in linux/vm_sockets.h
8238do :
8239  ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
8240#ifdef HAVE_SYS_SOCKET_H
8241#include <sys/socket.h>
8242#endif
8243
8244"
8245if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then :
8246  cat >>confdefs.h <<_ACEOF
8247#define HAVE_LINUX_VM_SOCKETS_H 1
8248_ACEOF
8249
8250fi
8251
8252done
8253
8254
8255# On Linux, can.h and can/raw.h require sys/socket.h
8256for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h
8257do :
8258  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8260#ifdef HAVE_SYS_SOCKET_H
8261#include <sys/socket.h>
8262#endif
8263
8264"
8265if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8266  cat >>confdefs.h <<_ACEOF
8267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8268_ACEOF
8269
8270fi
8271
8272done
8273
8274
8275# checks for typedefs
8276was_it_defined=no
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
8278$as_echo_n "checking for clock_t in time.h... " >&6; }
8279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281#include <time.h>
8282
8283_ACEOF
8284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8285  $EGREP "clock_t" >/dev/null 2>&1; then :
8286  was_it_defined=yes
8287else
8288
8289
8290$as_echo "#define clock_t long" >>confdefs.h
8291
8292
8293fi
8294rm -f conftest*
8295
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
8297$as_echo "$was_it_defined" >&6; }
8298
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
8300$as_echo_n "checking for makedev... " >&6; }
8301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h.  */
8303
8304#if defined(MAJOR_IN_MKDEV)
8305#include <sys/mkdev.h>
8306#elif defined(MAJOR_IN_SYSMACROS)
8307#include <sys/sysmacros.h>
8308#else
8309#include <sys/types.h>
8310#endif
8311
8312int
8313main ()
8314{
8315
8316  makedev(0, 0)
8317  ;
8318  return 0;
8319}
8320
8321_ACEOF
8322if ac_fn_c_try_link "$LINENO"; then :
8323  ac_cv_has_makedev=yes
8324else
8325  ac_cv_has_makedev=no
8326fi
8327rm -f core conftest.err conftest.$ac_objext \
8328    conftest$ac_exeext conftest.$ac_ext
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
8330$as_echo "$ac_cv_has_makedev" >&6; }
8331if test "$ac_cv_has_makedev" = "yes"; then
8332
8333$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
8334
8335fi
8336
8337# byte swapping
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
8339$as_echo_n "checking for le64toh... " >&6; }
8340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h.  */
8342
8343#ifdef HAVE_ENDIAN_H
8344#include <endian.h>
8345#elif defined(HAVE_SYS_ENDIAN_H)
8346#include <sys/endian.h>
8347#endif
8348
8349int
8350main ()
8351{
8352
8353   le64toh(1)
8354  ;
8355  return 0;
8356}
8357
8358_ACEOF
8359if ac_fn_c_try_link "$LINENO"; then :
8360  ac_cv_has_le64toh=yes
8361else
8362  ac_cv_has_le64toh=no
8363fi
8364rm -f core conftest.err conftest.$ac_objext \
8365    conftest$ac_exeext conftest.$ac_ext
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5
8367$as_echo "$ac_cv_has_le64toh" >&6; }
8368if test "$ac_cv_has_le64toh" = "yes"; then
8369
8370$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
8371
8372fi
8373
8374use_lfs=yes
8375# Don't use largefile support for GNU/Hurd
8376case $ac_sys_system in GNU*)
8377  use_lfs=no
8378esac
8379
8380if test "$use_lfs" = "yes"; then
8381# Two defines needed to enable largefile support on various platforms
8382# These may affect some typedefs
8383case $ac_sys_system/$ac_sys_release in
8384AIX*)
8385
8386$as_echo "#define _LARGE_FILES 1" >>confdefs.h
8387
8388    ;;
8389esac
8390
8391$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
8392
8393
8394$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8395
8396fi
8397
8398# Add some code to confdefs.h so that the test for off_t works on SCO
8399cat >> confdefs.h <<\EOF
8400#if defined(SCO_DS)
8401#undef _OFF_T
8402#endif
8403EOF
8404
8405# Type availability checks
8406ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8407if test "x$ac_cv_type_mode_t" = xyes; then :
8408
8409else
8410
8411cat >>confdefs.h <<_ACEOF
8412#define mode_t int
8413_ACEOF
8414
8415fi
8416
8417ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8418if test "x$ac_cv_type_off_t" = xyes; then :
8419
8420else
8421
8422cat >>confdefs.h <<_ACEOF
8423#define off_t long int
8424_ACEOF
8425
8426fi
8427
8428ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8429if test "x$ac_cv_type_pid_t" = xyes; then :
8430
8431else
8432
8433cat >>confdefs.h <<_ACEOF
8434#define pid_t int
8435_ACEOF
8436
8437fi
8438
8439
8440cat >>confdefs.h <<_ACEOF
8441#define RETSIGTYPE void
8442_ACEOF
8443
8444ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8445if test "x$ac_cv_type_size_t" = xyes; then :
8446
8447else
8448
8449cat >>confdefs.h <<_ACEOF
8450#define size_t unsigned int
8451_ACEOF
8452
8453fi
8454
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8456$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8457if ${ac_cv_type_uid_t+:} false; then :
8458  $as_echo_n "(cached) " >&6
8459else
8460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462#include <sys/types.h>
8463
8464_ACEOF
8465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8466  $EGREP "uid_t" >/dev/null 2>&1; then :
8467  ac_cv_type_uid_t=yes
8468else
8469  ac_cv_type_uid_t=no
8470fi
8471rm -f conftest*
8472
8473fi
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8475$as_echo "$ac_cv_type_uid_t" >&6; }
8476if test $ac_cv_type_uid_t = no; then
8477
8478$as_echo "#define uid_t int" >>confdefs.h
8479
8480
8481$as_echo "#define gid_t int" >>confdefs.h
8482
8483fi
8484
8485
8486ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8487if test "x$ac_cv_type_ssize_t" = xyes; then :
8488
8489$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
8490
8491fi
8492
8493ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
8494if test "x$ac_cv_type___uint128_t" = xyes; then :
8495
8496$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
8497
8498fi
8499
8500
8501# Sizes of various common basic types
8502# ANSI C requires sizeof(char) == 1, so no need to check it
8503# The cast to long int works around a bug in the HP C Compiler
8504# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8505# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8506# This bug is HP SR number 8606223364.
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8508$as_echo_n "checking size of int... " >&6; }
8509if ${ac_cv_sizeof_int+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
8513
8514else
8515  if test "$ac_cv_type_int" = yes; then
8516     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8518as_fn_error 77 "cannot compute sizeof (int)
8519See \`config.log' for more details" "$LINENO" 5; }
8520   else
8521     ac_cv_sizeof_int=0
8522   fi
8523fi
8524
8525fi
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8527$as_echo "$ac_cv_sizeof_int" >&6; }
8528
8529
8530
8531cat >>confdefs.h <<_ACEOF
8532#define SIZEOF_INT $ac_cv_sizeof_int
8533_ACEOF
8534
8535
8536# The cast to long int works around a bug in the HP C Compiler
8537# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8538# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8539# This bug is HP SR number 8606223364.
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8541$as_echo_n "checking size of long... " >&6; }
8542if ${ac_cv_sizeof_long+:} false; then :
8543  $as_echo_n "(cached) " >&6
8544else
8545  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
8546
8547else
8548  if test "$ac_cv_type_long" = yes; then
8549     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8551as_fn_error 77 "cannot compute sizeof (long)
8552See \`config.log' for more details" "$LINENO" 5; }
8553   else
8554     ac_cv_sizeof_long=0
8555   fi
8556fi
8557
8558fi
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8560$as_echo "$ac_cv_sizeof_long" >&6; }
8561
8562
8563
8564cat >>confdefs.h <<_ACEOF
8565#define SIZEOF_LONG $ac_cv_sizeof_long
8566_ACEOF
8567
8568
8569# The cast to long int works around a bug in the HP C Compiler
8570# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8571# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8572# This bug is HP SR number 8606223364.
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8574$as_echo_n "checking size of long long... " >&6; }
8575if ${ac_cv_sizeof_long_long+:} false; then :
8576  $as_echo_n "(cached) " >&6
8577else
8578  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
8579
8580else
8581  if test "$ac_cv_type_long_long" = yes; then
8582     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8584as_fn_error 77 "cannot compute sizeof (long long)
8585See \`config.log' for more details" "$LINENO" 5; }
8586   else
8587     ac_cv_sizeof_long_long=0
8588   fi
8589fi
8590
8591fi
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8593$as_echo "$ac_cv_sizeof_long_long" >&6; }
8594
8595
8596
8597cat >>confdefs.h <<_ACEOF
8598#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8599_ACEOF
8600
8601
8602# The cast to long int works around a bug in the HP C Compiler
8603# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8604# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8605# This bug is HP SR number 8606223364.
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8607$as_echo_n "checking size of void *... " >&6; }
8608if ${ac_cv_sizeof_void_p+:} false; then :
8609  $as_echo_n "(cached) " >&6
8610else
8611  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
8612
8613else
8614  if test "$ac_cv_type_void_p" = yes; then
8615     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8617as_fn_error 77 "cannot compute sizeof (void *)
8618See \`config.log' for more details" "$LINENO" 5; }
8619   else
8620     ac_cv_sizeof_void_p=0
8621   fi
8622fi
8623
8624fi
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8626$as_echo "$ac_cv_sizeof_void_p" >&6; }
8627
8628
8629
8630cat >>confdefs.h <<_ACEOF
8631#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8632_ACEOF
8633
8634
8635# The cast to long int works around a bug in the HP C Compiler
8636# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8637# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8638# This bug is HP SR number 8606223364.
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8640$as_echo_n "checking size of short... " >&6; }
8641if ${ac_cv_sizeof_short+:} false; then :
8642  $as_echo_n "(cached) " >&6
8643else
8644  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
8645
8646else
8647  if test "$ac_cv_type_short" = yes; then
8648     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8650as_fn_error 77 "cannot compute sizeof (short)
8651See \`config.log' for more details" "$LINENO" 5; }
8652   else
8653     ac_cv_sizeof_short=0
8654   fi
8655fi
8656
8657fi
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8659$as_echo "$ac_cv_sizeof_short" >&6; }
8660
8661
8662
8663cat >>confdefs.h <<_ACEOF
8664#define SIZEOF_SHORT $ac_cv_sizeof_short
8665_ACEOF
8666
8667
8668# The cast to long int works around a bug in the HP C Compiler
8669# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8670# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8671# This bug is HP SR number 8606223364.
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8673$as_echo_n "checking size of float... " >&6; }
8674if ${ac_cv_sizeof_float+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
8678
8679else
8680  if test "$ac_cv_type_float" = yes; then
8681     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8683as_fn_error 77 "cannot compute sizeof (float)
8684See \`config.log' for more details" "$LINENO" 5; }
8685   else
8686     ac_cv_sizeof_float=0
8687   fi
8688fi
8689
8690fi
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8692$as_echo "$ac_cv_sizeof_float" >&6; }
8693
8694
8695
8696cat >>confdefs.h <<_ACEOF
8697#define SIZEOF_FLOAT $ac_cv_sizeof_float
8698_ACEOF
8699
8700
8701# The cast to long int works around a bug in the HP C Compiler
8702# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8703# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8704# This bug is HP SR number 8606223364.
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8706$as_echo_n "checking size of double... " >&6; }
8707if ${ac_cv_sizeof_double+:} false; then :
8708  $as_echo_n "(cached) " >&6
8709else
8710  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
8711
8712else
8713  if test "$ac_cv_type_double" = yes; then
8714     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8716as_fn_error 77 "cannot compute sizeof (double)
8717See \`config.log' for more details" "$LINENO" 5; }
8718   else
8719     ac_cv_sizeof_double=0
8720   fi
8721fi
8722
8723fi
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8725$as_echo "$ac_cv_sizeof_double" >&6; }
8726
8727
8728
8729cat >>confdefs.h <<_ACEOF
8730#define SIZEOF_DOUBLE $ac_cv_sizeof_double
8731_ACEOF
8732
8733
8734# The cast to long int works around a bug in the HP C Compiler
8735# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8736# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8737# This bug is HP SR number 8606223364.
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
8739$as_echo_n "checking size of fpos_t... " >&6; }
8740if ${ac_cv_sizeof_fpos_t+:} false; then :
8741  $as_echo_n "(cached) " >&6
8742else
8743  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then :
8744
8745else
8746  if test "$ac_cv_type_fpos_t" = yes; then
8747     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8749as_fn_error 77 "cannot compute sizeof (fpos_t)
8750See \`config.log' for more details" "$LINENO" 5; }
8751   else
8752     ac_cv_sizeof_fpos_t=0
8753   fi
8754fi
8755
8756fi
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
8758$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
8759
8760
8761
8762cat >>confdefs.h <<_ACEOF
8763#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8764_ACEOF
8765
8766
8767# The cast to long int works around a bug in the HP C Compiler
8768# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8769# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8770# This bug is HP SR number 8606223364.
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8772$as_echo_n "checking size of size_t... " >&6; }
8773if ${ac_cv_sizeof_size_t+:} false; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
8777
8778else
8779  if test "$ac_cv_type_size_t" = yes; then
8780     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8782as_fn_error 77 "cannot compute sizeof (size_t)
8783See \`config.log' for more details" "$LINENO" 5; }
8784   else
8785     ac_cv_sizeof_size_t=0
8786   fi
8787fi
8788
8789fi
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8791$as_echo "$ac_cv_sizeof_size_t" >&6; }
8792
8793
8794
8795cat >>confdefs.h <<_ACEOF
8796#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8797_ACEOF
8798
8799
8800# The cast to long int works around a bug in the HP C Compiler
8801# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8802# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8803# This bug is HP SR number 8606223364.
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
8805$as_echo_n "checking size of pid_t... " >&6; }
8806if ${ac_cv_sizeof_pid_t+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then :
8810
8811else
8812  if test "$ac_cv_type_pid_t" = yes; then
8813     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8815as_fn_error 77 "cannot compute sizeof (pid_t)
8816See \`config.log' for more details" "$LINENO" 5; }
8817   else
8818     ac_cv_sizeof_pid_t=0
8819   fi
8820fi
8821
8822fi
8823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
8824$as_echo "$ac_cv_sizeof_pid_t" >&6; }
8825
8826
8827
8828cat >>confdefs.h <<_ACEOF
8829#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
8830_ACEOF
8831
8832
8833# The cast to long int works around a bug in the HP C Compiler
8834# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8835# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8836# This bug is HP SR number 8606223364.
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8838$as_echo_n "checking size of uintptr_t... " >&6; }
8839if ${ac_cv_sizeof_uintptr_t+:} false; then :
8840  $as_echo_n "(cached) " >&6
8841else
8842  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then :
8843
8844else
8845  if test "$ac_cv_type_uintptr_t" = yes; then
8846     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8848as_fn_error 77 "cannot compute sizeof (uintptr_t)
8849See \`config.log' for more details" "$LINENO" 5; }
8850   else
8851     ac_cv_sizeof_uintptr_t=0
8852   fi
8853fi
8854
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8857$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8858
8859
8860
8861cat >>confdefs.h <<_ACEOF
8862#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8863_ACEOF
8864
8865
8866
8867
8868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
8869$as_echo_n "checking for long double... " >&6; }
8870if ${ac_cv_type_long_double+:} false; then :
8871  $as_echo_n "(cached) " >&6
8872else
8873  if test "$GCC" = yes; then
8874       ac_cv_type_long_double=yes
8875     else
8876       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878/* The Stardent Vistra knows sizeof (long double), but does
8879		 not support it.  */
8880	      long double foo = 0.0L;
8881int
8882main ()
8883{
8884static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8885	      sizeof (double) <= sizeof (long double))];
8886test_array [0] = 0;
8887return test_array [0];
8888
8889  ;
8890  return 0;
8891}
8892_ACEOF
8893if ac_fn_c_try_compile "$LINENO"; then :
8894  ac_cv_type_long_double=yes
8895else
8896  ac_cv_type_long_double=no
8897fi
8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899     fi
8900fi
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
8902$as_echo "$ac_cv_type_long_double" >&6; }
8903  if test $ac_cv_type_long_double = yes; then
8904
8905$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
8906
8907  fi
8908
8909# The cast to long int works around a bug in the HP C Compiler
8910# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8911# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8912# This bug is HP SR number 8606223364.
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8914$as_echo_n "checking size of long double... " >&6; }
8915if ${ac_cv_sizeof_long_double+:} false; then :
8916  $as_echo_n "(cached) " >&6
8917else
8918  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
8919
8920else
8921  if test "$ac_cv_type_long_double" = yes; then
8922     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8924as_fn_error 77 "cannot compute sizeof (long double)
8925See \`config.log' for more details" "$LINENO" 5; }
8926   else
8927     ac_cv_sizeof_long_double=0
8928   fi
8929fi
8930
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8933$as_echo "$ac_cv_sizeof_long_double" >&6; }
8934
8935
8936
8937cat >>confdefs.h <<_ACEOF
8938#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8939_ACEOF
8940
8941
8942
8943# The cast to long int works around a bug in the HP C Compiler
8944# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8945# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8946# This bug is HP SR number 8606223364.
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8948$as_echo_n "checking size of _Bool... " >&6; }
8949if ${ac_cv_sizeof__Bool+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then :
8953
8954else
8955  if test "$ac_cv_type__Bool" = yes; then
8956     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8958as_fn_error 77 "cannot compute sizeof (_Bool)
8959See \`config.log' for more details" "$LINENO" 5; }
8960   else
8961     ac_cv_sizeof__Bool=0
8962   fi
8963fi
8964
8965fi
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8967$as_echo "$ac_cv_sizeof__Bool" >&6; }
8968
8969
8970
8971cat >>confdefs.h <<_ACEOF
8972#define SIZEOF__BOOL $ac_cv_sizeof__Bool
8973_ACEOF
8974
8975
8976
8977# The cast to long int works around a bug in the HP C Compiler
8978# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8979# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8980# This bug is HP SR number 8606223364.
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8982$as_echo_n "checking size of off_t... " >&6; }
8983if ${ac_cv_sizeof_off_t+:} false; then :
8984  $as_echo_n "(cached) " >&6
8985else
8986  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "
8987#ifdef HAVE_SYS_TYPES_H
8988#include <sys/types.h>
8989#endif
8990
8991"; then :
8992
8993else
8994  if test "$ac_cv_type_off_t" = yes; then
8995     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8997as_fn_error 77 "cannot compute sizeof (off_t)
8998See \`config.log' for more details" "$LINENO" 5; }
8999   else
9000     ac_cv_sizeof_off_t=0
9001   fi
9002fi
9003
9004fi
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
9006$as_echo "$ac_cv_sizeof_off_t" >&6; }
9007
9008
9009
9010cat >>confdefs.h <<_ACEOF
9011#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9012_ACEOF
9013
9014
9015
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
9017$as_echo_n "checking whether to enable large file support... " >&6; }
9018if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
9019	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
9020
9021$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
9022
9023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9024$as_echo "yes" >&6; }
9025else
9026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027$as_echo "no" >&6; }
9028fi
9029
9030# The cast to long int works around a bug in the HP C Compiler
9031# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9032# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9033# This bug is HP SR number 8606223364.
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9035$as_echo_n "checking size of time_t... " >&6; }
9036if ${ac_cv_sizeof_time_t+:} false; then :
9037  $as_echo_n "(cached) " >&6
9038else
9039  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
9040#ifdef HAVE_SYS_TYPES_H
9041#include <sys/types.h>
9042#endif
9043#ifdef HAVE_TIME_H
9044#include <time.h>
9045#endif
9046
9047"; then :
9048
9049else
9050  if test "$ac_cv_type_time_t" = yes; then
9051     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9053as_fn_error 77 "cannot compute sizeof (time_t)
9054See \`config.log' for more details" "$LINENO" 5; }
9055   else
9056     ac_cv_sizeof_time_t=0
9057   fi
9058fi
9059
9060fi
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9062$as_echo "$ac_cv_sizeof_time_t" >&6; }
9063
9064
9065
9066cat >>confdefs.h <<_ACEOF
9067#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9068_ACEOF
9069
9070
9071
9072# if have pthread_t then define SIZEOF_PTHREAD_T
9073ac_save_cc="$CC"
9074if test "$ac_cv_kpthread" = "yes"
9075then CC="$CC -Kpthread"
9076elif test "$ac_cv_kthread" = "yes"
9077then CC="$CC -Kthread"
9078elif test "$ac_cv_pthread" = "yes"
9079then CC="$CC -pthread"
9080fi
9081
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
9083$as_echo_n "checking for pthread_t... " >&6; }
9084have_pthread_t=no
9085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087
9088  #include <pthread.h>
9089int
9090main ()
9091{
9092pthread_t x; x = *(pthread_t*)0;
9093  ;
9094  return 0;
9095}
9096
9097_ACEOF
9098if ac_fn_c_try_compile "$LINENO"; then :
9099  have_pthread_t=yes
9100fi
9101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
9103$as_echo "$have_pthread_t" >&6; }
9104if test "$have_pthread_t" = yes ; then
9105  # The cast to long int works around a bug in the HP C Compiler
9106# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9107# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9108# This bug is HP SR number 8606223364.
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
9110$as_echo_n "checking size of pthread_t... " >&6; }
9111if ${ac_cv_sizeof_pthread_t+:} false; then :
9112  $as_echo_n "(cached) " >&6
9113else
9114  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
9115#ifdef HAVE_PTHREAD_H
9116#include <pthread.h>
9117#endif
9118
9119"; then :
9120
9121else
9122  if test "$ac_cv_type_pthread_t" = yes; then
9123     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9125as_fn_error 77 "cannot compute sizeof (pthread_t)
9126See \`config.log' for more details" "$LINENO" 5; }
9127   else
9128     ac_cv_sizeof_pthread_t=0
9129   fi
9130fi
9131
9132fi
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
9134$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
9135
9136
9137
9138cat >>confdefs.h <<_ACEOF
9139#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
9140_ACEOF
9141
9142
9143fi
9144
9145# Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
9146# This checking will be unnecessary after removing deprecated TLS API.
9147# The cast to long int works around a bug in the HP C Compiler
9148# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9149# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9150# This bug is HP SR number 8606223364.
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
9152$as_echo_n "checking size of pthread_key_t... " >&6; }
9153if ${ac_cv_sizeof_pthread_key_t+:} false; then :
9154  $as_echo_n "(cached) " >&6
9155else
9156  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t"        "#include <pthread.h>
9157"; then :
9158
9159else
9160  if test "$ac_cv_type_pthread_key_t" = yes; then
9161     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9163as_fn_error 77 "cannot compute sizeof (pthread_key_t)
9164See \`config.log' for more details" "$LINENO" 5; }
9165   else
9166     ac_cv_sizeof_pthread_key_t=0
9167   fi
9168fi
9169
9170fi
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
9172$as_echo "$ac_cv_sizeof_pthread_key_t" >&6; }
9173
9174
9175
9176cat >>confdefs.h <<_ACEOF
9177#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t
9178_ACEOF
9179
9180
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
9182$as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; }
9183if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
9184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185/* end confdefs.h.  */
9186#include <pthread.h>
9187int
9188main ()
9189{
9190pthread_key_t k; k * 1;
9191  ;
9192  return 0;
9193}
9194_ACEOF
9195if ac_fn_c_try_compile "$LINENO"; then :
9196  ac_pthread_key_t_is_arithmetic_type=yes
9197else
9198  ac_pthread_key_t_is_arithmetic_type=no
9199
9200fi
9201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5
9203$as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; }
9204  if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then
9205
9206$as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
9207
9208  fi
9209else
9210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211$as_echo "no" >&6; }
9212fi
9213CC="$ac_save_cc"
9214
9215
9216case $ac_sys_system/$ac_sys_release in
9217  Darwin/[01567]\..*)
9218    OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
9219    ;;
9220  Darwin/*)
9221    OTHER_LIBTOOL_OPT=""
9222    ;;
9223esac
9224
9225
9226
9227case $ac_sys_system/$ac_sys_release in
9228  Darwin/[01567]\..*)
9229    LIBTOOL_CRUFT="-framework System -lcc_dynamic"
9230    if test "${enable_universalsdk}"; then
9231	    :
9232    else
9233        LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
9234    fi
9235    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9236    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9237  Darwin/*)
9238    gcc_version=`gcc -dumpversion`
9239    if test ${gcc_version} '<' 4.0
9240        then
9241            LIBTOOL_CRUFT="-lcc_dynamic"
9242        else
9243            LIBTOOL_CRUFT=""
9244    fi
9245    if test "$cross_compiling" = yes; then :
9246  ac_osx_32bit=yes
9247else
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250
9251    #include <unistd.h>
9252    int main(int argc, char*argv[])
9253    {
9254      if (sizeof(long) == 4) {
9255    	  return 0;
9256      } else {
9257      	  return 1;
9258      }
9259    }
9260
9261_ACEOF
9262if ac_fn_c_try_run "$LINENO"; then :
9263  ac_osx_32bit=yes
9264else
9265  ac_osx_32bit=no
9266fi
9267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9268  conftest.$ac_objext conftest.beam conftest.$ac_ext
9269fi
9270
9271
9272    if test "${ac_osx_32bit}" = "yes"; then
9273    	case `/usr/bin/arch` in
9274    	i386)
9275    		MACOSX_DEFAULT_ARCH="i386"
9276    		;;
9277    	ppc)
9278    		MACOSX_DEFAULT_ARCH="ppc"
9279    		;;
9280    	*)
9281    		as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5
9282    		;;
9283    	esac
9284    else
9285    	case `/usr/bin/arch` in
9286    	i386)
9287    		MACOSX_DEFAULT_ARCH="x86_64"
9288    		;;
9289    	ppc)
9290    		MACOSX_DEFAULT_ARCH="ppc64"
9291		;;
9292    	arm64)
9293    		MACOSX_DEFAULT_ARCH="arm64"
9294    		;;
9295    	*)
9296    		as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5
9297    		;;
9298    	esac
9299
9300    fi
9301
9302    LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
9303    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9304    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9305esac
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
9307$as_echo_n "checking for --enable-framework... " >&6; }
9308if test "$enable_framework"
9309then
9310	BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
9311	# -F. is needed to allow linking to the framework while
9312	# in the build location.
9313
9314$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
9315
9316	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9317$as_echo "yes" >&6; }
9318	if test $enable_shared = "yes"
9319	then
9320		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
9321	fi
9322else
9323	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324$as_echo "no" >&6; }
9325fi
9326
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
9328$as_echo_n "checking for dyld... " >&6; }
9329case $ac_sys_system/$ac_sys_release in
9330  Darwin/*)
9331
9332$as_echo "#define WITH_DYLD 1" >>confdefs.h
9333
9334  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
9335$as_echo "always on for Darwin" >&6; }
9336  	;;
9337  *)
9338	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339$as_echo "no" >&6; }
9340	;;
9341esac
9342
9343# Set info about shared libraries.
9344
9345
9346
9347
9348
9349
9350
9351# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
9352# -- usually .so, .sl on HP-UX, .dll on Cygwin
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
9354$as_echo_n "checking the extension of shared libraries... " >&6; }
9355if test -z "$SHLIB_SUFFIX"; then
9356	case $ac_sys_system in
9357	hp*|HP*)
9358		case `uname -m` in
9359			ia64) SHLIB_SUFFIX=.so;;
9360	  		*)    SHLIB_SUFFIX=.sl;;
9361		esac
9362		;;
9363	CYGWIN*)   SHLIB_SUFFIX=.dll;;
9364	*)	   SHLIB_SUFFIX=.so;;
9365	esac
9366fi
9367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
9368$as_echo "$SHLIB_SUFFIX" >&6; }
9369
9370# LDSHARED is the ld *command* used to create shared library
9371# -- "cc -G" on SunOS 5.x.
9372# (Shared libraries in this instance are shared modules to be loaded into
9373# Python, as opposed to building Python itself as a shared library.)
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
9375$as_echo_n "checking LDSHARED... " >&6; }
9376if test -z "$LDSHARED"
9377then
9378	case $ac_sys_system/$ac_sys_release in
9379	AIX*)
9380		BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9381		LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
9382		;;
9383	SunOS/5*)
9384		if test "$GCC" = "yes" ; then
9385			LDSHARED='$(CC) -shared'
9386			LDCXXSHARED='$(CXX) -shared'
9387		else
9388			LDSHARED='$(CC) -G'
9389			LDCXXSHARED='$(CXX) -G'
9390		fi ;;
9391	hp*|HP*)
9392		if test "$GCC" = "yes" ; then
9393			LDSHARED='$(CC) -shared'
9394			LDCXXSHARED='$(CXX) -shared'
9395		else
9396			LDSHARED='$(CC) -b'
9397			LDCXXSHARED='$(CXX) -b'
9398		fi ;;
9399	Darwin/1.3*)
9400		LDSHARED='$(CC) -bundle'
9401		LDCXXSHARED='$(CXX) -bundle'
9402		if test "$enable_framework" ; then
9403			# Link against the framework. All externals should be defined.
9404			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9405			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9406			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9407		else
9408			# No framework. Ignore undefined symbols, assuming they come from Python
9409			LDSHARED="$LDSHARED -undefined suppress"
9410			LDCXXSHARED="$LDCXXSHARED -undefined suppress"
9411		fi ;;
9412	Darwin/1.4*|Darwin/5.*|Darwin/6.*)
9413		LDSHARED='$(CC) -bundle'
9414		LDCXXSHARED='$(CXX) -bundle'
9415		if test "$enable_framework" ; then
9416			# Link against the framework. All externals should be defined.
9417			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9418			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9419			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9420		else
9421			# No framework, use the Python app as bundle-loader
9422			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9423			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9424			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9425		fi ;;
9426	Darwin/*)
9427		# Use -undefined dynamic_lookup whenever possible (10.3 and later).
9428		# This allows an extension to be used in any Python
9429
9430		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9431				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9432		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9433				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9434		if test ${dep_target_major} -eq 10 && \
9435		   test ${dep_target_minor} -le 2
9436		then
9437			# building for OS X 10.0 through 10.2
9438			LDSHARED='$(CC) -bundle'
9439			LDCXXSHARED='$(CXX) -bundle'
9440			if test "$enable_framework" ; then
9441				# Link against the framework. All externals should be defined.
9442				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9443				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9444				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9445			else
9446				# No framework, use the Python app as bundle-loader
9447				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9448				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9449				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9450			fi
9451		else
9452			# building for OS X 10.3 and later
9453			LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
9454			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
9455			BLDSHARED="$LDSHARED"
9456		fi
9457		;;
9458	Linux*|GNU*|QNX*|VxWorks*)
9459		LDSHARED='$(CC) -shared'
9460		LDCXXSHARED='$(CXX) -shared';;
9461	FreeBSD*)
9462		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9463		then
9464			LDSHARED='$(CC) -shared'
9465			LDCXXSHARED='$(CXX) -shared'
9466		else
9467			LDSHARED="ld -Bshareable"
9468		fi;;
9469	OpenBSD*)
9470		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9471		then
9472				LDSHARED='$(CC) -shared $(CCSHARED)'
9473				LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
9474		else
9475				case `uname -r` in
9476				[01].* | 2.[0-7] | 2.[0-7].*)
9477				   LDSHARED="ld -Bshareable ${LDFLAGS}"
9478				   ;;
9479				*)
9480				   LDSHARED='$(CC) -shared $(CCSHARED)'
9481				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
9482				   ;;
9483				esac
9484		fi;;
9485	NetBSD*|DragonFly*)
9486		LDSHARED='$(CC) -shared'
9487		LDCXXSHARED='$(CXX) -shared';;
9488	OpenUNIX*|UnixWare*)
9489		if test "$GCC" = "yes" ; then
9490			LDSHARED='$(CC) -shared'
9491			LDCXXSHARED='$(CXX) -shared'
9492		else
9493			LDSHARED='$(CC) -G'
9494			LDCXXSHARED='$(CXX) -G'
9495		fi;;
9496	SCO_SV*)
9497		LDSHARED='$(CC) -Wl,-G,-Bexport'
9498		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
9499	CYGWIN*)
9500		LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
9501		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
9502	*)	LDSHARED="ld";;
9503	esac
9504fi
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
9506$as_echo "$LDSHARED" >&6; }
9507LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
9508BLDSHARED=${BLDSHARED-$LDSHARED}
9509# CCSHARED are the C *flags* used to create objects to go into a shared
9510# library (module) -- this is only needed for a few systems
9511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
9512$as_echo_n "checking CCSHARED... " >&6; }
9513if test -z "$CCSHARED"
9514then
9515	case $ac_sys_system/$ac_sys_release in
9516	SunOS*) if test "$GCC" = yes;
9517		then CCSHARED="-fPIC";
9518		elif test `uname -p` = sparc;
9519		then CCSHARED="-xcode=pic32";
9520		else CCSHARED="-Kpic";
9521		fi;;
9522	hp*|HP*) if test "$GCC" = yes;
9523		 then CCSHARED="-fPIC";
9524		 else CCSHARED="+z";
9525		 fi;;
9526	Linux-android*) ;;
9527	Linux*|GNU*) CCSHARED="-fPIC";;
9528	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
9529	OpenUNIX*|UnixWare*)
9530		if test "$GCC" = "yes"
9531		then CCSHARED="-fPIC"
9532		else CCSHARED="-KPIC"
9533		fi;;
9534	SCO_SV*)
9535		if test "$GCC" = "yes"
9536		then CCSHARED="-fPIC"
9537		else CCSHARED="-Kpic -belf"
9538		fi;;
9539	VxWorks*)
9540		CCSHARED="-fpic -D__SO_PICABILINUX__  -ftls-model=global-dynamic"
9541	esac
9542fi
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
9544$as_echo "$CCSHARED" >&6; }
9545# LINKFORSHARED are the flags passed to the $(CC) command that links
9546# the python executable -- this is only needed for a few systems
9547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
9548$as_echo_n "checking LINKFORSHARED... " >&6; }
9549if test -z "$LINKFORSHARED"
9550then
9551	case $ac_sys_system/$ac_sys_release in
9552	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
9553	hp*|HP*)
9554	    LINKFORSHARED="-Wl,-E -Wl,+s";;
9555#	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9556	Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
9557	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
9558	# -u libsys_s pulls in all symbols in libsys
9559	Darwin/*)
9560		LINKFORSHARED="$extra_undefs -framework CoreFoundation"
9561
9562		# Issue #18075: the default maximum stack size (8MBytes) is too
9563		# small for the default recursion limit. Increase the stack size
9564		# to ensure that tests don't crash
9565		# Note: This matches the value of THREAD_STACK_SIZE in
9566		# thread_pthread.h
9567		LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
9568
9569		if test "$enable_framework"
9570		then
9571			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9572		fi
9573		LINKFORSHARED="$LINKFORSHARED";;
9574	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
9575	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
9576	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
9577	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
9578		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9579		then
9580			LINKFORSHARED="-Wl,--export-dynamic"
9581		fi;;
9582	SunOS/5*) case $CC in
9583		  *gcc*)
9584		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
9585		    then
9586			LINKFORSHARED="-Xlinker --export-dynamic"
9587		    fi;;
9588		  esac;;
9589	CYGWIN*)
9590		if test $enable_shared = "no"
9591		then
9592			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
9593		fi;;
9594	QNX*)
9595		# -Wl,-E causes the symbols to be added to the dynamic
9596		# symbol table so that they can be found when a module
9597		# is loaded.  -N 2048K causes the stack size to be set
9598		# to 2048 kilobytes so that the stack doesn't overflow
9599		# when running test_compile.py.
9600		LINKFORSHARED='-Wl,-E -N 2048K';;
9601	VxWorks*)
9602		LINKFORSHARED='--export-dynamic';;
9603	esac
9604fi
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
9606$as_echo "$LINKFORSHARED" >&6; }
9607
9608
9609
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
9611$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
9612if test ! "$LIBRARY" = "$LDLIBRARY"
9613then
9614	case $ac_sys_system in
9615	CYGWIN*)
9616		# Cygwin needs CCSHARED when building extension DLLs
9617		# but not when building the interpreter DLL.
9618		CFLAGSFORSHARED='';;
9619	*)
9620		CFLAGSFORSHARED='$(CCSHARED)'
9621	esac
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
9624$as_echo "$CFLAGSFORSHARED" >&6; }
9625
9626# SHLIBS are libraries (except -lc and -lm) to link to the python shared
9627# library (with --enable-shared).
9628# For platforms on which shared libraries are not allowed to have unresolved
9629# symbols, this must be set to $(LIBS) (expanded by make). We do this even
9630# if it is not required, since it creates a dependency of the shared library
9631# to LIBS. This, in turn, means that applications linking the shared libpython
9632# don't need to link LIBS explicitly. The default should be only changed
9633# on systems where this approach causes problems.
9634
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
9636$as_echo_n "checking SHLIBS... " >&6; }
9637case "$ac_sys_system" in
9638	*)
9639		SHLIBS='$(LIBS)';;
9640esac
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
9642$as_echo "$SHLIBS" >&6; }
9643
9644
9645# checks for libraries
9646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
9647$as_echo_n "checking for sendfile in -lsendfile... " >&6; }
9648if ${ac_cv_lib_sendfile_sendfile+:} false; then :
9649  $as_echo_n "(cached) " >&6
9650else
9651  ac_check_lib_save_LIBS=$LIBS
9652LIBS="-lsendfile  $LIBS"
9653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h.  */
9655
9656/* Override any GCC internal prototype to avoid an error.
9657   Use char because int might match the return type of a GCC
9658   builtin and then its argument prototype would still apply.  */
9659#ifdef __cplusplus
9660extern "C"
9661#endif
9662char sendfile ();
9663int
9664main ()
9665{
9666return sendfile ();
9667  ;
9668  return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_link "$LINENO"; then :
9672  ac_cv_lib_sendfile_sendfile=yes
9673else
9674  ac_cv_lib_sendfile_sendfile=no
9675fi
9676rm -f core conftest.err conftest.$ac_objext \
9677    conftest$ac_exeext conftest.$ac_ext
9678LIBS=$ac_check_lib_save_LIBS
9679fi
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
9681$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
9682if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
9683  cat >>confdefs.h <<_ACEOF
9684#define HAVE_LIBSENDFILE 1
9685_ACEOF
9686
9687  LIBS="-lsendfile $LIBS"
9688
9689fi
9690
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9692$as_echo_n "checking for dlopen in -ldl... " >&6; }
9693if ${ac_cv_lib_dl_dlopen+:} false; then :
9694  $as_echo_n "(cached) " >&6
9695else
9696  ac_check_lib_save_LIBS=$LIBS
9697LIBS="-ldl  $LIBS"
9698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699/* end confdefs.h.  */
9700
9701/* Override any GCC internal prototype to avoid an error.
9702   Use char because int might match the return type of a GCC
9703   builtin and then its argument prototype would still apply.  */
9704#ifdef __cplusplus
9705extern "C"
9706#endif
9707char dlopen ();
9708int
9709main ()
9710{
9711return dlopen ();
9712  ;
9713  return 0;
9714}
9715_ACEOF
9716if ac_fn_c_try_link "$LINENO"; then :
9717  ac_cv_lib_dl_dlopen=yes
9718else
9719  ac_cv_lib_dl_dlopen=no
9720fi
9721rm -f core conftest.err conftest.$ac_objext \
9722    conftest$ac_exeext conftest.$ac_ext
9723LIBS=$ac_check_lib_save_LIBS
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9726$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9727if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9728  cat >>confdefs.h <<_ACEOF
9729#define HAVE_LIBDL 1
9730_ACEOF
9731
9732  LIBS="-ldl $LIBS"
9733
9734fi
9735	# Dynamic linking for SunOS/Solaris and SYSV
9736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9737$as_echo_n "checking for shl_load in -ldld... " >&6; }
9738if ${ac_cv_lib_dld_shl_load+:} false; then :
9739  $as_echo_n "(cached) " >&6
9740else
9741  ac_check_lib_save_LIBS=$LIBS
9742LIBS="-ldld  $LIBS"
9743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h.  */
9745
9746/* Override any GCC internal prototype to avoid an error.
9747   Use char because int might match the return type of a GCC
9748   builtin and then its argument prototype would still apply.  */
9749#ifdef __cplusplus
9750extern "C"
9751#endif
9752char shl_load ();
9753int
9754main ()
9755{
9756return shl_load ();
9757  ;
9758  return 0;
9759}
9760_ACEOF
9761if ac_fn_c_try_link "$LINENO"; then :
9762  ac_cv_lib_dld_shl_load=yes
9763else
9764  ac_cv_lib_dld_shl_load=no
9765fi
9766rm -f core conftest.err conftest.$ac_objext \
9767    conftest$ac_exeext conftest.$ac_ext
9768LIBS=$ac_check_lib_save_LIBS
9769fi
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9771$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9772if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9773  cat >>confdefs.h <<_ACEOF
9774#define HAVE_LIBDLD 1
9775_ACEOF
9776
9777  LIBS="-ldld $LIBS"
9778
9779fi
9780	# Dynamic linking for HP-UX
9781
9782# checks for uuid.h location
9783for ac_header in uuid/uuid.h uuid.h
9784do :
9785  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9786ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9787if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9788  cat >>confdefs.h <<_ACEOF
9789#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9790_ACEOF
9791
9792fi
9793
9794done
9795
9796
9797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5
9798$as_echo_n "checking for uuid_generate_time_safe... " >&6; }
9799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h.  */
9801#include <uuid/uuid.h>
9802int
9803main ()
9804{
9805
9806#ifndef uuid_generate_time_safe
9807void *x = uuid_generate_time_safe
9808#endif
9809
9810  ;
9811  return 0;
9812}
9813_ACEOF
9814if ac_fn_c_try_compile "$LINENO"; then :
9815
9816$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
9817
9818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9819$as_echo "yes" >&6; }
9820else
9821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822$as_echo "no" >&6; }
9823
9824fi
9825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9826
9827# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007)
9828# FreeBSD and OpenBSD provides support as well
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5
9830$as_echo_n "checking for uuid_create... " >&6; }
9831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833#include <uuid.h>
9834int
9835main ()
9836{
9837
9838#ifndef uuid_create
9839void *x = uuid_create
9840#endif
9841
9842  ;
9843  return 0;
9844}
9845_ACEOF
9846if ac_fn_c_try_compile "$LINENO"; then :
9847
9848$as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h
9849
9850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9851$as_echo "yes" >&6; }
9852else
9853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854$as_echo "no" >&6; }
9855
9856fi
9857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858
9859# Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet
9860# stream in big-endian byte-order
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5
9862$as_echo_n "checking for uuid_enc_be... " >&6; }
9863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h.  */
9865#include <uuid.h>
9866int
9867main ()
9868{
9869
9870#ifndef uuid_enc_be
9871void *x = uuid_enc_be
9872#endif
9873
9874  ;
9875  return 0;
9876}
9877_ACEOF
9878if ac_fn_c_try_compile "$LINENO"; then :
9879
9880$as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h
9881
9882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9883$as_echo "yes" >&6; }
9884else
9885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886$as_echo "no" >&6; }
9887
9888fi
9889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890
9891# 'Real Time' functions on Solaris
9892# posix4 on Solaris 2.6
9893# pthread (first!) on Linux
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
9895$as_echo_n "checking for library containing sem_init... " >&6; }
9896if ${ac_cv_search_sem_init+:} false; then :
9897  $as_echo_n "(cached) " >&6
9898else
9899  ac_func_search_save_LIBS=$LIBS
9900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901/* end confdefs.h.  */
9902
9903/* Override any GCC internal prototype to avoid an error.
9904   Use char because int might match the return type of a GCC
9905   builtin and then its argument prototype would still apply.  */
9906#ifdef __cplusplus
9907extern "C"
9908#endif
9909char sem_init ();
9910int
9911main ()
9912{
9913return sem_init ();
9914  ;
9915  return 0;
9916}
9917_ACEOF
9918for ac_lib in '' pthread rt posix4; do
9919  if test -z "$ac_lib"; then
9920    ac_res="none required"
9921  else
9922    ac_res=-l$ac_lib
9923    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9924  fi
9925  if ac_fn_c_try_link "$LINENO"; then :
9926  ac_cv_search_sem_init=$ac_res
9927fi
9928rm -f core conftest.err conftest.$ac_objext \
9929    conftest$ac_exeext
9930  if ${ac_cv_search_sem_init+:} false; then :
9931  break
9932fi
9933done
9934if ${ac_cv_search_sem_init+:} false; then :
9935
9936else
9937  ac_cv_search_sem_init=no
9938fi
9939rm conftest.$ac_ext
9940LIBS=$ac_func_search_save_LIBS
9941fi
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
9943$as_echo "$ac_cv_search_sem_init" >&6; }
9944ac_res=$ac_cv_search_sem_init
9945if test "$ac_res" != no; then :
9946  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9947
9948fi
9949
9950
9951# check if we need libintl for locale functions
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
9953$as_echo_n "checking for textdomain in -lintl... " >&6; }
9954if ${ac_cv_lib_intl_textdomain+:} false; then :
9955  $as_echo_n "(cached) " >&6
9956else
9957  ac_check_lib_save_LIBS=$LIBS
9958LIBS="-lintl  $LIBS"
9959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960/* end confdefs.h.  */
9961
9962/* Override any GCC internal prototype to avoid an error.
9963   Use char because int might match the return type of a GCC
9964   builtin and then its argument prototype would still apply.  */
9965#ifdef __cplusplus
9966extern "C"
9967#endif
9968char textdomain ();
9969int
9970main ()
9971{
9972return textdomain ();
9973  ;
9974  return 0;
9975}
9976_ACEOF
9977if ac_fn_c_try_link "$LINENO"; then :
9978  ac_cv_lib_intl_textdomain=yes
9979else
9980  ac_cv_lib_intl_textdomain=no
9981fi
9982rm -f core conftest.err conftest.$ac_objext \
9983    conftest$ac_exeext conftest.$ac_ext
9984LIBS=$ac_check_lib_save_LIBS
9985fi
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
9987$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
9988if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
9989
9990$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
9991
9992        LIBS="-lintl $LIBS"
9993fi
9994
9995
9996# checks for system dependent C++ extensions support
9997case "$ac_sys_system" in
9998	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9999$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
10000		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001/* end confdefs.h.  */
10002
10003		  #include <load.h>
10004int
10005main ()
10006{
10007loadAndInit("", 0, "")
10008  ;
10009  return 0;
10010}
10011
10012_ACEOF
10013if ac_fn_c_try_link "$LINENO"; then :
10014
10015
10016$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
10017
10018		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10019$as_echo "yes" >&6; }
10020
10021else
10022
10023		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024$as_echo "no" >&6; }
10025
10026fi
10027rm -f core conftest.err conftest.$ac_objext \
10028    conftest$ac_exeext conftest.$ac_ext;;
10029	*) ;;
10030esac
10031
10032# check for systems that require aligned memory access
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
10034$as_echo_n "checking aligned memory access is required... " >&6; }
10035if ${ac_cv_aligned_required+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  if test "$cross_compiling" = yes; then :
10039  ac_cv_aligned_required=yes
10040else
10041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042/* end confdefs.h.  */
10043
10044int main()
10045{
10046    char s[16];
10047    int i, *p1, *p2;
10048    for (i=0; i < 16; i++)
10049        s[i] = i;
10050    p1 = (int*)(s+1);
10051    p2 = (int*)(s+2);
10052    if (*p1 == *p2)
10053        return 1;
10054    return 0;
10055}
10056_ACEOF
10057if ac_fn_c_try_run "$LINENO"; then :
10058  ac_cv_aligned_required=no
10059else
10060  ac_cv_aligned_required=yes
10061fi
10062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10063  conftest.$ac_objext conftest.beam conftest.$ac_ext
10064fi
10065
10066
10067fi
10068
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
10070$as_echo "$ac_cv_aligned_required" >&6; }
10071if test "$ac_cv_aligned_required" = yes ; then
10072
10073$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
10074
10075fi
10076
10077# str, bytes and memoryview hash algorithm
10078
10079
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
10081$as_echo_n "checking for --with-hash-algorithm... " >&6; }
10082
10083# Check whether --with-hash_algorithm was given.
10084if test "${with_hash_algorithm+set}" = set; then :
10085  withval=$with_hash_algorithm;
10086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10087$as_echo "$withval" >&6; }
10088case "$withval" in
10089    siphash24)
10090        $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h
10091
10092        ;;
10093    fnv)
10094        $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h
10095
10096        ;;
10097    *)
10098        as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
10099        ;;
10100esac
10101
10102else
10103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
10104$as_echo "default" >&6; }
10105fi
10106
10107
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
10109$as_echo_n "checking for --with-address-sanitizer... " >&6; }
10110
10111# Check whether --with-address_sanitizer was given.
10112if test "${with_address_sanitizer+set}" = set; then :
10113  withval=$with_address_sanitizer;
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10115$as_echo "$withval" >&6; }
10116BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
10117LDFLAGS="-fsanitize=address $LDFLAGS"
10118# ASan works by controlling memory allocation, our own malloc interferes.
10119with_pymalloc="no"
10120
10121else
10122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123$as_echo "no" >&6; }
10124fi
10125
10126
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
10128$as_echo_n "checking for --with-memory-sanitizer... " >&6; }
10129
10130# Check whether --with-memory_sanitizer was given.
10131if test "${with_memory_sanitizer+set}" = set; then :
10132  withval=$with_memory_sanitizer;
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10134$as_echo "$withval" >&6; }
10135BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
10136LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
10137# MSan works by controlling memory allocation, our own malloc interferes.
10138with_pymalloc="no"
10139
10140else
10141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142$as_echo "no" >&6; }
10143fi
10144
10145
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
10147$as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; }
10148
10149# Check whether --with-undefined_behavior_sanitizer was given.
10150if test "${with_undefined_behavior_sanitizer+set}" = set; then :
10151  withval=$with_undefined_behavior_sanitizer;
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10153$as_echo "$withval" >&6; }
10154BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
10155LDFLAGS="-fsanitize=undefined $LDFLAGS"
10156
10157else
10158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159$as_echo "no" >&6; }
10160fi
10161
10162
10163# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
10165$as_echo_n "checking for t_open in -lnsl... " >&6; }
10166if ${ac_cv_lib_nsl_t_open+:} false; then :
10167  $as_echo_n "(cached) " >&6
10168else
10169  ac_check_lib_save_LIBS=$LIBS
10170LIBS="-lnsl  $LIBS"
10171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172/* end confdefs.h.  */
10173
10174/* Override any GCC internal prototype to avoid an error.
10175   Use char because int might match the return type of a GCC
10176   builtin and then its argument prototype would still apply.  */
10177#ifdef __cplusplus
10178extern "C"
10179#endif
10180char t_open ();
10181int
10182main ()
10183{
10184return t_open ();
10185  ;
10186  return 0;
10187}
10188_ACEOF
10189if ac_fn_c_try_link "$LINENO"; then :
10190  ac_cv_lib_nsl_t_open=yes
10191else
10192  ac_cv_lib_nsl_t_open=no
10193fi
10194rm -f core conftest.err conftest.$ac_objext \
10195    conftest$ac_exeext conftest.$ac_ext
10196LIBS=$ac_check_lib_save_LIBS
10197fi
10198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
10199$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
10200if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
10201  LIBS="-lnsl $LIBS"
10202fi
10203 # SVR4
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10205$as_echo_n "checking for socket in -lsocket... " >&6; }
10206if ${ac_cv_lib_socket_socket+:} false; then :
10207  $as_echo_n "(cached) " >&6
10208else
10209  ac_check_lib_save_LIBS=$LIBS
10210LIBS="-lsocket $LIBS $LIBS"
10211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212/* end confdefs.h.  */
10213
10214/* Override any GCC internal prototype to avoid an error.
10215   Use char because int might match the return type of a GCC
10216   builtin and then its argument prototype would still apply.  */
10217#ifdef __cplusplus
10218extern "C"
10219#endif
10220char socket ();
10221int
10222main ()
10223{
10224return socket ();
10225  ;
10226  return 0;
10227}
10228_ACEOF
10229if ac_fn_c_try_link "$LINENO"; then :
10230  ac_cv_lib_socket_socket=yes
10231else
10232  ac_cv_lib_socket_socket=no
10233fi
10234rm -f core conftest.err conftest.$ac_objext \
10235    conftest$ac_exeext conftest.$ac_ext
10236LIBS=$ac_check_lib_save_LIBS
10237fi
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10239$as_echo "$ac_cv_lib_socket_socket" >&6; }
10240if test "x$ac_cv_lib_socket_socket" = xyes; then :
10241  LIBS="-lsocket $LIBS"
10242fi
10243 # SVR4 sockets
10244
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
10246$as_echo_n "checking for --with-libs... " >&6; }
10247
10248# Check whether --with-libs was given.
10249if test "${with_libs+set}" = set; then :
10250  withval=$with_libs;
10251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10252$as_echo "$withval" >&6; }
10253LIBS="$withval $LIBS"
10254
10255else
10256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257$as_echo "no" >&6; }
10258fi
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10269	if test -n "$ac_tool_prefix"; then
10270  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10271set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10273$as_echo_n "checking for $ac_word... " >&6; }
10274if ${ac_cv_path_PKG_CONFIG+:} false; then :
10275  $as_echo_n "(cached) " >&6
10276else
10277  case $PKG_CONFIG in
10278  [\\/]* | ?:[\\/]*)
10279  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10280  ;;
10281  *)
10282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285  IFS=$as_save_IFS
10286  test -z "$as_dir" && as_dir=.
10287    for ac_exec_ext in '' $ac_executable_extensions; do
10288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10289    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291    break 2
10292  fi
10293done
10294  done
10295IFS=$as_save_IFS
10296
10297  ;;
10298esac
10299fi
10300PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10301if test -n "$PKG_CONFIG"; then
10302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10303$as_echo "$PKG_CONFIG" >&6; }
10304else
10305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306$as_echo "no" >&6; }
10307fi
10308
10309
10310fi
10311if test -z "$ac_cv_path_PKG_CONFIG"; then
10312  ac_pt_PKG_CONFIG=$PKG_CONFIG
10313  # Extract the first word of "pkg-config", so it can be a program name with args.
10314set dummy pkg-config; ac_word=$2
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316$as_echo_n "checking for $ac_word... " >&6; }
10317if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10318  $as_echo_n "(cached) " >&6
10319else
10320  case $ac_pt_PKG_CONFIG in
10321  [\\/]* | ?:[\\/]*)
10322  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10323  ;;
10324  *)
10325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326for as_dir in $PATH
10327do
10328  IFS=$as_save_IFS
10329  test -z "$as_dir" && as_dir=.
10330    for ac_exec_ext in '' $ac_executable_extensions; do
10331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10332    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334    break 2
10335  fi
10336done
10337  done
10338IFS=$as_save_IFS
10339
10340  ;;
10341esac
10342fi
10343ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10344if test -n "$ac_pt_PKG_CONFIG"; then
10345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10346$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10347else
10348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349$as_echo "no" >&6; }
10350fi
10351
10352  if test "x$ac_pt_PKG_CONFIG" = x; then
10353    PKG_CONFIG=""
10354  else
10355    case $cross_compiling:$ac_tool_warned in
10356yes:)
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10359ac_tool_warned=yes ;;
10360esac
10361    PKG_CONFIG=$ac_pt_PKG_CONFIG
10362  fi
10363else
10364  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10365fi
10366
10367fi
10368if test -n "$PKG_CONFIG"; then
10369	_pkg_min_version=0.9.0
10370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10371$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10372	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10374$as_echo "yes" >&6; }
10375	else
10376		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377$as_echo "no" >&6; }
10378		PKG_CONFIG=""
10379	fi
10380fi
10381
10382# Check for use of the system expat library
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
10384$as_echo_n "checking for --with-system-expat... " >&6; }
10385
10386# Check whether --with-system_expat was given.
10387if test "${with_system_expat+set}" = set; then :
10388  withval=$with_system_expat;
10389else
10390  with_system_expat="no"
10391fi
10392
10393
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
10395$as_echo "$with_system_expat" >&6; }
10396
10397# Check for use of the system libffi library
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
10399$as_echo_n "checking for --with-system-ffi... " >&6; }
10400
10401# Check whether --with-system_ffi was given.
10402if test "${with_system_ffi+set}" = set; then :
10403  withval=$with_system_ffi;
10404fi
10405
10406
10407if test "$ac_sys_system" = "Darwin"
10408then
10409    case "$with_system_ffi" in
10410        "")
10411            with_system_ffi="no"
10412            ;;
10413        yes|no)
10414            ;;
10415        *)
10416            as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5
10417            ;;
10418    esac
10419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
10420$as_echo "$with_system_ffi" >&6; }
10421else
10422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10423$as_echo "yes" >&6; }
10424    if test "$with_system_ffi" != ""
10425    then
10426        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5
10427$as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;}
10428    fi
10429    with_system_ffi="yes"
10430fi
10431
10432if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
10433    LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
10434else
10435    LIBFFI_INCLUDEDIR=""
10436fi
10437
10438
10439# Check for use of the system libmpdec library
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
10441$as_echo_n "checking for --with-system-libmpdec... " >&6; }
10442
10443# Check whether --with-system_libmpdec was given.
10444if test "${with_system_libmpdec+set}" = set; then :
10445  withval=$with_system_libmpdec;
10446else
10447  with_system_libmpdec="no"
10448fi
10449
10450
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
10452$as_echo "$with_system_libmpdec" >&6; }
10453
10454# Check whether _decimal should use a coroutine-local or thread-local context
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
10456$as_echo_n "checking for --with-decimal-contextvar... " >&6; }
10457
10458# Check whether --with-decimal_contextvar was given.
10459if test "${with_decimal_contextvar+set}" = set; then :
10460  withval=$with_decimal_contextvar;
10461else
10462  with_decimal_contextvar="yes"
10463fi
10464
10465
10466if test "$with_decimal_contextvar" != "no"
10467then
10468
10469$as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
10470
10471fi
10472
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
10474$as_echo "$with_decimal_contextvar" >&6; }
10475
10476# Check for support for loadable sqlite extensions
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
10478$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; }
10479# Check whether --enable-loadable-sqlite-extensions was given.
10480if test "${enable_loadable_sqlite_extensions+set}" = set; then :
10481  enableval=$enable_loadable_sqlite_extensions;
10482else
10483  enable_loadable_sqlite_extensions="no"
10484fi
10485
10486
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5
10488$as_echo "$enable_loadable_sqlite_extensions" >&6; }
10489
10490# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
10491
10492
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
10494$as_echo_n "checking for --with-tcltk-includes... " >&6; }
10495
10496# Check whether --with-tcltk-includes was given.
10497if test "${with_tcltk_includes+set}" = set; then :
10498  withval=$with_tcltk_includes;
10499else
10500  with_tcltk_includes="default"
10501fi
10502
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
10504$as_echo "$with_tcltk_includes" >&6; }
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
10506$as_echo_n "checking for --with-tcltk-libs... " >&6; }
10507
10508# Check whether --with-tcltk-libs was given.
10509if test "${with_tcltk_libs+set}" = set; then :
10510  withval=$with_tcltk_libs;
10511else
10512  with_tcltk_libs="default"
10513fi
10514
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
10516$as_echo "$with_tcltk_libs" >&6; }
10517if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
10518then
10519  if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
10520  then
10521    as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
10522  fi
10523  TCLTK_INCLUDES=""
10524  TCLTK_LIBS=""
10525else
10526  TCLTK_INCLUDES="$with_tcltk_includes"
10527  TCLTK_LIBS="$with_tcltk_libs"
10528fi
10529
10530# Check for --with-dbmliborder
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
10532$as_echo_n "checking for --with-dbmliborder... " >&6; }
10533
10534# Check whether --with-dbmliborder was given.
10535if test "${with_dbmliborder+set}" = set; then :
10536  withval=$with_dbmliborder;
10537if test x$with_dbmliborder = xyes
10538then
10539as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
10540else
10541  for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
10542    if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
10543    then
10544      as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
10545    fi
10546  done
10547fi
10548fi
10549
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
10551$as_echo "$with_dbmliborder" >&6; }
10552
10553# Templates for things AC_DEFINEd more than once.
10554# For a single AC_DEFINE, no template is needed.
10555
10556
10557if test "$ac_cv_pthread_is_default" = yes
10558then
10559    # Defining _REENTRANT on system with POSIX threads should not hurt.
10560    $as_echo "#define _REENTRANT 1" >>confdefs.h
10561
10562    posix_threads=yes
10563    if test "$ac_sys_system" = "SunOS"; then
10564        CFLAGS="$CFLAGS -D_REENTRANT"
10565    fi
10566elif test "$ac_cv_kpthread" = "yes"
10567then
10568    CC="$CC -Kpthread"
10569    if test "$ac_cv_cxx_thread" = "yes"; then
10570        CXX="$CXX -Kpthread"
10571    fi
10572    posix_threads=yes
10573elif test "$ac_cv_kthread" = "yes"
10574then
10575    CC="$CC -Kthread"
10576    if test "$ac_cv_cxx_thread" = "yes"; then
10577        CXX="$CXX -Kthread"
10578    fi
10579    posix_threads=yes
10580elif test "$ac_cv_pthread" = "yes"
10581then
10582    CC="$CC -pthread"
10583    if test "$ac_cv_cxx_thread" = "yes"; then
10584        CXX="$CXX -pthread"
10585    fi
10586    posix_threads=yes
10587else
10588    if test ! -z "$withval" -a -d "$withval"
10589    then LDFLAGS="$LDFLAGS -L$withval"
10590    fi
10591
10592    # According to the POSIX spec, a pthreads implementation must
10593    # define _POSIX_THREADS in unistd.h. Some apparently don't
10594    # (e.g. gnu pth with pthread emulation)
10595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
10596$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
10597    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598/* end confdefs.h.  */
10599
10600#include <unistd.h>
10601#ifdef _POSIX_THREADS
10602yes
10603#endif
10604
10605_ACEOF
10606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10607  $EGREP "yes" >/dev/null 2>&1; then :
10608  unistd_defines_pthreads=yes
10609else
10610  unistd_defines_pthreads=no
10611fi
10612rm -f conftest*
10613
10614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
10615$as_echo "$unistd_defines_pthreads" >&6; }
10616
10617    $as_echo "#define _REENTRANT 1" >>confdefs.h
10618
10619    # Just looking for pthread_create in libpthread is not enough:
10620    # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10621    # So we really have to include pthread.h, and then link.
10622    _libs=$LIBS
10623    LIBS="$LIBS -lpthread"
10624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10625$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10626    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h.  */
10628
10629#include <stdio.h>
10630#include <pthread.h>
10631
10632void * start_routine (void *arg) { exit (0); }
10633int
10634main ()
10635{
10636
10637pthread_create (NULL, NULL, start_routine, NULL)
10638  ;
10639  return 0;
10640}
10641_ACEOF
10642if ac_fn_c_try_link "$LINENO"; then :
10643
10644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10645$as_echo "yes" >&6; }
10646    posix_threads=yes
10647
10648else
10649
10650    LIBS=$_libs
10651    ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
10652if test "x$ac_cv_func_pthread_detach" = xyes; then :
10653
10654    posix_threads=yes
10655
10656else
10657
10658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
10659$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
10660if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
10661  $as_echo_n "(cached) " >&6
10662else
10663  ac_check_lib_save_LIBS=$LIBS
10664LIBS="-lpthreads  $LIBS"
10665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h.  */
10667
10668/* Override any GCC internal prototype to avoid an error.
10669   Use char because int might match the return type of a GCC
10670   builtin and then its argument prototype would still apply.  */
10671#ifdef __cplusplus
10672extern "C"
10673#endif
10674char pthread_create ();
10675int
10676main ()
10677{
10678return pthread_create ();
10679  ;
10680  return 0;
10681}
10682_ACEOF
10683if ac_fn_c_try_link "$LINENO"; then :
10684  ac_cv_lib_pthreads_pthread_create=yes
10685else
10686  ac_cv_lib_pthreads_pthread_create=no
10687fi
10688rm -f core conftest.err conftest.$ac_objext \
10689    conftest$ac_exeext conftest.$ac_ext
10690LIBS=$ac_check_lib_save_LIBS
10691fi
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
10693$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
10694if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
10695
10696    posix_threads=yes
10697    LIBS="$LIBS -lpthreads"
10698
10699else
10700
10701    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
10702$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
10703if ${ac_cv_lib_c_r_pthread_create+:} false; then :
10704  $as_echo_n "(cached) " >&6
10705else
10706  ac_check_lib_save_LIBS=$LIBS
10707LIBS="-lc_r  $LIBS"
10708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709/* end confdefs.h.  */
10710
10711/* Override any GCC internal prototype to avoid an error.
10712   Use char because int might match the return type of a GCC
10713   builtin and then its argument prototype would still apply.  */
10714#ifdef __cplusplus
10715extern "C"
10716#endif
10717char pthread_create ();
10718int
10719main ()
10720{
10721return pthread_create ();
10722  ;
10723  return 0;
10724}
10725_ACEOF
10726if ac_fn_c_try_link "$LINENO"; then :
10727  ac_cv_lib_c_r_pthread_create=yes
10728else
10729  ac_cv_lib_c_r_pthread_create=no
10730fi
10731rm -f core conftest.err conftest.$ac_objext \
10732    conftest$ac_exeext conftest.$ac_ext
10733LIBS=$ac_check_lib_save_LIBS
10734fi
10735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
10736$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
10737if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
10738
10739    posix_threads=yes
10740    LIBS="$LIBS -lc_r"
10741
10742else
10743
10744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
10745$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
10746if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
10747  $as_echo_n "(cached) " >&6
10748else
10749  ac_check_lib_save_LIBS=$LIBS
10750LIBS="-lpthread  $LIBS"
10751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752/* end confdefs.h.  */
10753
10754/* Override any GCC internal prototype to avoid an error.
10755   Use char because int might match the return type of a GCC
10756   builtin and then its argument prototype would still apply.  */
10757#ifdef __cplusplus
10758extern "C"
10759#endif
10760char __pthread_create_system ();
10761int
10762main ()
10763{
10764return __pthread_create_system ();
10765  ;
10766  return 0;
10767}
10768_ACEOF
10769if ac_fn_c_try_link "$LINENO"; then :
10770  ac_cv_lib_pthread___pthread_create_system=yes
10771else
10772  ac_cv_lib_pthread___pthread_create_system=no
10773fi
10774rm -f core conftest.err conftest.$ac_objext \
10775    conftest$ac_exeext conftest.$ac_ext
10776LIBS=$ac_check_lib_save_LIBS
10777fi
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10779$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
10780if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
10781
10782    posix_threads=yes
10783    LIBS="$LIBS -lpthread"
10784
10785else
10786
10787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
10788$as_echo_n "checking for pthread_create in -lcma... " >&6; }
10789if ${ac_cv_lib_cma_pthread_create+:} false; then :
10790  $as_echo_n "(cached) " >&6
10791else
10792  ac_check_lib_save_LIBS=$LIBS
10793LIBS="-lcma  $LIBS"
10794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795/* end confdefs.h.  */
10796
10797/* Override any GCC internal prototype to avoid an error.
10798   Use char because int might match the return type of a GCC
10799   builtin and then its argument prototype would still apply.  */
10800#ifdef __cplusplus
10801extern "C"
10802#endif
10803char pthread_create ();
10804int
10805main ()
10806{
10807return pthread_create ();
10808  ;
10809  return 0;
10810}
10811_ACEOF
10812if ac_fn_c_try_link "$LINENO"; then :
10813  ac_cv_lib_cma_pthread_create=yes
10814else
10815  ac_cv_lib_cma_pthread_create=no
10816fi
10817rm -f core conftest.err conftest.$ac_objext \
10818    conftest$ac_exeext conftest.$ac_ext
10819LIBS=$ac_check_lib_save_LIBS
10820fi
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
10822$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
10823if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
10824
10825    posix_threads=yes
10826    LIBS="$LIBS -lcma"
10827
10828else
10829
10830    as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
10831
10832fi
10833
10834
10835fi
10836
10837fi
10838
10839fi
10840
10841fi
10842
10843fi
10844rm -f core conftest.err conftest.$ac_objext \
10845    conftest$ac_exeext conftest.$ac_ext
10846
10847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
10848$as_echo_n "checking for usconfig in -lmpc... " >&6; }
10849if ${ac_cv_lib_mpc_usconfig+:} false; then :
10850  $as_echo_n "(cached) " >&6
10851else
10852  ac_check_lib_save_LIBS=$LIBS
10853LIBS="-lmpc  $LIBS"
10854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855/* end confdefs.h.  */
10856
10857/* Override any GCC internal prototype to avoid an error.
10858   Use char because int might match the return type of a GCC
10859   builtin and then its argument prototype would still apply.  */
10860#ifdef __cplusplus
10861extern "C"
10862#endif
10863char usconfig ();
10864int
10865main ()
10866{
10867return usconfig ();
10868  ;
10869  return 0;
10870}
10871_ACEOF
10872if ac_fn_c_try_link "$LINENO"; then :
10873  ac_cv_lib_mpc_usconfig=yes
10874else
10875  ac_cv_lib_mpc_usconfig=no
10876fi
10877rm -f core conftest.err conftest.$ac_objext \
10878    conftest$ac_exeext conftest.$ac_ext
10879LIBS=$ac_check_lib_save_LIBS
10880fi
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
10882$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
10883if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
10884
10885    LIBS="$LIBS -lmpc"
10886
10887fi
10888
10889
10890fi
10891
10892if test "$posix_threads" = "yes"; then
10893      if test "$unistd_defines_pthreads" = "no"; then
10894
10895$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
10896
10897      fi
10898
10899      # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
10900      case  $ac_sys_system/$ac_sys_release in
10901      SunOS/5.6)
10902$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
10903
10904		       ;;
10905      SunOS/5.8)
10906$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10907
10908		       ;;
10909      AIX/*)
10910$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10911
10912		       ;;
10913      esac
10914
10915      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10916$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
10917      if ${ac_cv_pthread_system_supported+:} false; then :
10918  $as_echo_n "(cached) " >&6
10919else
10920  if test "$cross_compiling" = yes; then :
10921  ac_cv_pthread_system_supported=no
10922else
10923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924/* end confdefs.h.  */
10925
10926      #include <stdio.h>
10927      #include <pthread.h>
10928      void *foo(void *parm) {
10929        return NULL;
10930      }
10931      main() {
10932        pthread_attr_t attr;
10933        pthread_t id;
10934        if (pthread_attr_init(&attr)) return (-1);
10935        if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
10936        if (pthread_create(&id, &attr, foo, NULL)) return (-1);
10937        return (0);
10938      }
10939_ACEOF
10940if ac_fn_c_try_run "$LINENO"; then :
10941  ac_cv_pthread_system_supported=yes
10942else
10943  ac_cv_pthread_system_supported=no
10944fi
10945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10946  conftest.$ac_objext conftest.beam conftest.$ac_ext
10947fi
10948
10949
10950fi
10951
10952      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10953$as_echo "$ac_cv_pthread_system_supported" >&6; }
10954      if test "$ac_cv_pthread_system_supported" = "yes"; then
10955
10956$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
10957
10958      fi
10959      for ac_func in pthread_sigmask
10960do :
10961  ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
10962if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
10963  cat >>confdefs.h <<_ACEOF
10964#define HAVE_PTHREAD_SIGMASK 1
10965_ACEOF
10966 case $ac_sys_system in
10967        CYGWIN*)
10968
10969$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
10970
10971            ;;
10972        esac
10973fi
10974done
10975
10976      for ac_func in pthread_getcpuclockid
10977do :
10978  ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
10979if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then :
10980  cat >>confdefs.h <<_ACEOF
10981#define HAVE_PTHREAD_GETCPUCLOCKID 1
10982_ACEOF
10983
10984fi
10985done
10986
10987fi
10988
10989
10990# Check for enable-ipv6
10991
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10993$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
10994# Check whether --enable-ipv6 was given.
10995if test "${enable_ipv6+set}" = set; then :
10996  enableval=$enable_ipv6;  case "$enableval" in
10997  no)
10998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999$as_echo "no" >&6; }
11000       ipv6=no
11001       ;;
11002  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11003$as_echo "yes" >&6; }
11004       $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
11005
11006       ipv6=yes
11007       ;;
11008  esac
11009else
11010
11011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012/* end confdefs.h.  */
11013 /* AF_INET6 available check */
11014#include <sys/types.h>
11015#include <sys/socket.h>
11016int
11017main ()
11018{
11019int domain = AF_INET6;
11020  ;
11021  return 0;
11022}
11023_ACEOF
11024if ac_fn_c_try_compile "$LINENO"; then :
11025
11026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027$as_echo "yes" >&6; }
11028  ipv6=yes
11029
11030else
11031
11032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
11034  ipv6=no
11035
11036fi
11037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038
11039if test "$ipv6" = "yes"; then
11040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
11041$as_echo_n "checking if RFC2553 API is available... " >&6; }
11042	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043/* end confdefs.h.  */
11044
11045	  #include <sys/types.h>
11046#include <netinet/in.h>
11047int
11048main ()
11049{
11050struct sockaddr_in6 x;
11051			    x.sin6_scope_id;
11052  ;
11053  return 0;
11054}
11055
11056_ACEOF
11057if ac_fn_c_try_compile "$LINENO"; then :
11058
11059	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11060$as_echo "yes" >&6; }
11061	  ipv6=yes
11062
11063else
11064
11065	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066$as_echo "no" >&6; }
11067	  ipv6=no
11068
11069fi
11070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071fi
11072
11073if test "$ipv6" = "yes"; then
11074	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
11075
11076fi
11077
11078fi
11079
11080
11081ipv6type=unknown
11082ipv6lib=none
11083ipv6trylibc=no
11084
11085if test "$ipv6" = "yes"; then
11086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
11087$as_echo_n "checking ipv6 stack type... " >&6; }
11088	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
11089	do
11090		case $i in
11091		inria)
11092						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093/* end confdefs.h.  */
11094
11095#include <netinet/in.h>
11096#ifdef IPV6_INRIA_VERSION
11097yes
11098#endif
11099_ACEOF
11100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11101  $EGREP "yes" >/dev/null 2>&1; then :
11102  ipv6type=$i
11103fi
11104rm -f conftest*
11105
11106			;;
11107		kame)
11108						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109/* end confdefs.h.  */
11110
11111#include <netinet/in.h>
11112#ifdef __KAME__
11113yes
11114#endif
11115_ACEOF
11116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11117  $EGREP "yes" >/dev/null 2>&1; then :
11118  ipv6type=$i;
11119				ipv6lib=inet6
11120				ipv6libdir=/usr/local/v6/lib
11121				ipv6trylibc=yes
11122fi
11123rm -f conftest*
11124
11125			;;
11126		linux-glibc)
11127						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128/* end confdefs.h.  */
11129
11130#include <features.h>
11131#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11132yes
11133#endif
11134_ACEOF
11135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11136  $EGREP "yes" >/dev/null 2>&1; then :
11137  ipv6type=$i;
11138				ipv6trylibc=yes
11139fi
11140rm -f conftest*
11141
11142			;;
11143		linux-inet6)
11144						if test -d /usr/inet6; then
11145				ipv6type=$i
11146				ipv6lib=inet6
11147				ipv6libdir=/usr/inet6/lib
11148				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
11149			fi
11150			;;
11151		solaris)
11152			if test -f /etc/netconfig; then
11153                          if $GREP -q tcp6 /etc/netconfig; then
11154				ipv6type=$i
11155				ipv6trylibc=yes
11156                          fi
11157                        fi
11158			;;
11159		toshiba)
11160			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161/* end confdefs.h.  */
11162
11163#include <sys/param.h>
11164#ifdef _TOSHIBA_INET6
11165yes
11166#endif
11167_ACEOF
11168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11169  $EGREP "yes" >/dev/null 2>&1; then :
11170  ipv6type=$i;
11171				ipv6lib=inet6;
11172				ipv6libdir=/usr/local/v6/lib
11173fi
11174rm -f conftest*
11175
11176			;;
11177		v6d)
11178			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179/* end confdefs.h.  */
11180
11181#include </usr/local/v6/include/sys/v6config.h>
11182#ifdef __V6D__
11183yes
11184#endif
11185_ACEOF
11186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11187  $EGREP "yes" >/dev/null 2>&1; then :
11188  ipv6type=$i;
11189				ipv6lib=v6;
11190				ipv6libdir=/usr/local/v6/lib;
11191				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
11192fi
11193rm -f conftest*
11194
11195			;;
11196		zeta)
11197			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h.  */
11199
11200#include <sys/param.h>
11201#ifdef _ZETA_MINAMI_INET6
11202yes
11203#endif
11204_ACEOF
11205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11206  $EGREP "yes" >/dev/null 2>&1; then :
11207  ipv6type=$i;
11208				ipv6lib=inet6;
11209				ipv6libdir=/usr/local/v6/lib
11210fi
11211rm -f conftest*
11212
11213			;;
11214		esac
11215		if test "$ipv6type" != "unknown"; then
11216			break
11217		fi
11218	done
11219	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
11220$as_echo "$ipv6type" >&6; }
11221fi
11222
11223if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11224	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11225		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11226		echo "using lib$ipv6lib"
11227	else
11228		if test $ipv6trylibc = "yes"; then
11229			echo "using libc"
11230		else
11231			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
11232			echo "You need to fetch lib$ipv6lib.a from appropriate"
11233			echo 'ipv6 kit and compile beforehand.'
11234			exit 1
11235		fi
11236	fi
11237fi
11238
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5
11240$as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; }
11241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242/* end confdefs.h.  */
11243 /* CAN_RAW_FD_FRAMES available check */
11244#include <linux/can/raw.h>
11245int
11246main ()
11247{
11248int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
11249  ;
11250  return 0;
11251}
11252_ACEOF
11253if ac_fn_c_try_compile "$LINENO"; then :
11254
11255
11256$as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
11257
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259$as_echo "yes" >&6; }
11260
11261else
11262
11263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264$as_echo "no" >&6; }
11265
11266fi
11267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11268
11269# Check for --with-doc-strings
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
11271$as_echo_n "checking for --with-doc-strings... " >&6; }
11272
11273# Check whether --with-doc-strings was given.
11274if test "${with_doc_strings+set}" = set; then :
11275  withval=$with_doc_strings;
11276fi
11277
11278
11279if test -z "$with_doc_strings"
11280then with_doc_strings="yes"
11281fi
11282if test "$with_doc_strings" != "no"
11283then
11284
11285$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
11286
11287fi
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
11289$as_echo "$with_doc_strings" >&6; }
11290
11291# Check for Python-specific malloc support
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
11293$as_echo_n "checking for --with-pymalloc... " >&6; }
11294
11295# Check whether --with-pymalloc was given.
11296if test "${with_pymalloc+set}" = set; then :
11297  withval=$with_pymalloc;
11298fi
11299
11300
11301if test -z "$with_pymalloc"
11302then
11303    with_pymalloc="yes"
11304fi
11305if test "$with_pymalloc" != "no"
11306then
11307
11308$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
11309
11310fi
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
11312$as_echo "$with_pymalloc" >&6; }
11313
11314# Check for --with-c-locale-coercion
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
11316$as_echo_n "checking for --with-c-locale-coercion... " >&6; }
11317
11318# Check whether --with-c-locale-coercion was given.
11319if test "${with_c_locale_coercion+set}" = set; then :
11320  withval=$with_c_locale_coercion;
11321fi
11322
11323
11324if test -z "$with_c_locale_coercion"
11325then
11326    with_c_locale_coercion="yes"
11327fi
11328if test "$with_c_locale_coercion" != "no"
11329then
11330
11331$as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
11332
11333fi
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
11335$as_echo "$with_c_locale_coercion" >&6; }
11336
11337# Check for Valgrind support
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
11339$as_echo_n "checking for --with-valgrind... " >&6; }
11340
11341# Check whether --with-valgrind was given.
11342if test "${with_valgrind+set}" = set; then :
11343  withval=$with_valgrind;
11344else
11345  with_valgrind=no
11346fi
11347
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
11349$as_echo "$with_valgrind" >&6; }
11350if test "$with_valgrind" != no; then
11351    ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
11352if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
11353
11354$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
11355
11356else
11357  as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
11358
11359fi
11360
11361
11362    OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
11363fi
11364
11365# Check for DTrace support
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
11367$as_echo_n "checking for --with-dtrace... " >&6; }
11368
11369# Check whether --with-dtrace was given.
11370if test "${with_dtrace+set}" = set; then :
11371  withval=$with_dtrace;
11372else
11373  with_dtrace=no
11374fi
11375
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
11377$as_echo "$with_dtrace" >&6; }
11378
11379
11380
11381
11382
11383DTRACE=
11384DFLAGS=
11385DTRACE_HEADERS=
11386DTRACE_OBJS=
11387
11388if test "$with_dtrace" = "yes"
11389then
11390    # Extract the first word of "dtrace", so it can be a program name with args.
11391set dummy dtrace; ac_word=$2
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393$as_echo_n "checking for $ac_word... " >&6; }
11394if ${ac_cv_path_DTRACE+:} false; then :
11395  $as_echo_n "(cached) " >&6
11396else
11397  case $DTRACE in
11398  [\\/]* | ?:[\\/]*)
11399  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
11400  ;;
11401  *)
11402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403for as_dir in $PATH
11404do
11405  IFS=$as_save_IFS
11406  test -z "$as_dir" && as_dir=.
11407    for ac_exec_ext in '' $ac_executable_extensions; do
11408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11409    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
11410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411    break 2
11412  fi
11413done
11414  done
11415IFS=$as_save_IFS
11416
11417  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
11418  ;;
11419esac
11420fi
11421DTRACE=$ac_cv_path_DTRACE
11422if test -n "$DTRACE"; then
11423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
11424$as_echo "$DTRACE" >&6; }
11425else
11426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427$as_echo "no" >&6; }
11428fi
11429
11430
11431    if test "$DTRACE" = "not found"; then
11432        as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
11433    fi
11434
11435$as_echo "#define WITH_DTRACE 1" >>confdefs.h
11436
11437    DTRACE_HEADERS="Include/pydtrace_probes.h"
11438
11439    # On OS X, DTrace providers do not need to be explicitly compiled and
11440    # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
11441    # generation flag '-G'. We check for presence of this flag, rather than
11442    # hardcoding support by OS, in the interest of robustness.
11443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
11444$as_echo_n "checking whether DTrace probes require linking... " >&6; }
11445if ${ac_cv_dtrace_link+:} false; then :
11446  $as_echo_n "(cached) " >&6
11447else
11448              ac_cv_dtrace_link=no
11449            echo 'BEGIN{}' > conftest.d
11450            "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
11451                ac_cv_dtrace_link=yes
11452
11453fi
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
11455$as_echo "$ac_cv_dtrace_link" >&6; }
11456    if test "$ac_cv_dtrace_link" = "yes"; then
11457        DTRACE_OBJS="Python/pydtrace.o"
11458    fi
11459fi
11460
11461# -I${DLINCLDIR} is added to the compile rule for importdl.o
11462
11463DLINCLDIR=.
11464
11465# the dlopen() function means we might want to use dynload_shlib.o. some
11466# platforms, such as AIX, have dlopen(), but don't want to use it.
11467for ac_func in dlopen
11468do :
11469  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11470if test "x$ac_cv_func_dlopen" = xyes; then :
11471  cat >>confdefs.h <<_ACEOF
11472#define HAVE_DLOPEN 1
11473_ACEOF
11474
11475fi
11476done
11477
11478
11479# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11480# loading of modules.
11481
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
11483$as_echo_n "checking DYNLOADFILE... " >&6; }
11484if test -z "$DYNLOADFILE"
11485then
11486	case $ac_sys_system/$ac_sys_release in
11487	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
11488	if test "$ac_cv_func_dlopen" = yes
11489	then DYNLOADFILE="dynload_shlib.o"
11490	else DYNLOADFILE="dynload_aix.o"
11491	fi
11492	;;
11493	hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
11494	*)
11495	# use dynload_shlib.c and dlopen() if we have it; otherwise stub
11496	# out any dynamic loading
11497	if test "$ac_cv_func_dlopen" = yes
11498	then DYNLOADFILE="dynload_shlib.o"
11499	else DYNLOADFILE="dynload_stub.o"
11500	fi
11501	;;
11502	esac
11503fi
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
11505$as_echo "$DYNLOADFILE" >&6; }
11506if test "$DYNLOADFILE" != "dynload_stub.o"
11507then
11508
11509$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
11510
11511fi
11512
11513# MACHDEP_OBJS can be set to platform-specific object files needed by Python
11514
11515
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
11517$as_echo_n "checking MACHDEP_OBJS... " >&6; }
11518if test -z "$MACHDEP_OBJS"
11519then
11520	MACHDEP_OBJS=$extra_machdep_objs
11521else
11522	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
11523fi
11524if test -z "$MACHDEP_OBJS"; then
11525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11526$as_echo "none" >&6; }
11527else
11528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
11529$as_echo "$MACHDEP_OBJS" >&6; }
11530fi
11531
11532# checks for library functions
11533for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
11534 clock confstr copy_file_range ctermid dup3 execv explicit_bzero explicit_memset \
11535 faccessat fchmod fchmodat fchown fchownat \
11536 fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
11537 futimens futimes gai_strerror getentropy \
11538 getgrgid_r getgrnam_r \
11539 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
11540 getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \
11541 if_nameindex \
11542 initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
11543 memrchr mbrtowc mkdirat mkfifo \
11544 madvise mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
11545 posix_fallocate posix_fadvise posix_spawn posix_spawnp pread preadv preadv2 \
11546 pthread_condattr_setclock pthread_init pthread_kill putenv pwrite pwritev pwritev2 \
11547 readlink readlinkat readv realpath renameat \
11548 sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \
11549 setgid sethostname \
11550 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \
11551 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \
11552 sched_rr_get_interval \
11553 sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \
11554 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy strsignal symlinkat sync \
11555 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
11556 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \
11557 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty rtpSpawn
11558do :
11559  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11560ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11561if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11562  cat >>confdefs.h <<_ACEOF
11563#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11564_ACEOF
11565
11566fi
11567done
11568
11569
11570# Force lchmod off for Linux. Linux disallows changing the mode of symbolic
11571# links. Some libc implementations have a stub lchmod implementation that always
11572# returns an error.
11573if test "$MACHDEP" != linux; then
11574  for ac_func in lchmod
11575do :
11576  ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
11577if test "x$ac_cv_func_lchmod" = xyes; then :
11578  cat >>confdefs.h <<_ACEOF
11579#define HAVE_LCHMOD 1
11580_ACEOF
11581
11582fi
11583done
11584
11585fi
11586
11587ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11588       #include <dirent.h>
11589"
11590if test "x$ac_cv_have_decl_dirfd" = xyes; then :
11591
11592$as_echo "#define HAVE_DIRFD 1" >>confdefs.h
11593
11594fi
11595
11596
11597# For some functions, having a definition is not sufficient, since
11598# we want to take their address.
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
11600$as_echo_n "checking for chroot... " >&6; }
11601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h.  */
11603#include <unistd.h>
11604int
11605main ()
11606{
11607void *x=chroot
11608  ;
11609  return 0;
11610}
11611_ACEOF
11612if ac_fn_c_try_compile "$LINENO"; then :
11613
11614$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
11615
11616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617$as_echo "yes" >&6; }
11618else
11619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620$as_echo "no" >&6; }
11621
11622fi
11623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
11625$as_echo_n "checking for link... " >&6; }
11626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627/* end confdefs.h.  */
11628#include <unistd.h>
11629int
11630main ()
11631{
11632void *x=link
11633  ;
11634  return 0;
11635}
11636_ACEOF
11637if ac_fn_c_try_compile "$LINENO"; then :
11638
11639$as_echo "#define HAVE_LINK 1" >>confdefs.h
11640
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642$as_echo "yes" >&6; }
11643else
11644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
11646
11647fi
11648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
11650$as_echo_n "checking for symlink... " >&6; }
11651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h.  */
11653#include <unistd.h>
11654int
11655main ()
11656{
11657void *x=symlink
11658  ;
11659  return 0;
11660}
11661_ACEOF
11662if ac_fn_c_try_compile "$LINENO"; then :
11663
11664$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
11665
11666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11667$as_echo "yes" >&6; }
11668else
11669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670$as_echo "no" >&6; }
11671
11672fi
11673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
11675$as_echo_n "checking for fchdir... " >&6; }
11676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677/* end confdefs.h.  */
11678#include <unistd.h>
11679int
11680main ()
11681{
11682void *x=fchdir
11683  ;
11684  return 0;
11685}
11686_ACEOF
11687if ac_fn_c_try_compile "$LINENO"; then :
11688
11689$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
11690
11691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11692$as_echo "yes" >&6; }
11693else
11694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695$as_echo "no" >&6; }
11696
11697fi
11698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
11700$as_echo_n "checking for fsync... " >&6; }
11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702/* end confdefs.h.  */
11703#include <unistd.h>
11704int
11705main ()
11706{
11707void *x=fsync
11708  ;
11709  return 0;
11710}
11711_ACEOF
11712if ac_fn_c_try_compile "$LINENO"; then :
11713
11714$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
11715
11716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11717$as_echo "yes" >&6; }
11718else
11719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720$as_echo "no" >&6; }
11721
11722fi
11723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
11725$as_echo_n "checking for fdatasync... " >&6; }
11726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727/* end confdefs.h.  */
11728#include <unistd.h>
11729int
11730main ()
11731{
11732void *x=fdatasync
11733  ;
11734  return 0;
11735}
11736_ACEOF
11737if ac_fn_c_try_compile "$LINENO"; then :
11738
11739$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
11740
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742$as_echo "yes" >&6; }
11743else
11744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
11746
11747fi
11748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
11750$as_echo_n "checking for epoll... " >&6; }
11751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752/* end confdefs.h.  */
11753#include <sys/epoll.h>
11754int
11755main ()
11756{
11757void *x=epoll_create
11758  ;
11759  return 0;
11760}
11761_ACEOF
11762if ac_fn_c_try_compile "$LINENO"; then :
11763
11764$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
11765
11766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11767$as_echo "yes" >&6; }
11768else
11769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
11771
11772fi
11773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
11775$as_echo_n "checking for epoll_create1... " >&6; }
11776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777/* end confdefs.h.  */
11778#include <sys/epoll.h>
11779int
11780main ()
11781{
11782void *x=epoll_create1
11783  ;
11784  return 0;
11785}
11786_ACEOF
11787if ac_fn_c_try_compile "$LINENO"; then :
11788
11789$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
11790
11791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792$as_echo "yes" >&6; }
11793else
11794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795$as_echo "no" >&6; }
11796
11797fi
11798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
11800$as_echo_n "checking for kqueue... " >&6; }
11801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802/* end confdefs.h.  */
11803
11804#include <sys/types.h>
11805#include <sys/event.h>
11806
11807int
11808main ()
11809{
11810int x=kqueue()
11811  ;
11812  return 0;
11813}
11814_ACEOF
11815if ac_fn_c_try_compile "$LINENO"; then :
11816
11817$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
11818
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11820$as_echo "yes" >&6; }
11821else
11822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823$as_echo "no" >&6; }
11824
11825fi
11826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
11828$as_echo_n "checking for prlimit... " >&6; }
11829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830/* end confdefs.h.  */
11831
11832#include <sys/time.h>
11833#include <sys/resource.h>
11834
11835int
11836main ()
11837{
11838void *x=prlimit
11839  ;
11840  return 0;
11841}
11842_ACEOF
11843if ac_fn_c_try_compile "$LINENO"; then :
11844
11845$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h
11846
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11848$as_echo "yes" >&6; }
11849else
11850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
11852
11853fi
11854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5
11856$as_echo_n "checking for _dyld_shared_cache_contains_path... " >&6; }
11857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858/* end confdefs.h.  */
11859#include <mach-o/dyld.h>
11860int
11861main ()
11862{
11863void *x=_dyld_shared_cache_contains_path
11864  ;
11865  return 0;
11866}
11867_ACEOF
11868if ac_fn_c_try_compile "$LINENO"; then :
11869
11870$as_echo "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h
11871
11872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11873$as_echo "yes" >&6; }
11874else
11875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
11877
11878fi
11879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
11882$as_echo_n "checking for memfd_create... " >&6; }
11883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884/* end confdefs.h.  */
11885
11886#ifdef HAVE_SYS_MMAN_H
11887#include <sys/mman.h>
11888#endif
11889#ifdef HAVE_SYS_MEMFD_H
11890#include <sys/memfd.h>
11891#endif
11892
11893int
11894main ()
11895{
11896void *x=memfd_create
11897  ;
11898  return 0;
11899}
11900_ACEOF
11901if ac_fn_c_try_compile "$LINENO"; then :
11902
11903$as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
11904
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11906$as_echo "yes" >&6; }
11907else
11908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909$as_echo "no" >&6; }
11910
11911fi
11912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11913
11914# On some systems (eg. FreeBSD 5), we would find a definition of the
11915# functions ctermid_r, setgroups in the library, but no prototype
11916# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
11917# address to avoid compiler warnings and potential miscompilations
11918# because of the missing prototypes.
11919
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
11921$as_echo_n "checking for ctermid_r... " >&6; }
11922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h.  */
11924
11925#include <stdio.h>
11926
11927int
11928main ()
11929{
11930void* p = ctermid_r
11931  ;
11932  return 0;
11933}
11934_ACEOF
11935if ac_fn_c_try_compile "$LINENO"; then :
11936
11937$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
11938
11939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11940$as_echo "yes" >&6; }
11941else
11942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943$as_echo "no" >&6; }
11944
11945fi
11946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
11949$as_echo_n "checking for flock declaration... " >&6; }
11950if ${ac_cv_flock_decl+:} false; then :
11951  $as_echo_n "(cached) " >&6
11952else
11953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954/* end confdefs.h.  */
11955#include <sys/file.h>
11956int
11957main ()
11958{
11959void* p = flock
11960
11961  ;
11962  return 0;
11963}
11964_ACEOF
11965if ac_fn_c_try_compile "$LINENO"; then :
11966  ac_cv_flock_decl=yes
11967else
11968  ac_cv_flock_decl=no
11969
11970fi
11971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972
11973fi
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
11975$as_echo "$ac_cv_flock_decl" >&6; }
11976if test "x${ac_cv_flock_decl}" = xyes; then
11977  for ac_func in flock
11978do :
11979  ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
11980if test "x$ac_cv_func_flock" = xyes; then :
11981  cat >>confdefs.h <<_ACEOF
11982#define HAVE_FLOCK 1
11983_ACEOF
11984
11985else
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
11987$as_echo_n "checking for flock in -lbsd... " >&6; }
11988if ${ac_cv_lib_bsd_flock+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  ac_check_lib_save_LIBS=$LIBS
11992LIBS="-lbsd  $LIBS"
11993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994/* end confdefs.h.  */
11995
11996/* Override any GCC internal prototype to avoid an error.
11997   Use char because int might match the return type of a GCC
11998   builtin and then its argument prototype would still apply.  */
11999#ifdef __cplusplus
12000extern "C"
12001#endif
12002char flock ();
12003int
12004main ()
12005{
12006return flock ();
12007  ;
12008  return 0;
12009}
12010_ACEOF
12011if ac_fn_c_try_link "$LINENO"; then :
12012  ac_cv_lib_bsd_flock=yes
12013else
12014  ac_cv_lib_bsd_flock=no
12015fi
12016rm -f core conftest.err conftest.$ac_objext \
12017    conftest$ac_exeext conftest.$ac_ext
12018LIBS=$ac_check_lib_save_LIBS
12019fi
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
12021$as_echo "$ac_cv_lib_bsd_flock" >&6; }
12022if test "x$ac_cv_lib_bsd_flock" = xyes; then :
12023  $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
12024
12025
12026$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
12027
12028
12029fi
12030
12031
12032fi
12033done
12034
12035fi
12036
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
12038$as_echo_n "checking for getpagesize... " >&6; }
12039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040/* end confdefs.h.  */
12041
12042#include <unistd.h>
12043
12044int
12045main ()
12046{
12047void* p = getpagesize
12048  ;
12049  return 0;
12050}
12051_ACEOF
12052if ac_fn_c_try_compile "$LINENO"; then :
12053
12054$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12055
12056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12057$as_echo "yes" >&6; }
12058else
12059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060$as_echo "no" >&6; }
12061
12062fi
12063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
12066$as_echo_n "checking for broken unsetenv... " >&6; }
12067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h.  */
12069
12070#include <stdlib.h>
12071
12072int
12073main ()
12074{
12075int res = unsetenv("DUMMY")
12076  ;
12077  return 0;
12078}
12079_ACEOF
12080if ac_fn_c_try_compile "$LINENO"; then :
12081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082$as_echo "no" >&6; }
12083else
12084
12085$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
12086
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088$as_echo "yes" >&6; }
12089
12090fi
12091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092
12093for ac_prog in true
12094do
12095  # Extract the first word of "$ac_prog", so it can be a program name with args.
12096set dummy $ac_prog; ac_word=$2
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098$as_echo_n "checking for $ac_word... " >&6; }
12099if ${ac_cv_prog_TRUE+:} false; then :
12100  $as_echo_n "(cached) " >&6
12101else
12102  if test -n "$TRUE"; then
12103  ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
12104else
12105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106for as_dir in $PATH
12107do
12108  IFS=$as_save_IFS
12109  test -z "$as_dir" && as_dir=.
12110    for ac_exec_ext in '' $ac_executable_extensions; do
12111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112    ac_cv_prog_TRUE="$ac_prog"
12113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114    break 2
12115  fi
12116done
12117  done
12118IFS=$as_save_IFS
12119
12120fi
12121fi
12122TRUE=$ac_cv_prog_TRUE
12123if test -n "$TRUE"; then
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
12125$as_echo "$TRUE" >&6; }
12126else
12127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128$as_echo "no" >&6; }
12129fi
12130
12131
12132  test -n "$TRUE" && break
12133done
12134test -n "$TRUE" || TRUE="/bin/true"
12135
12136
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
12138$as_echo_n "checking for inet_aton in -lc... " >&6; }
12139if ${ac_cv_lib_c_inet_aton+:} false; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  ac_check_lib_save_LIBS=$LIBS
12143LIBS="-lc  $LIBS"
12144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h.  */
12146
12147/* Override any GCC internal prototype to avoid an error.
12148   Use char because int might match the return type of a GCC
12149   builtin and then its argument prototype would still apply.  */
12150#ifdef __cplusplus
12151extern "C"
12152#endif
12153char inet_aton ();
12154int
12155main ()
12156{
12157return inet_aton ();
12158  ;
12159  return 0;
12160}
12161_ACEOF
12162if ac_fn_c_try_link "$LINENO"; then :
12163  ac_cv_lib_c_inet_aton=yes
12164else
12165  ac_cv_lib_c_inet_aton=no
12166fi
12167rm -f core conftest.err conftest.$ac_objext \
12168    conftest$ac_exeext conftest.$ac_ext
12169LIBS=$ac_check_lib_save_LIBS
12170fi
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
12172$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
12173if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
12174  $ac_cv_prog_TRUE
12175else
12176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
12177$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
12178if ${ac_cv_lib_resolv_inet_aton+:} false; then :
12179  $as_echo_n "(cached) " >&6
12180else
12181  ac_check_lib_save_LIBS=$LIBS
12182LIBS="-lresolv  $LIBS"
12183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184/* end confdefs.h.  */
12185
12186/* Override any GCC internal prototype to avoid an error.
12187   Use char because int might match the return type of a GCC
12188   builtin and then its argument prototype would still apply.  */
12189#ifdef __cplusplus
12190extern "C"
12191#endif
12192char inet_aton ();
12193int
12194main ()
12195{
12196return inet_aton ();
12197  ;
12198  return 0;
12199}
12200_ACEOF
12201if ac_fn_c_try_link "$LINENO"; then :
12202  ac_cv_lib_resolv_inet_aton=yes
12203else
12204  ac_cv_lib_resolv_inet_aton=no
12205fi
12206rm -f core conftest.err conftest.$ac_objext \
12207    conftest$ac_exeext conftest.$ac_ext
12208LIBS=$ac_check_lib_save_LIBS
12209fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
12211$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
12212if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
12213  cat >>confdefs.h <<_ACEOF
12214#define HAVE_LIBRESOLV 1
12215_ACEOF
12216
12217  LIBS="-lresolv $LIBS"
12218
12219fi
12220
12221
12222fi
12223
12224
12225# On Tru64, chflags seems to be present, but calling it will
12226# exit Python
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
12228$as_echo_n "checking for chflags... " >&6; }
12229if ${ac_cv_have_chflags+:} false; then :
12230  $as_echo_n "(cached) " >&6
12231else
12232  if test "$cross_compiling" = yes; then :
12233  ac_cv_have_chflags=cross
12234else
12235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236/* end confdefs.h.  */
12237
12238#include <sys/stat.h>
12239#include <unistd.h>
12240int main(int argc, char*argv[])
12241{
12242  if(chflags(argv[0], 0) != 0)
12243    return 1;
12244  return 0;
12245}
12246
12247_ACEOF
12248if ac_fn_c_try_run "$LINENO"; then :
12249  ac_cv_have_chflags=yes
12250else
12251  ac_cv_have_chflags=no
12252fi
12253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12254  conftest.$ac_objext conftest.beam conftest.$ac_ext
12255fi
12256
12257
12258fi
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
12260$as_echo "$ac_cv_have_chflags" >&6; }
12261if test "$ac_cv_have_chflags" = cross ; then
12262  ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
12263if test "x$ac_cv_func_chflags" = xyes; then :
12264  ac_cv_have_chflags="yes"
12265else
12266  ac_cv_have_chflags="no"
12267fi
12268
12269fi
12270if test "$ac_cv_have_chflags" = yes ; then
12271
12272$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
12273
12274fi
12275
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
12277$as_echo_n "checking for lchflags... " >&6; }
12278if ${ac_cv_have_lchflags+:} false; then :
12279  $as_echo_n "(cached) " >&6
12280else
12281  if test "$cross_compiling" = yes; then :
12282  ac_cv_have_lchflags=cross
12283else
12284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285/* end confdefs.h.  */
12286
12287#include <sys/stat.h>
12288#include <unistd.h>
12289int main(int argc, char*argv[])
12290{
12291  if(lchflags(argv[0], 0) != 0)
12292    return 1;
12293  return 0;
12294}
12295
12296_ACEOF
12297if ac_fn_c_try_run "$LINENO"; then :
12298  ac_cv_have_lchflags=yes
12299else
12300  ac_cv_have_lchflags=no
12301fi
12302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12303  conftest.$ac_objext conftest.beam conftest.$ac_ext
12304fi
12305
12306
12307fi
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
12309$as_echo "$ac_cv_have_lchflags" >&6; }
12310if test "$ac_cv_have_lchflags" = cross ; then
12311  ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
12312if test "x$ac_cv_func_lchflags" = xyes; then :
12313  ac_cv_have_lchflags="yes"
12314else
12315  ac_cv_have_lchflags="no"
12316fi
12317
12318fi
12319if test "$ac_cv_have_lchflags" = yes ; then
12320
12321$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
12322
12323fi
12324
12325case $ac_sys_system/$ac_sys_release in
12326Darwin/*)
12327	_CUR_CFLAGS="${CFLAGS}"
12328	_CUR_LDFLAGS="${LDFLAGS}"
12329	CFLAGS="${CFLAGS} -Wl,-search_paths_first"
12330	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
12331	;;
12332esac
12333
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
12335$as_echo_n "checking for inflateCopy in -lz... " >&6; }
12336if ${ac_cv_lib_z_inflateCopy+:} false; then :
12337  $as_echo_n "(cached) " >&6
12338else
12339  ac_check_lib_save_LIBS=$LIBS
12340LIBS="-lz  $LIBS"
12341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342/* end confdefs.h.  */
12343
12344/* Override any GCC internal prototype to avoid an error.
12345   Use char because int might match the return type of a GCC
12346   builtin and then its argument prototype would still apply.  */
12347#ifdef __cplusplus
12348extern "C"
12349#endif
12350char inflateCopy ();
12351int
12352main ()
12353{
12354return inflateCopy ();
12355  ;
12356  return 0;
12357}
12358_ACEOF
12359if ac_fn_c_try_link "$LINENO"; then :
12360  ac_cv_lib_z_inflateCopy=yes
12361else
12362  ac_cv_lib_z_inflateCopy=no
12363fi
12364rm -f core conftest.err conftest.$ac_objext \
12365    conftest$ac_exeext conftest.$ac_ext
12366LIBS=$ac_check_lib_save_LIBS
12367fi
12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
12369$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
12370if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
12371
12372$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
12373
12374fi
12375
12376
12377case $ac_sys_system/$ac_sys_release in
12378Darwin/*)
12379	CFLAGS="${_CUR_CFLAGS}"
12380	LDFLAGS="${_CUR_LDFLAGS}"
12381	;;
12382esac
12383
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
12385$as_echo_n "checking for hstrerror... " >&6; }
12386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387/* end confdefs.h.  */
12388
12389#include <netdb.h>
12390
12391int
12392main ()
12393{
12394void* p = hstrerror; hstrerror(0)
12395  ;
12396  return 0;
12397}
12398_ACEOF
12399if ac_fn_c_try_link "$LINENO"; then :
12400
12401$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
12402
12403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12404$as_echo "yes" >&6; }
12405else
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407$as_echo "no" >&6; }
12408
12409fi
12410rm -f core conftest.err conftest.$ac_objext \
12411    conftest$ac_exeext conftest.$ac_ext
12412
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
12414$as_echo_n "checking for inet_aton... " >&6; }
12415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416/* end confdefs.h.  */
12417
12418#include <sys/types.h>
12419#include <sys/socket.h>
12420#include <netinet/in.h>
12421#include <arpa/inet.h>
12422
12423int
12424main ()
12425{
12426void* p = inet_aton;inet_aton(0,0)
12427  ;
12428  return 0;
12429}
12430_ACEOF
12431if ac_fn_c_try_link "$LINENO"; then :
12432
12433$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
12434
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12436$as_echo "yes" >&6; }
12437else
12438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439$as_echo "no" >&6; }
12440
12441fi
12442rm -f core conftest.err conftest.$ac_objext \
12443    conftest$ac_exeext conftest.$ac_ext
12444
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
12446$as_echo_n "checking for inet_pton... " >&6; }
12447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448/* end confdefs.h.  */
12449
12450#include <sys/types.h>
12451#include <sys/socket.h>
12452#include <netinet/in.h>
12453#include <arpa/inet.h>
12454
12455int
12456main ()
12457{
12458void* p = inet_pton
12459  ;
12460  return 0;
12461}
12462_ACEOF
12463if ac_fn_c_try_compile "$LINENO"; then :
12464
12465$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
12466
12467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12468$as_echo "yes" >&6; }
12469else
12470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471$as_echo "no" >&6; }
12472
12473fi
12474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475
12476# On some systems, setgroups is in unistd.h, on others, in grp.h
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
12478$as_echo_n "checking for setgroups... " >&6; }
12479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h.  */
12481
12482#include <unistd.h>
12483#ifdef HAVE_GRP_H
12484#include <grp.h>
12485#endif
12486
12487int
12488main ()
12489{
12490void* p = setgroups
12491  ;
12492  return 0;
12493}
12494_ACEOF
12495if ac_fn_c_try_compile "$LINENO"; then :
12496
12497$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
12498
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500$as_echo "yes" >&6; }
12501else
12502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
12504
12505fi
12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507
12508# check for openpty and forkpty
12509
12510for ac_func in openpty
12511do :
12512  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
12513if test "x$ac_cv_func_openpty" = xyes; then :
12514  cat >>confdefs.h <<_ACEOF
12515#define HAVE_OPENPTY 1
12516_ACEOF
12517
12518else
12519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
12520$as_echo_n "checking for openpty in -lutil... " >&6; }
12521if ${ac_cv_lib_util_openpty+:} false; then :
12522  $as_echo_n "(cached) " >&6
12523else
12524  ac_check_lib_save_LIBS=$LIBS
12525LIBS="-lutil  $LIBS"
12526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527/* end confdefs.h.  */
12528
12529/* Override any GCC internal prototype to avoid an error.
12530   Use char because int might match the return type of a GCC
12531   builtin and then its argument prototype would still apply.  */
12532#ifdef __cplusplus
12533extern "C"
12534#endif
12535char openpty ();
12536int
12537main ()
12538{
12539return openpty ();
12540  ;
12541  return 0;
12542}
12543_ACEOF
12544if ac_fn_c_try_link "$LINENO"; then :
12545  ac_cv_lib_util_openpty=yes
12546else
12547  ac_cv_lib_util_openpty=no
12548fi
12549rm -f core conftest.err conftest.$ac_objext \
12550    conftest$ac_exeext conftest.$ac_ext
12551LIBS=$ac_check_lib_save_LIBS
12552fi
12553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
12554$as_echo "$ac_cv_lib_util_openpty" >&6; }
12555if test "x$ac_cv_lib_util_openpty" = xyes; then :
12556  $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12557 LIBS="$LIBS -lutil"
12558else
12559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
12560$as_echo_n "checking for openpty in -lbsd... " >&6; }
12561if ${ac_cv_lib_bsd_openpty+:} false; then :
12562  $as_echo_n "(cached) " >&6
12563else
12564  ac_check_lib_save_LIBS=$LIBS
12565LIBS="-lbsd  $LIBS"
12566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567/* end confdefs.h.  */
12568
12569/* Override any GCC internal prototype to avoid an error.
12570   Use char because int might match the return type of a GCC
12571   builtin and then its argument prototype would still apply.  */
12572#ifdef __cplusplus
12573extern "C"
12574#endif
12575char openpty ();
12576int
12577main ()
12578{
12579return openpty ();
12580  ;
12581  return 0;
12582}
12583_ACEOF
12584if ac_fn_c_try_link "$LINENO"; then :
12585  ac_cv_lib_bsd_openpty=yes
12586else
12587  ac_cv_lib_bsd_openpty=no
12588fi
12589rm -f core conftest.err conftest.$ac_objext \
12590    conftest$ac_exeext conftest.$ac_ext
12591LIBS=$ac_check_lib_save_LIBS
12592fi
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
12594$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
12595if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
12596  $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12597 LIBS="$LIBS -lbsd"
12598fi
12599
12600
12601fi
12602
12603
12604fi
12605done
12606
12607for ac_func in forkpty
12608do :
12609  ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
12610if test "x$ac_cv_func_forkpty" = xyes; then :
12611  cat >>confdefs.h <<_ACEOF
12612#define HAVE_FORKPTY 1
12613_ACEOF
12614
12615else
12616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
12617$as_echo_n "checking for forkpty in -lutil... " >&6; }
12618if ${ac_cv_lib_util_forkpty+:} false; then :
12619  $as_echo_n "(cached) " >&6
12620else
12621  ac_check_lib_save_LIBS=$LIBS
12622LIBS="-lutil  $LIBS"
12623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624/* end confdefs.h.  */
12625
12626/* Override any GCC internal prototype to avoid an error.
12627   Use char because int might match the return type of a GCC
12628   builtin and then its argument prototype would still apply.  */
12629#ifdef __cplusplus
12630extern "C"
12631#endif
12632char forkpty ();
12633int
12634main ()
12635{
12636return forkpty ();
12637  ;
12638  return 0;
12639}
12640_ACEOF
12641if ac_fn_c_try_link "$LINENO"; then :
12642  ac_cv_lib_util_forkpty=yes
12643else
12644  ac_cv_lib_util_forkpty=no
12645fi
12646rm -f core conftest.err conftest.$ac_objext \
12647    conftest$ac_exeext conftest.$ac_ext
12648LIBS=$ac_check_lib_save_LIBS
12649fi
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
12651$as_echo "$ac_cv_lib_util_forkpty" >&6; }
12652if test "x$ac_cv_lib_util_forkpty" = xyes; then :
12653  $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
12654 LIBS="$LIBS -lutil"
12655else
12656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
12657$as_echo_n "checking for forkpty in -lbsd... " >&6; }
12658if ${ac_cv_lib_bsd_forkpty+:} false; then :
12659  $as_echo_n "(cached) " >&6
12660else
12661  ac_check_lib_save_LIBS=$LIBS
12662LIBS="-lbsd  $LIBS"
12663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664/* end confdefs.h.  */
12665
12666/* Override any GCC internal prototype to avoid an error.
12667   Use char because int might match the return type of a GCC
12668   builtin and then its argument prototype would still apply.  */
12669#ifdef __cplusplus
12670extern "C"
12671#endif
12672char forkpty ();
12673int
12674main ()
12675{
12676return forkpty ();
12677  ;
12678  return 0;
12679}
12680_ACEOF
12681if ac_fn_c_try_link "$LINENO"; then :
12682  ac_cv_lib_bsd_forkpty=yes
12683else
12684  ac_cv_lib_bsd_forkpty=no
12685fi
12686rm -f core conftest.err conftest.$ac_objext \
12687    conftest$ac_exeext conftest.$ac_ext
12688LIBS=$ac_check_lib_save_LIBS
12689fi
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
12691$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
12692if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
12693  $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
12694 LIBS="$LIBS -lbsd"
12695fi
12696
12697
12698fi
12699
12700
12701fi
12702done
12703
12704
12705# check for long file support functions
12706for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
12707do :
12708  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12709ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12710if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12711  cat >>confdefs.h <<_ACEOF
12712#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12713_ACEOF
12714
12715fi
12716done
12717
12718
12719ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
12720if test "x$ac_cv_func_dup2" = xyes; then :
12721  $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12722
12723else
12724  case " $LIBOBJS " in
12725  *" dup2.$ac_objext "* ) ;;
12726  *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
12727 ;;
12728esac
12729
12730fi
12731
12732ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
12733if test "x$ac_cv_func_strdup" = xyes; then :
12734  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
12735
12736else
12737  case " $LIBOBJS " in
12738  *" strdup.$ac_objext "* ) ;;
12739  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
12740 ;;
12741esac
12742
12743fi
12744
12745
12746for ac_func in getpgrp
12747do :
12748  ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
12749if test "x$ac_cv_func_getpgrp" = xyes; then :
12750  cat >>confdefs.h <<_ACEOF
12751#define HAVE_GETPGRP 1
12752_ACEOF
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754/* end confdefs.h.  */
12755#include <unistd.h>
12756int
12757main ()
12758{
12759getpgrp(0);
12760  ;
12761  return 0;
12762}
12763_ACEOF
12764if ac_fn_c_try_compile "$LINENO"; then :
12765
12766$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
12767
12768fi
12769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770
12771fi
12772done
12773
12774for ac_func in setpgrp
12775do :
12776  ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
12777if test "x$ac_cv_func_setpgrp" = xyes; then :
12778  cat >>confdefs.h <<_ACEOF
12779#define HAVE_SETPGRP 1
12780_ACEOF
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782/* end confdefs.h.  */
12783#include <unistd.h>
12784int
12785main ()
12786{
12787setpgrp(0,0);
12788  ;
12789  return 0;
12790}
12791_ACEOF
12792if ac_fn_c_try_compile "$LINENO"; then :
12793
12794$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
12795
12796fi
12797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798
12799fi
12800done
12801
12802for ac_func in gettimeofday
12803do :
12804  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12805if test "x$ac_cv_func_gettimeofday" = xyes; then :
12806  cat >>confdefs.h <<_ACEOF
12807#define HAVE_GETTIMEOFDAY 1
12808_ACEOF
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810/* end confdefs.h.  */
12811#include <sys/time.h>
12812int
12813main ()
12814{
12815gettimeofday((struct timeval*)0,(struct timezone*)0);
12816  ;
12817  return 0;
12818}
12819_ACEOF
12820if ac_fn_c_try_compile "$LINENO"; then :
12821
12822else
12823
12824$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
12825
12826
12827fi
12828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829
12830fi
12831done
12832
12833
12834# We search for both crypt and crypt_r as one or the other may be defined
12835# This gets us our -lcrypt in LIBS when required on the target platform.
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12837$as_echo_n "checking for library containing crypt... " >&6; }
12838if ${ac_cv_search_crypt+:} false; then :
12839  $as_echo_n "(cached) " >&6
12840else
12841  ac_func_search_save_LIBS=$LIBS
12842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843/* end confdefs.h.  */
12844
12845/* Override any GCC internal prototype to avoid an error.
12846   Use char because int might match the return type of a GCC
12847   builtin and then its argument prototype would still apply.  */
12848#ifdef __cplusplus
12849extern "C"
12850#endif
12851char crypt ();
12852int
12853main ()
12854{
12855return crypt ();
12856  ;
12857  return 0;
12858}
12859_ACEOF
12860for ac_lib in '' crypt; do
12861  if test -z "$ac_lib"; then
12862    ac_res="none required"
12863  else
12864    ac_res=-l$ac_lib
12865    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12866  fi
12867  if ac_fn_c_try_link "$LINENO"; then :
12868  ac_cv_search_crypt=$ac_res
12869fi
12870rm -f core conftest.err conftest.$ac_objext \
12871    conftest$ac_exeext
12872  if ${ac_cv_search_crypt+:} false; then :
12873  break
12874fi
12875done
12876if ${ac_cv_search_crypt+:} false; then :
12877
12878else
12879  ac_cv_search_crypt=no
12880fi
12881rm conftest.$ac_ext
12882LIBS=$ac_func_search_save_LIBS
12883fi
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12885$as_echo "$ac_cv_search_crypt" >&6; }
12886ac_res=$ac_cv_search_crypt
12887if test "$ac_res" != no; then :
12888  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12889
12890fi
12891
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
12893$as_echo_n "checking for library containing crypt_r... " >&6; }
12894if ${ac_cv_search_crypt_r+:} false; then :
12895  $as_echo_n "(cached) " >&6
12896else
12897  ac_func_search_save_LIBS=$LIBS
12898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899/* end confdefs.h.  */
12900
12901/* Override any GCC internal prototype to avoid an error.
12902   Use char because int might match the return type of a GCC
12903   builtin and then its argument prototype would still apply.  */
12904#ifdef __cplusplus
12905extern "C"
12906#endif
12907char crypt_r ();
12908int
12909main ()
12910{
12911return crypt_r ();
12912  ;
12913  return 0;
12914}
12915_ACEOF
12916for ac_lib in '' crypt; do
12917  if test -z "$ac_lib"; then
12918    ac_res="none required"
12919  else
12920    ac_res=-l$ac_lib
12921    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12922  fi
12923  if ac_fn_c_try_link "$LINENO"; then :
12924  ac_cv_search_crypt_r=$ac_res
12925fi
12926rm -f core conftest.err conftest.$ac_objext \
12927    conftest$ac_exeext
12928  if ${ac_cv_search_crypt_r+:} false; then :
12929  break
12930fi
12931done
12932if ${ac_cv_search_crypt_r+:} false; then :
12933
12934else
12935  ac_cv_search_crypt_r=no
12936fi
12937rm conftest.$ac_ext
12938LIBS=$ac_func_search_save_LIBS
12939fi
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
12941$as_echo "$ac_cv_search_crypt_r" >&6; }
12942ac_res=$ac_cv_search_crypt_r
12943if test "$ac_res" != no; then :
12944  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12945
12946fi
12947
12948
12949ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
12950if test "x$ac_cv_func_crypt_r" = xyes; then :
12951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952/* end confdefs.h.  */
12953
12954#define _GNU_SOURCE  /* Required for crypt_r()'s prototype in glibc. */
12955#include <crypt.h>
12956
12957int
12958main ()
12959{
12960
12961struct crypt_data d;
12962char *r = crypt_r("", "", &d);
12963
12964  ;
12965  return 0;
12966}
12967_ACEOF
12968if ac_fn_c_try_compile "$LINENO"; then :
12969
12970$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
12971
12972fi
12973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12974
12975fi
12976
12977
12978for ac_func in clock_gettime
12979do :
12980  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12981if test "x$ac_cv_func_clock_gettime" = xyes; then :
12982  cat >>confdefs.h <<_ACEOF
12983#define HAVE_CLOCK_GETTIME 1
12984_ACEOF
12985
12986else
12987
12988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12989$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12990if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12991  $as_echo_n "(cached) " >&6
12992else
12993  ac_check_lib_save_LIBS=$LIBS
12994LIBS="-lrt  $LIBS"
12995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996/* end confdefs.h.  */
12997
12998/* Override any GCC internal prototype to avoid an error.
12999   Use char because int might match the return type of a GCC
13000   builtin and then its argument prototype would still apply.  */
13001#ifdef __cplusplus
13002extern "C"
13003#endif
13004char clock_gettime ();
13005int
13006main ()
13007{
13008return clock_gettime ();
13009  ;
13010  return 0;
13011}
13012_ACEOF
13013if ac_fn_c_try_link "$LINENO"; then :
13014  ac_cv_lib_rt_clock_gettime=yes
13015else
13016  ac_cv_lib_rt_clock_gettime=no
13017fi
13018rm -f core conftest.err conftest.$ac_objext \
13019    conftest$ac_exeext conftest.$ac_ext
13020LIBS=$ac_check_lib_save_LIBS
13021fi
13022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13023$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13024if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13025
13026        LIBS="$LIBS -lrt"
13027        $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13028
13029
13030$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h
13031
13032
13033fi
13034
13035
13036fi
13037done
13038
13039
13040for ac_func in clock_getres
13041do :
13042  ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
13043if test "x$ac_cv_func_clock_getres" = xyes; then :
13044  cat >>confdefs.h <<_ACEOF
13045#define HAVE_CLOCK_GETRES 1
13046_ACEOF
13047
13048else
13049
13050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
13051$as_echo_n "checking for clock_getres in -lrt... " >&6; }
13052if ${ac_cv_lib_rt_clock_getres+:} false; then :
13053  $as_echo_n "(cached) " >&6
13054else
13055  ac_check_lib_save_LIBS=$LIBS
13056LIBS="-lrt  $LIBS"
13057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058/* end confdefs.h.  */
13059
13060/* Override any GCC internal prototype to avoid an error.
13061   Use char because int might match the return type of a GCC
13062   builtin and then its argument prototype would still apply.  */
13063#ifdef __cplusplus
13064extern "C"
13065#endif
13066char clock_getres ();
13067int
13068main ()
13069{
13070return clock_getres ();
13071  ;
13072  return 0;
13073}
13074_ACEOF
13075if ac_fn_c_try_link "$LINENO"; then :
13076  ac_cv_lib_rt_clock_getres=yes
13077else
13078  ac_cv_lib_rt_clock_getres=no
13079fi
13080rm -f core conftest.err conftest.$ac_objext \
13081    conftest$ac_exeext conftest.$ac_ext
13082LIBS=$ac_check_lib_save_LIBS
13083fi
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
13085$as_echo "$ac_cv_lib_rt_clock_getres" >&6; }
13086if test "x$ac_cv_lib_rt_clock_getres" = xyes; then :
13087
13088        $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
13089
13090
13091fi
13092
13093
13094fi
13095done
13096
13097
13098for ac_func in clock_settime
13099do :
13100  ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
13101if test "x$ac_cv_func_clock_settime" = xyes; then :
13102  cat >>confdefs.h <<_ACEOF
13103#define HAVE_CLOCK_SETTIME 1
13104_ACEOF
13105
13106else
13107
13108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
13109$as_echo_n "checking for clock_settime in -lrt... " >&6; }
13110if ${ac_cv_lib_rt_clock_settime+:} false; then :
13111  $as_echo_n "(cached) " >&6
13112else
13113  ac_check_lib_save_LIBS=$LIBS
13114LIBS="-lrt  $LIBS"
13115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116/* end confdefs.h.  */
13117
13118/* Override any GCC internal prototype to avoid an error.
13119   Use char because int might match the return type of a GCC
13120   builtin and then its argument prototype would still apply.  */
13121#ifdef __cplusplus
13122extern "C"
13123#endif
13124char clock_settime ();
13125int
13126main ()
13127{
13128return clock_settime ();
13129  ;
13130  return 0;
13131}
13132_ACEOF
13133if ac_fn_c_try_link "$LINENO"; then :
13134  ac_cv_lib_rt_clock_settime=yes
13135else
13136  ac_cv_lib_rt_clock_settime=no
13137fi
13138rm -f core conftest.err conftest.$ac_objext \
13139    conftest$ac_exeext conftest.$ac_ext
13140LIBS=$ac_check_lib_save_LIBS
13141fi
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
13143$as_echo "$ac_cv_lib_rt_clock_settime" >&6; }
13144if test "x$ac_cv_lib_rt_clock_settime" = xyes; then :
13145
13146        $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
13147
13148
13149fi
13150
13151
13152fi
13153done
13154
13155
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
13157$as_echo_n "checking for major... " >&6; }
13158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h.  */
13160
13161#if defined(MAJOR_IN_MKDEV)
13162#include <sys/mkdev.h>
13163#elif defined(MAJOR_IN_SYSMACROS)
13164#include <sys/sysmacros.h>
13165#else
13166#include <sys/types.h>
13167#endif
13168
13169int
13170main ()
13171{
13172
13173  makedev(major(0),minor(0));
13174
13175  ;
13176  return 0;
13177}
13178_ACEOF
13179if ac_fn_c_try_link "$LINENO"; then :
13180
13181
13182$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
13183
13184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185$as_echo "yes" >&6; }
13186
13187else
13188
13189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190$as_echo "no" >&6; }
13191
13192fi
13193rm -f core conftest.err conftest.$ac_objext \
13194    conftest$ac_exeext conftest.$ac_ext
13195
13196# On OSF/1 V5.1, getaddrinfo is available, but a define
13197# for [no]getaddrinfo in netdb.h.
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13199$as_echo_n "checking for getaddrinfo... " >&6; }
13200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201/* end confdefs.h.  */
13202
13203#include <sys/types.h>
13204#include <sys/socket.h>
13205#include <netdb.h>
13206#include <stdio.h>
13207
13208int
13209main ()
13210{
13211getaddrinfo(NULL, NULL, NULL, NULL);
13212  ;
13213  return 0;
13214}
13215_ACEOF
13216if ac_fn_c_try_link "$LINENO"; then :
13217  have_getaddrinfo=yes
13218else
13219  have_getaddrinfo=no
13220fi
13221rm -f core conftest.err conftest.$ac_objext \
13222    conftest$ac_exeext conftest.$ac_ext
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
13224$as_echo "$have_getaddrinfo" >&6; }
13225if test $have_getaddrinfo = yes
13226then
13227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
13228$as_echo_n "checking getaddrinfo bug... " >&6; }
13229  if ${ac_cv_buggy_getaddrinfo+:} false; then :
13230  $as_echo_n "(cached) " >&6
13231else
13232  if test "$cross_compiling" = yes; then :
13233
13234if test "${enable_ipv6+set}" = set; then
13235  ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
13236else
13237  ac_cv_buggy_getaddrinfo=yes
13238fi
13239else
13240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241/* end confdefs.h.  */
13242
13243#include <stdio.h>
13244#include <sys/types.h>
13245#include <netdb.h>
13246#include <string.h>
13247#include <sys/socket.h>
13248#include <netinet/in.h>
13249
13250int main()
13251{
13252  int passive, gaierr, inet4 = 0, inet6 = 0;
13253  struct addrinfo hints, *ai, *aitop;
13254  char straddr[INET6_ADDRSTRLEN], strport[16];
13255
13256  for (passive = 0; passive <= 1; passive++) {
13257    memset(&hints, 0, sizeof(hints));
13258    hints.ai_family = AF_UNSPEC;
13259    hints.ai_flags = passive ? AI_PASSIVE : 0;
13260    hints.ai_socktype = SOCK_STREAM;
13261    hints.ai_protocol = IPPROTO_TCP;
13262    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13263      (void)gai_strerror(gaierr);
13264      goto bad;
13265    }
13266    for (ai = aitop; ai; ai = ai->ai_next) {
13267      if (ai->ai_addr == NULL ||
13268          ai->ai_addrlen == 0 ||
13269          getnameinfo(ai->ai_addr, ai->ai_addrlen,
13270                      straddr, sizeof(straddr), strport, sizeof(strport),
13271                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13272        goto bad;
13273      }
13274      switch (ai->ai_family) {
13275      case AF_INET:
13276        if (strcmp(strport, "54321") != 0) {
13277          goto bad;
13278        }
13279        if (passive) {
13280          if (strcmp(straddr, "0.0.0.0") != 0) {
13281            goto bad;
13282          }
13283        } else {
13284          if (strcmp(straddr, "127.0.0.1") != 0) {
13285            goto bad;
13286          }
13287        }
13288        inet4++;
13289        break;
13290      case AF_INET6:
13291        if (strcmp(strport, "54321") != 0) {
13292          goto bad;
13293        }
13294        if (passive) {
13295          if (strcmp(straddr, "::") != 0) {
13296            goto bad;
13297          }
13298        } else {
13299          if (strcmp(straddr, "::1") != 0) {
13300            goto bad;
13301          }
13302        }
13303        inet6++;
13304        break;
13305      case AF_UNSPEC:
13306        goto bad;
13307        break;
13308      default:
13309        /* another family support? */
13310        break;
13311      }
13312    }
13313    freeaddrinfo(aitop);
13314    aitop = NULL;
13315  }
13316
13317  if (!(inet4 == 0 || inet4 == 2))
13318    goto bad;
13319  if (!(inet6 == 0 || inet6 == 2))
13320    goto bad;
13321
13322  if (aitop)
13323    freeaddrinfo(aitop);
13324  return 0;
13325
13326 bad:
13327  if (aitop)
13328    freeaddrinfo(aitop);
13329  return 1;
13330}
13331
13332_ACEOF
13333if ac_fn_c_try_run "$LINENO"; then :
13334  ac_cv_buggy_getaddrinfo=no
13335else
13336  ac_cv_buggy_getaddrinfo=yes
13337fi
13338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13339  conftest.$ac_objext conftest.beam conftest.$ac_ext
13340fi
13341
13342fi
13343
13344fi
13345
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
13347$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
13348
13349if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
13350then
13351	if test $ipv6 = yes
13352	then
13353		echo 'Fatal: You must get working getaddrinfo() function.'
13354		echo '       or you can specify "--disable-ipv6"'.
13355		exit 1
13356	fi
13357else
13358
13359$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13360
13361fi
13362
13363for ac_func in getnameinfo
13364do :
13365  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13366if test "x$ac_cv_func_getnameinfo" = xyes; then :
13367  cat >>confdefs.h <<_ACEOF
13368#define HAVE_GETNAMEINFO 1
13369_ACEOF
13370
13371fi
13372done
13373
13374
13375# checks for structures
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13377$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13378if ${ac_cv_header_time+:} false; then :
13379  $as_echo_n "(cached) " >&6
13380else
13381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382/* end confdefs.h.  */
13383#include <sys/types.h>
13384#include <sys/time.h>
13385#include <time.h>
13386
13387int
13388main ()
13389{
13390if ((struct tm *) 0)
13391return 0;
13392  ;
13393  return 0;
13394}
13395_ACEOF
13396if ac_fn_c_try_compile "$LINENO"; then :
13397  ac_cv_header_time=yes
13398else
13399  ac_cv_header_time=no
13400fi
13401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402fi
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13404$as_echo "$ac_cv_header_time" >&6; }
13405if test $ac_cv_header_time = yes; then
13406
13407$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13408
13409fi
13410
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13412$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13413if ${ac_cv_struct_tm+:} false; then :
13414  $as_echo_n "(cached) " >&6
13415else
13416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417/* end confdefs.h.  */
13418#include <sys/types.h>
13419#include <time.h>
13420
13421int
13422main ()
13423{
13424struct tm tm;
13425				     int *p = &tm.tm_sec;
13426				     return !p;
13427  ;
13428  return 0;
13429}
13430_ACEOF
13431if ac_fn_c_try_compile "$LINENO"; then :
13432  ac_cv_struct_tm=time.h
13433else
13434  ac_cv_struct_tm=sys/time.h
13435fi
13436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437fi
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13439$as_echo "$ac_cv_struct_tm" >&6; }
13440if test $ac_cv_struct_tm = sys/time.h; then
13441
13442$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13443
13444fi
13445
13446ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13447#include <$ac_cv_struct_tm>
13448
13449"
13450if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13451
13452cat >>confdefs.h <<_ACEOF
13453#define HAVE_STRUCT_TM_TM_ZONE 1
13454_ACEOF
13455
13456
13457fi
13458
13459if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13460
13461$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13462
13463else
13464  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13465"
13466if test "x$ac_cv_have_decl_tzname" = xyes; then :
13467  ac_have_decl=1
13468else
13469  ac_have_decl=0
13470fi
13471
13472cat >>confdefs.h <<_ACEOF
13473#define HAVE_DECL_TZNAME $ac_have_decl
13474_ACEOF
13475
13476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13477$as_echo_n "checking for tzname... " >&6; }
13478if ${ac_cv_var_tzname+:} false; then :
13479  $as_echo_n "(cached) " >&6
13480else
13481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482/* end confdefs.h.  */
13483#include <time.h>
13484#if !HAVE_DECL_TZNAME
13485extern char *tzname[];
13486#endif
13487
13488int
13489main ()
13490{
13491return tzname[0][0];
13492  ;
13493  return 0;
13494}
13495_ACEOF
13496if ac_fn_c_try_link "$LINENO"; then :
13497  ac_cv_var_tzname=yes
13498else
13499  ac_cv_var_tzname=no
13500fi
13501rm -f core conftest.err conftest.$ac_objext \
13502    conftest$ac_exeext conftest.$ac_ext
13503fi
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13505$as_echo "$ac_cv_var_tzname" >&6; }
13506  if test $ac_cv_var_tzname = yes; then
13507
13508$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13509
13510  fi
13511fi
13512
13513ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13514if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
13515
13516cat >>confdefs.h <<_ACEOF
13517#define HAVE_STRUCT_STAT_ST_RDEV 1
13518_ACEOF
13519
13520
13521fi
13522
13523ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13524if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
13525
13526cat >>confdefs.h <<_ACEOF
13527#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13528_ACEOF
13529
13530
13531fi
13532
13533ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
13534if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
13535
13536cat >>confdefs.h <<_ACEOF
13537#define HAVE_STRUCT_STAT_ST_FLAGS 1
13538_ACEOF
13539
13540
13541fi
13542
13543ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
13544if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
13545
13546cat >>confdefs.h <<_ACEOF
13547#define HAVE_STRUCT_STAT_ST_GEN 1
13548_ACEOF
13549
13550
13551fi
13552
13553ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
13554if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
13555
13556cat >>confdefs.h <<_ACEOF
13557#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
13558_ACEOF
13559
13560
13561fi
13562
13563ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13564if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13565
13566cat >>confdefs.h <<_ACEOF
13567#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13568_ACEOF
13569
13570
13571fi
13572
13573ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
13574  #include <sys/types.h>
13575  #include <pwd.h>
13576
13577"
13578if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
13579
13580cat >>confdefs.h <<_ACEOF
13581#define HAVE_STRUCT_PASSWD_PW_GECOS 1
13582_ACEOF
13583
13584
13585fi
13586ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
13587  #include <sys/types.h>
13588  #include <pwd.h>
13589
13590"
13591if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
13592
13593cat >>confdefs.h <<_ACEOF
13594#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
13595_ACEOF
13596
13597
13598fi
13599
13600# Issue #21085: In Cygwin, siginfo_t does not have si_band field.
13601ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
13602"
13603if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then :
13604
13605cat >>confdefs.h <<_ACEOF
13606#define HAVE_SIGINFO_T_SI_BAND 1
13607_ACEOF
13608
13609
13610fi
13611
13612
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
13614$as_echo_n "checking for time.h that defines altzone... " >&6; }
13615if ${ac_cv_header_time_altzone+:} false; then :
13616  $as_echo_n "(cached) " >&6
13617else
13618
13619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620/* end confdefs.h.  */
13621#include <time.h>
13622int
13623main ()
13624{
13625return altzone;
13626  ;
13627  return 0;
13628}
13629_ACEOF
13630if ac_fn_c_try_compile "$LINENO"; then :
13631  ac_cv_header_time_altzone=yes
13632else
13633  ac_cv_header_time_altzone=no
13634fi
13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636
13637fi
13638
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
13640$as_echo "$ac_cv_header_time_altzone" >&6; }
13641if test $ac_cv_header_time_altzone = yes; then
13642
13643$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
13644
13645fi
13646
13647was_it_defined=no
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
13649$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h.  */
13652
13653#include <sys/types.h>
13654#include <sys/select.h>
13655#include <sys/time.h>
13656
13657int
13658main ()
13659{
13660;
13661  ;
13662  return 0;
13663}
13664_ACEOF
13665if ac_fn_c_try_compile "$LINENO"; then :
13666
13667
13668$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
13669
13670  was_it_defined=yes
13671
13672fi
13673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
13675$as_echo "$was_it_defined" >&6; }
13676
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
13678$as_echo_n "checking for addrinfo... " >&6; }
13679if ${ac_cv_struct_addrinfo+:} false; then :
13680  $as_echo_n "(cached) " >&6
13681else
13682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683/* end confdefs.h.  */
13684#include <netdb.h>
13685int
13686main ()
13687{
13688struct addrinfo a
13689  ;
13690  return 0;
13691}
13692_ACEOF
13693if ac_fn_c_try_compile "$LINENO"; then :
13694  ac_cv_struct_addrinfo=yes
13695else
13696  ac_cv_struct_addrinfo=no
13697fi
13698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699fi
13700
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
13702$as_echo "$ac_cv_struct_addrinfo" >&6; }
13703if test $ac_cv_struct_addrinfo = yes; then
13704
13705$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
13706
13707fi
13708
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
13710$as_echo_n "checking for sockaddr_storage... " >&6; }
13711if ${ac_cv_struct_sockaddr_storage+:} false; then :
13712  $as_echo_n "(cached) " >&6
13713else
13714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715/* end confdefs.h.  */
13716
13717#		include <sys/types.h>
13718#		include <sys/socket.h>
13719int
13720main ()
13721{
13722struct sockaddr_storage s
13723  ;
13724  return 0;
13725}
13726_ACEOF
13727if ac_fn_c_try_compile "$LINENO"; then :
13728  ac_cv_struct_sockaddr_storage=yes
13729else
13730  ac_cv_struct_sockaddr_storage=no
13731fi
13732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733fi
13734
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
13736$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
13737if test $ac_cv_struct_sockaddr_storage = yes; then
13738
13739$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
13740
13741fi
13742
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
13744$as_echo_n "checking for sockaddr_alg... " >&6; }
13745if ${ac_cv_struct_sockaddr_alg+:} false; then :
13746  $as_echo_n "(cached) " >&6
13747else
13748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749/* end confdefs.h.  */
13750
13751#		include <sys/types.h>
13752#		include <sys/socket.h>
13753#		include <linux/if_alg.h>
13754int
13755main ()
13756{
13757struct sockaddr_alg s
13758  ;
13759  return 0;
13760}
13761_ACEOF
13762if ac_fn_c_try_compile "$LINENO"; then :
13763  ac_cv_struct_sockaddr_alg=yes
13764else
13765  ac_cv_struct_sockaddr_alg=no
13766fi
13767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768fi
13769
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
13771$as_echo "$ac_cv_struct_sockaddr_alg" >&6; }
13772if test $ac_cv_struct_sockaddr_alg = yes; then
13773
13774$as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
13775
13776fi
13777
13778# checks for compiler characteristics
13779
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
13781$as_echo_n "checking whether char is unsigned... " >&6; }
13782if ${ac_cv_c_char_unsigned+:} false; then :
13783  $as_echo_n "(cached) " >&6
13784else
13785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786/* end confdefs.h.  */
13787$ac_includes_default
13788int
13789main ()
13790{
13791static int test_array [1 - 2 * !(((char) -1) < 0)];
13792test_array [0] = 0;
13793return test_array [0];
13794
13795  ;
13796  return 0;
13797}
13798_ACEOF
13799if ac_fn_c_try_compile "$LINENO"; then :
13800  ac_cv_c_char_unsigned=no
13801else
13802  ac_cv_c_char_unsigned=yes
13803fi
13804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13805fi
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
13807$as_echo "$ac_cv_c_char_unsigned" >&6; }
13808if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
13809  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
13810
13811fi
13812
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13814$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13815if ${ac_cv_c_const+:} false; then :
13816  $as_echo_n "(cached) " >&6
13817else
13818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819/* end confdefs.h.  */
13820
13821int
13822main ()
13823{
13824
13825#ifndef __cplusplus
13826  /* Ultrix mips cc rejects this sort of thing.  */
13827  typedef int charset[2];
13828  const charset cs = { 0, 0 };
13829  /* SunOS 4.1.1 cc rejects this.  */
13830  char const *const *pcpcc;
13831  char **ppc;
13832  /* NEC SVR4.0.2 mips cc rejects this.  */
13833  struct point {int x, y;};
13834  static struct point const zero = {0,0};
13835  /* AIX XL C 1.02.0.0 rejects this.
13836     It does not let you subtract one const X* pointer from another in
13837     an arm of an if-expression whose if-part is not a constant
13838     expression */
13839  const char *g = "string";
13840  pcpcc = &g + (g ? g-g : 0);
13841  /* HPUX 7.0 cc rejects these. */
13842  ++pcpcc;
13843  ppc = (char**) pcpcc;
13844  pcpcc = (char const *const *) ppc;
13845  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13846    char tx;
13847    char *t = &tx;
13848    char const *s = 0 ? (char *) 0 : (char const *) 0;
13849
13850    *t++ = 0;
13851    if (s) return 0;
13852  }
13853  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13854    int x[] = {25, 17};
13855    const int *foo = &x[0];
13856    ++foo;
13857  }
13858  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13859    typedef const int *iptr;
13860    iptr p = 0;
13861    ++p;
13862  }
13863  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13864       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13865    struct s { int j; const int *ap[3]; } bx;
13866    struct s *b = &bx; b->j = 5;
13867  }
13868  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13869    const int foo = 10;
13870    if (!foo) return 0;
13871  }
13872  return !cs[0] && !zero.x;
13873#endif
13874
13875  ;
13876  return 0;
13877}
13878_ACEOF
13879if ac_fn_c_try_compile "$LINENO"; then :
13880  ac_cv_c_const=yes
13881else
13882  ac_cv_c_const=no
13883fi
13884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885fi
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13887$as_echo "$ac_cv_c_const" >&6; }
13888if test $ac_cv_c_const = no; then
13889
13890$as_echo "#define const /**/" >>confdefs.h
13891
13892fi
13893
13894
13895works=no
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
13897$as_echo_n "checking for working signed char... " >&6; }
13898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899/* end confdefs.h.  */
13900
13901int
13902main ()
13903{
13904signed char c;
13905  ;
13906  return 0;
13907}
13908_ACEOF
13909if ac_fn_c_try_compile "$LINENO"; then :
13910  works=yes
13911else
13912
13913$as_echo "#define signed /**/" >>confdefs.h
13914
13915
13916fi
13917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13919$as_echo "$works" >&6; }
13920
13921have_prototypes=no
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
13923$as_echo_n "checking for prototypes... " >&6; }
13924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925/* end confdefs.h.  */
13926int foo(int x) { return 0; }
13927int
13928main ()
13929{
13930return foo(10);
13931  ;
13932  return 0;
13933}
13934_ACEOF
13935if ac_fn_c_try_compile "$LINENO"; then :
13936
13937$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
13938
13939   have_prototypes=yes
13940fi
13941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
13943$as_echo "$have_prototypes" >&6; }
13944
13945works=no
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
13947$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
13948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949/* end confdefs.h.  */
13950
13951#include <stdarg.h>
13952int foo(int x, ...) {
13953	va_list va;
13954	va_start(va, x);
13955	va_arg(va, int);
13956	va_arg(va, char *);
13957	va_arg(va, double);
13958	return 0;
13959}
13960
13961int
13962main ()
13963{
13964return foo(10, "", 3.14);
13965  ;
13966  return 0;
13967}
13968_ACEOF
13969if ac_fn_c_try_compile "$LINENO"; then :
13970
13971
13972$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
13973
13974  works=yes
13975
13976fi
13977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13979$as_echo "$works" >&6; }
13980
13981# check for socketpair
13982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
13983$as_echo_n "checking for socketpair... " >&6; }
13984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985/* end confdefs.h.  */
13986
13987#include <sys/types.h>
13988#include <sys/socket.h>
13989
13990int
13991main ()
13992{
13993void *x=socketpair
13994  ;
13995  return 0;
13996}
13997_ACEOF
13998if ac_fn_c_try_compile "$LINENO"; then :
13999
14000$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
14001
14002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14003$as_echo "yes" >&6; }
14004else
14005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006$as_echo "no" >&6; }
14007
14008fi
14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010
14011# check if sockaddr has sa_len member
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
14013$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
14014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015/* end confdefs.h.  */
14016#include <sys/types.h>
14017#include <sys/socket.h>
14018int
14019main ()
14020{
14021struct sockaddr x;
14022x.sa_len = 0;
14023  ;
14024  return 0;
14025}
14026_ACEOF
14027if ac_fn_c_try_compile "$LINENO"; then :
14028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14029$as_echo "yes" >&6; }
14030
14031$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
14032
14033else
14034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035$as_echo "no" >&6; }
14036
14037fi
14038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14039
14040# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
14041
14042
14043ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
14044if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
14045
14046  $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14047
14048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
14049$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
14050  OLD_CFLAGS=$CFLAGS
14051  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
14052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053/* end confdefs.h.  */
14054
14055#   include <netdb.h>
14056
14057int
14058main ()
14059{
14060
14061    char *name;
14062    struct hostent *he, *res;
14063    char buffer[2048];
14064    int buflen = 2048;
14065    int h_errnop;
14066
14067    (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
14068
14069  ;
14070  return 0;
14071}
14072_ACEOF
14073if ac_fn_c_try_compile "$LINENO"; then :
14074
14075    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14076
14077
14078$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
14079
14080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14081$as_echo "yes" >&6; }
14082
14083else
14084
14085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14086$as_echo "no" >&6; }
14087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
14088$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
14089    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090/* end confdefs.h.  */
14091
14092#       include <netdb.h>
14093
14094int
14095main ()
14096{
14097
14098        char *name;
14099        struct hostent *he;
14100        char buffer[2048];
14101        int buflen = 2048;
14102        int h_errnop;
14103
14104        (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
14105
14106  ;
14107  return 0;
14108}
14109_ACEOF
14110if ac_fn_c_try_compile "$LINENO"; then :
14111
14112        $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14113
14114
14115$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
14116
14117        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14118$as_echo "yes" >&6; }
14119
14120else
14121
14122        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123$as_echo "no" >&6; }
14124        { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
14125$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
14126        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127/* end confdefs.h.  */
14128
14129#           include <netdb.h>
14130
14131int
14132main ()
14133{
14134
14135            char *name;
14136            struct hostent *he;
14137            struct hostent_data data;
14138
14139            (void) gethostbyname_r(name, he, &data);
14140
14141  ;
14142  return 0;
14143}
14144_ACEOF
14145if ac_fn_c_try_compile "$LINENO"; then :
14146
14147            $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14148
14149
14150$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
14151
14152            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14153$as_echo "yes" >&6; }
14154
14155else
14156
14157           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158$as_echo "no" >&6; }
14159
14160fi
14161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162
14163fi
14164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165
14166fi
14167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168  CFLAGS=$OLD_CFLAGS
14169
14170else
14171
14172  for ac_func in gethostbyname
14173do :
14174  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14175if test "x$ac_cv_func_gethostbyname" = xyes; then :
14176  cat >>confdefs.h <<_ACEOF
14177#define HAVE_GETHOSTBYNAME 1
14178_ACEOF
14179
14180fi
14181done
14182
14183
14184fi
14185
14186
14187
14188
14189
14190
14191
14192# checks for system services
14193# (none yet)
14194
14195# Linux requires this for correct f.p. operations
14196ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
14197if test "x$ac_cv_func___fpu_control" = xyes; then :
14198
14199else
14200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
14201$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
14202if ${ac_cv_lib_ieee___fpu_control+:} false; then :
14203  $as_echo_n "(cached) " >&6
14204else
14205  ac_check_lib_save_LIBS=$LIBS
14206LIBS="-lieee  $LIBS"
14207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208/* end confdefs.h.  */
14209
14210/* Override any GCC internal prototype to avoid an error.
14211   Use char because int might match the return type of a GCC
14212   builtin and then its argument prototype would still apply.  */
14213#ifdef __cplusplus
14214extern "C"
14215#endif
14216char __fpu_control ();
14217int
14218main ()
14219{
14220return __fpu_control ();
14221  ;
14222  return 0;
14223}
14224_ACEOF
14225if ac_fn_c_try_link "$LINENO"; then :
14226  ac_cv_lib_ieee___fpu_control=yes
14227else
14228  ac_cv_lib_ieee___fpu_control=no
14229fi
14230rm -f core conftest.err conftest.$ac_objext \
14231    conftest$ac_exeext conftest.$ac_ext
14232LIBS=$ac_check_lib_save_LIBS
14233fi
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
14235$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
14236if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
14237  cat >>confdefs.h <<_ACEOF
14238#define HAVE_LIBIEEE 1
14239_ACEOF
14240
14241  LIBS="-lieee $LIBS"
14242
14243fi
14244
14245
14246fi
14247
14248
14249# check for --with-libm=...
14250
14251case $ac_sys_system in
14252Darwin) ;;
14253*) LIBM=-lm
14254esac
14255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
14256$as_echo_n "checking for --with-libm=STRING... " >&6; }
14257
14258# Check whether --with-libm was given.
14259if test "${with_libm+set}" = set; then :
14260  withval=$with_libm;
14261if test "$withval" = no
14262then LIBM=
14263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
14264$as_echo "force LIBM empty" >&6; }
14265elif test "$withval" != yes
14266then LIBM=$withval
14267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
14268$as_echo "set LIBM=\"$withval\"" >&6; }
14269else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
14270fi
14271else
14272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
14273$as_echo "default LIBM=\"$LIBM\"" >&6; }
14274fi
14275
14276
14277# check for --with-libc=...
14278
14279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
14280$as_echo_n "checking for --with-libc=STRING... " >&6; }
14281
14282# Check whether --with-libc was given.
14283if test "${with_libc+set}" = set; then :
14284  withval=$with_libc;
14285if test "$withval" = no
14286then LIBC=
14287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
14288$as_echo "force LIBC empty" >&6; }
14289elif test "$withval" != yes
14290then LIBC=$withval
14291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
14292$as_echo "set LIBC=\"$withval\"" >&6; }
14293else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
14294fi
14295else
14296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
14297$as_echo "default LIBC=\"$LIBC\"" >&6; }
14298fi
14299
14300
14301# **************************************
14302# * Check for gcc x64 inline assembler *
14303# **************************************
14304
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
14306$as_echo_n "checking for x64 gcc inline assembler... " >&6; }
14307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308/* end confdefs.h.  */
14309
14310int
14311main ()
14312{
14313
14314  __asm__ __volatile__ ("movq %rcx, %rax");
14315
14316  ;
14317  return 0;
14318}
14319_ACEOF
14320if ac_fn_c_try_link "$LINENO"; then :
14321  have_gcc_asm_for_x64=yes
14322else
14323  have_gcc_asm_for_x64=no
14324fi
14325rm -f core conftest.err conftest.$ac_objext \
14326    conftest$ac_exeext conftest.$ac_ext
14327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
14328$as_echo "$have_gcc_asm_for_x64" >&6; }
14329if test "$have_gcc_asm_for_x64" = yes
14330then
14331
14332$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
14333
14334fi
14335
14336# **************************************************
14337# * Check for various properties of floating point *
14338# **************************************************
14339
14340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
14341$as_echo_n "checking whether float word ordering is bigendian... " >&6; }
14342if ${ax_cv_c_float_words_bigendian+:} false; then :
14343  $as_echo_n "(cached) " >&6
14344else
14345
14346
14347ax_cv_c_float_words_bigendian=unknown
14348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349/* end confdefs.h.  */
14350
14351
14352double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
14353
14354
14355_ACEOF
14356if ac_fn_c_try_compile "$LINENO"; then :
14357
14358
14359if grep noonsees conftest.$ac_objext >/dev/null ; then
14360  ax_cv_c_float_words_bigendian=yes
14361fi
14362if grep seesnoon conftest.$ac_objext >/dev/null ; then
14363  if test "$ax_cv_c_float_words_bigendian" = unknown; then
14364    ax_cv_c_float_words_bigendian=no
14365  else
14366    ax_cv_c_float_words_bigendian=unknown
14367  fi
14368fi
14369
14370
14371fi
14372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373fi
14374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
14375$as_echo "$ax_cv_c_float_words_bigendian" >&6; }
14376
14377case $ax_cv_c_float_words_bigendian in
14378  yes)
14379
14380$as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h
14381 ;;
14382  no)
14383     ;;
14384  *)
14385    as_fn_error $? "
14386
14387Unknown float word ordering. You need to manually preset
14388ax_cv_c_float_words_bigendian=no (or yes) according to your system.
14389
14390    " "$LINENO" 5 ;;
14391esac
14392
14393
14394if test "$ax_cv_c_float_words_bigendian" = "yes"
14395then
14396
14397$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
14398
14399elif test "$ax_cv_c_float_words_bigendian" = "no"
14400then
14401
14402$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
14403
14404else
14405  # Some ARM platforms use a mixed-endian representation for doubles.
14406  # While Python doesn't currently have full support for these platforms
14407  # (see e.g., issue 1762561), we can at least make sure that float <-> string
14408  # conversions work.
14409  # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big
14410  # or little, then it must be this?
14411
14412$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
14413
14414fi
14415
14416# The short float repr introduced in Python 3.1 requires the
14417# correctly-rounded string <-> double conversion functions from
14418# Python/dtoa.c, which in turn require that the FPU uses 53-bit
14419# rounding; this is a problem on x86, where the x87 FPU has a default
14420# rounding precision of 64 bits.  For gcc/x86, we can fix this by
14421# using inline assembler to get and set the x87 FPU control word.
14422
14423# This inline assembler syntax may also work for suncc and icc,
14424# so we try it on all platforms.
14425
14426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
14427$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
14428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429/* end confdefs.h.  */
14430
14431int
14432main ()
14433{
14434
14435  unsigned short cw;
14436  __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
14437  __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
14438
14439  ;
14440  return 0;
14441}
14442_ACEOF
14443if ac_fn_c_try_link "$LINENO"; then :
14444  have_gcc_asm_for_x87=yes
14445else
14446  have_gcc_asm_for_x87=no
14447fi
14448rm -f core conftest.err conftest.$ac_objext \
14449    conftest$ac_exeext conftest.$ac_ext
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
14451$as_echo "$have_gcc_asm_for_x87" >&6; }
14452if test "$have_gcc_asm_for_x87" = yes
14453then
14454
14455$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
14456
14457fi
14458
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
14460$as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
14461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462/* end confdefs.h.  */
14463
14464int
14465main ()
14466{
14467
14468  unsigned int fpcr;
14469  __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr));
14470  __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr));
14471
14472  ;
14473  return 0;
14474}
14475_ACEOF
14476if ac_fn_c_try_link "$LINENO"; then :
14477  have_gcc_asm_for_mc68881=yes
14478else
14479  have_gcc_asm_for_mc68881=no
14480fi
14481rm -f core conftest.err conftest.$ac_objext \
14482    conftest$ac_exeext conftest.$ac_ext
14483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5
14484$as_echo "$have_gcc_asm_for_mc68881" >&6; }
14485if test "$have_gcc_asm_for_mc68881" = yes
14486then
14487
14488$as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
14489
14490fi
14491
14492# Detect whether system arithmetic is subject to x87-style double
14493# rounding issues.  The result of this test has little meaning on non
14494# IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding
14495# mode is round-to-nearest and double rounding issues are present, and
14496# 0 otherwise.  See http://bugs.python.org/issue2937 for more info.
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
14498$as_echo_n "checking for x87-style double rounding... " >&6; }
14499# $BASECFLAGS may affect the result
14500ac_save_cc="$CC"
14501CC="$CC $BASECFLAGS"
14502if test "$cross_compiling" = yes; then :
14503  ac_cv_x87_double_rounding=no
14504else
14505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506/* end confdefs.h.  */
14507
14508#include <stdlib.h>
14509#include <math.h>
14510int main() {
14511    volatile double x, y, z;
14512    /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14513    x = 0.99999999999999989; /* 1-2**-53 */
14514    y = 1./x;
14515    if (y != 1.)
14516        exit(0);
14517    /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
14518    x = 1e16;
14519    y = 2.99999;
14520    z = x + y;
14521    if (z != 1e16+4.)
14522        exit(0);
14523    /* both tests show evidence of double rounding */
14524    exit(1);
14525}
14526
14527_ACEOF
14528if ac_fn_c_try_run "$LINENO"; then :
14529  ac_cv_x87_double_rounding=no
14530else
14531  ac_cv_x87_double_rounding=yes
14532fi
14533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14534  conftest.$ac_objext conftest.beam conftest.$ac_ext
14535fi
14536
14537CC="$ac_save_cc"
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
14539$as_echo "$ac_cv_x87_double_rounding" >&6; }
14540if test "$ac_cv_x87_double_rounding" = yes
14541then
14542
14543$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
14544
14545fi
14546
14547# ************************************
14548# * Check for mathematical functions *
14549# ************************************
14550
14551LIBS_SAVE=$LIBS
14552LIBS="$LIBS $LIBM"
14553
14554for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
14555do :
14556  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14557ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14558if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14559  cat >>confdefs.h <<_ACEOF
14560#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14561_ACEOF
14562
14563fi
14564done
14565
14566for ac_func in hypot lgamma log1p log2 round tgamma
14567do :
14568  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14569ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14570if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14571  cat >>confdefs.h <<_ACEOF
14572#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14573_ACEOF
14574
14575fi
14576done
14577
14578ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
14579"
14580if test "x$ac_cv_have_decl_isinf" = xyes; then :
14581  ac_have_decl=1
14582else
14583  ac_have_decl=0
14584fi
14585
14586cat >>confdefs.h <<_ACEOF
14587#define HAVE_DECL_ISINF $ac_have_decl
14588_ACEOF
14589ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
14590"
14591if test "x$ac_cv_have_decl_isnan" = xyes; then :
14592  ac_have_decl=1
14593else
14594  ac_have_decl=0
14595fi
14596
14597cat >>confdefs.h <<_ACEOF
14598#define HAVE_DECL_ISNAN $ac_have_decl
14599_ACEOF
14600ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
14601"
14602if test "x$ac_cv_have_decl_isfinite" = xyes; then :
14603  ac_have_decl=1
14604else
14605  ac_have_decl=0
14606fi
14607
14608cat >>confdefs.h <<_ACEOF
14609#define HAVE_DECL_ISFINITE $ac_have_decl
14610_ACEOF
14611
14612
14613# For multiprocessing module, check that sem_open
14614# actually works.  For FreeBSD versions <= 7.2,
14615# the kernel module that provides POSIX semaphores
14616# isn't loaded by default, so an attempt to call
14617# sem_open results in a 'Signal 12' error.
14618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
14619$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
14620if ${ac_cv_posix_semaphores_enabled+:} false; then :
14621  $as_echo_n "(cached) " >&6
14622else
14623  if test "$cross_compiling" = yes; then :
14624  ac_cv_posix_semaphores_enabled=yes
14625else
14626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627/* end confdefs.h.  */
14628
14629#include <unistd.h>
14630#include <fcntl.h>
14631#include <stdio.h>
14632#include <semaphore.h>
14633#include <sys/stat.h>
14634
14635int main(void) {
14636  sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
14637  if (a == SEM_FAILED) {
14638    perror("sem_open");
14639    return 1;
14640  }
14641  sem_close(a);
14642  sem_unlink("/autoconf");
14643  return 0;
14644}
14645
14646_ACEOF
14647if ac_fn_c_try_run "$LINENO"; then :
14648  ac_cv_posix_semaphores_enabled=yes
14649else
14650  ac_cv_posix_semaphores_enabled=no
14651fi
14652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14653  conftest.$ac_objext conftest.beam conftest.$ac_ext
14654fi
14655
14656
14657fi
14658
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
14660$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
14661if test $ac_cv_posix_semaphores_enabled = no
14662then
14663
14664$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
14665
14666fi
14667
14668# Multiprocessing check for broken sem_getvalue
14669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
14670$as_echo_n "checking for broken sem_getvalue... " >&6; }
14671if ${ac_cv_broken_sem_getvalue+:} false; then :
14672  $as_echo_n "(cached) " >&6
14673else
14674  if test "$cross_compiling" = yes; then :
14675  ac_cv_broken_sem_getvalue=yes
14676else
14677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678/* end confdefs.h.  */
14679
14680#include <unistd.h>
14681#include <fcntl.h>
14682#include <stdio.h>
14683#include <semaphore.h>
14684#include <sys/stat.h>
14685
14686int main(void){
14687  sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
14688  int count;
14689  int res;
14690  if(a==SEM_FAILED){
14691    perror("sem_open");
14692    return 1;
14693
14694  }
14695  res = sem_getvalue(a, &count);
14696  sem_close(a);
14697  sem_unlink("/autocftw");
14698  return res==-1 ? 1 : 0;
14699}
14700
14701_ACEOF
14702if ac_fn_c_try_run "$LINENO"; then :
14703  ac_cv_broken_sem_getvalue=no
14704else
14705  ac_cv_broken_sem_getvalue=yes
14706fi
14707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14708  conftest.$ac_objext conftest.beam conftest.$ac_ext
14709fi
14710
14711
14712fi
14713
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
14715$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
14716if test $ac_cv_broken_sem_getvalue = yes
14717then
14718
14719$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
14720
14721fi
14722
14723ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
14724"
14725if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then :
14726  ac_have_decl=1
14727else
14728  ac_have_decl=0
14729fi
14730
14731cat >>confdefs.h <<_ACEOF
14732#define HAVE_DECL_RTLD_LAZY $ac_have_decl
14733_ACEOF
14734ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
14735"
14736if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
14737  ac_have_decl=1
14738else
14739  ac_have_decl=0
14740fi
14741
14742cat >>confdefs.h <<_ACEOF
14743#define HAVE_DECL_RTLD_NOW $ac_have_decl
14744_ACEOF
14745ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
14746"
14747if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then :
14748  ac_have_decl=1
14749else
14750  ac_have_decl=0
14751fi
14752
14753cat >>confdefs.h <<_ACEOF
14754#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
14755_ACEOF
14756ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
14757"
14758if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then :
14759  ac_have_decl=1
14760else
14761  ac_have_decl=0
14762fi
14763
14764cat >>confdefs.h <<_ACEOF
14765#define HAVE_DECL_RTLD_LOCAL $ac_have_decl
14766_ACEOF
14767ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
14768"
14769if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then :
14770  ac_have_decl=1
14771else
14772  ac_have_decl=0
14773fi
14774
14775cat >>confdefs.h <<_ACEOF
14776#define HAVE_DECL_RTLD_NODELETE $ac_have_decl
14777_ACEOF
14778ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
14779"
14780if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then :
14781  ac_have_decl=1
14782else
14783  ac_have_decl=0
14784fi
14785
14786cat >>confdefs.h <<_ACEOF
14787#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl
14788_ACEOF
14789ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
14790"
14791if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then :
14792  ac_have_decl=1
14793else
14794  ac_have_decl=0
14795fi
14796
14797cat >>confdefs.h <<_ACEOF
14798#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl
14799_ACEOF
14800ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
14801"
14802if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then :
14803  ac_have_decl=1
14804else
14805  ac_have_decl=0
14806fi
14807
14808cat >>confdefs.h <<_ACEOF
14809#define HAVE_DECL_RTLD_MEMBER $ac_have_decl
14810_ACEOF
14811
14812
14813# determine what size digit to use for Python's longs
14814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
14815$as_echo_n "checking digit size for Python's longs... " >&6; }
14816# Check whether --enable-big-digits was given.
14817if test "${enable_big_digits+set}" = set; then :
14818  enableval=$enable_big_digits; case $enable_big_digits in
14819yes)
14820  enable_big_digits=30 ;;
14821no)
14822  enable_big_digits=15 ;;
1482315|30)
14824  ;;
14825*)
14826  as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
14827esac
14828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
14829$as_echo "$enable_big_digits" >&6; }
14830
14831cat >>confdefs.h <<_ACEOF
14832#define PYLONG_BITS_IN_DIGIT $enable_big_digits
14833_ACEOF
14834
14835
14836else
14837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
14838$as_echo "no value specified" >&6; }
14839fi
14840
14841
14842# check for wchar.h
14843ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
14844if test "x$ac_cv_header_wchar_h" = xyes; then :
14845
14846
14847$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
14848
14849  wchar_h="yes"
14850
14851else
14852  wchar_h="no"
14853
14854fi
14855
14856
14857
14858# determine wchar_t size
14859if test "$wchar_h" = yes
14860then
14861  # The cast to long int works around a bug in the HP C Compiler
14862# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14863# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14864# This bug is HP SR number 8606223364.
14865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
14866$as_echo_n "checking size of wchar_t... " >&6; }
14867if ${ac_cv_sizeof_wchar_t+:} false; then :
14868  $as_echo_n "(cached) " >&6
14869else
14870  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h>
14871"; then :
14872
14873else
14874  if test "$ac_cv_type_wchar_t" = yes; then
14875     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14877as_fn_error 77 "cannot compute sizeof (wchar_t)
14878See \`config.log' for more details" "$LINENO" 5; }
14879   else
14880     ac_cv_sizeof_wchar_t=0
14881   fi
14882fi
14883
14884fi
14885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
14886$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
14887
14888
14889
14890cat >>confdefs.h <<_ACEOF
14891#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
14892_ACEOF
14893
14894
14895fi
14896
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
14898$as_echo_n "checking for UCS-4 tcl... " >&6; }
14899have_ucs4_tcl=no
14900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901/* end confdefs.h.  */
14902
14903#include <tcl.h>
14904#if TCL_UTF_MAX != 6
14905# error "NOT UCS4_TCL"
14906#endif
14907int
14908main ()
14909{
14910
14911  ;
14912  return 0;
14913}
14914_ACEOF
14915if ac_fn_c_try_compile "$LINENO"; then :
14916
14917
14918$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
14919
14920  have_ucs4_tcl=yes
14921
14922fi
14923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
14925$as_echo "$have_ucs4_tcl" >&6; }
14926
14927# check whether wchar_t is signed or not
14928if test "$wchar_h" = yes
14929then
14930  # check whether wchar_t is signed or not
14931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
14932$as_echo_n "checking whether wchar_t is signed... " >&6; }
14933  if ${ac_cv_wchar_t_signed+:} false; then :
14934  $as_echo_n "(cached) " >&6
14935else
14936
14937  if test "$cross_compiling" = yes; then :
14938  ac_cv_wchar_t_signed=yes
14939else
14940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941/* end confdefs.h.  */
14942
14943  #include <wchar.h>
14944  int main()
14945  {
14946	/* Success: exit code 0 */
14947        return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
14948  }
14949
14950_ACEOF
14951if ac_fn_c_try_run "$LINENO"; then :
14952  ac_cv_wchar_t_signed=yes
14953else
14954  ac_cv_wchar_t_signed=no
14955fi
14956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14957  conftest.$ac_objext conftest.beam conftest.$ac_ext
14958fi
14959
14960fi
14961
14962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
14963$as_echo "$ac_cv_wchar_t_signed" >&6; }
14964fi
14965
14966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
14967$as_echo_n "checking whether wchar_t is usable... " >&6; }
14968# wchar_t is only usable if it maps to an unsigned type
14969if test "$ac_cv_sizeof_wchar_t" -ge 2 \
14970          -a "$ac_cv_wchar_t_signed" = "no"
14971then
14972
14973$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
14974
14975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14976$as_echo "yes" >&6; }
14977else
14978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979$as_echo "no" >&6; }
14980fi
14981
14982# check for endianness
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14984$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14985if ${ac_cv_c_bigendian+:} false; then :
14986  $as_echo_n "(cached) " >&6
14987else
14988  ac_cv_c_bigendian=unknown
14989    # See if we're dealing with a universal compiler.
14990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991/* end confdefs.h.  */
14992#ifndef __APPLE_CC__
14993	       not a universal capable compiler
14994	     #endif
14995	     typedef int dummy;
14996
14997_ACEOF
14998if ac_fn_c_try_compile "$LINENO"; then :
14999
15000	# Check for potential -arch flags.  It is not universal unless
15001	# there are at least two -arch flags with different values.
15002	ac_arch=
15003	ac_prev=
15004	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15005	 if test -n "$ac_prev"; then
15006	   case $ac_word in
15007	     i?86 | x86_64 | ppc | ppc64)
15008	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15009		 ac_arch=$ac_word
15010	       else
15011		 ac_cv_c_bigendian=universal
15012		 break
15013	       fi
15014	       ;;
15015	   esac
15016	   ac_prev=
15017	 elif test "x$ac_word" = "x-arch"; then
15018	   ac_prev=arch
15019	 fi
15020       done
15021fi
15022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023    if test $ac_cv_c_bigendian = unknown; then
15024      # See if sys/param.h defines the BYTE_ORDER macro.
15025      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026/* end confdefs.h.  */
15027#include <sys/types.h>
15028	     #include <sys/param.h>
15029
15030int
15031main ()
15032{
15033#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15034		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15035		     && LITTLE_ENDIAN)
15036	      bogus endian macros
15037	     #endif
15038
15039  ;
15040  return 0;
15041}
15042_ACEOF
15043if ac_fn_c_try_compile "$LINENO"; then :
15044  # It does; now see whether it defined to BIG_ENDIAN or not.
15045	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046/* end confdefs.h.  */
15047#include <sys/types.h>
15048		#include <sys/param.h>
15049
15050int
15051main ()
15052{
15053#if BYTE_ORDER != BIG_ENDIAN
15054		 not big endian
15055		#endif
15056
15057  ;
15058  return 0;
15059}
15060_ACEOF
15061if ac_fn_c_try_compile "$LINENO"; then :
15062  ac_cv_c_bigendian=yes
15063else
15064  ac_cv_c_bigendian=no
15065fi
15066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067fi
15068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069    fi
15070    if test $ac_cv_c_bigendian = unknown; then
15071      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15072      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h.  */
15074#include <limits.h>
15075
15076int
15077main ()
15078{
15079#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15080	      bogus endian macros
15081	     #endif
15082
15083  ;
15084  return 0;
15085}
15086_ACEOF
15087if ac_fn_c_try_compile "$LINENO"; then :
15088  # It does; now see whether it defined to _BIG_ENDIAN or not.
15089	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090/* end confdefs.h.  */
15091#include <limits.h>
15092
15093int
15094main ()
15095{
15096#ifndef _BIG_ENDIAN
15097		 not big endian
15098		#endif
15099
15100  ;
15101  return 0;
15102}
15103_ACEOF
15104if ac_fn_c_try_compile "$LINENO"; then :
15105  ac_cv_c_bigendian=yes
15106else
15107  ac_cv_c_bigendian=no
15108fi
15109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110fi
15111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112    fi
15113    if test $ac_cv_c_bigendian = unknown; then
15114      # Compile a test program.
15115      if test "$cross_compiling" = yes; then :
15116  # Try to guess by grepping values from an object file.
15117	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118/* end confdefs.h.  */
15119short int ascii_mm[] =
15120		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15121		short int ascii_ii[] =
15122		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15123		int use_ascii (int i) {
15124		  return ascii_mm[i] + ascii_ii[i];
15125		}
15126		short int ebcdic_ii[] =
15127		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15128		short int ebcdic_mm[] =
15129		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15130		int use_ebcdic (int i) {
15131		  return ebcdic_mm[i] + ebcdic_ii[i];
15132		}
15133		extern int foo;
15134
15135int
15136main ()
15137{
15138return use_ascii (foo) == use_ebcdic (foo);
15139  ;
15140  return 0;
15141}
15142_ACEOF
15143if ac_fn_c_try_compile "$LINENO"; then :
15144  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15145	      ac_cv_c_bigendian=yes
15146	    fi
15147	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15148	      if test "$ac_cv_c_bigendian" = unknown; then
15149		ac_cv_c_bigendian=no
15150	      else
15151		# finding both strings is unlikely to happen, but who knows?
15152		ac_cv_c_bigendian=unknown
15153	      fi
15154	    fi
15155fi
15156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157else
15158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159/* end confdefs.h.  */
15160$ac_includes_default
15161int
15162main ()
15163{
15164
15165	     /* Are we little or big endian?  From Harbison&Steele.  */
15166	     union
15167	     {
15168	       long int l;
15169	       char c[sizeof (long int)];
15170	     } u;
15171	     u.l = 1;
15172	     return u.c[sizeof (long int) - 1] == 1;
15173
15174  ;
15175  return 0;
15176}
15177_ACEOF
15178if ac_fn_c_try_run "$LINENO"; then :
15179  ac_cv_c_bigendian=no
15180else
15181  ac_cv_c_bigendian=yes
15182fi
15183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15184  conftest.$ac_objext conftest.beam conftest.$ac_ext
15185fi
15186
15187    fi
15188fi
15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15190$as_echo "$ac_cv_c_bigendian" >&6; }
15191 case $ac_cv_c_bigendian in #(
15192   yes)
15193     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15194;; #(
15195   no)
15196      ;; #(
15197   universal)
15198
15199$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15200
15201     ;; #(
15202   *)
15203     as_fn_error $? "unknown endianness
15204 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15205 esac
15206
15207
15208# ABI version string for Python extension modules.  This appears between the
15209# periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated
15210# from the following attributes which affect the ABI of this Python build (in
15211# this order):
15212#
15213# * The Python implementation (always 'cpython-' for us)
15214# * The major and minor version numbers
15215# * --with-pydebug (adds a 'd')
15216#
15217# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
15218# would get a shared library ABI version tag of 'cpython-32dmu' and shared
15219# libraries would be named 'foo.cpython-32dmu.so'.
15220#
15221# In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
15222# In Python 3.7 and older, --with-pymalloc added a 'm' flag.
15223
15224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
15225$as_echo_n "checking ABIFLAGS... " >&6; }
15226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
15227$as_echo "$ABIFLAGS" >&6; }
15228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
15229$as_echo_n "checking SOABI... " >&6; }
15230SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
15232$as_echo "$SOABI" >&6; }
15233
15234# Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI
15235if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then
15236  # Similar to SOABI but remove "d" flag from ABIFLAGS
15237
15238  ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
15239
15240cat >>confdefs.h <<_ACEOF
15241#define ALT_SOABI "${ALT_SOABI}"
15242_ACEOF
15243
15244fi
15245
15246
15247EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
15248
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
15250$as_echo_n "checking LDVERSION... " >&6; }
15251LDVERSION='$(VERSION)$(ABIFLAGS)'
15252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
15253$as_echo "$LDVERSION" >&6; }
15254
15255# On Android and Cygwin the shared libraries must be linked with libpython.
15256
15257if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
15258  LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
15259else
15260  LIBPYTHON=''
15261fi
15262
15263
15264if test x$PLATFORM_TRIPLET = x; then
15265  LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
15266else
15267  LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
15268fi
15269
15270
15271# Check whether right shifting a negative integer extends the sign bit
15272# or fills with zeros (like the Cray J90, according to Tim Peters).
15273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
15274$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
15275if ${ac_cv_rshift_extends_sign+:} false; then :
15276  $as_echo_n "(cached) " >&6
15277else
15278
15279if test "$cross_compiling" = yes; then :
15280  ac_cv_rshift_extends_sign=yes
15281else
15282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283/* end confdefs.h.  */
15284
15285int main()
15286{
15287	return (((-1)>>3 == -1) ? 0 : 1);
15288}
15289
15290_ACEOF
15291if ac_fn_c_try_run "$LINENO"; then :
15292  ac_cv_rshift_extends_sign=yes
15293else
15294  ac_cv_rshift_extends_sign=no
15295fi
15296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15297  conftest.$ac_objext conftest.beam conftest.$ac_ext
15298fi
15299
15300fi
15301
15302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
15303$as_echo "$ac_cv_rshift_extends_sign" >&6; }
15304if test "$ac_cv_rshift_extends_sign" = no
15305then
15306
15307$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
15308
15309fi
15310
15311# check for getc_unlocked and related locking functions
15312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
15313$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
15314if ${ac_cv_have_getc_unlocked+:} false; then :
15315  $as_echo_n "(cached) " >&6
15316else
15317
15318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319/* end confdefs.h.  */
15320#include <stdio.h>
15321int
15322main ()
15323{
15324
15325	FILE *f = fopen("/dev/null", "r");
15326	flockfile(f);
15327	getc_unlocked(f);
15328	funlockfile(f);
15329
15330  ;
15331  return 0;
15332}
15333_ACEOF
15334if ac_fn_c_try_link "$LINENO"; then :
15335  ac_cv_have_getc_unlocked=yes
15336else
15337  ac_cv_have_getc_unlocked=no
15338fi
15339rm -f core conftest.err conftest.$ac_objext \
15340    conftest$ac_exeext conftest.$ac_ext
15341fi
15342
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
15344$as_echo "$ac_cv_have_getc_unlocked" >&6; }
15345if test "$ac_cv_have_getc_unlocked" = yes
15346then
15347
15348$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
15349
15350fi
15351
15352# check where readline lives
15353# save the value of LIBS so we don't actually link Python with readline
15354LIBS_no_readline=$LIBS
15355
15356# On some systems we need to link readline to a termcap compatible
15357# library.  NOTE: Keep the precedence of listed libraries synchronised
15358# with setup.py.
15359py_cv_lib_readline=no
15360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
15361$as_echo_n "checking how to link readline libs... " >&6; }
15362for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
15363  if test -z "$py_libtermcap"; then
15364    READLINE_LIBS="-lreadline"
15365  else
15366    READLINE_LIBS="-lreadline -l$py_libtermcap"
15367  fi
15368  LIBS="$READLINE_LIBS $LIBS_no_readline"
15369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h.  */
15371
15372/* Override any GCC internal prototype to avoid an error.
15373   Use char because int might match the return type of a GCC
15374   builtin and then its argument prototype would still apply.  */
15375#ifdef __cplusplus
15376extern "C"
15377#endif
15378char readline ();
15379int
15380main ()
15381{
15382return readline ();
15383  ;
15384  return 0;
15385}
15386_ACEOF
15387if ac_fn_c_try_link "$LINENO"; then :
15388  py_cv_lib_readline=yes
15389fi
15390rm -f core conftest.err conftest.$ac_objext \
15391    conftest$ac_exeext conftest.$ac_ext
15392  if test $py_cv_lib_readline = yes; then
15393    break
15394  fi
15395done
15396# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
15397#AC_SUBST([READLINE_LIBS])
15398if test $py_cv_lib_readline = no; then
15399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15400$as_echo "none" >&6; }
15401else
15402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
15403$as_echo "$READLINE_LIBS" >&6; }
15404
15405$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15406
15407fi
15408
15409# check for readline 2.2
15410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411/* end confdefs.h.  */
15412#include <readline/readline.h>
15413_ACEOF
15414if ac_fn_c_try_cpp "$LINENO"; then :
15415  have_readline=yes
15416else
15417  have_readline=no
15418
15419fi
15420rm -f conftest.err conftest.i conftest.$ac_ext
15421if test $have_readline = yes
15422then
15423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424/* end confdefs.h.  */
15425#include <readline/readline.h>
15426
15427_ACEOF
15428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15429  $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
15430
15431$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
15432
15433fi
15434rm -f conftest*
15435
15436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437/* end confdefs.h.  */
15438#include <readline/readline.h>
15439
15440_ACEOF
15441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15442  $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
15443
15444$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
15445
15446fi
15447rm -f conftest*
15448
15449fi
15450
15451# check for readline 4.0
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
15453$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
15454if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
15455  $as_echo_n "(cached) " >&6
15456else
15457  ac_check_lib_save_LIBS=$LIBS
15458LIBS="-lreadline $READLINE_LIBS $LIBS"
15459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460/* end confdefs.h.  */
15461
15462/* Override any GCC internal prototype to avoid an error.
15463   Use char because int might match the return type of a GCC
15464   builtin and then its argument prototype would still apply.  */
15465#ifdef __cplusplus
15466extern "C"
15467#endif
15468char rl_pre_input_hook ();
15469int
15470main ()
15471{
15472return rl_pre_input_hook ();
15473  ;
15474  return 0;
15475}
15476_ACEOF
15477if ac_fn_c_try_link "$LINENO"; then :
15478  ac_cv_lib_readline_rl_pre_input_hook=yes
15479else
15480  ac_cv_lib_readline_rl_pre_input_hook=no
15481fi
15482rm -f core conftest.err conftest.$ac_objext \
15483    conftest$ac_exeext conftest.$ac_ext
15484LIBS=$ac_check_lib_save_LIBS
15485fi
15486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
15487$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
15488if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
15489
15490$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
15491
15492fi
15493
15494
15495# also in 4.0
15496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
15497$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
15498if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
15499  $as_echo_n "(cached) " >&6
15500else
15501  ac_check_lib_save_LIBS=$LIBS
15502LIBS="-lreadline $READLINE_LIBS $LIBS"
15503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504/* end confdefs.h.  */
15505
15506/* Override any GCC internal prototype to avoid an error.
15507   Use char because int might match the return type of a GCC
15508   builtin and then its argument prototype would still apply.  */
15509#ifdef __cplusplus
15510extern "C"
15511#endif
15512char rl_completion_display_matches_hook ();
15513int
15514main ()
15515{
15516return rl_completion_display_matches_hook ();
15517  ;
15518  return 0;
15519}
15520_ACEOF
15521if ac_fn_c_try_link "$LINENO"; then :
15522  ac_cv_lib_readline_rl_completion_display_matches_hook=yes
15523else
15524  ac_cv_lib_readline_rl_completion_display_matches_hook=no
15525fi
15526rm -f core conftest.err conftest.$ac_objext \
15527    conftest$ac_exeext conftest.$ac_ext
15528LIBS=$ac_check_lib_save_LIBS
15529fi
15530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
15531$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
15532if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
15533
15534$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
15535
15536fi
15537
15538
15539# also in 4.0, but not in editline
15540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
15541$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
15542if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
15543  $as_echo_n "(cached) " >&6
15544else
15545  ac_check_lib_save_LIBS=$LIBS
15546LIBS="-lreadline $READLINE_LIBS $LIBS"
15547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549
15550/* Override any GCC internal prototype to avoid an error.
15551   Use char because int might match the return type of a GCC
15552   builtin and then its argument prototype would still apply.  */
15553#ifdef __cplusplus
15554extern "C"
15555#endif
15556char rl_resize_terminal ();
15557int
15558main ()
15559{
15560return rl_resize_terminal ();
15561  ;
15562  return 0;
15563}
15564_ACEOF
15565if ac_fn_c_try_link "$LINENO"; then :
15566  ac_cv_lib_readline_rl_resize_terminal=yes
15567else
15568  ac_cv_lib_readline_rl_resize_terminal=no
15569fi
15570rm -f core conftest.err conftest.$ac_objext \
15571    conftest$ac_exeext conftest.$ac_ext
15572LIBS=$ac_check_lib_save_LIBS
15573fi
15574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
15575$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
15576if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
15577
15578$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
15579
15580fi
15581
15582
15583# check for readline 4.2
15584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
15585$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
15586if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
15587  $as_echo_n "(cached) " >&6
15588else
15589  ac_check_lib_save_LIBS=$LIBS
15590LIBS="-lreadline $READLINE_LIBS $LIBS"
15591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592/* end confdefs.h.  */
15593
15594/* Override any GCC internal prototype to avoid an error.
15595   Use char because int might match the return type of a GCC
15596   builtin and then its argument prototype would still apply.  */
15597#ifdef __cplusplus
15598extern "C"
15599#endif
15600char rl_completion_matches ();
15601int
15602main ()
15603{
15604return rl_completion_matches ();
15605  ;
15606  return 0;
15607}
15608_ACEOF
15609if ac_fn_c_try_link "$LINENO"; then :
15610  ac_cv_lib_readline_rl_completion_matches=yes
15611else
15612  ac_cv_lib_readline_rl_completion_matches=no
15613fi
15614rm -f core conftest.err conftest.$ac_objext \
15615    conftest$ac_exeext conftest.$ac_ext
15616LIBS=$ac_check_lib_save_LIBS
15617fi
15618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
15619$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
15620if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
15621
15622$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
15623
15624fi
15625
15626
15627# also in readline 4.2
15628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h.  */
15630#include <readline/readline.h>
15631_ACEOF
15632if ac_fn_c_try_cpp "$LINENO"; then :
15633  have_readline=yes
15634else
15635  have_readline=no
15636
15637fi
15638rm -f conftest.err conftest.i conftest.$ac_ext
15639if test $have_readline = yes
15640then
15641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642/* end confdefs.h.  */
15643#include <readline/readline.h>
15644
15645_ACEOF
15646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15647  $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
15648
15649$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
15650
15651fi
15652rm -f conftest*
15653
15654fi
15655
15656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5
15657$as_echo_n "checking for append_history in -lreadline... " >&6; }
15658if ${ac_cv_lib_readline_append_history+:} false; then :
15659  $as_echo_n "(cached) " >&6
15660else
15661  ac_check_lib_save_LIBS=$LIBS
15662LIBS="-lreadline $READLINE_LIBS $LIBS"
15663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664/* end confdefs.h.  */
15665
15666/* Override any GCC internal prototype to avoid an error.
15667   Use char because int might match the return type of a GCC
15668   builtin and then its argument prototype would still apply.  */
15669#ifdef __cplusplus
15670extern "C"
15671#endif
15672char append_history ();
15673int
15674main ()
15675{
15676return append_history ();
15677  ;
15678  return 0;
15679}
15680_ACEOF
15681if ac_fn_c_try_link "$LINENO"; then :
15682  ac_cv_lib_readline_append_history=yes
15683else
15684  ac_cv_lib_readline_append_history=no
15685fi
15686rm -f core conftest.err conftest.$ac_objext \
15687    conftest$ac_exeext conftest.$ac_ext
15688LIBS=$ac_check_lib_save_LIBS
15689fi
15690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5
15691$as_echo "$ac_cv_lib_readline_append_history" >&6; }
15692if test "x$ac_cv_lib_readline_append_history" = xyes; then :
15693
15694$as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
15695
15696fi
15697
15698
15699# End of readline checks: restore LIBS
15700LIBS=$LIBS_no_readline
15701
15702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
15703$as_echo_n "checking for broken nice()... " >&6; }
15704if ${ac_cv_broken_nice+:} false; then :
15705  $as_echo_n "(cached) " >&6
15706else
15707
15708if test "$cross_compiling" = yes; then :
15709  ac_cv_broken_nice=no
15710else
15711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712/* end confdefs.h.  */
15713
15714#include <stdlib.h>
15715#include <unistd.h>
15716int main()
15717{
15718	int val1 = nice(1);
15719	if (val1 != -1 && val1 == nice(2))
15720		exit(0);
15721	exit(1);
15722}
15723
15724_ACEOF
15725if ac_fn_c_try_run "$LINENO"; then :
15726  ac_cv_broken_nice=yes
15727else
15728  ac_cv_broken_nice=no
15729fi
15730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15731  conftest.$ac_objext conftest.beam conftest.$ac_ext
15732fi
15733
15734fi
15735
15736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
15737$as_echo "$ac_cv_broken_nice" >&6; }
15738if test "$ac_cv_broken_nice" = yes
15739then
15740
15741$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
15742
15743fi
15744
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
15746$as_echo_n "checking for broken poll()... " >&6; }
15747if ${ac_cv_broken_poll+:} false; then :
15748  $as_echo_n "(cached) " >&6
15749else
15750  if test "$cross_compiling" = yes; then :
15751  ac_cv_broken_poll=no
15752else
15753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15754/* end confdefs.h.  */
15755
15756#include <poll.h>
15757#include <unistd.h>
15758
15759int main()
15760{
15761    struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
15762    int poll_test;
15763
15764    close (42);
15765
15766    poll_test = poll(&poll_struct, 1, 0);
15767    if (poll_test < 0)
15768        return 0;
15769    else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
15770        return 0;
15771    else
15772        return 1;
15773}
15774
15775_ACEOF
15776if ac_fn_c_try_run "$LINENO"; then :
15777  ac_cv_broken_poll=yes
15778else
15779  ac_cv_broken_poll=no
15780fi
15781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15782  conftest.$ac_objext conftest.beam conftest.$ac_ext
15783fi
15784
15785fi
15786
15787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
15788$as_echo "$ac_cv_broken_poll" >&6; }
15789if test "$ac_cv_broken_poll" = yes
15790then
15791
15792$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
15793
15794fi
15795
15796# check tzset(3) exists and works like we expect it to
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
15798$as_echo_n "checking for working tzset()... " >&6; }
15799if ${ac_cv_working_tzset+:} false; then :
15800  $as_echo_n "(cached) " >&6
15801else
15802
15803if test "$cross_compiling" = yes; then :
15804  ac_cv_working_tzset=no
15805else
15806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807/* end confdefs.h.  */
15808
15809#include <stdlib.h>
15810#include <time.h>
15811#include <string.h>
15812
15813#if HAVE_TZNAME
15814extern char *tzname[];
15815#endif
15816
15817int main()
15818{
15819	/* Note that we need to ensure that not only does tzset(3)
15820	   do 'something' with localtime, but it works as documented
15821	   in the library reference and as expected by the test suite.
15822	   This includes making sure that tzname is set properly if
15823	   tm->tm_zone does not exist since it is the alternative way
15824	   of getting timezone info.
15825
15826	   Red Hat 6.2 doesn't understand the southern hemisphere
15827	   after New Year's Day.
15828	*/
15829
15830	time_t groundhogday = 1044144000; /* GMT-based */
15831	time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
15832
15833	putenv("TZ=UTC+0");
15834	tzset();
15835	if (localtime(&groundhogday)->tm_hour != 0)
15836	    exit(1);
15837#if HAVE_TZNAME
15838	/* For UTC, tzname[1] is sometimes "", sometimes "   " */
15839	if (strcmp(tzname[0], "UTC") ||
15840		(tzname[1][0] != 0 && tzname[1][0] != ' '))
15841	    exit(1);
15842#endif
15843
15844	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
15845	tzset();
15846	if (localtime(&groundhogday)->tm_hour != 19)
15847	    exit(1);
15848#if HAVE_TZNAME
15849	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
15850	    exit(1);
15851#endif
15852
15853	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
15854	tzset();
15855	if (localtime(&groundhogday)->tm_hour != 11)
15856	    exit(1);
15857#if HAVE_TZNAME
15858	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
15859	    exit(1);
15860#endif
15861
15862#if HAVE_STRUCT_TM_TM_ZONE
15863	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
15864	    exit(1);
15865	if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
15866	    exit(1);
15867#endif
15868
15869	exit(0);
15870}
15871
15872_ACEOF
15873if ac_fn_c_try_run "$LINENO"; then :
15874  ac_cv_working_tzset=yes
15875else
15876  ac_cv_working_tzset=no
15877fi
15878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15879  conftest.$ac_objext conftest.beam conftest.$ac_ext
15880fi
15881
15882fi
15883
15884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
15885$as_echo "$ac_cv_working_tzset" >&6; }
15886if test "$ac_cv_working_tzset" = yes
15887then
15888
15889$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
15890
15891fi
15892
15893# Look for subsecond timestamps in struct stat
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
15895$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
15896if ${ac_cv_stat_tv_nsec+:} false; then :
15897  $as_echo_n "(cached) " >&6
15898else
15899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900/* end confdefs.h.  */
15901#include <sys/stat.h>
15902int
15903main ()
15904{
15905
15906struct stat st;
15907st.st_mtim.tv_nsec = 1;
15908
15909  ;
15910  return 0;
15911}
15912_ACEOF
15913if ac_fn_c_try_compile "$LINENO"; then :
15914  ac_cv_stat_tv_nsec=yes
15915else
15916  ac_cv_stat_tv_nsec=no
15917fi
15918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919fi
15920
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
15922$as_echo "$ac_cv_stat_tv_nsec" >&6; }
15923if test "$ac_cv_stat_tv_nsec" = yes
15924then
15925
15926$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
15927
15928fi
15929
15930# Look for BSD style subsecond timestamps in struct stat
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
15932$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
15933if ${ac_cv_stat_tv_nsec2+:} false; then :
15934  $as_echo_n "(cached) " >&6
15935else
15936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937/* end confdefs.h.  */
15938#include <sys/stat.h>
15939int
15940main ()
15941{
15942
15943struct stat st;
15944st.st_mtimespec.tv_nsec = 1;
15945
15946  ;
15947  return 0;
15948}
15949_ACEOF
15950if ac_fn_c_try_compile "$LINENO"; then :
15951  ac_cv_stat_tv_nsec2=yes
15952else
15953  ac_cv_stat_tv_nsec2=no
15954fi
15955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956fi
15957
15958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
15959$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
15960if test "$ac_cv_stat_tv_nsec2" = yes
15961then
15962
15963$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
15964
15965fi
15966
15967# first curses header check
15968ac_save_cppflags="$CPPFLAGS"
15969if test "$cross_compiling" = no; then
15970  CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
15971fi
15972
15973for ac_header in curses.h ncurses.h
15974do :
15975  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15976ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15977if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15978  cat >>confdefs.h <<_ACEOF
15979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15980_ACEOF
15981
15982fi
15983
15984done
15985
15986
15987# On Solaris, term.h requires curses.h
15988for ac_header in term.h
15989do :
15990  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
15991#ifdef HAVE_CURSES_H
15992#include <curses.h>
15993#endif
15994
15995"
15996if test "x$ac_cv_header_term_h" = xyes; then :
15997  cat >>confdefs.h <<_ACEOF
15998#define HAVE_TERM_H 1
15999_ACEOF
16000
16001fi
16002
16003done
16004
16005
16006# On HP/UX 11.0, mvwdelch is a block with a return statement
16007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
16008$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
16009if ${ac_cv_mvwdelch_is_expression+:} false; then :
16010  $as_echo_n "(cached) " >&6
16011else
16012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013/* end confdefs.h.  */
16014#include <curses.h>
16015int
16016main ()
16017{
16018
16019  int rtn;
16020  rtn = mvwdelch(0,0,0);
16021
16022  ;
16023  return 0;
16024}
16025_ACEOF
16026if ac_fn_c_try_compile "$LINENO"; then :
16027  ac_cv_mvwdelch_is_expression=yes
16028else
16029  ac_cv_mvwdelch_is_expression=no
16030fi
16031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032fi
16033
16034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
16035$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
16036
16037if test "$ac_cv_mvwdelch_is_expression" = yes
16038then
16039
16040$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
16041
16042fi
16043
16044# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
16045# structs since version 5.7.  If the macro is defined as zero before including
16046# [n]curses.h, ncurses will expose fields of the structs regardless of the
16047# configuration.
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
16049$as_echo_n "checking whether WINDOW has _flags... " >&6; }
16050if ${ac_cv_window_has_flags+:} false; then :
16051  $as_echo_n "(cached) " >&6
16052else
16053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054/* end confdefs.h.  */
16055
16056  #define NCURSES_OPAQUE 0
16057  #include <curses.h>
16058
16059int
16060main ()
16061{
16062
16063  WINDOW *w;
16064  w->_flags = 0;
16065
16066  ;
16067  return 0;
16068}
16069_ACEOF
16070if ac_fn_c_try_compile "$LINENO"; then :
16071  ac_cv_window_has_flags=yes
16072else
16073  ac_cv_window_has_flags=no
16074fi
16075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076fi
16077
16078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
16079$as_echo "$ac_cv_window_has_flags" >&6; }
16080
16081
16082if test "$ac_cv_window_has_flags" = yes
16083then
16084
16085$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
16086
16087fi
16088
16089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
16090$as_echo_n "checking for is_pad... " >&6; }
16091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092/* end confdefs.h.  */
16093#include <curses.h>
16094int
16095main ()
16096{
16097
16098#ifndef is_pad
16099void *x=is_pad
16100#endif
16101
16102  ;
16103  return 0;
16104}
16105_ACEOF
16106if ac_fn_c_try_compile "$LINENO"; then :
16107
16108$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
16109
16110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16111$as_echo "yes" >&6; }
16112else
16113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114$as_echo "no" >&6; }
16115
16116fi
16117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118
16119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
16120$as_echo_n "checking for is_term_resized... " >&6; }
16121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122/* end confdefs.h.  */
16123#include <curses.h>
16124int
16125main ()
16126{
16127void *x=is_term_resized
16128  ;
16129  return 0;
16130}
16131_ACEOF
16132if ac_fn_c_try_compile "$LINENO"; then :
16133
16134$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
16135
16136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16137$as_echo "yes" >&6; }
16138else
16139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16140$as_echo "no" >&6; }
16141
16142fi
16143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144
16145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
16146$as_echo_n "checking for resize_term... " >&6; }
16147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148/* end confdefs.h.  */
16149#include <curses.h>
16150int
16151main ()
16152{
16153void *x=resize_term
16154  ;
16155  return 0;
16156}
16157_ACEOF
16158if ac_fn_c_try_compile "$LINENO"; then :
16159
16160$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
16161
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16163$as_echo "yes" >&6; }
16164else
16165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166$as_echo "no" >&6; }
16167
16168fi
16169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16170
16171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
16172$as_echo_n "checking for resizeterm... " >&6; }
16173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174/* end confdefs.h.  */
16175#include <curses.h>
16176int
16177main ()
16178{
16179void *x=resizeterm
16180  ;
16181  return 0;
16182}
16183_ACEOF
16184if ac_fn_c_try_compile "$LINENO"; then :
16185
16186$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
16187
16188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16189$as_echo "yes" >&6; }
16190else
16191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192$as_echo "no" >&6; }
16193
16194fi
16195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
16198$as_echo_n "checking for immedok... " >&6; }
16199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h.  */
16201#include <curses.h>
16202int
16203main ()
16204{
16205
16206#ifndef immedok
16207void *x=immedok
16208#endif
16209
16210  ;
16211  return 0;
16212}
16213_ACEOF
16214if ac_fn_c_try_compile "$LINENO"; then :
16215
16216$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
16217
16218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16219$as_echo "yes" >&6; }
16220else
16221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222$as_echo "no" >&6; }
16223
16224fi
16225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226
16227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
16228$as_echo_n "checking for syncok... " >&6; }
16229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h.  */
16231#include <curses.h>
16232int
16233main ()
16234{
16235
16236#ifndef syncok
16237void *x=syncok
16238#endif
16239
16240  ;
16241  return 0;
16242}
16243_ACEOF
16244if ac_fn_c_try_compile "$LINENO"; then :
16245
16246$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
16247
16248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16249$as_echo "yes" >&6; }
16250else
16251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252$as_echo "no" >&6; }
16253
16254fi
16255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256
16257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
16258$as_echo_n "checking for wchgat... " >&6; }
16259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260/* end confdefs.h.  */
16261#include <curses.h>
16262int
16263main ()
16264{
16265
16266#ifndef wchgat
16267void *x=wchgat
16268#endif
16269
16270  ;
16271  return 0;
16272}
16273_ACEOF
16274if ac_fn_c_try_compile "$LINENO"; then :
16275
16276$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
16277
16278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16279$as_echo "yes" >&6; }
16280else
16281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282$as_echo "no" >&6; }
16283
16284fi
16285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
16288$as_echo_n "checking for filter... " >&6; }
16289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290/* end confdefs.h.  */
16291#include <curses.h>
16292int
16293main ()
16294{
16295
16296#ifndef filter
16297void *x=filter
16298#endif
16299
16300  ;
16301  return 0;
16302}
16303_ACEOF
16304if ac_fn_c_try_compile "$LINENO"; then :
16305
16306$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
16307
16308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16309$as_echo "yes" >&6; }
16310else
16311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312$as_echo "no" >&6; }
16313
16314fi
16315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16316
16317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
16318$as_echo_n "checking for has_key... " >&6; }
16319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320/* end confdefs.h.  */
16321#include <curses.h>
16322int
16323main ()
16324{
16325
16326#ifndef has_key
16327void *x=has_key
16328#endif
16329
16330  ;
16331  return 0;
16332}
16333_ACEOF
16334if ac_fn_c_try_compile "$LINENO"; then :
16335
16336$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
16337
16338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16339$as_echo "yes" >&6; }
16340else
16341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342$as_echo "no" >&6; }
16343
16344fi
16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346
16347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
16348$as_echo_n "checking for typeahead... " >&6; }
16349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h.  */
16351#include <curses.h>
16352int
16353main ()
16354{
16355
16356#ifndef typeahead
16357void *x=typeahead
16358#endif
16359
16360  ;
16361  return 0;
16362}
16363_ACEOF
16364if ac_fn_c_try_compile "$LINENO"; then :
16365
16366$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
16367
16368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16369$as_echo "yes" >&6; }
16370else
16371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372$as_echo "no" >&6; }
16373
16374fi
16375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376
16377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
16378$as_echo_n "checking for use_env... " >&6; }
16379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380/* end confdefs.h.  */
16381#include <curses.h>
16382int
16383main ()
16384{
16385
16386#ifndef use_env
16387void *x=use_env
16388#endif
16389
16390  ;
16391  return 0;
16392}
16393_ACEOF
16394if ac_fn_c_try_compile "$LINENO"; then :
16395
16396$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
16397
16398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16399$as_echo "yes" >&6; }
16400else
16401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402$as_echo "no" >&6; }
16403
16404fi
16405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406# last curses configure check
16407CPPFLAGS=$ac_save_cppflags
16408
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
16410$as_echo "$as_me: checking for device files" >&6;}
16411
16412if test "x$cross_compiling" = xyes; then
16413  if test "${ac_cv_file__dev_ptmx+set}" != set; then
16414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16415$as_echo_n "checking for /dev/ptmx... " >&6; }
16416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16417$as_echo "not set" >&6; }
16418    as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16419  fi
16420  if test "${ac_cv_file__dev_ptc+set}" != set; then
16421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16422$as_echo_n "checking for /dev/ptc... " >&6; }
16423    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16424$as_echo "not set" >&6; }
16425    as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16426  fi
16427fi
16428
16429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16430$as_echo_n "checking for /dev/ptmx... " >&6; }
16431if ${ac_cv_file__dev_ptmx+:} false; then :
16432  $as_echo_n "(cached) " >&6
16433else
16434  test "$cross_compiling" = yes &&
16435  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16436if test -r "/dev/ptmx"; then
16437  ac_cv_file__dev_ptmx=yes
16438else
16439  ac_cv_file__dev_ptmx=no
16440fi
16441fi
16442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
16443$as_echo "$ac_cv_file__dev_ptmx" >&6; }
16444if test "x$ac_cv_file__dev_ptmx" = xyes; then :
16445
16446fi
16447
16448if test "x$ac_cv_file__dev_ptmx" = xyes; then
16449
16450$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16451
16452fi
16453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16454$as_echo_n "checking for /dev/ptc... " >&6; }
16455if ${ac_cv_file__dev_ptc+:} false; then :
16456  $as_echo_n "(cached) " >&6
16457else
16458  test "$cross_compiling" = yes &&
16459  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16460if test -r "/dev/ptc"; then
16461  ac_cv_file__dev_ptc=yes
16462else
16463  ac_cv_file__dev_ptc=no
16464fi
16465fi
16466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
16467$as_echo "$ac_cv_file__dev_ptc" >&6; }
16468if test "x$ac_cv_file__dev_ptc" = xyes; then :
16469
16470fi
16471
16472if test "x$ac_cv_file__dev_ptc" = xyes; then
16473
16474$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
16475
16476fi
16477
16478if test $ac_sys_system = Darwin
16479then
16480	LIBS="$LIBS -framework CoreFoundation"
16481fi
16482
16483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
16484$as_echo_n "checking for %zd printf() format support... " >&6; }
16485if ${ac_cv_have_size_t_format+:} false; then :
16486  $as_echo_n "(cached) " >&6
16487else
16488  if test "$cross_compiling" = yes; then :
16489  ac_cv_have_size_t_format="cross -- assuming yes"
16490
16491else
16492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493/* end confdefs.h.  */
16494
16495#include <stdio.h>
16496#include <stddef.h>
16497#include <string.h>
16498
16499#ifdef HAVE_SYS_TYPES_H
16500#include <sys/types.h>
16501#endif
16502
16503#ifdef HAVE_SSIZE_T
16504typedef ssize_t Py_ssize_t;
16505#elif SIZEOF_VOID_P == SIZEOF_LONG
16506typedef long Py_ssize_t;
16507#else
16508typedef int Py_ssize_t;
16509#endif
16510
16511int main()
16512{
16513    char buffer[256];
16514
16515    if(sprintf(buffer, "%zd", (size_t)123) < 0)
16516       	return 1;
16517
16518    if (strcmp(buffer, "123"))
16519	return 1;
16520
16521    if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
16522       	return 1;
16523
16524    if (strcmp(buffer, "-123"))
16525	return 1;
16526
16527    return 0;
16528}
16529
16530_ACEOF
16531if ac_fn_c_try_run "$LINENO"; then :
16532  ac_cv_have_size_t_format=yes
16533else
16534  ac_cv_have_size_t_format=no
16535fi
16536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16537  conftest.$ac_objext conftest.beam conftest.$ac_ext
16538fi
16539
16540fi
16541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
16542$as_echo "$ac_cv_have_size_t_format" >&6; }
16543if test "$ac_cv_have_size_t_format" != no ; then
16544
16545$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
16546
16547fi
16548
16549ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16550#ifdef HAVE_SYS_TYPES_H
16551#include <sys/types.h>
16552#endif
16553#ifdef HAVE_SYS_SOCKET_H
16554#include <sys/socket.h>
16555#endif
16556
16557"
16558if test "x$ac_cv_type_socklen_t" = xyes; then :
16559
16560else
16561
16562$as_echo "#define socklen_t int" >>confdefs.h
16563
16564fi
16565
16566
16567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
16568$as_echo_n "checking for broken mbstowcs... " >&6; }
16569if ${ac_cv_broken_mbstowcs+:} false; then :
16570  $as_echo_n "(cached) " >&6
16571else
16572  if test "$cross_compiling" = yes; then :
16573  ac_cv_broken_mbstowcs=no
16574else
16575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576/* end confdefs.h.  */
16577
16578#include <stdio.h>
16579#include<stdlib.h>
16580int main() {
16581    size_t len = -1;
16582    const char *str = "text";
16583    len = mbstowcs(NULL, str, 0);
16584    return (len != 4);
16585}
16586
16587_ACEOF
16588if ac_fn_c_try_run "$LINENO"; then :
16589  ac_cv_broken_mbstowcs=no
16590else
16591  ac_cv_broken_mbstowcs=yes
16592fi
16593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16594  conftest.$ac_objext conftest.beam conftest.$ac_ext
16595fi
16596
16597fi
16598
16599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
16600$as_echo "$ac_cv_broken_mbstowcs" >&6; }
16601if test "$ac_cv_broken_mbstowcs" = yes
16602then
16603
16604$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
16605
16606fi
16607
16608# Check for --with-computed-gotos
16609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
16610$as_echo_n "checking for --with-computed-gotos... " >&6; }
16611
16612# Check whether --with-computed-gotos was given.
16613if test "${with_computed_gotos+set}" = set; then :
16614  withval=$with_computed_gotos;
16615if test "$withval" = yes
16616then
16617
16618$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
16619
16620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16621$as_echo "yes" >&6; }
16622fi
16623if test "$withval" = no
16624then
16625
16626$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
16627
16628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629$as_echo "no" >&6; }
16630fi
16631
16632else
16633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
16634$as_echo "no value specified" >&6; }
16635fi
16636
16637
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
16639$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
16640if ${ac_cv_computed_gotos+:} false; then :
16641  $as_echo_n "(cached) " >&6
16642else
16643  if test "$cross_compiling" = yes; then :
16644  if test "${with_computed_gotos+set}" = set; then
16645   ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
16646 else
16647   ac_cv_computed_gotos=no
16648 fi
16649else
16650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651/* end confdefs.h.  */
16652
16653int main(int argc, char **argv)
16654{
16655    static void *targets[1] = { &&LABEL1 };
16656    goto LABEL2;
16657LABEL1:
16658    return 0;
16659LABEL2:
16660    goto *targets[0];
16661    return 1;
16662}
16663
16664_ACEOF
16665if ac_fn_c_try_run "$LINENO"; then :
16666  ac_cv_computed_gotos=yes
16667else
16668  ac_cv_computed_gotos=no
16669fi
16670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16671  conftest.$ac_objext conftest.beam conftest.$ac_ext
16672fi
16673
16674fi
16675
16676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
16677$as_echo "$ac_cv_computed_gotos" >&6; }
16678case "$ac_cv_computed_gotos" in yes*)
16679
16680$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
16681
16682esac
16683
16684case $ac_sys_system in
16685AIX*)
16686
16687$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
16688 ;;
16689esac
16690
16691
16692
16693
16694for h in `(cd $srcdir;echo Python/thread_*.h)`
16695do
16696  THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
16697done
16698
16699
16700SRCDIRS="Parser Objects Python Modules Modules/_io Programs"
16701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
16702$as_echo_n "checking for build directories... " >&6; }
16703for dir in $SRCDIRS; do
16704    if test ! -d $dir; then
16705        mkdir $dir
16706    fi
16707done
16708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16709$as_echo "done" >&6; }
16710
16711# Availability of -O2:
16712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
16713$as_echo_n "checking for -O2... " >&6; }
16714saved_cflags="$CFLAGS"
16715CFLAGS="-O2"
16716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717/* end confdefs.h.  */
16718
16719int
16720main ()
16721{
16722
16723
16724  ;
16725  return 0;
16726}
16727_ACEOF
16728if ac_fn_c_try_compile "$LINENO"; then :
16729  have_O2=yes
16730else
16731  have_O2=no
16732fi
16733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
16735$as_echo "$have_O2" >&6; }
16736CFLAGS="$saved_cflags"
16737
16738# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
16739# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
16740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
16741$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
16742saved_cflags="$CFLAGS"
16743CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
16744if test "$have_O2" = no; then
16745    CFLAGS=""
16746fi
16747if test "$cross_compiling" = yes; then :
16748  have_glibc_memmove_bug=undefined
16749else
16750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751/* end confdefs.h.  */
16752
16753#include <stdio.h>
16754#include <stdlib.h>
16755#include <string.h>
16756void foo(void *p, void *q) { memmove(p, q, 19); }
16757int main() {
16758  char a[32] = "123456789000000000";
16759  foo(&a[9], a);
16760  if (strcmp(a, "123456789123456789000000000") != 0)
16761    return 1;
16762  foo(a, &a[9]);
16763  if (strcmp(a, "123456789000000000") != 0)
16764    return 1;
16765  return 0;
16766}
16767
16768_ACEOF
16769if ac_fn_c_try_run "$LINENO"; then :
16770  have_glibc_memmove_bug=no
16771else
16772  have_glibc_memmove_bug=yes
16773fi
16774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16775  conftest.$ac_objext conftest.beam conftest.$ac_ext
16776fi
16777
16778CFLAGS="$saved_cflags"
16779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
16780$as_echo "$have_glibc_memmove_bug" >&6; }
16781if test "$have_glibc_memmove_bug" = yes; then
16782
16783$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
16784
16785fi
16786
16787if test "$have_gcc_asm_for_x87" = yes; then
16788    # Some versions of gcc miscompile inline asm:
16789    # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
16790    # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
16791    case $CC in
16792        *gcc*)
16793            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
16794$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
16795            saved_cflags="$CFLAGS"
16796            CFLAGS="-O2"
16797            if test "$cross_compiling" = yes; then :
16798  have_ipa_pure_const_bug=undefined
16799else
16800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802
16803            __attribute__((noinline)) int
16804            foo(int *p) {
16805              int r;
16806              asm ( "movl \$6, (%1)\n\t"
16807                    "xorl %0, %0\n\t"
16808                    : "=r" (r) : "r" (p) : "memory"
16809              );
16810              return r;
16811            }
16812            int main() {
16813              int p = 8;
16814              if ((foo(&p) ? : p) != 6)
16815                return 1;
16816              return 0;
16817            }
16818
16819_ACEOF
16820if ac_fn_c_try_run "$LINENO"; then :
16821  have_ipa_pure_const_bug=no
16822else
16823  have_ipa_pure_const_bug=yes
16824fi
16825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16826  conftest.$ac_objext conftest.beam conftest.$ac_ext
16827fi
16828
16829            CFLAGS="$saved_cflags"
16830            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
16831$as_echo "$have_ipa_pure_const_bug" >&6; }
16832            if test "$have_ipa_pure_const_bug" = yes; then
16833
16834$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
16835
16836            fi
16837        ;;
16838    esac
16839fi
16840
16841# Check for stdatomic.h
16842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
16843$as_echo_n "checking for stdatomic.h... " >&6; }
16844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845/* end confdefs.h.  */
16846
16847
16848    #include <stdatomic.h>
16849    atomic_int int_var;
16850    atomic_uintptr_t uintptr_var;
16851    int main() {
16852      atomic_store_explicit(&int_var, 5, memory_order_relaxed);
16853      atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
16854      int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
16855      return 0;
16856    }
16857
16858
16859_ACEOF
16860if ac_fn_c_try_link "$LINENO"; then :
16861  have_stdatomic_h=yes
16862else
16863  have_stdatomic_h=no
16864fi
16865rm -f core conftest.err conftest.$ac_objext \
16866    conftest$ac_exeext conftest.$ac_ext
16867
16868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5
16869$as_echo "$have_stdatomic_h" >&6; }
16870
16871if test "$have_stdatomic_h" = yes; then
16872
16873$as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h
16874
16875fi
16876
16877# Check for GCC >= 4.7 __atomic builtins
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5
16879$as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; }
16880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881/* end confdefs.h.  */
16882
16883
16884    volatile int val = 1;
16885    int main() {
16886      __atomic_load_n(&val, __ATOMIC_SEQ_CST);
16887      return 0;
16888    }
16889
16890
16891_ACEOF
16892if ac_fn_c_try_link "$LINENO"; then :
16893  have_builtin_atomic=yes
16894else
16895  have_builtin_atomic=no
16896fi
16897rm -f core conftest.err conftest.$ac_objext \
16898    conftest$ac_exeext conftest.$ac_ext
16899
16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5
16901$as_echo "$have_builtin_atomic" >&6; }
16902
16903if test "$have_builtin_atomic" = yes; then
16904
16905$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
16906
16907fi
16908
16909# ensurepip option
16910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
16911$as_echo_n "checking for ensurepip... " >&6; }
16912
16913# Check whether --with-ensurepip was given.
16914if test "${with_ensurepip+set}" = set; then :
16915  withval=$with_ensurepip;
16916else
16917  with_ensurepip=upgrade
16918fi
16919
16920case $with_ensurepip in #(
16921  yes|upgrade) :
16922    ENSUREPIP=upgrade ;; #(
16923  install) :
16924    ENSUREPIP=install ;; #(
16925  no) :
16926    ENSUREPIP=no ;; #(
16927  *) :
16928    as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
16929esac
16930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
16931$as_echo "$ENSUREPIP" >&6; }
16932
16933
16934# check if the dirent structure of a d_type field and DT_UNKNOWN is defined
16935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
16936$as_echo_n "checking if the dirent structure of a d_type field... " >&6; }
16937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h.  */
16939
16940
16941    #include <dirent.h>
16942
16943    int main() {
16944      struct dirent entry;
16945      return entry.d_type == DT_UNKNOWN;
16946    }
16947
16948
16949_ACEOF
16950if ac_fn_c_try_link "$LINENO"; then :
16951  have_dirent_d_type=yes
16952else
16953  have_dirent_d_type=no
16954fi
16955rm -f core conftest.err conftest.$ac_objext \
16956    conftest$ac_exeext conftest.$ac_ext
16957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5
16958$as_echo "$have_dirent_d_type" >&6; }
16959
16960if test "$have_dirent_d_type" = yes; then
16961
16962$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
16963
16964fi
16965
16966# check if the Linux getrandom() syscall is available
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
16968$as_echo_n "checking for the Linux getrandom() syscall... " >&6; }
16969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970/* end confdefs.h.  */
16971
16972
16973    #include <unistd.h>
16974    #include <sys/syscall.h>
16975    #include <linux/random.h>
16976
16977    int main() {
16978        char buffer[1];
16979        const size_t buflen = sizeof(buffer);
16980        const int flags = GRND_NONBLOCK;
16981        /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
16982        (void)syscall(SYS_getrandom, buffer, buflen, flags);
16983        return 0;
16984    }
16985
16986
16987_ACEOF
16988if ac_fn_c_try_link "$LINENO"; then :
16989  have_getrandom_syscall=yes
16990else
16991  have_getrandom_syscall=no
16992fi
16993rm -f core conftest.err conftest.$ac_objext \
16994    conftest$ac_exeext conftest.$ac_ext
16995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5
16996$as_echo "$have_getrandom_syscall" >&6; }
16997
16998if test "$have_getrandom_syscall" = yes; then
16999
17000$as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
17001
17002fi
17003
17004# check if the getrandom() function is available
17005# the test was written for the Solaris function of <sys/random.h>
17006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
17007$as_echo_n "checking for the getrandom() function... " >&6; }
17008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009/* end confdefs.h.  */
17010
17011
17012    #include <sys/random.h>
17013
17014    int main() {
17015        char buffer[1];
17016        const size_t buflen = sizeof(buffer);
17017        const int flags = 0;
17018        /* ignore the result, Python checks for ENOSYS at runtime */
17019        (void)getrandom(buffer, buflen, flags);
17020        return 0;
17021    }
17022
17023
17024_ACEOF
17025if ac_fn_c_try_link "$LINENO"; then :
17026  have_getrandom=yes
17027else
17028  have_getrandom=no
17029fi
17030rm -f core conftest.err conftest.$ac_objext \
17031    conftest$ac_exeext conftest.$ac_ext
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5
17033$as_echo "$have_getrandom" >&6; }
17034
17035if test "$have_getrandom" = yes; then
17036
17037$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
17038
17039fi
17040
17041# checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
17042# shm_* may only be available if linking against librt
17043save_LIBS="$LIBS"
17044save_includes_default="$ac_includes_default"
17045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
17046$as_echo_n "checking for library containing shm_open... " >&6; }
17047if ${ac_cv_search_shm_open+:} false; then :
17048  $as_echo_n "(cached) " >&6
17049else
17050  ac_func_search_save_LIBS=$LIBS
17051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052/* end confdefs.h.  */
17053
17054/* Override any GCC internal prototype to avoid an error.
17055   Use char because int might match the return type of a GCC
17056   builtin and then its argument prototype would still apply.  */
17057#ifdef __cplusplus
17058extern "C"
17059#endif
17060char shm_open ();
17061int
17062main ()
17063{
17064return shm_open ();
17065  ;
17066  return 0;
17067}
17068_ACEOF
17069for ac_lib in '' rt; do
17070  if test -z "$ac_lib"; then
17071    ac_res="none required"
17072  else
17073    ac_res=-l$ac_lib
17074    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17075  fi
17076  if ac_fn_c_try_link "$LINENO"; then :
17077  ac_cv_search_shm_open=$ac_res
17078fi
17079rm -f core conftest.err conftest.$ac_objext \
17080    conftest$ac_exeext
17081  if ${ac_cv_search_shm_open+:} false; then :
17082  break
17083fi
17084done
17085if ${ac_cv_search_shm_open+:} false; then :
17086
17087else
17088  ac_cv_search_shm_open=no
17089fi
17090rm conftest.$ac_ext
17091LIBS=$ac_func_search_save_LIBS
17092fi
17093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
17094$as_echo "$ac_cv_search_shm_open" >&6; }
17095ac_res=$ac_cv_search_shm_open
17096if test "$ac_res" != no; then :
17097  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17098
17099fi
17100
17101if test "$ac_cv_search_shm_open" = "-lrt"; then
17102
17103$as_echo "#define SHM_NEEDS_LIBRT 1" >>confdefs.h
17104
17105fi
17106for ac_header in sys/mman.h
17107do :
17108  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17109if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17110  cat >>confdefs.h <<_ACEOF
17111#define HAVE_SYS_MMAN_H 1
17112_ACEOF
17113
17114fi
17115
17116done
17117
17118# temporarily override ac_includes_default for AC_CHECK_FUNCS below
17119ac_includes_default="\
17120${ac_includes_default}
17121#ifndef __cplusplus
17122#  ifdef HAVE_SYS_MMAN_H
17123#    include <sys/mman.h>
17124#  endif
17125#endif
17126"
17127for ac_func in shm_open shm_unlink
17128do :
17129  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17130ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17131if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17132  cat >>confdefs.h <<_ACEOF
17133#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17134_ACEOF
17135
17136fi
17137done
17138
17139# we don't want to link with librt always, restore LIBS
17140LIBS="$save_LIBS"
17141ac_includes_default="$save_includes_default"
17142
17143# Check for usable OpenSSL
17144
17145    found=false
17146
17147# Check whether --with-openssl was given.
17148if test "${with_openssl+set}" = set; then :
17149  withval=$with_openssl;
17150            case "$withval" in
17151            "" | y | ye | yes | n | no)
17152            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
17153              ;;
17154            *) ssldirs="$withval"
17155              ;;
17156            esac
17157
17158else
17159
17160            # if pkg-config is installed and openssl has installed a .pc file,
17161            # then use that information and don't search ssldirs
17162            if test -n "$ac_tool_prefix"; then
17163  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17164set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17166$as_echo_n "checking for $ac_word... " >&6; }
17167if ${ac_cv_prog_PKG_CONFIG+:} false; then :
17168  $as_echo_n "(cached) " >&6
17169else
17170  if test -n "$PKG_CONFIG"; then
17171  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17172else
17173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17174for as_dir in $PATH
17175do
17176  IFS=$as_save_IFS
17177  test -z "$as_dir" && as_dir=.
17178    for ac_exec_ext in '' $ac_executable_extensions; do
17179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17180    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17182    break 2
17183  fi
17184done
17185  done
17186IFS=$as_save_IFS
17187
17188fi
17189fi
17190PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17191if test -n "$PKG_CONFIG"; then
17192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17193$as_echo "$PKG_CONFIG" >&6; }
17194else
17195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17196$as_echo "no" >&6; }
17197fi
17198
17199
17200fi
17201if test -z "$ac_cv_prog_PKG_CONFIG"; then
17202  ac_ct_PKG_CONFIG=$PKG_CONFIG
17203  # Extract the first word of "pkg-config", so it can be a program name with args.
17204set dummy pkg-config; ac_word=$2
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17206$as_echo_n "checking for $ac_word... " >&6; }
17207if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
17208  $as_echo_n "(cached) " >&6
17209else
17210  if test -n "$ac_ct_PKG_CONFIG"; then
17211  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17212else
17213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214for as_dir in $PATH
17215do
17216  IFS=$as_save_IFS
17217  test -z "$as_dir" && as_dir=.
17218    for ac_exec_ext in '' $ac_executable_extensions; do
17219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17222    break 2
17223  fi
17224done
17225  done
17226IFS=$as_save_IFS
17227
17228fi
17229fi
17230ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17231if test -n "$ac_ct_PKG_CONFIG"; then
17232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17233$as_echo "$ac_ct_PKG_CONFIG" >&6; }
17234else
17235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236$as_echo "no" >&6; }
17237fi
17238
17239  if test "x$ac_ct_PKG_CONFIG" = x; then
17240    PKG_CONFIG=""
17241  else
17242    case $cross_compiling:$ac_tool_warned in
17243yes:)
17244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17246ac_tool_warned=yes ;;
17247esac
17248    PKG_CONFIG=$ac_ct_PKG_CONFIG
17249  fi
17250else
17251  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17252fi
17253
17254            if test x"$PKG_CONFIG" != x""; then
17255                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
17256                if test $? = 0; then
17257                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
17258                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
17259                    found=true
17260                fi
17261            fi
17262
17263            # no such luck; use some default ssldirs
17264            if ! $found; then
17265                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
17266            fi
17267
17268
17269fi
17270
17271
17272
17273    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
17274    # an 'openssl' subdirectory
17275
17276    if ! $found; then
17277        OPENSSL_INCLUDES=
17278        for ssldir in $ssldirs; do
17279            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
17280$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
17281            if test -f "$ssldir/include/openssl/ssl.h"; then
17282                OPENSSL_INCLUDES="-I$ssldir/include"
17283                OPENSSL_LDFLAGS="-L$ssldir/lib"
17284                OPENSSL_LIBS="-lssl -lcrypto"
17285                found=true
17286                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17287$as_echo "yes" >&6; }
17288                break
17289            else
17290                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291$as_echo "no" >&6; }
17292            fi
17293        done
17294
17295        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
17296        # it will just work!
17297    fi
17298
17299    # try the preprocessor and linker with our new flags,
17300    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
17301
17302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
17303$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
17304    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
17305        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
17306
17307    save_LIBS="$LIBS"
17308    save_LDFLAGS="$LDFLAGS"
17309    save_CPPFLAGS="$CPPFLAGS"
17310    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
17311    LIBS="$OPENSSL_LIBS $LIBS"
17312    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
17313    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314/* end confdefs.h.  */
17315#include <openssl/ssl.h>
17316int
17317main ()
17318{
17319SSL_new(NULL)
17320  ;
17321  return 0;
17322}
17323_ACEOF
17324if ac_fn_c_try_link "$LINENO"; then :
17325
17326            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17327$as_echo "yes" >&6; }
17328            have_openssl=yes
17329
17330else
17331
17332            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333$as_echo "no" >&6; }
17334            have_openssl=no
17335
17336fi
17337rm -f core conftest.err conftest.$ac_objext \
17338    conftest$ac_exeext conftest.$ac_ext
17339    CPPFLAGS="$save_CPPFLAGS"
17340    LDFLAGS="$save_LDFLAGS"
17341    LIBS="$save_LIBS"
17342
17343
17344
17345
17346
17347
17348if test "$have_openssl" = yes; then
17349    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5
17350$as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; }
17351
17352    save_LIBS="$LIBS"
17353    save_LDFLAGS="$LDFLAGS"
17354    save_CPPFLAGS="$CPPFLAGS"
17355    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
17356    LIBS="$OPENSSL_LIBS $LIBS"
17357    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
17358
17359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360/* end confdefs.h.  */
17361
17362        #include <openssl/x509_vfy.h>
17363
17364int
17365main ()
17366{
17367
17368        X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new();
17369        X509_VERIFY_PARAM_set1_host(p, "localhost", 0);
17370        X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1");
17371        X509_VERIFY_PARAM_set_hostflags(p, 0);
17372
17373  ;
17374  return 0;
17375}
17376
17377_ACEOF
17378if ac_fn_c_try_link "$LINENO"; then :
17379
17380        ac_cv_has_x509_verify_param_set1_host=yes
17381
17382else
17383
17384        ac_cv_has_x509_verify_param_set1_host=no
17385
17386fi
17387rm -f core conftest.err conftest.$ac_objext \
17388    conftest$ac_exeext conftest.$ac_ext
17389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5
17390$as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; }
17391    if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then
17392
17393$as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h
17394
17395    fi
17396
17397    CPPFLAGS="$save_CPPFLAGS"
17398    LDFLAGS="$save_LDFLAGS"
17399    LIBS="$save_LIBS"
17400fi
17401
17402# ssl module default cipher suite string
17403
17404
17405
17406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
17407$as_echo_n "checking for --with-ssl-default-suites... " >&6; }
17408
17409# Check whether --with-ssl-default-suites was given.
17410if test "${with_ssl_default_suites+set}" = set; then :
17411  withval=$with_ssl_default_suites;
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17413$as_echo "$withval" >&6; }
17414case "$withval" in
17415    python)
17416        $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
17417
17418        ;;
17419    openssl)
17420        $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
17421
17422        ;;
17423    *)
17424        $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
17425
17426        cat >>confdefs.h <<_ACEOF
17427#define PY_SSL_DEFAULT_CIPHER_STRING "$withval"
17428_ACEOF
17429
17430        ;;
17431esac
17432
17433else
17434
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5
17436$as_echo "python" >&6; }
17437$as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
17438
17439
17440fi
17441
17442
17443
17444# generate output files
17445ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
17446
17447ac_config_files="$ac_config_files Modules/ld_so_aix"
17448
17449cat >confcache <<\_ACEOF
17450# This file is a shell script that caches the results of configure
17451# tests run on this system so they can be shared between configure
17452# scripts and configure runs, see configure's option --config-cache.
17453# It is not useful on other systems.  If it contains results you don't
17454# want to keep, you may remove or edit it.
17455#
17456# config.status only pays attention to the cache file if you give it
17457# the --recheck option to rerun configure.
17458#
17459# `ac_cv_env_foo' variables (set or unset) will be overridden when
17460# loading this file, other *unset* `ac_cv_foo' will be assigned the
17461# following values.
17462
17463_ACEOF
17464
17465# The following way of writing the cache mishandles newlines in values,
17466# but we know of no workaround that is simple, portable, and efficient.
17467# So, we kill variables containing newlines.
17468# Ultrix sh set writes to stderr and can't be redirected directly,
17469# and sets the high bit in the cache file unless we assign to the vars.
17470(
17471  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17472    eval ac_val=\$$ac_var
17473    case $ac_val in #(
17474    *${as_nl}*)
17475      case $ac_var in #(
17476      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17477$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17478      esac
17479      case $ac_var in #(
17480      _ | IFS | as_nl) ;; #(
17481      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17482      *) { eval $ac_var=; unset $ac_var;} ;;
17483      esac ;;
17484    esac
17485  done
17486
17487  (set) 2>&1 |
17488    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17489    *${as_nl}ac_space=\ *)
17490      # `set' does not quote correctly, so add quotes: double-quote
17491      # substitution turns \\\\ into \\, and sed turns \\ into \.
17492      sed -n \
17493	"s/'/'\\\\''/g;
17494	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17495      ;; #(
17496    *)
17497      # `set' quotes correctly as required by POSIX, so do not add quotes.
17498      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17499      ;;
17500    esac |
17501    sort
17502) |
17503  sed '
17504     /^ac_cv_env_/b end
17505     t clear
17506     :clear
17507     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17508     t end
17509     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17510     :end' >>confcache
17511if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17512  if test -w "$cache_file"; then
17513    if test "x$cache_file" != "x/dev/null"; then
17514      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17515$as_echo "$as_me: updating cache $cache_file" >&6;}
17516      if test ! -f "$cache_file" || test -h "$cache_file"; then
17517	cat confcache >"$cache_file"
17518      else
17519        case $cache_file in #(
17520        */* | ?:*)
17521	  mv -f confcache "$cache_file"$$ &&
17522	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17523        *)
17524	  mv -f confcache "$cache_file" ;;
17525	esac
17526      fi
17527    fi
17528  else
17529    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17530$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17531  fi
17532fi
17533rm -f confcache
17534
17535test "x$prefix" = xNONE && prefix=$ac_default_prefix
17536# Let make expand exec_prefix.
17537test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17538
17539DEFS=-DHAVE_CONFIG_H
17540
17541ac_libobjs=
17542ac_ltlibobjs=
17543U=
17544for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17545  # 1. Remove the extension, and $U if already installed.
17546  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17547  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17548  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17549  #    will be set to the directory where LIBOBJS objects are built.
17550  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17551  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17552done
17553LIBOBJS=$ac_libobjs
17554
17555LTLIBOBJS=$ac_ltlibobjs
17556
17557
17558
17559
17560: "${CONFIG_STATUS=./config.status}"
17561ac_write_fail=0
17562ac_clean_files_save=$ac_clean_files
17563ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17564{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17565$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17566as_write_fail=0
17567cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17568#! $SHELL
17569# Generated by $as_me.
17570# Run this file to recreate the current configuration.
17571# Compiler output produced by configure, useful for debugging
17572# configure, is in config.log if it exists.
17573
17574debug=false
17575ac_cs_recheck=false
17576ac_cs_silent=false
17577
17578SHELL=\${CONFIG_SHELL-$SHELL}
17579export SHELL
17580_ASEOF
17581cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17582## -------------------- ##
17583## M4sh Initialization. ##
17584## -------------------- ##
17585
17586# Be more Bourne compatible
17587DUALCASE=1; export DUALCASE # for MKS sh
17588if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17589  emulate sh
17590  NULLCMD=:
17591  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17592  # is contrary to our usage.  Disable this feature.
17593  alias -g '${1+"$@"}'='"$@"'
17594  setopt NO_GLOB_SUBST
17595else
17596  case `(set -o) 2>/dev/null` in #(
17597  *posix*) :
17598    set -o posix ;; #(
17599  *) :
17600     ;;
17601esac
17602fi
17603
17604
17605as_nl='
17606'
17607export as_nl
17608# Printing a long string crashes Solaris 7 /usr/bin/printf.
17609as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17610as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17611as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17612# Prefer a ksh shell builtin over an external printf program on Solaris,
17613# but without wasting forks for bash or zsh.
17614if test -z "$BASH_VERSION$ZSH_VERSION" \
17615    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17616  as_echo='print -r --'
17617  as_echo_n='print -rn --'
17618elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17619  as_echo='printf %s\n'
17620  as_echo_n='printf %s'
17621else
17622  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17623    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17624    as_echo_n='/usr/ucb/echo -n'
17625  else
17626    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17627    as_echo_n_body='eval
17628      arg=$1;
17629      case $arg in #(
17630      *"$as_nl"*)
17631	expr "X$arg" : "X\\(.*\\)$as_nl";
17632	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17633      esac;
17634      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17635    '
17636    export as_echo_n_body
17637    as_echo_n='sh -c $as_echo_n_body as_echo'
17638  fi
17639  export as_echo_body
17640  as_echo='sh -c $as_echo_body as_echo'
17641fi
17642
17643# The user is always right.
17644if test "${PATH_SEPARATOR+set}" != set; then
17645  PATH_SEPARATOR=:
17646  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17647    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17648      PATH_SEPARATOR=';'
17649  }
17650fi
17651
17652
17653# IFS
17654# We need space, tab and new line, in precisely that order.  Quoting is
17655# there to prevent editors from complaining about space-tab.
17656# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17657# splitting by setting IFS to empty value.)
17658IFS=" ""	$as_nl"
17659
17660# Find who we are.  Look in the path if we contain no directory separator.
17661as_myself=
17662case $0 in #((
17663  *[\\/]* ) as_myself=$0 ;;
17664  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17665for as_dir in $PATH
17666do
17667  IFS=$as_save_IFS
17668  test -z "$as_dir" && as_dir=.
17669    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17670  done
17671IFS=$as_save_IFS
17672
17673     ;;
17674esac
17675# We did not find ourselves, most probably we were run as `sh COMMAND'
17676# in which case we are not to be found in the path.
17677if test "x$as_myself" = x; then
17678  as_myself=$0
17679fi
17680if test ! -f "$as_myself"; then
17681  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17682  exit 1
17683fi
17684
17685# Unset variables that we do not need and which cause bugs (e.g. in
17686# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17687# suppresses any "Segmentation fault" message there.  '((' could
17688# trigger a bug in pdksh 5.2.14.
17689for as_var in BASH_ENV ENV MAIL MAILPATH
17690do eval test x\${$as_var+set} = xset \
17691  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17692done
17693PS1='$ '
17694PS2='> '
17695PS4='+ '
17696
17697# NLS nuisances.
17698LC_ALL=C
17699export LC_ALL
17700LANGUAGE=C
17701export LANGUAGE
17702
17703# CDPATH.
17704(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17705
17706
17707# as_fn_error STATUS ERROR [LINENO LOG_FD]
17708# ----------------------------------------
17709# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17710# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17711# script with STATUS, using 1 if that was 0.
17712as_fn_error ()
17713{
17714  as_status=$1; test $as_status -eq 0 && as_status=1
17715  if test "$4"; then
17716    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17717    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17718  fi
17719  $as_echo "$as_me: error: $2" >&2
17720  as_fn_exit $as_status
17721} # as_fn_error
17722
17723
17724# as_fn_set_status STATUS
17725# -----------------------
17726# Set $? to STATUS, without forking.
17727as_fn_set_status ()
17728{
17729  return $1
17730} # as_fn_set_status
17731
17732# as_fn_exit STATUS
17733# -----------------
17734# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17735as_fn_exit ()
17736{
17737  set +e
17738  as_fn_set_status $1
17739  exit $1
17740} # as_fn_exit
17741
17742# as_fn_unset VAR
17743# ---------------
17744# Portably unset VAR.
17745as_fn_unset ()
17746{
17747  { eval $1=; unset $1;}
17748}
17749as_unset=as_fn_unset
17750# as_fn_append VAR VALUE
17751# ----------------------
17752# Append the text in VALUE to the end of the definition contained in VAR. Take
17753# advantage of any shell optimizations that allow amortized linear growth over
17754# repeated appends, instead of the typical quadratic growth present in naive
17755# implementations.
17756if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17757  eval 'as_fn_append ()
17758  {
17759    eval $1+=\$2
17760  }'
17761else
17762  as_fn_append ()
17763  {
17764    eval $1=\$$1\$2
17765  }
17766fi # as_fn_append
17767
17768# as_fn_arith ARG...
17769# ------------------
17770# Perform arithmetic evaluation on the ARGs, and store the result in the
17771# global $as_val. Take advantage of shells that can avoid forks. The arguments
17772# must be portable across $(()) and expr.
17773if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17774  eval 'as_fn_arith ()
17775  {
17776    as_val=$(( $* ))
17777  }'
17778else
17779  as_fn_arith ()
17780  {
17781    as_val=`expr "$@" || test $? -eq 1`
17782  }
17783fi # as_fn_arith
17784
17785
17786if expr a : '\(a\)' >/dev/null 2>&1 &&
17787   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17788  as_expr=expr
17789else
17790  as_expr=false
17791fi
17792
17793if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17794  as_basename=basename
17795else
17796  as_basename=false
17797fi
17798
17799if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17800  as_dirname=dirname
17801else
17802  as_dirname=false
17803fi
17804
17805as_me=`$as_basename -- "$0" ||
17806$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17807	 X"$0" : 'X\(//\)$' \| \
17808	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17809$as_echo X/"$0" |
17810    sed '/^.*\/\([^/][^/]*\)\/*$/{
17811	    s//\1/
17812	    q
17813	  }
17814	  /^X\/\(\/\/\)$/{
17815	    s//\1/
17816	    q
17817	  }
17818	  /^X\/\(\/\).*/{
17819	    s//\1/
17820	    q
17821	  }
17822	  s/.*/./; q'`
17823
17824# Avoid depending upon Character Ranges.
17825as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17826as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17827as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17828as_cr_digits='0123456789'
17829as_cr_alnum=$as_cr_Letters$as_cr_digits
17830
17831ECHO_C= ECHO_N= ECHO_T=
17832case `echo -n x` in #(((((
17833-n*)
17834  case `echo 'xy\c'` in
17835  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17836  xy)  ECHO_C='\c';;
17837  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17838       ECHO_T='	';;
17839  esac;;
17840*)
17841  ECHO_N='-n';;
17842esac
17843
17844rm -f conf$$ conf$$.exe conf$$.file
17845if test -d conf$$.dir; then
17846  rm -f conf$$.dir/conf$$.file
17847else
17848  rm -f conf$$.dir
17849  mkdir conf$$.dir 2>/dev/null
17850fi
17851if (echo >conf$$.file) 2>/dev/null; then
17852  if ln -s conf$$.file conf$$ 2>/dev/null; then
17853    as_ln_s='ln -s'
17854    # ... but there are two gotchas:
17855    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17856    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17857    # In both cases, we have to default to `cp -pR'.
17858    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17859      as_ln_s='cp -pR'
17860  elif ln conf$$.file conf$$ 2>/dev/null; then
17861    as_ln_s=ln
17862  else
17863    as_ln_s='cp -pR'
17864  fi
17865else
17866  as_ln_s='cp -pR'
17867fi
17868rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17869rmdir conf$$.dir 2>/dev/null
17870
17871
17872# as_fn_mkdir_p
17873# -------------
17874# Create "$as_dir" as a directory, including parents if necessary.
17875as_fn_mkdir_p ()
17876{
17877
17878  case $as_dir in #(
17879  -*) as_dir=./$as_dir;;
17880  esac
17881  test -d "$as_dir" || eval $as_mkdir_p || {
17882    as_dirs=
17883    while :; do
17884      case $as_dir in #(
17885      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17886      *) as_qdir=$as_dir;;
17887      esac
17888      as_dirs="'$as_qdir' $as_dirs"
17889      as_dir=`$as_dirname -- "$as_dir" ||
17890$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17891	 X"$as_dir" : 'X\(//\)[^/]' \| \
17892	 X"$as_dir" : 'X\(//\)$' \| \
17893	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17894$as_echo X"$as_dir" |
17895    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17896	    s//\1/
17897	    q
17898	  }
17899	  /^X\(\/\/\)[^/].*/{
17900	    s//\1/
17901	    q
17902	  }
17903	  /^X\(\/\/\)$/{
17904	    s//\1/
17905	    q
17906	  }
17907	  /^X\(\/\).*/{
17908	    s//\1/
17909	    q
17910	  }
17911	  s/.*/./; q'`
17912      test -d "$as_dir" && break
17913    done
17914    test -z "$as_dirs" || eval "mkdir $as_dirs"
17915  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17916
17917
17918} # as_fn_mkdir_p
17919if mkdir -p . 2>/dev/null; then
17920  as_mkdir_p='mkdir -p "$as_dir"'
17921else
17922  test -d ./-p && rmdir ./-p
17923  as_mkdir_p=false
17924fi
17925
17926
17927# as_fn_executable_p FILE
17928# -----------------------
17929# Test if FILE is an executable regular file.
17930as_fn_executable_p ()
17931{
17932  test -f "$1" && test -x "$1"
17933} # as_fn_executable_p
17934as_test_x='test -x'
17935as_executable_p=as_fn_executable_p
17936
17937# Sed expression to map a string onto a valid CPP name.
17938as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17939
17940# Sed expression to map a string onto a valid variable name.
17941as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17942
17943
17944exec 6>&1
17945## ----------------------------------- ##
17946## Main body of $CONFIG_STATUS script. ##
17947## ----------------------------------- ##
17948_ASEOF
17949test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17950
17951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952# Save the log message, to keep $0 and so on meaningful, and to
17953# report actual input values of CONFIG_FILES etc. instead of their
17954# values after options handling.
17955ac_log="
17956This file was extended by python $as_me 3.8, which was
17957generated by GNU Autoconf 2.69.  Invocation command line was
17958
17959  CONFIG_FILES    = $CONFIG_FILES
17960  CONFIG_HEADERS  = $CONFIG_HEADERS
17961  CONFIG_LINKS    = $CONFIG_LINKS
17962  CONFIG_COMMANDS = $CONFIG_COMMANDS
17963  $ $0 $@
17964
17965on `(hostname || uname -n) 2>/dev/null | sed 1q`
17966"
17967
17968_ACEOF
17969
17970case $ac_config_files in *"
17971"*) set x $ac_config_files; shift; ac_config_files=$*;;
17972esac
17973
17974case $ac_config_headers in *"
17975"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17976esac
17977
17978
17979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980# Files that config.status was made for.
17981config_files="$ac_config_files"
17982config_headers="$ac_config_headers"
17983
17984_ACEOF
17985
17986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17987ac_cs_usage="\
17988\`$as_me' instantiates files and other configuration actions
17989from templates according to the current configuration.  Unless the files
17990and actions are specified as TAGs, all are instantiated by default.
17991
17992Usage: $0 [OPTION]... [TAG]...
17993
17994  -h, --help       print this help, then exit
17995  -V, --version    print version number and configuration settings, then exit
17996      --config     print configuration, then exit
17997  -q, --quiet, --silent
17998                   do not print progress messages
17999  -d, --debug      don't remove temporary files
18000      --recheck    update $as_me by reconfiguring in the same conditions
18001      --file=FILE[:TEMPLATE]
18002                   instantiate the configuration file FILE
18003      --header=FILE[:TEMPLATE]
18004                   instantiate the configuration header FILE
18005
18006Configuration files:
18007$config_files
18008
18009Configuration headers:
18010$config_headers
18011
18012Report bugs to <https://bugs.python.org/>."
18013
18014_ACEOF
18015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18016ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18017ac_cs_version="\\
18018python config.status 3.8
18019configured by $0, generated by GNU Autoconf 2.69,
18020  with options \\"\$ac_cs_config\\"
18021
18022Copyright (C) 2012 Free Software Foundation, Inc.
18023This config.status script is free software; the Free Software Foundation
18024gives unlimited permission to copy, distribute and modify it."
18025
18026ac_pwd='$ac_pwd'
18027srcdir='$srcdir'
18028INSTALL='$INSTALL'
18029MKDIR_P='$MKDIR_P'
18030test -n "\$AWK" || AWK=awk
18031_ACEOF
18032
18033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18034# The default lists apply if the user does not specify any file.
18035ac_need_defaults=:
18036while test $# != 0
18037do
18038  case $1 in
18039  --*=?*)
18040    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18041    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18042    ac_shift=:
18043    ;;
18044  --*=)
18045    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18046    ac_optarg=
18047    ac_shift=:
18048    ;;
18049  *)
18050    ac_option=$1
18051    ac_optarg=$2
18052    ac_shift=shift
18053    ;;
18054  esac
18055
18056  case $ac_option in
18057  # Handling of the options.
18058  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18059    ac_cs_recheck=: ;;
18060  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18061    $as_echo "$ac_cs_version"; exit ;;
18062  --config | --confi | --conf | --con | --co | --c )
18063    $as_echo "$ac_cs_config"; exit ;;
18064  --debug | --debu | --deb | --de | --d | -d )
18065    debug=: ;;
18066  --file | --fil | --fi | --f )
18067    $ac_shift
18068    case $ac_optarg in
18069    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18070    '') as_fn_error $? "missing file argument" ;;
18071    esac
18072    as_fn_append CONFIG_FILES " '$ac_optarg'"
18073    ac_need_defaults=false;;
18074  --header | --heade | --head | --hea )
18075    $ac_shift
18076    case $ac_optarg in
18077    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18078    esac
18079    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18080    ac_need_defaults=false;;
18081  --he | --h)
18082    # Conflict between --help and --header
18083    as_fn_error $? "ambiguous option: \`$1'
18084Try \`$0 --help' for more information.";;
18085  --help | --hel | -h )
18086    $as_echo "$ac_cs_usage"; exit ;;
18087  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18088  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18089    ac_cs_silent=: ;;
18090
18091  # This is an error.
18092  -*) as_fn_error $? "unrecognized option: \`$1'
18093Try \`$0 --help' for more information." ;;
18094
18095  *) as_fn_append ac_config_targets " $1"
18096     ac_need_defaults=false ;;
18097
18098  esac
18099  shift
18100done
18101
18102ac_configure_extra_args=
18103
18104if $ac_cs_silent; then
18105  exec 6>/dev/null
18106  ac_configure_extra_args="$ac_configure_extra_args --silent"
18107fi
18108
18109_ACEOF
18110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18111if \$ac_cs_recheck; then
18112  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18113  shift
18114  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18115  CONFIG_SHELL='$SHELL'
18116  export CONFIG_SHELL
18117  exec "\$@"
18118fi
18119
18120_ACEOF
18121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18122exec 5>>config.log
18123{
18124  echo
18125  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18126## Running $as_me. ##
18127_ASBOX
18128  $as_echo "$ac_log"
18129} >&5
18130
18131_ACEOF
18132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18133_ACEOF
18134
18135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18136
18137# Handling of arguments.
18138for ac_config_target in $ac_config_targets
18139do
18140  case $ac_config_target in
18141    "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
18142    "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
18143    "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
18144    "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
18145    "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
18146    "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
18147    "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
18148    "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;;
18149    "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
18150    "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
18151
18152  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18153  esac
18154done
18155
18156
18157# If the user did not use the arguments to specify the items to instantiate,
18158# then the envvar interface is used.  Set only those that are not.
18159# We use the long form for the default assignment because of an extremely
18160# bizarre bug on SunOS 4.1.3.
18161if $ac_need_defaults; then
18162  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18163  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18164fi
18165
18166# Have a temporary directory for convenience.  Make it in the build tree
18167# simply because there is no reason against having it here, and in addition,
18168# creating and moving files from /tmp can sometimes cause problems.
18169# Hook for its removal unless debugging.
18170# Note that there is a small window in which the directory will not be cleaned:
18171# after its creation but before its name has been assigned to `$tmp'.
18172$debug ||
18173{
18174  tmp= ac_tmp=
18175  trap 'exit_status=$?
18176  : "${ac_tmp:=$tmp}"
18177  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18178' 0
18179  trap 'as_fn_exit 1' 1 2 13 15
18180}
18181# Create a (secure) tmp directory for tmp files.
18182
18183{
18184  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18185  test -d "$tmp"
18186}  ||
18187{
18188  tmp=./conf$$-$RANDOM
18189  (umask 077 && mkdir "$tmp")
18190} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18191ac_tmp=$tmp
18192
18193# Set up the scripts for CONFIG_FILES section.
18194# No need to generate them if there are no CONFIG_FILES.
18195# This happens for instance with `./config.status config.h'.
18196if test -n "$CONFIG_FILES"; then
18197
18198
18199ac_cr=`echo X | tr X '\015'`
18200# On cygwin, bash can eat \r inside `` if the user requested igncr.
18201# But we know of no other shell where ac_cr would be empty at this
18202# point, so we can use a bashism as a fallback.
18203if test "x$ac_cr" = x; then
18204  eval ac_cr=\$\'\\r\'
18205fi
18206ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18207if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18208  ac_cs_awk_cr='\\r'
18209else
18210  ac_cs_awk_cr=$ac_cr
18211fi
18212
18213echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18214_ACEOF
18215
18216
18217{
18218  echo "cat >conf$$subs.awk <<_ACEOF" &&
18219  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18220  echo "_ACEOF"
18221} >conf$$subs.sh ||
18222  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18223ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18224ac_delim='%!_!# '
18225for ac_last_try in false false false false false :; do
18226  . ./conf$$subs.sh ||
18227    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18228
18229  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18230  if test $ac_delim_n = $ac_delim_num; then
18231    break
18232  elif $ac_last_try; then
18233    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18234  else
18235    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18236  fi
18237done
18238rm -f conf$$subs.sh
18239
18240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18241cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18242_ACEOF
18243sed -n '
18244h
18245s/^/S["/; s/!.*/"]=/
18246p
18247g
18248s/^[^!]*!//
18249:repl
18250t repl
18251s/'"$ac_delim"'$//
18252t delim
18253:nl
18254h
18255s/\(.\{148\}\)..*/\1/
18256t more1
18257s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18258p
18259n
18260b repl
18261:more1
18262s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18263p
18264g
18265s/.\{148\}//
18266t nl
18267:delim
18268h
18269s/\(.\{148\}\)..*/\1/
18270t more2
18271s/["\\]/\\&/g; s/^/"/; s/$/"/
18272p
18273b
18274:more2
18275s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18276p
18277g
18278s/.\{148\}//
18279t delim
18280' <conf$$subs.awk | sed '
18281/^[^""]/{
18282  N
18283  s/\n//
18284}
18285' >>$CONFIG_STATUS || ac_write_fail=1
18286rm -f conf$$subs.awk
18287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18288_ACAWK
18289cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18290  for (key in S) S_is_set[key] = 1
18291  FS = ""
18292
18293}
18294{
18295  line = $ 0
18296  nfields = split(line, field, "@")
18297  substed = 0
18298  len = length(field[1])
18299  for (i = 2; i < nfields; i++) {
18300    key = field[i]
18301    keylen = length(key)
18302    if (S_is_set[key]) {
18303      value = S[key]
18304      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18305      len += length(value) + length(field[++i])
18306      substed = 1
18307    } else
18308      len += 1 + keylen
18309  }
18310
18311  print line
18312}
18313
18314_ACAWK
18315_ACEOF
18316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18318  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18319else
18320  cat
18321fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18322  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18323_ACEOF
18324
18325# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18326# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18327# trailing colons and then remove the whole line if VPATH becomes empty
18328# (actually we leave an empty line to preserve line numbers).
18329if test "x$srcdir" = x.; then
18330  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18331h
18332s///
18333s/^/:/
18334s/[	 ]*$/:/
18335s/:\$(srcdir):/:/g
18336s/:\${srcdir}:/:/g
18337s/:@srcdir@:/:/g
18338s/^:*//
18339s/:*$//
18340x
18341s/\(=[	 ]*\).*/\1/
18342G
18343s/\n//
18344s/^[^=]*=[	 ]*$//
18345}'
18346fi
18347
18348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18349fi # test -n "$CONFIG_FILES"
18350
18351# Set up the scripts for CONFIG_HEADERS section.
18352# No need to generate them if there are no CONFIG_HEADERS.
18353# This happens for instance with `./config.status Makefile'.
18354if test -n "$CONFIG_HEADERS"; then
18355cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18356BEGIN {
18357_ACEOF
18358
18359# Transform confdefs.h into an awk script `defines.awk', embedded as
18360# here-document in config.status, that substitutes the proper values into
18361# config.h.in to produce config.h.
18362
18363# Create a delimiter string that does not exist in confdefs.h, to ease
18364# handling of long lines.
18365ac_delim='%!_!# '
18366for ac_last_try in false false :; do
18367  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18368  if test -z "$ac_tt"; then
18369    break
18370  elif $ac_last_try; then
18371    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18372  else
18373    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18374  fi
18375done
18376
18377# For the awk script, D is an array of macro values keyed by name,
18378# likewise P contains macro parameters if any.  Preserve backslash
18379# newline sequences.
18380
18381ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18382sed -n '
18383s/.\{148\}/&'"$ac_delim"'/g
18384t rset
18385:rset
18386s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18387t def
18388d
18389:def
18390s/\\$//
18391t bsnl
18392s/["\\]/\\&/g
18393s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18394D["\1"]=" \3"/p
18395s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18396d
18397:bsnl
18398s/["\\]/\\&/g
18399s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18400D["\1"]=" \3\\\\\\n"\\/p
18401t cont
18402s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18403t cont
18404d
18405:cont
18406n
18407s/.\{148\}/&'"$ac_delim"'/g
18408t clear
18409:clear
18410s/\\$//
18411t bsnlc
18412s/["\\]/\\&/g; s/^/"/; s/$/"/p
18413d
18414:bsnlc
18415s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18416b cont
18417' <confdefs.h | sed '
18418s/'"$ac_delim"'/"\\\
18419"/g' >>$CONFIG_STATUS || ac_write_fail=1
18420
18421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18422  for (key in D) D_is_set[key] = 1
18423  FS = ""
18424}
18425/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18426  line = \$ 0
18427  split(line, arg, " ")
18428  if (arg[1] == "#") {
18429    defundef = arg[2]
18430    mac1 = arg[3]
18431  } else {
18432    defundef = substr(arg[1], 2)
18433    mac1 = arg[2]
18434  }
18435  split(mac1, mac2, "(") #)
18436  macro = mac2[1]
18437  prefix = substr(line, 1, index(line, defundef) - 1)
18438  if (D_is_set[macro]) {
18439    # Preserve the white space surrounding the "#".
18440    print prefix "define", macro P[macro] D[macro]
18441    next
18442  } else {
18443    # Replace #undef with comments.  This is necessary, for example,
18444    # in the case of _POSIX_SOURCE, which is predefined and required
18445    # on some systems where configure will not decide to define it.
18446    if (defundef == "undef") {
18447      print "/*", prefix defundef, macro, "*/"
18448      next
18449    }
18450  }
18451}
18452{ print }
18453_ACAWK
18454_ACEOF
18455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18456  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18457fi # test -n "$CONFIG_HEADERS"
18458
18459
18460eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
18461shift
18462for ac_tag
18463do
18464  case $ac_tag in
18465  :[FHLC]) ac_mode=$ac_tag; continue;;
18466  esac
18467  case $ac_mode$ac_tag in
18468  :[FHL]*:*);;
18469  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18470  :[FH]-) ac_tag=-:-;;
18471  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18472  esac
18473  ac_save_IFS=$IFS
18474  IFS=:
18475  set x $ac_tag
18476  IFS=$ac_save_IFS
18477  shift
18478  ac_file=$1
18479  shift
18480
18481  case $ac_mode in
18482  :L) ac_source=$1;;
18483  :[FH])
18484    ac_file_inputs=
18485    for ac_f
18486    do
18487      case $ac_f in
18488      -) ac_f="$ac_tmp/stdin";;
18489      *) # Look for the file first in the build tree, then in the source tree
18490	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18491	 # because $ac_f cannot contain `:'.
18492	 test -f "$ac_f" ||
18493	   case $ac_f in
18494	   [\\/$]*) false;;
18495	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18496	   esac ||
18497	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18498      esac
18499      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18500      as_fn_append ac_file_inputs " '$ac_f'"
18501    done
18502
18503    # Let's still pretend it is `configure' which instantiates (i.e., don't
18504    # use $as_me), people would be surprised to read:
18505    #    /* config.h.  Generated by config.status.  */
18506    configure_input='Generated from '`
18507	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18508	`' by configure.'
18509    if test x"$ac_file" != x-; then
18510      configure_input="$ac_file.  $configure_input"
18511      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18512$as_echo "$as_me: creating $ac_file" >&6;}
18513    fi
18514    # Neutralize special characters interpreted by sed in replacement strings.
18515    case $configure_input in #(
18516    *\&* | *\|* | *\\* )
18517       ac_sed_conf_input=`$as_echo "$configure_input" |
18518       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18519    *) ac_sed_conf_input=$configure_input;;
18520    esac
18521
18522    case $ac_tag in
18523    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18524      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18525    esac
18526    ;;
18527  esac
18528
18529  ac_dir=`$as_dirname -- "$ac_file" ||
18530$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18531	 X"$ac_file" : 'X\(//\)[^/]' \| \
18532	 X"$ac_file" : 'X\(//\)$' \| \
18533	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18534$as_echo X"$ac_file" |
18535    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18536	    s//\1/
18537	    q
18538	  }
18539	  /^X\(\/\/\)[^/].*/{
18540	    s//\1/
18541	    q
18542	  }
18543	  /^X\(\/\/\)$/{
18544	    s//\1/
18545	    q
18546	  }
18547	  /^X\(\/\).*/{
18548	    s//\1/
18549	    q
18550	  }
18551	  s/.*/./; q'`
18552  as_dir="$ac_dir"; as_fn_mkdir_p
18553  ac_builddir=.
18554
18555case "$ac_dir" in
18556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18557*)
18558  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18559  # A ".." for each directory in $ac_dir_suffix.
18560  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18561  case $ac_top_builddir_sub in
18562  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18563  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18564  esac ;;
18565esac
18566ac_abs_top_builddir=$ac_pwd
18567ac_abs_builddir=$ac_pwd$ac_dir_suffix
18568# for backward compatibility:
18569ac_top_builddir=$ac_top_build_prefix
18570
18571case $srcdir in
18572  .)  # We are building in place.
18573    ac_srcdir=.
18574    ac_top_srcdir=$ac_top_builddir_sub
18575    ac_abs_top_srcdir=$ac_pwd ;;
18576  [\\/]* | ?:[\\/]* )  # Absolute name.
18577    ac_srcdir=$srcdir$ac_dir_suffix;
18578    ac_top_srcdir=$srcdir
18579    ac_abs_top_srcdir=$srcdir ;;
18580  *) # Relative name.
18581    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18582    ac_top_srcdir=$ac_top_build_prefix$srcdir
18583    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18584esac
18585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18586
18587
18588  case $ac_mode in
18589  :F)
18590  #
18591  # CONFIG_FILE
18592  #
18593
18594  case $INSTALL in
18595  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18596  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18597  esac
18598  ac_MKDIR_P=$MKDIR_P
18599  case $MKDIR_P in
18600  [\\/$]* | ?:[\\/]* ) ;;
18601  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18602  esac
18603_ACEOF
18604
18605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18606# If the template does not know about datarootdir, expand it.
18607# FIXME: This hack should be removed a few years after 2.60.
18608ac_datarootdir_hack=; ac_datarootdir_seen=
18609ac_sed_dataroot='
18610/datarootdir/ {
18611  p
18612  q
18613}
18614/@datadir@/p
18615/@docdir@/p
18616/@infodir@/p
18617/@localedir@/p
18618/@mandir@/p'
18619case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18620*datarootdir*) ac_datarootdir_seen=yes;;
18621*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18622  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18623$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18624_ACEOF
18625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18626  ac_datarootdir_hack='
18627  s&@datadir@&$datadir&g
18628  s&@docdir@&$docdir&g
18629  s&@infodir@&$infodir&g
18630  s&@localedir@&$localedir&g
18631  s&@mandir@&$mandir&g
18632  s&\\\${datarootdir}&$datarootdir&g' ;;
18633esac
18634_ACEOF
18635
18636# Neutralize VPATH when `$srcdir' = `.'.
18637# Shell code in configure.ac might set extrasub.
18638# FIXME: do we really want to maintain this feature?
18639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18640ac_sed_extra="$ac_vpsub
18641$extrasub
18642_ACEOF
18643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18644:t
18645/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18646s|@configure_input@|$ac_sed_conf_input|;t t
18647s&@top_builddir@&$ac_top_builddir_sub&;t t
18648s&@top_build_prefix@&$ac_top_build_prefix&;t t
18649s&@srcdir@&$ac_srcdir&;t t
18650s&@abs_srcdir@&$ac_abs_srcdir&;t t
18651s&@top_srcdir@&$ac_top_srcdir&;t t
18652s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18653s&@builddir@&$ac_builddir&;t t
18654s&@abs_builddir@&$ac_abs_builddir&;t t
18655s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18656s&@INSTALL@&$ac_INSTALL&;t t
18657s&@MKDIR_P@&$ac_MKDIR_P&;t t
18658$ac_datarootdir_hack
18659"
18660eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18661  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18662
18663test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18664  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18665  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18666      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18667  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18668which seems to be undefined.  Please make sure it is defined" >&5
18669$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18670which seems to be undefined.  Please make sure it is defined" >&2;}
18671
18672  rm -f "$ac_tmp/stdin"
18673  case $ac_file in
18674  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18675  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18676  esac \
18677  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18678 ;;
18679  :H)
18680  #
18681  # CONFIG_HEADER
18682  #
18683  if test x"$ac_file" != x-; then
18684    {
18685      $as_echo "/* $configure_input  */" \
18686      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18687    } >"$ac_tmp/config.h" \
18688      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18689    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18690      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18691$as_echo "$as_me: $ac_file is unchanged" >&6;}
18692    else
18693      rm -f "$ac_file"
18694      mv "$ac_tmp/config.h" "$ac_file" \
18695	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18696    fi
18697  else
18698    $as_echo "/* $configure_input  */" \
18699      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18700      || as_fn_error $? "could not create -" "$LINENO" 5
18701  fi
18702 ;;
18703
18704
18705  esac
18706
18707
18708  case $ac_file$ac_mode in
18709    "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
18710
18711  esac
18712done # for ac_tag
18713
18714
18715as_fn_exit 0
18716_ACEOF
18717ac_clean_files=$ac_clean_files_save
18718
18719test $ac_write_fail = 0 ||
18720  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18721
18722
18723# configure is writing to config.log, and then calls config.status.
18724# config.status does its own redirection, appending to config.log.
18725# Unfortunately, on DOS this fails, as config.log is still kept open
18726# by configure, so config.status won't be able to write to it; its
18727# output is simply discarded.  So we exec the FD to /dev/null,
18728# effectively closing config.log, so it can be properly (re)opened and
18729# appended to by config.status.  When coming back to configure, we
18730# need to make the FD available again.
18731if test "$no_create" != yes; then
18732  ac_cs_success=:
18733  ac_config_status_args=
18734  test "$silent" = yes &&
18735    ac_config_status_args="$ac_config_status_args --quiet"
18736  exec 5>/dev/null
18737  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18738  exec 5>>config.log
18739  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18740  # would make configure fail if this is the last instruction.
18741  $ac_cs_success || as_fn_exit 1
18742fi
18743if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18744  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18745$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18746fi
18747
18748
18749echo "creating Modules/Setup.local" >&6
18750if test ! -f Modules/Setup.local
18751then
18752	echo "# Edit this file for local setup changes" >Modules/Setup.local
18753fi
18754
18755echo "creating Makefile" >&6
18756$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
18757			-s Modules \
18758			Modules/Setup.local $srcdir/Modules/Setup
18759mv config.c Modules
18760
18761if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
18762    echo "" >&6
18763    echo "" >&6
18764    echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6
18765    echo "please run ./configure --enable-optimizations" >&6
18766    echo "" >&6
18767    echo "" >&6
18768fi
18769
18770