1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for python 2.7.
5#
6# Report bugs to <https://bugs.python.org/>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1"
203  if (eval "$as_required") 2>/dev/null; then :
204  as_have_required=yes
205else
206  as_have_required=no
207fi
208  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210else
211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212as_found=false
213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214do
215  IFS=$as_save_IFS
216  test -z "$as_dir" && as_dir=.
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir/$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225  CONFIG_SHELL=$as_shell as_have_required=yes
226		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi; }
238IFS=$as_save_IFS
239
240
241      if test "x$CONFIG_SHELL" != x; then :
242  export CONFIG_SHELL
243             # We cannot yet assume a decent shell, so we have to provide a
244# neutralization value for shells without unset; and this also
245# works around shells that cannot unset nonexistent variables.
246# Preserve -v and -x to the replacement shell.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251  *v*x* | *x*v* ) as_opts=-vx ;;
252  *v* ) as_opts=-v ;;
253  *x* ) as_opts=-x ;;
254  * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
258# out after a failed `exec'.
259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
261fi
262
263    if test x$as_have_required = xno; then :
264  $as_echo "$0: This script requires a shell more modern than all"
265  $as_echo "$0: the shells that I found on your system."
266  if test x${ZSH_VERSION+set} = xset ; then
267    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    $as_echo "$0: Please tell bug-autoconf@gnu.org and
271$0: https://bugs.python.org/ about your system, including
272$0: any error possibly output before this message. Then
273$0: install a modern shell, or manually run the script
274$0: under such a shell if you do have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='python'
583PACKAGE_TARNAME='python'
584PACKAGE_VERSION='2.7'
585PACKAGE_STRING='python 2.7'
586PACKAGE_BUGREPORT='https://bugs.python.org/'
587PACKAGE_URL=''
588
589ac_unique_file="Include/object.h"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='LTLIBOBJS
627ENSUREPIP
628SRCDIRS
629THREADHEADERS
630UNICODE_OBJS
631LIBC
632LIBM
633HAVE_GETHOSTBYNAME
634HAVE_GETHOSTBYNAME_R
635HAVE_GETHOSTBYNAME_R_3_ARG
636HAVE_GETHOSTBYNAME_R_5_ARG
637HAVE_GETHOSTBYNAME_R_6_ARG
638LIBOBJS
639TRUE
640MACHDEP_OBJS
641DYNLOADFILE
642DLINCLDIR
643THREADOBJ
644LDLAST
645USE_THREAD_MODULE
646SIGNAL_OBJS
647USE_SIGNAL_MODULE
648TCLTK_LIBS
649TCLTK_INCLUDES
650LIBFFI_INCLUDEDIR
651PKG_CONFIG_LIBDIR
652PKG_CONFIG_PATH
653PKG_CONFIG
654SHLIBS
655CFLAGSFORSHARED
656LINKFORSHARED
657CCSHARED
658BLDSHARED
659LDCXXSHARED
660LDSHARED
661SO
662LIBTOOL_CRUFT
663OTHER_LIBTOOL_OPT
664LLVM_PROF_FOUND
665target_os
666target_vendor
667target_cpu
668target
669LLVM_PROFDATA
670LLVM_PROF_ERR
671LLVM_PROF_FILE
672LLVM_PROF_MERGER
673PGO_PROF_USE_FLAG
674PGO_PROF_GEN_FLAG
675LTOFLAGS
676DEF_MAKE_RULE
677DEF_MAKE_ALL_RULE
678UNIVERSAL_ARCH_FLAGS
679BASECFLAGS
680OPT
681LN
682MKDIR_P
683INSTALL_DATA
684INSTALL_SCRIPT
685INSTALL_PROGRAM
686HAS_GIT
687GITBRANCH
688GITTAG
689GITVERSION
690ARFLAGS
691ac_ct_AR
692AR
693RANLIB
694GNULD
695LINKCC
696RUNSHARED
697INSTSONAME
698LDLIBRARYDIR
699BLDLIBRARY
700DLLLIBRARY
701LDLIBRARY
702LIBRARY
703BUILDEXEEXT
704EGREP
705GREP
706CPP
707MULTIARCH
708ac_ct_CXX
709MAINCC
710CXX
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718EXPORT_MACOSX_DEPLOYMENT_TARGET
719CONFIGURE_MACOSX_DEPLOYMENT_TARGET
720EXTRAMACHDEPPATH
721EXTRAPLATDIR
722PLATDIR
723SGI_ABI
724_PYTHON_HOST_PLATFORM
725MACHDEP
726FRAMEWORKINSTALLAPPSPREFIX
727FRAMEWORKUNIXTOOLSPREFIX
728FRAMEWORKALTINSTALLLAST
729FRAMEWORKALTINSTALLFIRST
730FRAMEWORKINSTALLLAST
731FRAMEWORKINSTALLFIRST
732PYTHONFRAMEWORKINSTALLDIR
733PYTHONFRAMEWORKPREFIX
734PYTHONFRAMEWORKDIR
735PYTHONFRAMEWORKIDENTIFIER
736PYTHONFRAMEWORK
737LIPO_32BIT_FLAGS
738ARCH_RUN_32BIT
739UNIVERSALSDK
740CONFIG_ARGS
741SOVERSION
742VERSION
743PYTHON_FOR_BUILD
744PYTHON_FOR_REGEN
745host_os
746host_vendor
747host_cpu
748host
749build_os
750build_vendor
751build_cpu
752build
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772runstatedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
792ac_subst_files=''
793ac_user_opts='
794enable_option_checking
795enable_universalsdk
796with_universal_archs
797with_framework_name
798enable_framework
799with_gcc
800with_icc
801with_cxx_main
802with_suffix
803enable_shared
804enable_profiling
805with_pydebug
806enable_optimizations
807with_lto
808enable_toolbox_glue
809with_libs
810with_system_expat
811with_system_ffi
812with_tcltk_includes
813with_tcltk_libs
814with_dbmliborder
815with_signal_module
816with_dec_threads
817with_threads
818with_thread
819with_pth
820enable_ipv6
821with_doc_strings
822with_tsc
823with_pymalloc
824with_valgrind
825with_wctype_functions
826with_fpectl
827with_libm
828with_libc
829enable_big_digits
830enable_unicode
831with_computed_gotos
832with_ensurepip
833'
834      ac_precious_vars='build_alias
835host_alias
836target_alias
837CC
838CFLAGS
839LDFLAGS
840LIBS
841CPPFLAGS
842CPP
843PKG_CONFIG
844PKG_CONFIG_PATH
845PKG_CONFIG_LIBDIR'
846
847
848# Initialize some variables set by options.
849ac_init_help=
850ac_init_version=false
851ac_unrecognized_opts=
852ac_unrecognized_sep=
853# The variables have the same names as the options, with
854# dashes changed to underlines.
855cache_file=/dev/null
856exec_prefix=NONE
857no_create=
858no_recursion=
859prefix=NONE
860program_prefix=NONE
861program_suffix=NONE
862program_transform_name=s,x,x,
863silent=
864site=
865srcdir=
866verbose=
867x_includes=NONE
868x_libraries=NONE
869
870# Installation directory options.
871# These are left unexpanded so users can "make install exec_prefix=/foo"
872# and all the variables that are supposed to be based on exec_prefix
873# by default will actually change.
874# Use braces instead of parens because sh, perl, etc. also accept them.
875# (The list follows the same order as the GNU Coding Standards.)
876bindir='${exec_prefix}/bin'
877sbindir='${exec_prefix}/sbin'
878libexecdir='${exec_prefix}/libexec'
879datarootdir='${prefix}/share'
880datadir='${datarootdir}'
881sysconfdir='${prefix}/etc'
882sharedstatedir='${prefix}/com'
883localstatedir='${prefix}/var'
884runstatedir='${localstatedir}/run'
885includedir='${prefix}/include'
886oldincludedir='/usr/include'
887docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888infodir='${datarootdir}/info'
889htmldir='${docdir}'
890dvidir='${docdir}'
891pdfdir='${docdir}'
892psdir='${docdir}'
893libdir='${exec_prefix}/lib'
894localedir='${datarootdir}/locale'
895mandir='${datarootdir}/man'
896
897ac_prev=
898ac_dashdash=
899for ac_option
900do
901  # If the previous option needs an argument, assign it.
902  if test -n "$ac_prev"; then
903    eval $ac_prev=\$ac_option
904    ac_prev=
905    continue
906  fi
907
908  case $ac_option in
909  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910  *=)   ac_optarg= ;;
911  *)    ac_optarg=yes ;;
912  esac
913
914  # Accept the important Cygnus configure options, so we can diagnose typos.
915
916  case $ac_dashdash$ac_option in
917  --)
918    ac_dashdash=yes ;;
919
920  -bindir | --bindir | --bindi | --bind | --bin | --bi)
921    ac_prev=bindir ;;
922  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923    bindir=$ac_optarg ;;
924
925  -build | --build | --buil | --bui | --bu)
926    ac_prev=build_alias ;;
927  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928    build_alias=$ac_optarg ;;
929
930  -cache-file | --cache-file | --cache-fil | --cache-fi \
931  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932    ac_prev=cache_file ;;
933  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935    cache_file=$ac_optarg ;;
936
937  --config-cache | -C)
938    cache_file=config.cache ;;
939
940  -datadir | --datadir | --datadi | --datad)
941    ac_prev=datadir ;;
942  -datadir=* | --datadir=* | --datadi=* | --datad=*)
943    datadir=$ac_optarg ;;
944
945  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946  | --dataroo | --dataro | --datar)
947    ac_prev=datarootdir ;;
948  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950    datarootdir=$ac_optarg ;;
951
952  -disable-* | --disable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: $ac_useropt"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=no ;;
967
968  -docdir | --docdir | --docdi | --doc | --do)
969    ac_prev=docdir ;;
970  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971    docdir=$ac_optarg ;;
972
973  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974    ac_prev=dvidir ;;
975  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976    dvidir=$ac_optarg ;;
977
978  -enable-* | --enable-*)
979    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980    # Reject names that are not valid shell variable names.
981    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982      as_fn_error $? "invalid feature name: $ac_useropt"
983    ac_useropt_orig=$ac_useropt
984    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985    case $ac_user_opts in
986      *"
987"enable_$ac_useropt"
988"*) ;;
989      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990	 ac_unrecognized_sep=', ';;
991    esac
992    eval enable_$ac_useropt=\$ac_optarg ;;
993
994  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996  | --exec | --exe | --ex)
997    ac_prev=exec_prefix ;;
998  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000  | --exec=* | --exe=* | --ex=*)
1001    exec_prefix=$ac_optarg ;;
1002
1003  -gas | --gas | --ga | --g)
1004    # Obsolete; use --with-gas.
1005    with_gas=yes ;;
1006
1007  -help | --help | --hel | --he | -h)
1008    ac_init_help=long ;;
1009  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010    ac_init_help=recursive ;;
1011  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012    ac_init_help=short ;;
1013
1014  -host | --host | --hos | --ho)
1015    ac_prev=host_alias ;;
1016  -host=* | --host=* | --hos=* | --ho=*)
1017    host_alias=$ac_optarg ;;
1018
1019  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020    ac_prev=htmldir ;;
1021  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022  | --ht=*)
1023    htmldir=$ac_optarg ;;
1024
1025  -includedir | --includedir | --includedi | --included | --include \
1026  | --includ | --inclu | --incl | --inc)
1027    ac_prev=includedir ;;
1028  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029  | --includ=* | --inclu=* | --incl=* | --inc=*)
1030    includedir=$ac_optarg ;;
1031
1032  -infodir | --infodir | --infodi | --infod | --info | --inf)
1033    ac_prev=infodir ;;
1034  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035    infodir=$ac_optarg ;;
1036
1037  -libdir | --libdir | --libdi | --libd)
1038    ac_prev=libdir ;;
1039  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040    libdir=$ac_optarg ;;
1041
1042  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043  | --libexe | --libex | --libe)
1044    ac_prev=libexecdir ;;
1045  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046  | --libexe=* | --libex=* | --libe=*)
1047    libexecdir=$ac_optarg ;;
1048
1049  -localedir | --localedir | --localedi | --localed | --locale)
1050    ac_prev=localedir ;;
1051  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052    localedir=$ac_optarg ;;
1053
1054  -localstatedir | --localstatedir | --localstatedi | --localstated \
1055  | --localstate | --localstat | --localsta | --localst | --locals)
1056    ac_prev=localstatedir ;;
1057  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059    localstatedir=$ac_optarg ;;
1060
1061  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062    ac_prev=mandir ;;
1063  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064    mandir=$ac_optarg ;;
1065
1066  -nfp | --nfp | --nf)
1067    # Obsolete; use --without-fp.
1068    with_fp=no ;;
1069
1070  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071  | --no-cr | --no-c | -n)
1072    no_create=yes ;;
1073
1074  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076    no_recursion=yes ;;
1077
1078  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080  | --oldin | --oldi | --old | --ol | --o)
1081    ac_prev=oldincludedir ;;
1082  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085    oldincludedir=$ac_optarg ;;
1086
1087  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088    ac_prev=prefix ;;
1089  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090    prefix=$ac_optarg ;;
1091
1092  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093  | --program-pre | --program-pr | --program-p)
1094    ac_prev=program_prefix ;;
1095  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097    program_prefix=$ac_optarg ;;
1098
1099  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100  | --program-suf | --program-su | --program-s)
1101    ac_prev=program_suffix ;;
1102  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104    program_suffix=$ac_optarg ;;
1105
1106  -program-transform-name | --program-transform-name \
1107  | --program-transform-nam | --program-transform-na \
1108  | --program-transform-n | --program-transform- \
1109  | --program-transform | --program-transfor \
1110  | --program-transfo | --program-transf \
1111  | --program-trans | --program-tran \
1112  | --progr-tra | --program-tr | --program-t)
1113    ac_prev=program_transform_name ;;
1114  -program-transform-name=* | --program-transform-name=* \
1115  | --program-transform-nam=* | --program-transform-na=* \
1116  | --program-transform-n=* | --program-transform-=* \
1117  | --program-transform=* | --program-transfor=* \
1118  | --program-transfo=* | --program-transf=* \
1119  | --program-trans=* | --program-tran=* \
1120  | --progr-tra=* | --program-tr=* | --program-t=*)
1121    program_transform_name=$ac_optarg ;;
1122
1123  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124    ac_prev=pdfdir ;;
1125  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126    pdfdir=$ac_optarg ;;
1127
1128  -psdir | --psdir | --psdi | --psd | --ps)
1129    ac_prev=psdir ;;
1130  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131    psdir=$ac_optarg ;;
1132
1133  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134  | -silent | --silent | --silen | --sile | --sil)
1135    silent=yes ;;
1136
1137  -runstatedir | --runstatedir | --runstatedi | --runstated \
1138  | --runstate | --runstat | --runsta | --runst | --runs \
1139  | --run | --ru | --r)
1140    ac_prev=runstatedir ;;
1141  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1142  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1143  | --run=* | --ru=* | --r=*)
1144    runstatedir=$ac_optarg ;;
1145
1146  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147    ac_prev=sbindir ;;
1148  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149  | --sbi=* | --sb=*)
1150    sbindir=$ac_optarg ;;
1151
1152  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154  | --sharedst | --shareds | --shared | --share | --shar \
1155  | --sha | --sh)
1156    ac_prev=sharedstatedir ;;
1157  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160  | --sha=* | --sh=*)
1161    sharedstatedir=$ac_optarg ;;
1162
1163  -site | --site | --sit)
1164    ac_prev=site ;;
1165  -site=* | --site=* | --sit=*)
1166    site=$ac_optarg ;;
1167
1168  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169    ac_prev=srcdir ;;
1170  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171    srcdir=$ac_optarg ;;
1172
1173  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174  | --syscon | --sysco | --sysc | --sys | --sy)
1175    ac_prev=sysconfdir ;;
1176  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178    sysconfdir=$ac_optarg ;;
1179
1180  -target | --target | --targe | --targ | --tar | --ta | --t)
1181    ac_prev=target_alias ;;
1182  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183    target_alias=$ac_optarg ;;
1184
1185  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186    verbose=yes ;;
1187
1188  -version | --version | --versio | --versi | --vers | -V)
1189    ac_init_version=: ;;
1190
1191  -with-* | --with-*)
1192    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195      as_fn_error $? "invalid package name: $ac_useropt"
1196    ac_useropt_orig=$ac_useropt
1197    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198    case $ac_user_opts in
1199      *"
1200"with_$ac_useropt"
1201"*) ;;
1202      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203	 ac_unrecognized_sep=', ';;
1204    esac
1205    eval with_$ac_useropt=\$ac_optarg ;;
1206
1207  -without-* | --without-*)
1208    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209    # Reject names that are not valid shell variable names.
1210    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211      as_fn_error $? "invalid package name: $ac_useropt"
1212    ac_useropt_orig=$ac_useropt
1213    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214    case $ac_user_opts in
1215      *"
1216"with_$ac_useropt"
1217"*) ;;
1218      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219	 ac_unrecognized_sep=', ';;
1220    esac
1221    eval with_$ac_useropt=no ;;
1222
1223  --x)
1224    # Obsolete; use --with-x.
1225    with_x=yes ;;
1226
1227  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228  | --x-incl | --x-inc | --x-in | --x-i)
1229    ac_prev=x_includes ;;
1230  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232    x_includes=$ac_optarg ;;
1233
1234  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236    ac_prev=x_libraries ;;
1237  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239    x_libraries=$ac_optarg ;;
1240
1241  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242Try \`$0 --help' for more information"
1243    ;;
1244
1245  *=*)
1246    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247    # Reject names that are not valid shell variable names.
1248    case $ac_envvar in #(
1249      '' | [0-9]* | *[!_$as_cr_alnum]* )
1250      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251    esac
1252    eval $ac_envvar=\$ac_optarg
1253    export $ac_envvar ;;
1254
1255  *)
1256    # FIXME: should be removed in autoconf 3.0.
1257    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261    ;;
1262
1263  esac
1264done
1265
1266if test -n "$ac_prev"; then
1267  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268  as_fn_error $? "missing argument to $ac_option"
1269fi
1270
1271if test -n "$ac_unrecognized_opts"; then
1272  case $enable_option_checking in
1273    no) ;;
1274    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276  esac
1277fi
1278
1279# Check all directory arguments for consistency.
1280for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281		datadir sysconfdir sharedstatedir localstatedir includedir \
1282		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283		libdir localedir mandir runstatedir
1284do
1285  eval ac_val=\$$ac_var
1286  # Remove trailing slashes.
1287  case $ac_val in
1288    */ )
1289      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290      eval $ac_var=\$ac_val;;
1291  esac
1292  # Be sure to have absolute directory names.
1293  case $ac_val in
1294    [\\/$]* | ?:[\\/]* )  continue;;
1295    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296  esac
1297  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309  if test "x$build_alias" = x; then
1310    cross_compiling=maybe
1311  elif test "x$build_alias" != "x$host_alias"; then
1312    cross_compiling=yes
1313  fi
1314fi
1315
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
1320
1321
1322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325  as_fn_error $? "working directory cannot be determined"
1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327  as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330# Find the source files, if location was not specified.
1331if test -z "$srcdir"; then
1332  ac_srcdir_defaulted=yes
1333  # Try the directory containing this script, then the parent directory.
1334  ac_confdir=`$as_dirname -- "$as_myself" ||
1335$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336	 X"$as_myself" : 'X\(//\)[^/]' \| \
1337	 X"$as_myself" : 'X\(//\)$' \| \
1338	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339$as_echo X"$as_myself" |
1340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)[^/].*/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)$/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\).*/{
1353	    s//\1/
1354	    q
1355	  }
1356	  s/.*/./; q'`
1357  srcdir=$ac_confdir
1358  if test ! -r "$srcdir/$ac_unique_file"; then
1359    srcdir=..
1360  fi
1361else
1362  ac_srcdir_defaulted=no
1363fi
1364if test ! -r "$srcdir/$ac_unique_file"; then
1365  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367fi
1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371	pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374  srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384  eval ac_env_${ac_var}_value=\$${ac_var}
1385  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393  # Omit some internal or obsolete options to make the list less imposing.
1394  # This message is too long to be a string in the A/UX 3.1 sh.
1395  cat <<_ACEOF
1396\`configure' configures python 2.7 to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE.  See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406  -h, --help              display this help and exit
1407      --help=short        display options specific to this package
1408      --help=recursive    display the short help of all the included packages
1409  -V, --version           display version information and exit
1410  -q, --quiet, --silent   do not print \`checking ...' messages
1411      --cache-file=FILE   cache test results in FILE [disabled]
1412  -C, --config-cache      alias for \`--cache-file=config.cache'
1413  -n, --no-create         do not create output files
1414      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1415
1416Installation directories:
1417  --prefix=PREFIX         install architecture-independent files in PREFIX
1418                          [$ac_default_prefix]
1419  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1420                          [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430  --bindir=DIR            user executables [EPREFIX/bin]
1431  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1432  --libexecdir=DIR        program executables [EPREFIX/libexec]
1433  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1434  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1435  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1436  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1437  --libdir=DIR            object code libraries [EPREFIX/lib]
1438  --includedir=DIR        C header files [PREFIX/include]
1439  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1440  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1441  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1442  --infodir=DIR           info documentation [DATAROOTDIR/info]
1443  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1444  --mandir=DIR            man documentation [DATAROOTDIR/man]
1445  --docdir=DIR            documentation root [DATAROOTDIR/doc/python]
1446  --htmldir=DIR           html documentation [DOCDIR]
1447  --dvidir=DIR            dvi documentation [DOCDIR]
1448  --pdfdir=DIR            pdf documentation [DOCDIR]
1449  --psdir=DIR             ps documentation [DOCDIR]
1450_ACEOF
1451
1452  cat <<\_ACEOF
1453
1454System types:
1455  --build=BUILD     configure for building on BUILD [guessed]
1456  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457  --target=TARGET   configure for building compilers for TARGET [HOST]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462  case $ac_init_help in
1463     short | recursive ) echo "Configuration of python 2.7:";;
1464   esac
1465  cat <<\_ACEOF
1466
1467Optional Features:
1468  --disable-option-checking  ignore unrecognized --enable/--with options
1469  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471  --enable-universalsdk[=SDKDIR]
1472                          Build fat binary against Mac OS X SDK
1473  --enable-framework[=INSTALLDIR]
1474                          Build (MacOSX|Darwin) framework
1475  --enable-shared         disable/enable building shared python library
1476  --enable-profiling      enable C-level code profiling
1477  --enable-optimizations  Enable expensive optimizations (PGO, maybe LTO,
1478                          etc). Disabled by default.
1479  --enable-toolbox-glue   disable/enable MacOSX glue code for extensions
1480  --enable-ipv6           Enable ipv6 (with ipv4) support
1481  --disable-ipv6          Disable ipv6 support
1482  --enable-big-digits[=BITS]
1483                          use big digits for Python longs [[BITS=30]]
1484  --enable-unicode[=ucs[24]]
1485                          Enable Unicode strings (default is ucs2)
1486
1487Optional Packages:
1488  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490  --with-universal-archs=ARCH
1491                          select architectures for universal build ("32-bit",
1492                          "64-bit", "3-way", "intel", "intel-32", "intel-64",
1493                          or "all")
1494  --with-framework-name=FRAMEWORK
1495                          specify an alternate name of the framework built
1496                          with --enable-framework
1497  --without-gcc           never use gcc
1498  --with-icc              build with icc
1499  --with-cxx-main=<compiler>
1500                          compile main() and link python executable with C++
1501                          compiler
1502  --with-suffix=.exe      set executable suffix
1503  --with-pydebug          build with Py_DEBUG defined
1504  --with-lto              Enable Link Time Optimization in PGO builds.
1505                          Disabled by default.
1506  --with-libs='lib1 ...'  link against additional libs
1507  --with-system-expat     build pyexpat module using an installed expat
1508                          library
1509  --with-system-ffi       build _ctypes module using an installed ffi library
1510  --with-tcltk-includes='-I...'
1511                          override search for Tcl and Tk include files
1512  --with-tcltk-libs='-L...'
1513                          override search for Tcl and Tk libs
1514  --with-dbmliborder=db1:db2:...
1515                          order to check db backends for dbm. Valid value is a
1516                          colon separated string with the backend names
1517                          `ndbm', `gdbm' and `bdb'.
1518  --with-signal-module    disable/enable signal module
1519  --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries
1520  --with(out)-threads[=DIRECTORY]
1521                          disable/enable thread support
1522  --with(out)-thread[=DIRECTORY]
1523                          deprecated; use --with(out)-threads
1524  --with-pth              use GNU pth threading libraries
1525  --with(out)-doc-strings disable/enable documentation strings
1526  --with(out)-tsc         enable/disable timestamp counter profile
1527  --with(out)-pymalloc    disable/enable specialized mallocs
1528  --with-valgrind         Enable Valgrind support
1529  --with-wctype-functions use wctype.h functions
1530  --with-fpectl           enable SIGFPE catching
1531  --with-libm=STRING      math library
1532  --with-libc=STRING      C library
1533  --with(out)-computed-gotos
1534                          Use computed gotos in evaluation loop (enabled by
1535                          default on supported compilers)
1536  --with(out)-ensurepip=[=OPTION]
1537                          "install" or "upgrade" using bundled pip, default is
1538                          "no"
1539
1540Some influential environment variables:
1541  CC          C compiler command
1542  CFLAGS      C compiler flags
1543  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1544              nonstandard directory <lib dir>
1545  LIBS        libraries to pass to the linker, e.g. -l<library>
1546  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547              you have headers in a nonstandard directory <include dir>
1548  CPP         C preprocessor
1549  PKG_CONFIG  path to pkg-config utility
1550  PKG_CONFIG_PATH
1551              directories to add to pkg-config's search path
1552  PKG_CONFIG_LIBDIR
1553              path overriding pkg-config's built-in search path
1554
1555Use these variables to override the choices made by `configure' or to help
1556it to find libraries and programs with nonstandard names/locations.
1557
1558Report bugs to <https://bugs.python.org/>.
1559_ACEOF
1560ac_status=$?
1561fi
1562
1563if test "$ac_init_help" = "recursive"; then
1564  # If there are subdirs, report their specific --help.
1565  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566    test -d "$ac_dir" ||
1567      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568      continue
1569    ac_builddir=.
1570
1571case "$ac_dir" in
1572.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573*)
1574  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575  # A ".." for each directory in $ac_dir_suffix.
1576  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577  case $ac_top_builddir_sub in
1578  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580  esac ;;
1581esac
1582ac_abs_top_builddir=$ac_pwd
1583ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584# for backward compatibility:
1585ac_top_builddir=$ac_top_build_prefix
1586
1587case $srcdir in
1588  .)  # We are building in place.
1589    ac_srcdir=.
1590    ac_top_srcdir=$ac_top_builddir_sub
1591    ac_abs_top_srcdir=$ac_pwd ;;
1592  [\\/]* | ?:[\\/]* )  # Absolute name.
1593    ac_srcdir=$srcdir$ac_dir_suffix;
1594    ac_top_srcdir=$srcdir
1595    ac_abs_top_srcdir=$srcdir ;;
1596  *) # Relative name.
1597    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598    ac_top_srcdir=$ac_top_build_prefix$srcdir
1599    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600esac
1601ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602
1603    cd "$ac_dir" || { ac_status=$?; continue; }
1604    # Check for guested configure.
1605    if test -f "$ac_srcdir/configure.gnu"; then
1606      echo &&
1607      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608    elif test -f "$ac_srcdir/configure"; then
1609      echo &&
1610      $SHELL "$ac_srcdir/configure" --help=recursive
1611    else
1612      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613    fi || ac_status=$?
1614    cd "$ac_pwd" || { ac_status=$?; break; }
1615  done
1616fi
1617
1618test -n "$ac_init_help" && exit $ac_status
1619if $ac_init_version; then
1620  cat <<\_ACEOF
1621python configure 2.7
1622generated by GNU Autoconf 2.69
1623
1624Copyright (C) 2012 Free Software Foundation, Inc.
1625This configure script is free software; the Free Software Foundation
1626gives unlimited permission to copy, distribute and modify it.
1627_ACEOF
1628  exit
1629fi
1630
1631## ------------------------ ##
1632## Autoconf initialization. ##
1633## ------------------------ ##
1634
1635# ac_fn_c_try_compile LINENO
1636# --------------------------
1637# Try to compile conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_compile ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  rm -f conftest.$ac_objext
1642  if { { ac_try="$ac_compile"
1643case "(($ac_try" in
1644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645  *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649  (eval "$ac_compile") 2>conftest.err
1650  ac_status=$?
1651  if test -s conftest.err; then
1652    grep -v '^ *+' conftest.err >conftest.er1
1653    cat conftest.er1 >&5
1654    mv -f conftest.er1 conftest.err
1655  fi
1656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657  test $ac_status = 0; } && {
1658	 test -z "$ac_c_werror_flag" ||
1659	 test ! -s conftest.err
1660       } && test -s conftest.$ac_objext; then :
1661  ac_retval=0
1662else
1663  $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666	ac_retval=1
1667fi
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_compile
1672
1673# ac_fn_c_try_cpp LINENO
1674# ----------------------
1675# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_cpp ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  if { { ac_try="$ac_cpp conftest.$ac_ext"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687  ac_status=$?
1688  if test -s conftest.err; then
1689    grep -v '^ *+' conftest.err >conftest.er1
1690    cat conftest.er1 >&5
1691    mv -f conftest.er1 conftest.err
1692  fi
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } > conftest.i && {
1695	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696	 test ! -s conftest.err
1697       }; then :
1698  ac_retval=0
1699else
1700  $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703    ac_retval=1
1704fi
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706  as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_cpp
1709
1710# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1711# -------------------------------------------------------
1712# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1713# the include files in INCLUDES and setting the cache variable VAR
1714# accordingly.
1715ac_fn_c_check_header_mongrel ()
1716{
1717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718  if eval \${$3+:} false; then :
1719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720$as_echo_n "checking for $2... " >&6; }
1721if eval \${$3+:} false; then :
1722  $as_echo_n "(cached) " >&6
1723fi
1724eval ac_res=\$$3
1725	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727else
1728  # Is the header compilable?
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1730$as_echo_n "checking $2 usability... " >&6; }
1731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h.  */
1733$4
1734#include <$2>
1735_ACEOF
1736if ac_fn_c_try_compile "$LINENO"; then :
1737  ac_header_compiler=yes
1738else
1739  ac_header_compiler=no
1740fi
1741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1743$as_echo "$ac_header_compiler" >&6; }
1744
1745# Is the header present?
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1747$as_echo_n "checking $2 presence... " >&6; }
1748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_cpp "$LINENO"; then :
1753  ac_header_preproc=yes
1754else
1755  ac_header_preproc=no
1756fi
1757rm -f conftest.err conftest.i conftest.$ac_ext
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1759$as_echo "$ac_header_preproc" >&6; }
1760
1761# So?  What about this header?
1762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1763  yes:no: )
1764    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1765$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1766    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1767$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1768    ;;
1769  no:yes:* )
1770    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1771$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1772    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1773$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1775$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1777$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1778    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780( $as_echo "## --------------------------------------- ##
1781## Report this to https://bugs.python.org/ ##
1782## --------------------------------------- ##"
1783     ) | sed "s/^/$as_me: WARNING:     /" >&2
1784    ;;
1785esac
1786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval \${$3+:} false; then :
1789  $as_echo_n "(cached) " >&6
1790else
1791  eval "$3=\$ac_header_compiler"
1792fi
1793eval ac_res=\$$3
1794	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796fi
1797  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_header_mongrel
1800
1801# ac_fn_c_try_run LINENO
1802# ----------------------
1803# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804# that executables *can* be run.
1805ac_fn_c_try_run ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  if { { ac_try="$ac_link"
1809case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_link") 2>&5
1816  ac_status=$?
1817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819  { { case "(($ac_try" in
1820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821  *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825  (eval "$ac_try") 2>&5
1826  ac_status=$?
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; }; }; then :
1829  ac_retval=0
1830else
1831  $as_echo "$as_me: program exited with status $ac_status" >&5
1832       $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835       ac_retval=$ac_status
1836fi
1837  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839  as_fn_set_status $ac_retval
1840
1841} # ac_fn_c_try_run
1842
1843# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844# -------------------------------------------------------
1845# Tests whether HEADER exists and can be compiled using the include files in
1846# INCLUDES, setting the cache variable VAR accordingly.
1847ac_fn_c_check_header_compile ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if eval \${$3+:} false; then :
1853  $as_echo_n "(cached) " >&6
1854else
1855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857$4
1858#include <$2>
1859_ACEOF
1860if ac_fn_c_try_compile "$LINENO"; then :
1861  eval "$3=yes"
1862else
1863  eval "$3=no"
1864fi
1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872} # ac_fn_c_check_header_compile
1873
1874# ac_fn_c_try_link LINENO
1875# -----------------------
1876# Try to link conftest.$ac_ext, and return whether this succeeded.
1877ac_fn_c_try_link ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  rm -f conftest.$ac_objext conftest$ac_exeext
1881  if { { ac_try="$ac_link"
1882case "(($ac_try" in
1883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884  *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888  (eval "$ac_link") 2>conftest.err
1889  ac_status=$?
1890  if test -s conftest.err; then
1891    grep -v '^ *+' conftest.err >conftest.er1
1892    cat conftest.er1 >&5
1893    mv -f conftest.er1 conftest.err
1894  fi
1895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896  test $ac_status = 0; } && {
1897	 test -z "$ac_c_werror_flag" ||
1898	 test ! -s conftest.err
1899       } && test -s conftest$ac_exeext && {
1900	 test "$cross_compiling" = yes ||
1901	 test -x conftest$ac_exeext
1902       }; then :
1903  ac_retval=0
1904else
1905  $as_echo "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908	ac_retval=1
1909fi
1910  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912  # interfere with the next link command; also delete a directory that is
1913  # left behind by Apple's compiler.  We do this before executing the actions.
1914  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916  as_fn_set_status $ac_retval
1917
1918} # ac_fn_c_try_link
1919
1920# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1921# -------------------------------------------
1922# Tests whether TYPE exists after having included INCLUDES, setting cache
1923# variable VAR accordingly.
1924ac_fn_c_check_type ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if eval \${$3+:} false; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  eval "$3=no"
1933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935$4
1936int
1937main ()
1938{
1939if (sizeof ($2))
1940	 return 0;
1941  ;
1942  return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949int
1950main ()
1951{
1952if (sizeof (($2)))
1953	    return 0;
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959
1960else
1961  eval "$3=yes"
1962fi
1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_type
1973
1974# ac_fn_c_find_uintX_t LINENO BITS VAR
1975# ------------------------------------
1976# Finds an unsigned integer type with width BITS, setting cache variable VAR
1977# accordingly.
1978ac_fn_c_find_uintX_t ()
1979{
1980  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1982$as_echo_n "checking for uint$2_t... " >&6; }
1983if eval \${$3+:} false; then :
1984  $as_echo_n "(cached) " >&6
1985else
1986  eval "$3=no"
1987     # Order is important - never check a type that is potentially smaller
1988     # than half of the expected target width.
1989     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1990	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1991       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h.  */
1993$ac_includes_default
1994int
1995main ()
1996{
1997static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1998test_array [0] = 0;
1999return test_array [0];
2000
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006  case $ac_type in #(
2007  uint$2_t) :
2008    eval "$3=yes" ;; #(
2009  *) :
2010    eval "$3=\$ac_type" ;;
2011esac
2012fi
2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014       if eval test \"x\$"$3"\" = x"no"; then :
2015
2016else
2017  break
2018fi
2019     done
2020fi
2021eval ac_res=\$$3
2022	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023$as_echo "$ac_res" >&6; }
2024  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026} # ac_fn_c_find_uintX_t
2027
2028# ac_fn_c_find_intX_t LINENO BITS VAR
2029# -----------------------------------
2030# Finds a signed integer type with width BITS, setting cache variable VAR
2031# accordingly.
2032ac_fn_c_find_intX_t ()
2033{
2034  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2036$as_echo_n "checking for int$2_t... " >&6; }
2037if eval \${$3+:} false; then :
2038  $as_echo_n "(cached) " >&6
2039else
2040  eval "$3=no"
2041     # Order is important - never check a type that is potentially smaller
2042     # than half of the expected target width.
2043     for ac_type in int$2_t 'int' 'long int' \
2044	 'long long int' 'short int' 'signed char'; do
2045       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046/* end confdefs.h.  */
2047$ac_includes_default
2048	     enum { N = $2 / 2 - 1 };
2049int
2050main ()
2051{
2052static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2053test_array [0] = 0;
2054return test_array [0];
2055
2056  ;
2057  return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h.  */
2063$ac_includes_default
2064	        enum { N = $2 / 2 - 1 };
2065int
2066main ()
2067{
2068static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2069		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2070test_array [0] = 0;
2071return test_array [0];
2072
2073  ;
2074  return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078
2079else
2080  case $ac_type in #(
2081  int$2_t) :
2082    eval "$3=yes" ;; #(
2083  *) :
2084    eval "$3=\$ac_type" ;;
2085esac
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090       if eval test \"x\$"$3"\" = x"no"; then :
2091
2092else
2093  break
2094fi
2095     done
2096fi
2097eval ac_res=\$$3
2098	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099$as_echo "$ac_res" >&6; }
2100  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102} # ac_fn_c_find_intX_t
2103
2104# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2105# --------------------------------------------
2106# Tries to find the compile-time value of EXPR in a program that includes
2107# INCLUDES, setting VAR accordingly. Returns whether the value could be
2108# computed
2109ac_fn_c_compute_int ()
2110{
2111  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112  if test "$cross_compiling" = yes; then
2113    # Depending upon the size, compute the lo and hi bounds.
2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h.  */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) >= 0)];
2121test_array [0] = 0;
2122return test_array [0];
2123
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129  ac_lo=0 ac_mid=0
2130  while :; do
2131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h.  */
2133$4
2134int
2135main ()
2136{
2137static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2138test_array [0] = 0;
2139return test_array [0];
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146  ac_hi=$ac_mid; break
2147else
2148  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2149			if test $ac_lo -le $ac_mid; then
2150			  ac_lo= ac_hi=
2151			  break
2152			fi
2153			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2154fi
2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156  done
2157else
2158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($2) < 0)];
2165test_array [0] = 0;
2166return test_array [0];
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  ac_hi=-1 ac_mid=-1
2174  while :; do
2175    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h.  */
2177$4
2178int
2179main ()
2180{
2181static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2182test_array [0] = 0;
2183return test_array [0];
2184
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_compile "$LINENO"; then :
2190  ac_lo=$ac_mid; break
2191else
2192  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2193			if test $ac_mid -le $ac_hi; then
2194			  ac_lo= ac_hi=
2195			  break
2196			fi
2197			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200  done
2201else
2202  ac_lo= ac_hi=
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207# Binary search between lo and hi bounds.
2208while test "x$ac_lo" != "x$ac_hi"; do
2209  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h.  */
2212$4
2213int
2214main ()
2215{
2216static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2217test_array [0] = 0;
2218return test_array [0];
2219
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224if ac_fn_c_try_compile "$LINENO"; then :
2225  ac_hi=$ac_mid
2226else
2227  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230done
2231case $ac_lo in #((
2232?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2233'') ac_retval=1 ;;
2234esac
2235  else
2236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h.  */
2238$4
2239static long int longval () { return $2; }
2240static unsigned long int ulongval () { return $2; }
2241#include <stdio.h>
2242#include <stdlib.h>
2243int
2244main ()
2245{
2246
2247  FILE *f = fopen ("conftest.val", "w");
2248  if (! f)
2249    return 1;
2250  if (($2) < 0)
2251    {
2252      long int i = longval ();
2253      if (i != ($2))
2254	return 1;
2255      fprintf (f, "%ld", i);
2256    }
2257  else
2258    {
2259      unsigned long int i = ulongval ();
2260      if (i != ($2))
2261	return 1;
2262      fprintf (f, "%lu", i);
2263    }
2264  /* Do not output a trailing newline, as this causes \r\n confusion
2265     on some platforms.  */
2266  return ferror (f) || fclose (f) != 0;
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_run "$LINENO"; then :
2273  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2274else
2275  ac_retval=1
2276fi
2277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2278  conftest.$ac_objext conftest.beam conftest.$ac_ext
2279rm -f conftest.val
2280
2281  fi
2282  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283  as_fn_set_status $ac_retval
2284
2285} # ac_fn_c_compute_int
2286
2287# ac_fn_c_check_func LINENO FUNC VAR
2288# ----------------------------------
2289# Tests whether FUNC exists, setting the cache variable VAR accordingly
2290ac_fn_c_check_func ()
2291{
2292  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294$as_echo_n "checking for $2... " >&6; }
2295if eval \${$3+:} false; then :
2296  $as_echo_n "(cached) " >&6
2297else
2298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299/* end confdefs.h.  */
2300/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2301   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2302#define $2 innocuous_$2
2303
2304/* System header to define __stub macros and hopefully few prototypes,
2305    which can conflict with char $2 (); below.
2306    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2307    <limits.h> exists even on freestanding compilers.  */
2308
2309#ifdef __STDC__
2310# include <limits.h>
2311#else
2312# include <assert.h>
2313#endif
2314
2315#undef $2
2316
2317/* Override any GCC internal prototype to avoid an error.
2318   Use char because int might match the return type of a GCC
2319   builtin and then its argument prototype would still apply.  */
2320#ifdef __cplusplus
2321extern "C"
2322#endif
2323char $2 ();
2324/* The GNU C library defines this for functions which it implements
2325    to always fail with ENOSYS.  Some functions are actually named
2326    something starting with __ and the normal name is an alias.  */
2327#if defined __stub_$2 || defined __stub___$2
2328choke me
2329#endif
2330
2331int
2332main ()
2333{
2334return $2 ();
2335  ;
2336  return 0;
2337}
2338_ACEOF
2339if ac_fn_c_try_link "$LINENO"; then :
2340  eval "$3=yes"
2341else
2342  eval "$3=no"
2343fi
2344rm -f core conftest.err conftest.$ac_objext \
2345    conftest$ac_exeext conftest.$ac_ext
2346fi
2347eval ac_res=\$$3
2348	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349$as_echo "$ac_res" >&6; }
2350  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351
2352} # ac_fn_c_check_func
2353
2354# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2355# ----------------------------------------------------
2356# Tries to find if the field MEMBER exists in type AGGR, after including
2357# INCLUDES, setting cache variable VAR accordingly.
2358ac_fn_c_check_member ()
2359{
2360  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2362$as_echo_n "checking for $2.$3... " >&6; }
2363if eval \${$4+:} false; then :
2364  $as_echo_n "(cached) " >&6
2365else
2366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367/* end confdefs.h.  */
2368$5
2369int
2370main ()
2371{
2372static $2 ac_aggr;
2373if (ac_aggr.$3)
2374return 0;
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379if ac_fn_c_try_compile "$LINENO"; then :
2380  eval "$4=yes"
2381else
2382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383/* end confdefs.h.  */
2384$5
2385int
2386main ()
2387{
2388static $2 ac_aggr;
2389if (sizeof ac_aggr.$3)
2390return 0;
2391  ;
2392  return 0;
2393}
2394_ACEOF
2395if ac_fn_c_try_compile "$LINENO"; then :
2396  eval "$4=yes"
2397else
2398  eval "$4=no"
2399fi
2400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401fi
2402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403fi
2404eval ac_res=\$$4
2405	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406$as_echo "$ac_res" >&6; }
2407  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408
2409} # ac_fn_c_check_member
2410
2411# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2412# ---------------------------------------------
2413# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2414# accordingly.
2415ac_fn_c_check_decl ()
2416{
2417  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418  as_decl_name=`echo $2|sed 's/ *(.*//'`
2419  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2421$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2422if eval \${$3+:} false; then :
2423  $as_echo_n "(cached) " >&6
2424else
2425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426/* end confdefs.h.  */
2427$4
2428int
2429main ()
2430{
2431#ifndef $as_decl_name
2432#ifdef __cplusplus
2433  (void) $as_decl_use;
2434#else
2435  (void) $as_decl_name;
2436#endif
2437#endif
2438
2439  ;
2440  return 0;
2441}
2442_ACEOF
2443if ac_fn_c_try_compile "$LINENO"; then :
2444  eval "$3=yes"
2445else
2446  eval "$3=no"
2447fi
2448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449fi
2450eval ac_res=\$$3
2451	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452$as_echo "$ac_res" >&6; }
2453  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454
2455} # ac_fn_c_check_decl
2456cat >config.log <<_ACEOF
2457This file contains any messages produced by compilers while
2458running configure, to aid debugging if configure makes a mistake.
2459
2460It was created by python $as_me 2.7, which was
2461generated by GNU Autoconf 2.69.  Invocation command line was
2462
2463  $ $0 $@
2464
2465_ACEOF
2466exec 5>>config.log
2467{
2468cat <<_ASUNAME
2469## --------- ##
2470## Platform. ##
2471## --------- ##
2472
2473hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2474uname -m = `(uname -m) 2>/dev/null || echo unknown`
2475uname -r = `(uname -r) 2>/dev/null || echo unknown`
2476uname -s = `(uname -s) 2>/dev/null || echo unknown`
2477uname -v = `(uname -v) 2>/dev/null || echo unknown`
2478
2479/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2480/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2481
2482/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2483/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2484/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2485/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2486/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2487/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2488/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2489
2490_ASUNAME
2491
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    $as_echo "PATH: $as_dir"
2498  done
2499IFS=$as_save_IFS
2500
2501} >&5
2502
2503cat >&5 <<_ACEOF
2504
2505
2506## ----------- ##
2507## Core tests. ##
2508## ----------- ##
2509
2510_ACEOF
2511
2512
2513# Keep a trace of the command line.
2514# Strip out --no-create and --no-recursion so they do not pile up.
2515# Strip out --silent because we don't want to record it for future runs.
2516# Also quote any args containing shell meta-characters.
2517# Make two passes to allow for proper duplicate-argument suppression.
2518ac_configure_args=
2519ac_configure_args0=
2520ac_configure_args1=
2521ac_must_keep_next=false
2522for ac_pass in 1 2
2523do
2524  for ac_arg
2525  do
2526    case $ac_arg in
2527    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2528    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2529    | -silent | --silent | --silen | --sile | --sil)
2530      continue ;;
2531    *\'*)
2532      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2533    esac
2534    case $ac_pass in
2535    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2536    2)
2537      as_fn_append ac_configure_args1 " '$ac_arg'"
2538      if test $ac_must_keep_next = true; then
2539	ac_must_keep_next=false # Got value, back to normal.
2540      else
2541	case $ac_arg in
2542	  *=* | --config-cache | -C | -disable-* | --disable-* \
2543	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2544	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2545	  | -with-* | --with-* | -without-* | --without-* | --x)
2546	    case "$ac_configure_args0 " in
2547	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2548	    esac
2549	    ;;
2550	  -* ) ac_must_keep_next=true ;;
2551	esac
2552      fi
2553      as_fn_append ac_configure_args " '$ac_arg'"
2554      ;;
2555    esac
2556  done
2557done
2558{ ac_configure_args0=; unset ac_configure_args0;}
2559{ ac_configure_args1=; unset ac_configure_args1;}
2560
2561# When interrupted or exit'd, cleanup temporary files, and complete
2562# config.log.  We remove comments because anyway the quotes in there
2563# would cause problems or look ugly.
2564# WARNING: Use '\'' to represent an apostrophe within the trap.
2565# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2566trap 'exit_status=$?
2567  # Save into config.log some information that might help in debugging.
2568  {
2569    echo
2570
2571    $as_echo "## ---------------- ##
2572## Cache variables. ##
2573## ---------------- ##"
2574    echo
2575    # The following way of writing the cache mishandles newlines in values,
2576(
2577  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2578    eval ac_val=\$$ac_var
2579    case $ac_val in #(
2580    *${as_nl}*)
2581      case $ac_var in #(
2582      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2583$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2584      esac
2585      case $ac_var in #(
2586      _ | IFS | as_nl) ;; #(
2587      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2588      *) { eval $ac_var=; unset $ac_var;} ;;
2589      esac ;;
2590    esac
2591  done
2592  (set) 2>&1 |
2593    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2594    *${as_nl}ac_space=\ *)
2595      sed -n \
2596	"s/'\''/'\''\\\\'\'''\''/g;
2597	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2598      ;; #(
2599    *)
2600      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2601      ;;
2602    esac |
2603    sort
2604)
2605    echo
2606
2607    $as_echo "## ----------------- ##
2608## Output variables. ##
2609## ----------------- ##"
2610    echo
2611    for ac_var in $ac_subst_vars
2612    do
2613      eval ac_val=\$$ac_var
2614      case $ac_val in
2615      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2616      esac
2617      $as_echo "$ac_var='\''$ac_val'\''"
2618    done | sort
2619    echo
2620
2621    if test -n "$ac_subst_files"; then
2622      $as_echo "## ------------------- ##
2623## File substitutions. ##
2624## ------------------- ##"
2625      echo
2626      for ac_var in $ac_subst_files
2627      do
2628	eval ac_val=\$$ac_var
2629	case $ac_val in
2630	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2631	esac
2632	$as_echo "$ac_var='\''$ac_val'\''"
2633      done | sort
2634      echo
2635    fi
2636
2637    if test -s confdefs.h; then
2638      $as_echo "## ----------- ##
2639## confdefs.h. ##
2640## ----------- ##"
2641      echo
2642      cat confdefs.h
2643      echo
2644    fi
2645    test "$ac_signal" != 0 &&
2646      $as_echo "$as_me: caught signal $ac_signal"
2647    $as_echo "$as_me: exit $exit_status"
2648  } >&5
2649  rm -f core *.core core.conftest.* &&
2650    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2651    exit $exit_status
2652' 0
2653for ac_signal in 1 2 13 15; do
2654  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2655done
2656ac_signal=0
2657
2658# confdefs.h avoids OS command line length limits that DEFS can exceed.
2659rm -f -r conftest* confdefs.h
2660
2661$as_echo "/* confdefs.h */" > confdefs.h
2662
2663# Predefined preprocessor variables.
2664
2665cat >>confdefs.h <<_ACEOF
2666#define PACKAGE_NAME "$PACKAGE_NAME"
2667_ACEOF
2668
2669cat >>confdefs.h <<_ACEOF
2670#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2671_ACEOF
2672
2673cat >>confdefs.h <<_ACEOF
2674#define PACKAGE_VERSION "$PACKAGE_VERSION"
2675_ACEOF
2676
2677cat >>confdefs.h <<_ACEOF
2678#define PACKAGE_STRING "$PACKAGE_STRING"
2679_ACEOF
2680
2681cat >>confdefs.h <<_ACEOF
2682#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2683_ACEOF
2684
2685cat >>confdefs.h <<_ACEOF
2686#define PACKAGE_URL "$PACKAGE_URL"
2687_ACEOF
2688
2689
2690# Let the site file select an alternate cache file if it wants to.
2691# Prefer an explicitly selected file to automatically selected ones.
2692ac_site_file1=NONE
2693ac_site_file2=NONE
2694if test -n "$CONFIG_SITE"; then
2695  # We do not want a PATH search for config.site.
2696  case $CONFIG_SITE in #((
2697    -*)  ac_site_file1=./$CONFIG_SITE;;
2698    */*) ac_site_file1=$CONFIG_SITE;;
2699    *)   ac_site_file1=./$CONFIG_SITE;;
2700  esac
2701elif test "x$prefix" != xNONE; then
2702  ac_site_file1=$prefix/share/config.site
2703  ac_site_file2=$prefix/etc/config.site
2704else
2705  ac_site_file1=$ac_default_prefix/share/config.site
2706  ac_site_file2=$ac_default_prefix/etc/config.site
2707fi
2708for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2709do
2710  test "x$ac_site_file" = xNONE && continue
2711  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2712    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2713$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2714    sed 's/^/| /' "$ac_site_file" >&5
2715    . "$ac_site_file" \
2716      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718as_fn_error $? "failed to load site script $ac_site_file
2719See \`config.log' for more details" "$LINENO" 5; }
2720  fi
2721done
2722
2723if test -r "$cache_file"; then
2724  # Some versions of bash will fail to source /dev/null (special files
2725  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2726  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2727    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2728$as_echo "$as_me: loading cache $cache_file" >&6;}
2729    case $cache_file in
2730      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2731      *)                      . "./$cache_file";;
2732    esac
2733  fi
2734else
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2736$as_echo "$as_me: creating cache $cache_file" >&6;}
2737  >$cache_file
2738fi
2739
2740# Check that the precious variables saved in the cache have kept the same
2741# value.
2742ac_cache_corrupted=false
2743for ac_var in $ac_precious_vars; do
2744  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2745  eval ac_new_set=\$ac_env_${ac_var}_set
2746  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2747  eval ac_new_val=\$ac_env_${ac_var}_value
2748  case $ac_old_set,$ac_new_set in
2749    set,)
2750      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2751$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2752      ac_cache_corrupted=: ;;
2753    ,set)
2754      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2755$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2756      ac_cache_corrupted=: ;;
2757    ,);;
2758    *)
2759      if test "x$ac_old_val" != "x$ac_new_val"; then
2760	# differences in whitespace do not lead to failure.
2761	ac_old_val_w=`echo x $ac_old_val`
2762	ac_new_val_w=`echo x $ac_new_val`
2763	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2764	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2765$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2766	  ac_cache_corrupted=:
2767	else
2768	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2769$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2770	  eval $ac_var=\$ac_old_val
2771	fi
2772	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2773$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2774	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2775$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2776      fi;;
2777  esac
2778  # Pass precious variables to config.status.
2779  if test "$ac_new_set" = set; then
2780    case $ac_new_val in
2781    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2782    *) ac_arg=$ac_var=$ac_new_val ;;
2783    esac
2784    case " $ac_configure_args " in
2785      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2786      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2787    esac
2788  fi
2789done
2790if $ac_cache_corrupted; then
2791  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2794$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2795  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2796fi
2797## -------------------- ##
2798## Main body of script. ##
2799## -------------------- ##
2800
2801ac_ext=c
2802ac_cpp='$CPP $CPPFLAGS'
2803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806
2807
2808
2809ac_config_headers="$ac_config_headers pyconfig.h"
2810
2811
2812ac_aux_dir=
2813for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2814  if test -f "$ac_dir/install-sh"; then
2815    ac_aux_dir=$ac_dir
2816    ac_install_sh="$ac_aux_dir/install-sh -c"
2817    break
2818  elif test -f "$ac_dir/install.sh"; then
2819    ac_aux_dir=$ac_dir
2820    ac_install_sh="$ac_aux_dir/install.sh -c"
2821    break
2822  elif test -f "$ac_dir/shtool"; then
2823    ac_aux_dir=$ac_dir
2824    ac_install_sh="$ac_aux_dir/shtool install -c"
2825    break
2826  fi
2827done
2828if test -z "$ac_aux_dir"; then
2829  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2830fi
2831
2832# These three variables are undocumented and unsupported,
2833# and are intended to be withdrawn in a future Autoconf release.
2834# They can cause serious problems if a builder's source tree is in a directory
2835# whose full name contains unusual characters.
2836ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2837ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2838ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2839
2840
2841# Make sure we can run config.sub.
2842$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2843  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2844
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2846$as_echo_n "checking build system type... " >&6; }
2847if ${ac_cv_build+:} false; then :
2848  $as_echo_n "(cached) " >&6
2849else
2850  ac_build_alias=$build_alias
2851test "x$ac_build_alias" = x &&
2852  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2853test "x$ac_build_alias" = x &&
2854  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2855ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2856  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2857
2858fi
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2860$as_echo "$ac_cv_build" >&6; }
2861case $ac_cv_build in
2862*-*-*) ;;
2863*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2864esac
2865build=$ac_cv_build
2866ac_save_IFS=$IFS; IFS='-'
2867set x $ac_cv_build
2868shift
2869build_cpu=$1
2870build_vendor=$2
2871shift; shift
2872# Remember, the first character of IFS is used to create $*,
2873# except with old shells:
2874build_os=$*
2875IFS=$ac_save_IFS
2876case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2877
2878
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2880$as_echo_n "checking host system type... " >&6; }
2881if ${ac_cv_host+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test "x$host_alias" = x; then
2885  ac_cv_host=$ac_cv_build
2886else
2887  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2888    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2889fi
2890
2891fi
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2893$as_echo "$ac_cv_host" >&6; }
2894case $ac_cv_host in
2895*-*-*) ;;
2896*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2897esac
2898host=$ac_cv_host
2899ac_save_IFS=$IFS; IFS='-'
2900set x $ac_cv_host
2901shift
2902host_cpu=$1
2903host_vendor=$2
2904shift; shift
2905# Remember, the first character of IFS is used to create $*,
2906# except with old shells:
2907host_os=$*
2908IFS=$ac_save_IFS
2909case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2910
2911
2912
2913
2914
2915# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2916rm -f pybuilddir.txt
2917
2918for ac_prog in python$PACKAGE_VERSION python3 python
2919do
2920  # Extract the first word of "$ac_prog", so it can be a program name with args.
2921set dummy $ac_prog; ac_word=$2
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
2924if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
2925  $as_echo_n "(cached) " >&6
2926else
2927  if test -n "$PYTHON_FOR_REGEN"; then
2928  ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933  IFS=$as_save_IFS
2934  test -z "$as_dir" && as_dir=.
2935    for ac_exec_ext in '' $ac_executable_extensions; do
2936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937    ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
2938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939    break 2
2940  fi
2941done
2942  done
2943IFS=$as_save_IFS
2944
2945fi
2946fi
2947PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
2948if test -n "$PYTHON_FOR_REGEN"; then
2949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
2950$as_echo "$PYTHON_FOR_REGEN" >&6; }
2951else
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
2954fi
2955
2956
2957  test -n "$PYTHON_FOR_REGEN" && break
2958done
2959test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
2960
2961
2962
2963if test "$cross_compiling" = yes; then
2964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2965$as_echo_n "checking for python interpreter for cross build... " >&6; }
2966    if test -z "$PYTHON_FOR_BUILD"; then
2967        for interp in python$PACKAGE_VERSION python2 python; do
2968	    which $interp >/dev/null 2>&1 || continue
2969	    if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then
2970	        break
2971	    fi
2972            interp=
2973	done
2974        if test x$interp = x; then
2975	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
2976	fi
2977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2978$as_echo "$interp" >&6; }
2979	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:$(srcdir)/Lib/$(PLATDIR) '$interp
2980    fi
2981elif test "$cross_compiling" = maybe; then
2982    as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
2983else
2984    PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
2985fi
2986
2987
2988
2989if test "$prefix" != "/"; then
2990    prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2991fi
2992
2993
2994
2995
2996# We don't use PACKAGE_ variables, and they cause conflicts
2997# with other autoconf-based packages that include Python.h
2998grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2999rm confdefs.h
3000mv confdefs.h.new confdefs.h
3001
3002
3003VERSION=2.7
3004
3005
3006SOVERSION=1.0
3007
3008# The later defininition of _XOPEN_SOURCE disables certain features
3009# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
3010
3011$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3012
3013
3014# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3015# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3016# them.
3017
3018$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3019
3020
3021# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3022# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3023# them.
3024
3025$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
3026
3027
3028# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3029# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
3030
3031$as_echo "#define _BSD_TYPES 1" >>confdefs.h
3032
3033
3034# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3035# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3036# them.
3037
3038$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3039
3040
3041
3042define_xopen_source=yes
3043
3044# Arguments passed to configure.
3045
3046CONFIG_ARGS="$ac_configure_args"
3047
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3049$as_echo_n "checking for --enable-universalsdk... " >&6; }
3050# Check whether --enable-universalsdk was given.
3051if test "${enable_universalsdk+set}" = set; then :
3052  enableval=$enable_universalsdk;
3053	case $enableval in
3054	yes)
3055		# Locate the best usable SDK, see Mac/README.txt for more
3056		# information
3057		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
3058		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
3059		then
3060			enableval=/Developer/SDKs/MacOSX10.4u.sdk
3061			if test ! -d "${enableval}"
3062			then
3063				enableval=/
3064			fi
3065		fi
3066		;;
3067	esac
3068	case $enableval in
3069	no)
3070		UNIVERSALSDK=
3071		enable_universalsdk=
3072		;;
3073	*)
3074		UNIVERSALSDK=$enableval
3075		if test ! -d "${UNIVERSALSDK}"
3076		then
3077			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
3078		fi
3079		;;
3080	esac
3081
3082
3083else
3084
3085   	UNIVERSALSDK=
3086	enable_universalsdk=
3087
3088fi
3089
3090if test -n "${UNIVERSALSDK}"
3091then
3092	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3093$as_echo "${UNIVERSALSDK}" >&6; }
3094else
3095	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097fi
3098
3099
3100
3101ARCH_RUN_32BIT=""
3102
3103# For backward compatibility reasons we prefer to select '32-bit' if available,
3104# otherwise use 'intel'
3105UNIVERSAL_ARCHS="32-bit"
3106if test "`uname -s`" = "Darwin"
3107then
3108	if test -n "${UNIVERSALSDK}"
3109	then
3110		if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
3111		then
3112			UNIVERSAL_ARCHS="intel"
3113		fi
3114	fi
3115fi
3116
3117
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3119$as_echo_n "checking for --with-universal-archs... " >&6; }
3120
3121# Check whether --with-universal-archs was given.
3122if test "${with_universal_archs+set}" = set; then :
3123  withval=$with_universal_archs;
3124	UNIVERSAL_ARCHS="$withval"
3125
3126fi
3127
3128if test -n "${UNIVERSALSDK}"
3129then
3130	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3131$as_echo "${UNIVERSAL_ARCHS}" >&6; }
3132else
3133	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137
3138# Check whether --with-framework-name was given.
3139if test "${with_framework_name+set}" = set; then :
3140  withval=$with_framework_name;
3141    if test "${enable_framework}"; then
3142	    :
3143    else
3144	as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5
3145    fi
3146    PYTHONFRAMEWORK=${withval}
3147    PYTHONFRAMEWORKDIR=${withval}.framework
3148    PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3149
3150else
3151
3152    PYTHONFRAMEWORK=Python
3153    PYTHONFRAMEWORKDIR=Python.framework
3154    PYTHONFRAMEWORKIDENTIFIER=org.python.python
3155
3156fi
3157
3158# Check whether --enable-framework was given.
3159if test "${enable_framework+set}" = set; then :
3160  enableval=$enable_framework;
3161	case $enableval in
3162	yes)
3163		enableval=/Library/Frameworks
3164	esac
3165	case $enableval in
3166	no)
3167		PYTHONFRAMEWORK=
3168		PYTHONFRAMEWORKDIR=no-framework
3169		PYTHONFRAMEWORKPREFIX=
3170		PYTHONFRAMEWORKINSTALLDIR=
3171		FRAMEWORKINSTALLFIRST=
3172		FRAMEWORKINSTALLLAST=
3173		FRAMEWORKALTINSTALLFIRST=
3174		FRAMEWORKALTINSTALLLAST=
3175		if test "x${prefix}" = "xNONE"; then
3176			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3177		else
3178			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3179		fi
3180		enable_framework=
3181		;;
3182	*)
3183		PYTHONFRAMEWORKPREFIX="${enableval}"
3184		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
3185		FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
3186		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
3187		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3188		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
3189		FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3190
3191		if test "x${prefix}" = "xNONE" ; then
3192			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3193
3194		else
3195			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3196		fi
3197
3198		case "${enableval}" in
3199		/System*)
3200			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3201			if test "${prefix}" = "NONE" ; then
3202				# See below
3203				FRAMEWORKUNIXTOOLSPREFIX="/usr"
3204			fi
3205			;;
3206
3207		/Library*)
3208			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3209			;;
3210
3211		*/Library/Frameworks)
3212			MDIR="`dirname "${enableval}"`"
3213			MDIR="`dirname "${MDIR}"`"
3214			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3215
3216			if test "${prefix}" = "NONE"; then
3217				# User hasn't specified the
3218				# --prefix option, but wants to install
3219				# the framework in a non-default location,
3220				# ensure that the compatibility links get
3221				# installed relative to that prefix as well
3222				# instead of in /usr/local.
3223				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3224			fi
3225			;;
3226
3227		*)
3228			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3229			;;
3230		esac
3231
3232		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
3233
3234		# Add files for Mac specific code to the list of output
3235		# files:
3236		ac_config_files="$ac_config_files Mac/Makefile"
3237
3238		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
3239
3240		ac_config_files="$ac_config_files Mac/IDLE/Makefile"
3241
3242		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3243
3244		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3245
3246	esac
3247
3248else
3249
3250	PYTHONFRAMEWORK=
3251	PYTHONFRAMEWORKDIR=no-framework
3252	PYTHONFRAMEWORKPREFIX=
3253	PYTHONFRAMEWORKINSTALLDIR=
3254	FRAMEWORKINSTALLFIRST=
3255	FRAMEWORKINSTALLLAST=
3256	FRAMEWORKALTINSTALLFIRST=
3257	FRAMEWORKALTINSTALLLAST=
3258	if test "x${prefix}" = "xNONE" ; then
3259		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3260	else
3261		FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3262	fi
3263	enable_framework=
3264
3265
3266fi
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280##AC_ARG_WITH(dyld,
3281##            AS_HELP_STRING([--with-dyld],
3282##                           [Use (OpenStep|Rhapsody) dynamic linker]))
3283##
3284# Set name for machine-dependent library files
3285
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3287$as_echo_n "checking MACHDEP... " >&6; }
3288if test -z "$MACHDEP"
3289then
3290    # avoid using uname for cross builds
3291    if test "$cross_compiling" = yes; then
3292       # ac_sys_system and ac_sys_release are only used for setting
3293       # `define_xopen_source' in the case statement below. For the
3294       # current supported cross builds, this macro is not adjusted.
3295	case "$host" in
3296	*-*-linux*)
3297		ac_sys_system=Linux
3298		;;
3299	*-*-cygwin*)
3300		ac_sys_system=Cygwin
3301		;;
3302	*)
3303		# for now, limit cross builds to known configurations
3304		MACHDEP="unknown"
3305		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3306	esac
3307	ac_sys_release=
3308    else
3309	ac_sys_system=`uname -s`
3310	if test "$ac_sys_system" = "AIX" \
3311	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
3312		ac_sys_release=`uname -v`
3313	else
3314		ac_sys_release=`uname -r`
3315	fi
3316    fi
3317    ac_md_system=`echo $ac_sys_system |
3318			tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3319    ac_md_release=`echo $ac_sys_release |
3320			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3321    MACHDEP="$ac_md_system$ac_md_release"
3322
3323    case $MACHDEP in
3324	linux*) MACHDEP="linux2";;
3325	cygwin*) MACHDEP="cygwin";;
3326	darwin*) MACHDEP="darwin";;
3327	atheos*) MACHDEP="atheos";;
3328        irix646) MACHDEP="irix6";;
3329	'')	MACHDEP="unknown";;
3330    esac
3331fi
3332
3333
3334if test "$cross_compiling" = yes; then
3335	case "$host" in
3336	*-*-linux*)
3337		case "$host_cpu" in
3338		arm*)
3339			_host_cpu=arm
3340			;;
3341		*)
3342			_host_cpu=$host_cpu
3343		esac
3344		;;
3345	*-*-cygwin*)
3346		_host_cpu=
3347		;;
3348	*)
3349		# for now, limit cross builds to known configurations
3350		MACHDEP="unknown"
3351		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3352	esac
3353	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3354fi
3355
3356# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3357# disable features if it is defined, without any means to access these
3358# features as extensions. For these systems, we skip the definition of
3359# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3360# some feature, make sure there is no alternative way to access this
3361# feature. Also, when using wildcards, make sure you have verified the
3362# need for not defining _XOPEN_SOURCE on all systems matching the
3363# wildcard, and that the wildcard does not include future systems
3364# (which may remove their limitations).
3365case $ac_sys_system/$ac_sys_release in
3366  # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3367  # even though select is a POSIX function. Reported by J. Ribbens.
3368  # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3369  # In addition, Stefan Krah confirms that issue #1244610 exists through
3370  # OpenBSD 4.6, but is fixed in 4.7.
3371  OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
3372    define_xopen_source=no
3373    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3374    # also defined. This can be overridden by defining _BSD_SOURCE
3375    # As this has a different meaning on Linux, only define it on OpenBSD
3376
3377$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3378
3379    ;;
3380  OpenBSD/*)
3381    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3382    # also defined. This can be overridden by defining _BSD_SOURCE
3383    # As this has a different meaning on Linux, only define it on OpenBSD
3384
3385$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3386
3387    ;;
3388  # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3389  # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3390  # Marc Recht
3391  NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
3392    define_xopen_source=no;;
3393  # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3394  # request to enable features supported by the standard as a request
3395  # to disable features not supported by the standard.  The best way
3396  # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3397  # entirely and define __EXTENSIONS__ instead.
3398  SunOS/*)
3399    define_xopen_source=no;;
3400  # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3401  # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
3402  # Reconfirmed for 7.1.4 by Martin v. Loewis.
3403  OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
3404    define_xopen_source=no;;
3405  # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
3406  # but used in struct sockaddr.sa_family. Reported by Tim Rice.
3407  SCO_SV/3.2)
3408    define_xopen_source=no;;
3409  # On FreeBSD 4, the math functions C89 does not cover are never defined
3410  # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3411  FreeBSD/4.*)
3412    define_xopen_source=no;;
3413  # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3414  # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3415  # identifies itself as Darwin/7.*
3416  # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3417  # disables platform specific features beyond repair.
3418  # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3419  # has no effect, don't bother defining them
3420  Darwin/[6789].*)
3421    define_xopen_source=no;;
3422  Darwin/1[0-9].*)
3423    define_xopen_source=no;;
3424  # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3425  # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3426  # or has another value. By not (re)defining it, the defaults come in place.
3427  AIX/4)
3428    define_xopen_source=no;;
3429  AIX/5)
3430    if test `uname -r` -eq 1; then
3431      define_xopen_source=no
3432    fi
3433    ;;
3434  # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3435  # defining NI_NUMERICHOST.
3436  QNX/6.3.2)
3437    define_xopen_source=no
3438    ;;
3439
3440esac
3441
3442if test $define_xopen_source = yes
3443then
3444
3445$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3446
3447
3448  # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3449  # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3450  # several APIs are not declared. Since this is also needed in some
3451  # cases for HP-UX, we define it globally.
3452
3453$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3454
3455
3456
3457$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3458
3459
3460fi
3461
3462#
3463# SGI compilers allow the specification of the both the ABI and the
3464# ISA on the command line.  Depending on the values of these switches,
3465# different and often incompatible code will be generated.
3466#
3467# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3468# thus supply support for various ABI/ISA combinations.  The MACHDEP
3469# variable is also adjusted.
3470#
3471
3472if test ! -z "$SGI_ABI"
3473then
3474        CC="cc $SGI_ABI"
3475        LDFLAGS="$SGI_ABI $LDFLAGS"
3476        MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3479$as_echo "$MACHDEP" >&6; }
3480
3481
3482PLATDIR=plat-$MACHDEP
3483
3484# And add extra plat-mac for darwin
3485
3486
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
3488$as_echo_n "checking EXTRAPLATDIR... " >&6; }
3489if test -z "$EXTRAPLATDIR"
3490then
3491	case $MACHDEP in
3492	darwin)
3493		EXTRAPLATDIR="\$(PLATMACDIRS)"
3494		EXTRAMACHDEPPATH="\$(PLATMACPATH)"
3495		;;
3496	*)
3497		EXTRAPLATDIR=""
3498		EXTRAMACHDEPPATH=""
3499		;;
3500	esac
3501fi
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
3503$as_echo "$EXTRAPLATDIR" >&6; }
3504
3505# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3506# it may influence the way we can build extensions, so distutils
3507# needs to check it
3508
3509
3510CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
3511EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
3512
3513# checks for alternative programs
3514
3515# compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just
3516# for debug/optimization stuff.  BASECFLAGS is for flags that are required
3517# just to get things to compile and link.  Users are free to override OPT
3518# when running configure or make.  The build should not break if they do.
3519# BASECFLAGS should generally not be messed with, however.
3520
3521# XXX shouldn't some/most/all of this code be merged with the stuff later
3522# on that fiddles with OPT and BASECFLAGS?
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3524$as_echo_n "checking for --without-gcc... " >&6; }
3525
3526# Check whether --with-gcc was given.
3527if test "${with_gcc+set}" = set; then :
3528  withval=$with_gcc;
3529	case $withval in
3530	no)	CC=${CC:-cc}
3531		without_gcc=yes;;
3532	yes)	CC=gcc
3533		without_gcc=no;;
3534	*)	CC=$withval
3535		without_gcc=$withval;;
3536	esac
3537else
3538
3539	case $ac_sys_system in
3540	AIX*)   CC=${CC:-xlc_r}
3541		without_gcc=;;
3542	BeOS*)
3543		case $BE_HOST_CPU in
3544		ppc)
3545			CC=mwcc
3546			without_gcc=yes
3547			BASECFLAGS="$BASECFLAGS -export pragma"
3548			OPT="$OPT -O"
3549			LDFLAGS="$LDFLAGS -nodup"
3550			;;
3551		x86)
3552			CC=gcc
3553			without_gcc=no
3554			OPT="$OPT -O"
3555			;;
3556		*)
3557			as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
3558			;;
3559		esac
3560		AR="\$(srcdir)/Modules/ar_beos"
3561		RANLIB=:
3562		;;
3563	*)	without_gcc=no;;
3564	esac
3565fi
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3568$as_echo "$without_gcc" >&6; }
3569
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5
3571$as_echo_n "checking for --with-icc... " >&6; }
3572
3573# Check whether --with-icc was given.
3574if test "${with_icc+set}" = set; then :
3575  withval=$with_icc;
3576	case $withval in
3577	no)	CC=${CC:-cc}
3578		with_icc=no;;
3579	yes)	CC=icc
3580		CXX=icpc
3581		with_icc=yes;;
3582	*)	CC=$withval
3583		with_icc=$withval;;
3584	esac
3585else
3586
3587	with_icc=no
3588fi
3589
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5
3591$as_echo "$with_icc" >&6; }
3592
3593# If the user switches compilers, we can't believe the cache
3594if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3595then
3596  as_fn_error $? "cached CC is different -- throw away $cache_file
3597(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3598fi
3599
3600if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then
3601    # Normally, MIPSpro CC treats #error directives as warnings, which means
3602    # a successful exit code is returned (0).  This is a problem because IRIX
3603    # has a bunch of system headers with this guard at the top:
3604    #
3605    #  #ifndef __c99
3606    #  #error This header file is to be used only for c99 mode compilations
3607    #  #else
3608    #
3609    # When autoconf tests for such a header, like stdint.h, this happens:
3610    #
3611    #  configure:4619: cc -c   conftest.c >&5
3612    #  cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5
3613    #    #error directive:  This header file is to be used only for c99 mode
3614    #            compilations
3615    #
3616    #    #error This header file is to be used only for c99 mode compilations
3617    #     ^
3618    #
3619    #  configure:4619: $? = 0
3620    #  configure:4619: result: yes
3621    #
3622    # Therefore, we use `-diag_error 1035` to have the compiler treat the
3623    # warning as an error, which causes cc to return a non-zero result,
3624    # which autoconf can interpret correctly.
3625    CFLAGS="$CFLAGS -diag_error 1035"
3626    # Whilst we're here, we might as well make sure CXX defaults to something
3627    # sensible if we're not using gcc.
3628    if test -z "$CXX"; then
3629        CXX="CC"
3630    fi
3631fi
3632
3633# If the user set CFLAGS, use this instead of the automatically
3634# determined setting
3635preset_cflags="$CFLAGS"
3636ac_ext=c
3637ac_cpp='$CPP $CPPFLAGS'
3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641if test -n "$ac_tool_prefix"; then
3642  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3643set dummy ${ac_tool_prefix}gcc; ac_word=$2
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645$as_echo_n "checking for $ac_word... " >&6; }
3646if ${ac_cv_prog_CC+:} false; then :
3647  $as_echo_n "(cached) " >&6
3648else
3649  if test -n "$CC"; then
3650  ac_cv_prog_CC="$CC" # Let the user override the test.
3651else
3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653for as_dir in $PATH
3654do
3655  IFS=$as_save_IFS
3656  test -z "$as_dir" && as_dir=.
3657    for ac_exec_ext in '' $ac_executable_extensions; do
3658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661    break 2
3662  fi
3663done
3664  done
3665IFS=$as_save_IFS
3666
3667fi
3668fi
3669CC=$ac_cv_prog_CC
3670if test -n "$CC"; then
3671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672$as_echo "$CC" >&6; }
3673else
3674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675$as_echo "no" >&6; }
3676fi
3677
3678
3679fi
3680if test -z "$ac_cv_prog_CC"; then
3681  ac_ct_CC=$CC
3682  # Extract the first word of "gcc", so it can be a program name with args.
3683set dummy gcc; ac_word=$2
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685$as_echo_n "checking for $ac_word... " >&6; }
3686if ${ac_cv_prog_ac_ct_CC+:} false; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  if test -n "$ac_ct_CC"; then
3690  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3691else
3692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693for as_dir in $PATH
3694do
3695  IFS=$as_save_IFS
3696  test -z "$as_dir" && as_dir=.
3697    for ac_exec_ext in '' $ac_executable_extensions; do
3698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699    ac_cv_prog_ac_ct_CC="gcc"
3700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701    break 2
3702  fi
3703done
3704  done
3705IFS=$as_save_IFS
3706
3707fi
3708fi
3709ac_ct_CC=$ac_cv_prog_ac_ct_CC
3710if test -n "$ac_ct_CC"; then
3711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3712$as_echo "$ac_ct_CC" >&6; }
3713else
3714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715$as_echo "no" >&6; }
3716fi
3717
3718  if test "x$ac_ct_CC" = x; then
3719    CC=""
3720  else
3721    case $cross_compiling:$ac_tool_warned in
3722yes:)
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3725ac_tool_warned=yes ;;
3726esac
3727    CC=$ac_ct_CC
3728  fi
3729else
3730  CC="$ac_cv_prog_CC"
3731fi
3732
3733if test -z "$CC"; then
3734          if test -n "$ac_tool_prefix"; then
3735    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3736set dummy ${ac_tool_prefix}cc; ac_word=$2
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738$as_echo_n "checking for $ac_word... " >&6; }
3739if ${ac_cv_prog_CC+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  if test -n "$CC"; then
3743  ac_cv_prog_CC="$CC" # Let the user override the test.
3744else
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748  IFS=$as_save_IFS
3749  test -z "$as_dir" && as_dir=.
3750    for ac_exec_ext in '' $ac_executable_extensions; do
3751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752    ac_cv_prog_CC="${ac_tool_prefix}cc"
3753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754    break 2
3755  fi
3756done
3757  done
3758IFS=$as_save_IFS
3759
3760fi
3761fi
3762CC=$ac_cv_prog_CC
3763if test -n "$CC"; then
3764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765$as_echo "$CC" >&6; }
3766else
3767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768$as_echo "no" >&6; }
3769fi
3770
3771
3772  fi
3773fi
3774if test -z "$CC"; then
3775  # Extract the first word of "cc", so it can be a program name with args.
3776set dummy cc; ac_word=$2
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778$as_echo_n "checking for $ac_word... " >&6; }
3779if ${ac_cv_prog_CC+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  if test -n "$CC"; then
3783  ac_cv_prog_CC="$CC" # Let the user override the test.
3784else
3785  ac_prog_rejected=no
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789  IFS=$as_save_IFS
3790  test -z "$as_dir" && as_dir=.
3791    for ac_exec_ext in '' $ac_executable_extensions; do
3792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3794       ac_prog_rejected=yes
3795       continue
3796     fi
3797    ac_cv_prog_CC="cc"
3798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799    break 2
3800  fi
3801done
3802  done
3803IFS=$as_save_IFS
3804
3805if test $ac_prog_rejected = yes; then
3806  # We found a bogon in the path, so make sure we never use it.
3807  set dummy $ac_cv_prog_CC
3808  shift
3809  if test $# != 0; then
3810    # We chose a different compiler from the bogus one.
3811    # However, it has the same basename, so the bogon will be chosen
3812    # first if we set CC to just the basename; use the full file name.
3813    shift
3814    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3815  fi
3816fi
3817fi
3818fi
3819CC=$ac_cv_prog_CC
3820if test -n "$CC"; then
3821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3822$as_echo "$CC" >&6; }
3823else
3824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825$as_echo "no" >&6; }
3826fi
3827
3828
3829fi
3830if test -z "$CC"; then
3831  if test -n "$ac_tool_prefix"; then
3832  for ac_prog in cl.exe
3833  do
3834    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837$as_echo_n "checking for $ac_word... " >&6; }
3838if ${ac_cv_prog_CC+:} false; then :
3839  $as_echo_n "(cached) " >&6
3840else
3841  if test -n "$CC"; then
3842  ac_cv_prog_CC="$CC" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847  IFS=$as_save_IFS
3848  test -z "$as_dir" && as_dir=.
3849    for ac_exec_ext in '' $ac_executable_extensions; do
3850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853    break 2
3854  fi
3855done
3856  done
3857IFS=$as_save_IFS
3858
3859fi
3860fi
3861CC=$ac_cv_prog_CC
3862if test -n "$CC"; then
3863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864$as_echo "$CC" >&6; }
3865else
3866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
3868fi
3869
3870
3871    test -n "$CC" && break
3872  done
3873fi
3874if test -z "$CC"; then
3875  ac_ct_CC=$CC
3876  for ac_prog in cl.exe
3877do
3878  # Extract the first word of "$ac_prog", so it can be a program name with args.
3879set dummy $ac_prog; ac_word=$2
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881$as_echo_n "checking for $ac_word... " >&6; }
3882if ${ac_cv_prog_ac_ct_CC+:} false; then :
3883  $as_echo_n "(cached) " >&6
3884else
3885  if test -n "$ac_ct_CC"; then
3886  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3887else
3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH
3890do
3891  IFS=$as_save_IFS
3892  test -z "$as_dir" && as_dir=.
3893    for ac_exec_ext in '' $ac_executable_extensions; do
3894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895    ac_cv_prog_ac_ct_CC="$ac_prog"
3896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897    break 2
3898  fi
3899done
3900  done
3901IFS=$as_save_IFS
3902
3903fi
3904fi
3905ac_ct_CC=$ac_cv_prog_ac_ct_CC
3906if test -n "$ac_ct_CC"; then
3907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3908$as_echo "$ac_ct_CC" >&6; }
3909else
3910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
3912fi
3913
3914
3915  test -n "$ac_ct_CC" && break
3916done
3917
3918  if test "x$ac_ct_CC" = x; then
3919    CC=""
3920  else
3921    case $cross_compiling:$ac_tool_warned in
3922yes:)
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925ac_tool_warned=yes ;;
3926esac
3927    CC=$ac_ct_CC
3928  fi
3929fi
3930
3931fi
3932
3933
3934test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936as_fn_error $? "no acceptable C compiler found in \$PATH
3937See \`config.log' for more details" "$LINENO" 5; }
3938
3939# Provide some information about the compiler.
3940$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3941set X $ac_compile
3942ac_compiler=$2
3943for ac_option in --version -v -V -qversion; do
3944  { { ac_try="$ac_compiler $ac_option >&5"
3945case "(($ac_try" in
3946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947  *) ac_try_echo=$ac_try;;
3948esac
3949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950$as_echo "$ac_try_echo"; } >&5
3951  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3952  ac_status=$?
3953  if test -s conftest.err; then
3954    sed '10a\
3955... rest of stderr output deleted ...
3956         10q' conftest.err >conftest.er1
3957    cat conftest.er1 >&5
3958  fi
3959  rm -f conftest.er1 conftest.err
3960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961  test $ac_status = 0; }
3962done
3963
3964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h.  */
3966
3967int
3968main ()
3969{
3970
3971  ;
3972  return 0;
3973}
3974_ACEOF
3975ac_clean_files_save=$ac_clean_files
3976ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3977# Try to create an executable without -o first, disregard a.out.
3978# It will help us diagnose broken compilers, and finding out an intuition
3979# of exeext.
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3981$as_echo_n "checking whether the C compiler works... " >&6; }
3982ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3983
3984# The possible output files:
3985ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3986
3987ac_rmfiles=
3988for ac_file in $ac_files
3989do
3990  case $ac_file in
3991    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3993  esac
3994done
3995rm -f $ac_rmfiles
3996
3997if { { ac_try="$ac_link_default"
3998case "(($ac_try" in
3999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000  *) ac_try_echo=$ac_try;;
4001esac
4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003$as_echo "$ac_try_echo"; } >&5
4004  (eval "$ac_link_default") 2>&5
4005  ac_status=$?
4006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007  test $ac_status = 0; }; then :
4008  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4009# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4010# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4011# so that the user can short-circuit this test for compilers unknown to
4012# Autoconf.
4013for ac_file in $ac_files ''
4014do
4015  test -f "$ac_file" || continue
4016  case $ac_file in
4017    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4018	;;
4019    [ab].out )
4020	# We found the default executable, but exeext='' is most
4021	# certainly right.
4022	break;;
4023    *.* )
4024	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4025	then :; else
4026	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4027	fi
4028	# We set ac_cv_exeext here because the later test for it is not
4029	# safe: cross compilers may not add the suffix if given an `-o'
4030	# argument, so we may need to know it at that point already.
4031	# Even if this section looks crufty: it has the advantage of
4032	# actually working.
4033	break;;
4034    * )
4035	break;;
4036  esac
4037done
4038test "$ac_cv_exeext" = no && ac_cv_exeext=
4039
4040else
4041  ac_file=''
4042fi
4043if test -z "$ac_file"; then :
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045$as_echo "no" >&6; }
4046$as_echo "$as_me: failed program was:" >&5
4047sed 's/^/| /' conftest.$ac_ext >&5
4048
4049{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051as_fn_error 77 "C compiler cannot create executables
4052See \`config.log' for more details" "$LINENO" 5; }
4053else
4054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4055$as_echo "yes" >&6; }
4056fi
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4058$as_echo_n "checking for C compiler default output file name... " >&6; }
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4060$as_echo "$ac_file" >&6; }
4061ac_exeext=$ac_cv_exeext
4062
4063rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4064ac_clean_files=$ac_clean_files_save
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4066$as_echo_n "checking for suffix of executables... " >&6; }
4067if { { ac_try="$ac_link"
4068case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073$as_echo "$ac_try_echo"; } >&5
4074  (eval "$ac_link") 2>&5
4075  ac_status=$?
4076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077  test $ac_status = 0; }; then :
4078  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4079# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4080# work properly (i.e., refer to `conftest.exe'), while it won't with
4081# `rm'.
4082for ac_file in conftest.exe conftest conftest.*; do
4083  test -f "$ac_file" || continue
4084  case $ac_file in
4085    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4086    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4087	  break;;
4088    * ) break;;
4089  esac
4090done
4091else
4092  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4094as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4095See \`config.log' for more details" "$LINENO" 5; }
4096fi
4097rm -f conftest conftest$ac_cv_exeext
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4099$as_echo "$ac_cv_exeext" >&6; }
4100
4101rm -f conftest.$ac_ext
4102EXEEXT=$ac_cv_exeext
4103ac_exeext=$EXEEXT
4104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105/* end confdefs.h.  */
4106#include <stdio.h>
4107int
4108main ()
4109{
4110FILE *f = fopen ("conftest.out", "w");
4111 return ferror (f) || fclose (f) != 0;
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117ac_clean_files="$ac_clean_files conftest.out"
4118# Check that the compiler produces executables we can run.  If not, either
4119# the compiler is broken, or we cross compile.
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4121$as_echo_n "checking whether we are cross compiling... " >&6; }
4122if test "$cross_compiling" != yes; then
4123  { { ac_try="$ac_link"
4124case "(($ac_try" in
4125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126  *) ac_try_echo=$ac_try;;
4127esac
4128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129$as_echo "$ac_try_echo"; } >&5
4130  (eval "$ac_link") 2>&5
4131  ac_status=$?
4132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4133  test $ac_status = 0; }
4134  if { ac_try='./conftest$ac_cv_exeext'
4135  { { case "(($ac_try" in
4136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137  *) ac_try_echo=$ac_try;;
4138esac
4139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140$as_echo "$ac_try_echo"; } >&5
4141  (eval "$ac_try") 2>&5
4142  ac_status=$?
4143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144  test $ac_status = 0; }; }; then
4145    cross_compiling=no
4146  else
4147    if test "$cross_compiling" = maybe; then
4148	cross_compiling=yes
4149    else
4150	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152as_fn_error $? "cannot run C compiled programs.
4153If you meant to cross compile, use \`--host'.
4154See \`config.log' for more details" "$LINENO" 5; }
4155    fi
4156  fi
4157fi
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4159$as_echo "$cross_compiling" >&6; }
4160
4161rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4162ac_clean_files=$ac_clean_files_save
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4164$as_echo_n "checking for suffix of object files... " >&6; }
4165if ${ac_cv_objext+:} false; then :
4166  $as_echo_n "(cached) " >&6
4167else
4168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170
4171int
4172main ()
4173{
4174
4175  ;
4176  return 0;
4177}
4178_ACEOF
4179rm -f conftest.o conftest.obj
4180if { { ac_try="$ac_compile"
4181case "(($ac_try" in
4182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183  *) ac_try_echo=$ac_try;;
4184esac
4185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186$as_echo "$ac_try_echo"; } >&5
4187  (eval "$ac_compile") 2>&5
4188  ac_status=$?
4189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190  test $ac_status = 0; }; then :
4191  for ac_file in conftest.o conftest.obj conftest.*; do
4192  test -f "$ac_file" || continue;
4193  case $ac_file in
4194    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4195    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4196       break;;
4197  esac
4198done
4199else
4200  $as_echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
4203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205as_fn_error $? "cannot compute suffix of object files: cannot compile
4206See \`config.log' for more details" "$LINENO" 5; }
4207fi
4208rm -f conftest.$ac_cv_objext conftest.$ac_ext
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4211$as_echo "$ac_cv_objext" >&6; }
4212OBJEXT=$ac_cv_objext
4213ac_objext=$OBJEXT
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4215$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4216if ${ac_cv_c_compiler_gnu+:} false; then :
4217  $as_echo_n "(cached) " >&6
4218else
4219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220/* end confdefs.h.  */
4221
4222int
4223main ()
4224{
4225#ifndef __GNUC__
4226       choke me
4227#endif
4228
4229  ;
4230  return 0;
4231}
4232_ACEOF
4233if ac_fn_c_try_compile "$LINENO"; then :
4234  ac_compiler_gnu=yes
4235else
4236  ac_compiler_gnu=no
4237fi
4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239ac_cv_c_compiler_gnu=$ac_compiler_gnu
4240
4241fi
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4243$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4244if test $ac_compiler_gnu = yes; then
4245  GCC=yes
4246else
4247  GCC=
4248fi
4249ac_test_CFLAGS=${CFLAGS+set}
4250ac_save_CFLAGS=$CFLAGS
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4252$as_echo_n "checking whether $CC accepts -g... " >&6; }
4253if ${ac_cv_prog_cc_g+:} false; then :
4254  $as_echo_n "(cached) " >&6
4255else
4256  ac_save_c_werror_flag=$ac_c_werror_flag
4257   ac_c_werror_flag=yes
4258   ac_cv_prog_cc_g=no
4259   CFLAGS="-g"
4260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h.  */
4262
4263int
4264main ()
4265{
4266
4267  ;
4268  return 0;
4269}
4270_ACEOF
4271if ac_fn_c_try_compile "$LINENO"; then :
4272  ac_cv_prog_cc_g=yes
4273else
4274  CFLAGS=""
4275      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277
4278int
4279main ()
4280{
4281
4282  ;
4283  return 0;
4284}
4285_ACEOF
4286if ac_fn_c_try_compile "$LINENO"; then :
4287
4288else
4289  ac_c_werror_flag=$ac_save_c_werror_flag
4290	 CFLAGS="-g"
4291	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292/* end confdefs.h.  */
4293
4294int
4295main ()
4296{
4297
4298  ;
4299  return 0;
4300}
4301_ACEOF
4302if ac_fn_c_try_compile "$LINENO"; then :
4303  ac_cv_prog_cc_g=yes
4304fi
4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306fi
4307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308fi
4309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310   ac_c_werror_flag=$ac_save_c_werror_flag
4311fi
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4313$as_echo "$ac_cv_prog_cc_g" >&6; }
4314if test "$ac_test_CFLAGS" = set; then
4315  CFLAGS=$ac_save_CFLAGS
4316elif test $ac_cv_prog_cc_g = yes; then
4317  if test "$GCC" = yes; then
4318    CFLAGS="-g -O2"
4319  else
4320    CFLAGS="-g"
4321  fi
4322else
4323  if test "$GCC" = yes; then
4324    CFLAGS="-O2"
4325  else
4326    CFLAGS=
4327  fi
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4330$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4331if ${ac_cv_prog_cc_c89+:} false; then :
4332  $as_echo_n "(cached) " >&6
4333else
4334  ac_cv_prog_cc_c89=no
4335ac_save_CC=$CC
4336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338#include <stdarg.h>
4339#include <stdio.h>
4340struct stat;
4341/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4342struct buf { int x; };
4343FILE * (*rcsopen) (struct buf *, struct stat *, int);
4344static char *e (p, i)
4345     char **p;
4346     int i;
4347{
4348  return p[i];
4349}
4350static char *f (char * (*g) (char **, int), char **p, ...)
4351{
4352  char *s;
4353  va_list v;
4354  va_start (v,p);
4355  s = g (p, va_arg (v,int));
4356  va_end (v);
4357  return s;
4358}
4359
4360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4361   function prototypes and stuff, but not '\xHH' hex character constants.
4362   These don't provoke an error unfortunately, instead are silently treated
4363   as 'x'.  The following induces an error, until -std is added to get
4364   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4365   array size at least.  It's necessary to write '\x00'==0 to get something
4366   that's true only with -std.  */
4367int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4368
4369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4370   inside strings and character constants.  */
4371#define FOO(x) 'x'
4372int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4373
4374int test (int i, double x);
4375struct s1 {int (*f) (int a);};
4376struct s2 {int (*f) (double a);};
4377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4378int argc;
4379char **argv;
4380int
4381main ()
4382{
4383return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4384  ;
4385  return 0;
4386}
4387_ACEOF
4388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4389	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4390do
4391  CC="$ac_save_CC $ac_arg"
4392  if ac_fn_c_try_compile "$LINENO"; then :
4393  ac_cv_prog_cc_c89=$ac_arg
4394fi
4395rm -f core conftest.err conftest.$ac_objext
4396  test "x$ac_cv_prog_cc_c89" != "xno" && break
4397done
4398rm -f conftest.$ac_ext
4399CC=$ac_save_CC
4400
4401fi
4402# AC_CACHE_VAL
4403case "x$ac_cv_prog_cc_c89" in
4404  x)
4405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4406$as_echo "none needed" >&6; } ;;
4407  xno)
4408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409$as_echo "unsupported" >&6; } ;;
4410  *)
4411    CC="$CC $ac_cv_prog_cc_c89"
4412    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4413$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4414esac
4415if test "x$ac_cv_prog_cc_c89" != xno; then :
4416
4417fi
4418
4419ac_ext=c
4420ac_cpp='$CPP $CPPFLAGS'
4421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
4425if test ! -z "$preset_cflags"
4426then
4427	CFLAGS=$preset_cflags
4428fi
4429
4430
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4433$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4434
4435# Check whether --with-cxx_main was given.
4436if test "${with_cxx_main+set}" = set; then :
4437  withval=$with_cxx_main;
4438
4439	case $withval in
4440	no)	with_cxx_main=no
4441		MAINCC='$(CC)';;
4442	yes)	with_cxx_main=yes
4443		MAINCC='$(CXX)';;
4444	*)	with_cxx_main=yes
4445		MAINCC=$withval
4446		if test -z "$CXX"
4447		then
4448			CXX=$withval
4449		fi;;
4450	esac
4451else
4452
4453	with_cxx_main=no
4454	MAINCC='$(CC)'
4455
4456fi
4457
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4459$as_echo "$with_cxx_main" >&6; }
4460
4461preset_cxx="$CXX"
4462if test -z "$CXX"
4463then
4464        case "$CC" in
4465        gcc)    if test -n "$ac_tool_prefix"; then
4466  # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4467set dummy ${ac_tool_prefix}g++; ac_word=$2
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4469$as_echo_n "checking for $ac_word... " >&6; }
4470if ${ac_cv_path_CXX+:} false; then :
4471  $as_echo_n "(cached) " >&6
4472else
4473  case $CXX in
4474  [\\/]* | ?:[\\/]*)
4475  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4476  ;;
4477  *)
4478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in notfound
4480do
4481  IFS=$as_save_IFS
4482  test -z "$as_dir" && as_dir=.
4483    for ac_exec_ext in '' $ac_executable_extensions; do
4484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487    break 2
4488  fi
4489done
4490  done
4491IFS=$as_save_IFS
4492
4493  ;;
4494esac
4495fi
4496CXX=$ac_cv_path_CXX
4497if test -n "$CXX"; then
4498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4499$as_echo "$CXX" >&6; }
4500else
4501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502$as_echo "no" >&6; }
4503fi
4504
4505
4506fi
4507if test -z "$ac_cv_path_CXX"; then
4508  ac_pt_CXX=$CXX
4509  # Extract the first word of "g++", so it can be a program name with args.
4510set dummy g++; ac_word=$2
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512$as_echo_n "checking for $ac_word... " >&6; }
4513if ${ac_cv_path_ac_pt_CXX+:} false; then :
4514  $as_echo_n "(cached) " >&6
4515else
4516  case $ac_pt_CXX in
4517  [\\/]* | ?:[\\/]*)
4518  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4519  ;;
4520  *)
4521  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in notfound
4523do
4524  IFS=$as_save_IFS
4525  test -z "$as_dir" && as_dir=.
4526    for ac_exec_ext in '' $ac_executable_extensions; do
4527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530    break 2
4531  fi
4532done
4533  done
4534IFS=$as_save_IFS
4535
4536  ;;
4537esac
4538fi
4539ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4540if test -n "$ac_pt_CXX"; then
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4542$as_echo "$ac_pt_CXX" >&6; }
4543else
4544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
4546fi
4547
4548  if test "x$ac_pt_CXX" = x; then
4549    CXX="g++"
4550  else
4551    case $cross_compiling:$ac_tool_warned in
4552yes:)
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4555ac_tool_warned=yes ;;
4556esac
4557    CXX=$ac_pt_CXX
4558  fi
4559else
4560  CXX="$ac_cv_path_CXX"
4561fi
4562 ;;
4563        cc)     if test -n "$ac_tool_prefix"; then
4564  # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4565set dummy ${ac_tool_prefix}c++; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if ${ac_cv_path_CXX+:} false; then :
4569  $as_echo_n "(cached) " >&6
4570else
4571  case $CXX in
4572  [\\/]* | ?:[\\/]*)
4573  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4574  ;;
4575  *)
4576  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in notfound
4578do
4579  IFS=$as_save_IFS
4580  test -z "$as_dir" && as_dir=.
4581    for ac_exec_ext in '' $ac_executable_extensions; do
4582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585    break 2
4586  fi
4587done
4588  done
4589IFS=$as_save_IFS
4590
4591  ;;
4592esac
4593fi
4594CXX=$ac_cv_path_CXX
4595if test -n "$CXX"; then
4596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4597$as_echo "$CXX" >&6; }
4598else
4599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
4601fi
4602
4603
4604fi
4605if test -z "$ac_cv_path_CXX"; then
4606  ac_pt_CXX=$CXX
4607  # Extract the first word of "c++", so it can be a program name with args.
4608set dummy c++; ac_word=$2
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610$as_echo_n "checking for $ac_word... " >&6; }
4611if ${ac_cv_path_ac_pt_CXX+:} false; then :
4612  $as_echo_n "(cached) " >&6
4613else
4614  case $ac_pt_CXX in
4615  [\\/]* | ?:[\\/]*)
4616  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4617  ;;
4618  *)
4619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in notfound
4621do
4622  IFS=$as_save_IFS
4623  test -z "$as_dir" && as_dir=.
4624    for ac_exec_ext in '' $ac_executable_extensions; do
4625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628    break 2
4629  fi
4630done
4631  done
4632IFS=$as_save_IFS
4633
4634  ;;
4635esac
4636fi
4637ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4638if test -n "$ac_pt_CXX"; then
4639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4640$as_echo "$ac_pt_CXX" >&6; }
4641else
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643$as_echo "no" >&6; }
4644fi
4645
4646  if test "x$ac_pt_CXX" = x; then
4647    CXX="c++"
4648  else
4649    case $cross_compiling:$ac_tool_warned in
4650yes:)
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4653ac_tool_warned=yes ;;
4654esac
4655    CXX=$ac_pt_CXX
4656  fi
4657else
4658  CXX="$ac_cv_path_CXX"
4659fi
4660 ;;
4661        esac
4662	if test "$CXX" = "notfound"
4663	then
4664		CXX=""
4665	fi
4666fi
4667if test -z "$CXX"
4668then
4669	if test -n "$ac_tool_prefix"; then
4670  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4671  do
4672    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675$as_echo_n "checking for $ac_word... " >&6; }
4676if ${ac_cv_prog_CXX+:} false; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679  if test -n "$CXX"; then
4680  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4681else
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685  IFS=$as_save_IFS
4686  test -z "$as_dir" && as_dir=.
4687    for ac_exec_ext in '' $ac_executable_extensions; do
4688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691    break 2
4692  fi
4693done
4694  done
4695IFS=$as_save_IFS
4696
4697fi
4698fi
4699CXX=$ac_cv_prog_CXX
4700if test -n "$CXX"; then
4701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4702$as_echo "$CXX" >&6; }
4703else
4704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
4706fi
4707
4708
4709    test -n "$CXX" && break
4710  done
4711fi
4712if test -z "$CXX"; then
4713  ac_ct_CXX=$CXX
4714  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4715do
4716  # Extract the first word of "$ac_prog", so it can be a program name with args.
4717set dummy $ac_prog; ac_word=$2
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
4720if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4721  $as_echo_n "(cached) " >&6
4722else
4723  if test -n "$ac_ct_CXX"; then
4724  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729  IFS=$as_save_IFS
4730  test -z "$as_dir" && as_dir=.
4731    for ac_exec_ext in '' $ac_executable_extensions; do
4732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733    ac_cv_prog_ac_ct_CXX="$ac_prog"
4734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735    break 2
4736  fi
4737done
4738  done
4739IFS=$as_save_IFS
4740
4741fi
4742fi
4743ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4744if test -n "$ac_ct_CXX"; then
4745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4746$as_echo "$ac_ct_CXX" >&6; }
4747else
4748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749$as_echo "no" >&6; }
4750fi
4751
4752
4753  test -n "$ac_ct_CXX" && break
4754done
4755
4756  if test "x$ac_ct_CXX" = x; then
4757    CXX="notfound"
4758  else
4759    case $cross_compiling:$ac_tool_warned in
4760yes:)
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763ac_tool_warned=yes ;;
4764esac
4765    CXX=$ac_ct_CXX
4766  fi
4767fi
4768
4769	if test "$CXX" = "notfound"
4770	then
4771		CXX=""
4772	fi
4773fi
4774if test "$preset_cxx" != "$CXX"
4775then
4776        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4777
4778  By default, distutils will build C++ extension modules with \"$CXX\".
4779  If this is not intended, then set CXX on the configure command line.
4780  " >&5
4781$as_echo "$as_me: WARNING:
4782
4783  By default, distutils will build C++ extension modules with \"$CXX\".
4784  If this is not intended, then set CXX on the configure command line.
4785  " >&2;}
4786fi
4787
4788MULTIARCH=$($CC --print-multiarch 2>/dev/null)
4789
4790
4791
4792# checks for UNIX variants that set C preprocessor variables
4793
4794ac_ext=c
4795ac_cpp='$CPP $CPPFLAGS'
4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4800$as_echo_n "checking how to run the C preprocessor... " >&6; }
4801# On Suns, sometimes $CPP names a directory.
4802if test -n "$CPP" && test -d "$CPP"; then
4803  CPP=
4804fi
4805if test -z "$CPP"; then
4806  if ${ac_cv_prog_CPP+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809      # Double quotes because CPP needs to be expanded
4810    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4811    do
4812      ac_preproc_ok=false
4813for ac_c_preproc_warn_flag in '' yes
4814do
4815  # Use a header file that comes with gcc, so configuring glibc
4816  # with a fresh cross-compiler works.
4817  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818  # <limits.h> exists even on freestanding compilers.
4819  # On the NeXT, cc -E runs the code through the compiler's parser,
4820  # not just through cpp. "Syntax error" is here to catch this case.
4821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h.  */
4823#ifdef __STDC__
4824# include <limits.h>
4825#else
4826# include <assert.h>
4827#endif
4828		     Syntax error
4829_ACEOF
4830if ac_fn_c_try_cpp "$LINENO"; then :
4831
4832else
4833  # Broken: fails on valid input.
4834continue
4835fi
4836rm -f conftest.err conftest.i conftest.$ac_ext
4837
4838  # OK, works on sane cases.  Now check whether nonexistent headers
4839  # can be detected and how.
4840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841/* end confdefs.h.  */
4842#include <ac_nonexistent.h>
4843_ACEOF
4844if ac_fn_c_try_cpp "$LINENO"; then :
4845  # Broken: success on invalid input.
4846continue
4847else
4848  # Passes both tests.
4849ac_preproc_ok=:
4850break
4851fi
4852rm -f conftest.err conftest.i conftest.$ac_ext
4853
4854done
4855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4856rm -f conftest.i conftest.err conftest.$ac_ext
4857if $ac_preproc_ok; then :
4858  break
4859fi
4860
4861    done
4862    ac_cv_prog_CPP=$CPP
4863
4864fi
4865  CPP=$ac_cv_prog_CPP
4866else
4867  ac_cv_prog_CPP=$CPP
4868fi
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4870$as_echo "$CPP" >&6; }
4871ac_preproc_ok=false
4872for ac_c_preproc_warn_flag in '' yes
4873do
4874  # Use a header file that comes with gcc, so configuring glibc
4875  # with a fresh cross-compiler works.
4876  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4877  # <limits.h> exists even on freestanding compilers.
4878  # On the NeXT, cc -E runs the code through the compiler's parser,
4879  # not just through cpp. "Syntax error" is here to catch this case.
4880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h.  */
4882#ifdef __STDC__
4883# include <limits.h>
4884#else
4885# include <assert.h>
4886#endif
4887		     Syntax error
4888_ACEOF
4889if ac_fn_c_try_cpp "$LINENO"; then :
4890
4891else
4892  # Broken: fails on valid input.
4893continue
4894fi
4895rm -f conftest.err conftest.i conftest.$ac_ext
4896
4897  # OK, works on sane cases.  Now check whether nonexistent headers
4898  # can be detected and how.
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901#include <ac_nonexistent.h>
4902_ACEOF
4903if ac_fn_c_try_cpp "$LINENO"; then :
4904  # Broken: success on invalid input.
4905continue
4906else
4907  # Passes both tests.
4908ac_preproc_ok=:
4909break
4910fi
4911rm -f conftest.err conftest.i conftest.$ac_ext
4912
4913done
4914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4915rm -f conftest.i conftest.err conftest.$ac_ext
4916if $ac_preproc_ok; then :
4917
4918else
4919  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4921as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4922See \`config.log' for more details" "$LINENO" 5; }
4923fi
4924
4925ac_ext=c
4926ac_cpp='$CPP $CPPFLAGS'
4927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4933$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4934if ${ac_cv_path_GREP+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  if test -z "$GREP"; then
4938  ac_path_GREP_found=false
4939  # Loop through the user's path and test for each of PROGNAME-LIST
4940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4942do
4943  IFS=$as_save_IFS
4944  test -z "$as_dir" && as_dir=.
4945    for ac_prog in grep ggrep; do
4946    for ac_exec_ext in '' $ac_executable_extensions; do
4947      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4948      as_fn_executable_p "$ac_path_GREP" || continue
4949# Check for GNU ac_path_GREP and select it if it is found.
4950  # Check for GNU $ac_path_GREP
4951case `"$ac_path_GREP" --version 2>&1` in
4952*GNU*)
4953  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4954*)
4955  ac_count=0
4956  $as_echo_n 0123456789 >"conftest.in"
4957  while :
4958  do
4959    cat "conftest.in" "conftest.in" >"conftest.tmp"
4960    mv "conftest.tmp" "conftest.in"
4961    cp "conftest.in" "conftest.nl"
4962    $as_echo 'GREP' >> "conftest.nl"
4963    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965    as_fn_arith $ac_count + 1 && ac_count=$as_val
4966    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4967      # Best one so far, save it but keep looking for a better one
4968      ac_cv_path_GREP="$ac_path_GREP"
4969      ac_path_GREP_max=$ac_count
4970    fi
4971    # 10*(2^10) chars as input seems more than enough
4972    test $ac_count -gt 10 && break
4973  done
4974  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975esac
4976
4977      $ac_path_GREP_found && break 3
4978    done
4979  done
4980  done
4981IFS=$as_save_IFS
4982  if test -z "$ac_cv_path_GREP"; then
4983    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4984  fi
4985else
4986  ac_cv_path_GREP=$GREP
4987fi
4988
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4991$as_echo "$ac_cv_path_GREP" >&6; }
4992 GREP="$ac_cv_path_GREP"
4993
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4996$as_echo_n "checking for egrep... " >&6; }
4997if ${ac_cv_path_EGREP+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5001   then ac_cv_path_EGREP="$GREP -E"
5002   else
5003     if test -z "$EGREP"; then
5004  ac_path_EGREP_found=false
5005  # Loop through the user's path and test for each of PROGNAME-LIST
5006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5008do
5009  IFS=$as_save_IFS
5010  test -z "$as_dir" && as_dir=.
5011    for ac_prog in egrep; do
5012    for ac_exec_ext in '' $ac_executable_extensions; do
5013      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5014      as_fn_executable_p "$ac_path_EGREP" || continue
5015# Check for GNU ac_path_EGREP and select it if it is found.
5016  # Check for GNU $ac_path_EGREP
5017case `"$ac_path_EGREP" --version 2>&1` in
5018*GNU*)
5019  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5020*)
5021  ac_count=0
5022  $as_echo_n 0123456789 >"conftest.in"
5023  while :
5024  do
5025    cat "conftest.in" "conftest.in" >"conftest.tmp"
5026    mv "conftest.tmp" "conftest.in"
5027    cp "conftest.in" "conftest.nl"
5028    $as_echo 'EGREP' >> "conftest.nl"
5029    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031    as_fn_arith $ac_count + 1 && ac_count=$as_val
5032    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5033      # Best one so far, save it but keep looking for a better one
5034      ac_cv_path_EGREP="$ac_path_EGREP"
5035      ac_path_EGREP_max=$ac_count
5036    fi
5037    # 10*(2^10) chars as input seems more than enough
5038    test $ac_count -gt 10 && break
5039  done
5040  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041esac
5042
5043      $ac_path_EGREP_found && break 3
5044    done
5045  done
5046  done
5047IFS=$as_save_IFS
5048  if test -z "$ac_cv_path_EGREP"; then
5049    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5050  fi
5051else
5052  ac_cv_path_EGREP=$EGREP
5053fi
5054
5055   fi
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5058$as_echo "$ac_cv_path_EGREP" >&6; }
5059 EGREP="$ac_cv_path_EGREP"
5060
5061
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5063$as_echo_n "checking for ANSI C header files... " >&6; }
5064if ${ac_cv_header_stdc+:} false; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h.  */
5069#include <stdlib.h>
5070#include <stdarg.h>
5071#include <string.h>
5072#include <float.h>
5073
5074int
5075main ()
5076{
5077
5078  ;
5079  return 0;
5080}
5081_ACEOF
5082if ac_fn_c_try_compile "$LINENO"; then :
5083  ac_cv_header_stdc=yes
5084else
5085  ac_cv_header_stdc=no
5086fi
5087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088
5089if test $ac_cv_header_stdc = yes; then
5090  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093#include <string.h>
5094
5095_ACEOF
5096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5097  $EGREP "memchr" >/dev/null 2>&1; then :
5098
5099else
5100  ac_cv_header_stdc=no
5101fi
5102rm -f conftest*
5103
5104fi
5105
5106if test $ac_cv_header_stdc = yes; then
5107  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109/* end confdefs.h.  */
5110#include <stdlib.h>
5111
5112_ACEOF
5113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5114  $EGREP "free" >/dev/null 2>&1; then :
5115
5116else
5117  ac_cv_header_stdc=no
5118fi
5119rm -f conftest*
5120
5121fi
5122
5123if test $ac_cv_header_stdc = yes; then
5124  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5125  if test "$cross_compiling" = yes; then :
5126  :
5127else
5128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130#include <ctype.h>
5131#include <stdlib.h>
5132#if ((' ' & 0x0FF) == 0x020)
5133# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5134# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5135#else
5136# define ISLOWER(c) \
5137		   (('a' <= (c) && (c) <= 'i') \
5138		     || ('j' <= (c) && (c) <= 'r') \
5139		     || ('s' <= (c) && (c) <= 'z'))
5140# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5141#endif
5142
5143#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5144int
5145main ()
5146{
5147  int i;
5148  for (i = 0; i < 256; i++)
5149    if (XOR (islower (i), ISLOWER (i))
5150	|| toupper (i) != TOUPPER (i))
5151      return 2;
5152  return 0;
5153}
5154_ACEOF
5155if ac_fn_c_try_run "$LINENO"; then :
5156
5157else
5158  ac_cv_header_stdc=no
5159fi
5160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5161  conftest.$ac_objext conftest.beam conftest.$ac_ext
5162fi
5163
5164fi
5165fi
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5167$as_echo "$ac_cv_header_stdc" >&6; }
5168if test $ac_cv_header_stdc = yes; then
5169
5170$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5171
5172fi
5173
5174# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5175for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5176		  inttypes.h stdint.h unistd.h
5177do :
5178  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5179ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5180"
5181if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5182  cat >>confdefs.h <<_ACEOF
5183#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184_ACEOF
5185
5186fi
5187
5188done
5189
5190
5191
5192  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5193if test "x$ac_cv_header_minix_config_h" = xyes; then :
5194  MINIX=yes
5195else
5196  MINIX=
5197fi
5198
5199
5200  if test "$MINIX" = yes; then
5201
5202$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5203
5204
5205$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5206
5207
5208$as_echo "#define _MINIX 1" >>confdefs.h
5209
5210  fi
5211
5212
5213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5214$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5215if ${ac_cv_safe_to_define___extensions__+:} false; then :
5216  $as_echo_n "(cached) " >&6
5217else
5218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h.  */
5220
5221#         define __EXTENSIONS__ 1
5222          $ac_includes_default
5223int
5224main ()
5225{
5226
5227  ;
5228  return 0;
5229}
5230_ACEOF
5231if ac_fn_c_try_compile "$LINENO"; then :
5232  ac_cv_safe_to_define___extensions__=yes
5233else
5234  ac_cv_safe_to_define___extensions__=no
5235fi
5236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237fi
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5239$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5240  test $ac_cv_safe_to_define___extensions__ = yes &&
5241    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5242
5243  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5244
5245  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5246
5247  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5248
5249  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5250
5251
5252
5253# Check for unsupported systems
5254case $ac_sys_system/$ac_sys_release in
5255atheos*|Linux*/1*)
5256   echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5257   echo See README for details.
5258   exit 1;;
5259esac
5260
5261
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5263$as_echo_n "checking for --with-suffix... " >&6; }
5264
5265# Check whether --with-suffix was given.
5266if test "${with_suffix+set}" = set; then :
5267  withval=$with_suffix;
5268	case $withval in
5269	no)	EXEEXT=;;
5270	yes)	EXEEXT=.exe;;
5271	*)	EXEEXT=$withval;;
5272	esac
5273fi
5274
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5276$as_echo "$EXEEXT" >&6; }
5277
5278# Test whether we're running on a non-case-sensitive system, in which
5279# case we give a warning if no ext is given
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5282$as_echo_n "checking for case-insensitive build directory... " >&6; }
5283if test ! -d CaseSensitiveTestDir; then
5284mkdir CaseSensitiveTestDir
5285fi
5286
5287if test -d casesensitivetestdir
5288then
5289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5290$as_echo "yes" >&6; }
5291    BUILDEXEEXT=.exe
5292else
5293	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294$as_echo "no" >&6; }
5295	BUILDEXEEXT=$EXEEXT
5296fi
5297rmdir CaseSensitiveTestDir
5298
5299case $MACHDEP in
5300bsdos*)
5301    case $CC in
5302    gcc) CC="$CC -D_HAVE_BSDI";;
5303    esac;;
5304esac
5305
5306case $ac_sys_system in
5307hp*|HP*)
5308    case $CC in
5309    cc|*/cc) CC="$CC -Ae";;
5310    esac;;
5311SunOS*)
5312    # Some functions have a prototype only with that define, e.g. confstr
5313
5314$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5315
5316    ;;
5317esac
5318
5319
5320
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5322$as_echo_n "checking LIBRARY... " >&6; }
5323if test -z "$LIBRARY"
5324then
5325	LIBRARY='libpython$(VERSION).a'
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5328$as_echo "$LIBRARY" >&6; }
5329
5330# LDLIBRARY is the name of the library to link against (as opposed to the
5331# name of the library into which to insert object files). BLDLIBRARY is also
5332# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5333# is blank as the main program is not linked directly against LDLIBRARY.
5334# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5335# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5336# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5337# DLLLIBRARY is the shared (i.e., DLL) library.
5338#
5339# RUNSHARED is used to run shared python without installed libraries
5340#
5341# INSTSONAME is the name of the shared library that will be use to install
5342# on the system - some systems like version suffix, others don't
5343
5344
5345
5346
5347
5348
5349LDLIBRARY="$LIBRARY"
5350BLDLIBRARY='$(LDLIBRARY)'
5351INSTSONAME='$(LDLIBRARY)'
5352DLLLIBRARY=''
5353LDLIBRARYDIR=''
5354RUNSHARED=''
5355
5356# LINKCC is the command that links the python executable -- default is $(CC).
5357# If CXX is set, and if it is needed to link a main function that was
5358# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5359# python might then depend on the C++ runtime
5360# This is altered for AIX in order to build the export list before
5361# linking.
5362
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5364$as_echo_n "checking LINKCC... " >&6; }
5365if test -z "$LINKCC"
5366then
5367	LINKCC='$(PURIFY) $(MAINCC)'
5368	case $ac_sys_system in
5369	AIX*)
5370	   exp_extra="\"\""
5371	   if test $ac_sys_release -ge 5 -o \
5372		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5373	       exp_extra="."
5374	   fi
5375	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
5376	QNX*)
5377	   # qcc must be used because the other compilers do not
5378	   # support -N.
5379	   LINKCC=qcc;;
5380	esac
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5383$as_echo "$LINKCC" >&6; }
5384
5385# GNULD is set to "yes" if the GNU linker is used.  If this goes wrong
5386# make sure we default having it set to "no": this is used by
5387# distutils.unixccompiler to know if it should add --enable-new-dtags
5388# to linker command lines, and failing to detect GNU ld simply results
5389# in the same bahaviour as before.
5390
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5392$as_echo_n "checking for GNU ld... " >&6; }
5393ac_prog=ld
5394if test "$GCC" = yes; then
5395       ac_prog=`$CC -print-prog-name=ld`
5396fi
5397case `"$ac_prog" -V 2>&1 < /dev/null` in
5398      *GNU*)
5399          GNULD=yes;;
5400      *)
5401          GNULD=no;;
5402esac
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5404$as_echo "$GNULD" >&6; }
5405
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5407$as_echo_n "checking for --enable-shared... " >&6; }
5408# Check whether --enable-shared was given.
5409if test "${enable_shared+set}" = set; then :
5410  enableval=$enable_shared;
5411fi
5412
5413
5414if test -z "$enable_shared"
5415then
5416  case $ac_sys_system in
5417  CYGWIN* | atheos*)
5418    enable_shared="yes";;
5419  *)
5420    enable_shared="no";;
5421  esac
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5424$as_echo "$enable_shared" >&6; }
5425
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5427$as_echo_n "checking for --enable-profiling... " >&6; }
5428# Check whether --enable-profiling was given.
5429if test "${enable_profiling+set}" = set; then :
5430  enableval=$enable_profiling;
5431fi
5432
5433if test "x$enable_profiling" = xyes; then
5434  ac_save_cc="$CC"
5435  CC="$CC -pg"
5436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h.  */
5438int main() { return 0; }
5439_ACEOF
5440if ac_fn_c_try_link "$LINENO"; then :
5441
5442else
5443  enable_profiling=no
5444fi
5445rm -f core conftest.err conftest.$ac_objext \
5446    conftest$ac_exeext conftest.$ac_ext
5447  CC="$ac_save_cc"
5448else
5449  enable_profiling=no
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5452$as_echo "$enable_profiling" >&6; }
5453
5454if test "x$enable_profiling" = xyes; then
5455  BASECFLAGS="-pg $BASECFLAGS"
5456  LDFLAGS="-pg $LDFLAGS"
5457fi
5458
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5460$as_echo_n "checking LDLIBRARY... " >&6; }
5461
5462# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5463# library that we build, but we do not want to link against it (we
5464# will find it with a -framework option). For this reason there is an
5465# extra variable BLDLIBRARY against which Python and the extension
5466# modules are linked, BLDLIBRARY. This is normally the same as
5467# LDLIBRARY, but empty for MacOSX framework builds.
5468if test "$enable_framework"
5469then
5470  LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
5471  RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
5472  BLDLIBRARY=''
5473else
5474  BLDLIBRARY='$(LDLIBRARY)'
5475fi
5476
5477# Other platforms follow
5478if test $enable_shared = "yes"; then
5479
5480$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
5481
5482  case $ac_sys_system in
5483    BeOS*)
5484          LDLIBRARY='libpython$(VERSION).so'
5485          ;;
5486    CYGWIN*)
5487          LDLIBRARY='libpython$(VERSION).dll.a'
5488          DLLLIBRARY='libpython$(VERSION).dll'
5489          ;;
5490    SunOS*)
5491	  LDLIBRARY='libpython$(VERSION).so'
5492	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
5493	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5494	  INSTSONAME="$LDLIBRARY".$SOVERSION
5495          ;;
5496    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
5497	  LDLIBRARY='libpython$(VERSION).so'
5498	  BLDLIBRARY='-L. -lpython$(VERSION)'
5499	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5500	  case $ac_sys_system in
5501	      FreeBSD*)
5502		SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
5503		;;
5504	  esac
5505	  INSTSONAME="$LDLIBRARY".$SOVERSION
5506	  ;;
5507    hp*|HP*)
5508	  case `uname -m` in
5509		ia64)
5510			LDLIBRARY='libpython$(VERSION).so'
5511			;;
5512		*)
5513			LDLIBRARY='libpython$(VERSION).sl'
5514			;;
5515	  esac
5516	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
5517	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
5518	  ;;
5519    OSF*)
5520	  LDLIBRARY='libpython$(VERSION).so'
5521	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
5522	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5523	  ;;
5524    atheos*)
5525	  LDLIBRARY='libpython$(VERSION).so'
5526	  BLDLIBRARY='-L. -lpython$(VERSION)'
5527	  RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
5528	  ;;
5529    Darwin*)
5530    	LDLIBRARY='libpython$(VERSION).dylib'
5531	BLDLIBRARY='-L. -lpython$(VERSION)'
5532	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
5533	;;
5534    AIX*)
5535	LDLIBRARY='libpython$(VERSION).so'
5536	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
5537	;;
5538
5539  esac
5540else # shared is disabled
5541  case $ac_sys_system in
5542    CYGWIN*)
5543          BLDLIBRARY='$(LIBRARY)'
5544          LDLIBRARY='libpython$(VERSION).dll.a'
5545          ;;
5546  esac
5547fi
5548
5549if test "$cross_compiling" = yes; then
5550	RUNSHARED=
5551fi
5552
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5554$as_echo "$LDLIBRARY" >&6; }
5555
5556if test -n "$ac_tool_prefix"; then
5557  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5558set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560$as_echo_n "checking for $ac_word... " >&6; }
5561if ${ac_cv_prog_RANLIB+:} false; then :
5562  $as_echo_n "(cached) " >&6
5563else
5564  if test -n "$RANLIB"; then
5565  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570  IFS=$as_save_IFS
5571  test -z "$as_dir" && as_dir=.
5572    for ac_exec_ext in '' $ac_executable_extensions; do
5573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576    break 2
5577  fi
5578done
5579  done
5580IFS=$as_save_IFS
5581
5582fi
5583fi
5584RANLIB=$ac_cv_prog_RANLIB
5585if test -n "$RANLIB"; then
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5587$as_echo "$RANLIB" >&6; }
5588else
5589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590$as_echo "no" >&6; }
5591fi
5592
5593
5594fi
5595if test -z "$ac_cv_prog_RANLIB"; then
5596  ac_ct_RANLIB=$RANLIB
5597  # Extract the first word of "ranlib", so it can be a program name with args.
5598set dummy ranlib; ac_word=$2
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600$as_echo_n "checking for $ac_word... " >&6; }
5601if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  if test -n "$ac_ct_RANLIB"; then
5605  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610  IFS=$as_save_IFS
5611  test -z "$as_dir" && as_dir=.
5612    for ac_exec_ext in '' $ac_executable_extensions; do
5613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614    ac_cv_prog_ac_ct_RANLIB="ranlib"
5615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616    break 2
5617  fi
5618done
5619  done
5620IFS=$as_save_IFS
5621
5622fi
5623fi
5624ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5625if test -n "$ac_ct_RANLIB"; then
5626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5627$as_echo "$ac_ct_RANLIB" >&6; }
5628else
5629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630$as_echo "no" >&6; }
5631fi
5632
5633  if test "x$ac_ct_RANLIB" = x; then
5634    RANLIB=":"
5635  else
5636    case $cross_compiling:$ac_tool_warned in
5637yes:)
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640ac_tool_warned=yes ;;
5641esac
5642    RANLIB=$ac_ct_RANLIB
5643  fi
5644else
5645  RANLIB="$ac_cv_prog_RANLIB"
5646fi
5647
5648
5649if test -n "$ac_tool_prefix"; then
5650  for ac_prog in ar aal
5651  do
5652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655$as_echo_n "checking for $ac_word... " >&6; }
5656if ${ac_cv_prog_AR+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659  if test -n "$AR"; then
5660  ac_cv_prog_AR="$AR" # Let the user override the test.
5661else
5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH
5664do
5665  IFS=$as_save_IFS
5666  test -z "$as_dir" && as_dir=.
5667    for ac_exec_ext in '' $ac_executable_extensions; do
5668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671    break 2
5672  fi
5673done
5674  done
5675IFS=$as_save_IFS
5676
5677fi
5678fi
5679AR=$ac_cv_prog_AR
5680if test -n "$AR"; then
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5682$as_echo "$AR" >&6; }
5683else
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685$as_echo "no" >&6; }
5686fi
5687
5688
5689    test -n "$AR" && break
5690  done
5691fi
5692if test -z "$AR"; then
5693  ac_ct_AR=$AR
5694  for ac_prog in ar aal
5695do
5696  # Extract the first word of "$ac_prog", so it can be a program name with args.
5697set dummy $ac_prog; ac_word=$2
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699$as_echo_n "checking for $ac_word... " >&6; }
5700if ${ac_cv_prog_ac_ct_AR+:} false; then :
5701  $as_echo_n "(cached) " >&6
5702else
5703  if test -n "$ac_ct_AR"; then
5704  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709  IFS=$as_save_IFS
5710  test -z "$as_dir" && as_dir=.
5711    for ac_exec_ext in '' $ac_executable_extensions; do
5712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713    ac_cv_prog_ac_ct_AR="$ac_prog"
5714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715    break 2
5716  fi
5717done
5718  done
5719IFS=$as_save_IFS
5720
5721fi
5722fi
5723ac_ct_AR=$ac_cv_prog_ac_ct_AR
5724if test -n "$ac_ct_AR"; then
5725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5726$as_echo "$ac_ct_AR" >&6; }
5727else
5728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }
5730fi
5731
5732
5733  test -n "$ac_ct_AR" && break
5734done
5735
5736  if test "x$ac_ct_AR" = x; then
5737    AR="ar"
5738  else
5739    case $cross_compiling:$ac_tool_warned in
5740yes:)
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743ac_tool_warned=yes ;;
5744esac
5745    AR=$ac_ct_AR
5746  fi
5747fi
5748
5749
5750# tweak ARFLAGS only if the user didn't set it on the command line
5751
5752if test -z "$ARFLAGS"
5753then
5754        ARFLAGS="rc"
5755fi
5756
5757
5758
5759
5760
5761if test -e $srcdir/.git
5762then
5763# Extract the first word of "git", so it can be a program name with args.
5764set dummy git; ac_word=$2
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766$as_echo_n "checking for $ac_word... " >&6; }
5767if ${ac_cv_prog_HAS_GIT+:} false; then :
5768  $as_echo_n "(cached) " >&6
5769else
5770  if test -n "$HAS_GIT"; then
5771  ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776  IFS=$as_save_IFS
5777  test -z "$as_dir" && as_dir=.
5778    for ac_exec_ext in '' $ac_executable_extensions; do
5779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780    ac_cv_prog_HAS_GIT="found"
5781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782    break 2
5783  fi
5784done
5785  done
5786IFS=$as_save_IFS
5787
5788  test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
5789fi
5790fi
5791HAS_GIT=$ac_cv_prog_HAS_GIT
5792if test -n "$HAS_GIT"; then
5793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
5794$as_echo "$HAS_GIT" >&6; }
5795else
5796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797$as_echo "no" >&6; }
5798fi
5799
5800
5801else
5802HAS_GIT=no-repository
5803fi
5804if test $HAS_GIT = found
5805then
5806    GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
5807    GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
5808    GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
5809else
5810    GITVERSION=""
5811    GITTAG=""
5812    GITBRANCH=""
5813fi
5814
5815case $MACHDEP in
5816bsdos*|hp*|HP*)
5817	# install -d does not work on BSDI or HP-UX
5818	if test -z "$INSTALL"
5819	then
5820		INSTALL="${srcdir}/install-sh -c"
5821	fi
5822esac
5823# Find a good install program.  We prefer a C program (faster),
5824# so one script is as good as another.  But avoid the broken or
5825# incompatible versions:
5826# SysV /etc/install, /usr/sbin/install
5827# SunOS /usr/etc/install
5828# IRIX /sbin/install
5829# AIX /bin/install
5830# AmigaOS /C/install, which installs bootblocks on floppy discs
5831# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5832# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5833# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5834# OS/2's system install, which has a completely different semantic
5835# ./install, which can be erroneously created by make from ./install.sh.
5836# Reject install programs that cannot install multiple files.
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5838$as_echo_n "checking for a BSD-compatible install... " >&6; }
5839if test -z "$INSTALL"; then
5840if ${ac_cv_path_install+:} false; then :
5841  $as_echo_n "(cached) " >&6
5842else
5843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846  IFS=$as_save_IFS
5847  test -z "$as_dir" && as_dir=.
5848    # Account for people who put trailing slashes in PATH elements.
5849case $as_dir/ in #((
5850  ./ | .// | /[cC]/* | \
5851  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5852  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5853  /usr/ucb/* ) ;;
5854  *)
5855    # OSF1 and SCO ODT 3.0 have their own names for install.
5856    # Don't use installbsd from OSF since it installs stuff as root
5857    # by default.
5858    for ac_prog in ginstall scoinst install; do
5859      for ac_exec_ext in '' $ac_executable_extensions; do
5860	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5861	  if test $ac_prog = install &&
5862	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5863	    # AIX install.  It has an incompatible calling convention.
5864	    :
5865	  elif test $ac_prog = install &&
5866	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5867	    # program-specific install script used by HP pwplus--don't use.
5868	    :
5869	  else
5870	    rm -rf conftest.one conftest.two conftest.dir
5871	    echo one > conftest.one
5872	    echo two > conftest.two
5873	    mkdir conftest.dir
5874	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5875	      test -s conftest.one && test -s conftest.two &&
5876	      test -s conftest.dir/conftest.one &&
5877	      test -s conftest.dir/conftest.two
5878	    then
5879	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5880	      break 3
5881	    fi
5882	  fi
5883	fi
5884      done
5885    done
5886    ;;
5887esac
5888
5889  done
5890IFS=$as_save_IFS
5891
5892rm -rf conftest.one conftest.two conftest.dir
5893
5894fi
5895  if test "${ac_cv_path_install+set}" = set; then
5896    INSTALL=$ac_cv_path_install
5897  else
5898    # As a last resort, use the slow shell script.  Don't cache a
5899    # value for INSTALL within a source directory, because that will
5900    # break other packages using the cache if that directory is
5901    # removed, or if the value is a relative name.
5902    INSTALL=$ac_install_sh
5903  fi
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5906$as_echo "$INSTALL" >&6; }
5907
5908# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5909# It thinks the first close brace ends the variable substitution.
5910test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5911
5912test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5913
5914test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5915
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5917$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5918if test -z "$MKDIR_P"; then
5919  if ${ac_cv_path_mkdir+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5924do
5925  IFS=$as_save_IFS
5926  test -z "$as_dir" && as_dir=.
5927    for ac_prog in mkdir gmkdir; do
5928	 for ac_exec_ext in '' $ac_executable_extensions; do
5929	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5930	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5931	     'mkdir (GNU coreutils) '* | \
5932	     'mkdir (coreutils) '* | \
5933	     'mkdir (fileutils) '4.1*)
5934	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5935	       break 3;;
5936	   esac
5937	 done
5938       done
5939  done
5940IFS=$as_save_IFS
5941
5942fi
5943
5944  test -d ./--version && rmdir ./--version
5945  if test "${ac_cv_path_mkdir+set}" = set; then
5946    MKDIR_P="$ac_cv_path_mkdir -p"
5947  else
5948    # As a last resort, use the slow shell script.  Don't cache a
5949    # value for MKDIR_P within a source directory, because that will
5950    # break other packages using the cache if that directory is
5951    # removed, or if the value is a relative name.
5952    MKDIR_P="$ac_install_sh -d"
5953  fi
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5956$as_echo "$MKDIR_P" >&6; }
5957
5958
5959# Not every filesystem supports hard links
5960
5961if test -z "$LN" ; then
5962	case $ac_sys_system in
5963		BeOS*) LN="ln -s";;
5964		CYGWIN*) LN="ln -s";;
5965		atheos*) LN="ln -s";;
5966		*) LN=ln;;
5967	esac
5968fi
5969
5970# Check for --with-pydebug
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
5972$as_echo_n "checking for --with-pydebug... " >&6; }
5973
5974# Check whether --with-pydebug was given.
5975if test "${with_pydebug+set}" = set; then :
5976  withval=$with_pydebug;
5977if test "$withval" != no
5978then
5979
5980$as_echo "#define Py_DEBUG 1" >>confdefs.h
5981
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5983$as_echo "yes" >&6; };
5984  Py_DEBUG='true'
5985else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986$as_echo "no" >&6; }; Py_DEBUG='false'
5987fi
5988else
5989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990$as_echo "no" >&6; }
5991fi
5992
5993
5994# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5995# merged with this chunk of code?
5996
5997# Optimizer/debugger flags
5998# ------------------------
5999# (The following bit of code is complicated enough - please keep things
6000# indented properly.  Just pretend you're editing Python code. ;-)
6001
6002# There are two parallel sets of case statements below, one that checks to
6003# see if OPT was set and one that does BASECFLAGS setting based upon
6004# compiler and platform.  BASECFLAGS tweaks need to be made even if the
6005# user set OPT.
6006
6007# tweak OPT based on compiler and platform, only if the user didn't set
6008# it on the command line
6009
6010if test "${OPT-unset}" = "unset"
6011then
6012    case $GCC in
6013    yes)
6014        if test "$CC" != 'g++' ; then
6015	    STRICT_PROTO="-Wstrict-prototypes"
6016	fi
6017        # For gcc 4.x we need to use -fwrapv so lets check if its supported
6018        if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6019           WRAP="-fwrapv"
6020        fi
6021
6022        # Clang also needs -fwrapv
6023        case $CC in
6024            *clang*) WRAP="-fwrapv"
6025            ;;
6026        esac
6027
6028	case $ac_cv_prog_cc_g in
6029	yes)
6030	    if test "$Py_DEBUG" = 'true' ; then
6031		# Optimization messes up debuggers, so turn it off for
6032		# debug builds.
6033		OPT="-g -O0 -Wall $STRICT_PROTO"
6034	    else
6035		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
6036	    fi
6037	    ;;
6038	*)
6039	    OPT="-O3 -Wall $STRICT_PROTO"
6040	    ;;
6041	esac
6042	case $ac_sys_system in
6043	    SCO_SV*) OPT="$OPT -m486 -DSCO5"
6044	    ;;
6045        esac
6046	;;
6047
6048    *)
6049	OPT="-O"
6050	;;
6051    esac
6052fi
6053
6054
6055
6056# The -arch flags for universal builds on OSX
6057UNIVERSAL_ARCH_FLAGS=
6058
6059
6060# tweak BASECFLAGS based on compiler and platform
6061case $GCC in
6062yes)
6063    # Python violates C99 rules, by casting between incompatible
6064    # pointer types. GCC may generate bad code as a result of that,
6065    # so use -fno-strict-aliasing if supported.
6066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
6067$as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
6068     ac_save_cc="$CC"
6069     CC="$CC -fno-strict-aliasing"
6070     if ${ac_cv_no_strict_aliasing_ok+:} false; then :
6071  $as_echo_n "(cached) " >&6
6072else
6073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h.  */
6075
6076int
6077main ()
6078{
6079
6080  ;
6081  return 0;
6082}
6083_ACEOF
6084if ac_fn_c_try_compile "$LINENO"; then :
6085  ac_cv_no_strict_aliasing_ok=yes
6086else
6087  ac_cv_no_strict_aliasing_ok=no
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090fi
6091
6092     CC="$ac_save_cc"
6093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
6094$as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
6095    if test $ac_cv_no_strict_aliasing_ok = yes
6096    then
6097      BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
6098    fi
6099
6100    # if using gcc on alpha, use -mieee to get (near) full IEEE 754
6101    # support.  Without this, treatment of subnormals doesn't follow
6102    # the standard.
6103    case $host in
6104         alpha*)
6105                BASECFLAGS="$BASECFLAGS -mieee"
6106                ;;
6107    esac
6108
6109    case $ac_sys_system in
6110	SCO_SV*)
6111	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
6112	    ;;
6113    # is there any other compiler on Darwin besides gcc?
6114    Darwin*)
6115        # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
6116        # used to be here, but non-Apple gcc doesn't accept them.
6117        if test "${CC}" = gcc
6118        then
6119            { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
6120$as_echo_n "checking which compiler should be used... " >&6; }
6121            case "${UNIVERSALSDK}" in
6122            */MacOSX10.4u.sdk)
6123                # Build using 10.4 SDK, force usage of gcc when the
6124                # compiler is gcc, otherwise the user will get very
6125                # confusing error messages when building on OSX 10.6
6126                CC=gcc-4.0
6127                CPP=cpp-4.0
6128                ;;
6129            esac
6130            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6131$as_echo "$CC" >&6; }
6132        fi
6133
6134        if test "${enable_universalsdk}"
6135        then
6136            case "$UNIVERSAL_ARCHS" in
6137            32-bit)
6138               UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
6139               LIPO_32BIT_FLAGS=""
6140               ARCH_RUN_32BIT=""
6141               ;;
6142            64-bit)
6143               UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
6144               LIPO_32BIT_FLAGS=""
6145               ARCH_RUN_32BIT=""
6146               ;;
6147            all)
6148               UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
6149               LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6150               ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6151               ;;
6152            intel)
6153               UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
6154               LIPO_32BIT_FLAGS="-extract i386"
6155               ARCH_RUN_32BIT="/usr/bin/arch -i386"
6156               ;;
6157            intel-32)
6158               UNIVERSAL_ARCH_FLAGS="-arch i386"
6159               LIPO_32BIT_FLAGS=""
6160               ARCH_RUN_32BIT=""
6161               ;;
6162            intel-64)
6163               UNIVERSAL_ARCH_FLAGS="-arch x86_64"
6164               LIPO_32BIT_FLAGS=""
6165               ARCH_RUN_32BIT=""
6166               ;;
6167            3-way)
6168               UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
6169               LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6170               ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6171               ;;
6172            *)
6173               as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
6174               ;;
6175            esac
6176
6177            if test "${UNIVERSALSDK}" != "/"
6178            then
6179                CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
6180                LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
6181                CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
6182            else
6183                CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
6184                LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
6185            fi
6186        fi
6187
6188        # Calculate an appropriate deployment target for this build:
6189        # The deployment target value is used explicitly to enable certain
6190        # features are enabled (such as builtin libedit support for readline)
6191        # through the use of Apple's Availability Macros and is used as a
6192        # component of the string returned by distutils.get_platform().
6193        #
6194        # Use the value from:
6195        # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
6196        # 2. the operating system version of the build machine if >= 10.6
6197        # 3. If running on OS X 10.3 through 10.5, use the legacy tests
6198        #       below to pick either 10.3, 10.4, or 10.5 as the target.
6199        # 4. If we are running on OS X 10.2 or earlier, good luck!
6200
6201        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
6202$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
6203        cur_target_major=`sw_vers -productVersion | \
6204                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
6205        cur_target_minor=`sw_vers -productVersion | \
6206                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
6207        cur_target="${cur_target_major}.${cur_target_minor}"
6208        if test ${cur_target_major} -eq 10 && \
6209           test ${cur_target_minor} -ge 3 && \
6210           test ${cur_target_minor} -le 5
6211        then
6212            # OS X 10.3 through 10.5
6213            cur_target=10.3
6214            if test ${enable_universalsdk}
6215            then
6216                case "$UNIVERSAL_ARCHS" in
6217                all|3-way|intel|64-bit)
6218                    # These configurations were first supported in 10.5
6219                    cur_target='10.5'
6220                    ;;
6221                esac
6222            else
6223                if test `/usr/bin/arch` = "i386"
6224                then
6225                    # 10.4 was the first release to support Intel archs
6226                    cur_target="10.4"
6227                fi
6228            fi
6229        fi
6230        CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
6231
6232        # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
6233        # environment with a value that is the same as what we'll use
6234        # in the Makefile to ensure that we'll get the same compiler
6235        # environment during configure and build time.
6236        MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
6237        export MACOSX_DEPLOYMENT_TARGET
6238        EXPORT_MACOSX_DEPLOYMENT_TARGET=''
6239        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
6240$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
6241
6242        # end of Darwin* tests
6243        ;;
6244	OSF*)
6245	    BASECFLAGS="$BASECFLAGS -mieee"
6246	    ;;
6247    esac
6248    ;;
6249
6250*)
6251    case $ac_sys_system in
6252    OpenUNIX*|UnixWare*)
6253	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
6254	;;
6255    OSF*)
6256	BASECFLAGS="$BASECFLAGS -ieee -std"
6257    	;;
6258    SCO_SV*)
6259	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
6260	;;
6261    esac
6262    ;;
6263esac
6264
6265# ICC needs -fp-model strict or floats behave badly
6266case "$CC" in
6267*icc*)
6268    BASECFLAGS="$BASECFLAGS -fp-model strict"
6269    ;;
6270esac
6271
6272if test "$Py_DEBUG" = 'true'; then
6273  :
6274else
6275  OPT="-DNDEBUG $OPT"
6276fi
6277
6278if test "$ac_arch_flags"
6279then
6280	BASECFLAGS="$BASECFLAGS $ac_arch_flags"
6281fi
6282
6283# disable check for icc since it seems to pass, but generates a warning
6284if test "$CC" = icc
6285then
6286  ac_cv_opt_olimit_ok=no
6287fi
6288
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
6290$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
6291if ${ac_cv_opt_olimit_ok+:} false; then :
6292  $as_echo_n "(cached) " >&6
6293else
6294  ac_save_cc="$CC"
6295CC="$CC -OPT:Olimit=0"
6296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h.  */
6298
6299int
6300main ()
6301{
6302
6303  ;
6304  return 0;
6305}
6306_ACEOF
6307if ac_fn_c_try_compile "$LINENO"; then :
6308  ac_cv_opt_olimit_ok=yes
6309else
6310  ac_cv_opt_olimit_ok=no
6311
6312fi
6313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314CC="$ac_save_cc"
6315fi
6316
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
6318$as_echo "$ac_cv_opt_olimit_ok" >&6; }
6319if test $ac_cv_opt_olimit_ok = yes; then
6320    case $ac_sys_system in
6321	# XXX is this branch needed? On MacOSX 10.2.2 the result of the
6322	# olimit_ok test is "no".  Is it "yes" in some other Darwin-esque
6323	# environment?
6324        Darwin*)
6325	    ;;
6326        # XXX thankfully this useless troublemaker of a flag has been
6327        # eradicated in the 3.x line.  For now, make sure it isn't picked
6328        # up by any of our other platforms that use CC.
6329        AIX*|SunOS*|HP-UX*|IRIX*)
6330            ;;
6331        *)
6332	    BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
6333	    ;;
6334    esac
6335else
6336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
6337$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
6338  if ${ac_cv_olimit_ok+:} false; then :
6339  $as_echo_n "(cached) " >&6
6340else
6341  ac_save_cc="$CC"
6342  CC="$CC -Olimit 1500"
6343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344/* end confdefs.h.  */
6345
6346int
6347main ()
6348{
6349
6350  ;
6351  return 0;
6352}
6353_ACEOF
6354if ac_fn_c_try_compile "$LINENO"; then :
6355  ac_cv_olimit_ok=yes
6356else
6357  ac_cv_olimit_ok=no
6358
6359fi
6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361  CC="$ac_save_cc"
6362fi
6363
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
6365$as_echo "$ac_cv_olimit_ok" >&6; }
6366  if test $ac_cv_olimit_ok = yes; then
6367    case $ac_sys_system in
6368        # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive.
6369        HP-UX*)
6370            ;;
6371        *)
6372            BASECFLAGS="$BASECFLAGS -Olimit 1500"
6373            ;;
6374    esac
6375  fi
6376fi
6377
6378# Check whether GCC supports PyArg_ParseTuple format
6379if test "$GCC" = "yes"
6380then
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
6382$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
6383  save_CFLAGS=$CFLAGS
6384  CFLAGS="$CFLAGS -Werror -Wformat"
6385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387
6388    void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
6389int
6390main ()
6391{
6392
6393  ;
6394  return 0;
6395}
6396
6397_ACEOF
6398if ac_fn_c_try_compile "$LINENO"; then :
6399
6400
6401$as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h
6402
6403    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6404$as_echo "yes" >&6; }
6405
6406else
6407
6408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
6410
6411fi
6412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413  CFLAGS=$save_CFLAGS
6414fi
6415
6416
6417# Enable optimization flags
6418
6419
6420Py_OPT='false'
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6422$as_echo_n "checking for --enable-optimizations... " >&6; }
6423# Check whether --enable-optimizations was given.
6424if test "${enable_optimizations+set}" = set; then :
6425  enableval=$enable_optimizations;
6426if test "$enableval" != no
6427then
6428  Py_OPT='true'
6429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6430$as_echo "yes" >&6; };
6431else
6432  Py_OPT='false'
6433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434$as_echo "no" >&6; };
6435fi
6436else
6437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438$as_echo "no" >&6; }
6439fi
6440
6441if test "$Py_OPT" = 'true' ; then
6442  # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not
6443  # compile working code using it and both test_distutils and test_gdb are
6444  # broken when you do managed to get a toolchain that works with it.  People
6445  # who want LTO need to use --with-lto themselves.
6446  DEF_MAKE_ALL_RULE="profile-opt"
6447  REQUIRE_PGO="yes"
6448  DEF_MAKE_RULE="build_all"
6449else
6450  DEF_MAKE_ALL_RULE="build_all"
6451  REQUIRE_PGO="no"
6452  DEF_MAKE_RULE="all"
6453fi
6454
6455
6456# Enable LTO flags
6457
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6459$as_echo_n "checking for --with-lto... " >&6; }
6460
6461# Check whether --with-lto was given.
6462if test "${with_lto+set}" = set; then :
6463  withval=$with_lto;
6464if test "$withval" != no
6465then
6466  Py_LTO='true'
6467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6468$as_echo "yes" >&6; };
6469else
6470  Py_LTO='false'
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; };
6473fi
6474else
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
6477fi
6478
6479if test "$Py_LTO" = 'true' ; then
6480  case $CC in
6481    *clang*)
6482      # Any changes made here should be reflected in the GCC+Darwin case below
6483      LTOFLAGS="-flto"
6484      ;;
6485    *gcc*)
6486      case $ac_sys_system in
6487        Darwin*)
6488          LTOFLAGS="-flto"
6489          ;;
6490        *)
6491          LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6492          ;;
6493      esac
6494      ;;
6495  esac
6496
6497  if test "$ac_cv_prog_cc_g" = "yes"
6498  then
6499      # bpo-30345: Add -g to LDFLAGS when compiling with LTO
6500      # to get debug symbols.
6501      LTOFLAGS="$LTOFLAGS -g"
6502  fi
6503fi
6504
6505
6506# Enable PGO flags.
6507
6508
6509
6510
6511
6512# Make this work on systems where llvm tools are not installed with their
6513# normal names in the default $PATH (ie: Ubuntu).  They exist under the
6514# non-suffixed name in their versioned llvm directory.
6515llvm_bin_dir=''
6516llvm_path="${PATH}"
6517if test "${CC}" = "clang"
6518then
6519  clang_bin=`which clang`
6520  # Some systems install clang elsewhere as a symlink to the real path
6521  # which is where the related llvm tools are located.
6522  if test -L "${clang_bin}"
6523  then
6524    clang_dir=`dirname "${clang_bin}"`
6525    clang_bin=`readlink "${clang_bin}"`
6526    llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6527    llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6528  fi
6529fi
6530
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6532$as_echo_n "checking target system type... " >&6; }
6533if ${ac_cv_target+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  if test "x$target_alias" = x; then
6537  ac_cv_target=$ac_cv_host
6538else
6539  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6540    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6541fi
6542
6543fi
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6545$as_echo "$ac_cv_target" >&6; }
6546case $ac_cv_target in
6547*-*-*) ;;
6548*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6549esac
6550target=$ac_cv_target
6551ac_save_IFS=$IFS; IFS='-'
6552set x $ac_cv_target
6553shift
6554target_cpu=$1
6555target_vendor=$2
6556shift; shift
6557# Remember, the first character of IFS is used to create $*,
6558# except with old shells:
6559target_os=$*
6560IFS=$ac_save_IFS
6561case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6562
6563
6564# The aliases save the names the user supplied, while $host etc.
6565# will get canonicalized.
6566test -n "$target_alias" &&
6567  test "$program_prefix$program_suffix$program_transform_name" = \
6568    NONENONEs,x,x, &&
6569  program_prefix=${target_alias}-
6570# Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args.
6571set dummy $target_alias-llvm-profdata; ac_word=$2
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573$as_echo_n "checking for $ac_word... " >&6; }
6574if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6575  $as_echo_n "(cached) " >&6
6576else
6577  case $LLVM_PROFDATA in
6578  [\\/]* | ?:[\\/]*)
6579  ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6580  ;;
6581  *)
6582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in ${llvm_path}
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589    ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597  ;;
6598esac
6599fi
6600LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6601if test -n "$LLVM_PROFDATA"; then
6602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6603$as_echo "$LLVM_PROFDATA" >&6; }
6604else
6605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606$as_echo "no" >&6; }
6607fi
6608
6609
6610if test -z "$ac_cv_path_LLVM_PROFDATA"; then
6611  if test "$build" = "$target"; then
6612    ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6613    # Extract the first word of "llvm-profdata", so it can be a program name with args.
6614set dummy llvm-profdata; ac_word=$2
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616$as_echo_n "checking for $ac_word... " >&6; }
6617if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620  case $ac_pt_LLVM_PROFDATA in
6621  [\\/]* | ?:[\\/]*)
6622  ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6623  ;;
6624  *)
6625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in ${llvm_path}
6627do
6628  IFS=$as_save_IFS
6629  test -z "$as_dir" && as_dir=.
6630    for ac_exec_ext in '' $ac_executable_extensions; do
6631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632    ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634    break 2
6635  fi
6636done
6637  done
6638IFS=$as_save_IFS
6639
6640  test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''"
6641  ;;
6642esac
6643fi
6644ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6645if test -n "$ac_pt_LLVM_PROFDATA"; then
6646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6647$as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6648else
6649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650$as_echo "no" >&6; }
6651fi
6652
6653    LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6654  else
6655    LLVM_PROFDATA="''"
6656  fi
6657else
6658  LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6659fi
6660
6661
6662if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6663then
6664  LLVM_PROF_FOUND="found"
6665else
6666  LLVM_PROF_FOUND="not-found"
6667fi
6668if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6669then
6670  found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6671  if test -n "${found_llvm_profdata}"
6672  then
6673    # llvm-profdata isn't directly in $PATH in some cases.
6674    # https://apple.stackexchange.com/questions/197053/
6675    LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6676    LLVM_PROF_FOUND=found
6677    { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6678$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6679  fi
6680fi
6681LLVM_PROF_ERR=no
6682case $CC in
6683  *clang*)
6684    # Any changes made here should be reflected in the GCC+Darwin case below
6685    PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6686    PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6687    LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6688    LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6689    if test $LLVM_PROF_FOUND = not-found
6690    then
6691      LLVM_PROF_ERR=yes
6692      if test "${REQUIRE_PGO}" = "yes"
6693      then
6694        as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6695      fi
6696    fi
6697    ;;
6698  *gcc*)
6699    case $ac_sys_system in
6700      Darwin*)
6701        PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6702        PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6703        LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6704        LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6705        if test "${LLVM_PROF_FOUND}" = "not-found"
6706        then
6707          LLVM_PROF_ERR=yes
6708          if test "${REQUIRE_PGO}" = "yes"
6709	  then
6710	    as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6711	  fi
6712        fi
6713        ;;
6714      *)
6715        PGO_PROF_GEN_FLAG="-fprofile-generate"
6716        PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6717        LLVM_PROF_MERGER="true"
6718        LLVM_PROF_FILE=""
6719        ;;
6720    esac
6721    ;;
6722  *icc*)
6723    PGO_PROF_GEN_FLAG="-prof-gen"
6724    PGO_PROF_USE_FLAG="-prof-use"
6725    LLVM_PROF_MERGER="true"
6726    LLVM_PROF_FILE=""
6727    ;;
6728esac
6729
6730
6731# On some compilers, pthreads are available without further options
6732# (e.g. MacOS X). On some of these systems, the compiler will not
6733# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
6734# So we have to see first whether pthreads are available without
6735# options before we can check whether -Kpthread improves anything.
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
6737$as_echo_n "checking whether pthreads are available without options... " >&6; }
6738if ${ac_cv_pthread_is_default+:} false; then :
6739  $as_echo_n "(cached) " >&6
6740else
6741  if test "$cross_compiling" = yes; then :
6742  ac_cv_pthread_is_default=no
6743else
6744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h.  */
6746
6747#include <stdio.h>
6748#include <pthread.h>
6749
6750void* routine(void* p){return NULL;}
6751
6752int main(){
6753  pthread_t p;
6754  if(pthread_create(&p,NULL,routine,NULL)!=0)
6755    return 1;
6756  (void)pthread_detach(p);
6757  return 0;
6758}
6759
6760_ACEOF
6761if ac_fn_c_try_run "$LINENO"; then :
6762
6763  ac_cv_pthread_is_default=yes
6764  ac_cv_kthread=no
6765  ac_cv_pthread=no
6766
6767else
6768  ac_cv_pthread_is_default=no
6769fi
6770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6771  conftest.$ac_objext conftest.beam conftest.$ac_ext
6772fi
6773
6774
6775fi
6776
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
6778$as_echo "$ac_cv_pthread_is_default" >&6; }
6779
6780
6781if test $ac_cv_pthread_is_default = yes
6782then
6783  ac_cv_kpthread=no
6784else
6785# -Kpthread, if available, provides the right #defines
6786# and linker options to make pthread_create available
6787# Some compilers won't report that they do not support -Kpthread,
6788# so we need to run a program to see whether it really made the
6789# function available.
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
6791$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
6792if ${ac_cv_kpthread+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  ac_save_cc="$CC"
6796CC="$CC -Kpthread"
6797if test "$cross_compiling" = yes; then :
6798  ac_cv_kpthread=no
6799else
6800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h.  */
6802
6803#include <stdio.h>
6804#include <pthread.h>
6805
6806void* routine(void* p){return NULL;}
6807
6808int main(){
6809  pthread_t p;
6810  if(pthread_create(&p,NULL,routine,NULL)!=0)
6811    return 1;
6812  (void)pthread_detach(p);
6813  return 0;
6814}
6815
6816_ACEOF
6817if ac_fn_c_try_run "$LINENO"; then :
6818  ac_cv_kpthread=yes
6819else
6820  ac_cv_kpthread=no
6821fi
6822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6823  conftest.$ac_objext conftest.beam conftest.$ac_ext
6824fi
6825
6826CC="$ac_save_cc"
6827fi
6828
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
6830$as_echo "$ac_cv_kpthread" >&6; }
6831fi
6832
6833if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
6834then
6835# -Kthread, if available, provides the right #defines
6836# and linker options to make pthread_create available
6837# Some compilers won't report that they do not support -Kthread,
6838# so we need to run a program to see whether it really made the
6839# function available.
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
6841$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
6842if ${ac_cv_kthread+:} false; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  ac_save_cc="$CC"
6846CC="$CC -Kthread"
6847if test "$cross_compiling" = yes; then :
6848  ac_cv_kthread=no
6849else
6850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852
6853#include <stdio.h>
6854#include <pthread.h>
6855
6856void* routine(void* p){return NULL;}
6857
6858int main(){
6859  pthread_t p;
6860  if(pthread_create(&p,NULL,routine,NULL)!=0)
6861    return 1;
6862  (void)pthread_detach(p);
6863  return 0;
6864}
6865
6866_ACEOF
6867if ac_fn_c_try_run "$LINENO"; then :
6868  ac_cv_kthread=yes
6869else
6870  ac_cv_kthread=no
6871fi
6872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6873  conftest.$ac_objext conftest.beam conftest.$ac_ext
6874fi
6875
6876CC="$ac_save_cc"
6877fi
6878
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
6880$as_echo "$ac_cv_kthread" >&6; }
6881fi
6882
6883if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
6884then
6885# -pthread, if available, provides the right #defines
6886# and linker options to make pthread_create available
6887# Some compilers won't report that they do not support -pthread,
6888# so we need to run a program to see whether it really made the
6889# function available.
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
6891$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
6892if ${ac_cv_pthread+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  ac_save_cc="$CC"
6896CC="$CC -pthread"
6897if test "$cross_compiling" = yes; then :
6898  ac_cv_pthread=no
6899else
6900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h.  */
6902
6903#include <stdio.h>
6904#include <pthread.h>
6905
6906void* routine(void* p){return NULL;}
6907
6908int main(){
6909  pthread_t p;
6910  if(pthread_create(&p,NULL,routine,NULL)!=0)
6911    return 1;
6912  (void)pthread_detach(p);
6913  return 0;
6914}
6915
6916_ACEOF
6917if ac_fn_c_try_run "$LINENO"; then :
6918  ac_cv_pthread=yes
6919else
6920  ac_cv_pthread=no
6921fi
6922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6923  conftest.$ac_objext conftest.beam conftest.$ac_ext
6924fi
6925
6926CC="$ac_save_cc"
6927fi
6928
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
6930$as_echo "$ac_cv_pthread" >&6; }
6931fi
6932
6933# If we have set a CC compiler flag for thread support then
6934# check if it works for CXX, too.
6935ac_cv_cxx_thread=no
6936if test ! -z "$CXX"
6937then
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
6939$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
6940ac_save_cxx="$CXX"
6941
6942if test "$ac_cv_kpthread" = "yes"
6943then
6944  CXX="$CXX -Kpthread"
6945  ac_cv_cxx_thread=yes
6946elif test "$ac_cv_kthread" = "yes"
6947then
6948  CXX="$CXX -Kthread"
6949  ac_cv_cxx_thread=yes
6950elif test "$ac_cv_pthread" = "yes"
6951then
6952  CXX="$CXX -pthread"
6953  ac_cv_cxx_thread=yes
6954fi
6955
6956if test $ac_cv_cxx_thread = yes
6957then
6958  echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
6959  $CXX -c conftest.$ac_ext 2>&5
6960  if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
6961     && test -s conftest$ac_exeext && ./conftest$ac_exeext
6962  then
6963    ac_cv_cxx_thread=yes
6964  else
6965    ac_cv_cxx_thread=no
6966  fi
6967  rm -fr conftest*
6968fi
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
6970$as_echo "$ac_cv_cxx_thread" >&6; }
6971fi
6972CXX="$ac_save_cxx"
6973
6974
6975# checks for header files
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6977$as_echo_n "checking for ANSI C header files... " >&6; }
6978if ${ac_cv_header_stdc+:} false; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983#include <stdlib.h>
6984#include <stdarg.h>
6985#include <string.h>
6986#include <float.h>
6987
6988int
6989main ()
6990{
6991
6992  ;
6993  return 0;
6994}
6995_ACEOF
6996if ac_fn_c_try_compile "$LINENO"; then :
6997  ac_cv_header_stdc=yes
6998else
6999  ac_cv_header_stdc=no
7000fi
7001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002
7003if test $ac_cv_header_stdc = yes; then
7004  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007#include <string.h>
7008
7009_ACEOF
7010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7011  $EGREP "memchr" >/dev/null 2>&1; then :
7012
7013else
7014  ac_cv_header_stdc=no
7015fi
7016rm -f conftest*
7017
7018fi
7019
7020if test $ac_cv_header_stdc = yes; then
7021  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023/* end confdefs.h.  */
7024#include <stdlib.h>
7025
7026_ACEOF
7027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028  $EGREP "free" >/dev/null 2>&1; then :
7029
7030else
7031  ac_cv_header_stdc=no
7032fi
7033rm -f conftest*
7034
7035fi
7036
7037if test $ac_cv_header_stdc = yes; then
7038  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7039  if test "$cross_compiling" = yes; then :
7040  :
7041else
7042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043/* end confdefs.h.  */
7044#include <ctype.h>
7045#include <stdlib.h>
7046#if ((' ' & 0x0FF) == 0x020)
7047# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7048# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7049#else
7050# define ISLOWER(c) \
7051		   (('a' <= (c) && (c) <= 'i') \
7052		     || ('j' <= (c) && (c) <= 'r') \
7053		     || ('s' <= (c) && (c) <= 'z'))
7054# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7055#endif
7056
7057#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7058int
7059main ()
7060{
7061  int i;
7062  for (i = 0; i < 256; i++)
7063    if (XOR (islower (i), ISLOWER (i))
7064	|| toupper (i) != TOUPPER (i))
7065      return 2;
7066  return 0;
7067}
7068_ACEOF
7069if ac_fn_c_try_run "$LINENO"; then :
7070
7071else
7072  ac_cv_header_stdc=no
7073fi
7074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7075  conftest.$ac_objext conftest.beam conftest.$ac_ext
7076fi
7077
7078fi
7079fi
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7081$as_echo "$ac_cv_header_stdc" >&6; }
7082if test $ac_cv_header_stdc = yes; then
7083
7084$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7085
7086fi
7087
7088for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
7089fcntl.h grp.h \
7090ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \
7091shadow.h signal.h stdint.h stropts.h termios.h thread.h \
7092unistd.h utime.h \
7093sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
7094sys/lock.h sys/mkdev.h sys/modem.h \
7095sys/param.h sys/poll.h sys/random.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
7096sys/termio.h sys/time.h \
7097sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
7098sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
7099bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h sys/sysmacros.h
7100do :
7101  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7103if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7104  cat >>confdefs.h <<_ACEOF
7105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7106_ACEOF
7107
7108fi
7109
7110done
7111
7112ac_header_dirent=no
7113for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7114  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7116$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7117if eval \${$as_ac_Header+:} false; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h.  */
7122#include <sys/types.h>
7123#include <$ac_hdr>
7124
7125int
7126main ()
7127{
7128if ((DIR *) 0)
7129return 0;
7130  ;
7131  return 0;
7132}
7133_ACEOF
7134if ac_fn_c_try_compile "$LINENO"; then :
7135  eval "$as_ac_Header=yes"
7136else
7137  eval "$as_ac_Header=no"
7138fi
7139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140fi
7141eval ac_res=\$$as_ac_Header
7142	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7143$as_echo "$ac_res" >&6; }
7144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7145  cat >>confdefs.h <<_ACEOF
7146#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7147_ACEOF
7148
7149ac_header_dirent=$ac_hdr; break
7150fi
7151
7152done
7153# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7154if test $ac_header_dirent = dirent.h; then
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7156$as_echo_n "checking for library containing opendir... " >&6; }
7157if ${ac_cv_search_opendir+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  ac_func_search_save_LIBS=$LIBS
7161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162/* end confdefs.h.  */
7163
7164/* Override any GCC internal prototype to avoid an error.
7165   Use char because int might match the return type of a GCC
7166   builtin and then its argument prototype would still apply.  */
7167#ifdef __cplusplus
7168extern "C"
7169#endif
7170char opendir ();
7171int
7172main ()
7173{
7174return opendir ();
7175  ;
7176  return 0;
7177}
7178_ACEOF
7179for ac_lib in '' dir; do
7180  if test -z "$ac_lib"; then
7181    ac_res="none required"
7182  else
7183    ac_res=-l$ac_lib
7184    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7185  fi
7186  if ac_fn_c_try_link "$LINENO"; then :
7187  ac_cv_search_opendir=$ac_res
7188fi
7189rm -f core conftest.err conftest.$ac_objext \
7190    conftest$ac_exeext
7191  if ${ac_cv_search_opendir+:} false; then :
7192  break
7193fi
7194done
7195if ${ac_cv_search_opendir+:} false; then :
7196
7197else
7198  ac_cv_search_opendir=no
7199fi
7200rm conftest.$ac_ext
7201LIBS=$ac_func_search_save_LIBS
7202fi
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7204$as_echo "$ac_cv_search_opendir" >&6; }
7205ac_res=$ac_cv_search_opendir
7206if test "$ac_res" != no; then :
7207  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7208
7209fi
7210
7211else
7212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7213$as_echo_n "checking for library containing opendir... " >&6; }
7214if ${ac_cv_search_opendir+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  ac_func_search_save_LIBS=$LIBS
7218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h.  */
7220
7221/* Override any GCC internal prototype to avoid an error.
7222   Use char because int might match the return type of a GCC
7223   builtin and then its argument prototype would still apply.  */
7224#ifdef __cplusplus
7225extern "C"
7226#endif
7227char opendir ();
7228int
7229main ()
7230{
7231return opendir ();
7232  ;
7233  return 0;
7234}
7235_ACEOF
7236for ac_lib in '' x; do
7237  if test -z "$ac_lib"; then
7238    ac_res="none required"
7239  else
7240    ac_res=-l$ac_lib
7241    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7242  fi
7243  if ac_fn_c_try_link "$LINENO"; then :
7244  ac_cv_search_opendir=$ac_res
7245fi
7246rm -f core conftest.err conftest.$ac_objext \
7247    conftest$ac_exeext
7248  if ${ac_cv_search_opendir+:} false; then :
7249  break
7250fi
7251done
7252if ${ac_cv_search_opendir+:} false; then :
7253
7254else
7255  ac_cv_search_opendir=no
7256fi
7257rm conftest.$ac_ext
7258LIBS=$ac_func_search_save_LIBS
7259fi
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7261$as_echo "$ac_cv_search_opendir" >&6; }
7262ac_res=$ac_cv_search_opendir
7263if test "$ac_res" != no; then :
7264  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7265
7266fi
7267
7268fi
7269
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7271$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7272if ${ac_cv_header_sys_types_h_makedev+:} false; then :
7273  $as_echo_n "(cached) " >&6
7274else
7275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276/* end confdefs.h.  */
7277#include <sys/types.h>
7278int
7279main ()
7280{
7281return makedev(0, 0);
7282  ;
7283  return 0;
7284}
7285_ACEOF
7286if ac_fn_c_try_link "$LINENO"; then :
7287  ac_cv_header_sys_types_h_makedev=yes
7288else
7289  ac_cv_header_sys_types_h_makedev=no
7290fi
7291rm -f core conftest.err conftest.$ac_objext \
7292    conftest$ac_exeext conftest.$ac_ext
7293
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7296$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7297
7298if test $ac_cv_header_sys_types_h_makedev = no; then
7299ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
7300if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
7301
7302$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
7303
7304fi
7305
7306
7307
7308  if test $ac_cv_header_sys_mkdev_h = no; then
7309    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
7310if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
7311
7312$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
7313
7314fi
7315
7316
7317  fi
7318fi
7319
7320
7321# On Linux, netlink.h requires asm/types.h
7322for ac_header in linux/netlink.h
7323do :
7324  ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
7325#ifdef HAVE_ASM_TYPES_H
7326#include <asm/types.h>
7327#endif
7328#ifdef HAVE_SYS_SOCKET_H
7329#include <sys/socket.h>
7330#endif
7331
7332"
7333if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
7334  cat >>confdefs.h <<_ACEOF
7335#define HAVE_LINUX_NETLINK_H 1
7336_ACEOF
7337
7338fi
7339
7340done
7341
7342
7343# checks for typedefs
7344was_it_defined=no
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
7346$as_echo_n "checking for clock_t in time.h... " >&6; }
7347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h.  */
7349#include <time.h>
7350
7351_ACEOF
7352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7353  $EGREP "clock_t" >/dev/null 2>&1; then :
7354  was_it_defined=yes
7355else
7356
7357
7358$as_echo "#define clock_t long" >>confdefs.h
7359
7360
7361fi
7362rm -f conftest*
7363
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
7365$as_echo "$was_it_defined" >&6; }
7366
7367# Check whether using makedev requires defining _OSF_SOURCE
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
7369$as_echo_n "checking for makedev... " >&6; }
7370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372
7373#if defined(MAJOR_IN_MKDEV)
7374#include <sys/mkdev.h>
7375#elif defined(MAJOR_IN_SYSMACROS)
7376#include <sys/sysmacros.h>
7377#else
7378#include <sys/types.h>
7379#endif
7380int
7381main ()
7382{
7383 makedev(0, 0)
7384  ;
7385  return 0;
7386}
7387_ACEOF
7388if ac_fn_c_try_link "$LINENO"; then :
7389  ac_cv_has_makedev=yes
7390else
7391  ac_cv_has_makedev=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext \
7394    conftest$ac_exeext conftest.$ac_ext
7395if test "$ac_cv_has_makedev" = "no"; then
7396    # we didn't link, try if _OSF_SOURCE will allow us to link
7397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h.  */
7399
7400#define _OSF_SOURCE 1
7401#include <sys/types.h>
7402
7403int
7404main ()
7405{
7406 makedev(0, 0)
7407  ;
7408  return 0;
7409}
7410_ACEOF
7411if ac_fn_c_try_link "$LINENO"; then :
7412  ac_cv_has_makedev=yes
7413else
7414  ac_cv_has_makedev=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext \
7417    conftest$ac_exeext conftest.$ac_ext
7418    if test "$ac_cv_has_makedev" = "yes"; then
7419
7420$as_echo "#define _OSF_SOURCE 1" >>confdefs.h
7421
7422    fi
7423fi
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
7425$as_echo "$ac_cv_has_makedev" >&6; }
7426if test "$ac_cv_has_makedev" = "yes"; then
7427
7428$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
7429
7430fi
7431
7432# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7433# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7434# defined, but the compiler does not support pragma redefine_extname,
7435# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7436# structures (such as rlimit64) without declaring them. As a
7437# work-around, disable LFS on such configurations
7438
7439use_lfs=yes
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
7441$as_echo_n "checking Solaris LFS bug... " >&6; }
7442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h.  */
7444
7445#define _LARGEFILE_SOURCE 1
7446#define _FILE_OFFSET_BITS 64
7447#include <sys/resource.h>
7448
7449int
7450main ()
7451{
7452struct rlimit foo;
7453  ;
7454  return 0;
7455}
7456_ACEOF
7457if ac_fn_c_try_compile "$LINENO"; then :
7458  sol_lfs_bug=no
7459else
7460  sol_lfs_bug=yes
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
7464$as_echo "$sol_lfs_bug" >&6; }
7465if test "$sol_lfs_bug" = "yes"; then
7466  use_lfs=no
7467fi
7468
7469if test "$use_lfs" = "yes"; then
7470# Two defines needed to enable largefile support on various platforms
7471# These may affect some typedefs
7472case $ac_sys_system/$ac_sys_release in
7473AIX*)
7474
7475$as_echo "#define _LARGE_FILES 1" >>confdefs.h
7476
7477    ;;
7478esac
7479
7480$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
7481
7482
7483$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7484
7485fi
7486
7487# Add some code to confdefs.h so that the test for off_t works on SCO
7488cat >> confdefs.h <<\EOF
7489#if defined(SCO_DS)
7490#undef _OFF_T
7491#endif
7492EOF
7493
7494# Type availability checks
7495ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7496if test "x$ac_cv_type_mode_t" = xyes; then :
7497
7498else
7499
7500cat >>confdefs.h <<_ACEOF
7501#define mode_t int
7502_ACEOF
7503
7504fi
7505
7506ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7507if test "x$ac_cv_type_off_t" = xyes; then :
7508
7509else
7510
7511cat >>confdefs.h <<_ACEOF
7512#define off_t long int
7513_ACEOF
7514
7515fi
7516
7517ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7518if test "x$ac_cv_type_pid_t" = xyes; then :
7519
7520else
7521
7522cat >>confdefs.h <<_ACEOF
7523#define pid_t int
7524_ACEOF
7525
7526fi
7527
7528
7529cat >>confdefs.h <<_ACEOF
7530#define RETSIGTYPE void
7531_ACEOF
7532
7533ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7534if test "x$ac_cv_type_size_t" = xyes; then :
7535
7536else
7537
7538cat >>confdefs.h <<_ACEOF
7539#define size_t unsigned int
7540_ACEOF
7541
7542fi
7543
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7545$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7546if ${ac_cv_type_uid_t+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h.  */
7551#include <sys/types.h>
7552
7553_ACEOF
7554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7555  $EGREP "uid_t" >/dev/null 2>&1; then :
7556  ac_cv_type_uid_t=yes
7557else
7558  ac_cv_type_uid_t=no
7559fi
7560rm -f conftest*
7561
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7564$as_echo "$ac_cv_type_uid_t" >&6; }
7565if test $ac_cv_type_uid_t = no; then
7566
7567$as_echo "#define uid_t int" >>confdefs.h
7568
7569
7570$as_echo "#define gid_t int" >>confdefs.h
7571
7572fi
7573
7574
7575# There are two separate checks for each of the exact-width integer types we
7576# need.  First we check whether the type is available using the usual
7577# AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h>
7578# and <stdint.h> where available).  We then also use the special type checks of
7579# the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available
7580# directly, #define's uint32_t to be a suitable type.
7581
7582ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7583if test "x$ac_cv_type_uint32_t" = xyes; then :
7584
7585$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
7586
7587fi
7588
7589ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7590case $ac_cv_c_uint32_t in #(
7591  no|yes) ;; #(
7592  *)
7593
7594$as_echo "#define _UINT32_T 1" >>confdefs.h
7595
7596
7597cat >>confdefs.h <<_ACEOF
7598#define uint32_t $ac_cv_c_uint32_t
7599_ACEOF
7600;;
7601  esac
7602
7603
7604ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
7605if test "x$ac_cv_type_uint64_t" = xyes; then :
7606
7607$as_echo "#define HAVE_UINT64_T 1" >>confdefs.h
7608
7609fi
7610
7611ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7612case $ac_cv_c_uint64_t in #(
7613  no|yes) ;; #(
7614  *)
7615
7616$as_echo "#define _UINT64_T 1" >>confdefs.h
7617
7618
7619cat >>confdefs.h <<_ACEOF
7620#define uint64_t $ac_cv_c_uint64_t
7621_ACEOF
7622;;
7623  esac
7624
7625
7626ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7627if test "x$ac_cv_type_int32_t" = xyes; then :
7628
7629$as_echo "#define HAVE_INT32_T 1" >>confdefs.h
7630
7631fi
7632
7633ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7634case $ac_cv_c_int32_t in #(
7635  no|yes) ;; #(
7636  *)
7637
7638cat >>confdefs.h <<_ACEOF
7639#define int32_t $ac_cv_c_int32_t
7640_ACEOF
7641;;
7642esac
7643
7644
7645ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
7646if test "x$ac_cv_type_int64_t" = xyes; then :
7647
7648$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
7649
7650fi
7651
7652ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7653case $ac_cv_c_int64_t in #(
7654  no|yes) ;; #(
7655  *)
7656
7657cat >>confdefs.h <<_ACEOF
7658#define int64_t $ac_cv_c_int64_t
7659_ACEOF
7660;;
7661esac
7662
7663
7664ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7665if test "x$ac_cv_type_ssize_t" = xyes; then :
7666
7667$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
7668
7669fi
7670
7671
7672# Sizes of various common basic types
7673# ANSI C requires sizeof(char) == 1, so no need to check it
7674# The cast to long int works around a bug in the HP C Compiler
7675# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7676# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7677# This bug is HP SR number 8606223364.
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7679$as_echo_n "checking size of int... " >&6; }
7680if ${ac_cv_sizeof_int+:} false; then :
7681  $as_echo_n "(cached) " >&6
7682else
7683  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
7684
7685else
7686  if test "$ac_cv_type_int" = yes; then
7687     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7689as_fn_error 77 "cannot compute sizeof (int)
7690See \`config.log' for more details" "$LINENO" 5; }
7691   else
7692     ac_cv_sizeof_int=0
7693   fi
7694fi
7695
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7698$as_echo "$ac_cv_sizeof_int" >&6; }
7699
7700
7701
7702cat >>confdefs.h <<_ACEOF
7703#define SIZEOF_INT $ac_cv_sizeof_int
7704_ACEOF
7705
7706
7707# The cast to long int works around a bug in the HP C Compiler
7708# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7709# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7710# This bug is HP SR number 8606223364.
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7712$as_echo_n "checking size of long... " >&6; }
7713if ${ac_cv_sizeof_long+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7717
7718else
7719  if test "$ac_cv_type_long" = yes; then
7720     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7722as_fn_error 77 "cannot compute sizeof (long)
7723See \`config.log' for more details" "$LINENO" 5; }
7724   else
7725     ac_cv_sizeof_long=0
7726   fi
7727fi
7728
7729fi
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7731$as_echo "$ac_cv_sizeof_long" >&6; }
7732
7733
7734
7735cat >>confdefs.h <<_ACEOF
7736#define SIZEOF_LONG $ac_cv_sizeof_long
7737_ACEOF
7738
7739
7740# The cast to long int works around a bug in the HP C Compiler
7741# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7742# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7743# This bug is HP SR number 8606223364.
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7745$as_echo_n "checking size of void *... " >&6; }
7746if ${ac_cv_sizeof_void_p+:} false; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
7750
7751else
7752  if test "$ac_cv_type_void_p" = yes; then
7753     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7755as_fn_error 77 "cannot compute sizeof (void *)
7756See \`config.log' for more details" "$LINENO" 5; }
7757   else
7758     ac_cv_sizeof_void_p=0
7759   fi
7760fi
7761
7762fi
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7764$as_echo "$ac_cv_sizeof_void_p" >&6; }
7765
7766
7767
7768cat >>confdefs.h <<_ACEOF
7769#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7770_ACEOF
7771
7772
7773# The cast to long int works around a bug in the HP C Compiler
7774# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7775# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7776# This bug is HP SR number 8606223364.
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7778$as_echo_n "checking size of short... " >&6; }
7779if ${ac_cv_sizeof_short+:} false; then :
7780  $as_echo_n "(cached) " >&6
7781else
7782  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
7783
7784else
7785  if test "$ac_cv_type_short" = yes; then
7786     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7788as_fn_error 77 "cannot compute sizeof (short)
7789See \`config.log' for more details" "$LINENO" 5; }
7790   else
7791     ac_cv_sizeof_short=0
7792   fi
7793fi
7794
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7797$as_echo "$ac_cv_sizeof_short" >&6; }
7798
7799
7800
7801cat >>confdefs.h <<_ACEOF
7802#define SIZEOF_SHORT $ac_cv_sizeof_short
7803_ACEOF
7804
7805
7806# The cast to long int works around a bug in the HP C Compiler
7807# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7808# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7809# This bug is HP SR number 8606223364.
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7811$as_echo_n "checking size of float... " >&6; }
7812if ${ac_cv_sizeof_float+:} false; then :
7813  $as_echo_n "(cached) " >&6
7814else
7815  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
7816
7817else
7818  if test "$ac_cv_type_float" = yes; then
7819     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7821as_fn_error 77 "cannot compute sizeof (float)
7822See \`config.log' for more details" "$LINENO" 5; }
7823   else
7824     ac_cv_sizeof_float=0
7825   fi
7826fi
7827
7828fi
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7830$as_echo "$ac_cv_sizeof_float" >&6; }
7831
7832
7833
7834cat >>confdefs.h <<_ACEOF
7835#define SIZEOF_FLOAT $ac_cv_sizeof_float
7836_ACEOF
7837
7838
7839# The cast to long int works around a bug in the HP C Compiler
7840# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7841# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7842# This bug is HP SR number 8606223364.
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7844$as_echo_n "checking size of double... " >&6; }
7845if ${ac_cv_sizeof_double+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
7849
7850else
7851  if test "$ac_cv_type_double" = yes; then
7852     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7854as_fn_error 77 "cannot compute sizeof (double)
7855See \`config.log' for more details" "$LINENO" 5; }
7856   else
7857     ac_cv_sizeof_double=0
7858   fi
7859fi
7860
7861fi
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7863$as_echo "$ac_cv_sizeof_double" >&6; }
7864
7865
7866
7867cat >>confdefs.h <<_ACEOF
7868#define SIZEOF_DOUBLE $ac_cv_sizeof_double
7869_ACEOF
7870
7871
7872# The cast to long int works around a bug in the HP C Compiler
7873# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7874# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7875# This bug is HP SR number 8606223364.
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
7877$as_echo_n "checking size of fpos_t... " >&6; }
7878if ${ac_cv_sizeof_fpos_t+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then :
7882
7883else
7884  if test "$ac_cv_type_fpos_t" = yes; then
7885     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7887as_fn_error 77 "cannot compute sizeof (fpos_t)
7888See \`config.log' for more details" "$LINENO" 5; }
7889   else
7890     ac_cv_sizeof_fpos_t=0
7891   fi
7892fi
7893
7894fi
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
7896$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
7897
7898
7899
7900cat >>confdefs.h <<_ACEOF
7901#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
7902_ACEOF
7903
7904
7905# The cast to long int works around a bug in the HP C Compiler
7906# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7907# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7908# This bug is HP SR number 8606223364.
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
7910$as_echo_n "checking size of size_t... " >&6; }
7911if ${ac_cv_sizeof_size_t+:} false; then :
7912  $as_echo_n "(cached) " >&6
7913else
7914  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
7915
7916else
7917  if test "$ac_cv_type_size_t" = yes; then
7918     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7920as_fn_error 77 "cannot compute sizeof (size_t)
7921See \`config.log' for more details" "$LINENO" 5; }
7922   else
7923     ac_cv_sizeof_size_t=0
7924   fi
7925fi
7926
7927fi
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
7929$as_echo "$ac_cv_sizeof_size_t" >&6; }
7930
7931
7932
7933cat >>confdefs.h <<_ACEOF
7934#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
7935_ACEOF
7936
7937
7938# The cast to long int works around a bug in the HP C Compiler
7939# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7940# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7941# This bug is HP SR number 8606223364.
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
7943$as_echo_n "checking size of pid_t... " >&6; }
7944if ${ac_cv_sizeof_pid_t+:} false; then :
7945  $as_echo_n "(cached) " >&6
7946else
7947  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then :
7948
7949else
7950  if test "$ac_cv_type_pid_t" = yes; then
7951     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7953as_fn_error 77 "cannot compute sizeof (pid_t)
7954See \`config.log' for more details" "$LINENO" 5; }
7955   else
7956     ac_cv_sizeof_pid_t=0
7957   fi
7958fi
7959
7960fi
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
7962$as_echo "$ac_cv_sizeof_pid_t" >&6; }
7963
7964
7965
7966cat >>confdefs.h <<_ACEOF
7967#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
7968_ACEOF
7969
7970
7971
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
7973$as_echo_n "checking for long long support... " >&6; }
7974have_long_long=no
7975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h.  */
7977
7978int
7979main ()
7980{
7981long long x; x = (long long)0;
7982  ;
7983  return 0;
7984}
7985_ACEOF
7986if ac_fn_c_try_compile "$LINENO"; then :
7987
7988
7989$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
7990
7991  have_long_long=yes
7992
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
7996$as_echo "$have_long_long" >&6; }
7997if test "$have_long_long" = yes ; then
7998# The cast to long int works around a bug in the HP C Compiler
7999# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8000# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8001# This bug is HP SR number 8606223364.
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8003$as_echo_n "checking size of long long... " >&6; }
8004if ${ac_cv_sizeof_long_long+:} false; then :
8005  $as_echo_n "(cached) " >&6
8006else
8007  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
8008
8009else
8010  if test "$ac_cv_type_long_long" = yes; then
8011     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8013as_fn_error 77 "cannot compute sizeof (long long)
8014See \`config.log' for more details" "$LINENO" 5; }
8015   else
8016     ac_cv_sizeof_long_long=0
8017   fi
8018fi
8019
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8022$as_echo "$ac_cv_sizeof_long_long" >&6; }
8023
8024
8025
8026cat >>confdefs.h <<_ACEOF
8027#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8028_ACEOF
8029
8030
8031fi
8032
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
8034$as_echo_n "checking for long double support... " >&6; }
8035have_long_double=no
8036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037/* end confdefs.h.  */
8038
8039int
8040main ()
8041{
8042long double x; x = (long double)0;
8043  ;
8044  return 0;
8045}
8046_ACEOF
8047if ac_fn_c_try_compile "$LINENO"; then :
8048
8049
8050$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
8051
8052  have_long_double=yes
8053
8054fi
8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
8057$as_echo "$have_long_double" >&6; }
8058if test "$have_long_double" = yes ; then
8059# The cast to long int works around a bug in the HP C Compiler
8060# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8061# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8062# This bug is HP SR number 8606223364.
8063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8064$as_echo_n "checking size of long double... " >&6; }
8065if ${ac_cv_sizeof_long_double+:} false; then :
8066  $as_echo_n "(cached) " >&6
8067else
8068  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
8069
8070else
8071  if test "$ac_cv_type_long_double" = yes; then
8072     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8074as_fn_error 77 "cannot compute sizeof (long double)
8075See \`config.log' for more details" "$LINENO" 5; }
8076   else
8077     ac_cv_sizeof_long_double=0
8078   fi
8079fi
8080
8081fi
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8083$as_echo "$ac_cv_sizeof_long_double" >&6; }
8084
8085
8086
8087cat >>confdefs.h <<_ACEOF
8088#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8089_ACEOF
8090
8091
8092fi
8093
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
8095$as_echo_n "checking for _Bool support... " >&6; }
8096have_c99_bool=no
8097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098/* end confdefs.h.  */
8099
8100int
8101main ()
8102{
8103_Bool x; x = (_Bool)0;
8104  ;
8105  return 0;
8106}
8107_ACEOF
8108if ac_fn_c_try_compile "$LINENO"; then :
8109
8110
8111$as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
8112
8113  have_c99_bool=yes
8114
8115fi
8116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
8118$as_echo "$have_c99_bool" >&6; }
8119if test "$have_c99_bool" = yes ; then
8120# The cast to long int works around a bug in the HP C Compiler
8121# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8122# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8123# This bug is HP SR number 8606223364.
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8125$as_echo_n "checking size of _Bool... " >&6; }
8126if ${ac_cv_sizeof__Bool+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then :
8130
8131else
8132  if test "$ac_cv_type__Bool" = yes; then
8133     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8135as_fn_error 77 "cannot compute sizeof (_Bool)
8136See \`config.log' for more details" "$LINENO" 5; }
8137   else
8138     ac_cv_sizeof__Bool=0
8139   fi
8140fi
8141
8142fi
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8144$as_echo "$ac_cv_sizeof__Bool" >&6; }
8145
8146
8147
8148cat >>confdefs.h <<_ACEOF
8149#define SIZEOF__BOOL $ac_cv_sizeof__Bool
8150_ACEOF
8151
8152
8153fi
8154
8155ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
8156        #include <stdint.h>
8157        #endif
8158        #ifdef HAVE_INTTYPES_H
8159        #include <inttypes.h>
8160        #endif
8161"
8162if test "x$ac_cv_type_uintptr_t" = xyes; then :
8163
8164cat >>confdefs.h <<_ACEOF
8165#define HAVE_UINTPTR_T 1
8166_ACEOF
8167
8168# The cast to long int works around a bug in the HP C Compiler
8169# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8170# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8171# This bug is HP SR number 8606223364.
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8173$as_echo_n "checking size of uintptr_t... " >&6; }
8174if ${ac_cv_sizeof_uintptr_t+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then :
8178
8179else
8180  if test "$ac_cv_type_uintptr_t" = yes; then
8181     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8183as_fn_error 77 "cannot compute sizeof (uintptr_t)
8184See \`config.log' for more details" "$LINENO" 5; }
8185   else
8186     ac_cv_sizeof_uintptr_t=0
8187   fi
8188fi
8189
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8192$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8193
8194
8195
8196cat >>confdefs.h <<_ACEOF
8197#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8198_ACEOF
8199
8200
8201fi
8202
8203
8204# The cast to long int works around a bug in the HP C Compiler
8205# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8206# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8207# This bug is HP SR number 8606223364.
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8209$as_echo_n "checking size of off_t... " >&6; }
8210if ${ac_cv_sizeof_off_t+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "
8214#ifdef HAVE_SYS_TYPES_H
8215#include <sys/types.h>
8216#endif
8217
8218"; then :
8219
8220else
8221  if test "$ac_cv_type_off_t" = yes; then
8222     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8224as_fn_error 77 "cannot compute sizeof (off_t)
8225See \`config.log' for more details" "$LINENO" 5; }
8226   else
8227     ac_cv_sizeof_off_t=0
8228   fi
8229fi
8230
8231fi
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8233$as_echo "$ac_cv_sizeof_off_t" >&6; }
8234
8235
8236
8237cat >>confdefs.h <<_ACEOF
8238#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8239_ACEOF
8240
8241
8242
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8244$as_echo_n "checking whether to enable large file support... " >&6; }
8245if test "$have_long_long" = yes
8246then
8247if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8248	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8249
8250$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
8251
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253$as_echo "yes" >&6; }
8254else
8255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256$as_echo "no" >&6; }
8257fi
8258else
8259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260$as_echo "no" >&6; }
8261fi
8262
8263# The cast to long int works around a bug in the HP C Compiler
8264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8266# This bug is HP SR number 8606223364.
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8268$as_echo_n "checking size of time_t... " >&6; }
8269if ${ac_cv_sizeof_time_t+:} false; then :
8270  $as_echo_n "(cached) " >&6
8271else
8272  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
8273#ifdef HAVE_SYS_TYPES_H
8274#include <sys/types.h>
8275#endif
8276#ifdef HAVE_TIME_H
8277#include <time.h>
8278#endif
8279
8280"; then :
8281
8282else
8283  if test "$ac_cv_type_time_t" = yes; then
8284     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8286as_fn_error 77 "cannot compute sizeof (time_t)
8287See \`config.log' for more details" "$LINENO" 5; }
8288   else
8289     ac_cv_sizeof_time_t=0
8290   fi
8291fi
8292
8293fi
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
8295$as_echo "$ac_cv_sizeof_time_t" >&6; }
8296
8297
8298
8299cat >>confdefs.h <<_ACEOF
8300#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
8301_ACEOF
8302
8303
8304
8305# if have pthread_t then define SIZEOF_PTHREAD_T
8306ac_save_cc="$CC"
8307if test "$ac_cv_kpthread" = "yes"
8308then CC="$CC -Kpthread"
8309elif test "$ac_cv_kthread" = "yes"
8310then CC="$CC -Kthread"
8311elif test "$ac_cv_pthread" = "yes"
8312then CC="$CC -pthread"
8313fi
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
8315$as_echo_n "checking for pthread_t... " >&6; }
8316have_pthread_t=no
8317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319
8320  #include <pthread.h>
8321int
8322main ()
8323{
8324pthread_t x; x = *(pthread_t*)0;
8325  ;
8326  return 0;
8327}
8328
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"; then :
8331  have_pthread_t=yes
8332fi
8333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
8335$as_echo "$have_pthread_t" >&6; }
8336if test "$have_pthread_t" = yes ; then
8337  # The cast to long int works around a bug in the HP C Compiler
8338# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8339# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8340# This bug is HP SR number 8606223364.
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
8342$as_echo_n "checking size of pthread_t... " >&6; }
8343if ${ac_cv_sizeof_pthread_t+:} false; then :
8344  $as_echo_n "(cached) " >&6
8345else
8346  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
8347#ifdef HAVE_PTHREAD_H
8348#include <pthread.h>
8349#endif
8350
8351"; then :
8352
8353else
8354  if test "$ac_cv_type_pthread_t" = yes; then
8355     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8357as_fn_error 77 "cannot compute sizeof (pthread_t)
8358See \`config.log' for more details" "$LINENO" 5; }
8359   else
8360     ac_cv_sizeof_pthread_t=0
8361   fi
8362fi
8363
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
8366$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
8367
8368
8369
8370cat >>confdefs.h <<_ACEOF
8371#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
8372_ACEOF
8373
8374
8375fi
8376CC="$ac_save_cc"
8377
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
8379$as_echo_n "checking for --enable-toolbox-glue... " >&6; }
8380# Check whether --enable-toolbox-glue was given.
8381if test "${enable_toolbox_glue+set}" = set; then :
8382  enableval=$enable_toolbox_glue;
8383fi
8384
8385
8386if test -z "$enable_toolbox_glue"
8387then
8388	case $ac_sys_system/$ac_sys_release in
8389	Darwin/*)
8390		enable_toolbox_glue="yes";;
8391	*)
8392		enable_toolbox_glue="no";;
8393	esac
8394fi
8395case "$enable_toolbox_glue" in
8396yes)
8397	extra_machdep_objs="Python/mactoolboxglue.o"
8398	extra_undefs="-u _PyMac_Error"
8399
8400$as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
8401
8402	;;
8403*)
8404	extra_machdep_objs=""
8405	extra_undefs=""
8406	;;
8407esac
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
8409$as_echo "$enable_toolbox_glue" >&6; }
8410
8411
8412
8413case $ac_sys_system/$ac_sys_release in
8414  Darwin/[01567]\..*)
8415    OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
8416    ;;
8417  Darwin/*)
8418    OTHER_LIBTOOL_OPT=""
8419    ;;
8420esac
8421
8422
8423
8424case $ac_sys_system/$ac_sys_release in
8425  Darwin/[01567]\..*)
8426    LIBTOOL_CRUFT="-framework System -lcc_dynamic"
8427    if test "${enable_universalsdk}"; then
8428	    :
8429    else
8430        LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
8431    fi
8432    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8433    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8434  Darwin/*)
8435    gcc_version=`gcc -dumpversion`
8436    if test ${gcc_version} '<' 4.0
8437        then
8438            LIBTOOL_CRUFT="-lcc_dynamic"
8439        else
8440            LIBTOOL_CRUFT=""
8441    fi
8442    if test "$cross_compiling" = yes; then :
8443  ac_osx_32bit=yes
8444else
8445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446/* end confdefs.h.  */
8447
8448    #include <unistd.h>
8449    int main(int argc, char*argv[])
8450    {
8451      if (sizeof(long) == 4) {
8452    	  return 0;
8453      } else {
8454      	  return 1;
8455      }
8456    }
8457
8458_ACEOF
8459if ac_fn_c_try_run "$LINENO"; then :
8460  ac_osx_32bit=yes
8461else
8462  ac_osx_32bit=no
8463fi
8464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8465  conftest.$ac_objext conftest.beam conftest.$ac_ext
8466fi
8467
8468
8469    if test "${ac_osx_32bit}" = "yes"; then
8470    	case `/usr/bin/arch` in
8471    	i386)
8472    		MACOSX_DEFAULT_ARCH="i386"
8473    		;;
8474    	ppc)
8475    		MACOSX_DEFAULT_ARCH="ppc"
8476    		;;
8477    	*)
8478    		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
8479    		;;
8480    	esac
8481    else
8482    	case `/usr/bin/arch` in
8483    	i386)
8484    		MACOSX_DEFAULT_ARCH="x86_64"
8485    		;;
8486    	ppc)
8487    		MACOSX_DEFAULT_ARCH="ppc64"
8488    		;;
8489    	*)
8490    		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
8491    		;;
8492    	esac
8493
8494    fi
8495
8496    LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
8497    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8498    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8499esac
8500
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
8502$as_echo_n "checking for --enable-framework... " >&6; }
8503if test "$enable_framework"
8504then
8505	BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
8506	# -F. is needed to allow linking to the framework while
8507	# in the build location.
8508
8509$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
8510
8511	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8512$as_echo "yes" >&6; }
8513	if test $enable_shared = "yes"
8514	then
8515		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5
8516	fi
8517else
8518	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519$as_echo "no" >&6; }
8520fi
8521
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
8523$as_echo_n "checking for dyld... " >&6; }
8524case $ac_sys_system/$ac_sys_release in
8525  Darwin/*)
8526
8527$as_echo "#define WITH_DYLD 1" >>confdefs.h
8528
8529  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
8530$as_echo "always on for Darwin" >&6; }
8531  	;;
8532  *)
8533	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534$as_echo "no" >&6; }
8535	;;
8536esac
8537
8538# Set info about shared libraries.
8539
8540
8541
8542
8543
8544
8545# SO is the extension of shared libraries `(including the dot!)
8546# -- usually .so, .sl on HP-UX, .dll on Cygwin
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
8548$as_echo_n "checking SO... " >&6; }
8549if test -z "$SO"
8550then
8551	case $ac_sys_system in
8552	hp*|HP*)
8553		case `uname -m` in
8554			ia64) SO=.so;;
8555	  		*)    SO=.sl;;
8556		esac
8557		;;
8558	CYGWIN*)   SO=.dll;;
8559	*)	   SO=.so;;
8560	esac
8561else
8562	# this might also be a termcap variable, see #610332
8563        echo
8564        echo '====================================================================='
8565        echo '+                                                                   +'
8566	echo '+ WARNING: You have set SO in your environment.                     +'
8567        echo '+ Do you really mean to change the extension for shared libraries?  +'
8568        echo '+ Continuing in 10 seconds to let you to ponder.                    +'
8569        echo '+                                                                   +'
8570        echo '====================================================================='
8571	sleep 10
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
8574$as_echo "$SO" >&6; }
8575
8576
8577cat >>confdefs.h <<_ACEOF
8578#define SHLIB_EXT "$SO"
8579_ACEOF
8580
8581# LDSHARED is the ld *command* used to create shared library
8582# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
8583# (Shared libraries in this instance are shared modules to be loaded into
8584# Python, as opposed to building Python itself as a shared library.)
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
8586$as_echo_n "checking LDSHARED... " >&6; }
8587if test -z "$LDSHARED"
8588then
8589	case $ac_sys_system/$ac_sys_release in
8590	AIX*)
8591		BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
8592		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
8593		;;
8594	BeOS*)
8595		BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
8596		LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
8597		;;
8598	IRIX/5*) LDSHARED="ld -shared";;
8599	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
8600	SunOS/5*)
8601		if test "$GCC" = "yes" ; then
8602			LDSHARED='$(CC) -shared'
8603			LDCXXSHARED='$(CXX) -shared'
8604		else
8605			LDSHARED='$(CC) -G'
8606			LDCXXSHARED='$(CXX) -G'
8607		fi ;;
8608	hp*|HP*)
8609		if test "$GCC" = "yes" ; then
8610			LDSHARED='$(CC) -shared'
8611			LDCXXSHARED='$(CXX) -shared'
8612		else
8613			LDSHARED='ld -b'
8614		fi ;;
8615	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
8616	Darwin/1.3*)
8617		LDSHARED='$(CC) -bundle'
8618		LDCXXSHARED='$(CXX) -bundle'
8619		if test "$enable_framework" ; then
8620			# Link against the framework. All externals should be defined.
8621			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8622			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8623			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8624		else
8625			# No framework. Ignore undefined symbols, assuming they come from Python
8626			LDSHARED="$LDSHARED -undefined suppress"
8627			LDCXXSHARED="$LDCXXSHARED -undefined suppress"
8628		fi ;;
8629	Darwin/1.4*|Darwin/5.*|Darwin/6.*)
8630		LDSHARED='$(CC) -bundle'
8631		LDCXXSHARED='$(CXX) -bundle'
8632		if test "$enable_framework" ; then
8633			# Link against the framework. All externals should be defined.
8634			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8635			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8636			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8637		else
8638			# No framework, use the Python app as bundle-loader
8639			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8640			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8641			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8642		fi ;;
8643	Darwin/*)
8644		# Use -undefined dynamic_lookup whenever possible (10.3 and later).
8645		# This allows an extension to be used in any Python
8646
8647		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
8648				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8649		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
8650				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8651		if test ${dep_target_major} -eq 10 && \
8652		   test ${dep_target_minor} -le 2
8653		then
8654			# building for OS X 10.0 through 10.2
8655			LDSHARED='$(CC) -bundle'
8656			LDCXXSHARED='$(CXX) -bundle'
8657			if test "$enable_framework" ; then
8658				# Link against the framework. All externals should be defined.
8659				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8660				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8661				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8662			else
8663				# No framework, use the Python app as bundle-loader
8664				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8665				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8666				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8667			fi
8668		else
8669			# building for OS X 10.3 and later
8670			LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
8671			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
8672			BLDSHARED="$LDSHARED"
8673		fi
8674		;;
8675	Linux*|GNU*|QNX*)
8676		LDSHARED='$(CC) -shared'
8677		LDCXXSHARED='$(CXX) -shared';;
8678	BSD/OS*/4*)
8679		LDSHARED="gcc -shared"
8680		LDCXXSHARED="g++ -shared";;
8681	FreeBSD*)
8682		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8683		then
8684			LDSHARED='$(CC) -shared'
8685			LDCXXSHARED='$(CXX) -shared'
8686		else
8687			LDSHARED="ld -Bshareable"
8688		fi;;
8689	OpenBSD*)
8690		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8691		then
8692				LDSHARED='$(CC) -shared $(CCSHARED)'
8693				LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
8694		else
8695				case `uname -r` in
8696				[01].* | 2.[0-7] | 2.[0-7].*)
8697				   LDSHARED="ld -Bshareable ${LDFLAGS}"
8698				   ;;
8699				*)
8700				   LDSHARED='$(CC) -shared $(CCSHARED)'
8701				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
8702				   ;;
8703				esac
8704		fi;;
8705	NetBSD*|DragonFly*)
8706		LDSHARED='$(CC) -shared'
8707		LDCXXSHARED='$(CXX) -shared';;
8708	OpenUNIX*|UnixWare*)
8709		if test "$GCC" = "yes" ; then
8710			LDSHARED='$(CC) -shared'
8711			LDCXXSHARED='$(CXX) -shared'
8712		else
8713			LDSHARED='$(CC) -G'
8714			LDCXXSHARED='$(CXX) -G'
8715		fi;;
8716	SCO_SV*)
8717		LDSHARED='$(CC) -Wl,-G,-Bexport'
8718		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
8719	CYGWIN*)
8720		LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
8721		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
8722	atheos*)
8723		LDSHARED="gcc -shared"
8724		LDCXXSHARED="g++ -shared";;
8725	*)	LDSHARED="ld";;
8726	esac
8727fi
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
8729$as_echo "$LDSHARED" >&6; }
8730LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
8731BLDSHARED=${BLDSHARED-$LDSHARED}
8732# CCSHARED are the C *flags* used to create objects to go into a shared
8733# library (module) -- this is only needed for a few systems
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
8735$as_echo_n "checking CCSHARED... " >&6; }
8736if test -z "$CCSHARED"
8737then
8738	case $ac_sys_system/$ac_sys_release in
8739	SunOS*) if test "$GCC" = yes;
8740		then CCSHARED="-fPIC";
8741		elif test `uname -p` = sparc;
8742		then CCSHARED="-xcode=pic32";
8743		else CCSHARED="-Kpic";
8744		fi;;
8745	hp*|HP*) if test "$GCC" = yes;
8746		 then CCSHARED="-fPIC";
8747		 else CCSHARED="+z";
8748		 fi;;
8749	Linux*|GNU*) CCSHARED="-fPIC";;
8750	BSD/OS*/4*) CCSHARED="-fpic";;
8751	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
8752	OpenUNIX*|UnixWare*)
8753		if test "$GCC" = "yes"
8754		then CCSHARED="-fPIC"
8755		else CCSHARED="-KPIC"
8756		fi;;
8757	SCO_SV*)
8758		if test "$GCC" = "yes"
8759		then CCSHARED="-fPIC"
8760		else CCSHARED="-Kpic -belf"
8761		fi;;
8762	IRIX*/6*)  case $CC in
8763		   *gcc*) CCSHARED="-shared";;
8764		   *) CCSHARED="";;
8765		   esac;;
8766	atheos*) CCSHARED="-fPIC";;
8767	esac
8768fi
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
8770$as_echo "$CCSHARED" >&6; }
8771# LINKFORSHARED are the flags passed to the $(CC) command that links
8772# the python executable -- this is only needed for a few systems
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
8774$as_echo_n "checking LINKFORSHARED... " >&6; }
8775if test -z "$LINKFORSHARED"
8776then
8777	case $ac_sys_system/$ac_sys_release in
8778	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
8779	hp*|HP*)
8780	    LINKFORSHARED="-Wl,-E -Wl,+s";;
8781#	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
8782	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
8783	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
8784	# -u libsys_s pulls in all symbols in libsys
8785	Darwin/*)
8786		# -u _PyMac_Error is needed to pull in the mac toolbox glue,
8787		# which is
8788		# not used by the core itself but which needs to be in the core so
8789		# that dynamically loaded extension modules have access to it.
8790		# -prebind is no longer used, because it actually seems to give a
8791		# slowdown in stead of a speedup, maybe due to the large number of
8792		# dynamic loads Python does.
8793
8794		LINKFORSHARED="$extra_undefs"
8795		if test "$enable_framework"
8796		then
8797			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8798		fi
8799		LINKFORSHARED="$LINKFORSHARED";;
8800	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
8801	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
8802	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
8803	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
8804		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8805		then
8806			LINKFORSHARED="-Wl,--export-dynamic"
8807		fi;;
8808	SunOS/5*) case $CC in
8809		  *gcc*)
8810		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
8811		    then
8812			LINKFORSHARED="-Xlinker --export-dynamic"
8813		    fi;;
8814		  esac;;
8815	CYGWIN*)
8816		if test $enable_shared = "no"
8817		then
8818			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
8819		fi;;
8820	QNX*)
8821		# -Wl,-E causes the symbols to be added to the dynamic
8822		# symbol table so that they can be found when a module
8823		# is loaded.  -N 2048K causes the stack size to be set
8824		# to 2048 kilobytes so that the stack doesn't overflow
8825		# when running test_compile.py.
8826		LINKFORSHARED='-Wl,-E -N 2048K';;
8827	esac
8828fi
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
8830$as_echo "$LINKFORSHARED" >&6; }
8831
8832
8833
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
8835$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
8836if test ! "$LIBRARY" = "$LDLIBRARY"
8837then
8838	case $ac_sys_system in
8839	CYGWIN*)
8840		# Cygwin needs CCSHARED when building extension DLLs
8841		# but not when building the interpreter DLL.
8842		CFLAGSFORSHARED='';;
8843	*)
8844		CFLAGSFORSHARED='$(CCSHARED)'
8845	esac
8846fi
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
8848$as_echo "$CFLAGSFORSHARED" >&6; }
8849
8850# SHLIBS are libraries (except -lc and -lm) to link to the python shared
8851# library (with --enable-shared).
8852# For platforms on which shared libraries are not allowed to have unresolved
8853# symbols, this must be set to $(LIBS) (expanded by make). We do this even
8854# if it is not required, since it creates a dependency of the shared library
8855# to LIBS. This, in turn, means that applications linking the shared libpython
8856# don't need to link LIBS explicitly. The default should be only changed
8857# on systems where this approach causes problems.
8858
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
8860$as_echo_n "checking SHLIBS... " >&6; }
8861case "$ac_sys_system" in
8862	*)
8863		SHLIBS='$(LIBS)';;
8864esac
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
8866$as_echo "$SHLIBS" >&6; }
8867
8868
8869# checks for libraries
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8871$as_echo_n "checking for dlopen in -ldl... " >&6; }
8872if ${ac_cv_lib_dl_dlopen+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  ac_check_lib_save_LIBS=$LIBS
8876LIBS="-ldl  $LIBS"
8877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878/* end confdefs.h.  */
8879
8880/* Override any GCC internal prototype to avoid an error.
8881   Use char because int might match the return type of a GCC
8882   builtin and then its argument prototype would still apply.  */
8883#ifdef __cplusplus
8884extern "C"
8885#endif
8886char dlopen ();
8887int
8888main ()
8889{
8890return dlopen ();
8891  ;
8892  return 0;
8893}
8894_ACEOF
8895if ac_fn_c_try_link "$LINENO"; then :
8896  ac_cv_lib_dl_dlopen=yes
8897else
8898  ac_cv_lib_dl_dlopen=no
8899fi
8900rm -f core conftest.err conftest.$ac_objext \
8901    conftest$ac_exeext conftest.$ac_ext
8902LIBS=$ac_check_lib_save_LIBS
8903fi
8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8905$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8906if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8907  cat >>confdefs.h <<_ACEOF
8908#define HAVE_LIBDL 1
8909_ACEOF
8910
8911  LIBS="-ldl $LIBS"
8912
8913fi
8914	# Dynamic linking for SunOS/Solaris and SYSV
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8916$as_echo_n "checking for shl_load in -ldld... " >&6; }
8917if ${ac_cv_lib_dld_shl_load+:} false; then :
8918  $as_echo_n "(cached) " >&6
8919else
8920  ac_check_lib_save_LIBS=$LIBS
8921LIBS="-ldld  $LIBS"
8922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923/* end confdefs.h.  */
8924
8925/* Override any GCC internal prototype to avoid an error.
8926   Use char because int might match the return type of a GCC
8927   builtin and then its argument prototype would still apply.  */
8928#ifdef __cplusplus
8929extern "C"
8930#endif
8931char shl_load ();
8932int
8933main ()
8934{
8935return shl_load ();
8936  ;
8937  return 0;
8938}
8939_ACEOF
8940if ac_fn_c_try_link "$LINENO"; then :
8941  ac_cv_lib_dld_shl_load=yes
8942else
8943  ac_cv_lib_dld_shl_load=no
8944fi
8945rm -f core conftest.err conftest.$ac_objext \
8946    conftest$ac_exeext conftest.$ac_ext
8947LIBS=$ac_check_lib_save_LIBS
8948fi
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8950$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8951if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8952  cat >>confdefs.h <<_ACEOF
8953#define HAVE_LIBDLD 1
8954_ACEOF
8955
8956  LIBS="-ldld $LIBS"
8957
8958fi
8959	# Dynamic linking for HP-UX
8960
8961# only check for sem_init if thread support is requested
8962if test "$with_threads" = "yes" -o -z "$with_threads"; then
8963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
8964$as_echo_n "checking for library containing sem_init... " >&6; }
8965if ${ac_cv_search_sem_init+:} false; then :
8966  $as_echo_n "(cached) " >&6
8967else
8968  ac_func_search_save_LIBS=$LIBS
8969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970/* end confdefs.h.  */
8971
8972/* Override any GCC internal prototype to avoid an error.
8973   Use char because int might match the return type of a GCC
8974   builtin and then its argument prototype would still apply.  */
8975#ifdef __cplusplus
8976extern "C"
8977#endif
8978char sem_init ();
8979int
8980main ()
8981{
8982return sem_init ();
8983  ;
8984  return 0;
8985}
8986_ACEOF
8987for ac_lib in '' pthread rt posix4; do
8988  if test -z "$ac_lib"; then
8989    ac_res="none required"
8990  else
8991    ac_res=-l$ac_lib
8992    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8993  fi
8994  if ac_fn_c_try_link "$LINENO"; then :
8995  ac_cv_search_sem_init=$ac_res
8996fi
8997rm -f core conftest.err conftest.$ac_objext \
8998    conftest$ac_exeext
8999  if ${ac_cv_search_sem_init+:} false; then :
9000  break
9001fi
9002done
9003if ${ac_cv_search_sem_init+:} false; then :
9004
9005else
9006  ac_cv_search_sem_init=no
9007fi
9008rm conftest.$ac_ext
9009LIBS=$ac_func_search_save_LIBS
9010fi
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
9012$as_echo "$ac_cv_search_sem_init" >&6; }
9013ac_res=$ac_cv_search_sem_init
9014if test "$ac_res" != no; then :
9015  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9016
9017fi
9018 # 'Real Time' functions on Solaris
9019						# posix4 on Solaris 2.6
9020						# pthread (first!) on Linux
9021fi
9022
9023# check if we need libintl for locale functions
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
9025$as_echo_n "checking for textdomain in -lintl... " >&6; }
9026if ${ac_cv_lib_intl_textdomain+:} false; then :
9027  $as_echo_n "(cached) " >&6
9028else
9029  ac_check_lib_save_LIBS=$LIBS
9030LIBS="-lintl  $LIBS"
9031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032/* end confdefs.h.  */
9033
9034/* Override any GCC internal prototype to avoid an error.
9035   Use char because int might match the return type of a GCC
9036   builtin and then its argument prototype would still apply.  */
9037#ifdef __cplusplus
9038extern "C"
9039#endif
9040char textdomain ();
9041int
9042main ()
9043{
9044return textdomain ();
9045  ;
9046  return 0;
9047}
9048_ACEOF
9049if ac_fn_c_try_link "$LINENO"; then :
9050  ac_cv_lib_intl_textdomain=yes
9051else
9052  ac_cv_lib_intl_textdomain=no
9053fi
9054rm -f core conftest.err conftest.$ac_objext \
9055    conftest$ac_exeext conftest.$ac_ext
9056LIBS=$ac_check_lib_save_LIBS
9057fi
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
9059$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
9060if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
9061
9062$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
9063
9064fi
9065
9066
9067# checks for system dependent C++ extensions support
9068case "$ac_sys_system" in
9069	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9070$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
9071		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072/* end confdefs.h.  */
9073
9074		  #include <load.h>
9075int
9076main ()
9077{
9078loadAndInit("", 0, "")
9079  ;
9080  return 0;
9081}
9082
9083_ACEOF
9084if ac_fn_c_try_link "$LINENO"; then :
9085
9086
9087$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
9088
9089		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9090$as_echo "yes" >&6; }
9091
9092else
9093
9094		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
9096
9097fi
9098rm -f core conftest.err conftest.$ac_objext \
9099    conftest$ac_exeext conftest.$ac_ext;;
9100	*) ;;
9101esac
9102
9103# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9104# BeOS' sockets are stashed in libnet.
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
9106$as_echo_n "checking for t_open in -lnsl... " >&6; }
9107if ${ac_cv_lib_nsl_t_open+:} false; then :
9108  $as_echo_n "(cached) " >&6
9109else
9110  ac_check_lib_save_LIBS=$LIBS
9111LIBS="-lnsl  $LIBS"
9112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h.  */
9114
9115/* Override any GCC internal prototype to avoid an error.
9116   Use char because int might match the return type of a GCC
9117   builtin and then its argument prototype would still apply.  */
9118#ifdef __cplusplus
9119extern "C"
9120#endif
9121char t_open ();
9122int
9123main ()
9124{
9125return t_open ();
9126  ;
9127  return 0;
9128}
9129_ACEOF
9130if ac_fn_c_try_link "$LINENO"; then :
9131  ac_cv_lib_nsl_t_open=yes
9132else
9133  ac_cv_lib_nsl_t_open=no
9134fi
9135rm -f core conftest.err conftest.$ac_objext \
9136    conftest$ac_exeext conftest.$ac_ext
9137LIBS=$ac_check_lib_save_LIBS
9138fi
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
9140$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
9141if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
9142  LIBS="-lnsl $LIBS"
9143fi
9144 # SVR4
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9146$as_echo_n "checking for socket in -lsocket... " >&6; }
9147if ${ac_cv_lib_socket_socket+:} false; then :
9148  $as_echo_n "(cached) " >&6
9149else
9150  ac_check_lib_save_LIBS=$LIBS
9151LIBS="-lsocket $LIBS $LIBS"
9152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h.  */
9154
9155/* Override any GCC internal prototype to avoid an error.
9156   Use char because int might match the return type of a GCC
9157   builtin and then its argument prototype would still apply.  */
9158#ifdef __cplusplus
9159extern "C"
9160#endif
9161char socket ();
9162int
9163main ()
9164{
9165return socket ();
9166  ;
9167  return 0;
9168}
9169_ACEOF
9170if ac_fn_c_try_link "$LINENO"; then :
9171  ac_cv_lib_socket_socket=yes
9172else
9173  ac_cv_lib_socket_socket=no
9174fi
9175rm -f core conftest.err conftest.$ac_objext \
9176    conftest$ac_exeext conftest.$ac_ext
9177LIBS=$ac_check_lib_save_LIBS
9178fi
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9180$as_echo "$ac_cv_lib_socket_socket" >&6; }
9181if test "x$ac_cv_lib_socket_socket" = xyes; then :
9182  LIBS="-lsocket $LIBS"
9183fi
9184 # SVR4 sockets
9185
9186case "$ac_sys_system" in
9187BeOS*)
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
9189$as_echo_n "checking for socket in -lnet... " >&6; }
9190if ${ac_cv_lib_net_socket+:} false; then :
9191  $as_echo_n "(cached) " >&6
9192else
9193  ac_check_lib_save_LIBS=$LIBS
9194LIBS="-lnet $LIBS $LIBS"
9195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h.  */
9197
9198/* Override any GCC internal prototype to avoid an error.
9199   Use char because int might match the return type of a GCC
9200   builtin and then its argument prototype would still apply.  */
9201#ifdef __cplusplus
9202extern "C"
9203#endif
9204char socket ();
9205int
9206main ()
9207{
9208return socket ();
9209  ;
9210  return 0;
9211}
9212_ACEOF
9213if ac_fn_c_try_link "$LINENO"; then :
9214  ac_cv_lib_net_socket=yes
9215else
9216  ac_cv_lib_net_socket=no
9217fi
9218rm -f core conftest.err conftest.$ac_objext \
9219    conftest$ac_exeext conftest.$ac_ext
9220LIBS=$ac_check_lib_save_LIBS
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
9223$as_echo "$ac_cv_lib_net_socket" >&6; }
9224if test "x$ac_cv_lib_net_socket" = xyes; then :
9225  LIBS="-lnet $LIBS"
9226fi
9227 # BeOS
9228;;
9229esac
9230
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
9232$as_echo_n "checking for --with-libs... " >&6; }
9233
9234# Check whether --with-libs was given.
9235if test "${with_libs+set}" = set; then :
9236  withval=$with_libs;
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9238$as_echo "$withval" >&6; }
9239LIBS="$withval $LIBS"
9240
9241else
9242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243$as_echo "no" >&6; }
9244fi
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9255	if test -n "$ac_tool_prefix"; then
9256  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9257set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9259$as_echo_n "checking for $ac_word... " >&6; }
9260if ${ac_cv_path_PKG_CONFIG+:} false; then :
9261  $as_echo_n "(cached) " >&6
9262else
9263  case $PKG_CONFIG in
9264  [\\/]* | ?:[\\/]*)
9265  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9266  ;;
9267  *)
9268  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269for as_dir in $PATH
9270do
9271  IFS=$as_save_IFS
9272  test -z "$as_dir" && as_dir=.
9273    for ac_exec_ext in '' $ac_executable_extensions; do
9274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9275    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277    break 2
9278  fi
9279done
9280  done
9281IFS=$as_save_IFS
9282
9283  ;;
9284esac
9285fi
9286PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9287if test -n "$PKG_CONFIG"; then
9288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9289$as_echo "$PKG_CONFIG" >&6; }
9290else
9291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292$as_echo "no" >&6; }
9293fi
9294
9295
9296fi
9297if test -z "$ac_cv_path_PKG_CONFIG"; then
9298  ac_pt_PKG_CONFIG=$PKG_CONFIG
9299  # Extract the first word of "pkg-config", so it can be a program name with args.
9300set dummy pkg-config; ac_word=$2
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9302$as_echo_n "checking for $ac_word... " >&6; }
9303if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9304  $as_echo_n "(cached) " >&6
9305else
9306  case $ac_pt_PKG_CONFIG in
9307  [\\/]* | ?:[\\/]*)
9308  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9309  ;;
9310  *)
9311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314  IFS=$as_save_IFS
9315  test -z "$as_dir" && as_dir=.
9316    for ac_exec_ext in '' $ac_executable_extensions; do
9317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9320    break 2
9321  fi
9322done
9323  done
9324IFS=$as_save_IFS
9325
9326  ;;
9327esac
9328fi
9329ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9330if test -n "$ac_pt_PKG_CONFIG"; then
9331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9332$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9333else
9334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335$as_echo "no" >&6; }
9336fi
9337
9338  if test "x$ac_pt_PKG_CONFIG" = x; then
9339    PKG_CONFIG=""
9340  else
9341    case $cross_compiling:$ac_tool_warned in
9342yes:)
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9345ac_tool_warned=yes ;;
9346esac
9347    PKG_CONFIG=$ac_pt_PKG_CONFIG
9348  fi
9349else
9350  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9351fi
9352
9353fi
9354if test -n "$PKG_CONFIG"; then
9355	_pkg_min_version=0.9.0
9356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9357$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9358	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9359		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9360$as_echo "yes" >&6; }
9361	else
9362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363$as_echo "no" >&6; }
9364		PKG_CONFIG=""
9365	fi
9366fi
9367
9368# Check for use of the system expat library
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
9370$as_echo_n "checking for --with-system-expat... " >&6; }
9371
9372# Check whether --with-system_expat was given.
9373if test "${with_system_expat+set}" = set; then :
9374  withval=$with_system_expat;
9375else
9376  with_system_expat="no"
9377fi
9378
9379
9380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
9381$as_echo "$with_system_expat" >&6; }
9382
9383# Check for use of the system libffi library
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
9385$as_echo_n "checking for --with-system-ffi... " >&6; }
9386
9387# Check whether --with-system_ffi was given.
9388if test "${with_system_ffi+set}" = set; then :
9389  withval=$with_system_ffi;
9390else
9391  with_system_ffi="no"
9392fi
9393
9394
9395if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
9396    LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
9397else
9398    LIBFFI_INCLUDEDIR=""
9399fi
9400
9401
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
9403$as_echo "$with_system_ffi" >&6; }
9404
9405# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
9406
9407
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
9409$as_echo_n "checking for --with-tcltk-includes... " >&6; }
9410
9411# Check whether --with-tcltk-includes was given.
9412if test "${with_tcltk_includes+set}" = set; then :
9413  withval=$with_tcltk_includes;
9414else
9415  with_tcltk_includes="default"
9416fi
9417
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
9419$as_echo "$with_tcltk_includes" >&6; }
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
9421$as_echo_n "checking for --with-tcltk-libs... " >&6; }
9422
9423# Check whether --with-tcltk-libs was given.
9424if test "${with_tcltk_libs+set}" = set; then :
9425  withval=$with_tcltk_libs;
9426else
9427  with_tcltk_libs="default"
9428fi
9429
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
9431$as_echo "$with_tcltk_libs" >&6; }
9432if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
9433then
9434  if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
9435  then
9436    as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
9437  fi
9438  TCLTK_INCLUDES=""
9439  TCLTK_LIBS=""
9440else
9441  TCLTK_INCLUDES="$with_tcltk_includes"
9442  TCLTK_LIBS="$with_tcltk_libs"
9443fi
9444
9445# Check for --with-dbmliborder
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
9447$as_echo_n "checking for --with-dbmliborder... " >&6; }
9448
9449# Check whether --with-dbmliborder was given.
9450if test "${with_dbmliborder+set}" = set; then :
9451  withval=$with_dbmliborder;
9452if test x$with_dbmliborder = xyes
9453then
9454as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
9455else
9456  for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
9457    if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
9458    then
9459      as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
9460    fi
9461  done
9462fi
9463fi
9464
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
9466$as_echo "$with_dbmliborder" >&6; }
9467
9468# Determine if signalmodule should be used.
9469
9470
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
9472$as_echo_n "checking for --with-signal-module... " >&6; }
9473
9474# Check whether --with-signal-module was given.
9475if test "${with_signal_module+set}" = set; then :
9476  withval=$with_signal_module;
9477fi
9478
9479
9480if test -z "$with_signal_module"
9481then with_signal_module="yes"
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
9484$as_echo "$with_signal_module" >&6; }
9485
9486if test "${with_signal_module}" = "yes"; then
9487	USE_SIGNAL_MODULE=""
9488	SIGNAL_OBJS=""
9489else
9490	USE_SIGNAL_MODULE="#"
9491	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
9492fi
9493
9494# This is used to generate Setup.config
9495
9496USE_THREAD_MODULE=""
9497
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
9499$as_echo_n "checking for --with-dec-threads... " >&6; }
9500
9501
9502# Check whether --with-dec-threads was given.
9503if test "${with_dec_threads+set}" = set; then :
9504  withval=$with_dec_threads;
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9506$as_echo "$withval" >&6; }
9507LDLAST=-threads
9508if test "${with_thread+set}" != set; then
9509   with_thread="$withval";
9510fi
9511else
9512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513$as_echo "no" >&6; }
9514fi
9515
9516
9517# Templates for things AC_DEFINEd more than once.
9518# For a single AC_DEFINE, no template is needed.
9519
9520
9521
9522
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
9524$as_echo_n "checking for --with-threads... " >&6; }
9525
9526# Check whether --with-threads was given.
9527if test "${with_threads+set}" = set; then :
9528  withval=$with_threads;
9529fi
9530
9531
9532# --with-thread is deprecated, but check for it anyway
9533
9534# Check whether --with-thread was given.
9535if test "${with_thread+set}" = set; then :
9536  withval=$with_thread; with_threads=$with_thread
9537fi
9538
9539
9540if test -z "$with_threads"
9541then with_threads="yes"
9542fi
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
9544$as_echo "$with_threads" >&6; }
9545
9546
9547if test "$with_threads" = "no"
9548then
9549    USE_THREAD_MODULE="#"
9550elif test "$ac_cv_pthread_is_default" = yes
9551then
9552    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9553
9554    # Defining _REENTRANT on system with POSIX threads should not hurt.
9555    $as_echo "#define _REENTRANT 1" >>confdefs.h
9556
9557    posix_threads=yes
9558    THREADOBJ="Python/thread.o"
9559elif test "$ac_cv_kpthread" = "yes"
9560then
9561    CC="$CC -Kpthread"
9562    if test "$ac_cv_cxx_thread" = "yes"; then
9563        CXX="$CXX -Kpthread"
9564    fi
9565    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9566
9567    posix_threads=yes
9568    THREADOBJ="Python/thread.o"
9569elif test "$ac_cv_kthread" = "yes"
9570then
9571    CC="$CC -Kthread"
9572    if test "$ac_cv_cxx_thread" = "yes"; then
9573        CXX="$CXX -Kthread"
9574    fi
9575    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9576
9577    posix_threads=yes
9578    THREADOBJ="Python/thread.o"
9579elif test "$ac_cv_pthread" = "yes"
9580then
9581    CC="$CC -pthread"
9582    if test "$ac_cv_cxx_thread" = "yes"; then
9583        CXX="$CXX -pthread"
9584    fi
9585    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9586
9587    posix_threads=yes
9588    THREADOBJ="Python/thread.o"
9589else
9590    if test ! -z "$with_threads" -a -d "$with_threads"
9591    then LDFLAGS="$LDFLAGS -L$with_threads"
9592    fi
9593    if test ! -z "$withval" -a -d "$withval"
9594    then LDFLAGS="$LDFLAGS -L$withval"
9595    fi
9596
9597    # According to the POSIX spec, a pthreads implementation must
9598    # define _POSIX_THREADS in unistd.h. Some apparently don't
9599    # (e.g. gnu pth with pthread emulation)
9600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
9601$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
9602    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h.  */
9604
9605#include <unistd.h>
9606#ifdef _POSIX_THREADS
9607yes
9608#endif
9609
9610_ACEOF
9611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9612  $EGREP "yes" >/dev/null 2>&1; then :
9613  unistd_defines_pthreads=yes
9614else
9615  unistd_defines_pthreads=no
9616fi
9617rm -f conftest*
9618
9619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
9620$as_echo "$unistd_defines_pthreads" >&6; }
9621
9622    $as_echo "#define _REENTRANT 1" >>confdefs.h
9623
9624    ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
9625if test "x$ac_cv_header_cthreads_h" = xyes; then :
9626  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9627
9628    $as_echo "#define C_THREADS 1" >>confdefs.h
9629
9630
9631$as_echo "#define HURD_C_THREADS 1" >>confdefs.h
9632
9633    LIBS="$LIBS -lthreads"
9634    THREADOBJ="Python/thread.o"
9635else
9636
9637    ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
9638if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
9639  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9640
9641    $as_echo "#define C_THREADS 1" >>confdefs.h
9642
9643
9644$as_echo "#define MACH_C_THREADS 1" >>confdefs.h
9645
9646    THREADOBJ="Python/thread.o"
9647else
9648
9649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
9650$as_echo_n "checking for --with-pth... " >&6; }
9651
9652# Check whether --with-pth was given.
9653if test "${with_pth+set}" = set; then :
9654  withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9655$as_echo "$withval" >&6; }
9656                  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9657
9658
9659$as_echo "#define HAVE_PTH 1" >>confdefs.h
9660
9661                  LIBS="-lpth $LIBS"
9662                  THREADOBJ="Python/thread.o"
9663else
9664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665$as_echo "no" >&6; }
9666
9667    # Just looking for pthread_create in libpthread is not enough:
9668    # on HP/UX, pthread.h renames pthread_create to a different symbol name.
9669    # So we really have to include pthread.h, and then link.
9670    _libs=$LIBS
9671    LIBS="$LIBS -lpthread"
9672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
9673$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
9674    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675/* end confdefs.h.  */
9676
9677#include <stdio.h>
9678#include <pthread.h>
9679
9680void * start_routine (void *arg) { exit (0); }
9681int
9682main ()
9683{
9684
9685pthread_create (NULL, NULL, start_routine, NULL)
9686  ;
9687  return 0;
9688}
9689_ACEOF
9690if ac_fn_c_try_link "$LINENO"; then :
9691
9692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9693$as_echo "yes" >&6; }
9694    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9695
9696    posix_threads=yes
9697    THREADOBJ="Python/thread.o"
9698else
9699
9700    LIBS=$_libs
9701    ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
9702if test "x$ac_cv_func_pthread_detach" = xyes; then :
9703  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9704
9705    posix_threads=yes
9706    THREADOBJ="Python/thread.o"
9707else
9708
9709    ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
9710if test "x$ac_cv_header_atheos_threads_h" = xyes; then :
9711  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9712
9713
9714$as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
9715
9716    THREADOBJ="Python/thread.o"
9717else
9718
9719    ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
9720if test "x$ac_cv_header_kernel_OS_h" = xyes; then :
9721  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9722
9723
9724$as_echo "#define BEOS_THREADS 1" >>confdefs.h
9725
9726    THREADOBJ="Python/thread.o"
9727else
9728
9729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
9730$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
9731if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
9732  $as_echo_n "(cached) " >&6
9733else
9734  ac_check_lib_save_LIBS=$LIBS
9735LIBS="-lpthreads  $LIBS"
9736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738
9739/* Override any GCC internal prototype to avoid an error.
9740   Use char because int might match the return type of a GCC
9741   builtin and then its argument prototype would still apply.  */
9742#ifdef __cplusplus
9743extern "C"
9744#endif
9745char pthread_create ();
9746int
9747main ()
9748{
9749return pthread_create ();
9750  ;
9751  return 0;
9752}
9753_ACEOF
9754if ac_fn_c_try_link "$LINENO"; then :
9755  ac_cv_lib_pthreads_pthread_create=yes
9756else
9757  ac_cv_lib_pthreads_pthread_create=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext \
9760    conftest$ac_exeext conftest.$ac_ext
9761LIBS=$ac_check_lib_save_LIBS
9762fi
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
9764$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
9765if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
9766  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9767
9768    posix_threads=yes
9769    LIBS="$LIBS -lpthreads"
9770    THREADOBJ="Python/thread.o"
9771else
9772
9773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
9774$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
9775if ${ac_cv_lib_c_r_pthread_create+:} false; then :
9776  $as_echo_n "(cached) " >&6
9777else
9778  ac_check_lib_save_LIBS=$LIBS
9779LIBS="-lc_r  $LIBS"
9780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781/* end confdefs.h.  */
9782
9783/* Override any GCC internal prototype to avoid an error.
9784   Use char because int might match the return type of a GCC
9785   builtin and then its argument prototype would still apply.  */
9786#ifdef __cplusplus
9787extern "C"
9788#endif
9789char pthread_create ();
9790int
9791main ()
9792{
9793return pthread_create ();
9794  ;
9795  return 0;
9796}
9797_ACEOF
9798if ac_fn_c_try_link "$LINENO"; then :
9799  ac_cv_lib_c_r_pthread_create=yes
9800else
9801  ac_cv_lib_c_r_pthread_create=no
9802fi
9803rm -f core conftest.err conftest.$ac_objext \
9804    conftest$ac_exeext conftest.$ac_ext
9805LIBS=$ac_check_lib_save_LIBS
9806fi
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
9808$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
9809if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
9810  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9811
9812    posix_threads=yes
9813    LIBS="$LIBS -lc_r"
9814    THREADOBJ="Python/thread.o"
9815else
9816
9817    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
9818$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
9819if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
9820  $as_echo_n "(cached) " >&6
9821else
9822  ac_check_lib_save_LIBS=$LIBS
9823LIBS="-lpthread  $LIBS"
9824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825/* end confdefs.h.  */
9826
9827/* Override any GCC internal prototype to avoid an error.
9828   Use char because int might match the return type of a GCC
9829   builtin and then its argument prototype would still apply.  */
9830#ifdef __cplusplus
9831extern "C"
9832#endif
9833char __pthread_create_system ();
9834int
9835main ()
9836{
9837return __pthread_create_system ();
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842if ac_fn_c_try_link "$LINENO"; then :
9843  ac_cv_lib_pthread___pthread_create_system=yes
9844else
9845  ac_cv_lib_pthread___pthread_create_system=no
9846fi
9847rm -f core conftest.err conftest.$ac_objext \
9848    conftest$ac_exeext conftest.$ac_ext
9849LIBS=$ac_check_lib_save_LIBS
9850fi
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
9852$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
9853if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
9854  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9855
9856    posix_threads=yes
9857    LIBS="$LIBS -lpthread"
9858    THREADOBJ="Python/thread.o"
9859else
9860
9861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
9862$as_echo_n "checking for pthread_create in -lcma... " >&6; }
9863if ${ac_cv_lib_cma_pthread_create+:} false; then :
9864  $as_echo_n "(cached) " >&6
9865else
9866  ac_check_lib_save_LIBS=$LIBS
9867LIBS="-lcma  $LIBS"
9868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870
9871/* Override any GCC internal prototype to avoid an error.
9872   Use char because int might match the return type of a GCC
9873   builtin and then its argument prototype would still apply.  */
9874#ifdef __cplusplus
9875extern "C"
9876#endif
9877char pthread_create ();
9878int
9879main ()
9880{
9881return pthread_create ();
9882  ;
9883  return 0;
9884}
9885_ACEOF
9886if ac_fn_c_try_link "$LINENO"; then :
9887  ac_cv_lib_cma_pthread_create=yes
9888else
9889  ac_cv_lib_cma_pthread_create=no
9890fi
9891rm -f core conftest.err conftest.$ac_objext \
9892    conftest$ac_exeext conftest.$ac_ext
9893LIBS=$ac_check_lib_save_LIBS
9894fi
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
9896$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
9897if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
9898  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9899
9900    posix_threads=yes
9901    LIBS="$LIBS -lcma"
9902    THREADOBJ="Python/thread.o"
9903else
9904
9905    USE_THREAD_MODULE="#"
9906fi
9907
9908
9909fi
9910
9911fi
9912
9913fi
9914
9915fi
9916
9917
9918fi
9919
9920
9921fi
9922
9923fi
9924rm -f core conftest.err conftest.$ac_objext \
9925    conftest$ac_exeext conftest.$ac_ext
9926fi
9927
9928fi
9929
9930
9931fi
9932
9933
9934
9935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
9936$as_echo_n "checking for usconfig in -lmpc... " >&6; }
9937if ${ac_cv_lib_mpc_usconfig+:} false; then :
9938  $as_echo_n "(cached) " >&6
9939else
9940  ac_check_lib_save_LIBS=$LIBS
9941LIBS="-lmpc  $LIBS"
9942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943/* end confdefs.h.  */
9944
9945/* Override any GCC internal prototype to avoid an error.
9946   Use char because int might match the return type of a GCC
9947   builtin and then its argument prototype would still apply.  */
9948#ifdef __cplusplus
9949extern "C"
9950#endif
9951char usconfig ();
9952int
9953main ()
9954{
9955return usconfig ();
9956  ;
9957  return 0;
9958}
9959_ACEOF
9960if ac_fn_c_try_link "$LINENO"; then :
9961  ac_cv_lib_mpc_usconfig=yes
9962else
9963  ac_cv_lib_mpc_usconfig=no
9964fi
9965rm -f core conftest.err conftest.$ac_objext \
9966    conftest$ac_exeext conftest.$ac_ext
9967LIBS=$ac_check_lib_save_LIBS
9968fi
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
9970$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
9971if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
9972  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9973
9974    LIBS="$LIBS -lmpc"
9975    THREADOBJ="Python/thread.o"
9976    USE_THREAD_MODULE=""
9977fi
9978
9979
9980    if test "$posix_threads" != "yes"; then
9981      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
9982$as_echo_n "checking for thr_create in -lthread... " >&6; }
9983if ${ac_cv_lib_thread_thr_create+:} false; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  ac_check_lib_save_LIBS=$LIBS
9987LIBS="-lthread  $LIBS"
9988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989/* end confdefs.h.  */
9990
9991/* Override any GCC internal prototype to avoid an error.
9992   Use char because int might match the return type of a GCC
9993   builtin and then its argument prototype would still apply.  */
9994#ifdef __cplusplus
9995extern "C"
9996#endif
9997char thr_create ();
9998int
9999main ()
10000{
10001return thr_create ();
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006if ac_fn_c_try_link "$LINENO"; then :
10007  ac_cv_lib_thread_thr_create=yes
10008else
10009  ac_cv_lib_thread_thr_create=no
10010fi
10011rm -f core conftest.err conftest.$ac_objext \
10012    conftest$ac_exeext conftest.$ac_ext
10013LIBS=$ac_check_lib_save_LIBS
10014fi
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
10016$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
10017if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
10018  $as_echo "#define WITH_THREAD 1" >>confdefs.h
10019
10020      LIBS="$LIBS -lthread"
10021      THREADOBJ="Python/thread.o"
10022      USE_THREAD_MODULE=""
10023fi
10024
10025    fi
10026
10027    if test "$USE_THREAD_MODULE" != "#"
10028    then
10029        # If the above checks didn't disable threads, (at least) OSF1
10030        # needs this '-threads' argument during linking.
10031        case $ac_sys_system in
10032        OSF1) LDLAST=-threads;;
10033        esac
10034    fi
10035fi
10036
10037if test "$posix_threads" = "yes"; then
10038      if test "$unistd_defines_pthreads" = "no"; then
10039
10040$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
10041
10042      fi
10043
10044      # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
10045      case  $ac_sys_system/$ac_sys_release in
10046      SunOS/5.6)
10047$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
10048
10049		       ;;
10050      SunOS/5.8)
10051$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10052
10053		       ;;
10054      AIX/*)
10055$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10056
10057		       ;;
10058      esac
10059
10060      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10061$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
10062      if ${ac_cv_pthread_system_supported+:} false; then :
10063  $as_echo_n "(cached) " >&6
10064else
10065  if test "$cross_compiling" = yes; then :
10066  ac_cv_pthread_system_supported=no
10067else
10068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069/* end confdefs.h.  */
10070
10071      #include <stdio.h>
10072      #include <pthread.h>
10073      void *foo(void *parm) {
10074        return NULL;
10075      }
10076      main() {
10077        pthread_attr_t attr;
10078        pthread_t id;
10079        if (pthread_attr_init(&attr)) exit(-1);
10080        if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
10081        if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
10082        exit(0);
10083      }
10084_ACEOF
10085if ac_fn_c_try_run "$LINENO"; then :
10086  ac_cv_pthread_system_supported=yes
10087else
10088  ac_cv_pthread_system_supported=no
10089fi
10090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10091  conftest.$ac_objext conftest.beam conftest.$ac_ext
10092fi
10093
10094
10095fi
10096
10097      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10098$as_echo "$ac_cv_pthread_system_supported" >&6; }
10099      if test "$ac_cv_pthread_system_supported" = "yes"; then
10100
10101$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
10102
10103      fi
10104      for ac_func in pthread_sigmask
10105do :
10106  ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
10107if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
10108  cat >>confdefs.h <<_ACEOF
10109#define HAVE_PTHREAD_SIGMASK 1
10110_ACEOF
10111 case $ac_sys_system in
10112        CYGWIN*)
10113
10114$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
10115
10116            ;;
10117        esac
10118fi
10119done
10120
10121      for ac_func in pthread_atfork
10122do :
10123  ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
10124if test "x$ac_cv_func_pthread_atfork" = xyes; then :
10125  cat >>confdefs.h <<_ACEOF
10126#define HAVE_PTHREAD_ATFORK 1
10127_ACEOF
10128
10129fi
10130done
10131
10132fi
10133
10134
10135# Check for enable-ipv6
10136
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10138$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
10139# Check whether --enable-ipv6 was given.
10140if test "${enable_ipv6+set}" = set; then :
10141  enableval=$enable_ipv6;  case "$enableval" in
10142  no)
10143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144$as_echo "no" >&6; }
10145       ipv6=no
10146       ;;
10147  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148$as_echo "yes" >&6; }
10149       $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
10150
10151       ipv6=yes
10152       ;;
10153  esac
10154else
10155
10156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157/* end confdefs.h.  */
10158 /* AF_INET6 available check */
10159#include <sys/types.h>
10160#include <sys/socket.h>
10161int
10162main ()
10163{
10164int domain = AF_INET6;
10165  ;
10166  return 0;
10167}
10168_ACEOF
10169if ac_fn_c_try_compile "$LINENO"; then :
10170
10171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10172$as_echo "yes" >&6; }
10173  ipv6=yes
10174
10175else
10176
10177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178$as_echo "no" >&6; }
10179  ipv6=no
10180
10181fi
10182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183
10184if test "$ipv6" = "yes"; then
10185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
10186$as_echo_n "checking if RFC2553 API is available... " >&6; }
10187	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h.  */
10189
10190	  #include <sys/types.h>
10191#include <netinet/in.h>
10192int
10193main ()
10194{
10195struct sockaddr_in6 x;
10196			    x.sin6_scope_id;
10197  ;
10198  return 0;
10199}
10200
10201_ACEOF
10202if ac_fn_c_try_compile "$LINENO"; then :
10203
10204	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10205$as_echo "yes" >&6; }
10206	  ipv6=yes
10207
10208else
10209
10210	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211$as_echo "no" >&6; }
10212	  ipv6=no
10213
10214fi
10215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10216fi
10217
10218if test "$ipv6" = "yes"; then
10219	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
10220
10221fi
10222
10223fi
10224
10225
10226ipv6type=unknown
10227ipv6lib=none
10228ipv6trylibc=no
10229
10230if test "$ipv6" = "yes"; then
10231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
10232$as_echo_n "checking ipv6 stack type... " >&6; }
10233	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
10234	do
10235		case $i in
10236		inria)
10237						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239
10240#include <netinet/in.h>
10241#ifdef IPV6_INRIA_VERSION
10242yes
10243#endif
10244_ACEOF
10245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10246  $EGREP "yes" >/dev/null 2>&1; then :
10247  ipv6type=$i
10248fi
10249rm -f conftest*
10250
10251			;;
10252		kame)
10253						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254/* end confdefs.h.  */
10255
10256#include <netinet/in.h>
10257#ifdef __KAME__
10258yes
10259#endif
10260_ACEOF
10261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10262  $EGREP "yes" >/dev/null 2>&1; then :
10263  ipv6type=$i;
10264				ipv6lib=inet6
10265				ipv6libdir=/usr/local/v6/lib
10266				ipv6trylibc=yes
10267fi
10268rm -f conftest*
10269
10270			;;
10271		linux-glibc)
10272						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h.  */
10274
10275#include <features.h>
10276#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
10277yes
10278#endif
10279_ACEOF
10280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10281  $EGREP "yes" >/dev/null 2>&1; then :
10282  ipv6type=$i;
10283				ipv6trylibc=yes
10284fi
10285rm -f conftest*
10286
10287			;;
10288		linux-inet6)
10289						if test -d /usr/inet6; then
10290				ipv6type=$i
10291				ipv6lib=inet6
10292				ipv6libdir=/usr/inet6/lib
10293				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
10294			fi
10295			;;
10296		solaris)
10297			if test -f /etc/netconfig; then
10298                          if $GREP -q tcp6 /etc/netconfig; then
10299				ipv6type=$i
10300				ipv6trylibc=yes
10301                          fi
10302                        fi
10303			;;
10304		toshiba)
10305			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306/* end confdefs.h.  */
10307
10308#include <sys/param.h>
10309#ifdef _TOSHIBA_INET6
10310yes
10311#endif
10312_ACEOF
10313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10314  $EGREP "yes" >/dev/null 2>&1; then :
10315  ipv6type=$i;
10316				ipv6lib=inet6;
10317				ipv6libdir=/usr/local/v6/lib
10318fi
10319rm -f conftest*
10320
10321			;;
10322		v6d)
10323			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324/* end confdefs.h.  */
10325
10326#include </usr/local/v6/include/sys/v6config.h>
10327#ifdef __V6D__
10328yes
10329#endif
10330_ACEOF
10331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10332  $EGREP "yes" >/dev/null 2>&1; then :
10333  ipv6type=$i;
10334				ipv6lib=v6;
10335				ipv6libdir=/usr/local/v6/lib;
10336				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
10337fi
10338rm -f conftest*
10339
10340			;;
10341		zeta)
10342			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343/* end confdefs.h.  */
10344
10345#include <sys/param.h>
10346#ifdef _ZETA_MINAMI_INET6
10347yes
10348#endif
10349_ACEOF
10350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10351  $EGREP "yes" >/dev/null 2>&1; then :
10352  ipv6type=$i;
10353				ipv6lib=inet6;
10354				ipv6libdir=/usr/local/v6/lib
10355fi
10356rm -f conftest*
10357
10358			;;
10359		esac
10360		if test "$ipv6type" != "unknown"; then
10361			break
10362		fi
10363	done
10364	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
10365$as_echo "$ipv6type" >&6; }
10366fi
10367
10368if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
10369	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
10370		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
10371		echo "using lib$ipv6lib"
10372	else
10373		if test $ipv6trylibc = "yes"; then
10374			echo "using libc"
10375		else
10376			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
10377			echo "You need to fetch lib$ipv6lib.a from appropriate"
10378			echo 'ipv6 kit and compile beforehand.'
10379			exit 1
10380		fi
10381	fi
10382fi
10383
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
10385$as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
10386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388
10389  #include <Carbon/Carbon.h>
10390int
10391main ()
10392{
10393FSIORefNum fRef = 0
10394  ;
10395  return 0;
10396}
10397
10398_ACEOF
10399if ac_fn_c_try_compile "$LINENO"; then :
10400
10401
10402$as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
10403
10404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10405$as_echo "yes" >&6; }
10406
10407else
10408
10409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410$as_echo "no" >&6; }
10411
10412fi
10413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414
10415# Check for --with-doc-strings
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
10417$as_echo_n "checking for --with-doc-strings... " >&6; }
10418
10419# Check whether --with-doc-strings was given.
10420if test "${with_doc_strings+set}" = set; then :
10421  withval=$with_doc_strings;
10422fi
10423
10424
10425if test -z "$with_doc_strings"
10426then with_doc_strings="yes"
10427fi
10428if test "$with_doc_strings" != "no"
10429then
10430
10431$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
10432
10433fi
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
10435$as_echo "$with_doc_strings" >&6; }
10436
10437# Check for Python-specific malloc support
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
10439$as_echo_n "checking for --with-tsc... " >&6; }
10440
10441# Check whether --with-tsc was given.
10442if test "${with_tsc+set}" = set; then :
10443  withval=$with_tsc;
10444if test "$withval" != no
10445then
10446
10447$as_echo "#define WITH_TSC 1" >>confdefs.h
10448
10449    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10450$as_echo "yes" >&6; }
10451else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452$as_echo "no" >&6; }
10453fi
10454else
10455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456$as_echo "no" >&6; }
10457fi
10458
10459
10460# Check for Python-specific malloc support
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
10462$as_echo_n "checking for --with-pymalloc... " >&6; }
10463
10464# Check whether --with-pymalloc was given.
10465if test "${with_pymalloc+set}" = set; then :
10466  withval=$with_pymalloc;
10467fi
10468
10469
10470if test -z "$with_pymalloc"
10471then with_pymalloc="yes"
10472fi
10473if test "$with_pymalloc" != "no"
10474then
10475
10476$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
10477
10478fi
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
10480$as_echo "$with_pymalloc" >&6; }
10481
10482# Check for Valgrind support
10483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
10484$as_echo_n "checking for --with-valgrind... " >&6; }
10485
10486# Check whether --with-valgrind was given.
10487if test "${with_valgrind+set}" = set; then :
10488  withval=$with_valgrind;
10489else
10490  with_valgrind=no
10491fi
10492
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
10494$as_echo "$with_valgrind" >&6; }
10495if test "$with_valgrind" != no; then
10496    ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
10497if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
10498
10499$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
10500
10501else
10502  as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
10503
10504fi
10505
10506
10507fi
10508
10509# Check for --with-wctype-functions
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
10511$as_echo_n "checking for --with-wctype-functions... " >&6; }
10512
10513# Check whether --with-wctype-functions was given.
10514if test "${with_wctype_functions+set}" = set; then :
10515  withval=$with_wctype_functions;
10516if test "$withval" != no
10517then
10518
10519$as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
10520
10521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10522$as_echo "yes" >&6; }
10523else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524$as_echo "no" >&6; }
10525fi
10526else
10527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528$as_echo "no" >&6; }
10529fi
10530
10531
10532# -I${DLINCLDIR} is added to the compile rule for importdl.o
10533
10534DLINCLDIR=.
10535
10536# the dlopen() function means we might want to use dynload_shlib.o. some
10537# platforms, such as AIX, have dlopen(), but don't want to use it.
10538for ac_func in dlopen
10539do :
10540  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10541if test "x$ac_cv_func_dlopen" = xyes; then :
10542  cat >>confdefs.h <<_ACEOF
10543#define HAVE_DLOPEN 1
10544_ACEOF
10545
10546fi
10547done
10548
10549
10550# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
10551# loading of modules.
10552
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
10554$as_echo_n "checking DYNLOADFILE... " >&6; }
10555if test -z "$DYNLOADFILE"
10556then
10557	case $ac_sys_system/$ac_sys_release in
10558	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
10559	if test "$ac_cv_func_dlopen" = yes
10560	then DYNLOADFILE="dynload_shlib.o"
10561	else DYNLOADFILE="dynload_aix.o"
10562	fi
10563	;;
10564	BeOS*) DYNLOADFILE="dynload_beos.o";;
10565	hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
10566	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
10567	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
10568	atheos*) DYNLOADFILE="dynload_atheos.o";;
10569	*)
10570	# use dynload_shlib.c and dlopen() if we have it; otherwise stub
10571	# out any dynamic loading
10572	if test "$ac_cv_func_dlopen" = yes
10573	then DYNLOADFILE="dynload_shlib.o"
10574	else DYNLOADFILE="dynload_stub.o"
10575	fi
10576	;;
10577	esac
10578fi
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
10580$as_echo "$DYNLOADFILE" >&6; }
10581if test "$DYNLOADFILE" != "dynload_stub.o"
10582then
10583
10584$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
10585
10586fi
10587
10588# MACHDEP_OBJS can be set to platform-specific object files needed by Python
10589
10590
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
10592$as_echo_n "checking MACHDEP_OBJS... " >&6; }
10593if test -z "$MACHDEP_OBJS"
10594then
10595	MACHDEP_OBJS=$extra_machdep_objs
10596else
10597	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
10598fi
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
10600$as_echo "MACHDEP_OBJS" >&6; }
10601
10602# checks for library functions
10603for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
10604 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
10605 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
10606 getentropy \
10607 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
10608 initgroups kill killpg lchown lstat mkfifo mknod mktime mmap \
10609 mremap nice pathconf pause plock poll pthread_init \
10610 putenv readlink realpath \
10611 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
10612 setgid \
10613 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
10614 setlocale setregid setreuid setresuid setresgid \
10615 setsid setpgid setpgrp setuid setvbuf snprintf \
10616 sigaction siginterrupt sigrelse strftime \
10617 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
10618 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
10619do :
10620  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10621ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10622if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10623  cat >>confdefs.h <<_ACEOF
10624#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10625_ACEOF
10626
10627fi
10628done
10629
10630
10631# Force lchmod off for Linux. Linux disallows changing the mode of symbolic
10632# links. Some libc implementations have a stub lchmod implementation that always
10633# returns an error.
10634if test "$MACHDEP" != linux; then
10635  ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
10636if test "x$ac_cv_func_lchmod" = xyes; then :
10637
10638fi
10639
10640fi
10641
10642# For some functions, having a definition is not sufficient, since
10643# we want to take their address.
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
10645$as_echo_n "checking for chroot... " >&6; }
10646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648#include <unistd.h>
10649int
10650main ()
10651{
10652void *x=chroot
10653  ;
10654  return 0;
10655}
10656_ACEOF
10657if ac_fn_c_try_compile "$LINENO"; then :
10658
10659$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
10660
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10662$as_echo "yes" >&6; }
10663else
10664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665$as_echo "no" >&6; }
10666
10667fi
10668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
10670$as_echo_n "checking for link... " >&6; }
10671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672/* end confdefs.h.  */
10673#include <unistd.h>
10674int
10675main ()
10676{
10677void *x=link
10678  ;
10679  return 0;
10680}
10681_ACEOF
10682if ac_fn_c_try_compile "$LINENO"; then :
10683
10684$as_echo "#define HAVE_LINK 1" >>confdefs.h
10685
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687$as_echo "yes" >&6; }
10688else
10689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690$as_echo "no" >&6; }
10691
10692fi
10693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
10695$as_echo_n "checking for symlink... " >&6; }
10696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697/* end confdefs.h.  */
10698#include <unistd.h>
10699int
10700main ()
10701{
10702void *x=symlink
10703  ;
10704  return 0;
10705}
10706_ACEOF
10707if ac_fn_c_try_compile "$LINENO"; then :
10708
10709$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
10710
10711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10712$as_echo "yes" >&6; }
10713else
10714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715$as_echo "no" >&6; }
10716
10717fi
10718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
10720$as_echo_n "checking for fchdir... " >&6; }
10721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722/* end confdefs.h.  */
10723#include <unistd.h>
10724int
10725main ()
10726{
10727void *x=fchdir
10728  ;
10729  return 0;
10730}
10731_ACEOF
10732if ac_fn_c_try_compile "$LINENO"; then :
10733
10734$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
10735
10736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10737$as_echo "yes" >&6; }
10738else
10739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740$as_echo "no" >&6; }
10741
10742fi
10743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
10745$as_echo_n "checking for fsync... " >&6; }
10746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747/* end confdefs.h.  */
10748#include <unistd.h>
10749int
10750main ()
10751{
10752void *x=fsync
10753  ;
10754  return 0;
10755}
10756_ACEOF
10757if ac_fn_c_try_compile "$LINENO"; then :
10758
10759$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
10760
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10762$as_echo "yes" >&6; }
10763else
10764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765$as_echo "no" >&6; }
10766
10767fi
10768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
10770$as_echo_n "checking for fdatasync... " >&6; }
10771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772/* end confdefs.h.  */
10773#include <unistd.h>
10774int
10775main ()
10776{
10777void *x=fdatasync
10778  ;
10779  return 0;
10780}
10781_ACEOF
10782if ac_fn_c_try_compile "$LINENO"; then :
10783
10784$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
10785
10786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10787$as_echo "yes" >&6; }
10788else
10789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
10791
10792fi
10793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
10795$as_echo_n "checking for epoll... " >&6; }
10796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h.  */
10798#include <sys/epoll.h>
10799int
10800main ()
10801{
10802void *x=epoll_create
10803  ;
10804  return 0;
10805}
10806_ACEOF
10807if ac_fn_c_try_compile "$LINENO"; then :
10808
10809$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
10810
10811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10812$as_echo "yes" >&6; }
10813else
10814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815$as_echo "no" >&6; }
10816
10817fi
10818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
10820$as_echo_n "checking for kqueue... " >&6; }
10821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822/* end confdefs.h.  */
10823
10824#include <sys/types.h>
10825#include <sys/event.h>
10826
10827int
10828main ()
10829{
10830int x=kqueue()
10831  ;
10832  return 0;
10833}
10834_ACEOF
10835if ac_fn_c_try_compile "$LINENO"; then :
10836
10837$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
10838
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10840$as_echo "yes" >&6; }
10841else
10842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843$as_echo "no" >&6; }
10844
10845fi
10846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847# On some systems (eg. FreeBSD 5), we would find a definition of the
10848# functions ctermid_r, setgroups in the library, but no prototype
10849# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
10850# address to avoid compiler warnings and potential miscompilations
10851# because of the missing prototypes.
10852
10853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
10854$as_echo_n "checking for ctermid_r... " >&6; }
10855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856/* end confdefs.h.  */
10857
10858#include <stdio.h>
10859
10860int
10861main ()
10862{
10863void* p = ctermid_r
10864  ;
10865  return 0;
10866}
10867_ACEOF
10868if ac_fn_c_try_compile "$LINENO"; then :
10869
10870$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
10871
10872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10873$as_echo "yes" >&6; }
10874else
10875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876$as_echo "no" >&6; }
10877
10878fi
10879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
10882$as_echo_n "checking for flock declaration... " >&6; }
10883if ${ac_cv_flock_decl+:} false; then :
10884  $as_echo_n "(cached) " >&6
10885else
10886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887/* end confdefs.h.  */
10888#include <sys/file.h>
10889int
10890main ()
10891{
10892void* p = flock
10893
10894  ;
10895  return 0;
10896}
10897_ACEOF
10898if ac_fn_c_try_compile "$LINENO"; then :
10899  ac_cv_flock_decl=yes
10900else
10901  ac_cv_flock_decl=no
10902
10903fi
10904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905
10906fi
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
10908$as_echo "$ac_cv_flock_decl" >&6; }
10909if test "x${ac_cv_flock_decl}" = xyes; then
10910  for ac_func in flock
10911do :
10912  ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
10913if test "x$ac_cv_func_flock" = xyes; then :
10914  cat >>confdefs.h <<_ACEOF
10915#define HAVE_FLOCK 1
10916_ACEOF
10917
10918else
10919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
10920$as_echo_n "checking for flock in -lbsd... " >&6; }
10921if ${ac_cv_lib_bsd_flock+:} false; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  ac_check_lib_save_LIBS=$LIBS
10925LIBS="-lbsd  $LIBS"
10926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h.  */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930   Use char because int might match the return type of a GCC
10931   builtin and then its argument prototype would still apply.  */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char flock ();
10936int
10937main ()
10938{
10939return flock ();
10940  ;
10941  return 0;
10942}
10943_ACEOF
10944if ac_fn_c_try_link "$LINENO"; then :
10945  ac_cv_lib_bsd_flock=yes
10946else
10947  ac_cv_lib_bsd_flock=no
10948fi
10949rm -f core conftest.err conftest.$ac_objext \
10950    conftest$ac_exeext conftest.$ac_ext
10951LIBS=$ac_check_lib_save_LIBS
10952fi
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
10954$as_echo "$ac_cv_lib_bsd_flock" >&6; }
10955if test "x$ac_cv_lib_bsd_flock" = xyes; then :
10956  $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
10957
10958
10959$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
10960
10961
10962fi
10963
10964
10965fi
10966done
10967
10968fi
10969
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
10971$as_echo_n "checking for getpagesize... " >&6; }
10972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973/* end confdefs.h.  */
10974
10975#include <unistd.h>
10976
10977int
10978main ()
10979{
10980void* p = getpagesize
10981  ;
10982  return 0;
10983}
10984_ACEOF
10985if ac_fn_c_try_compile "$LINENO"; then :
10986
10987$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
10988
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10990$as_echo "yes" >&6; }
10991else
10992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
10994
10995fi
10996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10997
10998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
10999$as_echo_n "checking for broken unsetenv... " >&6; }
11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001/* end confdefs.h.  */
11002
11003#include <stdlib.h>
11004
11005int
11006main ()
11007{
11008int res = unsetenv("DUMMY")
11009  ;
11010  return 0;
11011}
11012_ACEOF
11013if ac_fn_c_try_compile "$LINENO"; then :
11014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
11016else
11017
11018$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
11019
11020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021$as_echo "yes" >&6; }
11022
11023fi
11024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025
11026for ac_prog in true
11027do
11028  # Extract the first word of "$ac_prog", so it can be a program name with args.
11029set dummy $ac_prog; ac_word=$2
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031$as_echo_n "checking for $ac_word... " >&6; }
11032if ${ac_cv_prog_TRUE+:} false; then :
11033  $as_echo_n "(cached) " >&6
11034else
11035  if test -n "$TRUE"; then
11036  ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
11037else
11038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039for as_dir in $PATH
11040do
11041  IFS=$as_save_IFS
11042  test -z "$as_dir" && as_dir=.
11043    for ac_exec_ext in '' $ac_executable_extensions; do
11044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11045    ac_cv_prog_TRUE="$ac_prog"
11046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047    break 2
11048  fi
11049done
11050  done
11051IFS=$as_save_IFS
11052
11053fi
11054fi
11055TRUE=$ac_cv_prog_TRUE
11056if test -n "$TRUE"; then
11057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
11058$as_echo "$TRUE" >&6; }
11059else
11060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061$as_echo "no" >&6; }
11062fi
11063
11064
11065  test -n "$TRUE" && break
11066done
11067test -n "$TRUE" || TRUE="/bin/true"
11068
11069
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
11071$as_echo_n "checking for inet_aton in -lc... " >&6; }
11072if ${ac_cv_lib_c_inet_aton+:} false; then :
11073  $as_echo_n "(cached) " >&6
11074else
11075  ac_check_lib_save_LIBS=$LIBS
11076LIBS="-lc  $LIBS"
11077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078/* end confdefs.h.  */
11079
11080/* Override any GCC internal prototype to avoid an error.
11081   Use char because int might match the return type of a GCC
11082   builtin and then its argument prototype would still apply.  */
11083#ifdef __cplusplus
11084extern "C"
11085#endif
11086char inet_aton ();
11087int
11088main ()
11089{
11090return inet_aton ();
11091  ;
11092  return 0;
11093}
11094_ACEOF
11095if ac_fn_c_try_link "$LINENO"; then :
11096  ac_cv_lib_c_inet_aton=yes
11097else
11098  ac_cv_lib_c_inet_aton=no
11099fi
11100rm -f core conftest.err conftest.$ac_objext \
11101    conftest$ac_exeext conftest.$ac_ext
11102LIBS=$ac_check_lib_save_LIBS
11103fi
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
11105$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
11106if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
11107  $ac_cv_prog_TRUE
11108else
11109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
11110$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
11111if ${ac_cv_lib_resolv_inet_aton+:} false; then :
11112  $as_echo_n "(cached) " >&6
11113else
11114  ac_check_lib_save_LIBS=$LIBS
11115LIBS="-lresolv  $LIBS"
11116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117/* end confdefs.h.  */
11118
11119/* Override any GCC internal prototype to avoid an error.
11120   Use char because int might match the return type of a GCC
11121   builtin and then its argument prototype would still apply.  */
11122#ifdef __cplusplus
11123extern "C"
11124#endif
11125char inet_aton ();
11126int
11127main ()
11128{
11129return inet_aton ();
11130  ;
11131  return 0;
11132}
11133_ACEOF
11134if ac_fn_c_try_link "$LINENO"; then :
11135  ac_cv_lib_resolv_inet_aton=yes
11136else
11137  ac_cv_lib_resolv_inet_aton=no
11138fi
11139rm -f core conftest.err conftest.$ac_objext \
11140    conftest$ac_exeext conftest.$ac_ext
11141LIBS=$ac_check_lib_save_LIBS
11142fi
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
11144$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
11145if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
11146  cat >>confdefs.h <<_ACEOF
11147#define HAVE_LIBRESOLV 1
11148_ACEOF
11149
11150  LIBS="-lresolv $LIBS"
11151
11152fi
11153
11154
11155fi
11156
11157
11158# On Tru64, chflags seems to be present, but calling it will
11159# exit Python
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
11161$as_echo_n "checking for chflags... " >&6; }
11162if ${ac_cv_have_chflags+:} false; then :
11163  $as_echo_n "(cached) " >&6
11164else
11165  if test "$cross_compiling" = yes; then :
11166  ac_cv_have_chflags=cross
11167else
11168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169/* end confdefs.h.  */
11170
11171#include <sys/stat.h>
11172#include <unistd.h>
11173int main(int argc, char*argv[])
11174{
11175  if(chflags(argv[0], 0) != 0)
11176    return 1;
11177  return 0;
11178}
11179
11180_ACEOF
11181if ac_fn_c_try_run "$LINENO"; then :
11182  ac_cv_have_chflags=yes
11183else
11184  ac_cv_have_chflags=no
11185fi
11186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11187  conftest.$ac_objext conftest.beam conftest.$ac_ext
11188fi
11189
11190
11191fi
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
11193$as_echo "$ac_cv_have_chflags" >&6; }
11194if test "$ac_cv_have_chflags" = cross ; then
11195  ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
11196if test "x$ac_cv_func_chflags" = xyes; then :
11197  ac_cv_have_chflags="yes"
11198else
11199  ac_cv_have_chflags="no"
11200fi
11201
11202fi
11203if test "$ac_cv_have_chflags" = yes ; then
11204
11205$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
11206
11207fi
11208
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
11210$as_echo_n "checking for lchflags... " >&6; }
11211if ${ac_cv_have_lchflags+:} false; then :
11212  $as_echo_n "(cached) " >&6
11213else
11214  if test "$cross_compiling" = yes; then :
11215  ac_cv_have_lchflags=cross
11216else
11217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218/* end confdefs.h.  */
11219
11220#include <sys/stat.h>
11221#include <unistd.h>
11222int main(int argc, char*argv[])
11223{
11224  if(lchflags(argv[0], 0) != 0)
11225    return 1;
11226  return 0;
11227}
11228
11229_ACEOF
11230if ac_fn_c_try_run "$LINENO"; then :
11231  ac_cv_have_lchflags=yes
11232else
11233  ac_cv_have_lchflags=no
11234fi
11235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11236  conftest.$ac_objext conftest.beam conftest.$ac_ext
11237fi
11238
11239
11240fi
11241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
11242$as_echo "$ac_cv_have_lchflags" >&6; }
11243if test "$ac_cv_have_lchflags" = cross ; then
11244  ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
11245if test "x$ac_cv_func_lchflags" = xyes; then :
11246  ac_cv_have_lchflags="yes"
11247else
11248  ac_cv_have_lchflags="no"
11249fi
11250
11251fi
11252if test "$ac_cv_have_lchflags" = yes ; then
11253
11254$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
11255
11256fi
11257
11258case $ac_sys_system/$ac_sys_release in
11259Darwin/*)
11260	_CUR_CFLAGS="${CFLAGS}"
11261	_CUR_LDFLAGS="${LDFLAGS}"
11262	CFLAGS="${CFLAGS} -Wl,-search_paths_first"
11263	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
11264	;;
11265esac
11266
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
11268$as_echo_n "checking for inflateCopy in -lz... " >&6; }
11269if ${ac_cv_lib_z_inflateCopy+:} false; then :
11270  $as_echo_n "(cached) " >&6
11271else
11272  ac_check_lib_save_LIBS=$LIBS
11273LIBS="-lz  $LIBS"
11274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275/* end confdefs.h.  */
11276
11277/* Override any GCC internal prototype to avoid an error.
11278   Use char because int might match the return type of a GCC
11279   builtin and then its argument prototype would still apply.  */
11280#ifdef __cplusplus
11281extern "C"
11282#endif
11283char inflateCopy ();
11284int
11285main ()
11286{
11287return inflateCopy ();
11288  ;
11289  return 0;
11290}
11291_ACEOF
11292if ac_fn_c_try_link "$LINENO"; then :
11293  ac_cv_lib_z_inflateCopy=yes
11294else
11295  ac_cv_lib_z_inflateCopy=no
11296fi
11297rm -f core conftest.err conftest.$ac_objext \
11298    conftest$ac_exeext conftest.$ac_ext
11299LIBS=$ac_check_lib_save_LIBS
11300fi
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
11302$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
11303if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
11304
11305$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
11306
11307fi
11308
11309
11310case $ac_sys_system/$ac_sys_release in
11311Darwin/*)
11312	CFLAGS="${_CUR_CFLAGS}"
11313	LDFLAGS="${_CUR_LDFLAGS}"
11314	;;
11315esac
11316
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
11318$as_echo_n "checking for hstrerror... " >&6; }
11319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320/* end confdefs.h.  */
11321
11322#include <netdb.h>
11323
11324int
11325main ()
11326{
11327void* p = hstrerror; hstrerror(0)
11328  ;
11329  return 0;
11330}
11331_ACEOF
11332if ac_fn_c_try_link "$LINENO"; then :
11333
11334$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
11335
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11337$as_echo "yes" >&6; }
11338else
11339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340$as_echo "no" >&6; }
11341
11342fi
11343rm -f core conftest.err conftest.$ac_objext \
11344    conftest$ac_exeext conftest.$ac_ext
11345
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11347$as_echo_n "checking for inet_aton... " >&6; }
11348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349/* end confdefs.h.  */
11350
11351#include <sys/types.h>
11352#include <sys/socket.h>
11353#include <netinet/in.h>
11354#include <arpa/inet.h>
11355
11356int
11357main ()
11358{
11359void* p = inet_aton;inet_aton(0,0)
11360  ;
11361  return 0;
11362}
11363_ACEOF
11364if ac_fn_c_try_link "$LINENO"; then :
11365
11366$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11367
11368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369$as_echo "yes" >&6; }
11370else
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372$as_echo "no" >&6; }
11373
11374fi
11375rm -f core conftest.err conftest.$ac_objext \
11376    conftest$ac_exeext conftest.$ac_ext
11377
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
11379$as_echo_n "checking for inet_pton... " >&6; }
11380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h.  */
11382
11383#include <sys/types.h>
11384#include <sys/socket.h>
11385#include <netinet/in.h>
11386#include <arpa/inet.h>
11387
11388int
11389main ()
11390{
11391void* p = inet_pton
11392  ;
11393  return 0;
11394}
11395_ACEOF
11396if ac_fn_c_try_compile "$LINENO"; then :
11397
11398$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
11399
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401$as_echo "yes" >&6; }
11402else
11403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404$as_echo "no" >&6; }
11405
11406fi
11407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408
11409# On some systems, setgroups is in unistd.h, on others, in grp.h
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
11411$as_echo_n "checking for setgroups... " >&6; }
11412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413/* end confdefs.h.  */
11414
11415#include <unistd.h>
11416#ifdef HAVE_GRP_H
11417#include <grp.h>
11418#endif
11419
11420int
11421main ()
11422{
11423void* p = setgroups
11424  ;
11425  return 0;
11426}
11427_ACEOF
11428if ac_fn_c_try_compile "$LINENO"; then :
11429
11430$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
11431
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11433$as_echo "yes" >&6; }
11434else
11435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
11437
11438fi
11439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440
11441# check for openpty and forkpty
11442
11443for ac_func in openpty
11444do :
11445  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
11446if test "x$ac_cv_func_openpty" = xyes; then :
11447  cat >>confdefs.h <<_ACEOF
11448#define HAVE_OPENPTY 1
11449_ACEOF
11450
11451else
11452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
11453$as_echo_n "checking for openpty in -lutil... " >&6; }
11454if ${ac_cv_lib_util_openpty+:} false; then :
11455  $as_echo_n "(cached) " >&6
11456else
11457  ac_check_lib_save_LIBS=$LIBS
11458LIBS="-lutil  $LIBS"
11459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460/* end confdefs.h.  */
11461
11462/* Override any GCC internal prototype to avoid an error.
11463   Use char because int might match the return type of a GCC
11464   builtin and then its argument prototype would still apply.  */
11465#ifdef __cplusplus
11466extern "C"
11467#endif
11468char openpty ();
11469int
11470main ()
11471{
11472return openpty ();
11473  ;
11474  return 0;
11475}
11476_ACEOF
11477if ac_fn_c_try_link "$LINENO"; then :
11478  ac_cv_lib_util_openpty=yes
11479else
11480  ac_cv_lib_util_openpty=no
11481fi
11482rm -f core conftest.err conftest.$ac_objext \
11483    conftest$ac_exeext conftest.$ac_ext
11484LIBS=$ac_check_lib_save_LIBS
11485fi
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
11487$as_echo "$ac_cv_lib_util_openpty" >&6; }
11488if test "x$ac_cv_lib_util_openpty" = xyes; then :
11489  $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
11490 LIBS="$LIBS -lutil"
11491else
11492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
11493$as_echo_n "checking for openpty in -lbsd... " >&6; }
11494if ${ac_cv_lib_bsd_openpty+:} false; then :
11495  $as_echo_n "(cached) " >&6
11496else
11497  ac_check_lib_save_LIBS=$LIBS
11498LIBS="-lbsd  $LIBS"
11499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500/* end confdefs.h.  */
11501
11502/* Override any GCC internal prototype to avoid an error.
11503   Use char because int might match the return type of a GCC
11504   builtin and then its argument prototype would still apply.  */
11505#ifdef __cplusplus
11506extern "C"
11507#endif
11508char openpty ();
11509int
11510main ()
11511{
11512return openpty ();
11513  ;
11514  return 0;
11515}
11516_ACEOF
11517if ac_fn_c_try_link "$LINENO"; then :
11518  ac_cv_lib_bsd_openpty=yes
11519else
11520  ac_cv_lib_bsd_openpty=no
11521fi
11522rm -f core conftest.err conftest.$ac_objext \
11523    conftest$ac_exeext conftest.$ac_ext
11524LIBS=$ac_check_lib_save_LIBS
11525fi
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
11527$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
11528if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
11529  $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
11530 LIBS="$LIBS -lbsd"
11531fi
11532
11533
11534fi
11535
11536
11537fi
11538done
11539
11540for ac_func in forkpty
11541do :
11542  ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
11543if test "x$ac_cv_func_forkpty" = xyes; then :
11544  cat >>confdefs.h <<_ACEOF
11545#define HAVE_FORKPTY 1
11546_ACEOF
11547
11548else
11549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
11550$as_echo_n "checking for forkpty in -lutil... " >&6; }
11551if ${ac_cv_lib_util_forkpty+:} false; then :
11552  $as_echo_n "(cached) " >&6
11553else
11554  ac_check_lib_save_LIBS=$LIBS
11555LIBS="-lutil  $LIBS"
11556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557/* end confdefs.h.  */
11558
11559/* Override any GCC internal prototype to avoid an error.
11560   Use char because int might match the return type of a GCC
11561   builtin and then its argument prototype would still apply.  */
11562#ifdef __cplusplus
11563extern "C"
11564#endif
11565char forkpty ();
11566int
11567main ()
11568{
11569return forkpty ();
11570  ;
11571  return 0;
11572}
11573_ACEOF
11574if ac_fn_c_try_link "$LINENO"; then :
11575  ac_cv_lib_util_forkpty=yes
11576else
11577  ac_cv_lib_util_forkpty=no
11578fi
11579rm -f core conftest.err conftest.$ac_objext \
11580    conftest$ac_exeext conftest.$ac_ext
11581LIBS=$ac_check_lib_save_LIBS
11582fi
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
11584$as_echo "$ac_cv_lib_util_forkpty" >&6; }
11585if test "x$ac_cv_lib_util_forkpty" = xyes; then :
11586  $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
11587 LIBS="$LIBS -lutil"
11588else
11589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
11590$as_echo_n "checking for forkpty in -lbsd... " >&6; }
11591if ${ac_cv_lib_bsd_forkpty+:} false; then :
11592  $as_echo_n "(cached) " >&6
11593else
11594  ac_check_lib_save_LIBS=$LIBS
11595LIBS="-lbsd  $LIBS"
11596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h.  */
11598
11599/* Override any GCC internal prototype to avoid an error.
11600   Use char because int might match the return type of a GCC
11601   builtin and then its argument prototype would still apply.  */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605char forkpty ();
11606int
11607main ()
11608{
11609return forkpty ();
11610  ;
11611  return 0;
11612}
11613_ACEOF
11614if ac_fn_c_try_link "$LINENO"; then :
11615  ac_cv_lib_bsd_forkpty=yes
11616else
11617  ac_cv_lib_bsd_forkpty=no
11618fi
11619rm -f core conftest.err conftest.$ac_objext \
11620    conftest$ac_exeext conftest.$ac_ext
11621LIBS=$ac_check_lib_save_LIBS
11622fi
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
11624$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
11625if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
11626  $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
11627 LIBS="$LIBS -lbsd"
11628fi
11629
11630
11631fi
11632
11633
11634fi
11635done
11636
11637
11638# Stuff for expat.
11639for ac_func in memmove
11640do :
11641  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
11642if test "x$ac_cv_func_memmove" = xyes; then :
11643  cat >>confdefs.h <<_ACEOF
11644#define HAVE_MEMMOVE 1
11645_ACEOF
11646
11647fi
11648done
11649
11650
11651# check for long file support functions
11652for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
11653do :
11654  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11655ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11656if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11657  cat >>confdefs.h <<_ACEOF
11658#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11659_ACEOF
11660
11661fi
11662done
11663
11664
11665ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
11666if test "x$ac_cv_func_dup2" = xyes; then :
11667  $as_echo "#define HAVE_DUP2 1" >>confdefs.h
11668
11669else
11670  case " $LIBOBJS " in
11671  *" dup2.$ac_objext "* ) ;;
11672  *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
11673 ;;
11674esac
11675
11676fi
11677
11678ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
11679if test "x$ac_cv_func_getcwd" = xyes; then :
11680  $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
11681
11682else
11683  case " $LIBOBJS " in
11684  *" getcwd.$ac_objext "* ) ;;
11685  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
11686 ;;
11687esac
11688
11689fi
11690
11691ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
11692if test "x$ac_cv_func_strdup" = xyes; then :
11693  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
11694
11695else
11696  case " $LIBOBJS " in
11697  *" strdup.$ac_objext "* ) ;;
11698  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
11699 ;;
11700esac
11701
11702fi
11703
11704
11705for ac_func in getpgrp
11706do :
11707  ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
11708if test "x$ac_cv_func_getpgrp" = xyes; then :
11709  cat >>confdefs.h <<_ACEOF
11710#define HAVE_GETPGRP 1
11711_ACEOF
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713/* end confdefs.h.  */
11714#include <unistd.h>
11715int
11716main ()
11717{
11718getpgrp(0);
11719  ;
11720  return 0;
11721}
11722_ACEOF
11723if ac_fn_c_try_compile "$LINENO"; then :
11724
11725$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
11726
11727fi
11728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729
11730fi
11731done
11732
11733for ac_func in setpgrp
11734do :
11735  ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
11736if test "x$ac_cv_func_setpgrp" = xyes; then :
11737  cat >>confdefs.h <<_ACEOF
11738#define HAVE_SETPGRP 1
11739_ACEOF
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741/* end confdefs.h.  */
11742#include <unistd.h>
11743int
11744main ()
11745{
11746setpgrp(0,0);
11747  ;
11748  return 0;
11749}
11750_ACEOF
11751if ac_fn_c_try_compile "$LINENO"; then :
11752
11753$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
11754
11755fi
11756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757
11758fi
11759done
11760
11761for ac_func in gettimeofday
11762do :
11763  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11764if test "x$ac_cv_func_gettimeofday" = xyes; then :
11765  cat >>confdefs.h <<_ACEOF
11766#define HAVE_GETTIMEOFDAY 1
11767_ACEOF
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769/* end confdefs.h.  */
11770#include <sys/time.h>
11771int
11772main ()
11773{
11774gettimeofday((struct timeval*)0,(struct timezone*)0);
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779if ac_fn_c_try_compile "$LINENO"; then :
11780
11781else
11782
11783$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
11784
11785
11786fi
11787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788
11789fi
11790done
11791
11792
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
11794$as_echo_n "checking for major... " >&6; }
11795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796/* end confdefs.h.  */
11797
11798#if defined(MAJOR_IN_MKDEV)
11799#include <sys/mkdev.h>
11800#elif defined(MAJOR_IN_SYSMACROS)
11801#include <sys/sysmacros.h>
11802#else
11803#include <sys/types.h>
11804#endif
11805
11806int
11807main ()
11808{
11809
11810  makedev(major(0),minor(0));
11811
11812  ;
11813  return 0;
11814}
11815_ACEOF
11816if ac_fn_c_try_link "$LINENO"; then :
11817
11818
11819$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
11820
11821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11822$as_echo "yes" >&6; }
11823
11824else
11825
11826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827$as_echo "no" >&6; }
11828
11829fi
11830rm -f core conftest.err conftest.$ac_objext \
11831    conftest$ac_exeext conftest.$ac_ext
11832
11833# On OSF/1 V5.1, getaddrinfo is available, but a define
11834# for [no]getaddrinfo in netdb.h.
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
11836$as_echo_n "checking for getaddrinfo... " >&6; }
11837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838/* end confdefs.h.  */
11839
11840#include <sys/types.h>
11841#include <sys/socket.h>
11842#include <netdb.h>
11843#include <stdio.h>
11844
11845int
11846main ()
11847{
11848getaddrinfo(NULL, NULL, NULL, NULL);
11849  ;
11850  return 0;
11851}
11852_ACEOF
11853if ac_fn_c_try_link "$LINENO"; then :
11854  have_getaddrinfo=yes
11855else
11856  have_getaddrinfo=no
11857fi
11858rm -f core conftest.err conftest.$ac_objext \
11859    conftest$ac_exeext conftest.$ac_ext
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
11861$as_echo "$have_getaddrinfo" >&6; }
11862if test $have_getaddrinfo = yes
11863then
11864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
11865$as_echo_n "checking getaddrinfo bug... " >&6; }
11866  if ${ac_cv_buggy_getaddrinfo+:} false; then :
11867  $as_echo_n "(cached) " >&6
11868else
11869  if test "$cross_compiling" = yes; then :
11870
11871if test "${enable_ipv6+set}" = set; then
11872  ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
11873else
11874  ac_cv_buggy_getaddrinfo=yes
11875fi
11876else
11877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878/* end confdefs.h.  */
11879
11880#include <stdio.h>
11881#include <sys/types.h>
11882#include <netdb.h>
11883#include <string.h>
11884#include <sys/socket.h>
11885#include <netinet/in.h>
11886
11887int main()
11888{
11889  int passive, gaierr, inet4 = 0, inet6 = 0;
11890  struct addrinfo hints, *ai, *aitop;
11891  char straddr[INET6_ADDRSTRLEN], strport[16];
11892
11893  for (passive = 0; passive <= 1; passive++) {
11894    memset(&hints, 0, sizeof(hints));
11895    hints.ai_family = AF_UNSPEC;
11896    hints.ai_flags = passive ? AI_PASSIVE : 0;
11897    hints.ai_socktype = SOCK_STREAM;
11898    hints.ai_protocol = IPPROTO_TCP;
11899    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
11900      (void)gai_strerror(gaierr);
11901      goto bad;
11902    }
11903    for (ai = aitop; ai; ai = ai->ai_next) {
11904      if (ai->ai_addr == NULL ||
11905          ai->ai_addrlen == 0 ||
11906          getnameinfo(ai->ai_addr, ai->ai_addrlen,
11907                      straddr, sizeof(straddr), strport, sizeof(strport),
11908                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
11909        goto bad;
11910      }
11911      switch (ai->ai_family) {
11912      case AF_INET:
11913        if (strcmp(strport, "54321") != 0) {
11914          goto bad;
11915        }
11916        if (passive) {
11917          if (strcmp(straddr, "0.0.0.0") != 0) {
11918            goto bad;
11919          }
11920        } else {
11921          if (strcmp(straddr, "127.0.0.1") != 0) {
11922            goto bad;
11923          }
11924        }
11925        inet4++;
11926        break;
11927      case AF_INET6:
11928        if (strcmp(strport, "54321") != 0) {
11929          goto bad;
11930        }
11931        if (passive) {
11932          if (strcmp(straddr, "::") != 0) {
11933            goto bad;
11934          }
11935        } else {
11936          if (strcmp(straddr, "::1") != 0) {
11937            goto bad;
11938          }
11939        }
11940        inet6++;
11941        break;
11942      case AF_UNSPEC:
11943        goto bad;
11944        break;
11945      default:
11946        /* another family support? */
11947        break;
11948      }
11949    }
11950    freeaddrinfo(aitop);
11951    aitop = NULL;
11952  }
11953
11954  if (!(inet4 == 0 || inet4 == 2))
11955    goto bad;
11956  if (!(inet6 == 0 || inet6 == 2))
11957    goto bad;
11958
11959  if (aitop)
11960    freeaddrinfo(aitop);
11961  return 0;
11962
11963 bad:
11964  if (aitop)
11965    freeaddrinfo(aitop);
11966  return 1;
11967}
11968
11969_ACEOF
11970if ac_fn_c_try_run "$LINENO"; then :
11971  ac_cv_buggy_getaddrinfo=no
11972else
11973  ac_cv_buggy_getaddrinfo=yes
11974fi
11975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11976  conftest.$ac_objext conftest.beam conftest.$ac_ext
11977fi
11978
11979fi
11980
11981fi
11982
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
11984$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
11985
11986if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
11987then
11988	if test $ipv6 = yes
11989	then
11990		echo 'Fatal: You must get working getaddrinfo() function.'
11991		echo '       or you can specify "--disable-ipv6"'.
11992		exit 1
11993	fi
11994else
11995
11996$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
11997
11998fi
11999
12000for ac_func in getnameinfo
12001do :
12002  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12003if test "x$ac_cv_func_getnameinfo" = xyes; then :
12004  cat >>confdefs.h <<_ACEOF
12005#define HAVE_GETNAMEINFO 1
12006_ACEOF
12007
12008fi
12009done
12010
12011
12012# checks for structures
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12014$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12015if ${ac_cv_header_time+:} false; then :
12016  $as_echo_n "(cached) " >&6
12017else
12018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h.  */
12020#include <sys/types.h>
12021#include <sys/time.h>
12022#include <time.h>
12023
12024int
12025main ()
12026{
12027if ((struct tm *) 0)
12028return 0;
12029  ;
12030  return 0;
12031}
12032_ACEOF
12033if ac_fn_c_try_compile "$LINENO"; then :
12034  ac_cv_header_time=yes
12035else
12036  ac_cv_header_time=no
12037fi
12038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039fi
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12041$as_echo "$ac_cv_header_time" >&6; }
12042if test $ac_cv_header_time = yes; then
12043
12044$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12045
12046fi
12047
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12049$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12050if ${ac_cv_struct_tm+:} false; then :
12051  $as_echo_n "(cached) " >&6
12052else
12053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054/* end confdefs.h.  */
12055#include <sys/types.h>
12056#include <time.h>
12057
12058int
12059main ()
12060{
12061struct tm tm;
12062				     int *p = &tm.tm_sec;
12063				     return !p;
12064  ;
12065  return 0;
12066}
12067_ACEOF
12068if ac_fn_c_try_compile "$LINENO"; then :
12069  ac_cv_struct_tm=time.h
12070else
12071  ac_cv_struct_tm=sys/time.h
12072fi
12073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074fi
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12076$as_echo "$ac_cv_struct_tm" >&6; }
12077if test $ac_cv_struct_tm = sys/time.h; then
12078
12079$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12080
12081fi
12082
12083ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12084#include <$ac_cv_struct_tm>
12085
12086"
12087if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12088
12089cat >>confdefs.h <<_ACEOF
12090#define HAVE_STRUCT_TM_TM_ZONE 1
12091_ACEOF
12092
12093
12094fi
12095
12096if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12097
12098$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12099
12100else
12101  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12102"
12103if test "x$ac_cv_have_decl_tzname" = xyes; then :
12104  ac_have_decl=1
12105else
12106  ac_have_decl=0
12107fi
12108
12109cat >>confdefs.h <<_ACEOF
12110#define HAVE_DECL_TZNAME $ac_have_decl
12111_ACEOF
12112
12113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12114$as_echo_n "checking for tzname... " >&6; }
12115if ${ac_cv_var_tzname+:} false; then :
12116  $as_echo_n "(cached) " >&6
12117else
12118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119/* end confdefs.h.  */
12120#include <time.h>
12121#if !HAVE_DECL_TZNAME
12122extern char *tzname[];
12123#endif
12124
12125int
12126main ()
12127{
12128return tzname[0][0];
12129  ;
12130  return 0;
12131}
12132_ACEOF
12133if ac_fn_c_try_link "$LINENO"; then :
12134  ac_cv_var_tzname=yes
12135else
12136  ac_cv_var_tzname=no
12137fi
12138rm -f core conftest.err conftest.$ac_objext \
12139    conftest$ac_exeext conftest.$ac_ext
12140fi
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12142$as_echo "$ac_cv_var_tzname" >&6; }
12143  if test $ac_cv_var_tzname = yes; then
12144
12145$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12146
12147  fi
12148fi
12149
12150ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12151if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12152
12153cat >>confdefs.h <<_ACEOF
12154#define HAVE_STRUCT_STAT_ST_RDEV 1
12155_ACEOF
12156
12157
12158fi
12159
12160ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12161if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
12162
12163cat >>confdefs.h <<_ACEOF
12164#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12165_ACEOF
12166
12167
12168fi
12169
12170ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
12171if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
12172
12173cat >>confdefs.h <<_ACEOF
12174#define HAVE_STRUCT_STAT_ST_FLAGS 1
12175_ACEOF
12176
12177
12178fi
12179
12180ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
12181if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
12182
12183cat >>confdefs.h <<_ACEOF
12184#define HAVE_STRUCT_STAT_ST_GEN 1
12185_ACEOF
12186
12187
12188fi
12189
12190ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
12191if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
12192
12193cat >>confdefs.h <<_ACEOF
12194#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
12195_ACEOF
12196
12197
12198fi
12199
12200ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12201if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12202
12203cat >>confdefs.h <<_ACEOF
12204#define HAVE_STRUCT_STAT_ST_BLOCKS 1
12205_ACEOF
12206
12207
12208fi
12209
12210
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
12212$as_echo_n "checking for time.h that defines altzone... " >&6; }
12213if ${ac_cv_header_time_altzone+:} false; then :
12214  $as_echo_n "(cached) " >&6
12215else
12216
12217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218/* end confdefs.h.  */
12219#include <time.h>
12220int
12221main ()
12222{
12223return altzone;
12224  ;
12225  return 0;
12226}
12227_ACEOF
12228if ac_fn_c_try_compile "$LINENO"; then :
12229  ac_cv_header_time_altzone=yes
12230else
12231  ac_cv_header_time_altzone=no
12232fi
12233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234
12235fi
12236
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
12238$as_echo "$ac_cv_header_time_altzone" >&6; }
12239if test $ac_cv_header_time_altzone = yes; then
12240
12241$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
12242
12243fi
12244
12245was_it_defined=no
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12247$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249/* end confdefs.h.  */
12250
12251#include <sys/types.h>
12252#include <sys/select.h>
12253#include <sys/time.h>
12254
12255int
12256main ()
12257{
12258;
12259  ;
12260  return 0;
12261}
12262_ACEOF
12263if ac_fn_c_try_compile "$LINENO"; then :
12264
12265
12266$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12267
12268  was_it_defined=yes
12269
12270fi
12271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
12273$as_echo "$was_it_defined" >&6; }
12274
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
12276$as_echo_n "checking for addrinfo... " >&6; }
12277if ${ac_cv_struct_addrinfo+:} false; then :
12278  $as_echo_n "(cached) " >&6
12279else
12280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281/* end confdefs.h.  */
12282#include <netdb.h>
12283int
12284main ()
12285{
12286struct addrinfo a
12287  ;
12288  return 0;
12289}
12290_ACEOF
12291if ac_fn_c_try_compile "$LINENO"; then :
12292  ac_cv_struct_addrinfo=yes
12293else
12294  ac_cv_struct_addrinfo=no
12295fi
12296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12297fi
12298
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
12300$as_echo "$ac_cv_struct_addrinfo" >&6; }
12301if test $ac_cv_struct_addrinfo = yes; then
12302
12303$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
12304
12305fi
12306
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
12308$as_echo_n "checking for sockaddr_storage... " >&6; }
12309if ${ac_cv_struct_sockaddr_storage+:} false; then :
12310  $as_echo_n "(cached) " >&6
12311else
12312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313/* end confdefs.h.  */
12314
12315#		include <sys/types.h>
12316#		include <sys/socket.h>
12317int
12318main ()
12319{
12320struct sockaddr_storage s
12321  ;
12322  return 0;
12323}
12324_ACEOF
12325if ac_fn_c_try_compile "$LINENO"; then :
12326  ac_cv_struct_sockaddr_storage=yes
12327else
12328  ac_cv_struct_sockaddr_storage=no
12329fi
12330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12331fi
12332
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
12334$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
12335if test $ac_cv_struct_sockaddr_storage = yes; then
12336
12337$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
12338
12339fi
12340
12341# checks for compiler characteristics
12342
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
12344$as_echo_n "checking whether char is unsigned... " >&6; }
12345if ${ac_cv_c_char_unsigned+:} false; then :
12346  $as_echo_n "(cached) " >&6
12347else
12348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349/* end confdefs.h.  */
12350$ac_includes_default
12351int
12352main ()
12353{
12354static int test_array [1 - 2 * !(((char) -1) < 0)];
12355test_array [0] = 0;
12356return test_array [0];
12357
12358  ;
12359  return 0;
12360}
12361_ACEOF
12362if ac_fn_c_try_compile "$LINENO"; then :
12363  ac_cv_c_char_unsigned=no
12364else
12365  ac_cv_c_char_unsigned=yes
12366fi
12367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368fi
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
12370$as_echo "$ac_cv_c_char_unsigned" >&6; }
12371if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12372  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
12373
12374fi
12375
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12377$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12378if ${ac_cv_c_const+:} false; then :
12379  $as_echo_n "(cached) " >&6
12380else
12381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382/* end confdefs.h.  */
12383
12384int
12385main ()
12386{
12387
12388#ifndef __cplusplus
12389  /* Ultrix mips cc rejects this sort of thing.  */
12390  typedef int charset[2];
12391  const charset cs = { 0, 0 };
12392  /* SunOS 4.1.1 cc rejects this.  */
12393  char const *const *pcpcc;
12394  char **ppc;
12395  /* NEC SVR4.0.2 mips cc rejects this.  */
12396  struct point {int x, y;};
12397  static struct point const zero = {0,0};
12398  /* AIX XL C 1.02.0.0 rejects this.
12399     It does not let you subtract one const X* pointer from another in
12400     an arm of an if-expression whose if-part is not a constant
12401     expression */
12402  const char *g = "string";
12403  pcpcc = &g + (g ? g-g : 0);
12404  /* HPUX 7.0 cc rejects these. */
12405  ++pcpcc;
12406  ppc = (char**) pcpcc;
12407  pcpcc = (char const *const *) ppc;
12408  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12409    char tx;
12410    char *t = &tx;
12411    char const *s = 0 ? (char *) 0 : (char const *) 0;
12412
12413    *t++ = 0;
12414    if (s) return 0;
12415  }
12416  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12417    int x[] = {25, 17};
12418    const int *foo = &x[0];
12419    ++foo;
12420  }
12421  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12422    typedef const int *iptr;
12423    iptr p = 0;
12424    ++p;
12425  }
12426  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12427       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12428    struct s { int j; const int *ap[3]; } bx;
12429    struct s *b = &bx; b->j = 5;
12430  }
12431  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12432    const int foo = 10;
12433    if (!foo) return 0;
12434  }
12435  return !cs[0] && !zero.x;
12436#endif
12437
12438  ;
12439  return 0;
12440}
12441_ACEOF
12442if ac_fn_c_try_compile "$LINENO"; then :
12443  ac_cv_c_const=yes
12444else
12445  ac_cv_c_const=no
12446fi
12447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448fi
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12450$as_echo "$ac_cv_c_const" >&6; }
12451if test $ac_cv_c_const = no; then
12452
12453$as_echo "#define const /**/" >>confdefs.h
12454
12455fi
12456
12457
12458works=no
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12460$as_echo_n "checking for working volatile... " >&6; }
12461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462/* end confdefs.h.  */
12463
12464int
12465main ()
12466{
12467volatile int x; x = 0;
12468  ;
12469  return 0;
12470}
12471_ACEOF
12472if ac_fn_c_try_compile "$LINENO"; then :
12473  works=yes
12474else
12475
12476$as_echo "#define volatile /**/" >>confdefs.h
12477
12478
12479fi
12480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12482$as_echo "$works" >&6; }
12483
12484works=no
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
12486$as_echo_n "checking for working signed char... " >&6; }
12487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488/* end confdefs.h.  */
12489
12490int
12491main ()
12492{
12493signed char c;
12494  ;
12495  return 0;
12496}
12497_ACEOF
12498if ac_fn_c_try_compile "$LINENO"; then :
12499  works=yes
12500else
12501
12502$as_echo "#define signed /**/" >>confdefs.h
12503
12504
12505fi
12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12508$as_echo "$works" >&6; }
12509
12510have_prototypes=no
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
12512$as_echo_n "checking for prototypes... " >&6; }
12513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514/* end confdefs.h.  */
12515int foo(int x) { return 0; }
12516int
12517main ()
12518{
12519return foo(10);
12520  ;
12521  return 0;
12522}
12523_ACEOF
12524if ac_fn_c_try_compile "$LINENO"; then :
12525
12526$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
12527
12528   have_prototypes=yes
12529fi
12530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
12532$as_echo "$have_prototypes" >&6; }
12533
12534works=no
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
12536$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
12537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538/* end confdefs.h.  */
12539
12540#include <stdarg.h>
12541int foo(int x, ...) {
12542	va_list va;
12543	va_start(va, x);
12544	va_arg(va, int);
12545	va_arg(va, char *);
12546	va_arg(va, double);
12547	return 0;
12548}
12549
12550int
12551main ()
12552{
12553return foo(10, "", 3.14);
12554  ;
12555  return 0;
12556}
12557_ACEOF
12558if ac_fn_c_try_compile "$LINENO"; then :
12559
12560
12561$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
12562
12563  works=yes
12564
12565fi
12566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12568$as_echo "$works" >&6; }
12569
12570# check for socketpair
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
12572$as_echo_n "checking for socketpair... " >&6; }
12573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574/* end confdefs.h.  */
12575
12576#include <sys/types.h>
12577#include <sys/socket.h>
12578
12579int
12580main ()
12581{
12582void *x=socketpair
12583  ;
12584  return 0;
12585}
12586_ACEOF
12587if ac_fn_c_try_compile "$LINENO"; then :
12588
12589$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
12590
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12592$as_echo "yes" >&6; }
12593else
12594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595$as_echo "no" >&6; }
12596
12597fi
12598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12599
12600# check if sockaddr has sa_len member
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
12602$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
12603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604/* end confdefs.h.  */
12605#include <sys/types.h>
12606#include <sys/socket.h>
12607int
12608main ()
12609{
12610struct sockaddr x;
12611x.sa_len = 0;
12612  ;
12613  return 0;
12614}
12615_ACEOF
12616if ac_fn_c_try_compile "$LINENO"; then :
12617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618$as_echo "yes" >&6; }
12619
12620$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
12621
12622else
12623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624$as_echo "no" >&6; }
12625
12626fi
12627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628
12629va_list_is_array=no
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
12631$as_echo_n "checking whether va_list is an array... " >&6; }
12632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633/* end confdefs.h.  */
12634
12635#ifdef HAVE_STDARG_PROTOTYPES
12636#include <stdarg.h>
12637#else
12638#include <varargs.h>
12639#endif
12640
12641int
12642main ()
12643{
12644va_list list1, list2; list1 = list2;
12645  ;
12646  return 0;
12647}
12648_ACEOF
12649if ac_fn_c_try_compile "$LINENO"; then :
12650
12651else
12652
12653
12654$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
12655
12656 va_list_is_array=yes
12657
12658fi
12659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
12661$as_echo "$va_list_is_array" >&6; }
12662
12663# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
12664
12665
12666ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
12667if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
12668
12669  $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12670
12671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
12672$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
12673  OLD_CFLAGS=$CFLAGS
12674  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
12675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676/* end confdefs.h.  */
12677
12678#   include <netdb.h>
12679
12680int
12681main ()
12682{
12683
12684    char *name;
12685    struct hostent *he, *res;
12686    char buffer[2048];
12687    int buflen = 2048;
12688    int h_errnop;
12689
12690    (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
12691
12692  ;
12693  return 0;
12694}
12695_ACEOF
12696if ac_fn_c_try_compile "$LINENO"; then :
12697
12698    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12699
12700
12701$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
12702
12703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12704$as_echo "yes" >&6; }
12705
12706else
12707
12708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709$as_echo "no" >&6; }
12710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
12711$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
12712    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713/* end confdefs.h.  */
12714
12715#       include <netdb.h>
12716
12717int
12718main ()
12719{
12720
12721        char *name;
12722        struct hostent *he;
12723        char buffer[2048];
12724        int buflen = 2048;
12725        int h_errnop;
12726
12727        (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
12728
12729  ;
12730  return 0;
12731}
12732_ACEOF
12733if ac_fn_c_try_compile "$LINENO"; then :
12734
12735        $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12736
12737
12738$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
12739
12740        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12741$as_echo "yes" >&6; }
12742
12743else
12744
12745        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746$as_echo "no" >&6; }
12747        { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
12748$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
12749        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750/* end confdefs.h.  */
12751
12752#           include <netdb.h>
12753
12754int
12755main ()
12756{
12757
12758            char *name;
12759            struct hostent *he;
12760            struct hostent_data data;
12761
12762            (void) gethostbyname_r(name, he, &data);
12763
12764  ;
12765  return 0;
12766}
12767_ACEOF
12768if ac_fn_c_try_compile "$LINENO"; then :
12769
12770            $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12771
12772
12773$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
12774
12775            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12776$as_echo "yes" >&6; }
12777
12778else
12779
12780           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781$as_echo "no" >&6; }
12782
12783fi
12784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785
12786fi
12787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788
12789fi
12790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791  CFLAGS=$OLD_CFLAGS
12792
12793else
12794
12795  for ac_func in gethostbyname
12796do :
12797  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12798if test "x$ac_cv_func_gethostbyname" = xyes; then :
12799  cat >>confdefs.h <<_ACEOF
12800#define HAVE_GETHOSTBYNAME 1
12801_ACEOF
12802
12803fi
12804done
12805
12806
12807fi
12808
12809
12810
12811
12812
12813
12814
12815# checks for system services
12816# (none yet)
12817
12818# Linux requires this for correct f.p. operations
12819ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
12820if test "x$ac_cv_func___fpu_control" = xyes; then :
12821
12822else
12823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
12824$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
12825if ${ac_cv_lib_ieee___fpu_control+:} false; then :
12826  $as_echo_n "(cached) " >&6
12827else
12828  ac_check_lib_save_LIBS=$LIBS
12829LIBS="-lieee  $LIBS"
12830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831/* end confdefs.h.  */
12832
12833/* Override any GCC internal prototype to avoid an error.
12834   Use char because int might match the return type of a GCC
12835   builtin and then its argument prototype would still apply.  */
12836#ifdef __cplusplus
12837extern "C"
12838#endif
12839char __fpu_control ();
12840int
12841main ()
12842{
12843return __fpu_control ();
12844  ;
12845  return 0;
12846}
12847_ACEOF
12848if ac_fn_c_try_link "$LINENO"; then :
12849  ac_cv_lib_ieee___fpu_control=yes
12850else
12851  ac_cv_lib_ieee___fpu_control=no
12852fi
12853rm -f core conftest.err conftest.$ac_objext \
12854    conftest$ac_exeext conftest.$ac_ext
12855LIBS=$ac_check_lib_save_LIBS
12856fi
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
12858$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
12859if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
12860  cat >>confdefs.h <<_ACEOF
12861#define HAVE_LIBIEEE 1
12862_ACEOF
12863
12864  LIBS="-lieee $LIBS"
12865
12866fi
12867
12868
12869fi
12870
12871
12872# Check for --with-fpectl
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
12874$as_echo_n "checking for --with-fpectl... " >&6; }
12875
12876# Check whether --with-fpectl was given.
12877if test "${with_fpectl+set}" = set; then :
12878  withval=$with_fpectl;
12879if test "$withval" != no
12880then
12881
12882$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
12883
12884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12885$as_echo "yes" >&6; }
12886else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887$as_echo "no" >&6; }
12888fi
12889else
12890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891$as_echo "no" >&6; }
12892fi
12893
12894
12895# check for --with-libm=...
12896
12897case $ac_sys_system in
12898Darwin) ;;
12899BeOS) ;;
12900*) LIBM=-lm
12901esac
12902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
12903$as_echo_n "checking for --with-libm=STRING... " >&6; }
12904
12905# Check whether --with-libm was given.
12906if test "${with_libm+set}" = set; then :
12907  withval=$with_libm;
12908if test "$withval" = no
12909then LIBM=
12910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
12911$as_echo "force LIBM empty" >&6; }
12912elif test "$withval" != yes
12913then LIBM=$withval
12914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
12915$as_echo "set LIBM=\"$withval\"" >&6; }
12916else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
12917fi
12918else
12919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
12920$as_echo "default LIBM=\"$LIBM\"" >&6; }
12921fi
12922
12923
12924# check for --with-libc=...
12925
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
12927$as_echo_n "checking for --with-libc=STRING... " >&6; }
12928
12929# Check whether --with-libc was given.
12930if test "${with_libc+set}" = set; then :
12931  withval=$with_libc;
12932if test "$withval" = no
12933then LIBC=
12934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
12935$as_echo "force LIBC empty" >&6; }
12936elif test "$withval" != yes
12937then LIBC=$withval
12938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
12939$as_echo "set LIBC=\"$withval\"" >&6; }
12940else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
12941fi
12942else
12943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
12944$as_echo "default LIBC=\"$LIBC\"" >&6; }
12945fi
12946
12947
12948# **************************************************
12949# * Check for various properties of floating point *
12950# **************************************************
12951
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
12953$as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
12954if ${ac_cv_little_endian_double+:} false; then :
12955  $as_echo_n "(cached) " >&6
12956else
12957
12958if test "$cross_compiling" = yes; then :
12959  ac_cv_little_endian_double=no
12960else
12961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962/* end confdefs.h.  */
12963
12964#include <string.h>
12965int main() {
12966    double x = 9006104071832581.0;
12967    if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
12968        return 0;
12969    else
12970        return 1;
12971}
12972
12973_ACEOF
12974if ac_fn_c_try_run "$LINENO"; then :
12975  ac_cv_little_endian_double=yes
12976else
12977  ac_cv_little_endian_double=no
12978fi
12979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12980  conftest.$ac_objext conftest.beam conftest.$ac_ext
12981fi
12982
12983fi
12984
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
12986$as_echo "$ac_cv_little_endian_double" >&6; }
12987if test "$ac_cv_little_endian_double" = yes
12988then
12989
12990$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
12991
12992fi
12993
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
12995$as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
12996if ${ac_cv_big_endian_double+:} false; then :
12997  $as_echo_n "(cached) " >&6
12998else
12999
13000if test "$cross_compiling" = yes; then :
13001  ac_cv_big_endian_double=no
13002else
13003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004/* end confdefs.h.  */
13005
13006#include <string.h>
13007int main() {
13008    double x = 9006104071832581.0;
13009    if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
13010        return 0;
13011    else
13012        return 1;
13013}
13014
13015_ACEOF
13016if ac_fn_c_try_run "$LINENO"; then :
13017  ac_cv_big_endian_double=yes
13018else
13019  ac_cv_big_endian_double=no
13020fi
13021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13022  conftest.$ac_objext conftest.beam conftest.$ac_ext
13023fi
13024
13025fi
13026
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
13028$as_echo "$ac_cv_big_endian_double" >&6; }
13029if test "$ac_cv_big_endian_double" = yes
13030then
13031
13032$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
13033
13034fi
13035
13036# Some ARM platforms use a mixed-endian representation for doubles.
13037# While Python doesn't currently have full support for these platforms
13038# (see e.g., issue 1762561), we can at least make sure that float <-> string
13039# conversions work.
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
13041$as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
13042if ${ac_cv_mixed_endian_double+:} false; then :
13043  $as_echo_n "(cached) " >&6
13044else
13045
13046if test "$cross_compiling" = yes; then :
13047  ac_cv_mixed_endian_double=no
13048else
13049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h.  */
13051
13052#include <string.h>
13053int main() {
13054    double x = 9006104071832581.0;
13055    if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
13056        return 0;
13057    else
13058        return 1;
13059}
13060
13061_ACEOF
13062if ac_fn_c_try_run "$LINENO"; then :
13063  ac_cv_mixed_endian_double=yes
13064else
13065  ac_cv_mixed_endian_double=no
13066fi
13067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13068  conftest.$ac_objext conftest.beam conftest.$ac_ext
13069fi
13070
13071fi
13072
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
13074$as_echo "$ac_cv_mixed_endian_double" >&6; }
13075if test "$ac_cv_mixed_endian_double" = yes
13076then
13077
13078$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
13079
13080fi
13081
13082# The short float repr introduced in Python 3.1 requires the
13083# correctly-rounded string <-> double conversion functions from
13084# Python/dtoa.c, which in turn require that the FPU uses 53-bit
13085# rounding; this is a problem on x86, where the x87 FPU has a default
13086# rounding precision of 64 bits.  For gcc/x86, we can fix this by
13087# using inline assembler to get and set the x87 FPU control word.
13088
13089# This inline assembler syntax may also work for suncc and icc,
13090# so we try it on all platforms.
13091
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
13093$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
13094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095/* end confdefs.h.  */
13096
13097int
13098main ()
13099{
13100
13101  unsigned short cw;
13102  __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
13103  __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
13104
13105  ;
13106  return 0;
13107}
13108_ACEOF
13109if ac_fn_c_try_link "$LINENO"; then :
13110  have_gcc_asm_for_x87=yes
13111else
13112  have_gcc_asm_for_x87=no
13113fi
13114rm -f core conftest.err conftest.$ac_objext \
13115    conftest$ac_exeext conftest.$ac_ext
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
13117$as_echo "$have_gcc_asm_for_x87" >&6; }
13118if test "$have_gcc_asm_for_x87" = yes
13119then
13120
13121$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
13122
13123fi
13124
13125# Detect whether system arithmetic is subject to x87-style double
13126# rounding issues.  The result of this test has little meaning on non
13127# IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding
13128# mode is round-to-nearest and double rounding issues are present, and
13129# 0 otherwise.  See http://bugs.python.org/issue2937 for more info.
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
13131$as_echo_n "checking for x87-style double rounding... " >&6; }
13132# $BASECFLAGS may affect the result
13133ac_save_cc="$CC"
13134CC="$CC $BASECFLAGS"
13135if test "$cross_compiling" = yes; then :
13136  ac_cv_x87_double_rounding=no
13137else
13138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139/* end confdefs.h.  */
13140
13141#include <stdlib.h>
13142#include <math.h>
13143int main() {
13144    volatile double x, y, z;
13145    /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
13146    x = 0.99999999999999989; /* 1-2**-53 */
13147    y = 1./x;
13148    if (y != 1.)
13149        exit(0);
13150    /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
13151    x = 1e16;
13152    y = 2.99999;
13153    z = x + y;
13154    if (z != 1e16+4.)
13155        exit(0);
13156    /* both tests show evidence of double rounding */
13157    exit(1);
13158}
13159
13160_ACEOF
13161if ac_fn_c_try_run "$LINENO"; then :
13162  ac_cv_x87_double_rounding=no
13163else
13164  ac_cv_x87_double_rounding=yes
13165fi
13166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13167  conftest.$ac_objext conftest.beam conftest.$ac_ext
13168fi
13169
13170CC="$ac_save_cc"
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
13172$as_echo "$ac_cv_x87_double_rounding" >&6; }
13173if test "$ac_cv_x87_double_rounding" = yes
13174then
13175
13176$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
13177
13178fi
13179
13180# ************************************
13181# * Check for mathematical functions *
13182# ************************************
13183
13184LIBS_SAVE=$LIBS
13185LIBS="$LIBS $LIBM"
13186
13187# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
13188# -0. on some architectures.
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
13190$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
13191if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
13192  $as_echo_n "(cached) " >&6
13193else
13194
13195if test "$cross_compiling" = yes; then :
13196  ac_cv_tanh_preserves_zero_sign=no
13197else
13198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199/* end confdefs.h.  */
13200
13201#include <math.h>
13202#include <stdlib.h>
13203int main() {
13204    /* return 0 if either negative zeros don't exist
13205       on this platform or if negative zeros exist
13206       and tanh(-0.) == -0. */
13207  if (atan2(0., -1.) == atan2(-0., -1.) ||
13208      atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
13209  else exit(1);
13210}
13211
13212_ACEOF
13213if ac_fn_c_try_run "$LINENO"; then :
13214  ac_cv_tanh_preserves_zero_sign=yes
13215else
13216  ac_cv_tanh_preserves_zero_sign=no
13217fi
13218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13219  conftest.$ac_objext conftest.beam conftest.$ac_ext
13220fi
13221
13222fi
13223
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
13225$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
13226if test "$ac_cv_tanh_preserves_zero_sign" = yes
13227then
13228
13229$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
13230
13231fi
13232
13233for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
13234do :
13235  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13236ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13237if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13238  cat >>confdefs.h <<_ACEOF
13239#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13240_ACEOF
13241
13242fi
13243done
13244
13245for ac_func in hypot lgamma log1p round tgamma
13246do :
13247  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13249if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13250  cat >>confdefs.h <<_ACEOF
13251#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13252_ACEOF
13253
13254fi
13255done
13256
13257ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
13258"
13259if test "x$ac_cv_have_decl_isinf" = xyes; then :
13260  ac_have_decl=1
13261else
13262  ac_have_decl=0
13263fi
13264
13265cat >>confdefs.h <<_ACEOF
13266#define HAVE_DECL_ISINF $ac_have_decl
13267_ACEOF
13268ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
13269"
13270if test "x$ac_cv_have_decl_isnan" = xyes; then :
13271  ac_have_decl=1
13272else
13273  ac_have_decl=0
13274fi
13275
13276cat >>confdefs.h <<_ACEOF
13277#define HAVE_DECL_ISNAN $ac_have_decl
13278_ACEOF
13279ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
13280"
13281if test "x$ac_cv_have_decl_isfinite" = xyes; then :
13282  ac_have_decl=1
13283else
13284  ac_have_decl=0
13285fi
13286
13287cat >>confdefs.h <<_ACEOF
13288#define HAVE_DECL_ISFINITE $ac_have_decl
13289_ACEOF
13290
13291
13292LIBS=$LIBS_SAVE
13293
13294# For multiprocessing module, check that sem_open
13295# actually works.  For FreeBSD versions <= 7.2,
13296# the kernel module that provides POSIX semaphores
13297# isn't loaded by default, so an attempt to call
13298# sem_open results in a 'Signal 12' error.
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
13300$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
13301if ${ac_cv_posix_semaphores_enabled+:} false; then :
13302  $as_echo_n "(cached) " >&6
13303else
13304  if test "$cross_compiling" = yes; then :
13305  ac_cv_posix_semaphores_enabled=yes
13306else
13307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308/* end confdefs.h.  */
13309
13310#include <unistd.h>
13311#include <fcntl.h>
13312#include <stdio.h>
13313#include <semaphore.h>
13314#include <sys/stat.h>
13315
13316int main(void) {
13317  sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
13318  if (a == SEM_FAILED) {
13319    perror("sem_open");
13320    return 1;
13321  }
13322  sem_close(a);
13323  sem_unlink("/autoconf");
13324  return 0;
13325}
13326
13327_ACEOF
13328if ac_fn_c_try_run "$LINENO"; then :
13329  ac_cv_posix_semaphores_enabled=yes
13330else
13331  ac_cv_posix_semaphores_enabled=no
13332fi
13333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13334  conftest.$ac_objext conftest.beam conftest.$ac_ext
13335fi
13336
13337
13338fi
13339
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
13341$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
13342if test $ac_cv_posix_semaphores_enabled = no
13343then
13344
13345$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
13346
13347fi
13348
13349# Multiprocessing check for broken sem_getvalue
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
13351$as_echo_n "checking for broken sem_getvalue... " >&6; }
13352if ${ac_cv_broken_sem_getvalue+:} false; then :
13353  $as_echo_n "(cached) " >&6
13354else
13355  if test "$cross_compiling" = yes; then :
13356  ac_cv_broken_sem_getvalue=yes
13357else
13358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359/* end confdefs.h.  */
13360
13361#include <unistd.h>
13362#include <fcntl.h>
13363#include <stdio.h>
13364#include <semaphore.h>
13365#include <sys/stat.h>
13366
13367int main(void){
13368  sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
13369  int count;
13370  int res;
13371  if(a==SEM_FAILED){
13372    perror("sem_open");
13373    return 1;
13374
13375  }
13376  res = sem_getvalue(a, &count);
13377  sem_close(a);
13378  sem_unlink("/autocftw");
13379  return res==-1 ? 1 : 0;
13380}
13381
13382_ACEOF
13383if ac_fn_c_try_run "$LINENO"; then :
13384  ac_cv_broken_sem_getvalue=no
13385else
13386  ac_cv_broken_sem_getvalue=yes
13387fi
13388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13389  conftest.$ac_objext conftest.beam conftest.$ac_ext
13390fi
13391
13392
13393fi
13394
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
13396$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
13397if test $ac_cv_broken_sem_getvalue = yes
13398then
13399
13400$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
13401
13402fi
13403
13404# determine what size digit to use for Python's longs
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
13406$as_echo_n "checking digit size for Python's longs... " >&6; }
13407# Check whether --enable-big-digits was given.
13408if test "${enable_big_digits+set}" = set; then :
13409  enableval=$enable_big_digits; case $enable_big_digits in
13410yes)
13411  enable_big_digits=30 ;;
13412no)
13413  enable_big_digits=15 ;;
1341415|30)
13415  ;;
13416*)
13417  as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
13418esac
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
13420$as_echo "$enable_big_digits" >&6; }
13421
13422cat >>confdefs.h <<_ACEOF
13423#define PYLONG_BITS_IN_DIGIT $enable_big_digits
13424_ACEOF
13425
13426
13427else
13428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
13429$as_echo "no value specified" >&6; }
13430fi
13431
13432
13433# check for wchar.h
13434ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
13435if test "x$ac_cv_header_wchar_h" = xyes; then :
13436
13437
13438$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
13439
13440  wchar_h="yes"
13441
13442else
13443  wchar_h="no"
13444
13445fi
13446
13447
13448
13449# determine wchar_t size
13450if test "$wchar_h" = yes
13451then
13452  # The cast to long int works around a bug in the HP C Compiler
13453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13455# This bug is HP SR number 8606223364.
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13457$as_echo_n "checking size of wchar_t... " >&6; }
13458if ${ac_cv_sizeof_wchar_t+:} false; then :
13459  $as_echo_n "(cached) " >&6
13460else
13461  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h>
13462"; then :
13463
13464else
13465  if test "$ac_cv_type_wchar_t" = yes; then
13466     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13468as_fn_error 77 "cannot compute sizeof (wchar_t)
13469See \`config.log' for more details" "$LINENO" 5; }
13470   else
13471     ac_cv_sizeof_wchar_t=0
13472   fi
13473fi
13474
13475fi
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13477$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
13478
13479
13480
13481cat >>confdefs.h <<_ACEOF
13482#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
13483_ACEOF
13484
13485
13486fi
13487
13488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
13489$as_echo_n "checking for UCS-4 tcl... " >&6; }
13490have_ucs4_tcl=no
13491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492/* end confdefs.h.  */
13493
13494#include <tcl.h>
13495#if TCL_UTF_MAX != 6
13496# error "NOT UCS4_TCL"
13497#endif
13498int
13499main ()
13500{
13501
13502  ;
13503  return 0;
13504}
13505_ACEOF
13506if ac_fn_c_try_compile "$LINENO"; then :
13507
13508
13509$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
13510
13511  have_ucs4_tcl=yes
13512
13513fi
13514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
13516$as_echo "$have_ucs4_tcl" >&6; }
13517
13518# check whether wchar_t is signed or not
13519if test "$wchar_h" = yes
13520then
13521  # check whether wchar_t is signed or not
13522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
13523$as_echo_n "checking whether wchar_t is signed... " >&6; }
13524  if ${ac_cv_wchar_t_signed+:} false; then :
13525  $as_echo_n "(cached) " >&6
13526else
13527
13528  if test "$cross_compiling" = yes; then :
13529  ac_cv_wchar_t_signed=yes
13530else
13531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532/* end confdefs.h.  */
13533
13534  #include <wchar.h>
13535  int main()
13536  {
13537	/* Success: exit code 0 */
13538        exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
13539  }
13540
13541_ACEOF
13542if ac_fn_c_try_run "$LINENO"; then :
13543  ac_cv_wchar_t_signed=yes
13544else
13545  ac_cv_wchar_t_signed=no
13546fi
13547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13548  conftest.$ac_objext conftest.beam conftest.$ac_ext
13549fi
13550
13551fi
13552
13553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
13554$as_echo "$ac_cv_wchar_t_signed" >&6; }
13555fi
13556
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
13558$as_echo_n "checking what type to use for unicode... " >&6; }
13559# Check whether --enable-unicode was given.
13560if test "${enable_unicode+set}" = set; then :
13561  enableval=$enable_unicode;
13562else
13563  enable_unicode=yes
13564fi
13565
13566
13567if test $enable_unicode = yes
13568then
13569  # Without any arguments, Py_UNICODE defaults to two-byte mode
13570  case "$have_ucs4_tcl" in
13571  yes) enable_unicode="ucs4"
13572       ;;
13573  *)   enable_unicode="ucs2"
13574       ;;
13575  esac
13576fi
13577
13578
13579case "$enable_unicode" in
13580ucs2) unicode_size="2"
13581      $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
13582
13583      ;;
13584ucs4) unicode_size="4"
13585      $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
13586
13587      ;;
13588no)   ;;      # To allow --disable-unicode
13589*) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;;
13590esac
13591
13592
13593
13594
13595if test "$enable_unicode" = "no"
13596then
13597  UNICODE_OBJS=""
13598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
13599$as_echo "not used" >&6; }
13600else
13601  UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
13602
13603$as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
13604
13605
13606  # wchar_t is only usable if it maps to an unsigned type
13607  if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
13608          -a "$ac_cv_wchar_t_signed" = "no"
13609  then
13610    PY_UNICODE_TYPE="wchar_t"
13611
13612$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
13613
13614    $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
13615
13616  elif test "$ac_cv_sizeof_short" = "$unicode_size"
13617  then
13618       PY_UNICODE_TYPE="unsigned short"
13619       $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
13620
13621  elif test "$ac_cv_sizeof_long" = "$unicode_size"
13622  then
13623       PY_UNICODE_TYPE="unsigned long"
13624       $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
13625
13626  else
13627       PY_UNICODE_TYPE="no type found"
13628  fi
13629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
13630$as_echo "$PY_UNICODE_TYPE" >&6; }
13631fi
13632
13633# check for endianness
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13635$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13636if ${ac_cv_c_bigendian+:} false; then :
13637  $as_echo_n "(cached) " >&6
13638else
13639  ac_cv_c_bigendian=unknown
13640    # See if we're dealing with a universal compiler.
13641    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642/* end confdefs.h.  */
13643#ifndef __APPLE_CC__
13644	       not a universal capable compiler
13645	     #endif
13646	     typedef int dummy;
13647
13648_ACEOF
13649if ac_fn_c_try_compile "$LINENO"; then :
13650
13651	# Check for potential -arch flags.  It is not universal unless
13652	# there are at least two -arch flags with different values.
13653	ac_arch=
13654	ac_prev=
13655	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13656	 if test -n "$ac_prev"; then
13657	   case $ac_word in
13658	     i?86 | x86_64 | ppc | ppc64)
13659	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13660		 ac_arch=$ac_word
13661	       else
13662		 ac_cv_c_bigendian=universal
13663		 break
13664	       fi
13665	       ;;
13666	   esac
13667	   ac_prev=
13668	 elif test "x$ac_word" = "x-arch"; then
13669	   ac_prev=arch
13670	 fi
13671       done
13672fi
13673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674    if test $ac_cv_c_bigendian = unknown; then
13675      # See if sys/param.h defines the BYTE_ORDER macro.
13676      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677/* end confdefs.h.  */
13678#include <sys/types.h>
13679	     #include <sys/param.h>
13680
13681int
13682main ()
13683{
13684#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13685		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13686		     && LITTLE_ENDIAN)
13687	      bogus endian macros
13688	     #endif
13689
13690  ;
13691  return 0;
13692}
13693_ACEOF
13694if ac_fn_c_try_compile "$LINENO"; then :
13695  # It does; now see whether it defined to BIG_ENDIAN or not.
13696	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697/* end confdefs.h.  */
13698#include <sys/types.h>
13699		#include <sys/param.h>
13700
13701int
13702main ()
13703{
13704#if BYTE_ORDER != BIG_ENDIAN
13705		 not big endian
13706		#endif
13707
13708  ;
13709  return 0;
13710}
13711_ACEOF
13712if ac_fn_c_try_compile "$LINENO"; then :
13713  ac_cv_c_bigendian=yes
13714else
13715  ac_cv_c_bigendian=no
13716fi
13717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718fi
13719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720    fi
13721    if test $ac_cv_c_bigendian = unknown; then
13722      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13723      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724/* end confdefs.h.  */
13725#include <limits.h>
13726
13727int
13728main ()
13729{
13730#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13731	      bogus endian macros
13732	     #endif
13733
13734  ;
13735  return 0;
13736}
13737_ACEOF
13738if ac_fn_c_try_compile "$LINENO"; then :
13739  # It does; now see whether it defined to _BIG_ENDIAN or not.
13740	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741/* end confdefs.h.  */
13742#include <limits.h>
13743
13744int
13745main ()
13746{
13747#ifndef _BIG_ENDIAN
13748		 not big endian
13749		#endif
13750
13751  ;
13752  return 0;
13753}
13754_ACEOF
13755if ac_fn_c_try_compile "$LINENO"; then :
13756  ac_cv_c_bigendian=yes
13757else
13758  ac_cv_c_bigendian=no
13759fi
13760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761fi
13762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763    fi
13764    if test $ac_cv_c_bigendian = unknown; then
13765      # Compile a test program.
13766      if test "$cross_compiling" = yes; then :
13767  # Try to guess by grepping values from an object file.
13768	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769/* end confdefs.h.  */
13770short int ascii_mm[] =
13771		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13772		short int ascii_ii[] =
13773		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13774		int use_ascii (int i) {
13775		  return ascii_mm[i] + ascii_ii[i];
13776		}
13777		short int ebcdic_ii[] =
13778		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13779		short int ebcdic_mm[] =
13780		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13781		int use_ebcdic (int i) {
13782		  return ebcdic_mm[i] + ebcdic_ii[i];
13783		}
13784		extern int foo;
13785
13786int
13787main ()
13788{
13789return use_ascii (foo) == use_ebcdic (foo);
13790  ;
13791  return 0;
13792}
13793_ACEOF
13794if ac_fn_c_try_compile "$LINENO"; then :
13795  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13796	      ac_cv_c_bigendian=yes
13797	    fi
13798	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13799	      if test "$ac_cv_c_bigendian" = unknown; then
13800		ac_cv_c_bigendian=no
13801	      else
13802		# finding both strings is unlikely to happen, but who knows?
13803		ac_cv_c_bigendian=unknown
13804	      fi
13805	    fi
13806fi
13807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13808else
13809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810/* end confdefs.h.  */
13811$ac_includes_default
13812int
13813main ()
13814{
13815
13816	     /* Are we little or big endian?  From Harbison&Steele.  */
13817	     union
13818	     {
13819	       long int l;
13820	       char c[sizeof (long int)];
13821	     } u;
13822	     u.l = 1;
13823	     return u.c[sizeof (long int) - 1] == 1;
13824
13825  ;
13826  return 0;
13827}
13828_ACEOF
13829if ac_fn_c_try_run "$LINENO"; then :
13830  ac_cv_c_bigendian=no
13831else
13832  ac_cv_c_bigendian=yes
13833fi
13834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13835  conftest.$ac_objext conftest.beam conftest.$ac_ext
13836fi
13837
13838    fi
13839fi
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13841$as_echo "$ac_cv_c_bigendian" >&6; }
13842 case $ac_cv_c_bigendian in #(
13843   yes)
13844     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13845;; #(
13846   no)
13847      ;; #(
13848   universal)
13849
13850$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13851
13852     ;; #(
13853   *)
13854     as_fn_error $? "unknown endianness
13855 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13856 esac
13857
13858
13859# Check whether right shifting a negative integer extends the sign bit
13860# or fills with zeros (like the Cray J90, according to Tim Peters).
13861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
13862$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
13863if ${ac_cv_rshift_extends_sign+:} false; then :
13864  $as_echo_n "(cached) " >&6
13865else
13866
13867if test "$cross_compiling" = yes; then :
13868  ac_cv_rshift_extends_sign=yes
13869else
13870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871/* end confdefs.h.  */
13872
13873int main()
13874{
13875	exit(((-1)>>3 == -1) ? 0 : 1);
13876}
13877
13878_ACEOF
13879if ac_fn_c_try_run "$LINENO"; then :
13880  ac_cv_rshift_extends_sign=yes
13881else
13882  ac_cv_rshift_extends_sign=no
13883fi
13884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13885  conftest.$ac_objext conftest.beam conftest.$ac_ext
13886fi
13887
13888fi
13889
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
13891$as_echo "$ac_cv_rshift_extends_sign" >&6; }
13892if test "$ac_cv_rshift_extends_sign" = no
13893then
13894
13895$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
13896
13897fi
13898
13899# check for getc_unlocked and related locking functions
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
13901$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
13902if ${ac_cv_have_getc_unlocked+:} false; then :
13903  $as_echo_n "(cached) " >&6
13904else
13905
13906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907/* end confdefs.h.  */
13908#include <stdio.h>
13909int
13910main ()
13911{
13912
13913	FILE *f = fopen("/dev/null", "r");
13914	flockfile(f);
13915	getc_unlocked(f);
13916	funlockfile(f);
13917
13918  ;
13919  return 0;
13920}
13921_ACEOF
13922if ac_fn_c_try_link "$LINENO"; then :
13923  ac_cv_have_getc_unlocked=yes
13924else
13925  ac_cv_have_getc_unlocked=no
13926fi
13927rm -f core conftest.err conftest.$ac_objext \
13928    conftest$ac_exeext conftest.$ac_ext
13929fi
13930
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
13932$as_echo "$ac_cv_have_getc_unlocked" >&6; }
13933if test "$ac_cv_have_getc_unlocked" = yes
13934then
13935
13936$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
13937
13938fi
13939
13940# check where readline lives
13941# save the value of LIBS so we don't actually link Python with readline
13942LIBS_no_readline=$LIBS
13943
13944# On some systems we need to link readline to a termcap compatible
13945# library.  NOTE: Keep the precedence of listed libraries synchronised
13946# with setup.py.
13947py_cv_lib_readline=no
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
13949$as_echo_n "checking how to link readline libs... " >&6; }
13950for py_libtermcap in "" ncursesw ncurses curses termcap; do
13951  if test -z "$py_libtermcap"; then
13952    READLINE_LIBS="-lreadline"
13953  else
13954    READLINE_LIBS="-lreadline -l$py_libtermcap"
13955  fi
13956  LIBS="$READLINE_LIBS $LIBS_no_readline"
13957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958/* end confdefs.h.  */
13959
13960/* Override any GCC internal prototype to avoid an error.
13961   Use char because int might match the return type of a GCC
13962   builtin and then its argument prototype would still apply.  */
13963#ifdef __cplusplus
13964extern "C"
13965#endif
13966char readline ();
13967int
13968main ()
13969{
13970return readline ();
13971  ;
13972  return 0;
13973}
13974_ACEOF
13975if ac_fn_c_try_link "$LINENO"; then :
13976  py_cv_lib_readline=yes
13977fi
13978rm -f core conftest.err conftest.$ac_objext \
13979    conftest$ac_exeext conftest.$ac_ext
13980  if test $py_cv_lib_readline = yes; then
13981    break
13982  fi
13983done
13984# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
13985#AC_SUBST([READLINE_LIBS])
13986if test $py_cv_lib_readline = no; then
13987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13988$as_echo "none" >&6; }
13989else
13990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
13991$as_echo "$READLINE_LIBS" >&6; }
13992
13993$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
13994
13995fi
13996
13997# check for readline 2.1
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
13999$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
14000if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
14001  $as_echo_n "(cached) " >&6
14002else
14003  ac_check_lib_save_LIBS=$LIBS
14004LIBS="-lreadline $READLINE_LIBS $LIBS"
14005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006/* end confdefs.h.  */
14007
14008/* Override any GCC internal prototype to avoid an error.
14009   Use char because int might match the return type of a GCC
14010   builtin and then its argument prototype would still apply.  */
14011#ifdef __cplusplus
14012extern "C"
14013#endif
14014char rl_callback_handler_install ();
14015int
14016main ()
14017{
14018return rl_callback_handler_install ();
14019  ;
14020  return 0;
14021}
14022_ACEOF
14023if ac_fn_c_try_link "$LINENO"; then :
14024  ac_cv_lib_readline_rl_callback_handler_install=yes
14025else
14026  ac_cv_lib_readline_rl_callback_handler_install=no
14027fi
14028rm -f core conftest.err conftest.$ac_objext \
14029    conftest$ac_exeext conftest.$ac_ext
14030LIBS=$ac_check_lib_save_LIBS
14031fi
14032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
14033$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
14034if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
14035
14036$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
14037
14038fi
14039
14040
14041# check for readline 2.2
14042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043/* end confdefs.h.  */
14044#include <readline/readline.h>
14045_ACEOF
14046if ac_fn_c_try_cpp "$LINENO"; then :
14047  have_readline=yes
14048else
14049  have_readline=no
14050
14051fi
14052rm -f conftest.err conftest.i conftest.$ac_ext
14053if test $have_readline = yes
14054then
14055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056/* end confdefs.h.  */
14057#include <readline/readline.h>
14058
14059_ACEOF
14060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14061  $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
14062
14063$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
14064
14065fi
14066rm -f conftest*
14067
14068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069/* end confdefs.h.  */
14070#include <readline/readline.h>
14071
14072_ACEOF
14073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14074  $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
14075
14076$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
14077
14078fi
14079rm -f conftest*
14080
14081fi
14082
14083# check for readline 4.0
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
14085$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
14086if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
14087  $as_echo_n "(cached) " >&6
14088else
14089  ac_check_lib_save_LIBS=$LIBS
14090LIBS="-lreadline $READLINE_LIBS $LIBS"
14091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092/* end confdefs.h.  */
14093
14094/* Override any GCC internal prototype to avoid an error.
14095   Use char because int might match the return type of a GCC
14096   builtin and then its argument prototype would still apply.  */
14097#ifdef __cplusplus
14098extern "C"
14099#endif
14100char rl_pre_input_hook ();
14101int
14102main ()
14103{
14104return rl_pre_input_hook ();
14105  ;
14106  return 0;
14107}
14108_ACEOF
14109if ac_fn_c_try_link "$LINENO"; then :
14110  ac_cv_lib_readline_rl_pre_input_hook=yes
14111else
14112  ac_cv_lib_readline_rl_pre_input_hook=no
14113fi
14114rm -f core conftest.err conftest.$ac_objext \
14115    conftest$ac_exeext conftest.$ac_ext
14116LIBS=$ac_check_lib_save_LIBS
14117fi
14118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
14119$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
14120if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
14121
14122$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
14123
14124fi
14125
14126
14127# also in 4.0
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
14129$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
14130if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
14131  $as_echo_n "(cached) " >&6
14132else
14133  ac_check_lib_save_LIBS=$LIBS
14134LIBS="-lreadline $READLINE_LIBS $LIBS"
14135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136/* end confdefs.h.  */
14137
14138/* Override any GCC internal prototype to avoid an error.
14139   Use char because int might match the return type of a GCC
14140   builtin and then its argument prototype would still apply.  */
14141#ifdef __cplusplus
14142extern "C"
14143#endif
14144char rl_completion_display_matches_hook ();
14145int
14146main ()
14147{
14148return rl_completion_display_matches_hook ();
14149  ;
14150  return 0;
14151}
14152_ACEOF
14153if ac_fn_c_try_link "$LINENO"; then :
14154  ac_cv_lib_readline_rl_completion_display_matches_hook=yes
14155else
14156  ac_cv_lib_readline_rl_completion_display_matches_hook=no
14157fi
14158rm -f core conftest.err conftest.$ac_objext \
14159    conftest$ac_exeext conftest.$ac_ext
14160LIBS=$ac_check_lib_save_LIBS
14161fi
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
14163$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
14164if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
14165
14166$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
14167
14168fi
14169
14170
14171# also in 4.0, but not in editline
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
14173$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
14174if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
14175  $as_echo_n "(cached) " >&6
14176else
14177  ac_check_lib_save_LIBS=$LIBS
14178LIBS="-lreadline $READLINE_LIBS $LIBS"
14179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180/* end confdefs.h.  */
14181
14182/* Override any GCC internal prototype to avoid an error.
14183   Use char because int might match the return type of a GCC
14184   builtin and then its argument prototype would still apply.  */
14185#ifdef __cplusplus
14186extern "C"
14187#endif
14188char rl_resize_terminal ();
14189int
14190main ()
14191{
14192return rl_resize_terminal ();
14193  ;
14194  return 0;
14195}
14196_ACEOF
14197if ac_fn_c_try_link "$LINENO"; then :
14198  ac_cv_lib_readline_rl_resize_terminal=yes
14199else
14200  ac_cv_lib_readline_rl_resize_terminal=no
14201fi
14202rm -f core conftest.err conftest.$ac_objext \
14203    conftest$ac_exeext conftest.$ac_ext
14204LIBS=$ac_check_lib_save_LIBS
14205fi
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
14207$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
14208if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
14209
14210$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
14211
14212fi
14213
14214
14215# check for readline 4.2
14216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
14217$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
14218if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
14219  $as_echo_n "(cached) " >&6
14220else
14221  ac_check_lib_save_LIBS=$LIBS
14222LIBS="-lreadline $READLINE_LIBS $LIBS"
14223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224/* end confdefs.h.  */
14225
14226/* Override any GCC internal prototype to avoid an error.
14227   Use char because int might match the return type of a GCC
14228   builtin and then its argument prototype would still apply.  */
14229#ifdef __cplusplus
14230extern "C"
14231#endif
14232char rl_completion_matches ();
14233int
14234main ()
14235{
14236return rl_completion_matches ();
14237  ;
14238  return 0;
14239}
14240_ACEOF
14241if ac_fn_c_try_link "$LINENO"; then :
14242  ac_cv_lib_readline_rl_completion_matches=yes
14243else
14244  ac_cv_lib_readline_rl_completion_matches=no
14245fi
14246rm -f core conftest.err conftest.$ac_objext \
14247    conftest$ac_exeext conftest.$ac_ext
14248LIBS=$ac_check_lib_save_LIBS
14249fi
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
14251$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
14252if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
14253
14254$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
14255
14256fi
14257
14258
14259# also in readline 4.2
14260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261/* end confdefs.h.  */
14262#include <readline/readline.h>
14263_ACEOF
14264if ac_fn_c_try_cpp "$LINENO"; then :
14265  have_readline=yes
14266else
14267  have_readline=no
14268
14269fi
14270rm -f conftest.err conftest.i conftest.$ac_ext
14271if test $have_readline = yes
14272then
14273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274/* end confdefs.h.  */
14275#include <readline/readline.h>
14276
14277_ACEOF
14278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14279  $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
14280
14281$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
14282
14283fi
14284rm -f conftest*
14285
14286fi
14287
14288# End of readline checks: restore LIBS
14289LIBS=$LIBS_no_readline
14290
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
14292$as_echo_n "checking for broken nice()... " >&6; }
14293if ${ac_cv_broken_nice+:} false; then :
14294  $as_echo_n "(cached) " >&6
14295else
14296
14297if test "$cross_compiling" = yes; then :
14298  ac_cv_broken_nice=no
14299else
14300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301/* end confdefs.h.  */
14302
14303int main()
14304{
14305	int val1 = nice(1);
14306	if (val1 != -1 && val1 == nice(2))
14307		exit(0);
14308	exit(1);
14309}
14310
14311_ACEOF
14312if ac_fn_c_try_run "$LINENO"; then :
14313  ac_cv_broken_nice=yes
14314else
14315  ac_cv_broken_nice=no
14316fi
14317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14318  conftest.$ac_objext conftest.beam conftest.$ac_ext
14319fi
14320
14321fi
14322
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
14324$as_echo "$ac_cv_broken_nice" >&6; }
14325if test "$ac_cv_broken_nice" = yes
14326then
14327
14328$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
14329
14330fi
14331
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
14333$as_echo_n "checking for broken poll()... " >&6; }
14334if ${ac_cv_broken_poll+:} false; then :
14335  $as_echo_n "(cached) " >&6
14336else
14337  if test "$cross_compiling" = yes; then :
14338  ac_cv_broken_poll=no
14339else
14340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341/* end confdefs.h.  */
14342
14343#include <poll.h>
14344
14345int main()
14346{
14347    struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
14348    int poll_test;
14349
14350    close (42);
14351
14352    poll_test = poll(&poll_struct, 1, 0);
14353    if (poll_test < 0)
14354        return 0;
14355    else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
14356        return 0;
14357    else
14358        return 1;
14359}
14360
14361_ACEOF
14362if ac_fn_c_try_run "$LINENO"; then :
14363  ac_cv_broken_poll=yes
14364else
14365  ac_cv_broken_poll=no
14366fi
14367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14368  conftest.$ac_objext conftest.beam conftest.$ac_ext
14369fi
14370
14371fi
14372
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
14374$as_echo "$ac_cv_broken_poll" >&6; }
14375if test "$ac_cv_broken_poll" = yes
14376then
14377
14378$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
14379
14380fi
14381
14382# Before we can test tzset, we need to check if struct tm has a tm_zone
14383# (which is not required by ISO C or UNIX spec) and/or if we support
14384# tzname[]
14385ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14386#include <$ac_cv_struct_tm>
14387
14388"
14389if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
14390
14391cat >>confdefs.h <<_ACEOF
14392#define HAVE_STRUCT_TM_TM_ZONE 1
14393_ACEOF
14394
14395
14396fi
14397
14398if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14399
14400$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
14401
14402else
14403  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
14404"
14405if test "x$ac_cv_have_decl_tzname" = xyes; then :
14406  ac_have_decl=1
14407else
14408  ac_have_decl=0
14409fi
14410
14411cat >>confdefs.h <<_ACEOF
14412#define HAVE_DECL_TZNAME $ac_have_decl
14413_ACEOF
14414
14415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14416$as_echo_n "checking for tzname... " >&6; }
14417if ${ac_cv_var_tzname+:} false; then :
14418  $as_echo_n "(cached) " >&6
14419else
14420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421/* end confdefs.h.  */
14422#include <time.h>
14423#if !HAVE_DECL_TZNAME
14424extern char *tzname[];
14425#endif
14426
14427int
14428main ()
14429{
14430return tzname[0][0];
14431  ;
14432  return 0;
14433}
14434_ACEOF
14435if ac_fn_c_try_link "$LINENO"; then :
14436  ac_cv_var_tzname=yes
14437else
14438  ac_cv_var_tzname=no
14439fi
14440rm -f core conftest.err conftest.$ac_objext \
14441    conftest$ac_exeext conftest.$ac_ext
14442fi
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14444$as_echo "$ac_cv_var_tzname" >&6; }
14445  if test $ac_cv_var_tzname = yes; then
14446
14447$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
14448
14449  fi
14450fi
14451
14452
14453# check tzset(3) exists and works like we expect it to
14454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
14455$as_echo_n "checking for working tzset()... " >&6; }
14456if ${ac_cv_working_tzset+:} false; then :
14457  $as_echo_n "(cached) " >&6
14458else
14459
14460if test "$cross_compiling" = yes; then :
14461  ac_cv_working_tzset=no
14462else
14463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464/* end confdefs.h.  */
14465
14466#include <stdlib.h>
14467#include <time.h>
14468#include <string.h>
14469
14470#if HAVE_TZNAME
14471extern char *tzname[];
14472#endif
14473
14474int main()
14475{
14476	/* Note that we need to ensure that not only does tzset(3)
14477	   do 'something' with localtime, but it works as documented
14478	   in the library reference and as expected by the test suite.
14479	   This includes making sure that tzname is set properly if
14480	   tm->tm_zone does not exist since it is the alternative way
14481	   of getting timezone info.
14482
14483	   Red Hat 6.2 doesn't understand the southern hemisphere
14484	   after New Year's Day.
14485	*/
14486
14487	time_t groundhogday = 1044144000; /* GMT-based */
14488	time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
14489
14490	putenv("TZ=UTC+0");
14491	tzset();
14492	if (localtime(&groundhogday)->tm_hour != 0)
14493	    exit(1);
14494#if HAVE_TZNAME
14495	/* For UTC, tzname[1] is sometimes "", sometimes "   " */
14496	if (strcmp(tzname[0], "UTC") ||
14497		(tzname[1][0] != 0 && tzname[1][0] != ' '))
14498	    exit(1);
14499#endif
14500
14501	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
14502	tzset();
14503	if (localtime(&groundhogday)->tm_hour != 19)
14504	    exit(1);
14505#if HAVE_TZNAME
14506	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
14507	    exit(1);
14508#endif
14509
14510	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
14511	tzset();
14512	if (localtime(&groundhogday)->tm_hour != 11)
14513	    exit(1);
14514#if HAVE_TZNAME
14515	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
14516	    exit(1);
14517#endif
14518
14519#if HAVE_STRUCT_TM_TM_ZONE
14520	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
14521	    exit(1);
14522	if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
14523	    exit(1);
14524#endif
14525
14526	exit(0);
14527}
14528
14529_ACEOF
14530if ac_fn_c_try_run "$LINENO"; then :
14531  ac_cv_working_tzset=yes
14532else
14533  ac_cv_working_tzset=no
14534fi
14535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14536  conftest.$ac_objext conftest.beam conftest.$ac_ext
14537fi
14538
14539fi
14540
14541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
14542$as_echo "$ac_cv_working_tzset" >&6; }
14543if test "$ac_cv_working_tzset" = yes
14544then
14545
14546$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
14547
14548fi
14549
14550# Look for subsecond timestamps in struct stat
14551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
14552$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
14553if ${ac_cv_stat_tv_nsec+:} false; then :
14554  $as_echo_n "(cached) " >&6
14555else
14556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557/* end confdefs.h.  */
14558#include <sys/stat.h>
14559int
14560main ()
14561{
14562
14563struct stat st;
14564st.st_mtim.tv_nsec = 1;
14565
14566  ;
14567  return 0;
14568}
14569_ACEOF
14570if ac_fn_c_try_compile "$LINENO"; then :
14571  ac_cv_stat_tv_nsec=yes
14572else
14573  ac_cv_stat_tv_nsec=no
14574fi
14575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576fi
14577
14578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
14579$as_echo "$ac_cv_stat_tv_nsec" >&6; }
14580if test "$ac_cv_stat_tv_nsec" = yes
14581then
14582
14583$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
14584
14585fi
14586
14587# Look for BSD style subsecond timestamps in struct stat
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
14589$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
14590if ${ac_cv_stat_tv_nsec2+:} false; then :
14591  $as_echo_n "(cached) " >&6
14592else
14593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594/* end confdefs.h.  */
14595#include <sys/stat.h>
14596int
14597main ()
14598{
14599
14600struct stat st;
14601st.st_mtimespec.tv_nsec = 1;
14602
14603  ;
14604  return 0;
14605}
14606_ACEOF
14607if ac_fn_c_try_compile "$LINENO"; then :
14608  ac_cv_stat_tv_nsec2=yes
14609else
14610  ac_cv_stat_tv_nsec2=no
14611fi
14612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14613fi
14614
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
14616$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
14617if test "$ac_cv_stat_tv_nsec2" = yes
14618then
14619
14620$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
14621
14622fi
14623
14624# first curses configure check
14625ac_save_cppflags="$CPPFLAGS"
14626CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
14627
14628for ac_header in curses.h ncurses.h
14629do :
14630  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14631ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14632if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14633  cat >>confdefs.h <<_ACEOF
14634#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14635_ACEOF
14636
14637fi
14638
14639done
14640
14641
14642# On Solaris, term.h requires curses.h
14643for ac_header in term.h
14644do :
14645  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
14646#ifdef HAVE_CURSES_H
14647#include <curses.h>
14648#endif
14649
14650"
14651if test "x$ac_cv_header_term_h" = xyes; then :
14652  cat >>confdefs.h <<_ACEOF
14653#define HAVE_TERM_H 1
14654_ACEOF
14655
14656fi
14657
14658done
14659
14660
14661# On HP/UX 11.0, mvwdelch is a block with a return statement
14662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
14663$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
14664if ${ac_cv_mvwdelch_is_expression+:} false; then :
14665  $as_echo_n "(cached) " >&6
14666else
14667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668/* end confdefs.h.  */
14669#include <curses.h>
14670int
14671main ()
14672{
14673
14674  int rtn;
14675  rtn = mvwdelch(0,0,0);
14676
14677  ;
14678  return 0;
14679}
14680_ACEOF
14681if ac_fn_c_try_compile "$LINENO"; then :
14682  ac_cv_mvwdelch_is_expression=yes
14683else
14684  ac_cv_mvwdelch_is_expression=no
14685fi
14686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687fi
14688
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
14690$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
14691
14692if test "$ac_cv_mvwdelch_is_expression" = yes
14693then
14694
14695$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
14696
14697fi
14698
14699# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
14700# structs since version 5.7.  If the macro is defined as zero before including
14701# [n]curses.h, ncurses will expose fields of the structs regardless of the
14702# configuration.
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
14704$as_echo_n "checking whether WINDOW has _flags... " >&6; }
14705if ${ac_cv_window_has_flags+:} false; then :
14706  $as_echo_n "(cached) " >&6
14707else
14708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709/* end confdefs.h.  */
14710
14711  #define NCURSES_OPAQUE 0
14712  #include <curses.h>
14713
14714int
14715main ()
14716{
14717
14718  WINDOW *w;
14719  w->_flags = 0;
14720
14721  ;
14722  return 0;
14723}
14724_ACEOF
14725if ac_fn_c_try_compile "$LINENO"; then :
14726  ac_cv_window_has_flags=yes
14727else
14728  ac_cv_window_has_flags=no
14729fi
14730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731fi
14732
14733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
14734$as_echo "$ac_cv_window_has_flags" >&6; }
14735
14736
14737if test "$ac_cv_window_has_flags" = yes
14738then
14739
14740$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
14741
14742fi
14743
14744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
14745$as_echo_n "checking for is_pad... " >&6; }
14746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747/* end confdefs.h.  */
14748#include <curses.h>
14749int
14750main ()
14751{
14752
14753#ifndef is_pad
14754void *x=is_pad
14755#endif
14756
14757  ;
14758  return 0;
14759}
14760_ACEOF
14761if ac_fn_c_try_compile "$LINENO"; then :
14762
14763$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
14764
14765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14766$as_echo "yes" >&6; }
14767else
14768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769$as_echo "no" >&6; }
14770
14771fi
14772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
14775$as_echo_n "checking for is_term_resized... " >&6; }
14776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777/* end confdefs.h.  */
14778#include <curses.h>
14779int
14780main ()
14781{
14782void *x=is_term_resized
14783  ;
14784  return 0;
14785}
14786_ACEOF
14787if ac_fn_c_try_compile "$LINENO"; then :
14788
14789$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
14790
14791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14792$as_echo "yes" >&6; }
14793else
14794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795$as_echo "no" >&6; }
14796
14797fi
14798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799
14800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
14801$as_echo_n "checking for resize_term... " >&6; }
14802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803/* end confdefs.h.  */
14804#include <curses.h>
14805int
14806main ()
14807{
14808void *x=resize_term
14809  ;
14810  return 0;
14811}
14812_ACEOF
14813if ac_fn_c_try_compile "$LINENO"; then :
14814
14815$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
14816
14817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14818$as_echo "yes" >&6; }
14819else
14820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14821$as_echo "no" >&6; }
14822
14823fi
14824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825
14826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
14827$as_echo_n "checking for resizeterm... " >&6; }
14828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829/* end confdefs.h.  */
14830#include <curses.h>
14831int
14832main ()
14833{
14834void *x=resizeterm
14835  ;
14836  return 0;
14837}
14838_ACEOF
14839if ac_fn_c_try_compile "$LINENO"; then :
14840
14841$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
14842
14843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14844$as_echo "yes" >&6; }
14845else
14846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14847$as_echo "no" >&6; }
14848
14849fi
14850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
14853$as_echo_n "checking for immedok... " >&6; }
14854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855/* end confdefs.h.  */
14856#include <curses.h>
14857int
14858main ()
14859{
14860
14861#ifndef immedok
14862void *x=immedok
14863#endif
14864
14865  ;
14866  return 0;
14867}
14868_ACEOF
14869if ac_fn_c_try_compile "$LINENO"; then :
14870
14871$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
14872
14873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14874$as_echo "yes" >&6; }
14875else
14876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14877$as_echo "no" >&6; }
14878
14879fi
14880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14881
14882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
14883$as_echo_n "checking for syncok... " >&6; }
14884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885/* end confdefs.h.  */
14886#include <curses.h>
14887int
14888main ()
14889{
14890
14891#ifndef syncok
14892void *x=syncok
14893#endif
14894
14895  ;
14896  return 0;
14897}
14898_ACEOF
14899if ac_fn_c_try_compile "$LINENO"; then :
14900
14901$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
14902
14903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14904$as_echo "yes" >&6; }
14905else
14906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907$as_echo "no" >&6; }
14908
14909fi
14910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911
14912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
14913$as_echo_n "checking for wchgat... " >&6; }
14914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915/* end confdefs.h.  */
14916#include <curses.h>
14917int
14918main ()
14919{
14920
14921#ifndef wchgat
14922void *x=wchgat
14923#endif
14924
14925  ;
14926  return 0;
14927}
14928_ACEOF
14929if ac_fn_c_try_compile "$LINENO"; then :
14930
14931$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
14932
14933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14934$as_echo "yes" >&6; }
14935else
14936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14937$as_echo "no" >&6; }
14938
14939fi
14940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941
14942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
14943$as_echo_n "checking for filter... " >&6; }
14944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945/* end confdefs.h.  */
14946#include <curses.h>
14947int
14948main ()
14949{
14950
14951#ifndef filter
14952void *x=filter
14953#endif
14954
14955  ;
14956  return 0;
14957}
14958_ACEOF
14959if ac_fn_c_try_compile "$LINENO"; then :
14960
14961$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
14962
14963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14964$as_echo "yes" >&6; }
14965else
14966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14967$as_echo "no" >&6; }
14968
14969fi
14970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
14973$as_echo_n "checking for has_key... " >&6; }
14974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975/* end confdefs.h.  */
14976#include <curses.h>
14977int
14978main ()
14979{
14980
14981#ifndef has_key
14982void *x=has_key
14983#endif
14984
14985  ;
14986  return 0;
14987}
14988_ACEOF
14989if ac_fn_c_try_compile "$LINENO"; then :
14990
14991$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
14992
14993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14994$as_echo "yes" >&6; }
14995else
14996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14997$as_echo "no" >&6; }
14998
14999fi
15000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001
15002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
15003$as_echo_n "checking for typeahead... " >&6; }
15004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005/* end confdefs.h.  */
15006#include <curses.h>
15007int
15008main ()
15009{
15010
15011#ifndef typeahead
15012void *x=typeahead
15013#endif
15014
15015  ;
15016  return 0;
15017}
15018_ACEOF
15019if ac_fn_c_try_compile "$LINENO"; then :
15020
15021$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
15022
15023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15024$as_echo "yes" >&6; }
15025else
15026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027$as_echo "no" >&6; }
15028
15029fi
15030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031
15032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
15033$as_echo_n "checking for use_env... " >&6; }
15034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h.  */
15036#include <curses.h>
15037int
15038main ()
15039{
15040
15041#ifndef use_env
15042void *x=use_env
15043#endif
15044
15045  ;
15046  return 0;
15047}
15048_ACEOF
15049if ac_fn_c_try_compile "$LINENO"; then :
15050
15051$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
15052
15053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15054$as_echo "yes" >&6; }
15055else
15056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057$as_echo "no" >&6; }
15058
15059fi
15060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061# last curses configure check
15062CPPFLAGS=$ac_save_cppflags
15063
15064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
15065$as_echo "$as_me: checking for device files" >&6;}
15066
15067if test "x$cross_compiling" = xyes; then
15068  if test "${ac_cv_file__dev_ptmx+set}" != set; then
15069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
15070$as_echo_n "checking for /dev/ptmx... " >&6; }
15071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
15072$as_echo "not set" >&6; }
15073    as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
15074  fi
15075  if test "${ac_cv_file__dev_ptc+set}" != set; then
15076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
15077$as_echo_n "checking for /dev/ptc... " >&6; }
15078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
15079$as_echo "not set" >&6; }
15080    as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
15081  fi
15082fi
15083
15084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
15085$as_echo_n "checking for /dev/ptmx... " >&6; }
15086if ${ac_cv_file__dev_ptmx+:} false; then :
15087  $as_echo_n "(cached) " >&6
15088else
15089  test "$cross_compiling" = yes &&
15090  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15091if test -r "/dev/ptmx"; then
15092  ac_cv_file__dev_ptmx=yes
15093else
15094  ac_cv_file__dev_ptmx=no
15095fi
15096fi
15097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
15098$as_echo "$ac_cv_file__dev_ptmx" >&6; }
15099if test "x$ac_cv_file__dev_ptmx" = xyes; then :
15100
15101fi
15102
15103if test "x$ac_cv_file__dev_ptmx" = xyes; then
15104
15105$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15106
15107fi
15108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
15109$as_echo_n "checking for /dev/ptc... " >&6; }
15110if ${ac_cv_file__dev_ptc+:} false; then :
15111  $as_echo_n "(cached) " >&6
15112else
15113  test "$cross_compiling" = yes &&
15114  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15115if test -r "/dev/ptc"; then
15116  ac_cv_file__dev_ptc=yes
15117else
15118  ac_cv_file__dev_ptc=no
15119fi
15120fi
15121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
15122$as_echo "$ac_cv_file__dev_ptc" >&6; }
15123if test "x$ac_cv_file__dev_ptc" = xyes; then :
15124
15125fi
15126
15127if test "x$ac_cv_file__dev_ptc" = xyes; then
15128
15129$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
15130
15131fi
15132
15133if test "$have_long_long" = yes
15134then
15135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5
15136$as_echo_n "checking for %lld and %llu printf() format support... " >&6; }
15137  if ${ac_cv_have_long_long_format+:} false; then :
15138  $as_echo_n "(cached) " >&6
15139else
15140  if test "$cross_compiling" = yes; then :
15141  ac_cv_have_long_long_format="cross -- assuming no"
15142   if test x$GCC = xyes; then
15143    save_CFLAGS=$CFLAGS
15144    CFLAGS="$CFLAGS -Werror -Wformat"
15145    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h.  */
15147
15148        #include <stdio.h>
15149        #include <stddef.h>
15150
15151int
15152main ()
15153{
15154
15155      char *buffer;
15156      sprintf(buffer, "%lld", (long long)123);
15157      sprintf(buffer, "%lld", (long long)-123);
15158      sprintf(buffer, "%llu", (unsigned long long)123);
15159
15160  ;
15161  return 0;
15162}
15163_ACEOF
15164if ac_fn_c_try_compile "$LINENO"; then :
15165  ac_cv_have_long_long_format=yes
15166
15167fi
15168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169    CFLAGS=$save_CFLAGS
15170   fi
15171else
15172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173/* end confdefs.h.  */
15174
15175  #include <stdio.h>
15176  #include <stddef.h>
15177  #include <string.h>
15178
15179  #ifdef HAVE_SYS_TYPES_H
15180  #include <sys/types.h>
15181  #endif
15182
15183  int main()
15184  {
15185      char buffer[256];
15186
15187      if (sprintf(buffer, "%lld", (long long)123) < 0)
15188          return 1;
15189      if (strcmp(buffer, "123"))
15190          return 1;
15191
15192      if (sprintf(buffer, "%lld", (long long)-123) < 0)
15193          return 1;
15194      if (strcmp(buffer, "-123"))
15195          return 1;
15196
15197      if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
15198          return 1;
15199      if (strcmp(buffer, "123"))
15200          return 1;
15201
15202      return 0;
15203  }
15204
15205_ACEOF
15206if ac_fn_c_try_run "$LINENO"; then :
15207  ac_cv_have_long_long_format=yes
15208else
15209  ac_cv_have_long_long_format=no
15210fi
15211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15212  conftest.$ac_objext conftest.beam conftest.$ac_ext
15213fi
15214
15215
15216fi
15217
15218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5
15219$as_echo "$ac_cv_have_long_long_format" >&6; }
15220fi
15221
15222if test "$ac_cv_have_long_long_format" = yes
15223then
15224
15225$as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
15226
15227fi
15228
15229if test $ac_sys_system = Darwin
15230then
15231	LIBS="$LIBS -framework CoreFoundation"
15232fi
15233
15234
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
15236$as_echo_n "checking for %zd printf() format support... " >&6; }
15237if ${ac_cv_have_size_t_format+:} false; then :
15238  $as_echo_n "(cached) " >&6
15239else
15240  if test "$cross_compiling" = yes; then :
15241  ac_cv_have_size_t_format="cross -- assuming yes"
15242
15243else
15244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245/* end confdefs.h.  */
15246
15247#include <stdio.h>
15248#include <stddef.h>
15249#include <string.h>
15250
15251#ifdef HAVE_SYS_TYPES_H
15252#include <sys/types.h>
15253#endif
15254
15255#ifdef HAVE_SSIZE_T
15256typedef ssize_t Py_ssize_t;
15257#elif SIZEOF_VOID_P == SIZEOF_LONG
15258typedef long Py_ssize_t;
15259#else
15260typedef int Py_ssize_t;
15261#endif
15262
15263int main()
15264{
15265    char buffer[256];
15266
15267    if(sprintf(buffer, "%zd", (size_t)123) < 0)
15268       	return 1;
15269
15270    if (strcmp(buffer, "123"))
15271	return 1;
15272
15273    if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
15274       	return 1;
15275
15276    if (strcmp(buffer, "-123"))
15277	return 1;
15278
15279    return 0;
15280}
15281
15282_ACEOF
15283if ac_fn_c_try_run "$LINENO"; then :
15284  ac_cv_have_size_t_format=yes
15285else
15286  ac_cv_have_size_t_format=no
15287fi
15288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15289  conftest.$ac_objext conftest.beam conftest.$ac_ext
15290fi
15291
15292fi
15293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
15294$as_echo "$ac_cv_have_size_t_format" >&6; }
15295if test "$ac_cv_have_size_t_format" != no ; then
15296
15297$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
15298
15299fi
15300
15301ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15302#ifdef HAVE_SYS_TYPES_H
15303#include <sys/types.h>
15304#endif
15305#ifdef HAVE_SYS_SOCKET_H
15306#include <sys/socket.h>
15307#endif
15308
15309"
15310if test "x$ac_cv_type_socklen_t" = xyes; then :
15311
15312else
15313
15314$as_echo "#define socklen_t int" >>confdefs.h
15315
15316fi
15317
15318
15319case $ac_sys_system in
15320AIX*)
15321
15322$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
15323 ;;
15324esac
15325
15326
15327
15328
15329for h in `(cd $srcdir;echo Python/thread_*.h)`
15330do
15331  THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
15332done
15333
15334
15335SRCDIRS="Parser Objects Python Modules"
15336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
15337$as_echo_n "checking for build directories... " >&6; }
15338for dir in $SRCDIRS; do
15339    if test ! -d $dir; then
15340        mkdir $dir
15341    fi
15342done
15343
15344# BEGIN_COMPUTED_GOTO
15345# Check for --with-computed-gotos
15346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
15347$as_echo_n "checking for --with-computed-gotos... " >&6; }
15348
15349# Check whether --with-computed-gotos was given.
15350if test "${with_computed_gotos+set}" = set; then :
15351  withval=$with_computed_gotos;
15352if test "$withval" = yes
15353then
15354
15355$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
15356
15357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15358$as_echo "yes" >&6; }
15359fi
15360if test "$withval" = no
15361then
15362
15363$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
15364
15365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366$as_echo "no" >&6; }
15367fi
15368
15369else
15370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
15371$as_echo "no value specified" >&6; }
15372fi
15373
15374
15375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
15376$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
15377if ${ac_cv_computed_gotos+:} false; then :
15378  $as_echo_n "(cached) " >&6
15379else
15380  if test "$cross_compiling" = yes; then :
15381  if test "${with_computed_gotos+set}" = set; then
15382   ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
15383 else
15384   ac_cv_computed_gotos=no
15385 fi
15386else
15387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388/* end confdefs.h.  */
15389
15390int main(int argc, char **argv)
15391{
15392    static void *targets[1] = { &&LABEL1 };
15393    goto LABEL2;
15394LABEL1:
15395    return 0;
15396LABEL2:
15397    goto *targets[0];
15398    return 1;
15399}
15400
15401_ACEOF
15402if ac_fn_c_try_run "$LINENO"; then :
15403  ac_cv_computed_gotos=yes
15404else
15405  ac_cv_computed_gotos=no
15406fi
15407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15408  conftest.$ac_objext conftest.beam conftest.$ac_ext
15409fi
15410
15411fi
15412
15413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
15414$as_echo "$ac_cv_computed_gotos" >&6; }
15415case "$ac_cv_computed_gotos" in yes*)
15416
15417$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
15418
15419esac
15420# END_COMPUTED_GOTO
15421
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15423$as_echo "done" >&6; }
15424
15425# ensurepip option
15426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
15427$as_echo_n "checking for ensurepip... " >&6; }
15428
15429# Check whether --with-ensurepip was given.
15430if test "${with_ensurepip+set}" = set; then :
15431  withval=$with_ensurepip;
15432else
15433  with_ensurepip=no
15434fi
15435
15436case $with_ensurepip in #(
15437  yes|upgrade) :
15438    ENSUREPIP=upgrade ;; #(
15439  install) :
15440    ENSUREPIP=install ;; #(
15441  no) :
15442    ENSUREPIP=no ;; #(
15443  *) :
15444    as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
15445esac
15446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
15447$as_echo "$ENSUREPIP" >&6; }
15448
15449
15450# generate output files
15451ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
15452
15453ac_config_files="$ac_config_files Modules/ld_so_aix"
15454
15455cat >confcache <<\_ACEOF
15456# This file is a shell script that caches the results of configure
15457# tests run on this system so they can be shared between configure
15458# scripts and configure runs, see configure's option --config-cache.
15459# It is not useful on other systems.  If it contains results you don't
15460# want to keep, you may remove or edit it.
15461#
15462# config.status only pays attention to the cache file if you give it
15463# the --recheck option to rerun configure.
15464#
15465# `ac_cv_env_foo' variables (set or unset) will be overridden when
15466# loading this file, other *unset* `ac_cv_foo' will be assigned the
15467# following values.
15468
15469_ACEOF
15470
15471# The following way of writing the cache mishandles newlines in values,
15472# but we know of no workaround that is simple, portable, and efficient.
15473# So, we kill variables containing newlines.
15474# Ultrix sh set writes to stderr and can't be redirected directly,
15475# and sets the high bit in the cache file unless we assign to the vars.
15476(
15477  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15478    eval ac_val=\$$ac_var
15479    case $ac_val in #(
15480    *${as_nl}*)
15481      case $ac_var in #(
15482      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15483$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15484      esac
15485      case $ac_var in #(
15486      _ | IFS | as_nl) ;; #(
15487      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15488      *) { eval $ac_var=; unset $ac_var;} ;;
15489      esac ;;
15490    esac
15491  done
15492
15493  (set) 2>&1 |
15494    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15495    *${as_nl}ac_space=\ *)
15496      # `set' does not quote correctly, so add quotes: double-quote
15497      # substitution turns \\\\ into \\, and sed turns \\ into \.
15498      sed -n \
15499	"s/'/'\\\\''/g;
15500	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15501      ;; #(
15502    *)
15503      # `set' quotes correctly as required by POSIX, so do not add quotes.
15504      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15505      ;;
15506    esac |
15507    sort
15508) |
15509  sed '
15510     /^ac_cv_env_/b end
15511     t clear
15512     :clear
15513     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15514     t end
15515     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15516     :end' >>confcache
15517if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15518  if test -w "$cache_file"; then
15519    if test "x$cache_file" != "x/dev/null"; then
15520      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15521$as_echo "$as_me: updating cache $cache_file" >&6;}
15522      if test ! -f "$cache_file" || test -h "$cache_file"; then
15523	cat confcache >"$cache_file"
15524      else
15525        case $cache_file in #(
15526        */* | ?:*)
15527	  mv -f confcache "$cache_file"$$ &&
15528	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15529        *)
15530	  mv -f confcache "$cache_file" ;;
15531	esac
15532      fi
15533    fi
15534  else
15535    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15536$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15537  fi
15538fi
15539rm -f confcache
15540
15541test "x$prefix" = xNONE && prefix=$ac_default_prefix
15542# Let make expand exec_prefix.
15543test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15544
15545DEFS=-DHAVE_CONFIG_H
15546
15547ac_libobjs=
15548ac_ltlibobjs=
15549U=
15550for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15551  # 1. Remove the extension, and $U if already installed.
15552  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15553  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15554  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15555  #    will be set to the directory where LIBOBJS objects are built.
15556  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15557  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15558done
15559LIBOBJS=$ac_libobjs
15560
15561LTLIBOBJS=$ac_ltlibobjs
15562
15563
15564
15565
15566: "${CONFIG_STATUS=./config.status}"
15567ac_write_fail=0
15568ac_clean_files_save=$ac_clean_files
15569ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15570{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15571$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15572as_write_fail=0
15573cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15574#! $SHELL
15575# Generated by $as_me.
15576# Run this file to recreate the current configuration.
15577# Compiler output produced by configure, useful for debugging
15578# configure, is in config.log if it exists.
15579
15580debug=false
15581ac_cs_recheck=false
15582ac_cs_silent=false
15583
15584SHELL=\${CONFIG_SHELL-$SHELL}
15585export SHELL
15586_ASEOF
15587cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15588## -------------------- ##
15589## M4sh Initialization. ##
15590## -------------------- ##
15591
15592# Be more Bourne compatible
15593DUALCASE=1; export DUALCASE # for MKS sh
15594if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15595  emulate sh
15596  NULLCMD=:
15597  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15598  # is contrary to our usage.  Disable this feature.
15599  alias -g '${1+"$@"}'='"$@"'
15600  setopt NO_GLOB_SUBST
15601else
15602  case `(set -o) 2>/dev/null` in #(
15603  *posix*) :
15604    set -o posix ;; #(
15605  *) :
15606     ;;
15607esac
15608fi
15609
15610
15611as_nl='
15612'
15613export as_nl
15614# Printing a long string crashes Solaris 7 /usr/bin/printf.
15615as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15616as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15617as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15618# Prefer a ksh shell builtin over an external printf program on Solaris,
15619# but without wasting forks for bash or zsh.
15620if test -z "$BASH_VERSION$ZSH_VERSION" \
15621    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15622  as_echo='print -r --'
15623  as_echo_n='print -rn --'
15624elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15625  as_echo='printf %s\n'
15626  as_echo_n='printf %s'
15627else
15628  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15629    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15630    as_echo_n='/usr/ucb/echo -n'
15631  else
15632    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15633    as_echo_n_body='eval
15634      arg=$1;
15635      case $arg in #(
15636      *"$as_nl"*)
15637	expr "X$arg" : "X\\(.*\\)$as_nl";
15638	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15639      esac;
15640      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15641    '
15642    export as_echo_n_body
15643    as_echo_n='sh -c $as_echo_n_body as_echo'
15644  fi
15645  export as_echo_body
15646  as_echo='sh -c $as_echo_body as_echo'
15647fi
15648
15649# The user is always right.
15650if test "${PATH_SEPARATOR+set}" != set; then
15651  PATH_SEPARATOR=:
15652  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15653    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15654      PATH_SEPARATOR=';'
15655  }
15656fi
15657
15658
15659# IFS
15660# We need space, tab and new line, in precisely that order.  Quoting is
15661# there to prevent editors from complaining about space-tab.
15662# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15663# splitting by setting IFS to empty value.)
15664IFS=" ""	$as_nl"
15665
15666# Find who we are.  Look in the path if we contain no directory separator.
15667as_myself=
15668case $0 in #((
15669  *[\\/]* ) as_myself=$0 ;;
15670  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15671for as_dir in $PATH
15672do
15673  IFS=$as_save_IFS
15674  test -z "$as_dir" && as_dir=.
15675    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15676  done
15677IFS=$as_save_IFS
15678
15679     ;;
15680esac
15681# We did not find ourselves, most probably we were run as `sh COMMAND'
15682# in which case we are not to be found in the path.
15683if test "x$as_myself" = x; then
15684  as_myself=$0
15685fi
15686if test ! -f "$as_myself"; then
15687  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15688  exit 1
15689fi
15690
15691# Unset variables that we do not need and which cause bugs (e.g. in
15692# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15693# suppresses any "Segmentation fault" message there.  '((' could
15694# trigger a bug in pdksh 5.2.14.
15695for as_var in BASH_ENV ENV MAIL MAILPATH
15696do eval test x\${$as_var+set} = xset \
15697  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15698done
15699PS1='$ '
15700PS2='> '
15701PS4='+ '
15702
15703# NLS nuisances.
15704LC_ALL=C
15705export LC_ALL
15706LANGUAGE=C
15707export LANGUAGE
15708
15709# CDPATH.
15710(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15711
15712
15713# as_fn_error STATUS ERROR [LINENO LOG_FD]
15714# ----------------------------------------
15715# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15716# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15717# script with STATUS, using 1 if that was 0.
15718as_fn_error ()
15719{
15720  as_status=$1; test $as_status -eq 0 && as_status=1
15721  if test "$4"; then
15722    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15723    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15724  fi
15725  $as_echo "$as_me: error: $2" >&2
15726  as_fn_exit $as_status
15727} # as_fn_error
15728
15729
15730# as_fn_set_status STATUS
15731# -----------------------
15732# Set $? to STATUS, without forking.
15733as_fn_set_status ()
15734{
15735  return $1
15736} # as_fn_set_status
15737
15738# as_fn_exit STATUS
15739# -----------------
15740# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15741as_fn_exit ()
15742{
15743  set +e
15744  as_fn_set_status $1
15745  exit $1
15746} # as_fn_exit
15747
15748# as_fn_unset VAR
15749# ---------------
15750# Portably unset VAR.
15751as_fn_unset ()
15752{
15753  { eval $1=; unset $1;}
15754}
15755as_unset=as_fn_unset
15756# as_fn_append VAR VALUE
15757# ----------------------
15758# Append the text in VALUE to the end of the definition contained in VAR. Take
15759# advantage of any shell optimizations that allow amortized linear growth over
15760# repeated appends, instead of the typical quadratic growth present in naive
15761# implementations.
15762if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15763  eval 'as_fn_append ()
15764  {
15765    eval $1+=\$2
15766  }'
15767else
15768  as_fn_append ()
15769  {
15770    eval $1=\$$1\$2
15771  }
15772fi # as_fn_append
15773
15774# as_fn_arith ARG...
15775# ------------------
15776# Perform arithmetic evaluation on the ARGs, and store the result in the
15777# global $as_val. Take advantage of shells that can avoid forks. The arguments
15778# must be portable across $(()) and expr.
15779if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15780  eval 'as_fn_arith ()
15781  {
15782    as_val=$(( $* ))
15783  }'
15784else
15785  as_fn_arith ()
15786  {
15787    as_val=`expr "$@" || test $? -eq 1`
15788  }
15789fi # as_fn_arith
15790
15791
15792if expr a : '\(a\)' >/dev/null 2>&1 &&
15793   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15794  as_expr=expr
15795else
15796  as_expr=false
15797fi
15798
15799if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15800  as_basename=basename
15801else
15802  as_basename=false
15803fi
15804
15805if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15806  as_dirname=dirname
15807else
15808  as_dirname=false
15809fi
15810
15811as_me=`$as_basename -- "$0" ||
15812$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15813	 X"$0" : 'X\(//\)$' \| \
15814	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15815$as_echo X/"$0" |
15816    sed '/^.*\/\([^/][^/]*\)\/*$/{
15817	    s//\1/
15818	    q
15819	  }
15820	  /^X\/\(\/\/\)$/{
15821	    s//\1/
15822	    q
15823	  }
15824	  /^X\/\(\/\).*/{
15825	    s//\1/
15826	    q
15827	  }
15828	  s/.*/./; q'`
15829
15830# Avoid depending upon Character Ranges.
15831as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15832as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15833as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15834as_cr_digits='0123456789'
15835as_cr_alnum=$as_cr_Letters$as_cr_digits
15836
15837ECHO_C= ECHO_N= ECHO_T=
15838case `echo -n x` in #(((((
15839-n*)
15840  case `echo 'xy\c'` in
15841  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15842  xy)  ECHO_C='\c';;
15843  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15844       ECHO_T='	';;
15845  esac;;
15846*)
15847  ECHO_N='-n';;
15848esac
15849
15850rm -f conf$$ conf$$.exe conf$$.file
15851if test -d conf$$.dir; then
15852  rm -f conf$$.dir/conf$$.file
15853else
15854  rm -f conf$$.dir
15855  mkdir conf$$.dir 2>/dev/null
15856fi
15857if (echo >conf$$.file) 2>/dev/null; then
15858  if ln -s conf$$.file conf$$ 2>/dev/null; then
15859    as_ln_s='ln -s'
15860    # ... but there are two gotchas:
15861    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15862    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15863    # In both cases, we have to default to `cp -pR'.
15864    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15865      as_ln_s='cp -pR'
15866  elif ln conf$$.file conf$$ 2>/dev/null; then
15867    as_ln_s=ln
15868  else
15869    as_ln_s='cp -pR'
15870  fi
15871else
15872  as_ln_s='cp -pR'
15873fi
15874rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15875rmdir conf$$.dir 2>/dev/null
15876
15877
15878# as_fn_mkdir_p
15879# -------------
15880# Create "$as_dir" as a directory, including parents if necessary.
15881as_fn_mkdir_p ()
15882{
15883
15884  case $as_dir in #(
15885  -*) as_dir=./$as_dir;;
15886  esac
15887  test -d "$as_dir" || eval $as_mkdir_p || {
15888    as_dirs=
15889    while :; do
15890      case $as_dir in #(
15891      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15892      *) as_qdir=$as_dir;;
15893      esac
15894      as_dirs="'$as_qdir' $as_dirs"
15895      as_dir=`$as_dirname -- "$as_dir" ||
15896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15897	 X"$as_dir" : 'X\(//\)[^/]' \| \
15898	 X"$as_dir" : 'X\(//\)$' \| \
15899	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15900$as_echo X"$as_dir" |
15901    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15902	    s//\1/
15903	    q
15904	  }
15905	  /^X\(\/\/\)[^/].*/{
15906	    s//\1/
15907	    q
15908	  }
15909	  /^X\(\/\/\)$/{
15910	    s//\1/
15911	    q
15912	  }
15913	  /^X\(\/\).*/{
15914	    s//\1/
15915	    q
15916	  }
15917	  s/.*/./; q'`
15918      test -d "$as_dir" && break
15919    done
15920    test -z "$as_dirs" || eval "mkdir $as_dirs"
15921  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15922
15923
15924} # as_fn_mkdir_p
15925if mkdir -p . 2>/dev/null; then
15926  as_mkdir_p='mkdir -p "$as_dir"'
15927else
15928  test -d ./-p && rmdir ./-p
15929  as_mkdir_p=false
15930fi
15931
15932
15933# as_fn_executable_p FILE
15934# -----------------------
15935# Test if FILE is an executable regular file.
15936as_fn_executable_p ()
15937{
15938  test -f "$1" && test -x "$1"
15939} # as_fn_executable_p
15940as_test_x='test -x'
15941as_executable_p=as_fn_executable_p
15942
15943# Sed expression to map a string onto a valid CPP name.
15944as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15945
15946# Sed expression to map a string onto a valid variable name.
15947as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15948
15949
15950exec 6>&1
15951## ----------------------------------- ##
15952## Main body of $CONFIG_STATUS script. ##
15953## ----------------------------------- ##
15954_ASEOF
15955test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15956
15957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15958# Save the log message, to keep $0 and so on meaningful, and to
15959# report actual input values of CONFIG_FILES etc. instead of their
15960# values after options handling.
15961ac_log="
15962This file was extended by python $as_me 2.7, which was
15963generated by GNU Autoconf 2.69.  Invocation command line was
15964
15965  CONFIG_FILES    = $CONFIG_FILES
15966  CONFIG_HEADERS  = $CONFIG_HEADERS
15967  CONFIG_LINKS    = $CONFIG_LINKS
15968  CONFIG_COMMANDS = $CONFIG_COMMANDS
15969  $ $0 $@
15970
15971on `(hostname || uname -n) 2>/dev/null | sed 1q`
15972"
15973
15974_ACEOF
15975
15976case $ac_config_files in *"
15977"*) set x $ac_config_files; shift; ac_config_files=$*;;
15978esac
15979
15980case $ac_config_headers in *"
15981"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15982esac
15983
15984
15985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15986# Files that config.status was made for.
15987config_files="$ac_config_files"
15988config_headers="$ac_config_headers"
15989
15990_ACEOF
15991
15992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15993ac_cs_usage="\
15994\`$as_me' instantiates files and other configuration actions
15995from templates according to the current configuration.  Unless the files
15996and actions are specified as TAGs, all are instantiated by default.
15997
15998Usage: $0 [OPTION]... [TAG]...
15999
16000  -h, --help       print this help, then exit
16001  -V, --version    print version number and configuration settings, then exit
16002      --config     print configuration, then exit
16003  -q, --quiet, --silent
16004                   do not print progress messages
16005  -d, --debug      don't remove temporary files
16006      --recheck    update $as_me by reconfiguring in the same conditions
16007      --file=FILE[:TEMPLATE]
16008                   instantiate the configuration file FILE
16009      --header=FILE[:TEMPLATE]
16010                   instantiate the configuration header FILE
16011
16012Configuration files:
16013$config_files
16014
16015Configuration headers:
16016$config_headers
16017
16018Report bugs to <https://bugs.python.org/>."
16019
16020_ACEOF
16021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16022ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16023ac_cs_version="\\
16024python config.status 2.7
16025configured by $0, generated by GNU Autoconf 2.69,
16026  with options \\"\$ac_cs_config\\"
16027
16028Copyright (C) 2012 Free Software Foundation, Inc.
16029This config.status script is free software; the Free Software Foundation
16030gives unlimited permission to copy, distribute and modify it."
16031
16032ac_pwd='$ac_pwd'
16033srcdir='$srcdir'
16034INSTALL='$INSTALL'
16035MKDIR_P='$MKDIR_P'
16036test -n "\$AWK" || AWK=awk
16037_ACEOF
16038
16039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16040# The default lists apply if the user does not specify any file.
16041ac_need_defaults=:
16042while test $# != 0
16043do
16044  case $1 in
16045  --*=?*)
16046    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16047    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16048    ac_shift=:
16049    ;;
16050  --*=)
16051    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16052    ac_optarg=
16053    ac_shift=:
16054    ;;
16055  *)
16056    ac_option=$1
16057    ac_optarg=$2
16058    ac_shift=shift
16059    ;;
16060  esac
16061
16062  case $ac_option in
16063  # Handling of the options.
16064  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16065    ac_cs_recheck=: ;;
16066  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16067    $as_echo "$ac_cs_version"; exit ;;
16068  --config | --confi | --conf | --con | --co | --c )
16069    $as_echo "$ac_cs_config"; exit ;;
16070  --debug | --debu | --deb | --de | --d | -d )
16071    debug=: ;;
16072  --file | --fil | --fi | --f )
16073    $ac_shift
16074    case $ac_optarg in
16075    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16076    '') as_fn_error $? "missing file argument" ;;
16077    esac
16078    as_fn_append CONFIG_FILES " '$ac_optarg'"
16079    ac_need_defaults=false;;
16080  --header | --heade | --head | --hea )
16081    $ac_shift
16082    case $ac_optarg in
16083    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16084    esac
16085    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16086    ac_need_defaults=false;;
16087  --he | --h)
16088    # Conflict between --help and --header
16089    as_fn_error $? "ambiguous option: \`$1'
16090Try \`$0 --help' for more information.";;
16091  --help | --hel | -h )
16092    $as_echo "$ac_cs_usage"; exit ;;
16093  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16094  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16095    ac_cs_silent=: ;;
16096
16097  # This is an error.
16098  -*) as_fn_error $? "unrecognized option: \`$1'
16099Try \`$0 --help' for more information." ;;
16100
16101  *) as_fn_append ac_config_targets " $1"
16102     ac_need_defaults=false ;;
16103
16104  esac
16105  shift
16106done
16107
16108ac_configure_extra_args=
16109
16110if $ac_cs_silent; then
16111  exec 6>/dev/null
16112  ac_configure_extra_args="$ac_configure_extra_args --silent"
16113fi
16114
16115_ACEOF
16116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16117if \$ac_cs_recheck; then
16118  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16119  shift
16120  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16121  CONFIG_SHELL='$SHELL'
16122  export CONFIG_SHELL
16123  exec "\$@"
16124fi
16125
16126_ACEOF
16127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128exec 5>>config.log
16129{
16130  echo
16131  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16132## Running $as_me. ##
16133_ASBOX
16134  $as_echo "$ac_log"
16135} >&5
16136
16137_ACEOF
16138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16139_ACEOF
16140
16141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16142
16143# Handling of arguments.
16144for ac_config_target in $ac_config_targets
16145do
16146  case $ac_config_target in
16147    "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
16148    "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
16149    "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
16150    "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
16151    "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
16152    "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
16153    "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
16154    "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
16155    "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
16156    "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
16157
16158  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16159  esac
16160done
16161
16162
16163# If the user did not use the arguments to specify the items to instantiate,
16164# then the envvar interface is used.  Set only those that are not.
16165# We use the long form for the default assignment because of an extremely
16166# bizarre bug on SunOS 4.1.3.
16167if $ac_need_defaults; then
16168  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16169  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16170fi
16171
16172# Have a temporary directory for convenience.  Make it in the build tree
16173# simply because there is no reason against having it here, and in addition,
16174# creating and moving files from /tmp can sometimes cause problems.
16175# Hook for its removal unless debugging.
16176# Note that there is a small window in which the directory will not be cleaned:
16177# after its creation but before its name has been assigned to `$tmp'.
16178$debug ||
16179{
16180  tmp= ac_tmp=
16181  trap 'exit_status=$?
16182  : "${ac_tmp:=$tmp}"
16183  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16184' 0
16185  trap 'as_fn_exit 1' 1 2 13 15
16186}
16187# Create a (secure) tmp directory for tmp files.
16188
16189{
16190  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16191  test -d "$tmp"
16192}  ||
16193{
16194  tmp=./conf$$-$RANDOM
16195  (umask 077 && mkdir "$tmp")
16196} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16197ac_tmp=$tmp
16198
16199# Set up the scripts for CONFIG_FILES section.
16200# No need to generate them if there are no CONFIG_FILES.
16201# This happens for instance with `./config.status config.h'.
16202if test -n "$CONFIG_FILES"; then
16203
16204
16205ac_cr=`echo X | tr X '\015'`
16206# On cygwin, bash can eat \r inside `` if the user requested igncr.
16207# But we know of no other shell where ac_cr would be empty at this
16208# point, so we can use a bashism as a fallback.
16209if test "x$ac_cr" = x; then
16210  eval ac_cr=\$\'\\r\'
16211fi
16212ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16213if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16214  ac_cs_awk_cr='\\r'
16215else
16216  ac_cs_awk_cr=$ac_cr
16217fi
16218
16219echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16220_ACEOF
16221
16222
16223{
16224  echo "cat >conf$$subs.awk <<_ACEOF" &&
16225  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16226  echo "_ACEOF"
16227} >conf$$subs.sh ||
16228  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16229ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16230ac_delim='%!_!# '
16231for ac_last_try in false false false false false :; do
16232  . ./conf$$subs.sh ||
16233    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16234
16235  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16236  if test $ac_delim_n = $ac_delim_num; then
16237    break
16238  elif $ac_last_try; then
16239    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16240  else
16241    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16242  fi
16243done
16244rm -f conf$$subs.sh
16245
16246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16248_ACEOF
16249sed -n '
16250h
16251s/^/S["/; s/!.*/"]=/
16252p
16253g
16254s/^[^!]*!//
16255:repl
16256t repl
16257s/'"$ac_delim"'$//
16258t delim
16259:nl
16260h
16261s/\(.\{148\}\)..*/\1/
16262t more1
16263s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16264p
16265n
16266b repl
16267:more1
16268s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16269p
16270g
16271s/.\{148\}//
16272t nl
16273:delim
16274h
16275s/\(.\{148\}\)..*/\1/
16276t more2
16277s/["\\]/\\&/g; s/^/"/; s/$/"/
16278p
16279b
16280:more2
16281s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16282p
16283g
16284s/.\{148\}//
16285t delim
16286' <conf$$subs.awk | sed '
16287/^[^""]/{
16288  N
16289  s/\n//
16290}
16291' >>$CONFIG_STATUS || ac_write_fail=1
16292rm -f conf$$subs.awk
16293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294_ACAWK
16295cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16296  for (key in S) S_is_set[key] = 1
16297  FS = ""
16298
16299}
16300{
16301  line = $ 0
16302  nfields = split(line, field, "@")
16303  substed = 0
16304  len = length(field[1])
16305  for (i = 2; i < nfields; i++) {
16306    key = field[i]
16307    keylen = length(key)
16308    if (S_is_set[key]) {
16309      value = S[key]
16310      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16311      len += length(value) + length(field[++i])
16312      substed = 1
16313    } else
16314      len += 1 + keylen
16315  }
16316
16317  print line
16318}
16319
16320_ACAWK
16321_ACEOF
16322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16324  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16325else
16326  cat
16327fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16328  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16329_ACEOF
16330
16331# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16332# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16333# trailing colons and then remove the whole line if VPATH becomes empty
16334# (actually we leave an empty line to preserve line numbers).
16335if test "x$srcdir" = x.; then
16336  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16337h
16338s///
16339s/^/:/
16340s/[	 ]*$/:/
16341s/:\$(srcdir):/:/g
16342s/:\${srcdir}:/:/g
16343s/:@srcdir@:/:/g
16344s/^:*//
16345s/:*$//
16346x
16347s/\(=[	 ]*\).*/\1/
16348G
16349s/\n//
16350s/^[^=]*=[	 ]*$//
16351}'
16352fi
16353
16354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16355fi # test -n "$CONFIG_FILES"
16356
16357# Set up the scripts for CONFIG_HEADERS section.
16358# No need to generate them if there are no CONFIG_HEADERS.
16359# This happens for instance with `./config.status Makefile'.
16360if test -n "$CONFIG_HEADERS"; then
16361cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16362BEGIN {
16363_ACEOF
16364
16365# Transform confdefs.h into an awk script `defines.awk', embedded as
16366# here-document in config.status, that substitutes the proper values into
16367# config.h.in to produce config.h.
16368
16369# Create a delimiter string that does not exist in confdefs.h, to ease
16370# handling of long lines.
16371ac_delim='%!_!# '
16372for ac_last_try in false false :; do
16373  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16374  if test -z "$ac_tt"; then
16375    break
16376  elif $ac_last_try; then
16377    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16378  else
16379    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16380  fi
16381done
16382
16383# For the awk script, D is an array of macro values keyed by name,
16384# likewise P contains macro parameters if any.  Preserve backslash
16385# newline sequences.
16386
16387ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16388sed -n '
16389s/.\{148\}/&'"$ac_delim"'/g
16390t rset
16391:rset
16392s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16393t def
16394d
16395:def
16396s/\\$//
16397t bsnl
16398s/["\\]/\\&/g
16399s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16400D["\1"]=" \3"/p
16401s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16402d
16403:bsnl
16404s/["\\]/\\&/g
16405s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16406D["\1"]=" \3\\\\\\n"\\/p
16407t cont
16408s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16409t cont
16410d
16411:cont
16412n
16413s/.\{148\}/&'"$ac_delim"'/g
16414t clear
16415:clear
16416s/\\$//
16417t bsnlc
16418s/["\\]/\\&/g; s/^/"/; s/$/"/p
16419d
16420:bsnlc
16421s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16422b cont
16423' <confdefs.h | sed '
16424s/'"$ac_delim"'/"\\\
16425"/g' >>$CONFIG_STATUS || ac_write_fail=1
16426
16427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16428  for (key in D) D_is_set[key] = 1
16429  FS = ""
16430}
16431/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16432  line = \$ 0
16433  split(line, arg, " ")
16434  if (arg[1] == "#") {
16435    defundef = arg[2]
16436    mac1 = arg[3]
16437  } else {
16438    defundef = substr(arg[1], 2)
16439    mac1 = arg[2]
16440  }
16441  split(mac1, mac2, "(") #)
16442  macro = mac2[1]
16443  prefix = substr(line, 1, index(line, defundef) - 1)
16444  if (D_is_set[macro]) {
16445    # Preserve the white space surrounding the "#".
16446    print prefix "define", macro P[macro] D[macro]
16447    next
16448  } else {
16449    # Replace #undef with comments.  This is necessary, for example,
16450    # in the case of _POSIX_SOURCE, which is predefined and required
16451    # on some systems where configure will not decide to define it.
16452    if (defundef == "undef") {
16453      print "/*", prefix defundef, macro, "*/"
16454      next
16455    }
16456  }
16457}
16458{ print }
16459_ACAWK
16460_ACEOF
16461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16462  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16463fi # test -n "$CONFIG_HEADERS"
16464
16465
16466eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
16467shift
16468for ac_tag
16469do
16470  case $ac_tag in
16471  :[FHLC]) ac_mode=$ac_tag; continue;;
16472  esac
16473  case $ac_mode$ac_tag in
16474  :[FHL]*:*);;
16475  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16476  :[FH]-) ac_tag=-:-;;
16477  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16478  esac
16479  ac_save_IFS=$IFS
16480  IFS=:
16481  set x $ac_tag
16482  IFS=$ac_save_IFS
16483  shift
16484  ac_file=$1
16485  shift
16486
16487  case $ac_mode in
16488  :L) ac_source=$1;;
16489  :[FH])
16490    ac_file_inputs=
16491    for ac_f
16492    do
16493      case $ac_f in
16494      -) ac_f="$ac_tmp/stdin";;
16495      *) # Look for the file first in the build tree, then in the source tree
16496	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16497	 # because $ac_f cannot contain `:'.
16498	 test -f "$ac_f" ||
16499	   case $ac_f in
16500	   [\\/$]*) false;;
16501	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16502	   esac ||
16503	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16504      esac
16505      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16506      as_fn_append ac_file_inputs " '$ac_f'"
16507    done
16508
16509    # Let's still pretend it is `configure' which instantiates (i.e., don't
16510    # use $as_me), people would be surprised to read:
16511    #    /* config.h.  Generated by config.status.  */
16512    configure_input='Generated from '`
16513	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16514	`' by configure.'
16515    if test x"$ac_file" != x-; then
16516      configure_input="$ac_file.  $configure_input"
16517      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16518$as_echo "$as_me: creating $ac_file" >&6;}
16519    fi
16520    # Neutralize special characters interpreted by sed in replacement strings.
16521    case $configure_input in #(
16522    *\&* | *\|* | *\\* )
16523       ac_sed_conf_input=`$as_echo "$configure_input" |
16524       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16525    *) ac_sed_conf_input=$configure_input;;
16526    esac
16527
16528    case $ac_tag in
16529    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16530      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16531    esac
16532    ;;
16533  esac
16534
16535  ac_dir=`$as_dirname -- "$ac_file" ||
16536$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16537	 X"$ac_file" : 'X\(//\)[^/]' \| \
16538	 X"$ac_file" : 'X\(//\)$' \| \
16539	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16540$as_echo X"$ac_file" |
16541    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16542	    s//\1/
16543	    q
16544	  }
16545	  /^X\(\/\/\)[^/].*/{
16546	    s//\1/
16547	    q
16548	  }
16549	  /^X\(\/\/\)$/{
16550	    s//\1/
16551	    q
16552	  }
16553	  /^X\(\/\).*/{
16554	    s//\1/
16555	    q
16556	  }
16557	  s/.*/./; q'`
16558  as_dir="$ac_dir"; as_fn_mkdir_p
16559  ac_builddir=.
16560
16561case "$ac_dir" in
16562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16563*)
16564  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16565  # A ".." for each directory in $ac_dir_suffix.
16566  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16567  case $ac_top_builddir_sub in
16568  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16569  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16570  esac ;;
16571esac
16572ac_abs_top_builddir=$ac_pwd
16573ac_abs_builddir=$ac_pwd$ac_dir_suffix
16574# for backward compatibility:
16575ac_top_builddir=$ac_top_build_prefix
16576
16577case $srcdir in
16578  .)  # We are building in place.
16579    ac_srcdir=.
16580    ac_top_srcdir=$ac_top_builddir_sub
16581    ac_abs_top_srcdir=$ac_pwd ;;
16582  [\\/]* | ?:[\\/]* )  # Absolute name.
16583    ac_srcdir=$srcdir$ac_dir_suffix;
16584    ac_top_srcdir=$srcdir
16585    ac_abs_top_srcdir=$srcdir ;;
16586  *) # Relative name.
16587    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16588    ac_top_srcdir=$ac_top_build_prefix$srcdir
16589    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16590esac
16591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16592
16593
16594  case $ac_mode in
16595  :F)
16596  #
16597  # CONFIG_FILE
16598  #
16599
16600  case $INSTALL in
16601  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16602  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16603  esac
16604  ac_MKDIR_P=$MKDIR_P
16605  case $MKDIR_P in
16606  [\\/$]* | ?:[\\/]* ) ;;
16607  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16608  esac
16609_ACEOF
16610
16611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16612# If the template does not know about datarootdir, expand it.
16613# FIXME: This hack should be removed a few years after 2.60.
16614ac_datarootdir_hack=; ac_datarootdir_seen=
16615ac_sed_dataroot='
16616/datarootdir/ {
16617  p
16618  q
16619}
16620/@datadir@/p
16621/@docdir@/p
16622/@infodir@/p
16623/@localedir@/p
16624/@mandir@/p'
16625case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16626*datarootdir*) ac_datarootdir_seen=yes;;
16627*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16628  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16629$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16630_ACEOF
16631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16632  ac_datarootdir_hack='
16633  s&@datadir@&$datadir&g
16634  s&@docdir@&$docdir&g
16635  s&@infodir@&$infodir&g
16636  s&@localedir@&$localedir&g
16637  s&@mandir@&$mandir&g
16638  s&\\\${datarootdir}&$datarootdir&g' ;;
16639esac
16640_ACEOF
16641
16642# Neutralize VPATH when `$srcdir' = `.'.
16643# Shell code in configure.ac might set extrasub.
16644# FIXME: do we really want to maintain this feature?
16645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16646ac_sed_extra="$ac_vpsub
16647$extrasub
16648_ACEOF
16649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16650:t
16651/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16652s|@configure_input@|$ac_sed_conf_input|;t t
16653s&@top_builddir@&$ac_top_builddir_sub&;t t
16654s&@top_build_prefix@&$ac_top_build_prefix&;t t
16655s&@srcdir@&$ac_srcdir&;t t
16656s&@abs_srcdir@&$ac_abs_srcdir&;t t
16657s&@top_srcdir@&$ac_top_srcdir&;t t
16658s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16659s&@builddir@&$ac_builddir&;t t
16660s&@abs_builddir@&$ac_abs_builddir&;t t
16661s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16662s&@INSTALL@&$ac_INSTALL&;t t
16663s&@MKDIR_P@&$ac_MKDIR_P&;t t
16664$ac_datarootdir_hack
16665"
16666eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16667  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16668
16669test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16670  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16671  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16672      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16673  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16674which seems to be undefined.  Please make sure it is defined" >&5
16675$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16676which seems to be undefined.  Please make sure it is defined" >&2;}
16677
16678  rm -f "$ac_tmp/stdin"
16679  case $ac_file in
16680  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16681  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16682  esac \
16683  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16684 ;;
16685  :H)
16686  #
16687  # CONFIG_HEADER
16688  #
16689  if test x"$ac_file" != x-; then
16690    {
16691      $as_echo "/* $configure_input  */" \
16692      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16693    } >"$ac_tmp/config.h" \
16694      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16695    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16696      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16697$as_echo "$as_me: $ac_file is unchanged" >&6;}
16698    else
16699      rm -f "$ac_file"
16700      mv "$ac_tmp/config.h" "$ac_file" \
16701	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16702    fi
16703  else
16704    $as_echo "/* $configure_input  */" \
16705      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16706      || as_fn_error $? "could not create -" "$LINENO" 5
16707  fi
16708 ;;
16709
16710
16711  esac
16712
16713
16714  case $ac_file$ac_mode in
16715    "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
16716
16717  esac
16718done # for ac_tag
16719
16720
16721as_fn_exit 0
16722_ACEOF
16723ac_clean_files=$ac_clean_files_save
16724
16725test $ac_write_fail = 0 ||
16726  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16727
16728
16729# configure is writing to config.log, and then calls config.status.
16730# config.status does its own redirection, appending to config.log.
16731# Unfortunately, on DOS this fails, as config.log is still kept open
16732# by configure, so config.status won't be able to write to it; its
16733# output is simply discarded.  So we exec the FD to /dev/null,
16734# effectively closing config.log, so it can be properly (re)opened and
16735# appended to by config.status.  When coming back to configure, we
16736# need to make the FD available again.
16737if test "$no_create" != yes; then
16738  ac_cs_success=:
16739  ac_config_status_args=
16740  test "$silent" = yes &&
16741    ac_config_status_args="$ac_config_status_args --quiet"
16742  exec 5>/dev/null
16743  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16744  exec 5>>config.log
16745  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16746  # would make configure fail if this is the last instruction.
16747  $ac_cs_success || as_fn_exit 1
16748fi
16749if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16750  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16751$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16752fi
16753
16754
16755echo "creating Modules/Setup"
16756if test ! -f Modules/Setup
16757then
16758	cp $srcdir/Modules/Setup.dist Modules/Setup
16759fi
16760
16761echo "creating Modules/Setup.local"
16762if test ! -f Modules/Setup.local
16763then
16764	echo "# Edit this file for local setup changes" >Modules/Setup.local
16765fi
16766
16767echo "creating Makefile"
16768$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
16769			-s Modules Modules/Setup.config \
16770			Modules/Setup.local Modules/Setup
16771
16772case $ac_sys_system in
16773BeOS)
16774        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16775
16776  Support for BeOS is deprecated as of Python 2.6.
16777  See PEP 11 for the gory details.
16778  " >&5
16779$as_echo "$as_me: WARNING:
16780
16781  Support for BeOS is deprecated as of Python 2.6.
16782  See PEP 11 for the gory details.
16783  " >&2;}
16784  ;;
16785*) ;;
16786esac
16787
16788mv config.c Modules
16789
16790if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
16791    echo "" >&6
16792    echo "" >&6
16793    echo "If you want a release build with all optimizations active (LTO, PGO, etc),"
16794    echo "please run ./configure --enable-optimizations" >&6
16795    echo "" >&6
16796    echo "" >&6
16797fi
16798