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_HG
687HGBRANCH
688HGTAG
689HGVERSION
690SVNVERSION
691ARFLAGS
692ac_ct_AR
693AR
694RANLIB
695GNULD
696LINKCC
697RUNSHARED
698INSTSONAME
699LDLIBRARYDIR
700BLDLIBRARY
701DLLLIBRARY
702LDLIBRARY
703LIBRARY
704BUILDEXEEXT
705EGREP
706GREP
707CPP
708MULTIARCH
709ac_ct_CXX
710MAINCC
711CXX
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719EXPORT_MACOSX_DEPLOYMENT_TARGET
720CONFIGURE_MACOSX_DEPLOYMENT_TARGET
721EXTRAMACHDEPPATH
722EXTRAPLATDIR
723PLATDIR
724SGI_ABI
725_PYTHON_HOST_PLATFORM
726MACHDEP
727FRAMEWORKINSTALLAPPSPREFIX
728FRAMEWORKUNIXTOOLSPREFIX
729FRAMEWORKALTINSTALLLAST
730FRAMEWORKALTINSTALLFIRST
731FRAMEWORKINSTALLLAST
732FRAMEWORKINSTALLFIRST
733PYTHONFRAMEWORKINSTALLDIR
734PYTHONFRAMEWORKPREFIX
735PYTHONFRAMEWORKDIR
736PYTHONFRAMEWORKIDENTIFIER
737PYTHONFRAMEWORK
738LIPO_32BIT_FLAGS
739ARCH_RUN_32BIT
740UNIVERSALSDK
741CONFIG_ARGS
742SOVERSION
743VERSION
744GENERATED_COMMENT
745PYTHON_FOR_BUILD
746host_os
747host_vendor
748host_cpu
749host
750build_os
751build_vendor
752build_cpu
753build
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773runstatedir
774localstatedir
775sharedstatedir
776sysconfdir
777datadir
778datarootdir
779libexecdir
780sbindir
781bindir
782program_transform_name
783prefix
784exec_prefix
785PACKAGE_URL
786PACKAGE_BUGREPORT
787PACKAGE_STRING
788PACKAGE_VERSION
789PACKAGE_TARNAME
790PACKAGE_NAME
791PATH_SEPARATOR
792SHELL'
793ac_subst_files=''
794ac_user_opts='
795enable_option_checking
796enable_universalsdk
797with_universal_archs
798with_framework_name
799enable_framework
800with_gcc
801with_icc
802with_cxx_main
803with_suffix
804enable_shared
805enable_profiling
806with_pydebug
807enable_optimizations
808with_lto
809enable_toolbox_glue
810with_libs
811with_system_expat
812with_system_ffi
813with_tcltk_includes
814with_tcltk_libs
815with_dbmliborder
816with_signal_module
817with_dec_threads
818with_threads
819with_thread
820with_pth
821enable_ipv6
822with_doc_strings
823with_tsc
824with_pymalloc
825with_valgrind
826with_wctype_functions
827with_fpectl
828with_libm
829with_libc
830enable_big_digits
831enable_unicode
832with_computed_gotos
833with_ensurepip
834'
835      ac_precious_vars='build_alias
836host_alias
837target_alias
838CC
839CFLAGS
840LDFLAGS
841LIBS
842CPPFLAGS
843CPP
844PKG_CONFIG
845PKG_CONFIG_PATH
846PKG_CONFIG_LIBDIR'
847
848
849# Initialize some variables set by options.
850ac_init_help=
851ac_init_version=false
852ac_unrecognized_opts=
853ac_unrecognized_sep=
854# The variables have the same names as the options, with
855# dashes changed to underlines.
856cache_file=/dev/null
857exec_prefix=NONE
858no_create=
859no_recursion=
860prefix=NONE
861program_prefix=NONE
862program_suffix=NONE
863program_transform_name=s,x,x,
864silent=
865site=
866srcdir=
867verbose=
868x_includes=NONE
869x_libraries=NONE
870
871# Installation directory options.
872# These are left unexpanded so users can "make install exec_prefix=/foo"
873# and all the variables that are supposed to be based on exec_prefix
874# by default will actually change.
875# Use braces instead of parens because sh, perl, etc. also accept them.
876# (The list follows the same order as the GNU Coding Standards.)
877bindir='${exec_prefix}/bin'
878sbindir='${exec_prefix}/sbin'
879libexecdir='${exec_prefix}/libexec'
880datarootdir='${prefix}/share'
881datadir='${datarootdir}'
882sysconfdir='${prefix}/etc'
883sharedstatedir='${prefix}/com'
884localstatedir='${prefix}/var'
885runstatedir='${localstatedir}/run'
886includedir='${prefix}/include'
887oldincludedir='/usr/include'
888docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889infodir='${datarootdir}/info'
890htmldir='${docdir}'
891dvidir='${docdir}'
892pdfdir='${docdir}'
893psdir='${docdir}'
894libdir='${exec_prefix}/lib'
895localedir='${datarootdir}/locale'
896mandir='${datarootdir}/man'
897
898ac_prev=
899ac_dashdash=
900for ac_option
901do
902  # If the previous option needs an argument, assign it.
903  if test -n "$ac_prev"; then
904    eval $ac_prev=\$ac_option
905    ac_prev=
906    continue
907  fi
908
909  case $ac_option in
910  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911  *=)   ac_optarg= ;;
912  *)    ac_optarg=yes ;;
913  esac
914
915  # Accept the important Cygnus configure options, so we can diagnose typos.
916
917  case $ac_dashdash$ac_option in
918  --)
919    ac_dashdash=yes ;;
920
921  -bindir | --bindir | --bindi | --bind | --bin | --bi)
922    ac_prev=bindir ;;
923  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924    bindir=$ac_optarg ;;
925
926  -build | --build | --buil | --bui | --bu)
927    ac_prev=build_alias ;;
928  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929    build_alias=$ac_optarg ;;
930
931  -cache-file | --cache-file | --cache-fil | --cache-fi \
932  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933    ac_prev=cache_file ;;
934  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936    cache_file=$ac_optarg ;;
937
938  --config-cache | -C)
939    cache_file=config.cache ;;
940
941  -datadir | --datadir | --datadi | --datad)
942    ac_prev=datadir ;;
943  -datadir=* | --datadir=* | --datadi=* | --datad=*)
944    datadir=$ac_optarg ;;
945
946  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947  | --dataroo | --dataro | --datar)
948    ac_prev=datarootdir ;;
949  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951    datarootdir=$ac_optarg ;;
952
953  -disable-* | --disable-*)
954    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955    # Reject names that are not valid shell variable names.
956    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957      as_fn_error $? "invalid feature name: $ac_useropt"
958    ac_useropt_orig=$ac_useropt
959    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960    case $ac_user_opts in
961      *"
962"enable_$ac_useropt"
963"*) ;;
964      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965	 ac_unrecognized_sep=', ';;
966    esac
967    eval enable_$ac_useropt=no ;;
968
969  -docdir | --docdir | --docdi | --doc | --do)
970    ac_prev=docdir ;;
971  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972    docdir=$ac_optarg ;;
973
974  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975    ac_prev=dvidir ;;
976  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977    dvidir=$ac_optarg ;;
978
979  -enable-* | --enable-*)
980    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981    # Reject names that are not valid shell variable names.
982    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983      as_fn_error $? "invalid feature name: $ac_useropt"
984    ac_useropt_orig=$ac_useropt
985    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986    case $ac_user_opts in
987      *"
988"enable_$ac_useropt"
989"*) ;;
990      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991	 ac_unrecognized_sep=', ';;
992    esac
993    eval enable_$ac_useropt=\$ac_optarg ;;
994
995  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997  | --exec | --exe | --ex)
998    ac_prev=exec_prefix ;;
999  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001  | --exec=* | --exe=* | --ex=*)
1002    exec_prefix=$ac_optarg ;;
1003
1004  -gas | --gas | --ga | --g)
1005    # Obsolete; use --with-gas.
1006    with_gas=yes ;;
1007
1008  -help | --help | --hel | --he | -h)
1009    ac_init_help=long ;;
1010  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011    ac_init_help=recursive ;;
1012  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013    ac_init_help=short ;;
1014
1015  -host | --host | --hos | --ho)
1016    ac_prev=host_alias ;;
1017  -host=* | --host=* | --hos=* | --ho=*)
1018    host_alias=$ac_optarg ;;
1019
1020  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021    ac_prev=htmldir ;;
1022  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023  | --ht=*)
1024    htmldir=$ac_optarg ;;
1025
1026  -includedir | --includedir | --includedi | --included | --include \
1027  | --includ | --inclu | --incl | --inc)
1028    ac_prev=includedir ;;
1029  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030  | --includ=* | --inclu=* | --incl=* | --inc=*)
1031    includedir=$ac_optarg ;;
1032
1033  -infodir | --infodir | --infodi | --infod | --info | --inf)
1034    ac_prev=infodir ;;
1035  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036    infodir=$ac_optarg ;;
1037
1038  -libdir | --libdir | --libdi | --libd)
1039    ac_prev=libdir ;;
1040  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041    libdir=$ac_optarg ;;
1042
1043  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044  | --libexe | --libex | --libe)
1045    ac_prev=libexecdir ;;
1046  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047  | --libexe=* | --libex=* | --libe=*)
1048    libexecdir=$ac_optarg ;;
1049
1050  -localedir | --localedir | --localedi | --localed | --locale)
1051    ac_prev=localedir ;;
1052  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053    localedir=$ac_optarg ;;
1054
1055  -localstatedir | --localstatedir | --localstatedi | --localstated \
1056  | --localstate | --localstat | --localsta | --localst | --locals)
1057    ac_prev=localstatedir ;;
1058  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060    localstatedir=$ac_optarg ;;
1061
1062  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063    ac_prev=mandir ;;
1064  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065    mandir=$ac_optarg ;;
1066
1067  -nfp | --nfp | --nf)
1068    # Obsolete; use --without-fp.
1069    with_fp=no ;;
1070
1071  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072  | --no-cr | --no-c | -n)
1073    no_create=yes ;;
1074
1075  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077    no_recursion=yes ;;
1078
1079  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081  | --oldin | --oldi | --old | --ol | --o)
1082    ac_prev=oldincludedir ;;
1083  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086    oldincludedir=$ac_optarg ;;
1087
1088  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089    ac_prev=prefix ;;
1090  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091    prefix=$ac_optarg ;;
1092
1093  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094  | --program-pre | --program-pr | --program-p)
1095    ac_prev=program_prefix ;;
1096  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098    program_prefix=$ac_optarg ;;
1099
1100  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101  | --program-suf | --program-su | --program-s)
1102    ac_prev=program_suffix ;;
1103  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105    program_suffix=$ac_optarg ;;
1106
1107  -program-transform-name | --program-transform-name \
1108  | --program-transform-nam | --program-transform-na \
1109  | --program-transform-n | --program-transform- \
1110  | --program-transform | --program-transfor \
1111  | --program-transfo | --program-transf \
1112  | --program-trans | --program-tran \
1113  | --progr-tra | --program-tr | --program-t)
1114    ac_prev=program_transform_name ;;
1115  -program-transform-name=* | --program-transform-name=* \
1116  | --program-transform-nam=* | --program-transform-na=* \
1117  | --program-transform-n=* | --program-transform-=* \
1118  | --program-transform=* | --program-transfor=* \
1119  | --program-transfo=* | --program-transf=* \
1120  | --program-trans=* | --program-tran=* \
1121  | --progr-tra=* | --program-tr=* | --program-t=*)
1122    program_transform_name=$ac_optarg ;;
1123
1124  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125    ac_prev=pdfdir ;;
1126  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127    pdfdir=$ac_optarg ;;
1128
1129  -psdir | --psdir | --psdi | --psd | --ps)
1130    ac_prev=psdir ;;
1131  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132    psdir=$ac_optarg ;;
1133
1134  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135  | -silent | --silent | --silen | --sile | --sil)
1136    silent=yes ;;
1137
1138  -runstatedir | --runstatedir | --runstatedi | --runstated \
1139  | --runstate | --runstat | --runsta | --runst | --runs \
1140  | --run | --ru | --r)
1141    ac_prev=runstatedir ;;
1142  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144  | --run=* | --ru=* | --r=*)
1145    runstatedir=$ac_optarg ;;
1146
1147  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148    ac_prev=sbindir ;;
1149  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150  | --sbi=* | --sb=*)
1151    sbindir=$ac_optarg ;;
1152
1153  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155  | --sharedst | --shareds | --shared | --share | --shar \
1156  | --sha | --sh)
1157    ac_prev=sharedstatedir ;;
1158  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161  | --sha=* | --sh=*)
1162    sharedstatedir=$ac_optarg ;;
1163
1164  -site | --site | --sit)
1165    ac_prev=site ;;
1166  -site=* | --site=* | --sit=*)
1167    site=$ac_optarg ;;
1168
1169  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170    ac_prev=srcdir ;;
1171  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172    srcdir=$ac_optarg ;;
1173
1174  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175  | --syscon | --sysco | --sysc | --sys | --sy)
1176    ac_prev=sysconfdir ;;
1177  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179    sysconfdir=$ac_optarg ;;
1180
1181  -target | --target | --targe | --targ | --tar | --ta | --t)
1182    ac_prev=target_alias ;;
1183  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184    target_alias=$ac_optarg ;;
1185
1186  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187    verbose=yes ;;
1188
1189  -version | --version | --versio | --versi | --vers | -V)
1190    ac_init_version=: ;;
1191
1192  -with-* | --with-*)
1193    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194    # Reject names that are not valid shell variable names.
1195    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196      as_fn_error $? "invalid package name: $ac_useropt"
1197    ac_useropt_orig=$ac_useropt
1198    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199    case $ac_user_opts in
1200      *"
1201"with_$ac_useropt"
1202"*) ;;
1203      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204	 ac_unrecognized_sep=', ';;
1205    esac
1206    eval with_$ac_useropt=\$ac_optarg ;;
1207
1208  -without-* | --without-*)
1209    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210    # Reject names that are not valid shell variable names.
1211    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212      as_fn_error $? "invalid package name: $ac_useropt"
1213    ac_useropt_orig=$ac_useropt
1214    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215    case $ac_user_opts in
1216      *"
1217"with_$ac_useropt"
1218"*) ;;
1219      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220	 ac_unrecognized_sep=', ';;
1221    esac
1222    eval with_$ac_useropt=no ;;
1223
1224  --x)
1225    # Obsolete; use --with-x.
1226    with_x=yes ;;
1227
1228  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229  | --x-incl | --x-inc | --x-in | --x-i)
1230    ac_prev=x_includes ;;
1231  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233    x_includes=$ac_optarg ;;
1234
1235  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237    ac_prev=x_libraries ;;
1238  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240    x_libraries=$ac_optarg ;;
1241
1242  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
1244    ;;
1245
1246  *=*)
1247    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248    # Reject names that are not valid shell variable names.
1249    case $ac_envvar in #(
1250      '' | [0-9]* | *[!_$as_cr_alnum]* )
1251      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252    esac
1253    eval $ac_envvar=\$ac_optarg
1254    export $ac_envvar ;;
1255
1256  *)
1257    # FIXME: should be removed in autoconf 3.0.
1258    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262    ;;
1263
1264  esac
1265done
1266
1267if test -n "$ac_prev"; then
1268  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269  as_fn_error $? "missing argument to $ac_option"
1270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273  case $enable_option_checking in
1274    no) ;;
1275    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277  esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282		datadir sysconfdir sharedstatedir localstatedir includedir \
1283		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284		libdir localedir mandir runstatedir
1285do
1286  eval ac_val=\$$ac_var
1287  # Remove trailing slashes.
1288  case $ac_val in
1289    */ )
1290      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291      eval $ac_var=\$ac_val;;
1292  esac
1293  # Be sure to have absolute directory names.
1294  case $ac_val in
1295    [\\/$]* | ?:[\\/]* )  continue;;
1296    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297  esac
1298  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310  if test "x$build_alias" = x; then
1311    cross_compiling=maybe
1312  elif test "x$build_alias" != "x$host_alias"; then
1313    cross_compiling=yes
1314  fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326  as_fn_error $? "working directory cannot be determined"
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328  as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333  ac_srcdir_defaulted=yes
1334  # Try the directory containing this script, then the parent directory.
1335  ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337	 X"$as_myself" : 'X\(//\)[^/]' \| \
1338	 X"$as_myself" : 'X\(//\)$' \| \
1339	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340$as_echo X"$as_myself" |
1341    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)[^/].*/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\/\)$/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\).*/{
1354	    s//\1/
1355	    q
1356	  }
1357	  s/.*/./; q'`
1358  srcdir=$ac_confdir
1359  if test ! -r "$srcdir/$ac_unique_file"; then
1360    srcdir=..
1361  fi
1362else
1363  ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
1371	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372	pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375  srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_env_${ac_var}_value=\$${ac_var}
1386  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394  # Omit some internal or obsolete options to make the list less imposing.
1395  # This message is too long to be a string in the A/UX 3.1 sh.
1396  cat <<_ACEOF
1397\`configure' configures python 2.7 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407  -h, --help              display this help and exit
1408      --help=short        display options specific to this package
1409      --help=recursive    display the short help of all the included packages
1410  -V, --version           display version information and exit
1411  -q, --quiet, --silent   do not print \`checking ...' messages
1412      --cache-file=FILE   cache test results in FILE [disabled]
1413  -C, --config-cache      alias for \`--cache-file=config.cache'
1414  -n, --no-create         do not create output files
1415      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418  --prefix=PREFIX         install architecture-independent files in PREFIX
1419                          [$ac_default_prefix]
1420  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                          [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431  --bindir=DIR            user executables [EPREFIX/bin]
1432  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1433  --libexecdir=DIR        program executables [EPREFIX/libexec]
1434  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1435  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1436  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1437  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1438  --libdir=DIR            object code libraries [EPREFIX/lib]
1439  --includedir=DIR        C header files [PREFIX/include]
1440  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1441  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1442  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1443  --infodir=DIR           info documentation [DATAROOTDIR/info]
1444  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1445  --mandir=DIR            man documentation [DATAROOTDIR/man]
1446  --docdir=DIR            documentation root [DATAROOTDIR/doc/python]
1447  --htmldir=DIR           html documentation [DOCDIR]
1448  --dvidir=DIR            dvi documentation [DOCDIR]
1449  --pdfdir=DIR            pdf documentation [DOCDIR]
1450  --psdir=DIR             ps documentation [DOCDIR]
1451_ACEOF
1452
1453  cat <<\_ACEOF
1454
1455System types:
1456  --build=BUILD     configure for building on BUILD [guessed]
1457  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458  --target=TARGET   configure for building compilers for TARGET [HOST]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463  case $ac_init_help in
1464     short | recursive ) echo "Configuration of python 2.7:";;
1465   esac
1466  cat <<\_ACEOF
1467
1468Optional Features:
1469  --disable-option-checking  ignore unrecognized --enable/--with options
1470  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472  --enable-universalsdk[=SDKDIR]
1473                          Build against Mac OS X 10.4u SDK (ppc/i386)
1474  --enable-framework[=INSTALLDIR]
1475                          Build (MacOSX|Darwin) framework
1476  --enable-shared         disable/enable building shared python library
1477  --enable-profiling      enable C-level code profiling
1478  --enable-optimizations  Enable expensive optimizations (PGO, maybe LTO,
1479                          etc). Disabled by default.
1480  --enable-toolbox-glue   disable/enable MacOSX glue code for extensions
1481  --enable-ipv6           Enable ipv6 (with ipv4) support
1482  --disable-ipv6          Disable ipv6 support
1483  --enable-big-digits[=BITS]
1484                          use big digits for Python longs [[BITS=30]]
1485  --enable-unicode[=ucs[24]]
1486                          Enable Unicode strings (default is ucs2)
1487
1488Optional Packages:
1489  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491  --with-universal-archs=ARCH
1492                          select architectures for universal build ("32-bit",
1493                          "64-bit", "3-way", "intel" 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
2918if test "$cross_compiling" = yes; then
2919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2920$as_echo_n "checking for python interpreter for cross build... " >&6; }
2921    if test -z "$PYTHON_FOR_BUILD"; then
2922        for interp in python$PACKAGE_VERSION python2 python; do
2923	    which $interp >/dev/null 2>&1 || continue
2924	    if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then
2925	        break
2926	    fi
2927            interp=
2928	done
2929        if test x$interp = x; then
2930	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
2931	fi
2932        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2933$as_echo "$interp" >&6; }
2934	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
2935    fi
2936    # Used to comment out stuff for rebuilding generated files
2937    GENERATED_COMMENT='#'
2938elif test "$cross_compiling" = maybe; then
2939    as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
2940else
2941    PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
2942    GENERATED_COMMENT=''
2943fi
2944
2945
2946
2947
2948if test "$prefix" != "/"; then
2949    prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2950fi
2951
2952
2953
2954
2955# We don't use PACKAGE_ variables, and they cause conflicts
2956# with other autoconf-based packages that include Python.h
2957grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2958rm confdefs.h
2959mv confdefs.h.new confdefs.h
2960
2961
2962VERSION=2.7
2963
2964
2965SOVERSION=1.0
2966
2967# The later defininition of _XOPEN_SOURCE disables certain features
2968# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2969
2970$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2971
2972
2973# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2974# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2975# them.
2976
2977$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
2978
2979
2980# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2981# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2982# them.
2983
2984$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
2985
2986
2987# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2988# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
2989
2990$as_echo "#define _BSD_TYPES 1" >>confdefs.h
2991
2992
2993# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2994# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
2995# them.
2996
2997$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
2998
2999
3000
3001define_xopen_source=yes
3002
3003# Arguments passed to configure.
3004
3005CONFIG_ARGS="$ac_configure_args"
3006
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3008$as_echo_n "checking for --enable-universalsdk... " >&6; }
3009# Check whether --enable-universalsdk was given.
3010if test "${enable_universalsdk+set}" = set; then :
3011  enableval=$enable_universalsdk;
3012	case $enableval in
3013	yes)
3014		enableval=/Developer/SDKs/MacOSX10.4u.sdk
3015		if test ! -d "${enableval}"
3016		then
3017			enableval=/
3018		fi
3019		;;
3020	esac
3021	case $enableval in
3022	no)
3023		UNIVERSALSDK=
3024		enable_universalsdk=
3025		;;
3026	*)
3027		UNIVERSALSDK=$enableval
3028		if test ! -d "${UNIVERSALSDK}"
3029		then
3030			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
3031		fi
3032		;;
3033	esac
3034
3035
3036else
3037
3038   	UNIVERSALSDK=
3039	enable_universalsdk=
3040
3041fi
3042
3043if test -n "${UNIVERSALSDK}"
3044then
3045	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3046$as_echo "${UNIVERSALSDK}" >&6; }
3047else
3048	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049$as_echo "no" >&6; }
3050fi
3051
3052
3053
3054ARCH_RUN_32BIT=""
3055
3056UNIVERSAL_ARCHS="32-bit"
3057
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3059$as_echo_n "checking for --with-universal-archs... " >&6; }
3060
3061# Check whether --with-universal-archs was given.
3062if test "${with_universal_archs+set}" = set; then :
3063  withval=$with_universal_archs;
3064	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
3065$as_echo "$withval" >&6; }
3066	UNIVERSAL_ARCHS="$withval"
3067        if test "${enable_universalsdk}" ; then
3068		:
3069	else
3070		as_fn_error $? "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5
3071	fi
3072
3073else
3074
3075 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5
3076$as_echo "32-bit" >&6; }
3077
3078fi
3079
3080
3081
3082
3083
3084# Check whether --with-framework-name was given.
3085if test "${with_framework_name+set}" = set; then :
3086  withval=$with_framework_name;
3087    if test "${enable_framework}"; then
3088	    :
3089    else
3090	as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5
3091    fi
3092    PYTHONFRAMEWORK=${withval}
3093    PYTHONFRAMEWORKDIR=${withval}.framework
3094    PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3095
3096else
3097
3098    PYTHONFRAMEWORK=Python
3099    PYTHONFRAMEWORKDIR=Python.framework
3100    PYTHONFRAMEWORKIDENTIFIER=org.python.python
3101
3102fi
3103
3104# Check whether --enable-framework was given.
3105if test "${enable_framework+set}" = set; then :
3106  enableval=$enable_framework;
3107	case $enableval in
3108	yes)
3109		enableval=/Library/Frameworks
3110	esac
3111	case $enableval in
3112	no)
3113		PYTHONFRAMEWORK=
3114		PYTHONFRAMEWORKDIR=no-framework
3115		PYTHONFRAMEWORKPREFIX=
3116		PYTHONFRAMEWORKINSTALLDIR=
3117		FRAMEWORKINSTALLFIRST=
3118		FRAMEWORKINSTALLLAST=
3119		FRAMEWORKALTINSTALLFIRST=
3120		FRAMEWORKALTINSTALLLAST=
3121		if test "x${prefix}" = "xNONE"; then
3122			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3123		else
3124			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3125		fi
3126		enable_framework=
3127		;;
3128	*)
3129		PYTHONFRAMEWORKPREFIX="${enableval}"
3130		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
3131		FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
3132		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
3133		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3134		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
3135		FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3136
3137		if test "x${prefix}" = "xNONE" ; then
3138			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3139
3140		else
3141			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3142		fi
3143
3144		case "${enableval}" in
3145		/System*)
3146			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3147			if test "${prefix}" = "NONE" ; then
3148				# See below
3149				FRAMEWORKUNIXTOOLSPREFIX="/usr"
3150			fi
3151			;;
3152
3153		/Library*)
3154			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3155			;;
3156
3157		*/Library/Frameworks)
3158			MDIR="`dirname "${enableval}"`"
3159			MDIR="`dirname "${MDIR}"`"
3160			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3161
3162			if test "${prefix}" = "NONE"; then
3163				# User hasn't specified the
3164				# --prefix option, but wants to install
3165				# the framework in a non-default location,
3166				# ensure that the compatibility links get
3167				# installed relative to that prefix as well
3168				# instead of in /usr/local.
3169				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3170			fi
3171			;;
3172
3173		*)
3174			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3175			;;
3176		esac
3177
3178		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
3179
3180		# Add files for Mac specific code to the list of output
3181		# files:
3182		ac_config_files="$ac_config_files Mac/Makefile"
3183
3184		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
3185
3186		ac_config_files="$ac_config_files Mac/IDLE/Makefile"
3187
3188		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3189
3190		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3191
3192	esac
3193
3194else
3195
3196	PYTHONFRAMEWORK=
3197	PYTHONFRAMEWORKDIR=no-framework
3198	PYTHONFRAMEWORKPREFIX=
3199	PYTHONFRAMEWORKINSTALLDIR=
3200	FRAMEWORKINSTALLFIRST=
3201	FRAMEWORKINSTALLLAST=
3202	FRAMEWORKALTINSTALLFIRST=
3203	FRAMEWORKALTINSTALLLAST=
3204	if test "x${prefix}" = "xNONE" ; then
3205		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3206	else
3207		FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3208	fi
3209	enable_framework=
3210
3211
3212fi
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226##AC_ARG_WITH(dyld,
3227##            AS_HELP_STRING([--with-dyld],
3228##                           [Use (OpenStep|Rhapsody) dynamic linker]))
3229##
3230# Set name for machine-dependent library files
3231
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3233$as_echo_n "checking MACHDEP... " >&6; }
3234if test -z "$MACHDEP"
3235then
3236    # avoid using uname for cross builds
3237    if test "$cross_compiling" = yes; then
3238       # ac_sys_system and ac_sys_release are only used for setting
3239       # `define_xopen_source' in the case statement below. For the
3240       # current supported cross builds, this macro is not adjusted.
3241	case "$host" in
3242	*-*-linux*)
3243		ac_sys_system=Linux
3244		;;
3245	*-*-cygwin*)
3246		ac_sys_system=Cygwin
3247		;;
3248	*)
3249		# for now, limit cross builds to known configurations
3250		MACHDEP="unknown"
3251		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3252	esac
3253	ac_sys_release=
3254    else
3255	ac_sys_system=`uname -s`
3256	if test "$ac_sys_system" = "AIX" \
3257	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
3258		ac_sys_release=`uname -v`
3259	else
3260		ac_sys_release=`uname -r`
3261	fi
3262    fi
3263    ac_md_system=`echo $ac_sys_system |
3264			tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3265    ac_md_release=`echo $ac_sys_release |
3266			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3267    MACHDEP="$ac_md_system$ac_md_release"
3268
3269    case $MACHDEP in
3270	linux*) MACHDEP="linux2";;
3271	cygwin*) MACHDEP="cygwin";;
3272	darwin*) MACHDEP="darwin";;
3273	atheos*) MACHDEP="atheos";;
3274        irix646) MACHDEP="irix6";;
3275	'')	MACHDEP="unknown";;
3276    esac
3277fi
3278
3279
3280if test "$cross_compiling" = yes; then
3281	case "$host" in
3282	*-*-linux*)
3283		case "$host_cpu" in
3284		arm*)
3285			_host_cpu=arm
3286			;;
3287		*)
3288			_host_cpu=$host_cpu
3289		esac
3290		;;
3291	*-*-cygwin*)
3292		_host_cpu=
3293		;;
3294	*)
3295		# for now, limit cross builds to known configurations
3296		MACHDEP="unknown"
3297		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3298	esac
3299	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3300fi
3301
3302# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3303# disable features if it is defined, without any means to access these
3304# features as extensions. For these systems, we skip the definition of
3305# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3306# some feature, make sure there is no alternative way to access this
3307# feature. Also, when using wildcards, make sure you have verified the
3308# need for not defining _XOPEN_SOURCE on all systems matching the
3309# wildcard, and that the wildcard does not include future systems
3310# (which may remove their limitations).
3311case $ac_sys_system/$ac_sys_release in
3312  # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3313  # even though select is a POSIX function. Reported by J. Ribbens.
3314  # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3315  # In addition, Stefan Krah confirms that issue #1244610 exists through
3316  # OpenBSD 4.6, but is fixed in 4.7.
3317  OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
3318    define_xopen_source=no
3319    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3320    # also defined. This can be overridden by defining _BSD_SOURCE
3321    # As this has a different meaning on Linux, only define it on OpenBSD
3322
3323$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3324
3325    ;;
3326  OpenBSD/*)
3327    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3328    # also defined. This can be overridden by defining _BSD_SOURCE
3329    # As this has a different meaning on Linux, only define it on OpenBSD
3330
3331$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3332
3333    ;;
3334  # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3335  # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3336  # Marc Recht
3337  NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
3338    define_xopen_source=no;;
3339  # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3340  # request to enable features supported by the standard as a request
3341  # to disable features not supported by the standard.  The best way
3342  # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3343  # entirely and define __EXTENSIONS__ instead.
3344  SunOS/*)
3345    define_xopen_source=no;;
3346  # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3347  # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
3348  # Reconfirmed for 7.1.4 by Martin v. Loewis.
3349  OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
3350    define_xopen_source=no;;
3351  # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
3352  # but used in struct sockaddr.sa_family. Reported by Tim Rice.
3353  SCO_SV/3.2)
3354    define_xopen_source=no;;
3355  # On FreeBSD 4, the math functions C89 does not cover are never defined
3356  # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3357  FreeBSD/4.*)
3358    define_xopen_source=no;;
3359  # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3360  # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3361  # identifies itself as Darwin/7.*
3362  # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3363  # disables platform specific features beyond repair.
3364  # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3365  # has no effect, don't bother defining them
3366  Darwin/[6789].*)
3367    define_xopen_source=no;;
3368  Darwin/1[0-9].*)
3369    define_xopen_source=no;;
3370  # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3371  # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3372  # or has another value. By not (re)defining it, the defaults come in place.
3373  AIX/4)
3374    define_xopen_source=no;;
3375  AIX/5)
3376    if test `uname -r` -eq 1; then
3377      define_xopen_source=no
3378    fi
3379    ;;
3380  # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3381  # defining NI_NUMERICHOST.
3382  QNX/6.3.2)
3383    define_xopen_source=no
3384    ;;
3385
3386esac
3387
3388if test $define_xopen_source = yes
3389then
3390
3391$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3392
3393
3394  # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3395  # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3396  # several APIs are not declared. Since this is also needed in some
3397  # cases for HP-UX, we define it globally.
3398
3399$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3400
3401
3402
3403$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3404
3405
3406fi
3407
3408#
3409# SGI compilers allow the specification of the both the ABI and the
3410# ISA on the command line.  Depending on the values of these switches,
3411# different and often incompatible code will be generated.
3412#
3413# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3414# thus supply support for various ABI/ISA combinations.  The MACHDEP
3415# variable is also adjusted.
3416#
3417
3418if test ! -z "$SGI_ABI"
3419then
3420        CC="cc $SGI_ABI"
3421        LDFLAGS="$SGI_ABI $LDFLAGS"
3422        MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3425$as_echo "$MACHDEP" >&6; }
3426
3427
3428PLATDIR=plat-$MACHDEP
3429
3430# And add extra plat-mac for darwin
3431
3432
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
3434$as_echo_n "checking EXTRAPLATDIR... " >&6; }
3435if test -z "$EXTRAPLATDIR"
3436then
3437	case $MACHDEP in
3438	darwin)
3439		EXTRAPLATDIR="\$(PLATMACDIRS)"
3440		EXTRAMACHDEPPATH="\$(PLATMACPATH)"
3441		;;
3442	*)
3443		EXTRAPLATDIR=""
3444		EXTRAMACHDEPPATH=""
3445		;;
3446	esac
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
3449$as_echo "$EXTRAPLATDIR" >&6; }
3450
3451# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3452# it may influence the way we can build extensions, so distutils
3453# needs to check it
3454
3455
3456CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
3457EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
3458
3459# checks for alternative programs
3460
3461# compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just
3462# for debug/optimization stuff.  BASECFLAGS is for flags that are required
3463# just to get things to compile and link.  Users are free to override OPT
3464# when running configure or make.  The build should not break if they do.
3465# BASECFLAGS should generally not be messed with, however.
3466
3467# XXX shouldn't some/most/all of this code be merged with the stuff later
3468# on that fiddles with OPT and BASECFLAGS?
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3470$as_echo_n "checking for --without-gcc... " >&6; }
3471
3472# Check whether --with-gcc was given.
3473if test "${with_gcc+set}" = set; then :
3474  withval=$with_gcc;
3475	case $withval in
3476	no)	CC=${CC:-cc}
3477		without_gcc=yes;;
3478	yes)	CC=gcc
3479		without_gcc=no;;
3480	*)	CC=$withval
3481		without_gcc=$withval;;
3482	esac
3483else
3484
3485	case $ac_sys_system in
3486	AIX*)   CC=${CC:-xlc_r}
3487		without_gcc=;;
3488	BeOS*)
3489		case $BE_HOST_CPU in
3490		ppc)
3491			CC=mwcc
3492			without_gcc=yes
3493			BASECFLAGS="$BASECFLAGS -export pragma"
3494			OPT="$OPT -O"
3495			LDFLAGS="$LDFLAGS -nodup"
3496			;;
3497		x86)
3498			CC=gcc
3499			without_gcc=no
3500			OPT="$OPT -O"
3501			;;
3502		*)
3503			as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
3504			;;
3505		esac
3506		AR="\$(srcdir)/Modules/ar_beos"
3507		RANLIB=:
3508		;;
3509	*)	without_gcc=no;;
3510	esac
3511fi
3512
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3514$as_echo "$without_gcc" >&6; }
3515
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5
3517$as_echo_n "checking for --with-icc... " >&6; }
3518
3519# Check whether --with-icc was given.
3520if test "${with_icc+set}" = set; then :
3521  withval=$with_icc;
3522	case $withval in
3523	no)	CC=${CC:-cc}
3524		with_icc=no;;
3525	yes)	CC=icc
3526		CXX=icpc
3527		with_icc=yes;;
3528	*)	CC=$withval
3529		with_icc=$withval;;
3530	esac
3531else
3532
3533	with_icc=no
3534fi
3535
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5
3537$as_echo "$with_icc" >&6; }
3538
3539# If the user switches compilers, we can't believe the cache
3540if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3541then
3542  as_fn_error $? "cached CC is different -- throw away $cache_file
3543(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3544fi
3545
3546if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then
3547    # Normally, MIPSpro CC treats #error directives as warnings, which means
3548    # a successful exit code is returned (0).  This is a problem because IRIX
3549    # has a bunch of system headers with this guard at the top:
3550    #
3551    #  #ifndef __c99
3552    #  #error This header file is to be used only for c99 mode compilations
3553    #  #else
3554    #
3555    # When autoconf tests for such a header, like stdint.h, this happens:
3556    #
3557    #  configure:4619: cc -c   conftest.c >&5
3558    #  cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5
3559    #    #error directive:  This header file is to be used only for c99 mode
3560    #            compilations
3561    #
3562    #    #error This header file is to be used only for c99 mode compilations
3563    #     ^
3564    #
3565    #  configure:4619: $? = 0
3566    #  configure:4619: result: yes
3567    #
3568    # Therefore, we use `-diag_error 1035` to have the compiler treat the
3569    # warning as an error, which causes cc to return a non-zero result,
3570    # which autoconf can interpret correctly.
3571    CFLAGS="$CFLAGS -diag_error 1035"
3572    # Whilst we're here, we might as well make sure CXX defaults to something
3573    # sensible if we're not using gcc.
3574    if test -z "$CXX"; then
3575        CXX="CC"
3576    fi
3577fi
3578
3579# If the user set CFLAGS, use this instead of the automatically
3580# determined setting
3581preset_cflags="$CFLAGS"
3582ac_ext=c
3583ac_cpp='$CPP $CPPFLAGS'
3584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587if test -n "$ac_tool_prefix"; then
3588  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3589set dummy ${ac_tool_prefix}gcc; ac_word=$2
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591$as_echo_n "checking for $ac_word... " >&6; }
3592if ${ac_cv_prog_CC+:} false; then :
3593  $as_echo_n "(cached) " >&6
3594else
3595  if test -n "$CC"; then
3596  ac_cv_prog_CC="$CC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601  IFS=$as_save_IFS
3602  test -z "$as_dir" && as_dir=.
3603    for ac_exec_ext in '' $ac_executable_extensions; do
3604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607    break 2
3608  fi
3609done
3610  done
3611IFS=$as_save_IFS
3612
3613fi
3614fi
3615CC=$ac_cv_prog_CC
3616if test -n "$CC"; then
3617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618$as_echo "$CC" >&6; }
3619else
3620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621$as_echo "no" >&6; }
3622fi
3623
3624
3625fi
3626if test -z "$ac_cv_prog_CC"; then
3627  ac_ct_CC=$CC
3628  # Extract the first word of "gcc", so it can be a program name with args.
3629set dummy gcc; ac_word=$2
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631$as_echo_n "checking for $ac_word... " >&6; }
3632if ${ac_cv_prog_ac_ct_CC+:} false; then :
3633  $as_echo_n "(cached) " >&6
3634else
3635  if test -n "$ac_ct_CC"; then
3636  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3637else
3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639for as_dir in $PATH
3640do
3641  IFS=$as_save_IFS
3642  test -z "$as_dir" && as_dir=.
3643    for ac_exec_ext in '' $ac_executable_extensions; do
3644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645    ac_cv_prog_ac_ct_CC="gcc"
3646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647    break 2
3648  fi
3649done
3650  done
3651IFS=$as_save_IFS
3652
3653fi
3654fi
3655ac_ct_CC=$ac_cv_prog_ac_ct_CC
3656if test -n "$ac_ct_CC"; then
3657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3658$as_echo "$ac_ct_CC" >&6; }
3659else
3660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661$as_echo "no" >&6; }
3662fi
3663
3664  if test "x$ac_ct_CC" = x; then
3665    CC=""
3666  else
3667    case $cross_compiling:$ac_tool_warned in
3668yes:)
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671ac_tool_warned=yes ;;
3672esac
3673    CC=$ac_ct_CC
3674  fi
3675else
3676  CC="$ac_cv_prog_CC"
3677fi
3678
3679if test -z "$CC"; then
3680          if test -n "$ac_tool_prefix"; then
3681    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3682set dummy ${ac_tool_prefix}cc; ac_word=$2
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684$as_echo_n "checking for $ac_word... " >&6; }
3685if ${ac_cv_prog_CC+:} false; then :
3686  $as_echo_n "(cached) " >&6
3687else
3688  if test -n "$CC"; then
3689  ac_cv_prog_CC="$CC" # Let the user override the test.
3690else
3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH
3693do
3694  IFS=$as_save_IFS
3695  test -z "$as_dir" && as_dir=.
3696    for ac_exec_ext in '' $ac_executable_extensions; do
3697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698    ac_cv_prog_CC="${ac_tool_prefix}cc"
3699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700    break 2
3701  fi
3702done
3703  done
3704IFS=$as_save_IFS
3705
3706fi
3707fi
3708CC=$ac_cv_prog_CC
3709if test -n "$CC"; then
3710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3711$as_echo "$CC" >&6; }
3712else
3713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714$as_echo "no" >&6; }
3715fi
3716
3717
3718  fi
3719fi
3720if test -z "$CC"; then
3721  # Extract the first word of "cc", so it can be a program name with args.
3722set dummy cc; ac_word=$2
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724$as_echo_n "checking for $ac_word... " >&6; }
3725if ${ac_cv_prog_CC+:} false; then :
3726  $as_echo_n "(cached) " >&6
3727else
3728  if test -n "$CC"; then
3729  ac_cv_prog_CC="$CC" # Let the user override the test.
3730else
3731  ac_prog_rejected=no
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735  IFS=$as_save_IFS
3736  test -z "$as_dir" && as_dir=.
3737    for ac_exec_ext in '' $ac_executable_extensions; do
3738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3740       ac_prog_rejected=yes
3741       continue
3742     fi
3743    ac_cv_prog_CC="cc"
3744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745    break 2
3746  fi
3747done
3748  done
3749IFS=$as_save_IFS
3750
3751if test $ac_prog_rejected = yes; then
3752  # We found a bogon in the path, so make sure we never use it.
3753  set dummy $ac_cv_prog_CC
3754  shift
3755  if test $# != 0; then
3756    # We chose a different compiler from the bogus one.
3757    # However, it has the same basename, so the bogon will be chosen
3758    # first if we set CC to just the basename; use the full file name.
3759    shift
3760    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3761  fi
3762fi
3763fi
3764fi
3765CC=$ac_cv_prog_CC
3766if test -n "$CC"; then
3767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768$as_echo "$CC" >&6; }
3769else
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
3772fi
3773
3774
3775fi
3776if test -z "$CC"; then
3777  if test -n "$ac_tool_prefix"; then
3778  for ac_prog in cl.exe
3779  do
3780    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783$as_echo_n "checking for $ac_word... " >&6; }
3784if ${ac_cv_prog_CC+:} false; then :
3785  $as_echo_n "(cached) " >&6
3786else
3787  if test -n "$CC"; then
3788  ac_cv_prog_CC="$CC" # Let the user override the test.
3789else
3790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791for as_dir in $PATH
3792do
3793  IFS=$as_save_IFS
3794  test -z "$as_dir" && as_dir=.
3795    for ac_exec_ext in '' $ac_executable_extensions; do
3796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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
3805fi
3806fi
3807CC=$ac_cv_prog_CC
3808if test -n "$CC"; then
3809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3810$as_echo "$CC" >&6; }
3811else
3812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813$as_echo "no" >&6; }
3814fi
3815
3816
3817    test -n "$CC" && break
3818  done
3819fi
3820if test -z "$CC"; then
3821  ac_ct_CC=$CC
3822  for ac_prog in cl.exe
3823do
3824  # Extract the first word of "$ac_prog", so it can be a program name with args.
3825set dummy $ac_prog; ac_word=$2
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827$as_echo_n "checking for $ac_word... " >&6; }
3828if ${ac_cv_prog_ac_ct_CC+:} false; then :
3829  $as_echo_n "(cached) " >&6
3830else
3831  if test -n "$ac_ct_CC"; then
3832  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3833else
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837  IFS=$as_save_IFS
3838  test -z "$as_dir" && as_dir=.
3839    for ac_exec_ext in '' $ac_executable_extensions; do
3840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841    ac_cv_prog_ac_ct_CC="$ac_prog"
3842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843    break 2
3844  fi
3845done
3846  done
3847IFS=$as_save_IFS
3848
3849fi
3850fi
3851ac_ct_CC=$ac_cv_prog_ac_ct_CC
3852if test -n "$ac_ct_CC"; then
3853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3854$as_echo "$ac_ct_CC" >&6; }
3855else
3856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857$as_echo "no" >&6; }
3858fi
3859
3860
3861  test -n "$ac_ct_CC" && break
3862done
3863
3864  if test "x$ac_ct_CC" = x; then
3865    CC=""
3866  else
3867    case $cross_compiling:$ac_tool_warned in
3868yes:)
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3871ac_tool_warned=yes ;;
3872esac
3873    CC=$ac_ct_CC
3874  fi
3875fi
3876
3877fi
3878
3879
3880test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882as_fn_error $? "no acceptable C compiler found in \$PATH
3883See \`config.log' for more details" "$LINENO" 5; }
3884
3885# Provide some information about the compiler.
3886$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3887set X $ac_compile
3888ac_compiler=$2
3889for ac_option in --version -v -V -qversion; do
3890  { { ac_try="$ac_compiler $ac_option >&5"
3891case "(($ac_try" in
3892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893  *) ac_try_echo=$ac_try;;
3894esac
3895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896$as_echo "$ac_try_echo"; } >&5
3897  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3898  ac_status=$?
3899  if test -s conftest.err; then
3900    sed '10a\
3901... rest of stderr output deleted ...
3902         10q' conftest.err >conftest.er1
3903    cat conftest.er1 >&5
3904  fi
3905  rm -f conftest.er1 conftest.err
3906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907  test $ac_status = 0; }
3908done
3909
3910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h.  */
3912
3913int
3914main ()
3915{
3916
3917  ;
3918  return 0;
3919}
3920_ACEOF
3921ac_clean_files_save=$ac_clean_files
3922ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3923# Try to create an executable without -o first, disregard a.out.
3924# It will help us diagnose broken compilers, and finding out an intuition
3925# of exeext.
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3927$as_echo_n "checking whether the C compiler works... " >&6; }
3928ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3929
3930# The possible output files:
3931ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3932
3933ac_rmfiles=
3934for ac_file in $ac_files
3935do
3936  case $ac_file in
3937    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3938    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3939  esac
3940done
3941rm -f $ac_rmfiles
3942
3943if { { ac_try="$ac_link_default"
3944case "(($ac_try" in
3945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946  *) ac_try_echo=$ac_try;;
3947esac
3948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949$as_echo "$ac_try_echo"; } >&5
3950  (eval "$ac_link_default") 2>&5
3951  ac_status=$?
3952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953  test $ac_status = 0; }; then :
3954  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3955# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3956# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3957# so that the user can short-circuit this test for compilers unknown to
3958# Autoconf.
3959for ac_file in $ac_files ''
3960do
3961  test -f "$ac_file" || continue
3962  case $ac_file in
3963    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3964	;;
3965    [ab].out )
3966	# We found the default executable, but exeext='' is most
3967	# certainly right.
3968	break;;
3969    *.* )
3970	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3971	then :; else
3972	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973	fi
3974	# We set ac_cv_exeext here because the later test for it is not
3975	# safe: cross compilers may not add the suffix if given an `-o'
3976	# argument, so we may need to know it at that point already.
3977	# Even if this section looks crufty: it has the advantage of
3978	# actually working.
3979	break;;
3980    * )
3981	break;;
3982  esac
3983done
3984test "$ac_cv_exeext" = no && ac_cv_exeext=
3985
3986else
3987  ac_file=''
3988fi
3989if test -z "$ac_file"; then :
3990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991$as_echo "no" >&6; }
3992$as_echo "$as_me: failed program was:" >&5
3993sed 's/^/| /' conftest.$ac_ext >&5
3994
3995{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997as_fn_error 77 "C compiler cannot create executables
3998See \`config.log' for more details" "$LINENO" 5; }
3999else
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4001$as_echo "yes" >&6; }
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4004$as_echo_n "checking for C compiler default output file name... " >&6; }
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4006$as_echo "$ac_file" >&6; }
4007ac_exeext=$ac_cv_exeext
4008
4009rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4010ac_clean_files=$ac_clean_files_save
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4012$as_echo_n "checking for suffix of executables... " >&6; }
4013if { { ac_try="$ac_link"
4014case "(($ac_try" in
4015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016  *) ac_try_echo=$ac_try;;
4017esac
4018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019$as_echo "$ac_try_echo"; } >&5
4020  (eval "$ac_link") 2>&5
4021  ac_status=$?
4022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023  test $ac_status = 0; }; then :
4024  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4025# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4026# work properly (i.e., refer to `conftest.exe'), while it won't with
4027# `rm'.
4028for ac_file in conftest.exe conftest conftest.*; do
4029  test -f "$ac_file" || continue
4030  case $ac_file in
4031    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4032    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4033	  break;;
4034    * ) break;;
4035  esac
4036done
4037else
4038  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4041See \`config.log' for more details" "$LINENO" 5; }
4042fi
4043rm -f conftest conftest$ac_cv_exeext
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4045$as_echo "$ac_cv_exeext" >&6; }
4046
4047rm -f conftest.$ac_ext
4048EXEEXT=$ac_cv_exeext
4049ac_exeext=$EXEEXT
4050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052#include <stdio.h>
4053int
4054main ()
4055{
4056FILE *f = fopen ("conftest.out", "w");
4057 return ferror (f) || fclose (f) != 0;
4058
4059  ;
4060  return 0;
4061}
4062_ACEOF
4063ac_clean_files="$ac_clean_files conftest.out"
4064# Check that the compiler produces executables we can run.  If not, either
4065# the compiler is broken, or we cross compile.
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4067$as_echo_n "checking whether we are cross compiling... " >&6; }
4068if test "$cross_compiling" != yes; then
4069  { { ac_try="$ac_link"
4070case "(($ac_try" in
4071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072  *) ac_try_echo=$ac_try;;
4073esac
4074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075$as_echo "$ac_try_echo"; } >&5
4076  (eval "$ac_link") 2>&5
4077  ac_status=$?
4078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079  test $ac_status = 0; }
4080  if { ac_try='./conftest$ac_cv_exeext'
4081  { { case "(($ac_try" in
4082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083  *) ac_try_echo=$ac_try;;
4084esac
4085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086$as_echo "$ac_try_echo"; } >&5
4087  (eval "$ac_try") 2>&5
4088  ac_status=$?
4089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090  test $ac_status = 0; }; }; then
4091    cross_compiling=no
4092  else
4093    if test "$cross_compiling" = maybe; then
4094	cross_compiling=yes
4095    else
4096	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098as_fn_error $? "cannot run C compiled programs.
4099If you meant to cross compile, use \`--host'.
4100See \`config.log' for more details" "$LINENO" 5; }
4101    fi
4102  fi
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4105$as_echo "$cross_compiling" >&6; }
4106
4107rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4108ac_clean_files=$ac_clean_files_save
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4110$as_echo_n "checking for suffix of object files... " >&6; }
4111if ${ac_cv_objext+:} false; then :
4112  $as_echo_n "(cached) " >&6
4113else
4114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h.  */
4116
4117int
4118main ()
4119{
4120
4121  ;
4122  return 0;
4123}
4124_ACEOF
4125rm -f conftest.o conftest.obj
4126if { { ac_try="$ac_compile"
4127case "(($ac_try" in
4128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129  *) ac_try_echo=$ac_try;;
4130esac
4131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132$as_echo "$ac_try_echo"; } >&5
4133  (eval "$ac_compile") 2>&5
4134  ac_status=$?
4135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136  test $ac_status = 0; }; then :
4137  for ac_file in conftest.o conftest.obj conftest.*; do
4138  test -f "$ac_file" || continue;
4139  case $ac_file in
4140    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4141    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4142       break;;
4143  esac
4144done
4145else
4146  $as_echo "$as_me: failed program was:" >&5
4147sed 's/^/| /' conftest.$ac_ext >&5
4148
4149{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4151as_fn_error $? "cannot compute suffix of object files: cannot compile
4152See \`config.log' for more details" "$LINENO" 5; }
4153fi
4154rm -f conftest.$ac_cv_objext conftest.$ac_ext
4155fi
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4157$as_echo "$ac_cv_objext" >&6; }
4158OBJEXT=$ac_cv_objext
4159ac_objext=$OBJEXT
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4161$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4162if ${ac_cv_c_compiler_gnu+:} false; then :
4163  $as_echo_n "(cached) " >&6
4164else
4165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h.  */
4167
4168int
4169main ()
4170{
4171#ifndef __GNUC__
4172       choke me
4173#endif
4174
4175  ;
4176  return 0;
4177}
4178_ACEOF
4179if ac_fn_c_try_compile "$LINENO"; then :
4180  ac_compiler_gnu=yes
4181else
4182  ac_compiler_gnu=no
4183fi
4184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185ac_cv_c_compiler_gnu=$ac_compiler_gnu
4186
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4189$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4190if test $ac_compiler_gnu = yes; then
4191  GCC=yes
4192else
4193  GCC=
4194fi
4195ac_test_CFLAGS=${CFLAGS+set}
4196ac_save_CFLAGS=$CFLAGS
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4198$as_echo_n "checking whether $CC accepts -g... " >&6; }
4199if ${ac_cv_prog_cc_g+:} false; then :
4200  $as_echo_n "(cached) " >&6
4201else
4202  ac_save_c_werror_flag=$ac_c_werror_flag
4203   ac_c_werror_flag=yes
4204   ac_cv_prog_cc_g=no
4205   CFLAGS="-g"
4206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h.  */
4208
4209int
4210main ()
4211{
4212
4213  ;
4214  return 0;
4215}
4216_ACEOF
4217if ac_fn_c_try_compile "$LINENO"; then :
4218  ac_cv_prog_cc_g=yes
4219else
4220  CFLAGS=""
4221      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222/* end confdefs.h.  */
4223
4224int
4225main ()
4226{
4227
4228  ;
4229  return 0;
4230}
4231_ACEOF
4232if ac_fn_c_try_compile "$LINENO"; then :
4233
4234else
4235  ac_c_werror_flag=$ac_save_c_werror_flag
4236	 CFLAGS="-g"
4237	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239
4240int
4241main ()
4242{
4243
4244  ;
4245  return 0;
4246}
4247_ACEOF
4248if ac_fn_c_try_compile "$LINENO"; then :
4249  ac_cv_prog_cc_g=yes
4250fi
4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252fi
4253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254fi
4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256   ac_c_werror_flag=$ac_save_c_werror_flag
4257fi
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4259$as_echo "$ac_cv_prog_cc_g" >&6; }
4260if test "$ac_test_CFLAGS" = set; then
4261  CFLAGS=$ac_save_CFLAGS
4262elif test $ac_cv_prog_cc_g = yes; then
4263  if test "$GCC" = yes; then
4264    CFLAGS="-g -O2"
4265  else
4266    CFLAGS="-g"
4267  fi
4268else
4269  if test "$GCC" = yes; then
4270    CFLAGS="-O2"
4271  else
4272    CFLAGS=
4273  fi
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4276$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4277if ${ac_cv_prog_cc_c89+:} false; then :
4278  $as_echo_n "(cached) " >&6
4279else
4280  ac_cv_prog_cc_c89=no
4281ac_save_CC=$CC
4282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284#include <stdarg.h>
4285#include <stdio.h>
4286struct stat;
4287/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4288struct buf { int x; };
4289FILE * (*rcsopen) (struct buf *, struct stat *, int);
4290static char *e (p, i)
4291     char **p;
4292     int i;
4293{
4294  return p[i];
4295}
4296static char *f (char * (*g) (char **, int), char **p, ...)
4297{
4298  char *s;
4299  va_list v;
4300  va_start (v,p);
4301  s = g (p, va_arg (v,int));
4302  va_end (v);
4303  return s;
4304}
4305
4306/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4307   function prototypes and stuff, but not '\xHH' hex character constants.
4308   These don't provoke an error unfortunately, instead are silently treated
4309   as 'x'.  The following induces an error, until -std is added to get
4310   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4311   array size at least.  It's necessary to write '\x00'==0 to get something
4312   that's true only with -std.  */
4313int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4314
4315/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4316   inside strings and character constants.  */
4317#define FOO(x) 'x'
4318int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4319
4320int test (int i, double x);
4321struct s1 {int (*f) (int a);};
4322struct s2 {int (*f) (double a);};
4323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4324int argc;
4325char **argv;
4326int
4327main ()
4328{
4329return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4330  ;
4331  return 0;
4332}
4333_ACEOF
4334for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4335	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4336do
4337  CC="$ac_save_CC $ac_arg"
4338  if ac_fn_c_try_compile "$LINENO"; then :
4339  ac_cv_prog_cc_c89=$ac_arg
4340fi
4341rm -f core conftest.err conftest.$ac_objext
4342  test "x$ac_cv_prog_cc_c89" != "xno" && break
4343done
4344rm -f conftest.$ac_ext
4345CC=$ac_save_CC
4346
4347fi
4348# AC_CACHE_VAL
4349case "x$ac_cv_prog_cc_c89" in
4350  x)
4351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4352$as_echo "none needed" >&6; } ;;
4353  xno)
4354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4355$as_echo "unsupported" >&6; } ;;
4356  *)
4357    CC="$CC $ac_cv_prog_cc_c89"
4358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4359$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4360esac
4361if test "x$ac_cv_prog_cc_c89" != xno; then :
4362
4363fi
4364
4365ac_ext=c
4366ac_cpp='$CPP $CPPFLAGS'
4367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371if test ! -z "$preset_cflags"
4372then
4373	CFLAGS=$preset_cflags
4374fi
4375
4376
4377
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4379$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4380
4381# Check whether --with-cxx_main was given.
4382if test "${with_cxx_main+set}" = set; then :
4383  withval=$with_cxx_main;
4384
4385	case $withval in
4386	no)	with_cxx_main=no
4387		MAINCC='$(CC)';;
4388	yes)	with_cxx_main=yes
4389		MAINCC='$(CXX)';;
4390	*)	with_cxx_main=yes
4391		MAINCC=$withval
4392		if test -z "$CXX"
4393		then
4394			CXX=$withval
4395		fi;;
4396	esac
4397else
4398
4399	with_cxx_main=no
4400	MAINCC='$(CC)'
4401
4402fi
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4405$as_echo "$with_cxx_main" >&6; }
4406
4407preset_cxx="$CXX"
4408if test -z "$CXX"
4409then
4410        case "$CC" in
4411        gcc)    if test -n "$ac_tool_prefix"; then
4412  # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4413set dummy ${ac_tool_prefix}g++; ac_word=$2
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415$as_echo_n "checking for $ac_word... " >&6; }
4416if ${ac_cv_path_CXX+:} false; then :
4417  $as_echo_n "(cached) " >&6
4418else
4419  case $CXX in
4420  [\\/]* | ?:[\\/]*)
4421  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4422  ;;
4423  *)
4424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in notfound
4426do
4427  IFS=$as_save_IFS
4428  test -z "$as_dir" && as_dir=.
4429    for ac_exec_ext in '' $ac_executable_extensions; do
4430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433    break 2
4434  fi
4435done
4436  done
4437IFS=$as_save_IFS
4438
4439  ;;
4440esac
4441fi
4442CXX=$ac_cv_path_CXX
4443if test -n "$CXX"; then
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4445$as_echo "$CXX" >&6; }
4446else
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
4449fi
4450
4451
4452fi
4453if test -z "$ac_cv_path_CXX"; then
4454  ac_pt_CXX=$CXX
4455  # Extract the first word of "g++", so it can be a program name with args.
4456set dummy g++; ac_word=$2
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458$as_echo_n "checking for $ac_word... " >&6; }
4459if ${ac_cv_path_ac_pt_CXX+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  case $ac_pt_CXX in
4463  [\\/]* | ?:[\\/]*)
4464  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4465  ;;
4466  *)
4467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in notfound
4469do
4470  IFS=$as_save_IFS
4471  test -z "$as_dir" && as_dir=.
4472    for ac_exec_ext in '' $ac_executable_extensions; do
4473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476    break 2
4477  fi
4478done
4479  done
4480IFS=$as_save_IFS
4481
4482  ;;
4483esac
4484fi
4485ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4486if test -n "$ac_pt_CXX"; then
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4488$as_echo "$ac_pt_CXX" >&6; }
4489else
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
4492fi
4493
4494  if test "x$ac_pt_CXX" = x; then
4495    CXX="g++"
4496  else
4497    case $cross_compiling:$ac_tool_warned in
4498yes:)
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501ac_tool_warned=yes ;;
4502esac
4503    CXX=$ac_pt_CXX
4504  fi
4505else
4506  CXX="$ac_cv_path_CXX"
4507fi
4508 ;;
4509        cc)     if test -n "$ac_tool_prefix"; then
4510  # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4511set dummy ${ac_tool_prefix}c++; ac_word=$2
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if ${ac_cv_path_CXX+:} false; then :
4515  $as_echo_n "(cached) " >&6
4516else
4517  case $CXX in
4518  [\\/]* | ?:[\\/]*)
4519  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4520  ;;
4521  *)
4522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in notfound
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_exec_ext in '' $ac_executable_extensions; do
4528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534  done
4535IFS=$as_save_IFS
4536
4537  ;;
4538esac
4539fi
4540CXX=$ac_cv_path_CXX
4541if test -n "$CXX"; then
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4543$as_echo "$CXX" >&6; }
4544else
4545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546$as_echo "no" >&6; }
4547fi
4548
4549
4550fi
4551if test -z "$ac_cv_path_CXX"; then
4552  ac_pt_CXX=$CXX
4553  # Extract the first word of "c++", so it can be a program name with args.
4554set dummy c++; ac_word=$2
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556$as_echo_n "checking for $ac_word... " >&6; }
4557if ${ac_cv_path_ac_pt_CXX+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  case $ac_pt_CXX in
4561  [\\/]* | ?:[\\/]*)
4562  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4563  ;;
4564  *)
4565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in notfound
4567do
4568  IFS=$as_save_IFS
4569  test -z "$as_dir" && as_dir=.
4570    for ac_exec_ext in '' $ac_executable_extensions; do
4571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574    break 2
4575  fi
4576done
4577  done
4578IFS=$as_save_IFS
4579
4580  ;;
4581esac
4582fi
4583ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4584if test -n "$ac_pt_CXX"; then
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4586$as_echo "$ac_pt_CXX" >&6; }
4587else
4588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589$as_echo "no" >&6; }
4590fi
4591
4592  if test "x$ac_pt_CXX" = x; then
4593    CXX="c++"
4594  else
4595    case $cross_compiling:$ac_tool_warned in
4596yes:)
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4599ac_tool_warned=yes ;;
4600esac
4601    CXX=$ac_pt_CXX
4602  fi
4603else
4604  CXX="$ac_cv_path_CXX"
4605fi
4606 ;;
4607        esac
4608	if test "$CXX" = "notfound"
4609	then
4610		CXX=""
4611	fi
4612fi
4613if test -z "$CXX"
4614then
4615	if test -n "$ac_tool_prefix"; then
4616  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4617  do
4618    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621$as_echo_n "checking for $ac_word... " >&6; }
4622if ${ac_cv_prog_CXX+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  if test -n "$CXX"; then
4626  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4627else
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631  IFS=$as_save_IFS
4632  test -z "$as_dir" && as_dir=.
4633    for ac_exec_ext in '' $ac_executable_extensions; do
4634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637    break 2
4638  fi
4639done
4640  done
4641IFS=$as_save_IFS
4642
4643fi
4644fi
4645CXX=$ac_cv_prog_CXX
4646if test -n "$CXX"; then
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4648$as_echo "$CXX" >&6; }
4649else
4650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651$as_echo "no" >&6; }
4652fi
4653
4654
4655    test -n "$CXX" && break
4656  done
4657fi
4658if test -z "$CXX"; then
4659  ac_ct_CXX=$CXX
4660  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4661do
4662  # Extract the first word of "$ac_prog", so it can be a program name with args.
4663set dummy $ac_prog; ac_word=$2
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665$as_echo_n "checking for $ac_word... " >&6; }
4666if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4667  $as_echo_n "(cached) " >&6
4668else
4669  if test -n "$ac_ct_CXX"; then
4670  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4671else
4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675  IFS=$as_save_IFS
4676  test -z "$as_dir" && as_dir=.
4677    for ac_exec_ext in '' $ac_executable_extensions; do
4678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679    ac_cv_prog_ac_ct_CXX="$ac_prog"
4680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681    break 2
4682  fi
4683done
4684  done
4685IFS=$as_save_IFS
4686
4687fi
4688fi
4689ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4690if test -n "$ac_ct_CXX"; then
4691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4692$as_echo "$ac_ct_CXX" >&6; }
4693else
4694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695$as_echo "no" >&6; }
4696fi
4697
4698
4699  test -n "$ac_ct_CXX" && break
4700done
4701
4702  if test "x$ac_ct_CXX" = x; then
4703    CXX="notfound"
4704  else
4705    case $cross_compiling:$ac_tool_warned in
4706yes:)
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4709ac_tool_warned=yes ;;
4710esac
4711    CXX=$ac_ct_CXX
4712  fi
4713fi
4714
4715	if test "$CXX" = "notfound"
4716	then
4717		CXX=""
4718	fi
4719fi
4720if test "$preset_cxx" != "$CXX"
4721then
4722        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4723
4724  By default, distutils will build C++ extension modules with \"$CXX\".
4725  If this is not intended, then set CXX on the configure command line.
4726  " >&5
4727$as_echo "$as_me: WARNING:
4728
4729  By default, distutils will build C++ extension modules with \"$CXX\".
4730  If this is not intended, then set CXX on the configure command line.
4731  " >&2;}
4732fi
4733
4734MULTIARCH=$($CC --print-multiarch 2>/dev/null)
4735
4736
4737
4738# checks for UNIX variants that set C preprocessor variables
4739
4740ac_ext=c
4741ac_cpp='$CPP $CPPFLAGS'
4742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4746$as_echo_n "checking how to run the C preprocessor... " >&6; }
4747# On Suns, sometimes $CPP names a directory.
4748if test -n "$CPP" && test -d "$CPP"; then
4749  CPP=
4750fi
4751if test -z "$CPP"; then
4752  if ${ac_cv_prog_CPP+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755      # Double quotes because CPP needs to be expanded
4756    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4757    do
4758      ac_preproc_ok=false
4759for ac_c_preproc_warn_flag in '' yes
4760do
4761  # Use a header file that comes with gcc, so configuring glibc
4762  # with a fresh cross-compiler works.
4763  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4764  # <limits.h> exists even on freestanding compilers.
4765  # On the NeXT, cc -E runs the code through the compiler's parser,
4766  # not just through cpp. "Syntax error" is here to catch this case.
4767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768/* end confdefs.h.  */
4769#ifdef __STDC__
4770# include <limits.h>
4771#else
4772# include <assert.h>
4773#endif
4774		     Syntax error
4775_ACEOF
4776if ac_fn_c_try_cpp "$LINENO"; then :
4777
4778else
4779  # Broken: fails on valid input.
4780continue
4781fi
4782rm -f conftest.err conftest.i conftest.$ac_ext
4783
4784  # OK, works on sane cases.  Now check whether nonexistent headers
4785  # can be detected and how.
4786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h.  */
4788#include <ac_nonexistent.h>
4789_ACEOF
4790if ac_fn_c_try_cpp "$LINENO"; then :
4791  # Broken: success on invalid input.
4792continue
4793else
4794  # Passes both tests.
4795ac_preproc_ok=:
4796break
4797fi
4798rm -f conftest.err conftest.i conftest.$ac_ext
4799
4800done
4801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4802rm -f conftest.i conftest.err conftest.$ac_ext
4803if $ac_preproc_ok; then :
4804  break
4805fi
4806
4807    done
4808    ac_cv_prog_CPP=$CPP
4809
4810fi
4811  CPP=$ac_cv_prog_CPP
4812else
4813  ac_cv_prog_CPP=$CPP
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4816$as_echo "$CPP" >&6; }
4817ac_preproc_ok=false
4818for ac_c_preproc_warn_flag in '' yes
4819do
4820  # Use a header file that comes with gcc, so configuring glibc
4821  # with a fresh cross-compiler works.
4822  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823  # <limits.h> exists even on freestanding compilers.
4824  # On the NeXT, cc -E runs the code through the compiler's parser,
4825  # not just through cpp. "Syntax error" is here to catch this case.
4826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827/* end confdefs.h.  */
4828#ifdef __STDC__
4829# include <limits.h>
4830#else
4831# include <assert.h>
4832#endif
4833		     Syntax error
4834_ACEOF
4835if ac_fn_c_try_cpp "$LINENO"; then :
4836
4837else
4838  # Broken: fails on valid input.
4839continue
4840fi
4841rm -f conftest.err conftest.i conftest.$ac_ext
4842
4843  # OK, works on sane cases.  Now check whether nonexistent headers
4844  # can be detected and how.
4845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h.  */
4847#include <ac_nonexistent.h>
4848_ACEOF
4849if ac_fn_c_try_cpp "$LINENO"; then :
4850  # Broken: success on invalid input.
4851continue
4852else
4853  # Passes both tests.
4854ac_preproc_ok=:
4855break
4856fi
4857rm -f conftest.err conftest.i conftest.$ac_ext
4858
4859done
4860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4861rm -f conftest.i conftest.err conftest.$ac_ext
4862if $ac_preproc_ok; then :
4863
4864else
4865  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4867as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4868See \`config.log' for more details" "$LINENO" 5; }
4869fi
4870
4871ac_ext=c
4872ac_cpp='$CPP $CPPFLAGS'
4873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4879$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4880if ${ac_cv_path_GREP+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  if test -z "$GREP"; then
4884  ac_path_GREP_found=false
4885  # Loop through the user's path and test for each of PROGNAME-LIST
4886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4888do
4889  IFS=$as_save_IFS
4890  test -z "$as_dir" && as_dir=.
4891    for ac_prog in grep ggrep; do
4892    for ac_exec_ext in '' $ac_executable_extensions; do
4893      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4894      as_fn_executable_p "$ac_path_GREP" || continue
4895# Check for GNU ac_path_GREP and select it if it is found.
4896  # Check for GNU $ac_path_GREP
4897case `"$ac_path_GREP" --version 2>&1` in
4898*GNU*)
4899  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4900*)
4901  ac_count=0
4902  $as_echo_n 0123456789 >"conftest.in"
4903  while :
4904  do
4905    cat "conftest.in" "conftest.in" >"conftest.tmp"
4906    mv "conftest.tmp" "conftest.in"
4907    cp "conftest.in" "conftest.nl"
4908    $as_echo 'GREP' >> "conftest.nl"
4909    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4910    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4911    as_fn_arith $ac_count + 1 && ac_count=$as_val
4912    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4913      # Best one so far, save it but keep looking for a better one
4914      ac_cv_path_GREP="$ac_path_GREP"
4915      ac_path_GREP_max=$ac_count
4916    fi
4917    # 10*(2^10) chars as input seems more than enough
4918    test $ac_count -gt 10 && break
4919  done
4920  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4921esac
4922
4923      $ac_path_GREP_found && break 3
4924    done
4925  done
4926  done
4927IFS=$as_save_IFS
4928  if test -z "$ac_cv_path_GREP"; then
4929    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4930  fi
4931else
4932  ac_cv_path_GREP=$GREP
4933fi
4934
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4937$as_echo "$ac_cv_path_GREP" >&6; }
4938 GREP="$ac_cv_path_GREP"
4939
4940
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4942$as_echo_n "checking for egrep... " >&6; }
4943if ${ac_cv_path_EGREP+:} false; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4947   then ac_cv_path_EGREP="$GREP -E"
4948   else
4949     if test -z "$EGREP"; then
4950  ac_path_EGREP_found=false
4951  # Loop through the user's path and test for each of PROGNAME-LIST
4952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4954do
4955  IFS=$as_save_IFS
4956  test -z "$as_dir" && as_dir=.
4957    for ac_prog in egrep; do
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4960      as_fn_executable_p "$ac_path_EGREP" || continue
4961# Check for GNU ac_path_EGREP and select it if it is found.
4962  # Check for GNU $ac_path_EGREP
4963case `"$ac_path_EGREP" --version 2>&1` in
4964*GNU*)
4965  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4966*)
4967  ac_count=0
4968  $as_echo_n 0123456789 >"conftest.in"
4969  while :
4970  do
4971    cat "conftest.in" "conftest.in" >"conftest.tmp"
4972    mv "conftest.tmp" "conftest.in"
4973    cp "conftest.in" "conftest.nl"
4974    $as_echo 'EGREP' >> "conftest.nl"
4975    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977    as_fn_arith $ac_count + 1 && ac_count=$as_val
4978    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4979      # Best one so far, save it but keep looking for a better one
4980      ac_cv_path_EGREP="$ac_path_EGREP"
4981      ac_path_EGREP_max=$ac_count
4982    fi
4983    # 10*(2^10) chars as input seems more than enough
4984    test $ac_count -gt 10 && break
4985  done
4986  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4987esac
4988
4989      $ac_path_EGREP_found && break 3
4990    done
4991  done
4992  done
4993IFS=$as_save_IFS
4994  if test -z "$ac_cv_path_EGREP"; then
4995    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4996  fi
4997else
4998  ac_cv_path_EGREP=$EGREP
4999fi
5000
5001   fi
5002fi
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5004$as_echo "$ac_cv_path_EGREP" >&6; }
5005 EGREP="$ac_cv_path_EGREP"
5006
5007
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5009$as_echo_n "checking for ANSI C header files... " >&6; }
5010if ${ac_cv_header_stdc+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h.  */
5015#include <stdlib.h>
5016#include <stdarg.h>
5017#include <string.h>
5018#include <float.h>
5019
5020int
5021main ()
5022{
5023
5024  ;
5025  return 0;
5026}
5027_ACEOF
5028if ac_fn_c_try_compile "$LINENO"; then :
5029  ac_cv_header_stdc=yes
5030else
5031  ac_cv_header_stdc=no
5032fi
5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034
5035if test $ac_cv_header_stdc = yes; then
5036  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h.  */
5039#include <string.h>
5040
5041_ACEOF
5042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043  $EGREP "memchr" >/dev/null 2>&1; then :
5044
5045else
5046  ac_cv_header_stdc=no
5047fi
5048rm -f conftest*
5049
5050fi
5051
5052if test $ac_cv_header_stdc = yes; then
5053  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055/* end confdefs.h.  */
5056#include <stdlib.h>
5057
5058_ACEOF
5059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060  $EGREP "free" >/dev/null 2>&1; then :
5061
5062else
5063  ac_cv_header_stdc=no
5064fi
5065rm -f conftest*
5066
5067fi
5068
5069if test $ac_cv_header_stdc = yes; then
5070  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5071  if test "$cross_compiling" = yes; then :
5072  :
5073else
5074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h.  */
5076#include <ctype.h>
5077#include <stdlib.h>
5078#if ((' ' & 0x0FF) == 0x020)
5079# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5080# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5081#else
5082# define ISLOWER(c) \
5083		   (('a' <= (c) && (c) <= 'i') \
5084		     || ('j' <= (c) && (c) <= 'r') \
5085		     || ('s' <= (c) && (c) <= 'z'))
5086# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5087#endif
5088
5089#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5090int
5091main ()
5092{
5093  int i;
5094  for (i = 0; i < 256; i++)
5095    if (XOR (islower (i), ISLOWER (i))
5096	|| toupper (i) != TOUPPER (i))
5097      return 2;
5098  return 0;
5099}
5100_ACEOF
5101if ac_fn_c_try_run "$LINENO"; then :
5102
5103else
5104  ac_cv_header_stdc=no
5105fi
5106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5107  conftest.$ac_objext conftest.beam conftest.$ac_ext
5108fi
5109
5110fi
5111fi
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5113$as_echo "$ac_cv_header_stdc" >&6; }
5114if test $ac_cv_header_stdc = yes; then
5115
5116$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5117
5118fi
5119
5120# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5121for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5122		  inttypes.h stdint.h unistd.h
5123do :
5124  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5125ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5126"
5127if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5128  cat >>confdefs.h <<_ACEOF
5129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5130_ACEOF
5131
5132fi
5133
5134done
5135
5136
5137
5138  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5139if test "x$ac_cv_header_minix_config_h" = xyes; then :
5140  MINIX=yes
5141else
5142  MINIX=
5143fi
5144
5145
5146  if test "$MINIX" = yes; then
5147
5148$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5149
5150
5151$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5152
5153
5154$as_echo "#define _MINIX 1" >>confdefs.h
5155
5156  fi
5157
5158
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5160$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5161if ${ac_cv_safe_to_define___extensions__+:} false; then :
5162  $as_echo_n "(cached) " >&6
5163else
5164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h.  */
5166
5167#         define __EXTENSIONS__ 1
5168          $ac_includes_default
5169int
5170main ()
5171{
5172
5173  ;
5174  return 0;
5175}
5176_ACEOF
5177if ac_fn_c_try_compile "$LINENO"; then :
5178  ac_cv_safe_to_define___extensions__=yes
5179else
5180  ac_cv_safe_to_define___extensions__=no
5181fi
5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5185$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5186  test $ac_cv_safe_to_define___extensions__ = yes &&
5187    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5188
5189  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5190
5191  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5192
5193  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5194
5195  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5196
5197
5198
5199# Check for unsupported systems
5200case $ac_sys_system/$ac_sys_release in
5201atheos*|Linux*/1*)
5202   echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5203   echo See README for details.
5204   exit 1;;
5205esac
5206
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5209$as_echo_n "checking for --with-suffix... " >&6; }
5210
5211# Check whether --with-suffix was given.
5212if test "${with_suffix+set}" = set; then :
5213  withval=$with_suffix;
5214	case $withval in
5215	no)	EXEEXT=;;
5216	yes)	EXEEXT=.exe;;
5217	*)	EXEEXT=$withval;;
5218	esac
5219fi
5220
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5222$as_echo "$EXEEXT" >&6; }
5223
5224# Test whether we're running on a non-case-sensitive system, in which
5225# case we give a warning if no ext is given
5226
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5228$as_echo_n "checking for case-insensitive build directory... " >&6; }
5229if test ! -d CaseSensitiveTestDir; then
5230mkdir CaseSensitiveTestDir
5231fi
5232
5233if test -d casesensitivetestdir
5234then
5235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5236$as_echo "yes" >&6; }
5237    BUILDEXEEXT=.exe
5238else
5239	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240$as_echo "no" >&6; }
5241	BUILDEXEEXT=$EXEEXT
5242fi
5243rmdir CaseSensitiveTestDir
5244
5245case $MACHDEP in
5246bsdos*)
5247    case $CC in
5248    gcc) CC="$CC -D_HAVE_BSDI";;
5249    esac;;
5250esac
5251
5252case $ac_sys_system in
5253hp*|HP*)
5254    case $CC in
5255    cc|*/cc) CC="$CC -Ae";;
5256    esac;;
5257SunOS*)
5258    # Some functions have a prototype only with that define, e.g. confstr
5259
5260$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5261
5262    ;;
5263esac
5264
5265
5266
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5268$as_echo_n "checking LIBRARY... " >&6; }
5269if test -z "$LIBRARY"
5270then
5271	LIBRARY='libpython$(VERSION).a'
5272fi
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5274$as_echo "$LIBRARY" >&6; }
5275
5276# LDLIBRARY is the name of the library to link against (as opposed to the
5277# name of the library into which to insert object files). BLDLIBRARY is also
5278# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5279# is blank as the main program is not linked directly against LDLIBRARY.
5280# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5281# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5282# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5283# DLLLIBRARY is the shared (i.e., DLL) library.
5284#
5285# RUNSHARED is used to run shared python without installed libraries
5286#
5287# INSTSONAME is the name of the shared library that will be use to install
5288# on the system - some systems like version suffix, others don't
5289
5290
5291
5292
5293
5294
5295LDLIBRARY="$LIBRARY"
5296BLDLIBRARY='$(LDLIBRARY)'
5297INSTSONAME='$(LDLIBRARY)'
5298DLLLIBRARY=''
5299LDLIBRARYDIR=''
5300RUNSHARED=''
5301
5302# LINKCC is the command that links the python executable -- default is $(CC).
5303# If CXX is set, and if it is needed to link a main function that was
5304# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5305# python might then depend on the C++ runtime
5306# This is altered for AIX in order to build the export list before
5307# linking.
5308
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5310$as_echo_n "checking LINKCC... " >&6; }
5311if test -z "$LINKCC"
5312then
5313	LINKCC='$(PURIFY) $(MAINCC)'
5314	case $ac_sys_system in
5315	AIX*)
5316	   exp_extra="\"\""
5317	   if test $ac_sys_release -ge 5 -o \
5318		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5319	       exp_extra="."
5320	   fi
5321	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
5322	QNX*)
5323	   # qcc must be used because the other compilers do not
5324	   # support -N.
5325	   LINKCC=qcc;;
5326	esac
5327fi
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5329$as_echo "$LINKCC" >&6; }
5330
5331# GNULD is set to "yes" if the GNU linker is used.  If this goes wrong
5332# make sure we default having it set to "no": this is used by
5333# distutils.unixccompiler to know if it should add --enable-new-dtags
5334# to linker command lines, and failing to detect GNU ld simply results
5335# in the same bahaviour as before.
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5338$as_echo_n "checking for GNU ld... " >&6; }
5339ac_prog=ld
5340if test "$GCC" = yes; then
5341       ac_prog=`$CC -print-prog-name=ld`
5342fi
5343case `"$ac_prog" -V 2>&1 < /dev/null` in
5344      *GNU*)
5345          GNULD=yes;;
5346      *)
5347          GNULD=no;;
5348esac
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5350$as_echo "$GNULD" >&6; }
5351
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5353$as_echo_n "checking for --enable-shared... " >&6; }
5354# Check whether --enable-shared was given.
5355if test "${enable_shared+set}" = set; then :
5356  enableval=$enable_shared;
5357fi
5358
5359
5360if test -z "$enable_shared"
5361then
5362  case $ac_sys_system in
5363  CYGWIN* | atheos*)
5364    enable_shared="yes";;
5365  *)
5366    enable_shared="no";;
5367  esac
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5370$as_echo "$enable_shared" >&6; }
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5373$as_echo_n "checking for --enable-profiling... " >&6; }
5374# Check whether --enable-profiling was given.
5375if test "${enable_profiling+set}" = set; then :
5376  enableval=$enable_profiling;
5377fi
5378
5379if test "x$enable_profiling" = xyes; then
5380  ac_save_cc="$CC"
5381  CC="$CC -pg"
5382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h.  */
5384int main() { return 0; }
5385_ACEOF
5386if ac_fn_c_try_link "$LINENO"; then :
5387
5388else
5389  enable_profiling=no
5390fi
5391rm -f core conftest.err conftest.$ac_objext \
5392    conftest$ac_exeext conftest.$ac_ext
5393  CC="$ac_save_cc"
5394else
5395  enable_profiling=no
5396fi
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5398$as_echo "$enable_profiling" >&6; }
5399
5400if test "x$enable_profiling" = xyes; then
5401  BASECFLAGS="-pg $BASECFLAGS"
5402  LDFLAGS="-pg $LDFLAGS"
5403fi
5404
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5406$as_echo_n "checking LDLIBRARY... " >&6; }
5407
5408# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5409# library that we build, but we do not want to link against it (we
5410# will find it with a -framework option). For this reason there is an
5411# extra variable BLDLIBRARY against which Python and the extension
5412# modules are linked, BLDLIBRARY. This is normally the same as
5413# LDLIBRARY, but empty for MacOSX framework builds.
5414if test "$enable_framework"
5415then
5416  LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
5417  RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
5418  BLDLIBRARY=''
5419else
5420  BLDLIBRARY='$(LDLIBRARY)'
5421fi
5422
5423# Other platforms follow
5424if test $enable_shared = "yes"; then
5425
5426$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
5427
5428  case $ac_sys_system in
5429    BeOS*)
5430          LDLIBRARY='libpython$(VERSION).so'
5431          ;;
5432    CYGWIN*)
5433          LDLIBRARY='libpython$(VERSION).dll.a'
5434          DLLLIBRARY='libpython$(VERSION).dll'
5435          ;;
5436    SunOS*)
5437	  LDLIBRARY='libpython$(VERSION).so'
5438	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
5439	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5440	  INSTSONAME="$LDLIBRARY".$SOVERSION
5441          ;;
5442    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
5443	  LDLIBRARY='libpython$(VERSION).so'
5444	  BLDLIBRARY='-L. -lpython$(VERSION)'
5445	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5446	  case $ac_sys_system in
5447	      FreeBSD*)
5448		SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
5449		;;
5450	  esac
5451	  INSTSONAME="$LDLIBRARY".$SOVERSION
5452	  ;;
5453    hp*|HP*)
5454	  case `uname -m` in
5455		ia64)
5456			LDLIBRARY='libpython$(VERSION).so'
5457			;;
5458		*)
5459			LDLIBRARY='libpython$(VERSION).sl'
5460			;;
5461	  esac
5462	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
5463	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
5464	  ;;
5465    OSF*)
5466	  LDLIBRARY='libpython$(VERSION).so'
5467	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
5468	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5469	  ;;
5470    atheos*)
5471	  LDLIBRARY='libpython$(VERSION).so'
5472	  BLDLIBRARY='-L. -lpython$(VERSION)'
5473	  RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
5474	  ;;
5475    Darwin*)
5476    	LDLIBRARY='libpython$(VERSION).dylib'
5477	BLDLIBRARY='-L. -lpython$(VERSION)'
5478	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
5479	;;
5480    AIX*)
5481	LDLIBRARY='libpython$(VERSION).so'
5482	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
5483	;;
5484
5485  esac
5486else # shared is disabled
5487  case $ac_sys_system in
5488    CYGWIN*)
5489          BLDLIBRARY='$(LIBRARY)'
5490          LDLIBRARY='libpython$(VERSION).dll.a'
5491          ;;
5492  esac
5493fi
5494
5495if test "$cross_compiling" = yes; then
5496	RUNSHARED=
5497fi
5498
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5500$as_echo "$LDLIBRARY" >&6; }
5501
5502if test -n "$ac_tool_prefix"; then
5503  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5504set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506$as_echo_n "checking for $ac_word... " >&6; }
5507if ${ac_cv_prog_RANLIB+:} false; then :
5508  $as_echo_n "(cached) " >&6
5509else
5510  if test -n "$RANLIB"; then
5511  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516  IFS=$as_save_IFS
5517  test -z "$as_dir" && as_dir=.
5518    for ac_exec_ext in '' $ac_executable_extensions; do
5519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522    break 2
5523  fi
5524done
5525  done
5526IFS=$as_save_IFS
5527
5528fi
5529fi
5530RANLIB=$ac_cv_prog_RANLIB
5531if test -n "$RANLIB"; then
5532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5533$as_echo "$RANLIB" >&6; }
5534else
5535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536$as_echo "no" >&6; }
5537fi
5538
5539
5540fi
5541if test -z "$ac_cv_prog_RANLIB"; then
5542  ac_ct_RANLIB=$RANLIB
5543  # Extract the first word of "ranlib", so it can be a program name with args.
5544set dummy ranlib; ac_word=$2
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546$as_echo_n "checking for $ac_word... " >&6; }
5547if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  if test -n "$ac_ct_RANLIB"; then
5551  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556  IFS=$as_save_IFS
5557  test -z "$as_dir" && as_dir=.
5558    for ac_exec_ext in '' $ac_executable_extensions; do
5559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560    ac_cv_prog_ac_ct_RANLIB="ranlib"
5561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562    break 2
5563  fi
5564done
5565  done
5566IFS=$as_save_IFS
5567
5568fi
5569fi
5570ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5571if test -n "$ac_ct_RANLIB"; then
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5573$as_echo "$ac_ct_RANLIB" >&6; }
5574else
5575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576$as_echo "no" >&6; }
5577fi
5578
5579  if test "x$ac_ct_RANLIB" = x; then
5580    RANLIB=":"
5581  else
5582    case $cross_compiling:$ac_tool_warned in
5583yes:)
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586ac_tool_warned=yes ;;
5587esac
5588    RANLIB=$ac_ct_RANLIB
5589  fi
5590else
5591  RANLIB="$ac_cv_prog_RANLIB"
5592fi
5593
5594
5595if test -n "$ac_tool_prefix"; then
5596  for ac_prog in ar aal
5597  do
5598    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5599set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
5602if ${ac_cv_prog_AR+:} false; then :
5603  $as_echo_n "(cached) " >&6
5604else
5605  if test -n "$AR"; then
5606  ac_cv_prog_AR="$AR" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611  IFS=$as_save_IFS
5612  test -z "$as_dir" && as_dir=.
5613    for ac_exec_ext in '' $ac_executable_extensions; do
5614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617    break 2
5618  fi
5619done
5620  done
5621IFS=$as_save_IFS
5622
5623fi
5624fi
5625AR=$ac_cv_prog_AR
5626if test -n "$AR"; then
5627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5628$as_echo "$AR" >&6; }
5629else
5630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
5632fi
5633
5634
5635    test -n "$AR" && break
5636  done
5637fi
5638if test -z "$AR"; then
5639  ac_ct_AR=$AR
5640  for ac_prog in ar aal
5641do
5642  # Extract the first word of "$ac_prog", so it can be a program name with args.
5643set dummy $ac_prog; ac_word=$2
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
5646if ${ac_cv_prog_ac_ct_AR+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  if test -n "$ac_ct_AR"; then
5650  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655  IFS=$as_save_IFS
5656  test -z "$as_dir" && as_dir=.
5657    for ac_exec_ext in '' $ac_executable_extensions; do
5658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659    ac_cv_prog_ac_ct_AR="$ac_prog"
5660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661    break 2
5662  fi
5663done
5664  done
5665IFS=$as_save_IFS
5666
5667fi
5668fi
5669ac_ct_AR=$ac_cv_prog_ac_ct_AR
5670if test -n "$ac_ct_AR"; then
5671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5672$as_echo "$ac_ct_AR" >&6; }
5673else
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678
5679  test -n "$ac_ct_AR" && break
5680done
5681
5682  if test "x$ac_ct_AR" = x; then
5683    AR="ar"
5684  else
5685    case $cross_compiling:$ac_tool_warned in
5686yes:)
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5689ac_tool_warned=yes ;;
5690esac
5691    AR=$ac_ct_AR
5692  fi
5693fi
5694
5695
5696# tweak ARFLAGS only if the user didn't set it on the command line
5697
5698if test -z "$ARFLAGS"
5699then
5700        ARFLAGS="rc"
5701fi
5702
5703
5704# Extract the first word of "svnversion", so it can be a program name with args.
5705set dummy svnversion; ac_word=$2
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707$as_echo_n "checking for $ac_word... " >&6; }
5708if ${ac_cv_prog_SVNVERSION+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  if test -n "$SVNVERSION"; then
5712  ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
5713else
5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH
5716do
5717  IFS=$as_save_IFS
5718  test -z "$as_dir" && as_dir=.
5719    for ac_exec_ext in '' $ac_executable_extensions; do
5720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721    ac_cv_prog_SVNVERSION="found"
5722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723    break 2
5724  fi
5725done
5726  done
5727IFS=$as_save_IFS
5728
5729  test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
5730fi
5731fi
5732SVNVERSION=$ac_cv_prog_SVNVERSION
5733if test -n "$SVNVERSION"; then
5734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
5735$as_echo "$SVNVERSION" >&6; }
5736else
5737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739fi
5740
5741
5742if test $SVNVERSION = found
5743then
5744	SVNVERSION="svnversion \$(srcdir)"
5745else
5746	SVNVERSION="echo Unversioned directory"
5747fi
5748
5749
5750
5751
5752# Extract the first word of "hg", so it can be a program name with args.
5753set dummy hg; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
5756if ${ac_cv_prog_HAS_HG+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  if test -n "$HAS_HG"; then
5760  ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  test -z "$as_dir" && as_dir=.
5767    for ac_exec_ext in '' $ac_executable_extensions; do
5768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769    ac_cv_prog_HAS_HG="found"
5770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774  done
5775IFS=$as_save_IFS
5776
5777  test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found"
5778fi
5779fi
5780HAS_HG=$ac_cv_prog_HAS_HG
5781if test -n "$HAS_HG"; then
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5
5783$as_echo "$HAS_HG" >&6; }
5784else
5785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786$as_echo "no" >&6; }
5787fi
5788
5789
5790if test $HAS_HG = found
5791then
5792    HGVERSION="hg id -i \$(srcdir)"
5793    HGTAG="hg id -t \$(srcdir)"
5794    HGBRANCH="hg id -b \$(srcdir)"
5795else
5796    HGVERSION=""
5797    HGTAG=""
5798    HGBRANCH=""
5799fi
5800
5801case $MACHDEP in
5802bsdos*|hp*|HP*)
5803	# install -d does not work on BSDI or HP-UX
5804	if test -z "$INSTALL"
5805	then
5806		INSTALL="${srcdir}/install-sh -c"
5807	fi
5808esac
5809# Find a good install program.  We prefer a C program (faster),
5810# so one script is as good as another.  But avoid the broken or
5811# incompatible versions:
5812# SysV /etc/install, /usr/sbin/install
5813# SunOS /usr/etc/install
5814# IRIX /sbin/install
5815# AIX /bin/install
5816# AmigaOS /C/install, which installs bootblocks on floppy discs
5817# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5818# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5819# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5820# OS/2's system install, which has a completely different semantic
5821# ./install, which can be erroneously created by make from ./install.sh.
5822# Reject install programs that cannot install multiple files.
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5824$as_echo_n "checking for a BSD-compatible install... " >&6; }
5825if test -z "$INSTALL"; then
5826if ${ac_cv_path_install+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834    # Account for people who put trailing slashes in PATH elements.
5835case $as_dir/ in #((
5836  ./ | .// | /[cC]/* | \
5837  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5838  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5839  /usr/ucb/* ) ;;
5840  *)
5841    # OSF1 and SCO ODT 3.0 have their own names for install.
5842    # Don't use installbsd from OSF since it installs stuff as root
5843    # by default.
5844    for ac_prog in ginstall scoinst install; do
5845      for ac_exec_ext in '' $ac_executable_extensions; do
5846	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5847	  if test $ac_prog = install &&
5848	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5849	    # AIX install.  It has an incompatible calling convention.
5850	    :
5851	  elif test $ac_prog = install &&
5852	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5853	    # program-specific install script used by HP pwplus--don't use.
5854	    :
5855	  else
5856	    rm -rf conftest.one conftest.two conftest.dir
5857	    echo one > conftest.one
5858	    echo two > conftest.two
5859	    mkdir conftest.dir
5860	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5861	      test -s conftest.one && test -s conftest.two &&
5862	      test -s conftest.dir/conftest.one &&
5863	      test -s conftest.dir/conftest.two
5864	    then
5865	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5866	      break 3
5867	    fi
5868	  fi
5869	fi
5870      done
5871    done
5872    ;;
5873esac
5874
5875  done
5876IFS=$as_save_IFS
5877
5878rm -rf conftest.one conftest.two conftest.dir
5879
5880fi
5881  if test "${ac_cv_path_install+set}" = set; then
5882    INSTALL=$ac_cv_path_install
5883  else
5884    # As a last resort, use the slow shell script.  Don't cache a
5885    # value for INSTALL within a source directory, because that will
5886    # break other packages using the cache if that directory is
5887    # removed, or if the value is a relative name.
5888    INSTALL=$ac_install_sh
5889  fi
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5892$as_echo "$INSTALL" >&6; }
5893
5894# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5895# It thinks the first close brace ends the variable substitution.
5896test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5897
5898test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5899
5900test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5901
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5903$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5904if test -z "$MKDIR_P"; then
5905  if ${ac_cv_path_mkdir+:} false; then :
5906  $as_echo_n "(cached) " >&6
5907else
5908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5910do
5911  IFS=$as_save_IFS
5912  test -z "$as_dir" && as_dir=.
5913    for ac_prog in mkdir gmkdir; do
5914	 for ac_exec_ext in '' $ac_executable_extensions; do
5915	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5916	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5917	     'mkdir (GNU coreutils) '* | \
5918	     'mkdir (coreutils) '* | \
5919	     'mkdir (fileutils) '4.1*)
5920	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5921	       break 3;;
5922	   esac
5923	 done
5924       done
5925  done
5926IFS=$as_save_IFS
5927
5928fi
5929
5930  test -d ./--version && rmdir ./--version
5931  if test "${ac_cv_path_mkdir+set}" = set; then
5932    MKDIR_P="$ac_cv_path_mkdir -p"
5933  else
5934    # As a last resort, use the slow shell script.  Don't cache a
5935    # value for MKDIR_P within a source directory, because that will
5936    # break other packages using the cache if that directory is
5937    # removed, or if the value is a relative name.
5938    MKDIR_P="$ac_install_sh -d"
5939  fi
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5942$as_echo "$MKDIR_P" >&6; }
5943
5944
5945# Not every filesystem supports hard links
5946
5947if test -z "$LN" ; then
5948	case $ac_sys_system in
5949		BeOS*) LN="ln -s";;
5950		CYGWIN*) LN="ln -s";;
5951		atheos*) LN="ln -s";;
5952		*) LN=ln;;
5953	esac
5954fi
5955
5956# Check for --with-pydebug
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
5958$as_echo_n "checking for --with-pydebug... " >&6; }
5959
5960# Check whether --with-pydebug was given.
5961if test "${with_pydebug+set}" = set; then :
5962  withval=$with_pydebug;
5963if test "$withval" != no
5964then
5965
5966$as_echo "#define Py_DEBUG 1" >>confdefs.h
5967
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5969$as_echo "yes" >&6; };
5970  Py_DEBUG='true'
5971else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972$as_echo "no" >&6; }; Py_DEBUG='false'
5973fi
5974else
5975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976$as_echo "no" >&6; }
5977fi
5978
5979
5980# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5981# merged with this chunk of code?
5982
5983# Optimizer/debugger flags
5984# ------------------------
5985# (The following bit of code is complicated enough - please keep things
5986# indented properly.  Just pretend you're editing Python code. ;-)
5987
5988# There are two parallel sets of case statements below, one that checks to
5989# see if OPT was set and one that does BASECFLAGS setting based upon
5990# compiler and platform.  BASECFLAGS tweaks need to be made even if the
5991# user set OPT.
5992
5993# tweak OPT based on compiler and platform, only if the user didn't set
5994# it on the command line
5995
5996if test "${OPT-unset}" = "unset"
5997then
5998    case $GCC in
5999    yes)
6000        if test "$CC" != 'g++' ; then
6001	    STRICT_PROTO="-Wstrict-prototypes"
6002	fi
6003        # For gcc 4.x we need to use -fwrapv so lets check if its supported
6004        if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6005           WRAP="-fwrapv"
6006        fi
6007
6008        # Clang also needs -fwrapv
6009        case $CC in
6010            *clang*) WRAP="-fwrapv"
6011            ;;
6012        esac
6013
6014	case $ac_cv_prog_cc_g in
6015	yes)
6016	    if test "$Py_DEBUG" = 'true' ; then
6017		# Optimization messes up debuggers, so turn it off for
6018		# debug builds.
6019		OPT="-g -O0 -Wall $STRICT_PROTO"
6020	    else
6021		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
6022	    fi
6023	    ;;
6024	*)
6025	    OPT="-O3 -Wall $STRICT_PROTO"
6026	    ;;
6027	esac
6028	case $ac_sys_system in
6029	    SCO_SV*) OPT="$OPT -m486 -DSCO5"
6030	    ;;
6031        esac
6032	;;
6033
6034    *)
6035	OPT="-O"
6036	;;
6037    esac
6038fi
6039
6040
6041
6042# The -arch flags for universal builds on OSX
6043UNIVERSAL_ARCH_FLAGS=
6044
6045
6046# tweak BASECFLAGS based on compiler and platform
6047case $GCC in
6048yes)
6049    # Python violates C99 rules, by casting between incompatible
6050    # pointer types. GCC may generate bad code as a result of that,
6051    # so use -fno-strict-aliasing if supported.
6052    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
6053$as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
6054     ac_save_cc="$CC"
6055     CC="$CC -fno-strict-aliasing"
6056     if ${ac_cv_no_strict_aliasing_ok+:} false; then :
6057  $as_echo_n "(cached) " >&6
6058else
6059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h.  */
6061
6062int
6063main ()
6064{
6065
6066  ;
6067  return 0;
6068}
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071  ac_cv_no_strict_aliasing_ok=yes
6072else
6073  ac_cv_no_strict_aliasing_ok=no
6074fi
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076fi
6077
6078     CC="$ac_save_cc"
6079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
6080$as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
6081    if test $ac_cv_no_strict_aliasing_ok = yes
6082    then
6083      BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
6084    fi
6085
6086    # if using gcc on alpha, use -mieee to get (near) full IEEE 754
6087    # support.  Without this, treatment of subnormals doesn't follow
6088    # the standard.
6089    case $host in
6090         alpha*)
6091                BASECFLAGS="$BASECFLAGS -mieee"
6092                ;;
6093    esac
6094
6095    case $ac_sys_system in
6096	SCO_SV*)
6097	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
6098	    ;;
6099	# is there any other compiler on Darwin besides gcc?
6100	Darwin*)
6101	    # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
6102	    # used to be here, but non-Apple gcc doesn't accept them.
6103	    if test "${CC}" = gcc
6104	    then
6105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
6106$as_echo_n "checking which compiler should be used... " >&6; }
6107		case "${UNIVERSALSDK}" in
6108		*/MacOSX10.4u.sdk)
6109			# Build using 10.4 SDK, force usage of gcc when the
6110			# compiler is gcc, otherwise the user will get very
6111			# confusing error messages when building on OSX 10.6
6112			CC=gcc-4.0
6113			CPP=cpp-4.0
6114			;;
6115		esac
6116		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6117$as_echo "$CC" >&6; }
6118	    fi
6119
6120	    # Calculate the right deployment target for this build.
6121	    #
6122		cur_target_major=`sw_vers -productVersion | \
6123				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
6124		cur_target_minor=`sw_vers -productVersion | \
6125				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
6126		cur_target="${cur_target_major}.${cur_target_minor}"
6127		if test ${cur_target_major} -eq 10 && \
6128		   test ${cur_target_minor} -ge 3
6129		then
6130		    cur_target=10.3
6131		    if test ${enable_universalsdk}; then
6132			    if test "${UNIVERSAL_ARCHS}" = "all"; then
6133				    # Ensure that the default platform for a
6134				    # 4-way universal build is OSX 10.5,
6135				    # that's the first OS release where
6136				    # 4-way builds make sense.
6137				    cur_target='10.5'
6138
6139			    elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
6140				    cur_target='10.5'
6141
6142			    elif test "${UNIVERSAL_ARCHS}" = "intel"; then
6143				    cur_target='10.5'
6144
6145			    elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
6146				    cur_target='10.5'
6147			    fi
6148		    else
6149			    if test `/usr/bin/arch` = "i386"; then
6150				    # On Intel macs default to a deployment
6151				    # target of 10.4, that's the first OSX
6152				    # release with Intel support.
6153				    cur_target="10.4"
6154			    fi
6155		    fi
6156	    fi
6157	    CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
6158
6159	    # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
6160	    # environment with a value that is the same as what we'll use
6161	    # in the Makefile to ensure that we'll get the same compiler
6162	    # environment during configure and build time.
6163	    MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
6164	    export MACOSX_DEPLOYMENT_TARGET
6165	    EXPORT_MACOSX_DEPLOYMENT_TARGET=''
6166
6167	    if test "${enable_universalsdk}"; then
6168		UNIVERSAL_ARCH_FLAGS=""
6169	        if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
6170		   UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
6171		   ARCH_RUN_32BIT=""
6172		   LIPO_32BIT_FLAGS=""
6173
6174	         elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
6175		   UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
6176		   LIPO_32BIT_FLAGS=""
6177		   ARCH_RUN_32BIT="true"
6178
6179	         elif test "$UNIVERSAL_ARCHS" = "all" ; then
6180		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
6181		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6182		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6183
6184	         elif test "$UNIVERSAL_ARCHS" = "intel" ; then
6185		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
6186		   LIPO_32BIT_FLAGS="-extract i386"
6187		   ARCH_RUN_32BIT="/usr/bin/arch -i386"
6188
6189	         elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
6190		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
6191		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6192		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6193
6194		 else
6195	           as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
6196
6197		 fi
6198
6199
6200		CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
6201		if test "${UNIVERSALSDK}" != "/"
6202		then
6203			CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
6204			LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
6205			CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
6206		fi
6207
6208	    fi
6209
6210
6211	    ;;
6212	OSF*)
6213	    BASECFLAGS="$BASECFLAGS -mieee"
6214	    ;;
6215    esac
6216    ;;
6217
6218*)
6219    case $ac_sys_system in
6220    OpenUNIX*|UnixWare*)
6221	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
6222	;;
6223    OSF*)
6224	BASECFLAGS="$BASECFLAGS -ieee -std"
6225    	;;
6226    SCO_SV*)
6227	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
6228	;;
6229    esac
6230    ;;
6231esac
6232
6233# ICC needs -fp-model strict or floats behave badly
6234case "$CC" in
6235*icc*)
6236    BASECFLAGS="$BASECFLAGS -fp-model strict"
6237    ;;
6238esac
6239
6240if test "$Py_DEBUG" = 'true'; then
6241  :
6242else
6243  OPT="-DNDEBUG $OPT"
6244fi
6245
6246if test "$ac_arch_flags"
6247then
6248	BASECFLAGS="$BASECFLAGS $ac_arch_flags"
6249fi
6250
6251# disable check for icc since it seems to pass, but generates a warning
6252if test "$CC" = icc
6253then
6254  ac_cv_opt_olimit_ok=no
6255fi
6256
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
6258$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
6259if ${ac_cv_opt_olimit_ok+:} false; then :
6260  $as_echo_n "(cached) " >&6
6261else
6262  ac_save_cc="$CC"
6263CC="$CC -OPT:Olimit=0"
6264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h.  */
6266
6267int
6268main ()
6269{
6270
6271  ;
6272  return 0;
6273}
6274_ACEOF
6275if ac_fn_c_try_compile "$LINENO"; then :
6276  ac_cv_opt_olimit_ok=yes
6277else
6278  ac_cv_opt_olimit_ok=no
6279
6280fi
6281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282CC="$ac_save_cc"
6283fi
6284
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
6286$as_echo "$ac_cv_opt_olimit_ok" >&6; }
6287if test $ac_cv_opt_olimit_ok = yes; then
6288    case $ac_sys_system in
6289	# XXX is this branch needed? On MacOSX 10.2.2 the result of the
6290	# olimit_ok test is "no".  Is it "yes" in some other Darwin-esque
6291	# environment?
6292        Darwin*)
6293	    ;;
6294        # XXX thankfully this useless troublemaker of a flag has been
6295        # eradicated in the 3.x line.  For now, make sure it isn't picked
6296        # up by any of our other platforms that use CC.
6297        AIX*|SunOS*|HP-UX*|IRIX*)
6298            ;;
6299        *)
6300	    BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
6301	    ;;
6302    esac
6303else
6304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
6305$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
6306  if ${ac_cv_olimit_ok+:} false; then :
6307  $as_echo_n "(cached) " >&6
6308else
6309  ac_save_cc="$CC"
6310  CC="$CC -Olimit 1500"
6311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312/* end confdefs.h.  */
6313
6314int
6315main ()
6316{
6317
6318  ;
6319  return 0;
6320}
6321_ACEOF
6322if ac_fn_c_try_compile "$LINENO"; then :
6323  ac_cv_olimit_ok=yes
6324else
6325  ac_cv_olimit_ok=no
6326
6327fi
6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329  CC="$ac_save_cc"
6330fi
6331
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
6333$as_echo "$ac_cv_olimit_ok" >&6; }
6334  if test $ac_cv_olimit_ok = yes; then
6335    case $ac_sys_system in
6336        # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive.
6337        HP-UX*)
6338            ;;
6339        *)
6340            BASECFLAGS="$BASECFLAGS -Olimit 1500"
6341            ;;
6342    esac
6343  fi
6344fi
6345
6346# Check whether GCC supports PyArg_ParseTuple format
6347if test "$GCC" = "yes"
6348then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
6350$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
6351  save_CFLAGS=$CFLAGS
6352  CFLAGS="$CFLAGS -Werror -Wformat"
6353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h.  */
6355
6356    void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
6357int
6358main ()
6359{
6360
6361  ;
6362  return 0;
6363}
6364
6365_ACEOF
6366if ac_fn_c_try_compile "$LINENO"; then :
6367
6368
6369$as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h
6370
6371    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6372$as_echo "yes" >&6; }
6373
6374else
6375
6376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6378
6379fi
6380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381  CFLAGS=$save_CFLAGS
6382fi
6383
6384
6385# Enable optimization flags
6386
6387
6388Py_OPT='false'
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6390$as_echo_n "checking for --enable-optimizations... " >&6; }
6391# Check whether --enable-optimizations was given.
6392if test "${enable_optimizations+set}" = set; then :
6393  enableval=$enable_optimizations;
6394if test "$withval" != no
6395then
6396  Py_OPT='true'
6397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6398$as_echo "yes" >&6; };
6399else
6400  Py_OPT='false'
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; };
6403fi
6404else
6405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406$as_echo "no" >&6; }
6407fi
6408
6409if test "$Py_OPT" = 'true' ; then
6410  # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not
6411  # compile working code using it and both test_distutils and test_gdb are
6412  # broken when you do managed to get a toolchain that works with it.  People
6413  # who want LTO need to use --with-lto themselves.
6414  Py_LTO='true'
6415  DEF_MAKE_ALL_RULE="profile-opt"
6416  REQUIRE_PGO="yes"
6417  DEF_MAKE_RULE="build_all"
6418else
6419  DEF_MAKE_ALL_RULE="build_all"
6420  REQUIRE_PGO="no"
6421  DEF_MAKE_RULE="all"
6422fi
6423
6424
6425# Enable LTO flags
6426
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6428$as_echo_n "checking for --with-lto... " >&6; }
6429
6430# Check whether --with-lto was given.
6431if test "${with_lto+set}" = set; then :
6432  withval=$with_lto;
6433if test "$withval" != no
6434then
6435  Py_LTO='true'
6436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6437$as_echo "yes" >&6; };
6438else
6439  Py_LTO='false'
6440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441$as_echo "no" >&6; };
6442fi
6443else
6444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448if test "$Py_LTO" = 'true' ; then
6449  case $CC in
6450    *clang*)
6451      # Any changes made here should be reflected in the GCC+Darwin case below
6452      LTOFLAGS="-flto"
6453      ;;
6454    *gcc*)
6455      case $ac_sys_system in
6456        Darwin*)
6457          LTOFLAGS="-flto"
6458          ;;
6459        *)
6460          LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6461          ;;
6462      esac
6463      ;;
6464  esac
6465fi
6466
6467
6468# Enable PGO flags.
6469
6470
6471
6472
6473
6474# Make this work on systems where llvm tools are not installed with their
6475# normal names in the default $PATH (ie: Ubuntu).  They exist under the
6476# non-suffixed name in their versioned llvm directory.
6477llvm_bin_dir=''
6478llvm_path="${PATH}"
6479if test "${CC}" = "clang"
6480then
6481  clang_bin=`which clang`
6482  # Some systems install clang elsewhere as a symlink to the real path
6483  # which is where the related llvm tools are located.
6484  if test -L "${clang_bin}"
6485  then
6486    clang_dir=`dirname "${clang_bin}"`
6487    clang_bin=`readlink "${clang_bin}"`
6488    llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6489    llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6490  fi
6491fi
6492
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6494$as_echo_n "checking target system type... " >&6; }
6495if ${ac_cv_target+:} false; then :
6496  $as_echo_n "(cached) " >&6
6497else
6498  if test "x$target_alias" = x; then
6499  ac_cv_target=$ac_cv_host
6500else
6501  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6502    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6503fi
6504
6505fi
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6507$as_echo "$ac_cv_target" >&6; }
6508case $ac_cv_target in
6509*-*-*) ;;
6510*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6511esac
6512target=$ac_cv_target
6513ac_save_IFS=$IFS; IFS='-'
6514set x $ac_cv_target
6515shift
6516target_cpu=$1
6517target_vendor=$2
6518shift; shift
6519# Remember, the first character of IFS is used to create $*,
6520# except with old shells:
6521target_os=$*
6522IFS=$ac_save_IFS
6523case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6524
6525
6526# The aliases save the names the user supplied, while $host etc.
6527# will get canonicalized.
6528test -n "$target_alias" &&
6529  test "$program_prefix$program_suffix$program_transform_name" = \
6530    NONENONEs,x,x, &&
6531  program_prefix=${target_alias}-
6532# Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args.
6533set dummy $target_alias-llvm-profdata; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
6536if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  case $LLVM_PROFDATA in
6540  [\\/]* | ?:[\\/]*)
6541  ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6542  ;;
6543  *)
6544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in ${llvm_path}
6546do
6547  IFS=$as_save_IFS
6548  test -z "$as_dir" && as_dir=.
6549    for ac_exec_ext in '' $ac_executable_extensions; do
6550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551    ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553    break 2
6554  fi
6555done
6556  done
6557IFS=$as_save_IFS
6558
6559  ;;
6560esac
6561fi
6562LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6563if test -n "$LLVM_PROFDATA"; then
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6565$as_echo "$LLVM_PROFDATA" >&6; }
6566else
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568$as_echo "no" >&6; }
6569fi
6570
6571
6572if test -z "$ac_cv_path_LLVM_PROFDATA"; then
6573  if test "$build" = "$target"; then
6574    ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6575    # Extract the first word of "llvm-profdata", so it can be a program name with args.
6576set dummy llvm-profdata; ac_word=$2
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578$as_echo_n "checking for $ac_word... " >&6; }
6579if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6580  $as_echo_n "(cached) " >&6
6581else
6582  case $ac_pt_LLVM_PROFDATA in
6583  [\\/]* | ?:[\\/]*)
6584  ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6585  ;;
6586  *)
6587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in ${llvm_path}
6589do
6590  IFS=$as_save_IFS
6591  test -z "$as_dir" && as_dir=.
6592    for ac_exec_ext in '' $ac_executable_extensions; do
6593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6594    ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596    break 2
6597  fi
6598done
6599  done
6600IFS=$as_save_IFS
6601
6602  test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''"
6603  ;;
6604esac
6605fi
6606ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6607if test -n "$ac_pt_LLVM_PROFDATA"; then
6608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6609$as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6610else
6611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612$as_echo "no" >&6; }
6613fi
6614
6615    LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6616  else
6617    LLVM_PROFDATA="''"
6618  fi
6619else
6620  LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6621fi
6622
6623
6624if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6625then
6626  LLVM_PROF_FOUND="found"
6627else
6628  LLVM_PROF_FOUND="not-found"
6629fi
6630if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6631then
6632  found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6633  if test -n "${found_llvm_profdata}"
6634  then
6635    # llvm-profdata isn't directly in $PATH in some cases.
6636    # https://apple.stackexchange.com/questions/197053/
6637    LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6638    LLVM_PROF_FOUND=found
6639    { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6640$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6641  fi
6642fi
6643LLVM_PROF_ERR=no
6644case $CC in
6645  *clang*)
6646    # Any changes made here should be reflected in the GCC+Darwin case below
6647    PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6648    PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6649    LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6650    LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6651    if test $LLVM_PROF_FOUND = not-found
6652    then
6653      LLVM_PROF_ERR=yes
6654      if test "${REQUIRE_PGO}" = "yes"
6655      then
6656        as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6657      fi
6658    fi
6659    ;;
6660  *gcc*)
6661    case $ac_sys_system in
6662      Darwin*)
6663        PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6664        PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6665        LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6666        LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6667        if test "${LLVM_PROF_FOUND}" = "not-found"
6668        then
6669          LLVM_PROF_ERR=yes
6670          if test "${REQUIRE_PGO}" = "yes"
6671	  then
6672	    as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6673	  fi
6674        fi
6675        ;;
6676      *)
6677        PGO_PROF_GEN_FLAG="-fprofile-generate"
6678        PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6679        LLVM_PROF_MERGER="true"
6680        LLVM_PROF_FILE=""
6681        ;;
6682    esac
6683    ;;
6684  *icc*)
6685    PGO_PROF_GEN_FLAG="-prof-gen"
6686    PGO_PROF_USE_FLAG="-prof-use"
6687    LLVM_PROF_MERGER="true"
6688    LLVM_PROF_FILE=""
6689    ;;
6690esac
6691
6692
6693# On some compilers, pthreads are available without further options
6694# (e.g. MacOS X). On some of these systems, the compiler will not
6695# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
6696# So we have to see first whether pthreads are available without
6697# options before we can check whether -Kpthread improves anything.
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
6699$as_echo_n "checking whether pthreads are available without options... " >&6; }
6700if ${ac_cv_pthread_is_default+:} false; then :
6701  $as_echo_n "(cached) " >&6
6702else
6703  if test "$cross_compiling" = yes; then :
6704  ac_cv_pthread_is_default=no
6705else
6706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h.  */
6708
6709#include <stdio.h>
6710#include <pthread.h>
6711
6712void* routine(void* p){return NULL;}
6713
6714int main(){
6715  pthread_t p;
6716  if(pthread_create(&p,NULL,routine,NULL)!=0)
6717    return 1;
6718  (void)pthread_detach(p);
6719  return 0;
6720}
6721
6722_ACEOF
6723if ac_fn_c_try_run "$LINENO"; then :
6724
6725  ac_cv_pthread_is_default=yes
6726  ac_cv_kthread=no
6727  ac_cv_pthread=no
6728
6729else
6730  ac_cv_pthread_is_default=no
6731fi
6732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6733  conftest.$ac_objext conftest.beam conftest.$ac_ext
6734fi
6735
6736
6737fi
6738
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
6740$as_echo "$ac_cv_pthread_is_default" >&6; }
6741
6742
6743if test $ac_cv_pthread_is_default = yes
6744then
6745  ac_cv_kpthread=no
6746else
6747# -Kpthread, if available, provides the right #defines
6748# and linker options to make pthread_create available
6749# Some compilers won't report that they do not support -Kpthread,
6750# so we need to run a program to see whether it really made the
6751# function available.
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
6753$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
6754if ${ac_cv_kpthread+:} false; then :
6755  $as_echo_n "(cached) " >&6
6756else
6757  ac_save_cc="$CC"
6758CC="$CC -Kpthread"
6759if test "$cross_compiling" = yes; then :
6760  ac_cv_kpthread=no
6761else
6762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h.  */
6764
6765#include <stdio.h>
6766#include <pthread.h>
6767
6768void* routine(void* p){return NULL;}
6769
6770int main(){
6771  pthread_t p;
6772  if(pthread_create(&p,NULL,routine,NULL)!=0)
6773    return 1;
6774  (void)pthread_detach(p);
6775  return 0;
6776}
6777
6778_ACEOF
6779if ac_fn_c_try_run "$LINENO"; then :
6780  ac_cv_kpthread=yes
6781else
6782  ac_cv_kpthread=no
6783fi
6784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6785  conftest.$ac_objext conftest.beam conftest.$ac_ext
6786fi
6787
6788CC="$ac_save_cc"
6789fi
6790
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
6792$as_echo "$ac_cv_kpthread" >&6; }
6793fi
6794
6795if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
6796then
6797# -Kthread, if available, provides the right #defines
6798# and linker options to make pthread_create available
6799# Some compilers won't report that they do not support -Kthread,
6800# so we need to run a program to see whether it really made the
6801# function available.
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
6803$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
6804if ${ac_cv_kthread+:} false; then :
6805  $as_echo_n "(cached) " >&6
6806else
6807  ac_save_cc="$CC"
6808CC="$CC -Kthread"
6809if test "$cross_compiling" = yes; then :
6810  ac_cv_kthread=no
6811else
6812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813/* end confdefs.h.  */
6814
6815#include <stdio.h>
6816#include <pthread.h>
6817
6818void* routine(void* p){return NULL;}
6819
6820int main(){
6821  pthread_t p;
6822  if(pthread_create(&p,NULL,routine,NULL)!=0)
6823    return 1;
6824  (void)pthread_detach(p);
6825  return 0;
6826}
6827
6828_ACEOF
6829if ac_fn_c_try_run "$LINENO"; then :
6830  ac_cv_kthread=yes
6831else
6832  ac_cv_kthread=no
6833fi
6834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6835  conftest.$ac_objext conftest.beam conftest.$ac_ext
6836fi
6837
6838CC="$ac_save_cc"
6839fi
6840
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
6842$as_echo "$ac_cv_kthread" >&6; }
6843fi
6844
6845if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
6846then
6847# -pthread, if available, provides the right #defines
6848# and linker options to make pthread_create available
6849# Some compilers won't report that they do not support -pthread,
6850# so we need to run a program to see whether it really made the
6851# function available.
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
6853$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
6854if ${ac_cv_pthread+:} false; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857  ac_save_cc="$CC"
6858CC="$CC -pthread"
6859if test "$cross_compiling" = yes; then :
6860  ac_cv_pthread=no
6861else
6862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h.  */
6864
6865#include <stdio.h>
6866#include <pthread.h>
6867
6868void* routine(void* p){return NULL;}
6869
6870int main(){
6871  pthread_t p;
6872  if(pthread_create(&p,NULL,routine,NULL)!=0)
6873    return 1;
6874  (void)pthread_detach(p);
6875  return 0;
6876}
6877
6878_ACEOF
6879if ac_fn_c_try_run "$LINENO"; then :
6880  ac_cv_pthread=yes
6881else
6882  ac_cv_pthread=no
6883fi
6884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6885  conftest.$ac_objext conftest.beam conftest.$ac_ext
6886fi
6887
6888CC="$ac_save_cc"
6889fi
6890
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
6892$as_echo "$ac_cv_pthread" >&6; }
6893fi
6894
6895# If we have set a CC compiler flag for thread support then
6896# check if it works for CXX, too.
6897ac_cv_cxx_thread=no
6898if test ! -z "$CXX"
6899then
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
6901$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
6902ac_save_cxx="$CXX"
6903
6904if test "$ac_cv_kpthread" = "yes"
6905then
6906  CXX="$CXX -Kpthread"
6907  ac_cv_cxx_thread=yes
6908elif test "$ac_cv_kthread" = "yes"
6909then
6910  CXX="$CXX -Kthread"
6911  ac_cv_cxx_thread=yes
6912elif test "$ac_cv_pthread" = "yes"
6913then
6914  CXX="$CXX -pthread"
6915  ac_cv_cxx_thread=yes
6916fi
6917
6918if test $ac_cv_cxx_thread = yes
6919then
6920  echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
6921  $CXX -c conftest.$ac_ext 2>&5
6922  if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
6923     && test -s conftest$ac_exeext && ./conftest$ac_exeext
6924  then
6925    ac_cv_cxx_thread=yes
6926  else
6927    ac_cv_cxx_thread=no
6928  fi
6929  rm -fr conftest*
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
6932$as_echo "$ac_cv_cxx_thread" >&6; }
6933fi
6934CXX="$ac_save_cxx"
6935
6936
6937# checks for header files
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6939$as_echo_n "checking for ANSI C header files... " >&6; }
6940if ${ac_cv_header_stdc+:} false; then :
6941  $as_echo_n "(cached) " >&6
6942else
6943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h.  */
6945#include <stdlib.h>
6946#include <stdarg.h>
6947#include <string.h>
6948#include <float.h>
6949
6950int
6951main ()
6952{
6953
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958if ac_fn_c_try_compile "$LINENO"; then :
6959  ac_cv_header_stdc=yes
6960else
6961  ac_cv_header_stdc=no
6962fi
6963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964
6965if test $ac_cv_header_stdc = yes; then
6966  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968/* end confdefs.h.  */
6969#include <string.h>
6970
6971_ACEOF
6972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973  $EGREP "memchr" >/dev/null 2>&1; then :
6974
6975else
6976  ac_cv_header_stdc=no
6977fi
6978rm -f conftest*
6979
6980fi
6981
6982if test $ac_cv_header_stdc = yes; then
6983  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h.  */
6986#include <stdlib.h>
6987
6988_ACEOF
6989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6990  $EGREP "free" >/dev/null 2>&1; then :
6991
6992else
6993  ac_cv_header_stdc=no
6994fi
6995rm -f conftest*
6996
6997fi
6998
6999if test $ac_cv_header_stdc = yes; then
7000  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7001  if test "$cross_compiling" = yes; then :
7002  :
7003else
7004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006#include <ctype.h>
7007#include <stdlib.h>
7008#if ((' ' & 0x0FF) == 0x020)
7009# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7010# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7011#else
7012# define ISLOWER(c) \
7013		   (('a' <= (c) && (c) <= 'i') \
7014		     || ('j' <= (c) && (c) <= 'r') \
7015		     || ('s' <= (c) && (c) <= 'z'))
7016# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7017#endif
7018
7019#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7020int
7021main ()
7022{
7023  int i;
7024  for (i = 0; i < 256; i++)
7025    if (XOR (islower (i), ISLOWER (i))
7026	|| toupper (i) != TOUPPER (i))
7027      return 2;
7028  return 0;
7029}
7030_ACEOF
7031if ac_fn_c_try_run "$LINENO"; then :
7032
7033else
7034  ac_cv_header_stdc=no
7035fi
7036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7037  conftest.$ac_objext conftest.beam conftest.$ac_ext
7038fi
7039
7040fi
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7043$as_echo "$ac_cv_header_stdc" >&6; }
7044if test $ac_cv_header_stdc = yes; then
7045
7046$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7047
7048fi
7049
7050for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \
7051fcntl.h grp.h \
7052ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \
7053shadow.h signal.h stdint.h stropts.h termios.h thread.h \
7054unistd.h utime.h \
7055sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
7056sys/lock.h sys/mkdev.h sys/modem.h \
7057sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
7058sys/termio.h sys/time.h \
7059sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
7060sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
7061bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h
7062do :
7063  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7064ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7065if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7066  cat >>confdefs.h <<_ACEOF
7067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7068_ACEOF
7069
7070fi
7071
7072done
7073
7074ac_header_dirent=no
7075for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7076  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7078$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7079if eval \${$as_ac_Header+:} false; then :
7080  $as_echo_n "(cached) " >&6
7081else
7082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083/* end confdefs.h.  */
7084#include <sys/types.h>
7085#include <$ac_hdr>
7086
7087int
7088main ()
7089{
7090if ((DIR *) 0)
7091return 0;
7092  ;
7093  return 0;
7094}
7095_ACEOF
7096if ac_fn_c_try_compile "$LINENO"; then :
7097  eval "$as_ac_Header=yes"
7098else
7099  eval "$as_ac_Header=no"
7100fi
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102fi
7103eval ac_res=\$$as_ac_Header
7104	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7105$as_echo "$ac_res" >&6; }
7106if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7107  cat >>confdefs.h <<_ACEOF
7108#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7109_ACEOF
7110
7111ac_header_dirent=$ac_hdr; break
7112fi
7113
7114done
7115# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7116if test $ac_header_dirent = dirent.h; then
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7118$as_echo_n "checking for library containing opendir... " >&6; }
7119if ${ac_cv_search_opendir+:} false; then :
7120  $as_echo_n "(cached) " >&6
7121else
7122  ac_func_search_save_LIBS=$LIBS
7123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125
7126/* Override any GCC internal prototype to avoid an error.
7127   Use char because int might match the return type of a GCC
7128   builtin and then its argument prototype would still apply.  */
7129#ifdef __cplusplus
7130extern "C"
7131#endif
7132char opendir ();
7133int
7134main ()
7135{
7136return opendir ();
7137  ;
7138  return 0;
7139}
7140_ACEOF
7141for ac_lib in '' dir; do
7142  if test -z "$ac_lib"; then
7143    ac_res="none required"
7144  else
7145    ac_res=-l$ac_lib
7146    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7147  fi
7148  if ac_fn_c_try_link "$LINENO"; then :
7149  ac_cv_search_opendir=$ac_res
7150fi
7151rm -f core conftest.err conftest.$ac_objext \
7152    conftest$ac_exeext
7153  if ${ac_cv_search_opendir+:} false; then :
7154  break
7155fi
7156done
7157if ${ac_cv_search_opendir+:} false; then :
7158
7159else
7160  ac_cv_search_opendir=no
7161fi
7162rm conftest.$ac_ext
7163LIBS=$ac_func_search_save_LIBS
7164fi
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7166$as_echo "$ac_cv_search_opendir" >&6; }
7167ac_res=$ac_cv_search_opendir
7168if test "$ac_res" != no; then :
7169  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7170
7171fi
7172
7173else
7174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7175$as_echo_n "checking for library containing opendir... " >&6; }
7176if ${ac_cv_search_opendir+:} false; then :
7177  $as_echo_n "(cached) " >&6
7178else
7179  ac_func_search_save_LIBS=$LIBS
7180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182
7183/* Override any GCC internal prototype to avoid an error.
7184   Use char because int might match the return type of a GCC
7185   builtin and then its argument prototype would still apply.  */
7186#ifdef __cplusplus
7187extern "C"
7188#endif
7189char opendir ();
7190int
7191main ()
7192{
7193return opendir ();
7194  ;
7195  return 0;
7196}
7197_ACEOF
7198for ac_lib in '' x; do
7199  if test -z "$ac_lib"; then
7200    ac_res="none required"
7201  else
7202    ac_res=-l$ac_lib
7203    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7204  fi
7205  if ac_fn_c_try_link "$LINENO"; then :
7206  ac_cv_search_opendir=$ac_res
7207fi
7208rm -f core conftest.err conftest.$ac_objext \
7209    conftest$ac_exeext
7210  if ${ac_cv_search_opendir+:} false; then :
7211  break
7212fi
7213done
7214if ${ac_cv_search_opendir+:} false; then :
7215
7216else
7217  ac_cv_search_opendir=no
7218fi
7219rm conftest.$ac_ext
7220LIBS=$ac_func_search_save_LIBS
7221fi
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7223$as_echo "$ac_cv_search_opendir" >&6; }
7224ac_res=$ac_cv_search_opendir
7225if test "$ac_res" != no; then :
7226  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7227
7228fi
7229
7230fi
7231
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7233$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7234if ${ac_cv_header_sys_types_h_makedev+:} false; then :
7235  $as_echo_n "(cached) " >&6
7236else
7237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h.  */
7239#include <sys/types.h>
7240int
7241main ()
7242{
7243return makedev(0, 0);
7244  ;
7245  return 0;
7246}
7247_ACEOF
7248if ac_fn_c_try_link "$LINENO"; then :
7249  ac_cv_header_sys_types_h_makedev=yes
7250else
7251  ac_cv_header_sys_types_h_makedev=no
7252fi
7253rm -f core conftest.err conftest.$ac_objext \
7254    conftest$ac_exeext conftest.$ac_ext
7255
7256fi
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7258$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7259
7260if test $ac_cv_header_sys_types_h_makedev = no; then
7261ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
7262if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
7263
7264$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
7265
7266fi
7267
7268
7269
7270  if test $ac_cv_header_sys_mkdev_h = no; then
7271    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
7272if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
7273
7274$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
7275
7276fi
7277
7278
7279  fi
7280fi
7281
7282
7283# On Linux, netlink.h requires asm/types.h
7284for ac_header in linux/netlink.h
7285do :
7286  ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
7287#ifdef HAVE_ASM_TYPES_H
7288#include <asm/types.h>
7289#endif
7290#ifdef HAVE_SYS_SOCKET_H
7291#include <sys/socket.h>
7292#endif
7293
7294"
7295if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
7296  cat >>confdefs.h <<_ACEOF
7297#define HAVE_LINUX_NETLINK_H 1
7298_ACEOF
7299
7300fi
7301
7302done
7303
7304
7305# checks for typedefs
7306was_it_defined=no
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
7308$as_echo_n "checking for clock_t in time.h... " >&6; }
7309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310/* end confdefs.h.  */
7311#include <time.h>
7312
7313_ACEOF
7314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7315  $EGREP "clock_t" >/dev/null 2>&1; then :
7316  was_it_defined=yes
7317else
7318
7319
7320$as_echo "#define clock_t long" >>confdefs.h
7321
7322
7323fi
7324rm -f conftest*
7325
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
7327$as_echo "$was_it_defined" >&6; }
7328
7329# Check whether using makedev requires defining _OSF_SOURCE
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
7331$as_echo_n "checking for makedev... " >&6; }
7332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h.  */
7334
7335#if defined(MAJOR_IN_MKDEV)
7336#include <sys/mkdev.h>
7337#elif defined(MAJOR_IN_SYSMACROS)
7338#include <sys/sysmacros.h>
7339#else
7340#include <sys/types.h>
7341#endif
7342int
7343main ()
7344{
7345 makedev(0, 0)
7346  ;
7347  return 0;
7348}
7349_ACEOF
7350if ac_fn_c_try_link "$LINENO"; then :
7351  ac_cv_has_makedev=yes
7352else
7353  ac_cv_has_makedev=no
7354fi
7355rm -f core conftest.err conftest.$ac_objext \
7356    conftest$ac_exeext conftest.$ac_ext
7357if test "$ac_cv_has_makedev" = "no"; then
7358    # we didn't link, try if _OSF_SOURCE will allow us to link
7359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h.  */
7361
7362#define _OSF_SOURCE 1
7363#include <sys/types.h>
7364
7365int
7366main ()
7367{
7368 makedev(0, 0)
7369  ;
7370  return 0;
7371}
7372_ACEOF
7373if ac_fn_c_try_link "$LINENO"; then :
7374  ac_cv_has_makedev=yes
7375else
7376  ac_cv_has_makedev=no
7377fi
7378rm -f core conftest.err conftest.$ac_objext \
7379    conftest$ac_exeext conftest.$ac_ext
7380    if test "$ac_cv_has_makedev" = "yes"; then
7381
7382$as_echo "#define _OSF_SOURCE 1" >>confdefs.h
7383
7384    fi
7385fi
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
7387$as_echo "$ac_cv_has_makedev" >&6; }
7388if test "$ac_cv_has_makedev" = "yes"; then
7389
7390$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
7391
7392fi
7393
7394# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7395# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7396# defined, but the compiler does not support pragma redefine_extname,
7397# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7398# structures (such as rlimit64) without declaring them. As a
7399# work-around, disable LFS on such configurations
7400
7401use_lfs=yes
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
7403$as_echo_n "checking Solaris LFS bug... " >&6; }
7404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406
7407#define _LARGEFILE_SOURCE 1
7408#define _FILE_OFFSET_BITS 64
7409#include <sys/resource.h>
7410
7411int
7412main ()
7413{
7414struct rlimit foo;
7415  ;
7416  return 0;
7417}
7418_ACEOF
7419if ac_fn_c_try_compile "$LINENO"; then :
7420  sol_lfs_bug=no
7421else
7422  sol_lfs_bug=yes
7423fi
7424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
7426$as_echo "$sol_lfs_bug" >&6; }
7427if test "$sol_lfs_bug" = "yes"; then
7428  use_lfs=no
7429fi
7430
7431if test "$use_lfs" = "yes"; then
7432# Two defines needed to enable largefile support on various platforms
7433# These may affect some typedefs
7434case $ac_sys_system/$ac_sys_release in
7435AIX*)
7436
7437$as_echo "#define _LARGE_FILES 1" >>confdefs.h
7438
7439    ;;
7440esac
7441
7442$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
7443
7444
7445$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7446
7447fi
7448
7449# Add some code to confdefs.h so that the test for off_t works on SCO
7450cat >> confdefs.h <<\EOF
7451#if defined(SCO_DS)
7452#undef _OFF_T
7453#endif
7454EOF
7455
7456# Type availability checks
7457ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7458if test "x$ac_cv_type_mode_t" = xyes; then :
7459
7460else
7461
7462cat >>confdefs.h <<_ACEOF
7463#define mode_t int
7464_ACEOF
7465
7466fi
7467
7468ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7469if test "x$ac_cv_type_off_t" = xyes; then :
7470
7471else
7472
7473cat >>confdefs.h <<_ACEOF
7474#define off_t long int
7475_ACEOF
7476
7477fi
7478
7479ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7480if test "x$ac_cv_type_pid_t" = xyes; then :
7481
7482else
7483
7484cat >>confdefs.h <<_ACEOF
7485#define pid_t int
7486_ACEOF
7487
7488fi
7489
7490
7491cat >>confdefs.h <<_ACEOF
7492#define RETSIGTYPE void
7493_ACEOF
7494
7495ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7496if test "x$ac_cv_type_size_t" = xyes; then :
7497
7498else
7499
7500cat >>confdefs.h <<_ACEOF
7501#define size_t unsigned int
7502_ACEOF
7503
7504fi
7505
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7507$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7508if ${ac_cv_type_uid_t+:} false; then :
7509  $as_echo_n "(cached) " >&6
7510else
7511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513#include <sys/types.h>
7514
7515_ACEOF
7516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7517  $EGREP "uid_t" >/dev/null 2>&1; then :
7518  ac_cv_type_uid_t=yes
7519else
7520  ac_cv_type_uid_t=no
7521fi
7522rm -f conftest*
7523
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7526$as_echo "$ac_cv_type_uid_t" >&6; }
7527if test $ac_cv_type_uid_t = no; then
7528
7529$as_echo "#define uid_t int" >>confdefs.h
7530
7531
7532$as_echo "#define gid_t int" >>confdefs.h
7533
7534fi
7535
7536
7537# There are two separate checks for each of the exact-width integer types we
7538# need.  First we check whether the type is available using the usual
7539# AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h>
7540# and <stdint.h> where available).  We then also use the special type checks of
7541# the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available
7542# directly, #define's uint32_t to be a suitable type.
7543
7544ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7545if test "x$ac_cv_type_uint32_t" = xyes; then :
7546
7547$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
7548
7549fi
7550
7551ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7552case $ac_cv_c_uint32_t in #(
7553  no|yes) ;; #(
7554  *)
7555
7556$as_echo "#define _UINT32_T 1" >>confdefs.h
7557
7558
7559cat >>confdefs.h <<_ACEOF
7560#define uint32_t $ac_cv_c_uint32_t
7561_ACEOF
7562;;
7563  esac
7564
7565
7566ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
7567if test "x$ac_cv_type_uint64_t" = xyes; then :
7568
7569$as_echo "#define HAVE_UINT64_T 1" >>confdefs.h
7570
7571fi
7572
7573ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7574case $ac_cv_c_uint64_t in #(
7575  no|yes) ;; #(
7576  *)
7577
7578$as_echo "#define _UINT64_T 1" >>confdefs.h
7579
7580
7581cat >>confdefs.h <<_ACEOF
7582#define uint64_t $ac_cv_c_uint64_t
7583_ACEOF
7584;;
7585  esac
7586
7587
7588ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7589if test "x$ac_cv_type_int32_t" = xyes; then :
7590
7591$as_echo "#define HAVE_INT32_T 1" >>confdefs.h
7592
7593fi
7594
7595ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7596case $ac_cv_c_int32_t in #(
7597  no|yes) ;; #(
7598  *)
7599
7600cat >>confdefs.h <<_ACEOF
7601#define int32_t $ac_cv_c_int32_t
7602_ACEOF
7603;;
7604esac
7605
7606
7607ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
7608if test "x$ac_cv_type_int64_t" = xyes; then :
7609
7610$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
7611
7612fi
7613
7614ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7615case $ac_cv_c_int64_t in #(
7616  no|yes) ;; #(
7617  *)
7618
7619cat >>confdefs.h <<_ACEOF
7620#define int64_t $ac_cv_c_int64_t
7621_ACEOF
7622;;
7623esac
7624
7625
7626ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7627if test "x$ac_cv_type_ssize_t" = xyes; then :
7628
7629$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
7630
7631fi
7632
7633
7634# Sizes of various common basic types
7635# ANSI C requires sizeof(char) == 1, so no need to check it
7636# The cast to long int works around a bug in the HP C Compiler
7637# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7638# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7639# This bug is HP SR number 8606223364.
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7641$as_echo_n "checking size of int... " >&6; }
7642if ${ac_cv_sizeof_int+:} false; then :
7643  $as_echo_n "(cached) " >&6
7644else
7645  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
7646
7647else
7648  if test "$ac_cv_type_int" = yes; then
7649     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7651as_fn_error 77 "cannot compute sizeof (int)
7652See \`config.log' for more details" "$LINENO" 5; }
7653   else
7654     ac_cv_sizeof_int=0
7655   fi
7656fi
7657
7658fi
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7660$as_echo "$ac_cv_sizeof_int" >&6; }
7661
7662
7663
7664cat >>confdefs.h <<_ACEOF
7665#define SIZEOF_INT $ac_cv_sizeof_int
7666_ACEOF
7667
7668
7669# The cast to long int works around a bug in the HP C Compiler
7670# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7671# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7672# This bug is HP SR number 8606223364.
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7674$as_echo_n "checking size of long... " >&6; }
7675if ${ac_cv_sizeof_long+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7679
7680else
7681  if test "$ac_cv_type_long" = yes; then
7682     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7684as_fn_error 77 "cannot compute sizeof (long)
7685See \`config.log' for more details" "$LINENO" 5; }
7686   else
7687     ac_cv_sizeof_long=0
7688   fi
7689fi
7690
7691fi
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7693$as_echo "$ac_cv_sizeof_long" >&6; }
7694
7695
7696
7697cat >>confdefs.h <<_ACEOF
7698#define SIZEOF_LONG $ac_cv_sizeof_long
7699_ACEOF
7700
7701
7702# The cast to long int works around a bug in the HP C Compiler
7703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7705# This bug is HP SR number 8606223364.
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7707$as_echo_n "checking size of void *... " >&6; }
7708if ${ac_cv_sizeof_void_p+:} false; then :
7709  $as_echo_n "(cached) " >&6
7710else
7711  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
7712
7713else
7714  if test "$ac_cv_type_void_p" = yes; then
7715     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7717as_fn_error 77 "cannot compute sizeof (void *)
7718See \`config.log' for more details" "$LINENO" 5; }
7719   else
7720     ac_cv_sizeof_void_p=0
7721   fi
7722fi
7723
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7726$as_echo "$ac_cv_sizeof_void_p" >&6; }
7727
7728
7729
7730cat >>confdefs.h <<_ACEOF
7731#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7732_ACEOF
7733
7734
7735# The cast to long int works around a bug in the HP C Compiler
7736# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7737# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7738# This bug is HP SR number 8606223364.
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7740$as_echo_n "checking size of short... " >&6; }
7741if ${ac_cv_sizeof_short+:} false; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
7745
7746else
7747  if test "$ac_cv_type_short" = yes; then
7748     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7750as_fn_error 77 "cannot compute sizeof (short)
7751See \`config.log' for more details" "$LINENO" 5; }
7752   else
7753     ac_cv_sizeof_short=0
7754   fi
7755fi
7756
7757fi
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7759$as_echo "$ac_cv_sizeof_short" >&6; }
7760
7761
7762
7763cat >>confdefs.h <<_ACEOF
7764#define SIZEOF_SHORT $ac_cv_sizeof_short
7765_ACEOF
7766
7767
7768# The cast to long int works around a bug in the HP C Compiler
7769# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7770# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7771# This bug is HP SR number 8606223364.
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7773$as_echo_n "checking size of float... " >&6; }
7774if ${ac_cv_sizeof_float+:} false; then :
7775  $as_echo_n "(cached) " >&6
7776else
7777  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
7778
7779else
7780  if test "$ac_cv_type_float" = yes; then
7781     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7783as_fn_error 77 "cannot compute sizeof (float)
7784See \`config.log' for more details" "$LINENO" 5; }
7785   else
7786     ac_cv_sizeof_float=0
7787   fi
7788fi
7789
7790fi
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7792$as_echo "$ac_cv_sizeof_float" >&6; }
7793
7794
7795
7796cat >>confdefs.h <<_ACEOF
7797#define SIZEOF_FLOAT $ac_cv_sizeof_float
7798_ACEOF
7799
7800
7801# The cast to long int works around a bug in the HP C Compiler
7802# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7803# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7804# This bug is HP SR number 8606223364.
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7806$as_echo_n "checking size of double... " >&6; }
7807if ${ac_cv_sizeof_double+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
7811
7812else
7813  if test "$ac_cv_type_double" = yes; then
7814     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7816as_fn_error 77 "cannot compute sizeof (double)
7817See \`config.log' for more details" "$LINENO" 5; }
7818   else
7819     ac_cv_sizeof_double=0
7820   fi
7821fi
7822
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7825$as_echo "$ac_cv_sizeof_double" >&6; }
7826
7827
7828
7829cat >>confdefs.h <<_ACEOF
7830#define SIZEOF_DOUBLE $ac_cv_sizeof_double
7831_ACEOF
7832
7833
7834# The cast to long int works around a bug in the HP C Compiler
7835# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7836# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7837# This bug is HP SR number 8606223364.
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
7839$as_echo_n "checking size of fpos_t... " >&6; }
7840if ${ac_cv_sizeof_fpos_t+:} false; then :
7841  $as_echo_n "(cached) " >&6
7842else
7843  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then :
7844
7845else
7846  if test "$ac_cv_type_fpos_t" = yes; then
7847     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7849as_fn_error 77 "cannot compute sizeof (fpos_t)
7850See \`config.log' for more details" "$LINENO" 5; }
7851   else
7852     ac_cv_sizeof_fpos_t=0
7853   fi
7854fi
7855
7856fi
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
7858$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
7859
7860
7861
7862cat >>confdefs.h <<_ACEOF
7863#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
7864_ACEOF
7865
7866
7867# The cast to long int works around a bug in the HP C Compiler
7868# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7869# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7870# This bug is HP SR number 8606223364.
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
7872$as_echo_n "checking size of size_t... " >&6; }
7873if ${ac_cv_sizeof_size_t+:} false; then :
7874  $as_echo_n "(cached) " >&6
7875else
7876  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
7877
7878else
7879  if test "$ac_cv_type_size_t" = yes; then
7880     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7882as_fn_error 77 "cannot compute sizeof (size_t)
7883See \`config.log' for more details" "$LINENO" 5; }
7884   else
7885     ac_cv_sizeof_size_t=0
7886   fi
7887fi
7888
7889fi
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
7891$as_echo "$ac_cv_sizeof_size_t" >&6; }
7892
7893
7894
7895cat >>confdefs.h <<_ACEOF
7896#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
7897_ACEOF
7898
7899
7900# The cast to long int works around a bug in the HP C Compiler
7901# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7902# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7903# This bug is HP SR number 8606223364.
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
7905$as_echo_n "checking size of pid_t... " >&6; }
7906if ${ac_cv_sizeof_pid_t+:} false; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then :
7910
7911else
7912  if test "$ac_cv_type_pid_t" = yes; then
7913     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7915as_fn_error 77 "cannot compute sizeof (pid_t)
7916See \`config.log' for more details" "$LINENO" 5; }
7917   else
7918     ac_cv_sizeof_pid_t=0
7919   fi
7920fi
7921
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
7924$as_echo "$ac_cv_sizeof_pid_t" >&6; }
7925
7926
7927
7928cat >>confdefs.h <<_ACEOF
7929#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
7930_ACEOF
7931
7932
7933
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
7935$as_echo_n "checking for long long support... " >&6; }
7936have_long_long=no
7937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939
7940int
7941main ()
7942{
7943long long x; x = (long long)0;
7944  ;
7945  return 0;
7946}
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949
7950
7951$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
7952
7953  have_long_long=yes
7954
7955fi
7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
7958$as_echo "$have_long_long" >&6; }
7959if test "$have_long_long" = yes ; then
7960# The cast to long int works around a bug in the HP C Compiler
7961# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7962# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7963# This bug is HP SR number 8606223364.
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7965$as_echo_n "checking size of long long... " >&6; }
7966if ${ac_cv_sizeof_long_long+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
7970
7971else
7972  if test "$ac_cv_type_long_long" = yes; then
7973     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7975as_fn_error 77 "cannot compute sizeof (long long)
7976See \`config.log' for more details" "$LINENO" 5; }
7977   else
7978     ac_cv_sizeof_long_long=0
7979   fi
7980fi
7981
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7984$as_echo "$ac_cv_sizeof_long_long" >&6; }
7985
7986
7987
7988cat >>confdefs.h <<_ACEOF
7989#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7990_ACEOF
7991
7992
7993fi
7994
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
7996$as_echo_n "checking for long double support... " >&6; }
7997have_long_double=no
7998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000
8001int
8002main ()
8003{
8004long double x; x = (long double)0;
8005  ;
8006  return 0;
8007}
8008_ACEOF
8009if ac_fn_c_try_compile "$LINENO"; then :
8010
8011
8012$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
8013
8014  have_long_double=yes
8015
8016fi
8017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
8019$as_echo "$have_long_double" >&6; }
8020if test "$have_long_double" = yes ; then
8021# The cast to long int works around a bug in the HP C Compiler
8022# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8023# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8024# This bug is HP SR number 8606223364.
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8026$as_echo_n "checking size of long double... " >&6; }
8027if ${ac_cv_sizeof_long_double+:} false; then :
8028  $as_echo_n "(cached) " >&6
8029else
8030  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
8031
8032else
8033  if test "$ac_cv_type_long_double" = yes; then
8034     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8036as_fn_error 77 "cannot compute sizeof (long double)
8037See \`config.log' for more details" "$LINENO" 5; }
8038   else
8039     ac_cv_sizeof_long_double=0
8040   fi
8041fi
8042
8043fi
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8045$as_echo "$ac_cv_sizeof_long_double" >&6; }
8046
8047
8048
8049cat >>confdefs.h <<_ACEOF
8050#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8051_ACEOF
8052
8053
8054fi
8055
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
8057$as_echo_n "checking for _Bool support... " >&6; }
8058have_c99_bool=no
8059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061
8062int
8063main ()
8064{
8065_Bool x; x = (_Bool)0;
8066  ;
8067  return 0;
8068}
8069_ACEOF
8070if ac_fn_c_try_compile "$LINENO"; then :
8071
8072
8073$as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
8074
8075  have_c99_bool=yes
8076
8077fi
8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
8080$as_echo "$have_c99_bool" >&6; }
8081if test "$have_c99_bool" = yes ; then
8082# The cast to long int works around a bug in the HP C Compiler
8083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8085# This bug is HP SR number 8606223364.
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8087$as_echo_n "checking size of _Bool... " >&6; }
8088if ${ac_cv_sizeof__Bool+:} false; then :
8089  $as_echo_n "(cached) " >&6
8090else
8091  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then :
8092
8093else
8094  if test "$ac_cv_type__Bool" = yes; then
8095     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8097as_fn_error 77 "cannot compute sizeof (_Bool)
8098See \`config.log' for more details" "$LINENO" 5; }
8099   else
8100     ac_cv_sizeof__Bool=0
8101   fi
8102fi
8103
8104fi
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8106$as_echo "$ac_cv_sizeof__Bool" >&6; }
8107
8108
8109
8110cat >>confdefs.h <<_ACEOF
8111#define SIZEOF__BOOL $ac_cv_sizeof__Bool
8112_ACEOF
8113
8114
8115fi
8116
8117ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
8118        #include <stdint.h>
8119        #endif
8120        #ifdef HAVE_INTTYPES_H
8121        #include <inttypes.h>
8122        #endif
8123"
8124if test "x$ac_cv_type_uintptr_t" = xyes; then :
8125
8126cat >>confdefs.h <<_ACEOF
8127#define HAVE_UINTPTR_T 1
8128_ACEOF
8129
8130# The cast to long int works around a bug in the HP C Compiler
8131# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8132# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8133# This bug is HP SR number 8606223364.
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8135$as_echo_n "checking size of uintptr_t... " >&6; }
8136if ${ac_cv_sizeof_uintptr_t+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then :
8140
8141else
8142  if test "$ac_cv_type_uintptr_t" = yes; then
8143     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8145as_fn_error 77 "cannot compute sizeof (uintptr_t)
8146See \`config.log' for more details" "$LINENO" 5; }
8147   else
8148     ac_cv_sizeof_uintptr_t=0
8149   fi
8150fi
8151
8152fi
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8154$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8155
8156
8157
8158cat >>confdefs.h <<_ACEOF
8159#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8160_ACEOF
8161
8162
8163fi
8164
8165
8166# The cast to long int works around a bug in the HP C Compiler
8167# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8168# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8169# This bug is HP SR number 8606223364.
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8171$as_echo_n "checking size of off_t... " >&6; }
8172if ${ac_cv_sizeof_off_t+:} false; then :
8173  $as_echo_n "(cached) " >&6
8174else
8175  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "
8176#ifdef HAVE_SYS_TYPES_H
8177#include <sys/types.h>
8178#endif
8179
8180"; then :
8181
8182else
8183  if test "$ac_cv_type_off_t" = yes; then
8184     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8186as_fn_error 77 "cannot compute sizeof (off_t)
8187See \`config.log' for more details" "$LINENO" 5; }
8188   else
8189     ac_cv_sizeof_off_t=0
8190   fi
8191fi
8192
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8195$as_echo "$ac_cv_sizeof_off_t" >&6; }
8196
8197
8198
8199cat >>confdefs.h <<_ACEOF
8200#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8201_ACEOF
8202
8203
8204
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8206$as_echo_n "checking whether to enable large file support... " >&6; }
8207if test "$have_long_long" = yes
8208then
8209if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8210	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8211
8212$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
8213
8214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8215$as_echo "yes" >&6; }
8216else
8217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218$as_echo "no" >&6; }
8219fi
8220else
8221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222$as_echo "no" >&6; }
8223fi
8224
8225# The cast to long int works around a bug in the HP C Compiler
8226# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8227# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8228# This bug is HP SR number 8606223364.
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8230$as_echo_n "checking size of time_t... " >&6; }
8231if ${ac_cv_sizeof_time_t+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
8235#ifdef HAVE_SYS_TYPES_H
8236#include <sys/types.h>
8237#endif
8238#ifdef HAVE_TIME_H
8239#include <time.h>
8240#endif
8241
8242"; then :
8243
8244else
8245  if test "$ac_cv_type_time_t" = yes; then
8246     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8248as_fn_error 77 "cannot compute sizeof (time_t)
8249See \`config.log' for more details" "$LINENO" 5; }
8250   else
8251     ac_cv_sizeof_time_t=0
8252   fi
8253fi
8254
8255fi
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
8257$as_echo "$ac_cv_sizeof_time_t" >&6; }
8258
8259
8260
8261cat >>confdefs.h <<_ACEOF
8262#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
8263_ACEOF
8264
8265
8266
8267# if have pthread_t then define SIZEOF_PTHREAD_T
8268ac_save_cc="$CC"
8269if test "$ac_cv_kpthread" = "yes"
8270then CC="$CC -Kpthread"
8271elif test "$ac_cv_kthread" = "yes"
8272then CC="$CC -Kthread"
8273elif test "$ac_cv_pthread" = "yes"
8274then CC="$CC -pthread"
8275fi
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
8277$as_echo_n "checking for pthread_t... " >&6; }
8278have_pthread_t=no
8279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281
8282  #include <pthread.h>
8283int
8284main ()
8285{
8286pthread_t x; x = *(pthread_t*)0;
8287  ;
8288  return 0;
8289}
8290
8291_ACEOF
8292if ac_fn_c_try_compile "$LINENO"; then :
8293  have_pthread_t=yes
8294fi
8295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
8297$as_echo "$have_pthread_t" >&6; }
8298if test "$have_pthread_t" = yes ; then
8299  # The cast to long int works around a bug in the HP C Compiler
8300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8302# This bug is HP SR number 8606223364.
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
8304$as_echo_n "checking size of pthread_t... " >&6; }
8305if ${ac_cv_sizeof_pthread_t+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
8309#ifdef HAVE_PTHREAD_H
8310#include <pthread.h>
8311#endif
8312
8313"; then :
8314
8315else
8316  if test "$ac_cv_type_pthread_t" = yes; then
8317     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8319as_fn_error 77 "cannot compute sizeof (pthread_t)
8320See \`config.log' for more details" "$LINENO" 5; }
8321   else
8322     ac_cv_sizeof_pthread_t=0
8323   fi
8324fi
8325
8326fi
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
8328$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
8329
8330
8331
8332cat >>confdefs.h <<_ACEOF
8333#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
8334_ACEOF
8335
8336
8337fi
8338CC="$ac_save_cc"
8339
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
8341$as_echo_n "checking for --enable-toolbox-glue... " >&6; }
8342# Check whether --enable-toolbox-glue was given.
8343if test "${enable_toolbox_glue+set}" = set; then :
8344  enableval=$enable_toolbox_glue;
8345fi
8346
8347
8348if test -z "$enable_toolbox_glue"
8349then
8350	case $ac_sys_system/$ac_sys_release in
8351	Darwin/*)
8352		enable_toolbox_glue="yes";;
8353	*)
8354		enable_toolbox_glue="no";;
8355	esac
8356fi
8357case "$enable_toolbox_glue" in
8358yes)
8359	extra_machdep_objs="Python/mactoolboxglue.o"
8360	extra_undefs="-u _PyMac_Error"
8361
8362$as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
8363
8364	;;
8365*)
8366	extra_machdep_objs=""
8367	extra_undefs=""
8368	;;
8369esac
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
8371$as_echo "$enable_toolbox_glue" >&6; }
8372
8373
8374
8375case $ac_sys_system/$ac_sys_release in
8376  Darwin/[01567]\..*)
8377    OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
8378    ;;
8379  Darwin/*)
8380    OTHER_LIBTOOL_OPT=""
8381    ;;
8382esac
8383
8384
8385
8386case $ac_sys_system/$ac_sys_release in
8387  Darwin/[01567]\..*)
8388    LIBTOOL_CRUFT="-framework System -lcc_dynamic"
8389    if test "${enable_universalsdk}"; then
8390	    :
8391    else
8392        LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
8393    fi
8394    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8395    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8396  Darwin/*)
8397    gcc_version=`gcc -dumpversion`
8398    if test ${gcc_version} '<' 4.0
8399        then
8400            LIBTOOL_CRUFT="-lcc_dynamic"
8401        else
8402            LIBTOOL_CRUFT=""
8403    fi
8404    if test "$cross_compiling" = yes; then :
8405  ac_osx_32bit=yes
8406else
8407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h.  */
8409
8410    #include <unistd.h>
8411    int main(int argc, char*argv[])
8412    {
8413      if (sizeof(long) == 4) {
8414    	  return 0;
8415      } else {
8416      	  return 1;
8417      }
8418    }
8419
8420_ACEOF
8421if ac_fn_c_try_run "$LINENO"; then :
8422  ac_osx_32bit=yes
8423else
8424  ac_osx_32bit=no
8425fi
8426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8427  conftest.$ac_objext conftest.beam conftest.$ac_ext
8428fi
8429
8430
8431    if test "${ac_osx_32bit}" = "yes"; then
8432    	case `/usr/bin/arch` in
8433    	i386)
8434    		MACOSX_DEFAULT_ARCH="i386"
8435    		;;
8436    	ppc)
8437    		MACOSX_DEFAULT_ARCH="ppc"
8438    		;;
8439    	*)
8440    		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
8441    		;;
8442    	esac
8443    else
8444    	case `/usr/bin/arch` in
8445    	i386)
8446    		MACOSX_DEFAULT_ARCH="x86_64"
8447    		;;
8448    	ppc)
8449    		MACOSX_DEFAULT_ARCH="ppc64"
8450    		;;
8451    	*)
8452    		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
8453    		;;
8454    	esac
8455
8456	#ARCH_RUN_32BIT="true"
8457    fi
8458
8459    LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
8460    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8461    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8462esac
8463
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
8465$as_echo_n "checking for --enable-framework... " >&6; }
8466if test "$enable_framework"
8467then
8468	BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
8469	# -F. is needed to allow linking to the framework while
8470	# in the build location.
8471
8472$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
8473
8474	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8475$as_echo "yes" >&6; }
8476	if test $enable_shared = "yes"
8477	then
8478		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5
8479	fi
8480else
8481	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482$as_echo "no" >&6; }
8483fi
8484
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
8486$as_echo_n "checking for dyld... " >&6; }
8487case $ac_sys_system/$ac_sys_release in
8488  Darwin/*)
8489
8490$as_echo "#define WITH_DYLD 1" >>confdefs.h
8491
8492  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
8493$as_echo "always on for Darwin" >&6; }
8494  	;;
8495  *)
8496	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497$as_echo "no" >&6; }
8498	;;
8499esac
8500
8501# Set info about shared libraries.
8502
8503
8504
8505
8506
8507
8508# SO is the extension of shared libraries `(including the dot!)
8509# -- usually .so, .sl on HP-UX, .dll on Cygwin
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
8511$as_echo_n "checking SO... " >&6; }
8512if test -z "$SO"
8513then
8514	case $ac_sys_system in
8515	hp*|HP*)
8516		case `uname -m` in
8517			ia64) SO=.so;;
8518	  		*)    SO=.sl;;
8519		esac
8520		;;
8521	CYGWIN*)   SO=.dll;;
8522	*)	   SO=.so;;
8523	esac
8524else
8525	# this might also be a termcap variable, see #610332
8526        echo
8527        echo '====================================================================='
8528        echo '+                                                                   +'
8529	echo '+ WARNING: You have set SO in your environment.                     +'
8530        echo '+ Do you really mean to change the extension for shared libraries?  +'
8531        echo '+ Continuing in 10 seconds to let you to ponder.                    +'
8532        echo '+                                                                   +'
8533        echo '====================================================================='
8534	sleep 10
8535fi
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
8537$as_echo "$SO" >&6; }
8538
8539
8540cat >>confdefs.h <<_ACEOF
8541#define SHLIB_EXT "$SO"
8542_ACEOF
8543
8544# LDSHARED is the ld *command* used to create shared library
8545# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
8546# (Shared libraries in this instance are shared modules to be loaded into
8547# Python, as opposed to building Python itself as a shared library.)
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
8549$as_echo_n "checking LDSHARED... " >&6; }
8550if test -z "$LDSHARED"
8551then
8552	case $ac_sys_system/$ac_sys_release in
8553	AIX*)
8554		BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
8555		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
8556		;;
8557	BeOS*)
8558		BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
8559		LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
8560		;;
8561	IRIX/5*) LDSHARED="ld -shared";;
8562	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
8563	SunOS/5*)
8564		if test "$GCC" = "yes" ; then
8565			LDSHARED='$(CC) -shared'
8566			LDCXXSHARED='$(CXX) -shared'
8567		else
8568			LDSHARED='$(CC) -G'
8569			LDCXXSHARED='$(CXX) -G'
8570		fi ;;
8571	hp*|HP*)
8572		if test "$GCC" = "yes" ; then
8573			LDSHARED='$(CC) -shared'
8574			LDCXXSHARED='$(CXX) -shared'
8575		else
8576			LDSHARED='ld -b'
8577		fi ;;
8578	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
8579	Darwin/1.3*)
8580		LDSHARED='$(CC) -bundle'
8581		LDCXXSHARED='$(CXX) -bundle'
8582		if test "$enable_framework" ; then
8583			# Link against the framework. All externals should be defined.
8584			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8585			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8586			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8587		else
8588			# No framework. Ignore undefined symbols, assuming they come from Python
8589			LDSHARED="$LDSHARED -undefined suppress"
8590			LDCXXSHARED="$LDCXXSHARED -undefined suppress"
8591		fi ;;
8592	Darwin/1.4*|Darwin/5.*|Darwin/6.*)
8593		LDSHARED='$(CC) -bundle'
8594		LDCXXSHARED='$(CXX) -bundle'
8595		if test "$enable_framework" ; then
8596			# Link against the framework. All externals should be defined.
8597			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8598			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8599			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8600		else
8601			# No framework, use the Python app as bundle-loader
8602			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8603			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8604			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8605		fi ;;
8606	Darwin/*)
8607		# Use -undefined dynamic_lookup whenever possible (10.3 and later).
8608		# This allows an extension to be used in any Python
8609
8610		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
8611				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8612		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
8613				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8614		if test ${dep_target_major} -eq 10 && \
8615		   test ${dep_target_minor} -le 2
8616		then
8617			# building for OS X 10.0 through 10.2
8618			LDSHARED='$(CC) -bundle'
8619			LDCXXSHARED='$(CXX) -bundle'
8620			if test "$enable_framework" ; then
8621				# Link against the framework. All externals should be defined.
8622				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8623				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8624				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8625			else
8626				# No framework, use the Python app as bundle-loader
8627				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8628				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8629				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8630			fi
8631		else
8632			# building for OS X 10.3 and later
8633			if test "${enable_universalsdk}"; then
8634				LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
8635			fi
8636			LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
8637			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
8638			BLDSHARED="$LDSHARED"
8639		fi
8640		;;
8641	Linux*|GNU*|QNX*)
8642		LDSHARED='$(CC) -shared'
8643		LDCXXSHARED='$(CXX) -shared';;
8644	BSD/OS*/4*)
8645		LDSHARED="gcc -shared"
8646		LDCXXSHARED="g++ -shared";;
8647	FreeBSD*)
8648		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8649		then
8650			LDSHARED='$(CC) -shared'
8651			LDCXXSHARED='$(CXX) -shared'
8652		else
8653			LDSHARED="ld -Bshareable"
8654		fi;;
8655	OpenBSD*)
8656		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8657		then
8658				LDSHARED='$(CC) -shared $(CCSHARED)'
8659				LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
8660		else
8661				case `uname -r` in
8662				[01].* | 2.[0-7] | 2.[0-7].*)
8663				   LDSHARED="ld -Bshareable ${LDFLAGS}"
8664				   ;;
8665				*)
8666				   LDSHARED='$(CC) -shared $(CCSHARED)'
8667				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
8668				   ;;
8669				esac
8670		fi;;
8671	NetBSD*|DragonFly*)
8672		LDSHARED='$(CC) -shared'
8673		LDCXXSHARED='$(CXX) -shared';;
8674	OpenUNIX*|UnixWare*)
8675		if test "$GCC" = "yes" ; then
8676			LDSHARED='$(CC) -shared'
8677			LDCXXSHARED='$(CXX) -shared'
8678		else
8679			LDSHARED='$(CC) -G'
8680			LDCXXSHARED='$(CXX) -G'
8681		fi;;
8682	SCO_SV*)
8683		LDSHARED='$(CC) -Wl,-G,-Bexport'
8684		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
8685	CYGWIN*)
8686		LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
8687		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
8688	atheos*)
8689		LDSHARED="gcc -shared"
8690		LDCXXSHARED="g++ -shared";;
8691	*)	LDSHARED="ld";;
8692	esac
8693fi
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
8695$as_echo "$LDSHARED" >&6; }
8696LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
8697BLDSHARED=${BLDSHARED-$LDSHARED}
8698# CCSHARED are the C *flags* used to create objects to go into a shared
8699# library (module) -- this is only needed for a few systems
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
8701$as_echo_n "checking CCSHARED... " >&6; }
8702if test -z "$CCSHARED"
8703then
8704	case $ac_sys_system/$ac_sys_release in
8705	SunOS*) if test "$GCC" = yes;
8706		then CCSHARED="-fPIC";
8707		elif test `uname -p` = sparc;
8708		then CCSHARED="-xcode=pic32";
8709		else CCSHARED="-Kpic";
8710		fi;;
8711	hp*|HP*) if test "$GCC" = yes;
8712		 then CCSHARED="-fPIC";
8713		 else CCSHARED="+z";
8714		 fi;;
8715	Linux*|GNU*) CCSHARED="-fPIC";;
8716	BSD/OS*/4*) CCSHARED="-fpic";;
8717	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
8718	OpenUNIX*|UnixWare*)
8719		if test "$GCC" = "yes"
8720		then CCSHARED="-fPIC"
8721		else CCSHARED="-KPIC"
8722		fi;;
8723	SCO_SV*)
8724		if test "$GCC" = "yes"
8725		then CCSHARED="-fPIC"
8726		else CCSHARED="-Kpic -belf"
8727		fi;;
8728	IRIX*/6*)  case $CC in
8729		   *gcc*) CCSHARED="-shared";;
8730		   *) CCSHARED="";;
8731		   esac;;
8732	atheos*) CCSHARED="-fPIC";;
8733	esac
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
8736$as_echo "$CCSHARED" >&6; }
8737# LINKFORSHARED are the flags passed to the $(CC) command that links
8738# the python executable -- this is only needed for a few systems
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
8740$as_echo_n "checking LINKFORSHARED... " >&6; }
8741if test -z "$LINKFORSHARED"
8742then
8743	case $ac_sys_system/$ac_sys_release in
8744	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
8745	hp*|HP*)
8746	    LINKFORSHARED="-Wl,-E -Wl,+s";;
8747#	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
8748	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
8749	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
8750	# -u libsys_s pulls in all symbols in libsys
8751	Darwin/*)
8752		# -u _PyMac_Error is needed to pull in the mac toolbox glue,
8753		# which is
8754		# not used by the core itself but which needs to be in the core so
8755		# that dynamically loaded extension modules have access to it.
8756		# -prebind is no longer used, because it actually seems to give a
8757		# slowdown in stead of a speedup, maybe due to the large number of
8758		# dynamic loads Python does.
8759
8760		LINKFORSHARED="$extra_undefs"
8761		if test "$enable_framework"
8762		then
8763			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8764		fi
8765		LINKFORSHARED="$LINKFORSHARED";;
8766	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
8767	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
8768	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
8769	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
8770		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8771		then
8772			LINKFORSHARED="-Wl,--export-dynamic"
8773		fi;;
8774	SunOS/5*) case $CC in
8775		  *gcc*)
8776		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
8777		    then
8778			LINKFORSHARED="-Xlinker --export-dynamic"
8779		    fi;;
8780		  esac;;
8781	CYGWIN*)
8782		if test $enable_shared = "no"
8783		then
8784			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
8785		fi;;
8786	QNX*)
8787		# -Wl,-E causes the symbols to be added to the dynamic
8788		# symbol table so that they can be found when a module
8789		# is loaded.  -N 2048K causes the stack size to be set
8790		# to 2048 kilobytes so that the stack doesn't overflow
8791		# when running test_compile.py.
8792		LINKFORSHARED='-Wl,-E -N 2048K';;
8793	esac
8794fi
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
8796$as_echo "$LINKFORSHARED" >&6; }
8797
8798
8799
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
8801$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
8802if test ! "$LIBRARY" = "$LDLIBRARY"
8803then
8804	case $ac_sys_system in
8805	CYGWIN*)
8806		# Cygwin needs CCSHARED when building extension DLLs
8807		# but not when building the interpreter DLL.
8808		CFLAGSFORSHARED='';;
8809	*)
8810		CFLAGSFORSHARED='$(CCSHARED)'
8811	esac
8812fi
8813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
8814$as_echo "$CFLAGSFORSHARED" >&6; }
8815
8816# SHLIBS are libraries (except -lc and -lm) to link to the python shared
8817# library (with --enable-shared).
8818# For platforms on which shared libraries are not allowed to have unresolved
8819# symbols, this must be set to $(LIBS) (expanded by make). We do this even
8820# if it is not required, since it creates a dependency of the shared library
8821# to LIBS. This, in turn, means that applications linking the shared libpython
8822# don't need to link LIBS explicitly. The default should be only changed
8823# on systems where this approach causes problems.
8824
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
8826$as_echo_n "checking SHLIBS... " >&6; }
8827case "$ac_sys_system" in
8828	*)
8829		SHLIBS='$(LIBS)';;
8830esac
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
8832$as_echo "$SHLIBS" >&6; }
8833
8834
8835# checks for libraries
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8837$as_echo_n "checking for dlopen in -ldl... " >&6; }
8838if ${ac_cv_lib_dl_dlopen+:} false; then :
8839  $as_echo_n "(cached) " >&6
8840else
8841  ac_check_lib_save_LIBS=$LIBS
8842LIBS="-ldl  $LIBS"
8843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844/* end confdefs.h.  */
8845
8846/* Override any GCC internal prototype to avoid an error.
8847   Use char because int might match the return type of a GCC
8848   builtin and then its argument prototype would still apply.  */
8849#ifdef __cplusplus
8850extern "C"
8851#endif
8852char dlopen ();
8853int
8854main ()
8855{
8856return dlopen ();
8857  ;
8858  return 0;
8859}
8860_ACEOF
8861if ac_fn_c_try_link "$LINENO"; then :
8862  ac_cv_lib_dl_dlopen=yes
8863else
8864  ac_cv_lib_dl_dlopen=no
8865fi
8866rm -f core conftest.err conftest.$ac_objext \
8867    conftest$ac_exeext conftest.$ac_ext
8868LIBS=$ac_check_lib_save_LIBS
8869fi
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8871$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8872if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8873  cat >>confdefs.h <<_ACEOF
8874#define HAVE_LIBDL 1
8875_ACEOF
8876
8877  LIBS="-ldl $LIBS"
8878
8879fi
8880	# Dynamic linking for SunOS/Solaris and SYSV
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8882$as_echo_n "checking for shl_load in -ldld... " >&6; }
8883if ${ac_cv_lib_dld_shl_load+:} false; then :
8884  $as_echo_n "(cached) " >&6
8885else
8886  ac_check_lib_save_LIBS=$LIBS
8887LIBS="-ldld  $LIBS"
8888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890
8891/* Override any GCC internal prototype to avoid an error.
8892   Use char because int might match the return type of a GCC
8893   builtin and then its argument prototype would still apply.  */
8894#ifdef __cplusplus
8895extern "C"
8896#endif
8897char shl_load ();
8898int
8899main ()
8900{
8901return shl_load ();
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906if ac_fn_c_try_link "$LINENO"; then :
8907  ac_cv_lib_dld_shl_load=yes
8908else
8909  ac_cv_lib_dld_shl_load=no
8910fi
8911rm -f core conftest.err conftest.$ac_objext \
8912    conftest$ac_exeext conftest.$ac_ext
8913LIBS=$ac_check_lib_save_LIBS
8914fi
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8916$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8917if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8918  cat >>confdefs.h <<_ACEOF
8919#define HAVE_LIBDLD 1
8920_ACEOF
8921
8922  LIBS="-ldld $LIBS"
8923
8924fi
8925	# Dynamic linking for HP-UX
8926
8927# only check for sem_init if thread support is requested
8928if test "$with_threads" = "yes" -o -z "$with_threads"; then
8929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
8930$as_echo_n "checking for library containing sem_init... " >&6; }
8931if ${ac_cv_search_sem_init+:} false; then :
8932  $as_echo_n "(cached) " >&6
8933else
8934  ac_func_search_save_LIBS=$LIBS
8935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936/* end confdefs.h.  */
8937
8938/* Override any GCC internal prototype to avoid an error.
8939   Use char because int might match the return type of a GCC
8940   builtin and then its argument prototype would still apply.  */
8941#ifdef __cplusplus
8942extern "C"
8943#endif
8944char sem_init ();
8945int
8946main ()
8947{
8948return sem_init ();
8949  ;
8950  return 0;
8951}
8952_ACEOF
8953for ac_lib in '' pthread rt posix4; do
8954  if test -z "$ac_lib"; then
8955    ac_res="none required"
8956  else
8957    ac_res=-l$ac_lib
8958    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8959  fi
8960  if ac_fn_c_try_link "$LINENO"; then :
8961  ac_cv_search_sem_init=$ac_res
8962fi
8963rm -f core conftest.err conftest.$ac_objext \
8964    conftest$ac_exeext
8965  if ${ac_cv_search_sem_init+:} false; then :
8966  break
8967fi
8968done
8969if ${ac_cv_search_sem_init+:} false; then :
8970
8971else
8972  ac_cv_search_sem_init=no
8973fi
8974rm conftest.$ac_ext
8975LIBS=$ac_func_search_save_LIBS
8976fi
8977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
8978$as_echo "$ac_cv_search_sem_init" >&6; }
8979ac_res=$ac_cv_search_sem_init
8980if test "$ac_res" != no; then :
8981  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8982
8983fi
8984 # 'Real Time' functions on Solaris
8985						# posix4 on Solaris 2.6
8986						# pthread (first!) on Linux
8987fi
8988
8989# check if we need libintl for locale functions
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
8991$as_echo_n "checking for textdomain in -lintl... " >&6; }
8992if ${ac_cv_lib_intl_textdomain+:} false; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995  ac_check_lib_save_LIBS=$LIBS
8996LIBS="-lintl  $LIBS"
8997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998/* end confdefs.h.  */
8999
9000/* Override any GCC internal prototype to avoid an error.
9001   Use char because int might match the return type of a GCC
9002   builtin and then its argument prototype would still apply.  */
9003#ifdef __cplusplus
9004extern "C"
9005#endif
9006char textdomain ();
9007int
9008main ()
9009{
9010return textdomain ();
9011  ;
9012  return 0;
9013}
9014_ACEOF
9015if ac_fn_c_try_link "$LINENO"; then :
9016  ac_cv_lib_intl_textdomain=yes
9017else
9018  ac_cv_lib_intl_textdomain=no
9019fi
9020rm -f core conftest.err conftest.$ac_objext \
9021    conftest$ac_exeext conftest.$ac_ext
9022LIBS=$ac_check_lib_save_LIBS
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
9025$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
9026if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
9027
9028$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
9029
9030fi
9031
9032
9033# checks for system dependent C++ extensions support
9034case "$ac_sys_system" in
9035	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9036$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
9037		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038/* end confdefs.h.  */
9039
9040		  #include <load.h>
9041int
9042main ()
9043{
9044loadAndInit("", 0, "")
9045  ;
9046  return 0;
9047}
9048
9049_ACEOF
9050if ac_fn_c_try_link "$LINENO"; then :
9051
9052
9053$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
9054
9055		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9056$as_echo "yes" >&6; }
9057
9058else
9059
9060		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061$as_echo "no" >&6; }
9062
9063fi
9064rm -f core conftest.err conftest.$ac_objext \
9065    conftest$ac_exeext conftest.$ac_ext;;
9066	*) ;;
9067esac
9068
9069# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9070# BeOS' sockets are stashed in libnet.
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
9072$as_echo_n "checking for t_open in -lnsl... " >&6; }
9073if ${ac_cv_lib_nsl_t_open+:} false; then :
9074  $as_echo_n "(cached) " >&6
9075else
9076  ac_check_lib_save_LIBS=$LIBS
9077LIBS="-lnsl  $LIBS"
9078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h.  */
9080
9081/* Override any GCC internal prototype to avoid an error.
9082   Use char because int might match the return type of a GCC
9083   builtin and then its argument prototype would still apply.  */
9084#ifdef __cplusplus
9085extern "C"
9086#endif
9087char t_open ();
9088int
9089main ()
9090{
9091return t_open ();
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096if ac_fn_c_try_link "$LINENO"; then :
9097  ac_cv_lib_nsl_t_open=yes
9098else
9099  ac_cv_lib_nsl_t_open=no
9100fi
9101rm -f core conftest.err conftest.$ac_objext \
9102    conftest$ac_exeext conftest.$ac_ext
9103LIBS=$ac_check_lib_save_LIBS
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
9106$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
9107if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
9108  LIBS="-lnsl $LIBS"
9109fi
9110 # SVR4
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9112$as_echo_n "checking for socket in -lsocket... " >&6; }
9113if ${ac_cv_lib_socket_socket+:} false; then :
9114  $as_echo_n "(cached) " >&6
9115else
9116  ac_check_lib_save_LIBS=$LIBS
9117LIBS="-lsocket $LIBS $LIBS"
9118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120
9121/* Override any GCC internal prototype to avoid an error.
9122   Use char because int might match the return type of a GCC
9123   builtin and then its argument prototype would still apply.  */
9124#ifdef __cplusplus
9125extern "C"
9126#endif
9127char socket ();
9128int
9129main ()
9130{
9131return socket ();
9132  ;
9133  return 0;
9134}
9135_ACEOF
9136if ac_fn_c_try_link "$LINENO"; then :
9137  ac_cv_lib_socket_socket=yes
9138else
9139  ac_cv_lib_socket_socket=no
9140fi
9141rm -f core conftest.err conftest.$ac_objext \
9142    conftest$ac_exeext conftest.$ac_ext
9143LIBS=$ac_check_lib_save_LIBS
9144fi
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9146$as_echo "$ac_cv_lib_socket_socket" >&6; }
9147if test "x$ac_cv_lib_socket_socket" = xyes; then :
9148  LIBS="-lsocket $LIBS"
9149fi
9150 # SVR4 sockets
9151
9152case "$ac_sys_system" in
9153BeOS*)
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
9155$as_echo_n "checking for socket in -lnet... " >&6; }
9156if ${ac_cv_lib_net_socket+:} false; then :
9157  $as_echo_n "(cached) " >&6
9158else
9159  ac_check_lib_save_LIBS=$LIBS
9160LIBS="-lnet $LIBS $LIBS"
9161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h.  */
9163
9164/* Override any GCC internal prototype to avoid an error.
9165   Use char because int might match the return type of a GCC
9166   builtin and then its argument prototype would still apply.  */
9167#ifdef __cplusplus
9168extern "C"
9169#endif
9170char socket ();
9171int
9172main ()
9173{
9174return socket ();
9175  ;
9176  return 0;
9177}
9178_ACEOF
9179if ac_fn_c_try_link "$LINENO"; then :
9180  ac_cv_lib_net_socket=yes
9181else
9182  ac_cv_lib_net_socket=no
9183fi
9184rm -f core conftest.err conftest.$ac_objext \
9185    conftest$ac_exeext conftest.$ac_ext
9186LIBS=$ac_check_lib_save_LIBS
9187fi
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
9189$as_echo "$ac_cv_lib_net_socket" >&6; }
9190if test "x$ac_cv_lib_net_socket" = xyes; then :
9191  LIBS="-lnet $LIBS"
9192fi
9193 # BeOS
9194;;
9195esac
9196
9197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
9198$as_echo_n "checking for --with-libs... " >&6; }
9199
9200# Check whether --with-libs was given.
9201if test "${with_libs+set}" = set; then :
9202  withval=$with_libs;
9203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9204$as_echo "$withval" >&6; }
9205LIBS="$withval $LIBS"
9206
9207else
9208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209$as_echo "no" >&6; }
9210fi
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9221	if test -n "$ac_tool_prefix"; then
9222  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9223set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
9226if ${ac_cv_path_PKG_CONFIG+:} false; then :
9227  $as_echo_n "(cached) " >&6
9228else
9229  case $PKG_CONFIG in
9230  [\\/]* | ?:[\\/]*)
9231  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9232  ;;
9233  *)
9234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235for as_dir in $PATH
9236do
9237  IFS=$as_save_IFS
9238  test -z "$as_dir" && as_dir=.
9239    for ac_exec_ext in '' $ac_executable_extensions; do
9240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243    break 2
9244  fi
9245done
9246  done
9247IFS=$as_save_IFS
9248
9249  ;;
9250esac
9251fi
9252PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9253if test -n "$PKG_CONFIG"; then
9254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9255$as_echo "$PKG_CONFIG" >&6; }
9256else
9257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258$as_echo "no" >&6; }
9259fi
9260
9261
9262fi
9263if test -z "$ac_cv_path_PKG_CONFIG"; then
9264  ac_pt_PKG_CONFIG=$PKG_CONFIG
9265  # Extract the first word of "pkg-config", so it can be a program name with args.
9266set dummy pkg-config; ac_word=$2
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268$as_echo_n "checking for $ac_word... " >&6; }
9269if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9270  $as_echo_n "(cached) " >&6
9271else
9272  case $ac_pt_PKG_CONFIG in
9273  [\\/]* | ?:[\\/]*)
9274  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9275  ;;
9276  *)
9277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278for as_dir in $PATH
9279do
9280  IFS=$as_save_IFS
9281  test -z "$as_dir" && as_dir=.
9282    for ac_exec_ext in '' $ac_executable_extensions; do
9283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9284    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286    break 2
9287  fi
9288done
9289  done
9290IFS=$as_save_IFS
9291
9292  ;;
9293esac
9294fi
9295ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9296if test -n "$ac_pt_PKG_CONFIG"; then
9297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9298$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9299else
9300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301$as_echo "no" >&6; }
9302fi
9303
9304  if test "x$ac_pt_PKG_CONFIG" = x; then
9305    PKG_CONFIG=""
9306  else
9307    case $cross_compiling:$ac_tool_warned in
9308yes:)
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9311ac_tool_warned=yes ;;
9312esac
9313    PKG_CONFIG=$ac_pt_PKG_CONFIG
9314  fi
9315else
9316  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9317fi
9318
9319fi
9320if test -n "$PKG_CONFIG"; then
9321	_pkg_min_version=0.9.0
9322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9323$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9324	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9326$as_echo "yes" >&6; }
9327	else
9328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329$as_echo "no" >&6; }
9330		PKG_CONFIG=""
9331	fi
9332fi
9333
9334# Check for use of the system expat library
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
9336$as_echo_n "checking for --with-system-expat... " >&6; }
9337
9338# Check whether --with-system_expat was given.
9339if test "${with_system_expat+set}" = set; then :
9340  withval=$with_system_expat;
9341else
9342  with_system_expat="no"
9343fi
9344
9345
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
9347$as_echo "$with_system_expat" >&6; }
9348
9349# Check for use of the system libffi library
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
9351$as_echo_n "checking for --with-system-ffi... " >&6; }
9352
9353# Check whether --with-system_ffi was given.
9354if test "${with_system_ffi+set}" = set; then :
9355  withval=$with_system_ffi;
9356else
9357  with_system_ffi="no"
9358fi
9359
9360
9361if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
9362    LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
9363else
9364    LIBFFI_INCLUDEDIR=""
9365fi
9366
9367
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
9369$as_echo "$with_system_ffi" >&6; }
9370
9371# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
9372
9373
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
9375$as_echo_n "checking for --with-tcltk-includes... " >&6; }
9376
9377# Check whether --with-tcltk-includes was given.
9378if test "${with_tcltk_includes+set}" = set; then :
9379  withval=$with_tcltk_includes;
9380else
9381  with_tcltk_includes="default"
9382fi
9383
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
9385$as_echo "$with_tcltk_includes" >&6; }
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
9387$as_echo_n "checking for --with-tcltk-libs... " >&6; }
9388
9389# Check whether --with-tcltk-libs was given.
9390if test "${with_tcltk_libs+set}" = set; then :
9391  withval=$with_tcltk_libs;
9392else
9393  with_tcltk_libs="default"
9394fi
9395
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
9397$as_echo "$with_tcltk_libs" >&6; }
9398if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
9399then
9400  if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
9401  then
9402    as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
9403  fi
9404  TCLTK_INCLUDES=""
9405  TCLTK_LIBS=""
9406else
9407  TCLTK_INCLUDES="$with_tcltk_includes"
9408  TCLTK_LIBS="$with_tcltk_libs"
9409fi
9410
9411# Check for --with-dbmliborder
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
9413$as_echo_n "checking for --with-dbmliborder... " >&6; }
9414
9415# Check whether --with-dbmliborder was given.
9416if test "${with_dbmliborder+set}" = set; then :
9417  withval=$with_dbmliborder;
9418if test x$with_dbmliborder = xyes
9419then
9420as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
9421else
9422  for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
9423    if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
9424    then
9425      as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
9426    fi
9427  done
9428fi
9429fi
9430
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
9432$as_echo "$with_dbmliborder" >&6; }
9433
9434# Determine if signalmodule should be used.
9435
9436
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
9438$as_echo_n "checking for --with-signal-module... " >&6; }
9439
9440# Check whether --with-signal-module was given.
9441if test "${with_signal_module+set}" = set; then :
9442  withval=$with_signal_module;
9443fi
9444
9445
9446if test -z "$with_signal_module"
9447then with_signal_module="yes"
9448fi
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
9450$as_echo "$with_signal_module" >&6; }
9451
9452if test "${with_signal_module}" = "yes"; then
9453	USE_SIGNAL_MODULE=""
9454	SIGNAL_OBJS=""
9455else
9456	USE_SIGNAL_MODULE="#"
9457	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
9458fi
9459
9460# This is used to generate Setup.config
9461
9462USE_THREAD_MODULE=""
9463
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
9465$as_echo_n "checking for --with-dec-threads... " >&6; }
9466
9467
9468# Check whether --with-dec-threads was given.
9469if test "${with_dec_threads+set}" = set; then :
9470  withval=$with_dec_threads;
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9472$as_echo "$withval" >&6; }
9473LDLAST=-threads
9474if test "${with_thread+set}" != set; then
9475   with_thread="$withval";
9476fi
9477else
9478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479$as_echo "no" >&6; }
9480fi
9481
9482
9483# Templates for things AC_DEFINEd more than once.
9484# For a single AC_DEFINE, no template is needed.
9485
9486
9487
9488
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
9490$as_echo_n "checking for --with-threads... " >&6; }
9491
9492# Check whether --with-threads was given.
9493if test "${with_threads+set}" = set; then :
9494  withval=$with_threads;
9495fi
9496
9497
9498# --with-thread is deprecated, but check for it anyway
9499
9500# Check whether --with-thread was given.
9501if test "${with_thread+set}" = set; then :
9502  withval=$with_thread; with_threads=$with_thread
9503fi
9504
9505
9506if test -z "$with_threads"
9507then with_threads="yes"
9508fi
9509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
9510$as_echo "$with_threads" >&6; }
9511
9512
9513if test "$with_threads" = "no"
9514then
9515    USE_THREAD_MODULE="#"
9516elif test "$ac_cv_pthread_is_default" = yes
9517then
9518    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9519
9520    # Defining _REENTRANT on system with POSIX threads should not hurt.
9521    $as_echo "#define _REENTRANT 1" >>confdefs.h
9522
9523    posix_threads=yes
9524    THREADOBJ="Python/thread.o"
9525elif test "$ac_cv_kpthread" = "yes"
9526then
9527    CC="$CC -Kpthread"
9528    if test "$ac_cv_cxx_thread" = "yes"; then
9529        CXX="$CXX -Kpthread"
9530    fi
9531    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9532
9533    posix_threads=yes
9534    THREADOBJ="Python/thread.o"
9535elif test "$ac_cv_kthread" = "yes"
9536then
9537    CC="$CC -Kthread"
9538    if test "$ac_cv_cxx_thread" = "yes"; then
9539        CXX="$CXX -Kthread"
9540    fi
9541    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9542
9543    posix_threads=yes
9544    THREADOBJ="Python/thread.o"
9545elif test "$ac_cv_pthread" = "yes"
9546then
9547    CC="$CC -pthread"
9548    if test "$ac_cv_cxx_thread" = "yes"; then
9549        CXX="$CXX -pthread"
9550    fi
9551    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9552
9553    posix_threads=yes
9554    THREADOBJ="Python/thread.o"
9555else
9556    if test ! -z "$with_threads" -a -d "$with_threads"
9557    then LDFLAGS="$LDFLAGS -L$with_threads"
9558    fi
9559    if test ! -z "$withval" -a -d "$withval"
9560    then LDFLAGS="$LDFLAGS -L$withval"
9561    fi
9562
9563    # According to the POSIX spec, a pthreads implementation must
9564    # define _POSIX_THREADS in unistd.h. Some apparently don't
9565    # (e.g. gnu pth with pthread emulation)
9566    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
9567$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
9568    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h.  */
9570
9571#include <unistd.h>
9572#ifdef _POSIX_THREADS
9573yes
9574#endif
9575
9576_ACEOF
9577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9578  $EGREP "yes" >/dev/null 2>&1; then :
9579  unistd_defines_pthreads=yes
9580else
9581  unistd_defines_pthreads=no
9582fi
9583rm -f conftest*
9584
9585    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
9586$as_echo "$unistd_defines_pthreads" >&6; }
9587
9588    $as_echo "#define _REENTRANT 1" >>confdefs.h
9589
9590    ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
9591if test "x$ac_cv_header_cthreads_h" = xyes; then :
9592  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9593
9594    $as_echo "#define C_THREADS 1" >>confdefs.h
9595
9596
9597$as_echo "#define HURD_C_THREADS 1" >>confdefs.h
9598
9599    LIBS="$LIBS -lthreads"
9600    THREADOBJ="Python/thread.o"
9601else
9602
9603    ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
9604if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
9605  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9606
9607    $as_echo "#define C_THREADS 1" >>confdefs.h
9608
9609
9610$as_echo "#define MACH_C_THREADS 1" >>confdefs.h
9611
9612    THREADOBJ="Python/thread.o"
9613else
9614
9615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
9616$as_echo_n "checking for --with-pth... " >&6; }
9617
9618# Check whether --with-pth was given.
9619if test "${with_pth+set}" = set; then :
9620  withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9621$as_echo "$withval" >&6; }
9622                  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9623
9624
9625$as_echo "#define HAVE_PTH 1" >>confdefs.h
9626
9627                  LIBS="-lpth $LIBS"
9628                  THREADOBJ="Python/thread.o"
9629else
9630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631$as_echo "no" >&6; }
9632
9633    # Just looking for pthread_create in libpthread is not enough:
9634    # on HP/UX, pthread.h renames pthread_create to a different symbol name.
9635    # So we really have to include pthread.h, and then link.
9636    _libs=$LIBS
9637    LIBS="$LIBS -lpthread"
9638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
9639$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
9640    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h.  */
9642
9643#include <stdio.h>
9644#include <pthread.h>
9645
9646void * start_routine (void *arg) { exit (0); }
9647int
9648main ()
9649{
9650
9651pthread_create (NULL, NULL, start_routine, NULL)
9652  ;
9653  return 0;
9654}
9655_ACEOF
9656if ac_fn_c_try_link "$LINENO"; then :
9657
9658    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9659$as_echo "yes" >&6; }
9660    $as_echo "#define WITH_THREAD 1" >>confdefs.h
9661
9662    posix_threads=yes
9663    THREADOBJ="Python/thread.o"
9664else
9665
9666    LIBS=$_libs
9667    ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
9668if test "x$ac_cv_func_pthread_detach" = xyes; then :
9669  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9670
9671    posix_threads=yes
9672    THREADOBJ="Python/thread.o"
9673else
9674
9675    ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
9676if test "x$ac_cv_header_atheos_threads_h" = xyes; then :
9677  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9678
9679
9680$as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
9681
9682    THREADOBJ="Python/thread.o"
9683else
9684
9685    ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
9686if test "x$ac_cv_header_kernel_OS_h" = xyes; then :
9687  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9688
9689
9690$as_echo "#define BEOS_THREADS 1" >>confdefs.h
9691
9692    THREADOBJ="Python/thread.o"
9693else
9694
9695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
9696$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
9697if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
9698  $as_echo_n "(cached) " >&6
9699else
9700  ac_check_lib_save_LIBS=$LIBS
9701LIBS="-lpthreads  $LIBS"
9702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704
9705/* Override any GCC internal prototype to avoid an error.
9706   Use char because int might match the return type of a GCC
9707   builtin and then its argument prototype would still apply.  */
9708#ifdef __cplusplus
9709extern "C"
9710#endif
9711char pthread_create ();
9712int
9713main ()
9714{
9715return pthread_create ();
9716  ;
9717  return 0;
9718}
9719_ACEOF
9720if ac_fn_c_try_link "$LINENO"; then :
9721  ac_cv_lib_pthreads_pthread_create=yes
9722else
9723  ac_cv_lib_pthreads_pthread_create=no
9724fi
9725rm -f core conftest.err conftest.$ac_objext \
9726    conftest$ac_exeext conftest.$ac_ext
9727LIBS=$ac_check_lib_save_LIBS
9728fi
9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
9730$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
9731if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
9732  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9733
9734    posix_threads=yes
9735    LIBS="$LIBS -lpthreads"
9736    THREADOBJ="Python/thread.o"
9737else
9738
9739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
9740$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
9741if ${ac_cv_lib_c_r_pthread_create+:} false; then :
9742  $as_echo_n "(cached) " >&6
9743else
9744  ac_check_lib_save_LIBS=$LIBS
9745LIBS="-lc_r  $LIBS"
9746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h.  */
9748
9749/* Override any GCC internal prototype to avoid an error.
9750   Use char because int might match the return type of a GCC
9751   builtin and then its argument prototype would still apply.  */
9752#ifdef __cplusplus
9753extern "C"
9754#endif
9755char pthread_create ();
9756int
9757main ()
9758{
9759return pthread_create ();
9760  ;
9761  return 0;
9762}
9763_ACEOF
9764if ac_fn_c_try_link "$LINENO"; then :
9765  ac_cv_lib_c_r_pthread_create=yes
9766else
9767  ac_cv_lib_c_r_pthread_create=no
9768fi
9769rm -f core conftest.err conftest.$ac_objext \
9770    conftest$ac_exeext conftest.$ac_ext
9771LIBS=$ac_check_lib_save_LIBS
9772fi
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
9774$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
9775if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
9776  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9777
9778    posix_threads=yes
9779    LIBS="$LIBS -lc_r"
9780    THREADOBJ="Python/thread.o"
9781else
9782
9783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
9784$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
9785if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
9786  $as_echo_n "(cached) " >&6
9787else
9788  ac_check_lib_save_LIBS=$LIBS
9789LIBS="-lpthread  $LIBS"
9790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792
9793/* Override any GCC internal prototype to avoid an error.
9794   Use char because int might match the return type of a GCC
9795   builtin and then its argument prototype would still apply.  */
9796#ifdef __cplusplus
9797extern "C"
9798#endif
9799char __pthread_create_system ();
9800int
9801main ()
9802{
9803return __pthread_create_system ();
9804  ;
9805  return 0;
9806}
9807_ACEOF
9808if ac_fn_c_try_link "$LINENO"; then :
9809  ac_cv_lib_pthread___pthread_create_system=yes
9810else
9811  ac_cv_lib_pthread___pthread_create_system=no
9812fi
9813rm -f core conftest.err conftest.$ac_objext \
9814    conftest$ac_exeext conftest.$ac_ext
9815LIBS=$ac_check_lib_save_LIBS
9816fi
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
9818$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
9819if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
9820  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9821
9822    posix_threads=yes
9823    LIBS="$LIBS -lpthread"
9824    THREADOBJ="Python/thread.o"
9825else
9826
9827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
9828$as_echo_n "checking for pthread_create in -lcma... " >&6; }
9829if ${ac_cv_lib_cma_pthread_create+:} false; then :
9830  $as_echo_n "(cached) " >&6
9831else
9832  ac_check_lib_save_LIBS=$LIBS
9833LIBS="-lcma  $LIBS"
9834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h.  */
9836
9837/* Override any GCC internal prototype to avoid an error.
9838   Use char because int might match the return type of a GCC
9839   builtin and then its argument prototype would still apply.  */
9840#ifdef __cplusplus
9841extern "C"
9842#endif
9843char pthread_create ();
9844int
9845main ()
9846{
9847return pthread_create ();
9848  ;
9849  return 0;
9850}
9851_ACEOF
9852if ac_fn_c_try_link "$LINENO"; then :
9853  ac_cv_lib_cma_pthread_create=yes
9854else
9855  ac_cv_lib_cma_pthread_create=no
9856fi
9857rm -f core conftest.err conftest.$ac_objext \
9858    conftest$ac_exeext conftest.$ac_ext
9859LIBS=$ac_check_lib_save_LIBS
9860fi
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
9862$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
9863if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
9864  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9865
9866    posix_threads=yes
9867    LIBS="$LIBS -lcma"
9868    THREADOBJ="Python/thread.o"
9869else
9870
9871    USE_THREAD_MODULE="#"
9872fi
9873
9874
9875fi
9876
9877fi
9878
9879fi
9880
9881fi
9882
9883
9884fi
9885
9886
9887fi
9888
9889fi
9890rm -f core conftest.err conftest.$ac_objext \
9891    conftest$ac_exeext conftest.$ac_ext
9892fi
9893
9894fi
9895
9896
9897fi
9898
9899
9900
9901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
9902$as_echo_n "checking for usconfig in -lmpc... " >&6; }
9903if ${ac_cv_lib_mpc_usconfig+:} false; then :
9904  $as_echo_n "(cached) " >&6
9905else
9906  ac_check_lib_save_LIBS=$LIBS
9907LIBS="-lmpc  $LIBS"
9908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909/* end confdefs.h.  */
9910
9911/* Override any GCC internal prototype to avoid an error.
9912   Use char because int might match the return type of a GCC
9913   builtin and then its argument prototype would still apply.  */
9914#ifdef __cplusplus
9915extern "C"
9916#endif
9917char usconfig ();
9918int
9919main ()
9920{
9921return usconfig ();
9922  ;
9923  return 0;
9924}
9925_ACEOF
9926if ac_fn_c_try_link "$LINENO"; then :
9927  ac_cv_lib_mpc_usconfig=yes
9928else
9929  ac_cv_lib_mpc_usconfig=no
9930fi
9931rm -f core conftest.err conftest.$ac_objext \
9932    conftest$ac_exeext conftest.$ac_ext
9933LIBS=$ac_check_lib_save_LIBS
9934fi
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
9936$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
9937if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
9938  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9939
9940    LIBS="$LIBS -lmpc"
9941    THREADOBJ="Python/thread.o"
9942    USE_THREAD_MODULE=""
9943fi
9944
9945
9946    if test "$posix_threads" != "yes"; then
9947      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
9948$as_echo_n "checking for thr_create in -lthread... " >&6; }
9949if ${ac_cv_lib_thread_thr_create+:} false; then :
9950  $as_echo_n "(cached) " >&6
9951else
9952  ac_check_lib_save_LIBS=$LIBS
9953LIBS="-lthread  $LIBS"
9954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h.  */
9956
9957/* Override any GCC internal prototype to avoid an error.
9958   Use char because int might match the return type of a GCC
9959   builtin and then its argument prototype would still apply.  */
9960#ifdef __cplusplus
9961extern "C"
9962#endif
9963char thr_create ();
9964int
9965main ()
9966{
9967return thr_create ();
9968  ;
9969  return 0;
9970}
9971_ACEOF
9972if ac_fn_c_try_link "$LINENO"; then :
9973  ac_cv_lib_thread_thr_create=yes
9974else
9975  ac_cv_lib_thread_thr_create=no
9976fi
9977rm -f core conftest.err conftest.$ac_objext \
9978    conftest$ac_exeext conftest.$ac_ext
9979LIBS=$ac_check_lib_save_LIBS
9980fi
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
9982$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
9983if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
9984  $as_echo "#define WITH_THREAD 1" >>confdefs.h
9985
9986      LIBS="$LIBS -lthread"
9987      THREADOBJ="Python/thread.o"
9988      USE_THREAD_MODULE=""
9989fi
9990
9991    fi
9992
9993    if test "$USE_THREAD_MODULE" != "#"
9994    then
9995        # If the above checks didn't disable threads, (at least) OSF1
9996        # needs this '-threads' argument during linking.
9997        case $ac_sys_system in
9998        OSF1) LDLAST=-threads;;
9999        esac
10000    fi
10001fi
10002
10003if test "$posix_threads" = "yes"; then
10004      if test "$unistd_defines_pthreads" = "no"; then
10005
10006$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
10007
10008      fi
10009
10010      # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
10011      case  $ac_sys_system/$ac_sys_release in
10012      SunOS/5.6)
10013$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
10014
10015		       ;;
10016      SunOS/5.8)
10017$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10018
10019		       ;;
10020      AIX/*)
10021$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10022
10023		       ;;
10024      esac
10025
10026      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10027$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
10028      if ${ac_cv_pthread_system_supported+:} false; then :
10029  $as_echo_n "(cached) " >&6
10030else
10031  if test "$cross_compiling" = yes; then :
10032  ac_cv_pthread_system_supported=no
10033else
10034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035/* end confdefs.h.  */
10036
10037      #include <stdio.h>
10038      #include <pthread.h>
10039      void *foo(void *parm) {
10040        return NULL;
10041      }
10042      main() {
10043        pthread_attr_t attr;
10044        pthread_t id;
10045        if (pthread_attr_init(&attr)) exit(-1);
10046        if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
10047        if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
10048        exit(0);
10049      }
10050_ACEOF
10051if ac_fn_c_try_run "$LINENO"; then :
10052  ac_cv_pthread_system_supported=yes
10053else
10054  ac_cv_pthread_system_supported=no
10055fi
10056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10057  conftest.$ac_objext conftest.beam conftest.$ac_ext
10058fi
10059
10060
10061fi
10062
10063      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10064$as_echo "$ac_cv_pthread_system_supported" >&6; }
10065      if test "$ac_cv_pthread_system_supported" = "yes"; then
10066
10067$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
10068
10069      fi
10070      for ac_func in pthread_sigmask
10071do :
10072  ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
10073if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
10074  cat >>confdefs.h <<_ACEOF
10075#define HAVE_PTHREAD_SIGMASK 1
10076_ACEOF
10077 case $ac_sys_system in
10078        CYGWIN*)
10079
10080$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
10081
10082            ;;
10083        esac
10084fi
10085done
10086
10087      for ac_func in pthread_atfork
10088do :
10089  ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
10090if test "x$ac_cv_func_pthread_atfork" = xyes; then :
10091  cat >>confdefs.h <<_ACEOF
10092#define HAVE_PTHREAD_ATFORK 1
10093_ACEOF
10094
10095fi
10096done
10097
10098fi
10099
10100
10101# Check for enable-ipv6
10102
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10104$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
10105# Check whether --enable-ipv6 was given.
10106if test "${enable_ipv6+set}" = set; then :
10107  enableval=$enable_ipv6;  case "$enableval" in
10108  no)
10109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110$as_echo "no" >&6; }
10111       ipv6=no
10112       ;;
10113  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10114$as_echo "yes" >&6; }
10115       $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
10116
10117       ipv6=yes
10118       ;;
10119  esac
10120else
10121
10122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124 /* AF_INET6 available check */
10125#include <sys/types.h>
10126#include <sys/socket.h>
10127int
10128main ()
10129{
10130int domain = AF_INET6;
10131  ;
10132  return 0;
10133}
10134_ACEOF
10135if ac_fn_c_try_compile "$LINENO"; then :
10136
10137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10138$as_echo "yes" >&6; }
10139  ipv6=yes
10140
10141else
10142
10143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144$as_echo "no" >&6; }
10145  ipv6=no
10146
10147fi
10148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149
10150if test "$ipv6" = "yes"; then
10151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
10152$as_echo_n "checking if RFC2553 API is available... " >&6; }
10153	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h.  */
10155
10156	  #include <sys/types.h>
10157#include <netinet/in.h>
10158int
10159main ()
10160{
10161struct sockaddr_in6 x;
10162			    x.sin6_scope_id;
10163  ;
10164  return 0;
10165}
10166
10167_ACEOF
10168if ac_fn_c_try_compile "$LINENO"; then :
10169
10170	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10171$as_echo "yes" >&6; }
10172	  ipv6=yes
10173
10174else
10175
10176	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177$as_echo "no" >&6; }
10178	  ipv6=no
10179
10180fi
10181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182fi
10183
10184if test "$ipv6" = "yes"; then
10185	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
10186
10187fi
10188
10189fi
10190
10191
10192ipv6type=unknown
10193ipv6lib=none
10194ipv6trylibc=no
10195
10196if test "$ipv6" = "yes"; then
10197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
10198$as_echo_n "checking ipv6 stack type... " >&6; }
10199	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
10200	do
10201		case $i in
10202		inria)
10203						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205
10206#include <netinet/in.h>
10207#ifdef IPV6_INRIA_VERSION
10208yes
10209#endif
10210_ACEOF
10211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10212  $EGREP "yes" >/dev/null 2>&1; then :
10213  ipv6type=$i
10214fi
10215rm -f conftest*
10216
10217			;;
10218		kame)
10219						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h.  */
10221
10222#include <netinet/in.h>
10223#ifdef __KAME__
10224yes
10225#endif
10226_ACEOF
10227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10228  $EGREP "yes" >/dev/null 2>&1; then :
10229  ipv6type=$i;
10230				ipv6lib=inet6
10231				ipv6libdir=/usr/local/v6/lib
10232				ipv6trylibc=yes
10233fi
10234rm -f conftest*
10235
10236			;;
10237		linux-glibc)
10238						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239/* end confdefs.h.  */
10240
10241#include <features.h>
10242#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
10243yes
10244#endif
10245_ACEOF
10246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10247  $EGREP "yes" >/dev/null 2>&1; then :
10248  ipv6type=$i;
10249				ipv6trylibc=yes
10250fi
10251rm -f conftest*
10252
10253			;;
10254		linux-inet6)
10255						if test -d /usr/inet6; then
10256				ipv6type=$i
10257				ipv6lib=inet6
10258				ipv6libdir=/usr/inet6/lib
10259				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
10260			fi
10261			;;
10262		solaris)
10263			if test -f /etc/netconfig; then
10264                          if $GREP -q tcp6 /etc/netconfig; then
10265				ipv6type=$i
10266				ipv6trylibc=yes
10267                          fi
10268                        fi
10269			;;
10270		toshiba)
10271			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273
10274#include <sys/param.h>
10275#ifdef _TOSHIBA_INET6
10276yes
10277#endif
10278_ACEOF
10279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10280  $EGREP "yes" >/dev/null 2>&1; then :
10281  ipv6type=$i;
10282				ipv6lib=inet6;
10283				ipv6libdir=/usr/local/v6/lib
10284fi
10285rm -f conftest*
10286
10287			;;
10288		v6d)
10289			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h.  */
10291
10292#include </usr/local/v6/include/sys/v6config.h>
10293#ifdef __V6D__
10294yes
10295#endif
10296_ACEOF
10297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10298  $EGREP "yes" >/dev/null 2>&1; then :
10299  ipv6type=$i;
10300				ipv6lib=v6;
10301				ipv6libdir=/usr/local/v6/lib;
10302				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
10303fi
10304rm -f conftest*
10305
10306			;;
10307		zeta)
10308			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309/* end confdefs.h.  */
10310
10311#include <sys/param.h>
10312#ifdef _ZETA_MINAMI_INET6
10313yes
10314#endif
10315_ACEOF
10316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10317  $EGREP "yes" >/dev/null 2>&1; then :
10318  ipv6type=$i;
10319				ipv6lib=inet6;
10320				ipv6libdir=/usr/local/v6/lib
10321fi
10322rm -f conftest*
10323
10324			;;
10325		esac
10326		if test "$ipv6type" != "unknown"; then
10327			break
10328		fi
10329	done
10330	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
10331$as_echo "$ipv6type" >&6; }
10332fi
10333
10334if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
10335	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
10336		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
10337		echo "using lib$ipv6lib"
10338	else
10339		if test $ipv6trylibc = "yes"; then
10340			echo "using libc"
10341		else
10342			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
10343			echo "You need to fetch lib$ipv6lib.a from appropriate"
10344			echo 'ipv6 kit and compile beforehand.'
10345			exit 1
10346		fi
10347	fi
10348fi
10349
10350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
10351$as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
10352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353/* end confdefs.h.  */
10354
10355  #include <Carbon/Carbon.h>
10356int
10357main ()
10358{
10359FSIORefNum fRef = 0
10360  ;
10361  return 0;
10362}
10363
10364_ACEOF
10365if ac_fn_c_try_compile "$LINENO"; then :
10366
10367
10368$as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
10369
10370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10371$as_echo "yes" >&6; }
10372
10373else
10374
10375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376$as_echo "no" >&6; }
10377
10378fi
10379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380
10381# Check for --with-doc-strings
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
10383$as_echo_n "checking for --with-doc-strings... " >&6; }
10384
10385# Check whether --with-doc-strings was given.
10386if test "${with_doc_strings+set}" = set; then :
10387  withval=$with_doc_strings;
10388fi
10389
10390
10391if test -z "$with_doc_strings"
10392then with_doc_strings="yes"
10393fi
10394if test "$with_doc_strings" != "no"
10395then
10396
10397$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
10398
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
10401$as_echo "$with_doc_strings" >&6; }
10402
10403# Check for Python-specific malloc support
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
10405$as_echo_n "checking for --with-tsc... " >&6; }
10406
10407# Check whether --with-tsc was given.
10408if test "${with_tsc+set}" = set; then :
10409  withval=$with_tsc;
10410if test "$withval" != no
10411then
10412
10413$as_echo "#define WITH_TSC 1" >>confdefs.h
10414
10415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10416$as_echo "yes" >&6; }
10417else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418$as_echo "no" >&6; }
10419fi
10420else
10421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422$as_echo "no" >&6; }
10423fi
10424
10425
10426# Check for Python-specific malloc support
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
10428$as_echo_n "checking for --with-pymalloc... " >&6; }
10429
10430# Check whether --with-pymalloc was given.
10431if test "${with_pymalloc+set}" = set; then :
10432  withval=$with_pymalloc;
10433fi
10434
10435
10436if test -z "$with_pymalloc"
10437then with_pymalloc="yes"
10438fi
10439if test "$with_pymalloc" != "no"
10440then
10441
10442$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
10443
10444fi
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
10446$as_echo "$with_pymalloc" >&6; }
10447
10448# Check for Valgrind support
10449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
10450$as_echo_n "checking for --with-valgrind... " >&6; }
10451
10452# Check whether --with-valgrind was given.
10453if test "${with_valgrind+set}" = set; then :
10454  withval=$with_valgrind;
10455else
10456  with_valgrind=no
10457fi
10458
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
10460$as_echo "$with_valgrind" >&6; }
10461if test "$with_valgrind" != no; then
10462    ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
10463if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
10464
10465$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
10466
10467else
10468  as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
10469
10470fi
10471
10472
10473fi
10474
10475# Check for --with-wctype-functions
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
10477$as_echo_n "checking for --with-wctype-functions... " >&6; }
10478
10479# Check whether --with-wctype-functions was given.
10480if test "${with_wctype_functions+set}" = set; then :
10481  withval=$with_wctype_functions;
10482if test "$withval" != no
10483then
10484
10485$as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
10486
10487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10488$as_echo "yes" >&6; }
10489else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490$as_echo "no" >&6; }
10491fi
10492else
10493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494$as_echo "no" >&6; }
10495fi
10496
10497
10498# -I${DLINCLDIR} is added to the compile rule for importdl.o
10499
10500DLINCLDIR=.
10501
10502# the dlopen() function means we might want to use dynload_shlib.o. some
10503# platforms, such as AIX, have dlopen(), but don't want to use it.
10504for ac_func in dlopen
10505do :
10506  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10507if test "x$ac_cv_func_dlopen" = xyes; then :
10508  cat >>confdefs.h <<_ACEOF
10509#define HAVE_DLOPEN 1
10510_ACEOF
10511
10512fi
10513done
10514
10515
10516# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
10517# loading of modules.
10518
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
10520$as_echo_n "checking DYNLOADFILE... " >&6; }
10521if test -z "$DYNLOADFILE"
10522then
10523	case $ac_sys_system/$ac_sys_release in
10524	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
10525	if test "$ac_cv_func_dlopen" = yes
10526	then DYNLOADFILE="dynload_shlib.o"
10527	else DYNLOADFILE="dynload_aix.o"
10528	fi
10529	;;
10530	BeOS*) DYNLOADFILE="dynload_beos.o";;
10531	hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
10532	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
10533	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
10534	atheos*) DYNLOADFILE="dynload_atheos.o";;
10535	*)
10536	# use dynload_shlib.c and dlopen() if we have it; otherwise stub
10537	# out any dynamic loading
10538	if test "$ac_cv_func_dlopen" = yes
10539	then DYNLOADFILE="dynload_shlib.o"
10540	else DYNLOADFILE="dynload_stub.o"
10541	fi
10542	;;
10543	esac
10544fi
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
10546$as_echo "$DYNLOADFILE" >&6; }
10547if test "$DYNLOADFILE" != "dynload_stub.o"
10548then
10549
10550$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
10551
10552fi
10553
10554# MACHDEP_OBJS can be set to platform-specific object files needed by Python
10555
10556
10557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
10558$as_echo_n "checking MACHDEP_OBJS... " >&6; }
10559if test -z "$MACHDEP_OBJS"
10560then
10561	MACHDEP_OBJS=$extra_machdep_objs
10562else
10563	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
10564fi
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
10566$as_echo "MACHDEP_OBJS" >&6; }
10567
10568# checks for library functions
10569for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
10570 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
10571 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
10572 getentropy \
10573 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
10574 initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime mmap \
10575 mremap nice pathconf pause plock poll pthread_init \
10576 putenv readlink realpath \
10577 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
10578 setgid \
10579 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
10580 setlocale setregid setreuid setresuid setresgid \
10581 setsid setpgid setpgrp setuid setvbuf snprintf \
10582 sigaction siginterrupt sigrelse strftime \
10583 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
10584 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
10585do :
10586  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10587ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10588if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10589  cat >>confdefs.h <<_ACEOF
10590#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10591_ACEOF
10592
10593fi
10594done
10595
10596
10597# For some functions, having a definition is not sufficient, since
10598# we want to take their address.
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
10600$as_echo_n "checking for chroot... " >&6; }
10601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602/* end confdefs.h.  */
10603#include <unistd.h>
10604int
10605main ()
10606{
10607void *x=chroot
10608  ;
10609  return 0;
10610}
10611_ACEOF
10612if ac_fn_c_try_compile "$LINENO"; then :
10613
10614$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
10615
10616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10617$as_echo "yes" >&6; }
10618else
10619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
10621
10622fi
10623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
10625$as_echo_n "checking for link... " >&6; }
10626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h.  */
10628#include <unistd.h>
10629int
10630main ()
10631{
10632void *x=link
10633  ;
10634  return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_compile "$LINENO"; then :
10638
10639$as_echo "#define HAVE_LINK 1" >>confdefs.h
10640
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10642$as_echo "yes" >&6; }
10643else
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645$as_echo "no" >&6; }
10646
10647fi
10648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
10650$as_echo_n "checking for symlink... " >&6; }
10651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652/* end confdefs.h.  */
10653#include <unistd.h>
10654int
10655main ()
10656{
10657void *x=symlink
10658  ;
10659  return 0;
10660}
10661_ACEOF
10662if ac_fn_c_try_compile "$LINENO"; then :
10663
10664$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
10665
10666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10667$as_echo "yes" >&6; }
10668else
10669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670$as_echo "no" >&6; }
10671
10672fi
10673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
10675$as_echo_n "checking for fchdir... " >&6; }
10676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677/* end confdefs.h.  */
10678#include <unistd.h>
10679int
10680main ()
10681{
10682void *x=fchdir
10683  ;
10684  return 0;
10685}
10686_ACEOF
10687if ac_fn_c_try_compile "$LINENO"; then :
10688
10689$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
10690
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10692$as_echo "yes" >&6; }
10693else
10694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
10696
10697fi
10698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
10700$as_echo_n "checking for fsync... " >&6; }
10701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h.  */
10703#include <unistd.h>
10704int
10705main ()
10706{
10707void *x=fsync
10708  ;
10709  return 0;
10710}
10711_ACEOF
10712if ac_fn_c_try_compile "$LINENO"; then :
10713
10714$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
10715
10716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10717$as_echo "yes" >&6; }
10718else
10719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720$as_echo "no" >&6; }
10721
10722fi
10723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
10725$as_echo_n "checking for fdatasync... " >&6; }
10726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727/* end confdefs.h.  */
10728#include <unistd.h>
10729int
10730main ()
10731{
10732void *x=fdatasync
10733  ;
10734  return 0;
10735}
10736_ACEOF
10737if ac_fn_c_try_compile "$LINENO"; then :
10738
10739$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
10740
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10742$as_echo "yes" >&6; }
10743else
10744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
10746
10747fi
10748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
10750$as_echo_n "checking for epoll... " >&6; }
10751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752/* end confdefs.h.  */
10753#include <sys/epoll.h>
10754int
10755main ()
10756{
10757void *x=epoll_create
10758  ;
10759  return 0;
10760}
10761_ACEOF
10762if ac_fn_c_try_compile "$LINENO"; then :
10763
10764$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
10765
10766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10767$as_echo "yes" >&6; }
10768else
10769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770$as_echo "no" >&6; }
10771
10772fi
10773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
10775$as_echo_n "checking for kqueue... " >&6; }
10776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778
10779#include <sys/types.h>
10780#include <sys/event.h>
10781
10782int
10783main ()
10784{
10785int x=kqueue()
10786  ;
10787  return 0;
10788}
10789_ACEOF
10790if ac_fn_c_try_compile "$LINENO"; then :
10791
10792$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
10793
10794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795$as_echo "yes" >&6; }
10796else
10797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798$as_echo "no" >&6; }
10799
10800fi
10801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802# On some systems (eg. FreeBSD 5), we would find a definition of the
10803# functions ctermid_r, setgroups in the library, but no prototype
10804# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
10805# address to avoid compiler warnings and potential miscompilations
10806# because of the missing prototypes.
10807
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
10809$as_echo_n "checking for ctermid_r... " >&6; }
10810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811/* end confdefs.h.  */
10812
10813#include <stdio.h>
10814
10815int
10816main ()
10817{
10818void* p = ctermid_r
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_compile "$LINENO"; then :
10824
10825$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
10826
10827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10828$as_echo "yes" >&6; }
10829else
10830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831$as_echo "no" >&6; }
10832
10833fi
10834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
10837$as_echo_n "checking for flock declaration... " >&6; }
10838if ${ac_cv_flock_decl+:} false; then :
10839  $as_echo_n "(cached) " >&6
10840else
10841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842/* end confdefs.h.  */
10843#include <sys/file.h>
10844int
10845main ()
10846{
10847void* p = flock
10848
10849  ;
10850  return 0;
10851}
10852_ACEOF
10853if ac_fn_c_try_compile "$LINENO"; then :
10854  ac_cv_flock_decl=yes
10855else
10856  ac_cv_flock_decl=no
10857
10858fi
10859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860
10861fi
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
10863$as_echo "$ac_cv_flock_decl" >&6; }
10864if test "x${ac_cv_flock_decl}" = xyes; then
10865  for ac_func in flock
10866do :
10867  ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
10868if test "x$ac_cv_func_flock" = xyes; then :
10869  cat >>confdefs.h <<_ACEOF
10870#define HAVE_FLOCK 1
10871_ACEOF
10872
10873else
10874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
10875$as_echo_n "checking for flock in -lbsd... " >&6; }
10876if ${ac_cv_lib_bsd_flock+:} false; then :
10877  $as_echo_n "(cached) " >&6
10878else
10879  ac_check_lib_save_LIBS=$LIBS
10880LIBS="-lbsd  $LIBS"
10881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882/* end confdefs.h.  */
10883
10884/* Override any GCC internal prototype to avoid an error.
10885   Use char because int might match the return type of a GCC
10886   builtin and then its argument prototype would still apply.  */
10887#ifdef __cplusplus
10888extern "C"
10889#endif
10890char flock ();
10891int
10892main ()
10893{
10894return flock ();
10895  ;
10896  return 0;
10897}
10898_ACEOF
10899if ac_fn_c_try_link "$LINENO"; then :
10900  ac_cv_lib_bsd_flock=yes
10901else
10902  ac_cv_lib_bsd_flock=no
10903fi
10904rm -f core conftest.err conftest.$ac_objext \
10905    conftest$ac_exeext conftest.$ac_ext
10906LIBS=$ac_check_lib_save_LIBS
10907fi
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
10909$as_echo "$ac_cv_lib_bsd_flock" >&6; }
10910if test "x$ac_cv_lib_bsd_flock" = xyes; then :
10911  $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
10912
10913
10914$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
10915
10916
10917fi
10918
10919
10920fi
10921done
10922
10923fi
10924
10925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
10926$as_echo_n "checking for getpagesize... " >&6; }
10927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928/* end confdefs.h.  */
10929
10930#include <unistd.h>
10931
10932int
10933main ()
10934{
10935void* p = getpagesize
10936  ;
10937  return 0;
10938}
10939_ACEOF
10940if ac_fn_c_try_compile "$LINENO"; then :
10941
10942$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
10943
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10945$as_echo "yes" >&6; }
10946else
10947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948$as_echo "no" >&6; }
10949
10950fi
10951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
10954$as_echo_n "checking for broken unsetenv... " >&6; }
10955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956/* end confdefs.h.  */
10957
10958#include <stdlib.h>
10959
10960int
10961main ()
10962{
10963int res = unsetenv("DUMMY")
10964  ;
10965  return 0;
10966}
10967_ACEOF
10968if ac_fn_c_try_compile "$LINENO"; then :
10969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
10971else
10972
10973$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
10974
10975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10976$as_echo "yes" >&6; }
10977
10978fi
10979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980
10981for ac_prog in true
10982do
10983  # Extract the first word of "$ac_prog", so it can be a program name with args.
10984set dummy $ac_prog; ac_word=$2
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986$as_echo_n "checking for $ac_word... " >&6; }
10987if ${ac_cv_prog_TRUE+:} false; then :
10988  $as_echo_n "(cached) " >&6
10989else
10990  if test -n "$TRUE"; then
10991  ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
10992else
10993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $PATH
10995do
10996  IFS=$as_save_IFS
10997  test -z "$as_dir" && as_dir=.
10998    for ac_exec_ext in '' $ac_executable_extensions; do
10999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000    ac_cv_prog_TRUE="$ac_prog"
11001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002    break 2
11003  fi
11004done
11005  done
11006IFS=$as_save_IFS
11007
11008fi
11009fi
11010TRUE=$ac_cv_prog_TRUE
11011if test -n "$TRUE"; then
11012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
11013$as_echo "$TRUE" >&6; }
11014else
11015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016$as_echo "no" >&6; }
11017fi
11018
11019
11020  test -n "$TRUE" && break
11021done
11022test -n "$TRUE" || TRUE="/bin/true"
11023
11024
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
11026$as_echo_n "checking for inet_aton in -lc... " >&6; }
11027if ${ac_cv_lib_c_inet_aton+:} false; then :
11028  $as_echo_n "(cached) " >&6
11029else
11030  ac_check_lib_save_LIBS=$LIBS
11031LIBS="-lc  $LIBS"
11032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033/* end confdefs.h.  */
11034
11035/* Override any GCC internal prototype to avoid an error.
11036   Use char because int might match the return type of a GCC
11037   builtin and then its argument prototype would still apply.  */
11038#ifdef __cplusplus
11039extern "C"
11040#endif
11041char inet_aton ();
11042int
11043main ()
11044{
11045return inet_aton ();
11046  ;
11047  return 0;
11048}
11049_ACEOF
11050if ac_fn_c_try_link "$LINENO"; then :
11051  ac_cv_lib_c_inet_aton=yes
11052else
11053  ac_cv_lib_c_inet_aton=no
11054fi
11055rm -f core conftest.err conftest.$ac_objext \
11056    conftest$ac_exeext conftest.$ac_ext
11057LIBS=$ac_check_lib_save_LIBS
11058fi
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
11060$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
11061if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
11062  $ac_cv_prog_TRUE
11063else
11064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
11065$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
11066if ${ac_cv_lib_resolv_inet_aton+:} false; then :
11067  $as_echo_n "(cached) " >&6
11068else
11069  ac_check_lib_save_LIBS=$LIBS
11070LIBS="-lresolv  $LIBS"
11071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072/* end confdefs.h.  */
11073
11074/* Override any GCC internal prototype to avoid an error.
11075   Use char because int might match the return type of a GCC
11076   builtin and then its argument prototype would still apply.  */
11077#ifdef __cplusplus
11078extern "C"
11079#endif
11080char inet_aton ();
11081int
11082main ()
11083{
11084return inet_aton ();
11085  ;
11086  return 0;
11087}
11088_ACEOF
11089if ac_fn_c_try_link "$LINENO"; then :
11090  ac_cv_lib_resolv_inet_aton=yes
11091else
11092  ac_cv_lib_resolv_inet_aton=no
11093fi
11094rm -f core conftest.err conftest.$ac_objext \
11095    conftest$ac_exeext conftest.$ac_ext
11096LIBS=$ac_check_lib_save_LIBS
11097fi
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
11099$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
11100if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
11101  cat >>confdefs.h <<_ACEOF
11102#define HAVE_LIBRESOLV 1
11103_ACEOF
11104
11105  LIBS="-lresolv $LIBS"
11106
11107fi
11108
11109
11110fi
11111
11112
11113# On Tru64, chflags seems to be present, but calling it will
11114# exit Python
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
11116$as_echo_n "checking for chflags... " >&6; }
11117if ${ac_cv_have_chflags+:} false; then :
11118  $as_echo_n "(cached) " >&6
11119else
11120  if test "$cross_compiling" = yes; then :
11121  ac_cv_have_chflags=cross
11122else
11123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124/* end confdefs.h.  */
11125
11126#include <sys/stat.h>
11127#include <unistd.h>
11128int main(int argc, char*argv[])
11129{
11130  if(chflags(argv[0], 0) != 0)
11131    return 1;
11132  return 0;
11133}
11134
11135_ACEOF
11136if ac_fn_c_try_run "$LINENO"; then :
11137  ac_cv_have_chflags=yes
11138else
11139  ac_cv_have_chflags=no
11140fi
11141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11142  conftest.$ac_objext conftest.beam conftest.$ac_ext
11143fi
11144
11145
11146fi
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
11148$as_echo "$ac_cv_have_chflags" >&6; }
11149if test "$ac_cv_have_chflags" = cross ; then
11150  ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
11151if test "x$ac_cv_func_chflags" = xyes; then :
11152  ac_cv_have_chflags="yes"
11153else
11154  ac_cv_have_chflags="no"
11155fi
11156
11157fi
11158if test "$ac_cv_have_chflags" = yes ; then
11159
11160$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
11161
11162fi
11163
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
11165$as_echo_n "checking for lchflags... " >&6; }
11166if ${ac_cv_have_lchflags+:} false; then :
11167  $as_echo_n "(cached) " >&6
11168else
11169  if test "$cross_compiling" = yes; then :
11170  ac_cv_have_lchflags=cross
11171else
11172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174
11175#include <sys/stat.h>
11176#include <unistd.h>
11177int main(int argc, char*argv[])
11178{
11179  if(lchflags(argv[0], 0) != 0)
11180    return 1;
11181  return 0;
11182}
11183
11184_ACEOF
11185if ac_fn_c_try_run "$LINENO"; then :
11186  ac_cv_have_lchflags=yes
11187else
11188  ac_cv_have_lchflags=no
11189fi
11190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11191  conftest.$ac_objext conftest.beam conftest.$ac_ext
11192fi
11193
11194
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
11197$as_echo "$ac_cv_have_lchflags" >&6; }
11198if test "$ac_cv_have_lchflags" = cross ; then
11199  ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
11200if test "x$ac_cv_func_lchflags" = xyes; then :
11201  ac_cv_have_lchflags="yes"
11202else
11203  ac_cv_have_lchflags="no"
11204fi
11205
11206fi
11207if test "$ac_cv_have_lchflags" = yes ; then
11208
11209$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
11210
11211fi
11212
11213case $ac_sys_system/$ac_sys_release in
11214Darwin/*)
11215	_CUR_CFLAGS="${CFLAGS}"
11216	_CUR_LDFLAGS="${LDFLAGS}"
11217	CFLAGS="${CFLAGS} -Wl,-search_paths_first"
11218	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
11219	;;
11220esac
11221
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
11223$as_echo_n "checking for inflateCopy in -lz... " >&6; }
11224if ${ac_cv_lib_z_inflateCopy+:} false; then :
11225  $as_echo_n "(cached) " >&6
11226else
11227  ac_check_lib_save_LIBS=$LIBS
11228LIBS="-lz  $LIBS"
11229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230/* end confdefs.h.  */
11231
11232/* Override any GCC internal prototype to avoid an error.
11233   Use char because int might match the return type of a GCC
11234   builtin and then its argument prototype would still apply.  */
11235#ifdef __cplusplus
11236extern "C"
11237#endif
11238char inflateCopy ();
11239int
11240main ()
11241{
11242return inflateCopy ();
11243  ;
11244  return 0;
11245}
11246_ACEOF
11247if ac_fn_c_try_link "$LINENO"; then :
11248  ac_cv_lib_z_inflateCopy=yes
11249else
11250  ac_cv_lib_z_inflateCopy=no
11251fi
11252rm -f core conftest.err conftest.$ac_objext \
11253    conftest$ac_exeext conftest.$ac_ext
11254LIBS=$ac_check_lib_save_LIBS
11255fi
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
11257$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
11258if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
11259
11260$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
11261
11262fi
11263
11264
11265case $ac_sys_system/$ac_sys_release in
11266Darwin/*)
11267	CFLAGS="${_CUR_CFLAGS}"
11268	LDFLAGS="${_CUR_LDFLAGS}"
11269	;;
11270esac
11271
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
11273$as_echo_n "checking for hstrerror... " >&6; }
11274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275/* end confdefs.h.  */
11276
11277#include <netdb.h>
11278
11279int
11280main ()
11281{
11282void* p = hstrerror; hstrerror(0)
11283  ;
11284  return 0;
11285}
11286_ACEOF
11287if ac_fn_c_try_link "$LINENO"; then :
11288
11289$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
11290
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11292$as_echo "yes" >&6; }
11293else
11294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295$as_echo "no" >&6; }
11296
11297fi
11298rm -f core conftest.err conftest.$ac_objext \
11299    conftest$ac_exeext conftest.$ac_ext
11300
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11302$as_echo_n "checking for inet_aton... " >&6; }
11303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304/* end confdefs.h.  */
11305
11306#include <sys/types.h>
11307#include <sys/socket.h>
11308#include <netinet/in.h>
11309#include <arpa/inet.h>
11310
11311int
11312main ()
11313{
11314void* p = inet_aton;inet_aton(0,0)
11315  ;
11316  return 0;
11317}
11318_ACEOF
11319if ac_fn_c_try_link "$LINENO"; then :
11320
11321$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11322
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324$as_echo "yes" >&6; }
11325else
11326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327$as_echo "no" >&6; }
11328
11329fi
11330rm -f core conftest.err conftest.$ac_objext \
11331    conftest$ac_exeext conftest.$ac_ext
11332
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
11334$as_echo_n "checking for inet_pton... " >&6; }
11335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336/* end confdefs.h.  */
11337
11338#include <sys/types.h>
11339#include <sys/socket.h>
11340#include <netinet/in.h>
11341#include <arpa/inet.h>
11342
11343int
11344main ()
11345{
11346void* p = inet_pton
11347  ;
11348  return 0;
11349}
11350_ACEOF
11351if ac_fn_c_try_compile "$LINENO"; then :
11352
11353$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
11354
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11356$as_echo "yes" >&6; }
11357else
11358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
11360
11361fi
11362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363
11364# On some systems, setgroups is in unistd.h, on others, in grp.h
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
11366$as_echo_n "checking for setgroups... " >&6; }
11367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368/* end confdefs.h.  */
11369
11370#include <unistd.h>
11371#ifdef HAVE_GRP_H
11372#include <grp.h>
11373#endif
11374
11375int
11376main ()
11377{
11378void* p = setgroups
11379  ;
11380  return 0;
11381}
11382_ACEOF
11383if ac_fn_c_try_compile "$LINENO"; then :
11384
11385$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
11386
11387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388$as_echo "yes" >&6; }
11389else
11390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
11392
11393fi
11394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395
11396# check for openpty and forkpty
11397
11398for ac_func in openpty
11399do :
11400  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
11401if test "x$ac_cv_func_openpty" = xyes; then :
11402  cat >>confdefs.h <<_ACEOF
11403#define HAVE_OPENPTY 1
11404_ACEOF
11405
11406else
11407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
11408$as_echo_n "checking for openpty in -lutil... " >&6; }
11409if ${ac_cv_lib_util_openpty+:} false; then :
11410  $as_echo_n "(cached) " >&6
11411else
11412  ac_check_lib_save_LIBS=$LIBS
11413LIBS="-lutil  $LIBS"
11414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415/* end confdefs.h.  */
11416
11417/* Override any GCC internal prototype to avoid an error.
11418   Use char because int might match the return type of a GCC
11419   builtin and then its argument prototype would still apply.  */
11420#ifdef __cplusplus
11421extern "C"
11422#endif
11423char openpty ();
11424int
11425main ()
11426{
11427return openpty ();
11428  ;
11429  return 0;
11430}
11431_ACEOF
11432if ac_fn_c_try_link "$LINENO"; then :
11433  ac_cv_lib_util_openpty=yes
11434else
11435  ac_cv_lib_util_openpty=no
11436fi
11437rm -f core conftest.err conftest.$ac_objext \
11438    conftest$ac_exeext conftest.$ac_ext
11439LIBS=$ac_check_lib_save_LIBS
11440fi
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
11442$as_echo "$ac_cv_lib_util_openpty" >&6; }
11443if test "x$ac_cv_lib_util_openpty" = xyes; then :
11444  $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
11445 LIBS="$LIBS -lutil"
11446else
11447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
11448$as_echo_n "checking for openpty in -lbsd... " >&6; }
11449if ${ac_cv_lib_bsd_openpty+:} false; then :
11450  $as_echo_n "(cached) " >&6
11451else
11452  ac_check_lib_save_LIBS=$LIBS
11453LIBS="-lbsd  $LIBS"
11454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455/* end confdefs.h.  */
11456
11457/* Override any GCC internal prototype to avoid an error.
11458   Use char because int might match the return type of a GCC
11459   builtin and then its argument prototype would still apply.  */
11460#ifdef __cplusplus
11461extern "C"
11462#endif
11463char openpty ();
11464int
11465main ()
11466{
11467return openpty ();
11468  ;
11469  return 0;
11470}
11471_ACEOF
11472if ac_fn_c_try_link "$LINENO"; then :
11473  ac_cv_lib_bsd_openpty=yes
11474else
11475  ac_cv_lib_bsd_openpty=no
11476fi
11477rm -f core conftest.err conftest.$ac_objext \
11478    conftest$ac_exeext conftest.$ac_ext
11479LIBS=$ac_check_lib_save_LIBS
11480fi
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
11482$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
11483if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
11484  $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
11485 LIBS="$LIBS -lbsd"
11486fi
11487
11488
11489fi
11490
11491
11492fi
11493done
11494
11495for ac_func in forkpty
11496do :
11497  ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
11498if test "x$ac_cv_func_forkpty" = xyes; then :
11499  cat >>confdefs.h <<_ACEOF
11500#define HAVE_FORKPTY 1
11501_ACEOF
11502
11503else
11504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
11505$as_echo_n "checking for forkpty in -lutil... " >&6; }
11506if ${ac_cv_lib_util_forkpty+:} false; then :
11507  $as_echo_n "(cached) " >&6
11508else
11509  ac_check_lib_save_LIBS=$LIBS
11510LIBS="-lutil  $LIBS"
11511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512/* end confdefs.h.  */
11513
11514/* Override any GCC internal prototype to avoid an error.
11515   Use char because int might match the return type of a GCC
11516   builtin and then its argument prototype would still apply.  */
11517#ifdef __cplusplus
11518extern "C"
11519#endif
11520char forkpty ();
11521int
11522main ()
11523{
11524return forkpty ();
11525  ;
11526  return 0;
11527}
11528_ACEOF
11529if ac_fn_c_try_link "$LINENO"; then :
11530  ac_cv_lib_util_forkpty=yes
11531else
11532  ac_cv_lib_util_forkpty=no
11533fi
11534rm -f core conftest.err conftest.$ac_objext \
11535    conftest$ac_exeext conftest.$ac_ext
11536LIBS=$ac_check_lib_save_LIBS
11537fi
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
11539$as_echo "$ac_cv_lib_util_forkpty" >&6; }
11540if test "x$ac_cv_lib_util_forkpty" = xyes; then :
11541  $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
11542 LIBS="$LIBS -lutil"
11543else
11544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
11545$as_echo_n "checking for forkpty in -lbsd... " >&6; }
11546if ${ac_cv_lib_bsd_forkpty+:} false; then :
11547  $as_echo_n "(cached) " >&6
11548else
11549  ac_check_lib_save_LIBS=$LIBS
11550LIBS="-lbsd  $LIBS"
11551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552/* end confdefs.h.  */
11553
11554/* Override any GCC internal prototype to avoid an error.
11555   Use char because int might match the return type of a GCC
11556   builtin and then its argument prototype would still apply.  */
11557#ifdef __cplusplus
11558extern "C"
11559#endif
11560char forkpty ();
11561int
11562main ()
11563{
11564return forkpty ();
11565  ;
11566  return 0;
11567}
11568_ACEOF
11569if ac_fn_c_try_link "$LINENO"; then :
11570  ac_cv_lib_bsd_forkpty=yes
11571else
11572  ac_cv_lib_bsd_forkpty=no
11573fi
11574rm -f core conftest.err conftest.$ac_objext \
11575    conftest$ac_exeext conftest.$ac_ext
11576LIBS=$ac_check_lib_save_LIBS
11577fi
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
11579$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
11580if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
11581  $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
11582 LIBS="$LIBS -lbsd"
11583fi
11584
11585
11586fi
11587
11588
11589fi
11590done
11591
11592
11593# Stuff for expat.
11594for ac_func in memmove
11595do :
11596  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
11597if test "x$ac_cv_func_memmove" = xyes; then :
11598  cat >>confdefs.h <<_ACEOF
11599#define HAVE_MEMMOVE 1
11600_ACEOF
11601
11602fi
11603done
11604
11605
11606# check for long file support functions
11607for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
11608do :
11609  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11611if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11612  cat >>confdefs.h <<_ACEOF
11613#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11614_ACEOF
11615
11616fi
11617done
11618
11619
11620ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
11621if test "x$ac_cv_func_dup2" = xyes; then :
11622  $as_echo "#define HAVE_DUP2 1" >>confdefs.h
11623
11624else
11625  case " $LIBOBJS " in
11626  *" dup2.$ac_objext "* ) ;;
11627  *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
11628 ;;
11629esac
11630
11631fi
11632
11633ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
11634if test "x$ac_cv_func_getcwd" = xyes; then :
11635  $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
11636
11637else
11638  case " $LIBOBJS " in
11639  *" getcwd.$ac_objext "* ) ;;
11640  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
11641 ;;
11642esac
11643
11644fi
11645
11646ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
11647if test "x$ac_cv_func_strdup" = xyes; then :
11648  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
11649
11650else
11651  case " $LIBOBJS " in
11652  *" strdup.$ac_objext "* ) ;;
11653  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
11654 ;;
11655esac
11656
11657fi
11658
11659
11660for ac_func in getpgrp
11661do :
11662  ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
11663if test "x$ac_cv_func_getpgrp" = xyes; then :
11664  cat >>confdefs.h <<_ACEOF
11665#define HAVE_GETPGRP 1
11666_ACEOF
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668/* end confdefs.h.  */
11669#include <unistd.h>
11670int
11671main ()
11672{
11673getpgrp(0);
11674  ;
11675  return 0;
11676}
11677_ACEOF
11678if ac_fn_c_try_compile "$LINENO"; then :
11679
11680$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
11681
11682fi
11683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684
11685fi
11686done
11687
11688for ac_func in setpgrp
11689do :
11690  ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
11691if test "x$ac_cv_func_setpgrp" = xyes; then :
11692  cat >>confdefs.h <<_ACEOF
11693#define HAVE_SETPGRP 1
11694_ACEOF
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696/* end confdefs.h.  */
11697#include <unistd.h>
11698int
11699main ()
11700{
11701setpgrp(0,0);
11702  ;
11703  return 0;
11704}
11705_ACEOF
11706if ac_fn_c_try_compile "$LINENO"; then :
11707
11708$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
11709
11710fi
11711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712
11713fi
11714done
11715
11716for ac_func in gettimeofday
11717do :
11718  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11719if test "x$ac_cv_func_gettimeofday" = xyes; then :
11720  cat >>confdefs.h <<_ACEOF
11721#define HAVE_GETTIMEOFDAY 1
11722_ACEOF
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724/* end confdefs.h.  */
11725#include <sys/time.h>
11726int
11727main ()
11728{
11729gettimeofday((struct timeval*)0,(struct timezone*)0);
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734if ac_fn_c_try_compile "$LINENO"; then :
11735
11736else
11737
11738$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
11739
11740
11741fi
11742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11743
11744fi
11745done
11746
11747
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
11749$as_echo_n "checking for major... " >&6; }
11750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751/* end confdefs.h.  */
11752
11753#if defined(MAJOR_IN_MKDEV)
11754#include <sys/mkdev.h>
11755#elif defined(MAJOR_IN_SYSMACROS)
11756#include <sys/sysmacros.h>
11757#else
11758#include <sys/types.h>
11759#endif
11760
11761int
11762main ()
11763{
11764
11765  makedev(major(0),minor(0));
11766
11767  ;
11768  return 0;
11769}
11770_ACEOF
11771if ac_fn_c_try_link "$LINENO"; then :
11772
11773
11774$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
11775
11776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11777$as_echo "yes" >&6; }
11778
11779else
11780
11781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782$as_echo "no" >&6; }
11783
11784fi
11785rm -f core conftest.err conftest.$ac_objext \
11786    conftest$ac_exeext conftest.$ac_ext
11787
11788# On OSF/1 V5.1, getaddrinfo is available, but a define
11789# for [no]getaddrinfo in netdb.h.
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
11791$as_echo_n "checking for getaddrinfo... " >&6; }
11792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h.  */
11794
11795#include <sys/types.h>
11796#include <sys/socket.h>
11797#include <netdb.h>
11798#include <stdio.h>
11799
11800int
11801main ()
11802{
11803getaddrinfo(NULL, NULL, NULL, NULL);
11804  ;
11805  return 0;
11806}
11807_ACEOF
11808if ac_fn_c_try_link "$LINENO"; then :
11809  have_getaddrinfo=yes
11810else
11811  have_getaddrinfo=no
11812fi
11813rm -f core conftest.err conftest.$ac_objext \
11814    conftest$ac_exeext conftest.$ac_ext
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
11816$as_echo "$have_getaddrinfo" >&6; }
11817if test $have_getaddrinfo = yes
11818then
11819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
11820$as_echo_n "checking getaddrinfo bug... " >&6; }
11821  if ${ac_cv_buggy_getaddrinfo+:} false; then :
11822  $as_echo_n "(cached) " >&6
11823else
11824  if test "$cross_compiling" = yes; then :
11825
11826if test "${enable_ipv6+set}" = set; then
11827  ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
11828else
11829  ac_cv_buggy_getaddrinfo=yes
11830fi
11831else
11832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833/* end confdefs.h.  */
11834
11835#include <stdio.h>
11836#include <sys/types.h>
11837#include <netdb.h>
11838#include <string.h>
11839#include <sys/socket.h>
11840#include <netinet/in.h>
11841
11842int main()
11843{
11844  int passive, gaierr, inet4 = 0, inet6 = 0;
11845  struct addrinfo hints, *ai, *aitop;
11846  char straddr[INET6_ADDRSTRLEN], strport[16];
11847
11848  for (passive = 0; passive <= 1; passive++) {
11849    memset(&hints, 0, sizeof(hints));
11850    hints.ai_family = AF_UNSPEC;
11851    hints.ai_flags = passive ? AI_PASSIVE : 0;
11852    hints.ai_socktype = SOCK_STREAM;
11853    hints.ai_protocol = IPPROTO_TCP;
11854    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
11855      (void)gai_strerror(gaierr);
11856      goto bad;
11857    }
11858    for (ai = aitop; ai; ai = ai->ai_next) {
11859      if (ai->ai_addr == NULL ||
11860          ai->ai_addrlen == 0 ||
11861          getnameinfo(ai->ai_addr, ai->ai_addrlen,
11862                      straddr, sizeof(straddr), strport, sizeof(strport),
11863                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
11864        goto bad;
11865      }
11866      switch (ai->ai_family) {
11867      case AF_INET:
11868        if (strcmp(strport, "54321") != 0) {
11869          goto bad;
11870        }
11871        if (passive) {
11872          if (strcmp(straddr, "0.0.0.0") != 0) {
11873            goto bad;
11874          }
11875        } else {
11876          if (strcmp(straddr, "127.0.0.1") != 0) {
11877            goto bad;
11878          }
11879        }
11880        inet4++;
11881        break;
11882      case AF_INET6:
11883        if (strcmp(strport, "54321") != 0) {
11884          goto bad;
11885        }
11886        if (passive) {
11887          if (strcmp(straddr, "::") != 0) {
11888            goto bad;
11889          }
11890        } else {
11891          if (strcmp(straddr, "::1") != 0) {
11892            goto bad;
11893          }
11894        }
11895        inet6++;
11896        break;
11897      case AF_UNSPEC:
11898        goto bad;
11899        break;
11900      default:
11901        /* another family support? */
11902        break;
11903      }
11904    }
11905    freeaddrinfo(aitop);
11906    aitop = NULL;
11907  }
11908
11909  if (!(inet4 == 0 || inet4 == 2))
11910    goto bad;
11911  if (!(inet6 == 0 || inet6 == 2))
11912    goto bad;
11913
11914  if (aitop)
11915    freeaddrinfo(aitop);
11916  return 0;
11917
11918 bad:
11919  if (aitop)
11920    freeaddrinfo(aitop);
11921  return 1;
11922}
11923
11924_ACEOF
11925if ac_fn_c_try_run "$LINENO"; then :
11926  ac_cv_buggy_getaddrinfo=no
11927else
11928  ac_cv_buggy_getaddrinfo=yes
11929fi
11930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11931  conftest.$ac_objext conftest.beam conftest.$ac_ext
11932fi
11933
11934fi
11935
11936fi
11937
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
11939$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
11940
11941if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
11942then
11943	if test $ipv6 = yes
11944	then
11945		echo 'Fatal: You must get working getaddrinfo() function.'
11946		echo '       or you can specify "--disable-ipv6"'.
11947		exit 1
11948	fi
11949else
11950
11951$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
11952
11953fi
11954
11955for ac_func in getnameinfo
11956do :
11957  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
11958if test "x$ac_cv_func_getnameinfo" = xyes; then :
11959  cat >>confdefs.h <<_ACEOF
11960#define HAVE_GETNAMEINFO 1
11961_ACEOF
11962
11963fi
11964done
11965
11966
11967# checks for structures
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11969$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11970if ${ac_cv_header_time+:} false; then :
11971  $as_echo_n "(cached) " >&6
11972else
11973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974/* end confdefs.h.  */
11975#include <sys/types.h>
11976#include <sys/time.h>
11977#include <time.h>
11978
11979int
11980main ()
11981{
11982if ((struct tm *) 0)
11983return 0;
11984  ;
11985  return 0;
11986}
11987_ACEOF
11988if ac_fn_c_try_compile "$LINENO"; then :
11989  ac_cv_header_time=yes
11990else
11991  ac_cv_header_time=no
11992fi
11993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11994fi
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11996$as_echo "$ac_cv_header_time" >&6; }
11997if test $ac_cv_header_time = yes; then
11998
11999$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12000
12001fi
12002
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12004$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12005if ${ac_cv_struct_tm+:} false; then :
12006  $as_echo_n "(cached) " >&6
12007else
12008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h.  */
12010#include <sys/types.h>
12011#include <time.h>
12012
12013int
12014main ()
12015{
12016struct tm tm;
12017				     int *p = &tm.tm_sec;
12018				     return !p;
12019  ;
12020  return 0;
12021}
12022_ACEOF
12023if ac_fn_c_try_compile "$LINENO"; then :
12024  ac_cv_struct_tm=time.h
12025else
12026  ac_cv_struct_tm=sys/time.h
12027fi
12028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029fi
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12031$as_echo "$ac_cv_struct_tm" >&6; }
12032if test $ac_cv_struct_tm = sys/time.h; then
12033
12034$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12035
12036fi
12037
12038ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12039#include <$ac_cv_struct_tm>
12040
12041"
12042if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12043
12044cat >>confdefs.h <<_ACEOF
12045#define HAVE_STRUCT_TM_TM_ZONE 1
12046_ACEOF
12047
12048
12049fi
12050
12051if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12052
12053$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12054
12055else
12056  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12057"
12058if test "x$ac_cv_have_decl_tzname" = xyes; then :
12059  ac_have_decl=1
12060else
12061  ac_have_decl=0
12062fi
12063
12064cat >>confdefs.h <<_ACEOF
12065#define HAVE_DECL_TZNAME $ac_have_decl
12066_ACEOF
12067
12068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12069$as_echo_n "checking for tzname... " >&6; }
12070if ${ac_cv_var_tzname+:} false; then :
12071  $as_echo_n "(cached) " >&6
12072else
12073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074/* end confdefs.h.  */
12075#include <time.h>
12076#if !HAVE_DECL_TZNAME
12077extern char *tzname[];
12078#endif
12079
12080int
12081main ()
12082{
12083return tzname[0][0];
12084  ;
12085  return 0;
12086}
12087_ACEOF
12088if ac_fn_c_try_link "$LINENO"; then :
12089  ac_cv_var_tzname=yes
12090else
12091  ac_cv_var_tzname=no
12092fi
12093rm -f core conftest.err conftest.$ac_objext \
12094    conftest$ac_exeext conftest.$ac_ext
12095fi
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12097$as_echo "$ac_cv_var_tzname" >&6; }
12098  if test $ac_cv_var_tzname = yes; then
12099
12100$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12101
12102  fi
12103fi
12104
12105ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12106if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12107
12108cat >>confdefs.h <<_ACEOF
12109#define HAVE_STRUCT_STAT_ST_RDEV 1
12110_ACEOF
12111
12112
12113fi
12114
12115ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12116if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
12117
12118cat >>confdefs.h <<_ACEOF
12119#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12120_ACEOF
12121
12122
12123fi
12124
12125ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
12126if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
12127
12128cat >>confdefs.h <<_ACEOF
12129#define HAVE_STRUCT_STAT_ST_FLAGS 1
12130_ACEOF
12131
12132
12133fi
12134
12135ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
12136if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
12137
12138cat >>confdefs.h <<_ACEOF
12139#define HAVE_STRUCT_STAT_ST_GEN 1
12140_ACEOF
12141
12142
12143fi
12144
12145ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
12146if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
12147
12148cat >>confdefs.h <<_ACEOF
12149#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
12150_ACEOF
12151
12152
12153fi
12154
12155ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12156if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12157
12158cat >>confdefs.h <<_ACEOF
12159#define HAVE_STRUCT_STAT_ST_BLOCKS 1
12160_ACEOF
12161
12162
12163fi
12164
12165
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
12167$as_echo_n "checking for time.h that defines altzone... " >&6; }
12168if ${ac_cv_header_time_altzone+:} false; then :
12169  $as_echo_n "(cached) " >&6
12170else
12171
12172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173/* end confdefs.h.  */
12174#include <time.h>
12175int
12176main ()
12177{
12178return altzone;
12179  ;
12180  return 0;
12181}
12182_ACEOF
12183if ac_fn_c_try_compile "$LINENO"; then :
12184  ac_cv_header_time_altzone=yes
12185else
12186  ac_cv_header_time_altzone=no
12187fi
12188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189
12190fi
12191
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
12193$as_echo "$ac_cv_header_time_altzone" >&6; }
12194if test $ac_cv_header_time_altzone = yes; then
12195
12196$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
12197
12198fi
12199
12200was_it_defined=no
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12202$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204/* end confdefs.h.  */
12205
12206#include <sys/types.h>
12207#include <sys/select.h>
12208#include <sys/time.h>
12209
12210int
12211main ()
12212{
12213;
12214  ;
12215  return 0;
12216}
12217_ACEOF
12218if ac_fn_c_try_compile "$LINENO"; then :
12219
12220
12221$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12222
12223  was_it_defined=yes
12224
12225fi
12226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
12228$as_echo "$was_it_defined" >&6; }
12229
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
12231$as_echo_n "checking for addrinfo... " >&6; }
12232if ${ac_cv_struct_addrinfo+:} false; then :
12233  $as_echo_n "(cached) " >&6
12234else
12235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236/* end confdefs.h.  */
12237#include <netdb.h>
12238int
12239main ()
12240{
12241struct addrinfo a
12242  ;
12243  return 0;
12244}
12245_ACEOF
12246if ac_fn_c_try_compile "$LINENO"; then :
12247  ac_cv_struct_addrinfo=yes
12248else
12249  ac_cv_struct_addrinfo=no
12250fi
12251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252fi
12253
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
12255$as_echo "$ac_cv_struct_addrinfo" >&6; }
12256if test $ac_cv_struct_addrinfo = yes; then
12257
12258$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
12259
12260fi
12261
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
12263$as_echo_n "checking for sockaddr_storage... " >&6; }
12264if ${ac_cv_struct_sockaddr_storage+:} false; then :
12265  $as_echo_n "(cached) " >&6
12266else
12267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268/* end confdefs.h.  */
12269
12270#		include <sys/types.h>
12271#		include <sys/socket.h>
12272int
12273main ()
12274{
12275struct sockaddr_storage s
12276  ;
12277  return 0;
12278}
12279_ACEOF
12280if ac_fn_c_try_compile "$LINENO"; then :
12281  ac_cv_struct_sockaddr_storage=yes
12282else
12283  ac_cv_struct_sockaddr_storage=no
12284fi
12285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286fi
12287
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
12289$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
12290if test $ac_cv_struct_sockaddr_storage = yes; then
12291
12292$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
12293
12294fi
12295
12296# checks for compiler characteristics
12297
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
12299$as_echo_n "checking whether char is unsigned... " >&6; }
12300if ${ac_cv_c_char_unsigned+:} false; then :
12301  $as_echo_n "(cached) " >&6
12302else
12303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304/* end confdefs.h.  */
12305$ac_includes_default
12306int
12307main ()
12308{
12309static int test_array [1 - 2 * !(((char) -1) < 0)];
12310test_array [0] = 0;
12311return test_array [0];
12312
12313  ;
12314  return 0;
12315}
12316_ACEOF
12317if ac_fn_c_try_compile "$LINENO"; then :
12318  ac_cv_c_char_unsigned=no
12319else
12320  ac_cv_c_char_unsigned=yes
12321fi
12322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323fi
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
12325$as_echo "$ac_cv_c_char_unsigned" >&6; }
12326if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12327  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
12328
12329fi
12330
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12332$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12333if ${ac_cv_c_const+:} false; then :
12334  $as_echo_n "(cached) " >&6
12335else
12336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337/* end confdefs.h.  */
12338
12339int
12340main ()
12341{
12342
12343#ifndef __cplusplus
12344  /* Ultrix mips cc rejects this sort of thing.  */
12345  typedef int charset[2];
12346  const charset cs = { 0, 0 };
12347  /* SunOS 4.1.1 cc rejects this.  */
12348  char const *const *pcpcc;
12349  char **ppc;
12350  /* NEC SVR4.0.2 mips cc rejects this.  */
12351  struct point {int x, y;};
12352  static struct point const zero = {0,0};
12353  /* AIX XL C 1.02.0.0 rejects this.
12354     It does not let you subtract one const X* pointer from another in
12355     an arm of an if-expression whose if-part is not a constant
12356     expression */
12357  const char *g = "string";
12358  pcpcc = &g + (g ? g-g : 0);
12359  /* HPUX 7.0 cc rejects these. */
12360  ++pcpcc;
12361  ppc = (char**) pcpcc;
12362  pcpcc = (char const *const *) ppc;
12363  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12364    char tx;
12365    char *t = &tx;
12366    char const *s = 0 ? (char *) 0 : (char const *) 0;
12367
12368    *t++ = 0;
12369    if (s) return 0;
12370  }
12371  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12372    int x[] = {25, 17};
12373    const int *foo = &x[0];
12374    ++foo;
12375  }
12376  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12377    typedef const int *iptr;
12378    iptr p = 0;
12379    ++p;
12380  }
12381  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12382       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12383    struct s { int j; const int *ap[3]; } bx;
12384    struct s *b = &bx; b->j = 5;
12385  }
12386  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12387    const int foo = 10;
12388    if (!foo) return 0;
12389  }
12390  return !cs[0] && !zero.x;
12391#endif
12392
12393  ;
12394  return 0;
12395}
12396_ACEOF
12397if ac_fn_c_try_compile "$LINENO"; then :
12398  ac_cv_c_const=yes
12399else
12400  ac_cv_c_const=no
12401fi
12402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403fi
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12405$as_echo "$ac_cv_c_const" >&6; }
12406if test $ac_cv_c_const = no; then
12407
12408$as_echo "#define const /**/" >>confdefs.h
12409
12410fi
12411
12412
12413works=no
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12415$as_echo_n "checking for working volatile... " >&6; }
12416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417/* end confdefs.h.  */
12418
12419int
12420main ()
12421{
12422volatile int x; x = 0;
12423  ;
12424  return 0;
12425}
12426_ACEOF
12427if ac_fn_c_try_compile "$LINENO"; then :
12428  works=yes
12429else
12430
12431$as_echo "#define volatile /**/" >>confdefs.h
12432
12433
12434fi
12435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12437$as_echo "$works" >&6; }
12438
12439works=no
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
12441$as_echo_n "checking for working signed char... " >&6; }
12442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443/* end confdefs.h.  */
12444
12445int
12446main ()
12447{
12448signed char c;
12449  ;
12450  return 0;
12451}
12452_ACEOF
12453if ac_fn_c_try_compile "$LINENO"; then :
12454  works=yes
12455else
12456
12457$as_echo "#define signed /**/" >>confdefs.h
12458
12459
12460fi
12461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12463$as_echo "$works" >&6; }
12464
12465have_prototypes=no
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
12467$as_echo_n "checking for prototypes... " >&6; }
12468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469/* end confdefs.h.  */
12470int foo(int x) { return 0; }
12471int
12472main ()
12473{
12474return foo(10);
12475  ;
12476  return 0;
12477}
12478_ACEOF
12479if ac_fn_c_try_compile "$LINENO"; then :
12480
12481$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
12482
12483   have_prototypes=yes
12484fi
12485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
12487$as_echo "$have_prototypes" >&6; }
12488
12489works=no
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
12491$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
12492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493/* end confdefs.h.  */
12494
12495#include <stdarg.h>
12496int foo(int x, ...) {
12497	va_list va;
12498	va_start(va, x);
12499	va_arg(va, int);
12500	va_arg(va, char *);
12501	va_arg(va, double);
12502	return 0;
12503}
12504
12505int
12506main ()
12507{
12508return foo(10, "", 3.14);
12509  ;
12510  return 0;
12511}
12512_ACEOF
12513if ac_fn_c_try_compile "$LINENO"; then :
12514
12515
12516$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
12517
12518  works=yes
12519
12520fi
12521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12523$as_echo "$works" >&6; }
12524
12525# check for socketpair
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
12527$as_echo_n "checking for socketpair... " >&6; }
12528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529/* end confdefs.h.  */
12530
12531#include <sys/types.h>
12532#include <sys/socket.h>
12533
12534int
12535main ()
12536{
12537void *x=socketpair
12538  ;
12539  return 0;
12540}
12541_ACEOF
12542if ac_fn_c_try_compile "$LINENO"; then :
12543
12544$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
12545
12546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12547$as_echo "yes" >&6; }
12548else
12549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
12551
12552fi
12553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12554
12555# check if sockaddr has sa_len member
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
12557$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
12558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559/* end confdefs.h.  */
12560#include <sys/types.h>
12561#include <sys/socket.h>
12562int
12563main ()
12564{
12565struct sockaddr x;
12566x.sa_len = 0;
12567  ;
12568  return 0;
12569}
12570_ACEOF
12571if ac_fn_c_try_compile "$LINENO"; then :
12572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573$as_echo "yes" >&6; }
12574
12575$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
12576
12577else
12578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579$as_echo "no" >&6; }
12580
12581fi
12582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12583
12584va_list_is_array=no
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
12586$as_echo_n "checking whether va_list is an array... " >&6; }
12587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588/* end confdefs.h.  */
12589
12590#ifdef HAVE_STDARG_PROTOTYPES
12591#include <stdarg.h>
12592#else
12593#include <varargs.h>
12594#endif
12595
12596int
12597main ()
12598{
12599va_list list1, list2; list1 = list2;
12600  ;
12601  return 0;
12602}
12603_ACEOF
12604if ac_fn_c_try_compile "$LINENO"; then :
12605
12606else
12607
12608
12609$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
12610
12611 va_list_is_array=yes
12612
12613fi
12614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
12616$as_echo "$va_list_is_array" >&6; }
12617
12618# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
12619
12620
12621ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
12622if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
12623
12624  $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12625
12626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
12627$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
12628  OLD_CFLAGS=$CFLAGS
12629  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
12630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631/* end confdefs.h.  */
12632
12633#   include <netdb.h>
12634
12635int
12636main ()
12637{
12638
12639    char *name;
12640    struct hostent *he, *res;
12641    char buffer[2048];
12642    int buflen = 2048;
12643    int h_errnop;
12644
12645    (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
12646
12647  ;
12648  return 0;
12649}
12650_ACEOF
12651if ac_fn_c_try_compile "$LINENO"; then :
12652
12653    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12654
12655
12656$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
12657
12658    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12659$as_echo "yes" >&6; }
12660
12661else
12662
12663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664$as_echo "no" >&6; }
12665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
12666$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
12667    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668/* end confdefs.h.  */
12669
12670#       include <netdb.h>
12671
12672int
12673main ()
12674{
12675
12676        char *name;
12677        struct hostent *he;
12678        char buffer[2048];
12679        int buflen = 2048;
12680        int h_errnop;
12681
12682        (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
12683
12684  ;
12685  return 0;
12686}
12687_ACEOF
12688if ac_fn_c_try_compile "$LINENO"; then :
12689
12690        $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12691
12692
12693$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
12694
12695        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12696$as_echo "yes" >&6; }
12697
12698else
12699
12700        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701$as_echo "no" >&6; }
12702        { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
12703$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
12704        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h.  */
12706
12707#           include <netdb.h>
12708
12709int
12710main ()
12711{
12712
12713            char *name;
12714            struct hostent *he;
12715            struct hostent_data data;
12716
12717            (void) gethostbyname_r(name, he, &data);
12718
12719  ;
12720  return 0;
12721}
12722_ACEOF
12723if ac_fn_c_try_compile "$LINENO"; then :
12724
12725            $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12726
12727
12728$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
12729
12730            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12731$as_echo "yes" >&6; }
12732
12733else
12734
12735           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736$as_echo "no" >&6; }
12737
12738fi
12739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12740
12741fi
12742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743
12744fi
12745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746  CFLAGS=$OLD_CFLAGS
12747
12748else
12749
12750  for ac_func in gethostbyname
12751do :
12752  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12753if test "x$ac_cv_func_gethostbyname" = xyes; then :
12754  cat >>confdefs.h <<_ACEOF
12755#define HAVE_GETHOSTBYNAME 1
12756_ACEOF
12757
12758fi
12759done
12760
12761
12762fi
12763
12764
12765
12766
12767
12768
12769
12770# checks for system services
12771# (none yet)
12772
12773# Linux requires this for correct f.p. operations
12774ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
12775if test "x$ac_cv_func___fpu_control" = xyes; then :
12776
12777else
12778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
12779$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
12780if ${ac_cv_lib_ieee___fpu_control+:} false; then :
12781  $as_echo_n "(cached) " >&6
12782else
12783  ac_check_lib_save_LIBS=$LIBS
12784LIBS="-lieee  $LIBS"
12785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786/* end confdefs.h.  */
12787
12788/* Override any GCC internal prototype to avoid an error.
12789   Use char because int might match the return type of a GCC
12790   builtin and then its argument prototype would still apply.  */
12791#ifdef __cplusplus
12792extern "C"
12793#endif
12794char __fpu_control ();
12795int
12796main ()
12797{
12798return __fpu_control ();
12799  ;
12800  return 0;
12801}
12802_ACEOF
12803if ac_fn_c_try_link "$LINENO"; then :
12804  ac_cv_lib_ieee___fpu_control=yes
12805else
12806  ac_cv_lib_ieee___fpu_control=no
12807fi
12808rm -f core conftest.err conftest.$ac_objext \
12809    conftest$ac_exeext conftest.$ac_ext
12810LIBS=$ac_check_lib_save_LIBS
12811fi
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
12813$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
12814if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
12815  cat >>confdefs.h <<_ACEOF
12816#define HAVE_LIBIEEE 1
12817_ACEOF
12818
12819  LIBS="-lieee $LIBS"
12820
12821fi
12822
12823
12824fi
12825
12826
12827# Check for --with-fpectl
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
12829$as_echo_n "checking for --with-fpectl... " >&6; }
12830
12831# Check whether --with-fpectl was given.
12832if test "${with_fpectl+set}" = set; then :
12833  withval=$with_fpectl;
12834if test "$withval" != no
12835then
12836
12837$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
12838
12839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12840$as_echo "yes" >&6; }
12841else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842$as_echo "no" >&6; }
12843fi
12844else
12845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846$as_echo "no" >&6; }
12847fi
12848
12849
12850# check for --with-libm=...
12851
12852case $ac_sys_system in
12853Darwin) ;;
12854BeOS) ;;
12855*) LIBM=-lm
12856esac
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
12858$as_echo_n "checking for --with-libm=STRING... " >&6; }
12859
12860# Check whether --with-libm was given.
12861if test "${with_libm+set}" = set; then :
12862  withval=$with_libm;
12863if test "$withval" = no
12864then LIBM=
12865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
12866$as_echo "force LIBM empty" >&6; }
12867elif test "$withval" != yes
12868then LIBM=$withval
12869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
12870$as_echo "set LIBM=\"$withval\"" >&6; }
12871else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
12872fi
12873else
12874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
12875$as_echo "default LIBM=\"$LIBM\"" >&6; }
12876fi
12877
12878
12879# check for --with-libc=...
12880
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
12882$as_echo_n "checking for --with-libc=STRING... " >&6; }
12883
12884# Check whether --with-libc was given.
12885if test "${with_libc+set}" = set; then :
12886  withval=$with_libc;
12887if test "$withval" = no
12888then LIBC=
12889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
12890$as_echo "force LIBC empty" >&6; }
12891elif test "$withval" != yes
12892then LIBC=$withval
12893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
12894$as_echo "set LIBC=\"$withval\"" >&6; }
12895else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
12896fi
12897else
12898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
12899$as_echo "default LIBC=\"$LIBC\"" >&6; }
12900fi
12901
12902
12903# **************************************************
12904# * Check for various properties of floating point *
12905# **************************************************
12906
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
12908$as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
12909if ${ac_cv_little_endian_double+:} false; then :
12910  $as_echo_n "(cached) " >&6
12911else
12912
12913if test "$cross_compiling" = yes; then :
12914  ac_cv_little_endian_double=no
12915else
12916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h.  */
12918
12919#include <string.h>
12920int main() {
12921    double x = 9006104071832581.0;
12922    if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
12923        return 0;
12924    else
12925        return 1;
12926}
12927
12928_ACEOF
12929if ac_fn_c_try_run "$LINENO"; then :
12930  ac_cv_little_endian_double=yes
12931else
12932  ac_cv_little_endian_double=no
12933fi
12934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12935  conftest.$ac_objext conftest.beam conftest.$ac_ext
12936fi
12937
12938fi
12939
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
12941$as_echo "$ac_cv_little_endian_double" >&6; }
12942if test "$ac_cv_little_endian_double" = yes
12943then
12944
12945$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
12946
12947fi
12948
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
12950$as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
12951if ${ac_cv_big_endian_double+:} false; then :
12952  $as_echo_n "(cached) " >&6
12953else
12954
12955if test "$cross_compiling" = yes; then :
12956  ac_cv_big_endian_double=no
12957else
12958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959/* end confdefs.h.  */
12960
12961#include <string.h>
12962int main() {
12963    double x = 9006104071832581.0;
12964    if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
12965        return 0;
12966    else
12967        return 1;
12968}
12969
12970_ACEOF
12971if ac_fn_c_try_run "$LINENO"; then :
12972  ac_cv_big_endian_double=yes
12973else
12974  ac_cv_big_endian_double=no
12975fi
12976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12977  conftest.$ac_objext conftest.beam conftest.$ac_ext
12978fi
12979
12980fi
12981
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
12983$as_echo "$ac_cv_big_endian_double" >&6; }
12984if test "$ac_cv_big_endian_double" = yes
12985then
12986
12987$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
12988
12989fi
12990
12991# Some ARM platforms use a mixed-endian representation for doubles.
12992# While Python doesn't currently have full support for these platforms
12993# (see e.g., issue 1762561), we can at least make sure that float <-> string
12994# conversions work.
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
12996$as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
12997if ${ac_cv_mixed_endian_double+:} false; then :
12998  $as_echo_n "(cached) " >&6
12999else
13000
13001if test "$cross_compiling" = yes; then :
13002  ac_cv_mixed_endian_double=no
13003else
13004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005/* end confdefs.h.  */
13006
13007#include <string.h>
13008int main() {
13009    double x = 9006104071832581.0;
13010    if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
13011        return 0;
13012    else
13013        return 1;
13014}
13015
13016_ACEOF
13017if ac_fn_c_try_run "$LINENO"; then :
13018  ac_cv_mixed_endian_double=yes
13019else
13020  ac_cv_mixed_endian_double=no
13021fi
13022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13023  conftest.$ac_objext conftest.beam conftest.$ac_ext
13024fi
13025
13026fi
13027
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
13029$as_echo "$ac_cv_mixed_endian_double" >&6; }
13030if test "$ac_cv_mixed_endian_double" = yes
13031then
13032
13033$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
13034
13035fi
13036
13037# The short float repr introduced in Python 3.1 requires the
13038# correctly-rounded string <-> double conversion functions from
13039# Python/dtoa.c, which in turn require that the FPU uses 53-bit
13040# rounding; this is a problem on x86, where the x87 FPU has a default
13041# rounding precision of 64 bits.  For gcc/x86, we can fix this by
13042# using inline assembler to get and set the x87 FPU control word.
13043
13044# This inline assembler syntax may also work for suncc and icc,
13045# so we try it on all platforms.
13046
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
13048$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
13049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h.  */
13051
13052int
13053main ()
13054{
13055
13056  unsigned short cw;
13057  __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
13058  __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
13059
13060  ;
13061  return 0;
13062}
13063_ACEOF
13064if ac_fn_c_try_link "$LINENO"; then :
13065  have_gcc_asm_for_x87=yes
13066else
13067  have_gcc_asm_for_x87=no
13068fi
13069rm -f core conftest.err conftest.$ac_objext \
13070    conftest$ac_exeext conftest.$ac_ext
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
13072$as_echo "$have_gcc_asm_for_x87" >&6; }
13073if test "$have_gcc_asm_for_x87" = yes
13074then
13075
13076$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
13077
13078fi
13079
13080# Detect whether system arithmetic is subject to x87-style double
13081# rounding issues.  The result of this test has little meaning on non
13082# IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding
13083# mode is round-to-nearest and double rounding issues are present, and
13084# 0 otherwise.  See http://bugs.python.org/issue2937 for more info.
13085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
13086$as_echo_n "checking for x87-style double rounding... " >&6; }
13087# $BASECFLAGS may affect the result
13088ac_save_cc="$CC"
13089CC="$CC $BASECFLAGS"
13090if test "$cross_compiling" = yes; then :
13091  ac_cv_x87_double_rounding=no
13092else
13093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094/* end confdefs.h.  */
13095
13096#include <stdlib.h>
13097#include <math.h>
13098int main() {
13099    volatile double x, y, z;
13100    /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
13101    x = 0.99999999999999989; /* 1-2**-53 */
13102    y = 1./x;
13103    if (y != 1.)
13104        exit(0);
13105    /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
13106    x = 1e16;
13107    y = 2.99999;
13108    z = x + y;
13109    if (z != 1e16+4.)
13110        exit(0);
13111    /* both tests show evidence of double rounding */
13112    exit(1);
13113}
13114
13115_ACEOF
13116if ac_fn_c_try_run "$LINENO"; then :
13117  ac_cv_x87_double_rounding=no
13118else
13119  ac_cv_x87_double_rounding=yes
13120fi
13121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13122  conftest.$ac_objext conftest.beam conftest.$ac_ext
13123fi
13124
13125CC="$ac_save_cc"
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
13127$as_echo "$ac_cv_x87_double_rounding" >&6; }
13128if test "$ac_cv_x87_double_rounding" = yes
13129then
13130
13131$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
13132
13133fi
13134
13135# ************************************
13136# * Check for mathematical functions *
13137# ************************************
13138
13139LIBS_SAVE=$LIBS
13140LIBS="$LIBS $LIBM"
13141
13142# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
13143# -0. on some architectures.
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
13145$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
13146if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
13147  $as_echo_n "(cached) " >&6
13148else
13149
13150if test "$cross_compiling" = yes; then :
13151  ac_cv_tanh_preserves_zero_sign=no
13152else
13153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154/* end confdefs.h.  */
13155
13156#include <math.h>
13157#include <stdlib.h>
13158int main() {
13159    /* return 0 if either negative zeros don't exist
13160       on this platform or if negative zeros exist
13161       and tanh(-0.) == -0. */
13162  if (atan2(0., -1.) == atan2(-0., -1.) ||
13163      atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
13164  else exit(1);
13165}
13166
13167_ACEOF
13168if ac_fn_c_try_run "$LINENO"; then :
13169  ac_cv_tanh_preserves_zero_sign=yes
13170else
13171  ac_cv_tanh_preserves_zero_sign=no
13172fi
13173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13174  conftest.$ac_objext conftest.beam conftest.$ac_ext
13175fi
13176
13177fi
13178
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
13180$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
13181if test "$ac_cv_tanh_preserves_zero_sign" = yes
13182then
13183
13184$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
13185
13186fi
13187
13188for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
13189do :
13190  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13191ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13192if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13193  cat >>confdefs.h <<_ACEOF
13194#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13195_ACEOF
13196
13197fi
13198done
13199
13200for ac_func in hypot lgamma log1p round tgamma
13201do :
13202  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13203ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13204if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13205  cat >>confdefs.h <<_ACEOF
13206#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13207_ACEOF
13208
13209fi
13210done
13211
13212ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
13213"
13214if test "x$ac_cv_have_decl_isinf" = xyes; then :
13215  ac_have_decl=1
13216else
13217  ac_have_decl=0
13218fi
13219
13220cat >>confdefs.h <<_ACEOF
13221#define HAVE_DECL_ISINF $ac_have_decl
13222_ACEOF
13223ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
13224"
13225if test "x$ac_cv_have_decl_isnan" = xyes; then :
13226  ac_have_decl=1
13227else
13228  ac_have_decl=0
13229fi
13230
13231cat >>confdefs.h <<_ACEOF
13232#define HAVE_DECL_ISNAN $ac_have_decl
13233_ACEOF
13234ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
13235"
13236if test "x$ac_cv_have_decl_isfinite" = xyes; then :
13237  ac_have_decl=1
13238else
13239  ac_have_decl=0
13240fi
13241
13242cat >>confdefs.h <<_ACEOF
13243#define HAVE_DECL_ISFINITE $ac_have_decl
13244_ACEOF
13245
13246
13247LIBS=$LIBS_SAVE
13248
13249# For multiprocessing module, check that sem_open
13250# actually works.  For FreeBSD versions <= 7.2,
13251# the kernel module that provides POSIX semaphores
13252# isn't loaded by default, so an attempt to call
13253# sem_open results in a 'Signal 12' error.
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
13255$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
13256if ${ac_cv_posix_semaphores_enabled+:} false; then :
13257  $as_echo_n "(cached) " >&6
13258else
13259  if test "$cross_compiling" = yes; then :
13260  ac_cv_posix_semaphores_enabled=yes
13261else
13262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263/* end confdefs.h.  */
13264
13265#include <unistd.h>
13266#include <fcntl.h>
13267#include <stdio.h>
13268#include <semaphore.h>
13269#include <sys/stat.h>
13270
13271int main(void) {
13272  sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
13273  if (a == SEM_FAILED) {
13274    perror("sem_open");
13275    return 1;
13276  }
13277  sem_close(a);
13278  sem_unlink("/autoconf");
13279  return 0;
13280}
13281
13282_ACEOF
13283if ac_fn_c_try_run "$LINENO"; then :
13284  ac_cv_posix_semaphores_enabled=yes
13285else
13286  ac_cv_posix_semaphores_enabled=no
13287fi
13288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13289  conftest.$ac_objext conftest.beam conftest.$ac_ext
13290fi
13291
13292
13293fi
13294
13295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
13296$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
13297if test $ac_cv_posix_semaphores_enabled = no
13298then
13299
13300$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
13301
13302fi
13303
13304# Multiprocessing check for broken sem_getvalue
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
13306$as_echo_n "checking for broken sem_getvalue... " >&6; }
13307if ${ac_cv_broken_sem_getvalue+:} false; then :
13308  $as_echo_n "(cached) " >&6
13309else
13310  if test "$cross_compiling" = yes; then :
13311  ac_cv_broken_sem_getvalue=yes
13312else
13313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314/* end confdefs.h.  */
13315
13316#include <unistd.h>
13317#include <fcntl.h>
13318#include <stdio.h>
13319#include <semaphore.h>
13320#include <sys/stat.h>
13321
13322int main(void){
13323  sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
13324  int count;
13325  int res;
13326  if(a==SEM_FAILED){
13327    perror("sem_open");
13328    return 1;
13329
13330  }
13331  res = sem_getvalue(a, &count);
13332  sem_close(a);
13333  sem_unlink("/autocftw");
13334  return res==-1 ? 1 : 0;
13335}
13336
13337_ACEOF
13338if ac_fn_c_try_run "$LINENO"; then :
13339  ac_cv_broken_sem_getvalue=no
13340else
13341  ac_cv_broken_sem_getvalue=yes
13342fi
13343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13344  conftest.$ac_objext conftest.beam conftest.$ac_ext
13345fi
13346
13347
13348fi
13349
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
13351$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
13352if test $ac_cv_broken_sem_getvalue = yes
13353then
13354
13355$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
13356
13357fi
13358
13359# determine what size digit to use for Python's longs
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
13361$as_echo_n "checking digit size for Python's longs... " >&6; }
13362# Check whether --enable-big-digits was given.
13363if test "${enable_big_digits+set}" = set; then :
13364  enableval=$enable_big_digits; case $enable_big_digits in
13365yes)
13366  enable_big_digits=30 ;;
13367no)
13368  enable_big_digits=15 ;;
1336915|30)
13370  ;;
13371*)
13372  as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
13373esac
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
13375$as_echo "$enable_big_digits" >&6; }
13376
13377cat >>confdefs.h <<_ACEOF
13378#define PYLONG_BITS_IN_DIGIT $enable_big_digits
13379_ACEOF
13380
13381
13382else
13383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
13384$as_echo "no value specified" >&6; }
13385fi
13386
13387
13388# check for wchar.h
13389ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
13390if test "x$ac_cv_header_wchar_h" = xyes; then :
13391
13392
13393$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
13394
13395  wchar_h="yes"
13396
13397else
13398  wchar_h="no"
13399
13400fi
13401
13402
13403
13404# determine wchar_t size
13405if test "$wchar_h" = yes
13406then
13407  # The cast to long int works around a bug in the HP C Compiler
13408# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13409# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13410# This bug is HP SR number 8606223364.
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13412$as_echo_n "checking size of wchar_t... " >&6; }
13413if ${ac_cv_sizeof_wchar_t+:} false; then :
13414  $as_echo_n "(cached) " >&6
13415else
13416  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h>
13417"; then :
13418
13419else
13420  if test "$ac_cv_type_wchar_t" = yes; then
13421     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13423as_fn_error 77 "cannot compute sizeof (wchar_t)
13424See \`config.log' for more details" "$LINENO" 5; }
13425   else
13426     ac_cv_sizeof_wchar_t=0
13427   fi
13428fi
13429
13430fi
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13432$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
13433
13434
13435
13436cat >>confdefs.h <<_ACEOF
13437#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
13438_ACEOF
13439
13440
13441fi
13442
13443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
13444$as_echo_n "checking for UCS-4 tcl... " >&6; }
13445have_ucs4_tcl=no
13446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448
13449#include <tcl.h>
13450#if TCL_UTF_MAX != 6
13451# error "NOT UCS4_TCL"
13452#endif
13453int
13454main ()
13455{
13456
13457  ;
13458  return 0;
13459}
13460_ACEOF
13461if ac_fn_c_try_compile "$LINENO"; then :
13462
13463
13464$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
13465
13466  have_ucs4_tcl=yes
13467
13468fi
13469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
13471$as_echo "$have_ucs4_tcl" >&6; }
13472
13473# check whether wchar_t is signed or not
13474if test "$wchar_h" = yes
13475then
13476  # check whether wchar_t is signed or not
13477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
13478$as_echo_n "checking whether wchar_t is signed... " >&6; }
13479  if ${ac_cv_wchar_t_signed+:} false; then :
13480  $as_echo_n "(cached) " >&6
13481else
13482
13483  if test "$cross_compiling" = yes; then :
13484  ac_cv_wchar_t_signed=yes
13485else
13486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h.  */
13488
13489  #include <wchar.h>
13490  int main()
13491  {
13492	/* Success: exit code 0 */
13493        exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
13494  }
13495
13496_ACEOF
13497if ac_fn_c_try_run "$LINENO"; then :
13498  ac_cv_wchar_t_signed=yes
13499else
13500  ac_cv_wchar_t_signed=no
13501fi
13502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13503  conftest.$ac_objext conftest.beam conftest.$ac_ext
13504fi
13505
13506fi
13507
13508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
13509$as_echo "$ac_cv_wchar_t_signed" >&6; }
13510fi
13511
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
13513$as_echo_n "checking what type to use for unicode... " >&6; }
13514# Check whether --enable-unicode was given.
13515if test "${enable_unicode+set}" = set; then :
13516  enableval=$enable_unicode;
13517else
13518  enable_unicode=yes
13519fi
13520
13521
13522if test $enable_unicode = yes
13523then
13524  # Without any arguments, Py_UNICODE defaults to two-byte mode
13525  case "$have_ucs4_tcl" in
13526  yes) enable_unicode="ucs4"
13527       ;;
13528  *)   enable_unicode="ucs2"
13529       ;;
13530  esac
13531fi
13532
13533
13534case "$enable_unicode" in
13535ucs2) unicode_size="2"
13536      $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
13537
13538      ;;
13539ucs4) unicode_size="4"
13540      $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
13541
13542      ;;
13543no)   ;;      # To allow --disable-unicode
13544*) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;;
13545esac
13546
13547
13548
13549
13550if test "$enable_unicode" = "no"
13551then
13552  UNICODE_OBJS=""
13553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
13554$as_echo "not used" >&6; }
13555else
13556  UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
13557
13558$as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
13559
13560
13561  # wchar_t is only usable if it maps to an unsigned type
13562  if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
13563          -a "$ac_cv_wchar_t_signed" = "no"
13564  then
13565    PY_UNICODE_TYPE="wchar_t"
13566
13567$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
13568
13569    $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
13570
13571  elif test "$ac_cv_sizeof_short" = "$unicode_size"
13572  then
13573       PY_UNICODE_TYPE="unsigned short"
13574       $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
13575
13576  elif test "$ac_cv_sizeof_long" = "$unicode_size"
13577  then
13578       PY_UNICODE_TYPE="unsigned long"
13579       $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
13580
13581  else
13582       PY_UNICODE_TYPE="no type found"
13583  fi
13584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
13585$as_echo "$PY_UNICODE_TYPE" >&6; }
13586fi
13587
13588# check for endianness
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13590$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13591if ${ac_cv_c_bigendian+:} false; then :
13592  $as_echo_n "(cached) " >&6
13593else
13594  ac_cv_c_bigendian=unknown
13595    # See if we're dealing with a universal compiler.
13596    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597/* end confdefs.h.  */
13598#ifndef __APPLE_CC__
13599	       not a universal capable compiler
13600	     #endif
13601	     typedef int dummy;
13602
13603_ACEOF
13604if ac_fn_c_try_compile "$LINENO"; then :
13605
13606	# Check for potential -arch flags.  It is not universal unless
13607	# there are at least two -arch flags with different values.
13608	ac_arch=
13609	ac_prev=
13610	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13611	 if test -n "$ac_prev"; then
13612	   case $ac_word in
13613	     i?86 | x86_64 | ppc | ppc64)
13614	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13615		 ac_arch=$ac_word
13616	       else
13617		 ac_cv_c_bigendian=universal
13618		 break
13619	       fi
13620	       ;;
13621	   esac
13622	   ac_prev=
13623	 elif test "x$ac_word" = "x-arch"; then
13624	   ac_prev=arch
13625	 fi
13626       done
13627fi
13628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629    if test $ac_cv_c_bigendian = unknown; then
13630      # See if sys/param.h defines the BYTE_ORDER macro.
13631      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632/* end confdefs.h.  */
13633#include <sys/types.h>
13634	     #include <sys/param.h>
13635
13636int
13637main ()
13638{
13639#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13640		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13641		     && LITTLE_ENDIAN)
13642	      bogus endian macros
13643	     #endif
13644
13645  ;
13646  return 0;
13647}
13648_ACEOF
13649if ac_fn_c_try_compile "$LINENO"; then :
13650  # It does; now see whether it defined to BIG_ENDIAN or not.
13651	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13652/* end confdefs.h.  */
13653#include <sys/types.h>
13654		#include <sys/param.h>
13655
13656int
13657main ()
13658{
13659#if BYTE_ORDER != BIG_ENDIAN
13660		 not big endian
13661		#endif
13662
13663  ;
13664  return 0;
13665}
13666_ACEOF
13667if ac_fn_c_try_compile "$LINENO"; then :
13668  ac_cv_c_bigendian=yes
13669else
13670  ac_cv_c_bigendian=no
13671fi
13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673fi
13674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675    fi
13676    if test $ac_cv_c_bigendian = unknown; then
13677      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13678      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679/* end confdefs.h.  */
13680#include <limits.h>
13681
13682int
13683main ()
13684{
13685#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13686	      bogus endian macros
13687	     #endif
13688
13689  ;
13690  return 0;
13691}
13692_ACEOF
13693if ac_fn_c_try_compile "$LINENO"; then :
13694  # It does; now see whether it defined to _BIG_ENDIAN or not.
13695	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696/* end confdefs.h.  */
13697#include <limits.h>
13698
13699int
13700main ()
13701{
13702#ifndef _BIG_ENDIAN
13703		 not big endian
13704		#endif
13705
13706  ;
13707  return 0;
13708}
13709_ACEOF
13710if ac_fn_c_try_compile "$LINENO"; then :
13711  ac_cv_c_bigendian=yes
13712else
13713  ac_cv_c_bigendian=no
13714fi
13715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716fi
13717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718    fi
13719    if test $ac_cv_c_bigendian = unknown; then
13720      # Compile a test program.
13721      if test "$cross_compiling" = yes; then :
13722  # Try to guess by grepping values from an object file.
13723	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724/* end confdefs.h.  */
13725short int ascii_mm[] =
13726		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13727		short int ascii_ii[] =
13728		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13729		int use_ascii (int i) {
13730		  return ascii_mm[i] + ascii_ii[i];
13731		}
13732		short int ebcdic_ii[] =
13733		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13734		short int ebcdic_mm[] =
13735		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13736		int use_ebcdic (int i) {
13737		  return ebcdic_mm[i] + ebcdic_ii[i];
13738		}
13739		extern int foo;
13740
13741int
13742main ()
13743{
13744return use_ascii (foo) == use_ebcdic (foo);
13745  ;
13746  return 0;
13747}
13748_ACEOF
13749if ac_fn_c_try_compile "$LINENO"; then :
13750  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13751	      ac_cv_c_bigendian=yes
13752	    fi
13753	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13754	      if test "$ac_cv_c_bigendian" = unknown; then
13755		ac_cv_c_bigendian=no
13756	      else
13757		# finding both strings is unlikely to happen, but who knows?
13758		ac_cv_c_bigendian=unknown
13759	      fi
13760	    fi
13761fi
13762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763else
13764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765/* end confdefs.h.  */
13766$ac_includes_default
13767int
13768main ()
13769{
13770
13771	     /* Are we little or big endian?  From Harbison&Steele.  */
13772	     union
13773	     {
13774	       long int l;
13775	       char c[sizeof (long int)];
13776	     } u;
13777	     u.l = 1;
13778	     return u.c[sizeof (long int) - 1] == 1;
13779
13780  ;
13781  return 0;
13782}
13783_ACEOF
13784if ac_fn_c_try_run "$LINENO"; then :
13785  ac_cv_c_bigendian=no
13786else
13787  ac_cv_c_bigendian=yes
13788fi
13789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13790  conftest.$ac_objext conftest.beam conftest.$ac_ext
13791fi
13792
13793    fi
13794fi
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13796$as_echo "$ac_cv_c_bigendian" >&6; }
13797 case $ac_cv_c_bigendian in #(
13798   yes)
13799     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13800;; #(
13801   no)
13802      ;; #(
13803   universal)
13804
13805$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13806
13807     ;; #(
13808   *)
13809     as_fn_error $? "unknown endianness
13810 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13811 esac
13812
13813
13814# Check whether right shifting a negative integer extends the sign bit
13815# or fills with zeros (like the Cray J90, according to Tim Peters).
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
13817$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
13818if ${ac_cv_rshift_extends_sign+:} false; then :
13819  $as_echo_n "(cached) " >&6
13820else
13821
13822if test "$cross_compiling" = yes; then :
13823  ac_cv_rshift_extends_sign=yes
13824else
13825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826/* end confdefs.h.  */
13827
13828int main()
13829{
13830	exit(((-1)>>3 == -1) ? 0 : 1);
13831}
13832
13833_ACEOF
13834if ac_fn_c_try_run "$LINENO"; then :
13835  ac_cv_rshift_extends_sign=yes
13836else
13837  ac_cv_rshift_extends_sign=no
13838fi
13839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13840  conftest.$ac_objext conftest.beam conftest.$ac_ext
13841fi
13842
13843fi
13844
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
13846$as_echo "$ac_cv_rshift_extends_sign" >&6; }
13847if test "$ac_cv_rshift_extends_sign" = no
13848then
13849
13850$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
13851
13852fi
13853
13854# check for getc_unlocked and related locking functions
13855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
13856$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
13857if ${ac_cv_have_getc_unlocked+:} false; then :
13858  $as_echo_n "(cached) " >&6
13859else
13860
13861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h.  */
13863#include <stdio.h>
13864int
13865main ()
13866{
13867
13868	FILE *f = fopen("/dev/null", "r");
13869	flockfile(f);
13870	getc_unlocked(f);
13871	funlockfile(f);
13872
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877if ac_fn_c_try_link "$LINENO"; then :
13878  ac_cv_have_getc_unlocked=yes
13879else
13880  ac_cv_have_getc_unlocked=no
13881fi
13882rm -f core conftest.err conftest.$ac_objext \
13883    conftest$ac_exeext conftest.$ac_ext
13884fi
13885
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
13887$as_echo "$ac_cv_have_getc_unlocked" >&6; }
13888if test "$ac_cv_have_getc_unlocked" = yes
13889then
13890
13891$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
13892
13893fi
13894
13895# check where readline lives
13896# save the value of LIBS so we don't actually link Python with readline
13897LIBS_no_readline=$LIBS
13898
13899# On some systems we need to link readline to a termcap compatible
13900# library.  NOTE: Keep the precedence of listed libraries synchronised
13901# with setup.py.
13902py_cv_lib_readline=no
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
13904$as_echo_n "checking how to link readline libs... " >&6; }
13905for py_libtermcap in "" ncursesw ncurses curses termcap; do
13906  if test -z "$py_libtermcap"; then
13907    READLINE_LIBS="-lreadline"
13908  else
13909    READLINE_LIBS="-lreadline -l$py_libtermcap"
13910  fi
13911  LIBS="$READLINE_LIBS $LIBS_no_readline"
13912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913/* end confdefs.h.  */
13914
13915/* Override any GCC internal prototype to avoid an error.
13916   Use char because int might match the return type of a GCC
13917   builtin and then its argument prototype would still apply.  */
13918#ifdef __cplusplus
13919extern "C"
13920#endif
13921char readline ();
13922int
13923main ()
13924{
13925return readline ();
13926  ;
13927  return 0;
13928}
13929_ACEOF
13930if ac_fn_c_try_link "$LINENO"; then :
13931  py_cv_lib_readline=yes
13932fi
13933rm -f core conftest.err conftest.$ac_objext \
13934    conftest$ac_exeext conftest.$ac_ext
13935  if test $py_cv_lib_readline = yes; then
13936    break
13937  fi
13938done
13939# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
13940#AC_SUBST([READLINE_LIBS])
13941if test $py_cv_lib_readline = no; then
13942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13943$as_echo "none" >&6; }
13944else
13945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
13946$as_echo "$READLINE_LIBS" >&6; }
13947
13948$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
13949
13950fi
13951
13952# check for readline 2.1
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
13954$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
13955if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
13956  $as_echo_n "(cached) " >&6
13957else
13958  ac_check_lib_save_LIBS=$LIBS
13959LIBS="-lreadline $READLINE_LIBS $LIBS"
13960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961/* end confdefs.h.  */
13962
13963/* Override any GCC internal prototype to avoid an error.
13964   Use char because int might match the return type of a GCC
13965   builtin and then its argument prototype would still apply.  */
13966#ifdef __cplusplus
13967extern "C"
13968#endif
13969char rl_callback_handler_install ();
13970int
13971main ()
13972{
13973return rl_callback_handler_install ();
13974  ;
13975  return 0;
13976}
13977_ACEOF
13978if ac_fn_c_try_link "$LINENO"; then :
13979  ac_cv_lib_readline_rl_callback_handler_install=yes
13980else
13981  ac_cv_lib_readline_rl_callback_handler_install=no
13982fi
13983rm -f core conftest.err conftest.$ac_objext \
13984    conftest$ac_exeext conftest.$ac_ext
13985LIBS=$ac_check_lib_save_LIBS
13986fi
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
13988$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
13989if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
13990
13991$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
13992
13993fi
13994
13995
13996# check for readline 2.2
13997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998/* end confdefs.h.  */
13999#include <readline/readline.h>
14000_ACEOF
14001if ac_fn_c_try_cpp "$LINENO"; then :
14002  have_readline=yes
14003else
14004  have_readline=no
14005
14006fi
14007rm -f conftest.err conftest.i conftest.$ac_ext
14008if test $have_readline = yes
14009then
14010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011/* end confdefs.h.  */
14012#include <readline/readline.h>
14013
14014_ACEOF
14015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14016  $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
14017
14018$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
14019
14020fi
14021rm -f conftest*
14022
14023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024/* end confdefs.h.  */
14025#include <readline/readline.h>
14026
14027_ACEOF
14028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14029  $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
14030
14031$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
14032
14033fi
14034rm -f conftest*
14035
14036fi
14037
14038# check for readline 4.0
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
14040$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
14041if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
14042  $as_echo_n "(cached) " >&6
14043else
14044  ac_check_lib_save_LIBS=$LIBS
14045LIBS="-lreadline $READLINE_LIBS $LIBS"
14046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047/* end confdefs.h.  */
14048
14049/* Override any GCC internal prototype to avoid an error.
14050   Use char because int might match the return type of a GCC
14051   builtin and then its argument prototype would still apply.  */
14052#ifdef __cplusplus
14053extern "C"
14054#endif
14055char rl_pre_input_hook ();
14056int
14057main ()
14058{
14059return rl_pre_input_hook ();
14060  ;
14061  return 0;
14062}
14063_ACEOF
14064if ac_fn_c_try_link "$LINENO"; then :
14065  ac_cv_lib_readline_rl_pre_input_hook=yes
14066else
14067  ac_cv_lib_readline_rl_pre_input_hook=no
14068fi
14069rm -f core conftest.err conftest.$ac_objext \
14070    conftest$ac_exeext conftest.$ac_ext
14071LIBS=$ac_check_lib_save_LIBS
14072fi
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
14074$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
14075if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
14076
14077$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
14078
14079fi
14080
14081
14082# also in 4.0
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
14084$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
14085if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
14086  $as_echo_n "(cached) " >&6
14087else
14088  ac_check_lib_save_LIBS=$LIBS
14089LIBS="-lreadline $READLINE_LIBS $LIBS"
14090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091/* end confdefs.h.  */
14092
14093/* Override any GCC internal prototype to avoid an error.
14094   Use char because int might match the return type of a GCC
14095   builtin and then its argument prototype would still apply.  */
14096#ifdef __cplusplus
14097extern "C"
14098#endif
14099char rl_completion_display_matches_hook ();
14100int
14101main ()
14102{
14103return rl_completion_display_matches_hook ();
14104  ;
14105  return 0;
14106}
14107_ACEOF
14108if ac_fn_c_try_link "$LINENO"; then :
14109  ac_cv_lib_readline_rl_completion_display_matches_hook=yes
14110else
14111  ac_cv_lib_readline_rl_completion_display_matches_hook=no
14112fi
14113rm -f core conftest.err conftest.$ac_objext \
14114    conftest$ac_exeext conftest.$ac_ext
14115LIBS=$ac_check_lib_save_LIBS
14116fi
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
14118$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
14119if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
14120
14121$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
14122
14123fi
14124
14125
14126# also in 4.0, but not in editline
14127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
14128$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
14129if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
14130  $as_echo_n "(cached) " >&6
14131else
14132  ac_check_lib_save_LIBS=$LIBS
14133LIBS="-lreadline $READLINE_LIBS $LIBS"
14134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135/* end confdefs.h.  */
14136
14137/* Override any GCC internal prototype to avoid an error.
14138   Use char because int might match the return type of a GCC
14139   builtin and then its argument prototype would still apply.  */
14140#ifdef __cplusplus
14141extern "C"
14142#endif
14143char rl_resize_terminal ();
14144int
14145main ()
14146{
14147return rl_resize_terminal ();
14148  ;
14149  return 0;
14150}
14151_ACEOF
14152if ac_fn_c_try_link "$LINENO"; then :
14153  ac_cv_lib_readline_rl_resize_terminal=yes
14154else
14155  ac_cv_lib_readline_rl_resize_terminal=no
14156fi
14157rm -f core conftest.err conftest.$ac_objext \
14158    conftest$ac_exeext conftest.$ac_ext
14159LIBS=$ac_check_lib_save_LIBS
14160fi
14161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
14162$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
14163if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
14164
14165$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
14166
14167fi
14168
14169
14170# check for readline 4.2
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
14172$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
14173if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
14174  $as_echo_n "(cached) " >&6
14175else
14176  ac_check_lib_save_LIBS=$LIBS
14177LIBS="-lreadline $READLINE_LIBS $LIBS"
14178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179/* end confdefs.h.  */
14180
14181/* Override any GCC internal prototype to avoid an error.
14182   Use char because int might match the return type of a GCC
14183   builtin and then its argument prototype would still apply.  */
14184#ifdef __cplusplus
14185extern "C"
14186#endif
14187char rl_completion_matches ();
14188int
14189main ()
14190{
14191return rl_completion_matches ();
14192  ;
14193  return 0;
14194}
14195_ACEOF
14196if ac_fn_c_try_link "$LINENO"; then :
14197  ac_cv_lib_readline_rl_completion_matches=yes
14198else
14199  ac_cv_lib_readline_rl_completion_matches=no
14200fi
14201rm -f core conftest.err conftest.$ac_objext \
14202    conftest$ac_exeext conftest.$ac_ext
14203LIBS=$ac_check_lib_save_LIBS
14204fi
14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
14206$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
14207if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
14208
14209$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
14210
14211fi
14212
14213
14214# also in readline 4.2
14215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216/* end confdefs.h.  */
14217#include <readline/readline.h>
14218_ACEOF
14219if ac_fn_c_try_cpp "$LINENO"; then :
14220  have_readline=yes
14221else
14222  have_readline=no
14223
14224fi
14225rm -f conftest.err conftest.i conftest.$ac_ext
14226if test $have_readline = yes
14227then
14228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229/* end confdefs.h.  */
14230#include <readline/readline.h>
14231
14232_ACEOF
14233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14234  $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
14235
14236$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
14237
14238fi
14239rm -f conftest*
14240
14241fi
14242
14243# End of readline checks: restore LIBS
14244LIBS=$LIBS_no_readline
14245
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
14247$as_echo_n "checking for broken nice()... " >&6; }
14248if ${ac_cv_broken_nice+:} false; then :
14249  $as_echo_n "(cached) " >&6
14250else
14251
14252if test "$cross_compiling" = yes; then :
14253  ac_cv_broken_nice=no
14254else
14255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256/* end confdefs.h.  */
14257
14258int main()
14259{
14260	int val1 = nice(1);
14261	if (val1 != -1 && val1 == nice(2))
14262		exit(0);
14263	exit(1);
14264}
14265
14266_ACEOF
14267if ac_fn_c_try_run "$LINENO"; then :
14268  ac_cv_broken_nice=yes
14269else
14270  ac_cv_broken_nice=no
14271fi
14272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14273  conftest.$ac_objext conftest.beam conftest.$ac_ext
14274fi
14275
14276fi
14277
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
14279$as_echo "$ac_cv_broken_nice" >&6; }
14280if test "$ac_cv_broken_nice" = yes
14281then
14282
14283$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
14284
14285fi
14286
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
14288$as_echo_n "checking for broken poll()... " >&6; }
14289if ${ac_cv_broken_poll+:} false; then :
14290  $as_echo_n "(cached) " >&6
14291else
14292  if test "$cross_compiling" = yes; then :
14293  ac_cv_broken_poll=no
14294else
14295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296/* end confdefs.h.  */
14297
14298#include <poll.h>
14299
14300int main()
14301{
14302    struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
14303    int poll_test;
14304
14305    close (42);
14306
14307    poll_test = poll(&poll_struct, 1, 0);
14308    if (poll_test < 0)
14309        return 0;
14310    else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
14311        return 0;
14312    else
14313        return 1;
14314}
14315
14316_ACEOF
14317if ac_fn_c_try_run "$LINENO"; then :
14318  ac_cv_broken_poll=yes
14319else
14320  ac_cv_broken_poll=no
14321fi
14322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14323  conftest.$ac_objext conftest.beam conftest.$ac_ext
14324fi
14325
14326fi
14327
14328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
14329$as_echo "$ac_cv_broken_poll" >&6; }
14330if test "$ac_cv_broken_poll" = yes
14331then
14332
14333$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
14334
14335fi
14336
14337# Before we can test tzset, we need to check if struct tm has a tm_zone
14338# (which is not required by ISO C or UNIX spec) and/or if we support
14339# tzname[]
14340ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14341#include <$ac_cv_struct_tm>
14342
14343"
14344if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
14345
14346cat >>confdefs.h <<_ACEOF
14347#define HAVE_STRUCT_TM_TM_ZONE 1
14348_ACEOF
14349
14350
14351fi
14352
14353if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14354
14355$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
14356
14357else
14358  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
14359"
14360if test "x$ac_cv_have_decl_tzname" = xyes; then :
14361  ac_have_decl=1
14362else
14363  ac_have_decl=0
14364fi
14365
14366cat >>confdefs.h <<_ACEOF
14367#define HAVE_DECL_TZNAME $ac_have_decl
14368_ACEOF
14369
14370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14371$as_echo_n "checking for tzname... " >&6; }
14372if ${ac_cv_var_tzname+:} false; then :
14373  $as_echo_n "(cached) " >&6
14374else
14375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376/* end confdefs.h.  */
14377#include <time.h>
14378#if !HAVE_DECL_TZNAME
14379extern char *tzname[];
14380#endif
14381
14382int
14383main ()
14384{
14385return tzname[0][0];
14386  ;
14387  return 0;
14388}
14389_ACEOF
14390if ac_fn_c_try_link "$LINENO"; then :
14391  ac_cv_var_tzname=yes
14392else
14393  ac_cv_var_tzname=no
14394fi
14395rm -f core conftest.err conftest.$ac_objext \
14396    conftest$ac_exeext conftest.$ac_ext
14397fi
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14399$as_echo "$ac_cv_var_tzname" >&6; }
14400  if test $ac_cv_var_tzname = yes; then
14401
14402$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
14403
14404  fi
14405fi
14406
14407
14408# check tzset(3) exists and works like we expect it to
14409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
14410$as_echo_n "checking for working tzset()... " >&6; }
14411if ${ac_cv_working_tzset+:} false; then :
14412  $as_echo_n "(cached) " >&6
14413else
14414
14415if test "$cross_compiling" = yes; then :
14416  ac_cv_working_tzset=no
14417else
14418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419/* end confdefs.h.  */
14420
14421#include <stdlib.h>
14422#include <time.h>
14423#include <string.h>
14424
14425#if HAVE_TZNAME
14426extern char *tzname[];
14427#endif
14428
14429int main()
14430{
14431	/* Note that we need to ensure that not only does tzset(3)
14432	   do 'something' with localtime, but it works as documented
14433	   in the library reference and as expected by the test suite.
14434	   This includes making sure that tzname is set properly if
14435	   tm->tm_zone does not exist since it is the alternative way
14436	   of getting timezone info.
14437
14438	   Red Hat 6.2 doesn't understand the southern hemisphere
14439	   after New Year's Day.
14440	*/
14441
14442	time_t groundhogday = 1044144000; /* GMT-based */
14443	time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
14444
14445	putenv("TZ=UTC+0");
14446	tzset();
14447	if (localtime(&groundhogday)->tm_hour != 0)
14448	    exit(1);
14449#if HAVE_TZNAME
14450	/* For UTC, tzname[1] is sometimes "", sometimes "   " */
14451	if (strcmp(tzname[0], "UTC") ||
14452		(tzname[1][0] != 0 && tzname[1][0] != ' '))
14453	    exit(1);
14454#endif
14455
14456	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
14457	tzset();
14458	if (localtime(&groundhogday)->tm_hour != 19)
14459	    exit(1);
14460#if HAVE_TZNAME
14461	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
14462	    exit(1);
14463#endif
14464
14465	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
14466	tzset();
14467	if (localtime(&groundhogday)->tm_hour != 11)
14468	    exit(1);
14469#if HAVE_TZNAME
14470	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
14471	    exit(1);
14472#endif
14473
14474#if HAVE_STRUCT_TM_TM_ZONE
14475	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
14476	    exit(1);
14477	if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
14478	    exit(1);
14479#endif
14480
14481	exit(0);
14482}
14483
14484_ACEOF
14485if ac_fn_c_try_run "$LINENO"; then :
14486  ac_cv_working_tzset=yes
14487else
14488  ac_cv_working_tzset=no
14489fi
14490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14491  conftest.$ac_objext conftest.beam conftest.$ac_ext
14492fi
14493
14494fi
14495
14496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
14497$as_echo "$ac_cv_working_tzset" >&6; }
14498if test "$ac_cv_working_tzset" = yes
14499then
14500
14501$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
14502
14503fi
14504
14505# Look for subsecond timestamps in struct stat
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
14507$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
14508if ${ac_cv_stat_tv_nsec+:} false; then :
14509  $as_echo_n "(cached) " >&6
14510else
14511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512/* end confdefs.h.  */
14513#include <sys/stat.h>
14514int
14515main ()
14516{
14517
14518struct stat st;
14519st.st_mtim.tv_nsec = 1;
14520
14521  ;
14522  return 0;
14523}
14524_ACEOF
14525if ac_fn_c_try_compile "$LINENO"; then :
14526  ac_cv_stat_tv_nsec=yes
14527else
14528  ac_cv_stat_tv_nsec=no
14529fi
14530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14531fi
14532
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
14534$as_echo "$ac_cv_stat_tv_nsec" >&6; }
14535if test "$ac_cv_stat_tv_nsec" = yes
14536then
14537
14538$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
14539
14540fi
14541
14542# Look for BSD style subsecond timestamps in struct stat
14543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
14544$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
14545if ${ac_cv_stat_tv_nsec2+:} false; then :
14546  $as_echo_n "(cached) " >&6
14547else
14548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549/* end confdefs.h.  */
14550#include <sys/stat.h>
14551int
14552main ()
14553{
14554
14555struct stat st;
14556st.st_mtimespec.tv_nsec = 1;
14557
14558  ;
14559  return 0;
14560}
14561_ACEOF
14562if ac_fn_c_try_compile "$LINENO"; then :
14563  ac_cv_stat_tv_nsec2=yes
14564else
14565  ac_cv_stat_tv_nsec2=no
14566fi
14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568fi
14569
14570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
14571$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
14572if test "$ac_cv_stat_tv_nsec2" = yes
14573then
14574
14575$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
14576
14577fi
14578
14579# first curses configure check
14580ac_save_cppflags="$CPPFLAGS"
14581CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
14582
14583for ac_header in curses.h ncurses.h
14584do :
14585  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14586ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14587if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14588  cat >>confdefs.h <<_ACEOF
14589#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14590_ACEOF
14591
14592fi
14593
14594done
14595
14596
14597# On Solaris, term.h requires curses.h
14598for ac_header in term.h
14599do :
14600  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
14601#ifdef HAVE_CURSES_H
14602#include <curses.h>
14603#endif
14604
14605"
14606if test "x$ac_cv_header_term_h" = xyes; then :
14607  cat >>confdefs.h <<_ACEOF
14608#define HAVE_TERM_H 1
14609_ACEOF
14610
14611fi
14612
14613done
14614
14615
14616# On HP/UX 11.0, mvwdelch is a block with a return statement
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
14618$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
14619if ${ac_cv_mvwdelch_is_expression+:} false; then :
14620  $as_echo_n "(cached) " >&6
14621else
14622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623/* end confdefs.h.  */
14624#include <curses.h>
14625int
14626main ()
14627{
14628
14629  int rtn;
14630  rtn = mvwdelch(0,0,0);
14631
14632  ;
14633  return 0;
14634}
14635_ACEOF
14636if ac_fn_c_try_compile "$LINENO"; then :
14637  ac_cv_mvwdelch_is_expression=yes
14638else
14639  ac_cv_mvwdelch_is_expression=no
14640fi
14641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14642fi
14643
14644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
14645$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
14646
14647if test "$ac_cv_mvwdelch_is_expression" = yes
14648then
14649
14650$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
14651
14652fi
14653
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
14655$as_echo_n "checking whether WINDOW has _flags... " >&6; }
14656if ${ac_cv_window_has_flags+:} false; then :
14657  $as_echo_n "(cached) " >&6
14658else
14659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660/* end confdefs.h.  */
14661#include <curses.h>
14662int
14663main ()
14664{
14665
14666  WINDOW *w;
14667  w->_flags = 0;
14668
14669  ;
14670  return 0;
14671}
14672_ACEOF
14673if ac_fn_c_try_compile "$LINENO"; then :
14674  ac_cv_window_has_flags=yes
14675else
14676  ac_cv_window_has_flags=no
14677fi
14678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679fi
14680
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
14682$as_echo "$ac_cv_window_has_flags" >&6; }
14683
14684
14685if test "$ac_cv_window_has_flags" = yes
14686then
14687
14688$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
14689
14690fi
14691
14692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
14693$as_echo_n "checking for is_term_resized... " >&6; }
14694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695/* end confdefs.h.  */
14696#include <curses.h>
14697int
14698main ()
14699{
14700void *x=is_term_resized
14701  ;
14702  return 0;
14703}
14704_ACEOF
14705if ac_fn_c_try_compile "$LINENO"; then :
14706
14707$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
14708
14709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14710$as_echo "yes" >&6; }
14711else
14712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713$as_echo "no" >&6; }
14714
14715fi
14716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717
14718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
14719$as_echo_n "checking for resize_term... " >&6; }
14720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721/* end confdefs.h.  */
14722#include <curses.h>
14723int
14724main ()
14725{
14726void *x=resize_term
14727  ;
14728  return 0;
14729}
14730_ACEOF
14731if ac_fn_c_try_compile "$LINENO"; then :
14732
14733$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
14734
14735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14736$as_echo "yes" >&6; }
14737else
14738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14739$as_echo "no" >&6; }
14740
14741fi
14742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743
14744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
14745$as_echo_n "checking for resizeterm... " >&6; }
14746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747/* end confdefs.h.  */
14748#include <curses.h>
14749int
14750main ()
14751{
14752void *x=resizeterm
14753  ;
14754  return 0;
14755}
14756_ACEOF
14757if ac_fn_c_try_compile "$LINENO"; then :
14758
14759$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
14760
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762$as_echo "yes" >&6; }
14763else
14764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765$as_echo "no" >&6; }
14766
14767fi
14768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769# last curses configure check
14770CPPFLAGS=$ac_save_cppflags
14771
14772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
14773$as_echo "$as_me: checking for device files" >&6;}
14774
14775if test "x$cross_compiling" = xyes; then
14776  if test "${ac_cv_file__dev_ptmx+set}" != set; then
14777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
14778$as_echo_n "checking for /dev/ptmx... " >&6; }
14779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
14780$as_echo "not set" >&6; }
14781    as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
14782  fi
14783  if test "${ac_cv_file__dev_ptc+set}" != set; then
14784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
14785$as_echo_n "checking for /dev/ptc... " >&6; }
14786    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
14787$as_echo "not set" >&6; }
14788    as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
14789  fi
14790fi
14791
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
14793$as_echo_n "checking for /dev/ptmx... " >&6; }
14794if ${ac_cv_file__dev_ptmx+:} false; then :
14795  $as_echo_n "(cached) " >&6
14796else
14797  test "$cross_compiling" = yes &&
14798  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14799if test -r "/dev/ptmx"; then
14800  ac_cv_file__dev_ptmx=yes
14801else
14802  ac_cv_file__dev_ptmx=no
14803fi
14804fi
14805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
14806$as_echo "$ac_cv_file__dev_ptmx" >&6; }
14807if test "x$ac_cv_file__dev_ptmx" = xyes; then :
14808
14809fi
14810
14811if test "x$ac_cv_file__dev_ptmx" = xyes; then
14812
14813$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14814
14815fi
14816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
14817$as_echo_n "checking for /dev/ptc... " >&6; }
14818if ${ac_cv_file__dev_ptc+:} false; then :
14819  $as_echo_n "(cached) " >&6
14820else
14821  test "$cross_compiling" = yes &&
14822  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14823if test -r "/dev/ptc"; then
14824  ac_cv_file__dev_ptc=yes
14825else
14826  ac_cv_file__dev_ptc=no
14827fi
14828fi
14829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
14830$as_echo "$ac_cv_file__dev_ptc" >&6; }
14831if test "x$ac_cv_file__dev_ptc" = xyes; then :
14832
14833fi
14834
14835if test "x$ac_cv_file__dev_ptc" = xyes; then
14836
14837$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
14838
14839fi
14840
14841if test "$have_long_long" = yes
14842then
14843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5
14844$as_echo_n "checking for %lld and %llu printf() format support... " >&6; }
14845  if ${ac_cv_have_long_long_format+:} false; then :
14846  $as_echo_n "(cached) " >&6
14847else
14848  if test "$cross_compiling" = yes; then :
14849  ac_cv_have_long_long_format="cross -- assuming no"
14850   if test x$GCC = xyes; then
14851    save_CFLAGS=$CFLAGS
14852    CFLAGS="$CFLAGS -Werror -Wformat"
14853    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854/* end confdefs.h.  */
14855
14856        #include <stdio.h>
14857        #include <stddef.h>
14858
14859int
14860main ()
14861{
14862
14863      char *buffer;
14864      sprintf(buffer, "%lld", (long long)123);
14865      sprintf(buffer, "%lld", (long long)-123);
14866      sprintf(buffer, "%llu", (unsigned long long)123);
14867
14868  ;
14869  return 0;
14870}
14871_ACEOF
14872if ac_fn_c_try_compile "$LINENO"; then :
14873  ac_cv_have_long_long_format=yes
14874
14875fi
14876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14877    CFLAGS=$save_CFLAGS
14878   fi
14879else
14880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881/* end confdefs.h.  */
14882
14883  #include <stdio.h>
14884  #include <stddef.h>
14885  #include <string.h>
14886
14887  #ifdef HAVE_SYS_TYPES_H
14888  #include <sys/types.h>
14889  #endif
14890
14891  int main()
14892  {
14893      char buffer[256];
14894
14895      if (sprintf(buffer, "%lld", (long long)123) < 0)
14896          return 1;
14897      if (strcmp(buffer, "123"))
14898          return 1;
14899
14900      if (sprintf(buffer, "%lld", (long long)-123) < 0)
14901          return 1;
14902      if (strcmp(buffer, "-123"))
14903          return 1;
14904
14905      if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
14906          return 1;
14907      if (strcmp(buffer, "123"))
14908          return 1;
14909
14910      return 0;
14911  }
14912
14913_ACEOF
14914if ac_fn_c_try_run "$LINENO"; then :
14915  ac_cv_have_long_long_format=yes
14916else
14917  ac_cv_have_long_long_format=no
14918fi
14919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14920  conftest.$ac_objext conftest.beam conftest.$ac_ext
14921fi
14922
14923
14924fi
14925
14926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5
14927$as_echo "$ac_cv_have_long_long_format" >&6; }
14928fi
14929
14930if test "$ac_cv_have_long_long_format" = yes
14931then
14932
14933$as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
14934
14935fi
14936
14937if test $ac_sys_system = Darwin
14938then
14939	LIBS="$LIBS -framework CoreFoundation"
14940fi
14941
14942
14943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
14944$as_echo_n "checking for %zd printf() format support... " >&6; }
14945if ${ac_cv_have_size_t_format+:} false; then :
14946  $as_echo_n "(cached) " >&6
14947else
14948  if test "$cross_compiling" = yes; then :
14949  ac_cv_have_size_t_format="cross -- assuming yes"
14950
14951else
14952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953/* end confdefs.h.  */
14954
14955#include <stdio.h>
14956#include <stddef.h>
14957#include <string.h>
14958
14959#ifdef HAVE_SYS_TYPES_H
14960#include <sys/types.h>
14961#endif
14962
14963#ifdef HAVE_SSIZE_T
14964typedef ssize_t Py_ssize_t;
14965#elif SIZEOF_VOID_P == SIZEOF_LONG
14966typedef long Py_ssize_t;
14967#else
14968typedef int Py_ssize_t;
14969#endif
14970
14971int main()
14972{
14973    char buffer[256];
14974
14975    if(sprintf(buffer, "%zd", (size_t)123) < 0)
14976       	return 1;
14977
14978    if (strcmp(buffer, "123"))
14979	return 1;
14980
14981    if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
14982       	return 1;
14983
14984    if (strcmp(buffer, "-123"))
14985	return 1;
14986
14987    return 0;
14988}
14989
14990_ACEOF
14991if ac_fn_c_try_run "$LINENO"; then :
14992  ac_cv_have_size_t_format=yes
14993else
14994  ac_cv_have_size_t_format=no
14995fi
14996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14997  conftest.$ac_objext conftest.beam conftest.$ac_ext
14998fi
14999
15000fi
15001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
15002$as_echo "$ac_cv_have_size_t_format" >&6; }
15003if test "$ac_cv_have_size_t_format" != no ; then
15004
15005$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
15006
15007fi
15008
15009ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15010#ifdef HAVE_SYS_TYPES_H
15011#include <sys/types.h>
15012#endif
15013#ifdef HAVE_SYS_SOCKET_H
15014#include <sys/socket.h>
15015#endif
15016
15017"
15018if test "x$ac_cv_type_socklen_t" = xyes; then :
15019
15020else
15021
15022$as_echo "#define socklen_t int" >>confdefs.h
15023
15024fi
15025
15026
15027case $ac_sys_system in
15028AIX*)
15029
15030$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
15031 ;;
15032esac
15033
15034
15035
15036
15037for h in `(cd $srcdir;echo Python/thread_*.h)`
15038do
15039  THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
15040done
15041
15042
15043SRCDIRS="Parser Grammar Objects Python Modules Mac"
15044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
15045$as_echo_n "checking for build directories... " >&6; }
15046for dir in $SRCDIRS; do
15047    if test ! -d $dir; then
15048        mkdir $dir
15049    fi
15050done
15051
15052# BEGIN_COMPUTED_GOTO
15053# Check for --with-computed-gotos
15054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
15055$as_echo_n "checking for --with-computed-gotos... " >&6; }
15056
15057# Check whether --with-computed-gotos was given.
15058if test "${with_computed_gotos+set}" = set; then :
15059  withval=$with_computed_gotos;
15060if test "$withval" = yes
15061then
15062
15063$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
15064
15065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15066$as_echo "yes" >&6; }
15067fi
15068if test "$withval" = no
15069then
15070
15071$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
15072
15073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074$as_echo "no" >&6; }
15075fi
15076
15077else
15078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
15079$as_echo "no value specified" >&6; }
15080fi
15081
15082
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
15084$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
15085if ${ac_cv_computed_gotos+:} false; then :
15086  $as_echo_n "(cached) " >&6
15087else
15088  if test "$cross_compiling" = yes; then :
15089  if test "${with_computed_gotos+set}" = set; then
15090   ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
15091 else
15092   ac_cv_computed_gotos=no
15093 fi
15094else
15095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096/* end confdefs.h.  */
15097
15098int main(int argc, char **argv)
15099{
15100    static void *targets[1] = { &&LABEL1 };
15101    goto LABEL2;
15102LABEL1:
15103    return 0;
15104LABEL2:
15105    goto *targets[0];
15106    return 1;
15107}
15108
15109_ACEOF
15110if ac_fn_c_try_run "$LINENO"; then :
15111  ac_cv_computed_gotos=yes
15112else
15113  ac_cv_computed_gotos=no
15114fi
15115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15116  conftest.$ac_objext conftest.beam conftest.$ac_ext
15117fi
15118
15119fi
15120
15121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
15122$as_echo "$ac_cv_computed_gotos" >&6; }
15123case "$ac_cv_computed_gotos" in yes*)
15124
15125$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
15126
15127esac
15128# END_COMPUTED_GOTO
15129
15130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15131$as_echo "done" >&6; }
15132
15133# ensurepip option
15134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
15135$as_echo_n "checking for ensurepip... " >&6; }
15136
15137# Check whether --with-ensurepip was given.
15138if test "${with_ensurepip+set}" = set; then :
15139  withval=$with_ensurepip;
15140else
15141  with_ensurepip=no
15142fi
15143
15144case $with_ensurepip in #(
15145  yes|upgrade) :
15146    ENSUREPIP=upgrade ;; #(
15147  install) :
15148    ENSUREPIP=install ;; #(
15149  no) :
15150    ENSUREPIP=no ;; #(
15151  *) :
15152    as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
15153esac
15154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
15155$as_echo "$ENSUREPIP" >&6; }
15156
15157
15158# generate output files
15159ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
15160
15161ac_config_files="$ac_config_files Modules/ld_so_aix"
15162
15163cat >confcache <<\_ACEOF
15164# This file is a shell script that caches the results of configure
15165# tests run on this system so they can be shared between configure
15166# scripts and configure runs, see configure's option --config-cache.
15167# It is not useful on other systems.  If it contains results you don't
15168# want to keep, you may remove or edit it.
15169#
15170# config.status only pays attention to the cache file if you give it
15171# the --recheck option to rerun configure.
15172#
15173# `ac_cv_env_foo' variables (set or unset) will be overridden when
15174# loading this file, other *unset* `ac_cv_foo' will be assigned the
15175# following values.
15176
15177_ACEOF
15178
15179# The following way of writing the cache mishandles newlines in values,
15180# but we know of no workaround that is simple, portable, and efficient.
15181# So, we kill variables containing newlines.
15182# Ultrix sh set writes to stderr and can't be redirected directly,
15183# and sets the high bit in the cache file unless we assign to the vars.
15184(
15185  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15186    eval ac_val=\$$ac_var
15187    case $ac_val in #(
15188    *${as_nl}*)
15189      case $ac_var in #(
15190      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15191$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15192      esac
15193      case $ac_var in #(
15194      _ | IFS | as_nl) ;; #(
15195      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15196      *) { eval $ac_var=; unset $ac_var;} ;;
15197      esac ;;
15198    esac
15199  done
15200
15201  (set) 2>&1 |
15202    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15203    *${as_nl}ac_space=\ *)
15204      # `set' does not quote correctly, so add quotes: double-quote
15205      # substitution turns \\\\ into \\, and sed turns \\ into \.
15206      sed -n \
15207	"s/'/'\\\\''/g;
15208	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15209      ;; #(
15210    *)
15211      # `set' quotes correctly as required by POSIX, so do not add quotes.
15212      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15213      ;;
15214    esac |
15215    sort
15216) |
15217  sed '
15218     /^ac_cv_env_/b end
15219     t clear
15220     :clear
15221     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15222     t end
15223     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15224     :end' >>confcache
15225if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15226  if test -w "$cache_file"; then
15227    if test "x$cache_file" != "x/dev/null"; then
15228      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15229$as_echo "$as_me: updating cache $cache_file" >&6;}
15230      if test ! -f "$cache_file" || test -h "$cache_file"; then
15231	cat confcache >"$cache_file"
15232      else
15233        case $cache_file in #(
15234        */* | ?:*)
15235	  mv -f confcache "$cache_file"$$ &&
15236	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15237        *)
15238	  mv -f confcache "$cache_file" ;;
15239	esac
15240      fi
15241    fi
15242  else
15243    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15244$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15245  fi
15246fi
15247rm -f confcache
15248
15249test "x$prefix" = xNONE && prefix=$ac_default_prefix
15250# Let make expand exec_prefix.
15251test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15252
15253DEFS=-DHAVE_CONFIG_H
15254
15255ac_libobjs=
15256ac_ltlibobjs=
15257U=
15258for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15259  # 1. Remove the extension, and $U if already installed.
15260  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15261  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15262  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15263  #    will be set to the directory where LIBOBJS objects are built.
15264  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15265  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15266done
15267LIBOBJS=$ac_libobjs
15268
15269LTLIBOBJS=$ac_ltlibobjs
15270
15271
15272
15273
15274: "${CONFIG_STATUS=./config.status}"
15275ac_write_fail=0
15276ac_clean_files_save=$ac_clean_files
15277ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15278{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15279$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15280as_write_fail=0
15281cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15282#! $SHELL
15283# Generated by $as_me.
15284# Run this file to recreate the current configuration.
15285# Compiler output produced by configure, useful for debugging
15286# configure, is in config.log if it exists.
15287
15288debug=false
15289ac_cs_recheck=false
15290ac_cs_silent=false
15291
15292SHELL=\${CONFIG_SHELL-$SHELL}
15293export SHELL
15294_ASEOF
15295cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15296## -------------------- ##
15297## M4sh Initialization. ##
15298## -------------------- ##
15299
15300# Be more Bourne compatible
15301DUALCASE=1; export DUALCASE # for MKS sh
15302if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15303  emulate sh
15304  NULLCMD=:
15305  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15306  # is contrary to our usage.  Disable this feature.
15307  alias -g '${1+"$@"}'='"$@"'
15308  setopt NO_GLOB_SUBST
15309else
15310  case `(set -o) 2>/dev/null` in #(
15311  *posix*) :
15312    set -o posix ;; #(
15313  *) :
15314     ;;
15315esac
15316fi
15317
15318
15319as_nl='
15320'
15321export as_nl
15322# Printing a long string crashes Solaris 7 /usr/bin/printf.
15323as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15324as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15325as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15326# Prefer a ksh shell builtin over an external printf program on Solaris,
15327# but without wasting forks for bash or zsh.
15328if test -z "$BASH_VERSION$ZSH_VERSION" \
15329    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15330  as_echo='print -r --'
15331  as_echo_n='print -rn --'
15332elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15333  as_echo='printf %s\n'
15334  as_echo_n='printf %s'
15335else
15336  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15337    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15338    as_echo_n='/usr/ucb/echo -n'
15339  else
15340    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15341    as_echo_n_body='eval
15342      arg=$1;
15343      case $arg in #(
15344      *"$as_nl"*)
15345	expr "X$arg" : "X\\(.*\\)$as_nl";
15346	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15347      esac;
15348      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15349    '
15350    export as_echo_n_body
15351    as_echo_n='sh -c $as_echo_n_body as_echo'
15352  fi
15353  export as_echo_body
15354  as_echo='sh -c $as_echo_body as_echo'
15355fi
15356
15357# The user is always right.
15358if test "${PATH_SEPARATOR+set}" != set; then
15359  PATH_SEPARATOR=:
15360  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15361    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15362      PATH_SEPARATOR=';'
15363  }
15364fi
15365
15366
15367# IFS
15368# We need space, tab and new line, in precisely that order.  Quoting is
15369# there to prevent editors from complaining about space-tab.
15370# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15371# splitting by setting IFS to empty value.)
15372IFS=" ""	$as_nl"
15373
15374# Find who we are.  Look in the path if we contain no directory separator.
15375as_myself=
15376case $0 in #((
15377  *[\\/]* ) as_myself=$0 ;;
15378  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15379for as_dir in $PATH
15380do
15381  IFS=$as_save_IFS
15382  test -z "$as_dir" && as_dir=.
15383    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15384  done
15385IFS=$as_save_IFS
15386
15387     ;;
15388esac
15389# We did not find ourselves, most probably we were run as `sh COMMAND'
15390# in which case we are not to be found in the path.
15391if test "x$as_myself" = x; then
15392  as_myself=$0
15393fi
15394if test ! -f "$as_myself"; then
15395  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15396  exit 1
15397fi
15398
15399# Unset variables that we do not need and which cause bugs (e.g. in
15400# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15401# suppresses any "Segmentation fault" message there.  '((' could
15402# trigger a bug in pdksh 5.2.14.
15403for as_var in BASH_ENV ENV MAIL MAILPATH
15404do eval test x\${$as_var+set} = xset \
15405  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15406done
15407PS1='$ '
15408PS2='> '
15409PS4='+ '
15410
15411# NLS nuisances.
15412LC_ALL=C
15413export LC_ALL
15414LANGUAGE=C
15415export LANGUAGE
15416
15417# CDPATH.
15418(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15419
15420
15421# as_fn_error STATUS ERROR [LINENO LOG_FD]
15422# ----------------------------------------
15423# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15424# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15425# script with STATUS, using 1 if that was 0.
15426as_fn_error ()
15427{
15428  as_status=$1; test $as_status -eq 0 && as_status=1
15429  if test "$4"; then
15430    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15431    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15432  fi
15433  $as_echo "$as_me: error: $2" >&2
15434  as_fn_exit $as_status
15435} # as_fn_error
15436
15437
15438# as_fn_set_status STATUS
15439# -----------------------
15440# Set $? to STATUS, without forking.
15441as_fn_set_status ()
15442{
15443  return $1
15444} # as_fn_set_status
15445
15446# as_fn_exit STATUS
15447# -----------------
15448# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15449as_fn_exit ()
15450{
15451  set +e
15452  as_fn_set_status $1
15453  exit $1
15454} # as_fn_exit
15455
15456# as_fn_unset VAR
15457# ---------------
15458# Portably unset VAR.
15459as_fn_unset ()
15460{
15461  { eval $1=; unset $1;}
15462}
15463as_unset=as_fn_unset
15464# as_fn_append VAR VALUE
15465# ----------------------
15466# Append the text in VALUE to the end of the definition contained in VAR. Take
15467# advantage of any shell optimizations that allow amortized linear growth over
15468# repeated appends, instead of the typical quadratic growth present in naive
15469# implementations.
15470if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15471  eval 'as_fn_append ()
15472  {
15473    eval $1+=\$2
15474  }'
15475else
15476  as_fn_append ()
15477  {
15478    eval $1=\$$1\$2
15479  }
15480fi # as_fn_append
15481
15482# as_fn_arith ARG...
15483# ------------------
15484# Perform arithmetic evaluation on the ARGs, and store the result in the
15485# global $as_val. Take advantage of shells that can avoid forks. The arguments
15486# must be portable across $(()) and expr.
15487if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15488  eval 'as_fn_arith ()
15489  {
15490    as_val=$(( $* ))
15491  }'
15492else
15493  as_fn_arith ()
15494  {
15495    as_val=`expr "$@" || test $? -eq 1`
15496  }
15497fi # as_fn_arith
15498
15499
15500if expr a : '\(a\)' >/dev/null 2>&1 &&
15501   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15502  as_expr=expr
15503else
15504  as_expr=false
15505fi
15506
15507if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15508  as_basename=basename
15509else
15510  as_basename=false
15511fi
15512
15513if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15514  as_dirname=dirname
15515else
15516  as_dirname=false
15517fi
15518
15519as_me=`$as_basename -- "$0" ||
15520$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15521	 X"$0" : 'X\(//\)$' \| \
15522	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15523$as_echo X/"$0" |
15524    sed '/^.*\/\([^/][^/]*\)\/*$/{
15525	    s//\1/
15526	    q
15527	  }
15528	  /^X\/\(\/\/\)$/{
15529	    s//\1/
15530	    q
15531	  }
15532	  /^X\/\(\/\).*/{
15533	    s//\1/
15534	    q
15535	  }
15536	  s/.*/./; q'`
15537
15538# Avoid depending upon Character Ranges.
15539as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15540as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15541as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15542as_cr_digits='0123456789'
15543as_cr_alnum=$as_cr_Letters$as_cr_digits
15544
15545ECHO_C= ECHO_N= ECHO_T=
15546case `echo -n x` in #(((((
15547-n*)
15548  case `echo 'xy\c'` in
15549  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15550  xy)  ECHO_C='\c';;
15551  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15552       ECHO_T='	';;
15553  esac;;
15554*)
15555  ECHO_N='-n';;
15556esac
15557
15558rm -f conf$$ conf$$.exe conf$$.file
15559if test -d conf$$.dir; then
15560  rm -f conf$$.dir/conf$$.file
15561else
15562  rm -f conf$$.dir
15563  mkdir conf$$.dir 2>/dev/null
15564fi
15565if (echo >conf$$.file) 2>/dev/null; then
15566  if ln -s conf$$.file conf$$ 2>/dev/null; then
15567    as_ln_s='ln -s'
15568    # ... but there are two gotchas:
15569    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15570    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15571    # In both cases, we have to default to `cp -pR'.
15572    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15573      as_ln_s='cp -pR'
15574  elif ln conf$$.file conf$$ 2>/dev/null; then
15575    as_ln_s=ln
15576  else
15577    as_ln_s='cp -pR'
15578  fi
15579else
15580  as_ln_s='cp -pR'
15581fi
15582rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15583rmdir conf$$.dir 2>/dev/null
15584
15585
15586# as_fn_mkdir_p
15587# -------------
15588# Create "$as_dir" as a directory, including parents if necessary.
15589as_fn_mkdir_p ()
15590{
15591
15592  case $as_dir in #(
15593  -*) as_dir=./$as_dir;;
15594  esac
15595  test -d "$as_dir" || eval $as_mkdir_p || {
15596    as_dirs=
15597    while :; do
15598      case $as_dir in #(
15599      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15600      *) as_qdir=$as_dir;;
15601      esac
15602      as_dirs="'$as_qdir' $as_dirs"
15603      as_dir=`$as_dirname -- "$as_dir" ||
15604$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15605	 X"$as_dir" : 'X\(//\)[^/]' \| \
15606	 X"$as_dir" : 'X\(//\)$' \| \
15607	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15608$as_echo X"$as_dir" |
15609    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15610	    s//\1/
15611	    q
15612	  }
15613	  /^X\(\/\/\)[^/].*/{
15614	    s//\1/
15615	    q
15616	  }
15617	  /^X\(\/\/\)$/{
15618	    s//\1/
15619	    q
15620	  }
15621	  /^X\(\/\).*/{
15622	    s//\1/
15623	    q
15624	  }
15625	  s/.*/./; q'`
15626      test -d "$as_dir" && break
15627    done
15628    test -z "$as_dirs" || eval "mkdir $as_dirs"
15629  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15630
15631
15632} # as_fn_mkdir_p
15633if mkdir -p . 2>/dev/null; then
15634  as_mkdir_p='mkdir -p "$as_dir"'
15635else
15636  test -d ./-p && rmdir ./-p
15637  as_mkdir_p=false
15638fi
15639
15640
15641# as_fn_executable_p FILE
15642# -----------------------
15643# Test if FILE is an executable regular file.
15644as_fn_executable_p ()
15645{
15646  test -f "$1" && test -x "$1"
15647} # as_fn_executable_p
15648as_test_x='test -x'
15649as_executable_p=as_fn_executable_p
15650
15651# Sed expression to map a string onto a valid CPP name.
15652as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15653
15654# Sed expression to map a string onto a valid variable name.
15655as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15656
15657
15658exec 6>&1
15659## ----------------------------------- ##
15660## Main body of $CONFIG_STATUS script. ##
15661## ----------------------------------- ##
15662_ASEOF
15663test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15664
15665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15666# Save the log message, to keep $0 and so on meaningful, and to
15667# report actual input values of CONFIG_FILES etc. instead of their
15668# values after options handling.
15669ac_log="
15670This file was extended by python $as_me 2.7, which was
15671generated by GNU Autoconf 2.69.  Invocation command line was
15672
15673  CONFIG_FILES    = $CONFIG_FILES
15674  CONFIG_HEADERS  = $CONFIG_HEADERS
15675  CONFIG_LINKS    = $CONFIG_LINKS
15676  CONFIG_COMMANDS = $CONFIG_COMMANDS
15677  $ $0 $@
15678
15679on `(hostname || uname -n) 2>/dev/null | sed 1q`
15680"
15681
15682_ACEOF
15683
15684case $ac_config_files in *"
15685"*) set x $ac_config_files; shift; ac_config_files=$*;;
15686esac
15687
15688case $ac_config_headers in *"
15689"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15690esac
15691
15692
15693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15694# Files that config.status was made for.
15695config_files="$ac_config_files"
15696config_headers="$ac_config_headers"
15697
15698_ACEOF
15699
15700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15701ac_cs_usage="\
15702\`$as_me' instantiates files and other configuration actions
15703from templates according to the current configuration.  Unless the files
15704and actions are specified as TAGs, all are instantiated by default.
15705
15706Usage: $0 [OPTION]... [TAG]...
15707
15708  -h, --help       print this help, then exit
15709  -V, --version    print version number and configuration settings, then exit
15710      --config     print configuration, then exit
15711  -q, --quiet, --silent
15712                   do not print progress messages
15713  -d, --debug      don't remove temporary files
15714      --recheck    update $as_me by reconfiguring in the same conditions
15715      --file=FILE[:TEMPLATE]
15716                   instantiate the configuration file FILE
15717      --header=FILE[:TEMPLATE]
15718                   instantiate the configuration header FILE
15719
15720Configuration files:
15721$config_files
15722
15723Configuration headers:
15724$config_headers
15725
15726Report bugs to <https://bugs.python.org/>."
15727
15728_ACEOF
15729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15731ac_cs_version="\\
15732python config.status 2.7
15733configured by $0, generated by GNU Autoconf 2.69,
15734  with options \\"\$ac_cs_config\\"
15735
15736Copyright (C) 2012 Free Software Foundation, Inc.
15737This config.status script is free software; the Free Software Foundation
15738gives unlimited permission to copy, distribute and modify it."
15739
15740ac_pwd='$ac_pwd'
15741srcdir='$srcdir'
15742INSTALL='$INSTALL'
15743MKDIR_P='$MKDIR_P'
15744test -n "\$AWK" || AWK=awk
15745_ACEOF
15746
15747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748# The default lists apply if the user does not specify any file.
15749ac_need_defaults=:
15750while test $# != 0
15751do
15752  case $1 in
15753  --*=?*)
15754    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15755    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15756    ac_shift=:
15757    ;;
15758  --*=)
15759    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15760    ac_optarg=
15761    ac_shift=:
15762    ;;
15763  *)
15764    ac_option=$1
15765    ac_optarg=$2
15766    ac_shift=shift
15767    ;;
15768  esac
15769
15770  case $ac_option in
15771  # Handling of the options.
15772  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15773    ac_cs_recheck=: ;;
15774  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15775    $as_echo "$ac_cs_version"; exit ;;
15776  --config | --confi | --conf | --con | --co | --c )
15777    $as_echo "$ac_cs_config"; exit ;;
15778  --debug | --debu | --deb | --de | --d | -d )
15779    debug=: ;;
15780  --file | --fil | --fi | --f )
15781    $ac_shift
15782    case $ac_optarg in
15783    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15784    '') as_fn_error $? "missing file argument" ;;
15785    esac
15786    as_fn_append CONFIG_FILES " '$ac_optarg'"
15787    ac_need_defaults=false;;
15788  --header | --heade | --head | --hea )
15789    $ac_shift
15790    case $ac_optarg in
15791    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15792    esac
15793    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15794    ac_need_defaults=false;;
15795  --he | --h)
15796    # Conflict between --help and --header
15797    as_fn_error $? "ambiguous option: \`$1'
15798Try \`$0 --help' for more information.";;
15799  --help | --hel | -h )
15800    $as_echo "$ac_cs_usage"; exit ;;
15801  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15802  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15803    ac_cs_silent=: ;;
15804
15805  # This is an error.
15806  -*) as_fn_error $? "unrecognized option: \`$1'
15807Try \`$0 --help' for more information." ;;
15808
15809  *) as_fn_append ac_config_targets " $1"
15810     ac_need_defaults=false ;;
15811
15812  esac
15813  shift
15814done
15815
15816ac_configure_extra_args=
15817
15818if $ac_cs_silent; then
15819  exec 6>/dev/null
15820  ac_configure_extra_args="$ac_configure_extra_args --silent"
15821fi
15822
15823_ACEOF
15824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15825if \$ac_cs_recheck; then
15826  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15827  shift
15828  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15829  CONFIG_SHELL='$SHELL'
15830  export CONFIG_SHELL
15831  exec "\$@"
15832fi
15833
15834_ACEOF
15835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15836exec 5>>config.log
15837{
15838  echo
15839  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15840## Running $as_me. ##
15841_ASBOX
15842  $as_echo "$ac_log"
15843} >&5
15844
15845_ACEOF
15846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15847_ACEOF
15848
15849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850
15851# Handling of arguments.
15852for ac_config_target in $ac_config_targets
15853do
15854  case $ac_config_target in
15855    "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
15856    "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
15857    "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
15858    "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
15859    "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
15860    "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
15861    "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
15862    "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
15863    "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
15864    "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
15865
15866  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15867  esac
15868done
15869
15870
15871# If the user did not use the arguments to specify the items to instantiate,
15872# then the envvar interface is used.  Set only those that are not.
15873# We use the long form for the default assignment because of an extremely
15874# bizarre bug on SunOS 4.1.3.
15875if $ac_need_defaults; then
15876  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15877  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15878fi
15879
15880# Have a temporary directory for convenience.  Make it in the build tree
15881# simply because there is no reason against having it here, and in addition,
15882# creating and moving files from /tmp can sometimes cause problems.
15883# Hook for its removal unless debugging.
15884# Note that there is a small window in which the directory will not be cleaned:
15885# after its creation but before its name has been assigned to `$tmp'.
15886$debug ||
15887{
15888  tmp= ac_tmp=
15889  trap 'exit_status=$?
15890  : "${ac_tmp:=$tmp}"
15891  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15892' 0
15893  trap 'as_fn_exit 1' 1 2 13 15
15894}
15895# Create a (secure) tmp directory for tmp files.
15896
15897{
15898  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15899  test -d "$tmp"
15900}  ||
15901{
15902  tmp=./conf$$-$RANDOM
15903  (umask 077 && mkdir "$tmp")
15904} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15905ac_tmp=$tmp
15906
15907# Set up the scripts for CONFIG_FILES section.
15908# No need to generate them if there are no CONFIG_FILES.
15909# This happens for instance with `./config.status config.h'.
15910if test -n "$CONFIG_FILES"; then
15911
15912
15913ac_cr=`echo X | tr X '\015'`
15914# On cygwin, bash can eat \r inside `` if the user requested igncr.
15915# But we know of no other shell where ac_cr would be empty at this
15916# point, so we can use a bashism as a fallback.
15917if test "x$ac_cr" = x; then
15918  eval ac_cr=\$\'\\r\'
15919fi
15920ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15921if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15922  ac_cs_awk_cr='\\r'
15923else
15924  ac_cs_awk_cr=$ac_cr
15925fi
15926
15927echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15928_ACEOF
15929
15930
15931{
15932  echo "cat >conf$$subs.awk <<_ACEOF" &&
15933  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15934  echo "_ACEOF"
15935} >conf$$subs.sh ||
15936  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15937ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15938ac_delim='%!_!# '
15939for ac_last_try in false false false false false :; do
15940  . ./conf$$subs.sh ||
15941    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15942
15943  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15944  if test $ac_delim_n = $ac_delim_num; then
15945    break
15946  elif $ac_last_try; then
15947    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15948  else
15949    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15950  fi
15951done
15952rm -f conf$$subs.sh
15953
15954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15955cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15956_ACEOF
15957sed -n '
15958h
15959s/^/S["/; s/!.*/"]=/
15960p
15961g
15962s/^[^!]*!//
15963:repl
15964t repl
15965s/'"$ac_delim"'$//
15966t delim
15967:nl
15968h
15969s/\(.\{148\}\)..*/\1/
15970t more1
15971s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15972p
15973n
15974b repl
15975:more1
15976s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15977p
15978g
15979s/.\{148\}//
15980t nl
15981:delim
15982h
15983s/\(.\{148\}\)..*/\1/
15984t more2
15985s/["\\]/\\&/g; s/^/"/; s/$/"/
15986p
15987b
15988:more2
15989s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15990p
15991g
15992s/.\{148\}//
15993t delim
15994' <conf$$subs.awk | sed '
15995/^[^""]/{
15996  N
15997  s/\n//
15998}
15999' >>$CONFIG_STATUS || ac_write_fail=1
16000rm -f conf$$subs.awk
16001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16002_ACAWK
16003cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16004  for (key in S) S_is_set[key] = 1
16005  FS = ""
16006
16007}
16008{
16009  line = $ 0
16010  nfields = split(line, field, "@")
16011  substed = 0
16012  len = length(field[1])
16013  for (i = 2; i < nfields; i++) {
16014    key = field[i]
16015    keylen = length(key)
16016    if (S_is_set[key]) {
16017      value = S[key]
16018      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16019      len += length(value) + length(field[++i])
16020      substed = 1
16021    } else
16022      len += 1 + keylen
16023  }
16024
16025  print line
16026}
16027
16028_ACAWK
16029_ACEOF
16030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16031if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16032  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16033else
16034  cat
16035fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16036  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16037_ACEOF
16038
16039# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16040# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16041# trailing colons and then remove the whole line if VPATH becomes empty
16042# (actually we leave an empty line to preserve line numbers).
16043if test "x$srcdir" = x.; then
16044  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16045h
16046s///
16047s/^/:/
16048s/[	 ]*$/:/
16049s/:\$(srcdir):/:/g
16050s/:\${srcdir}:/:/g
16051s/:@srcdir@:/:/g
16052s/^:*//
16053s/:*$//
16054x
16055s/\(=[	 ]*\).*/\1/
16056G
16057s/\n//
16058s/^[^=]*=[	 ]*$//
16059}'
16060fi
16061
16062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063fi # test -n "$CONFIG_FILES"
16064
16065# Set up the scripts for CONFIG_HEADERS section.
16066# No need to generate them if there are no CONFIG_HEADERS.
16067# This happens for instance with `./config.status Makefile'.
16068if test -n "$CONFIG_HEADERS"; then
16069cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16070BEGIN {
16071_ACEOF
16072
16073# Transform confdefs.h into an awk script `defines.awk', embedded as
16074# here-document in config.status, that substitutes the proper values into
16075# config.h.in to produce config.h.
16076
16077# Create a delimiter string that does not exist in confdefs.h, to ease
16078# handling of long lines.
16079ac_delim='%!_!# '
16080for ac_last_try in false false :; do
16081  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16082  if test -z "$ac_tt"; then
16083    break
16084  elif $ac_last_try; then
16085    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16086  else
16087    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16088  fi
16089done
16090
16091# For the awk script, D is an array of macro values keyed by name,
16092# likewise P contains macro parameters if any.  Preserve backslash
16093# newline sequences.
16094
16095ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16096sed -n '
16097s/.\{148\}/&'"$ac_delim"'/g
16098t rset
16099:rset
16100s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16101t def
16102d
16103:def
16104s/\\$//
16105t bsnl
16106s/["\\]/\\&/g
16107s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16108D["\1"]=" \3"/p
16109s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16110d
16111:bsnl
16112s/["\\]/\\&/g
16113s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16114D["\1"]=" \3\\\\\\n"\\/p
16115t cont
16116s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16117t cont
16118d
16119:cont
16120n
16121s/.\{148\}/&'"$ac_delim"'/g
16122t clear
16123:clear
16124s/\\$//
16125t bsnlc
16126s/["\\]/\\&/g; s/^/"/; s/$/"/p
16127d
16128:bsnlc
16129s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16130b cont
16131' <confdefs.h | sed '
16132s/'"$ac_delim"'/"\\\
16133"/g' >>$CONFIG_STATUS || ac_write_fail=1
16134
16135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16136  for (key in D) D_is_set[key] = 1
16137  FS = ""
16138}
16139/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16140  line = \$ 0
16141  split(line, arg, " ")
16142  if (arg[1] == "#") {
16143    defundef = arg[2]
16144    mac1 = arg[3]
16145  } else {
16146    defundef = substr(arg[1], 2)
16147    mac1 = arg[2]
16148  }
16149  split(mac1, mac2, "(") #)
16150  macro = mac2[1]
16151  prefix = substr(line, 1, index(line, defundef) - 1)
16152  if (D_is_set[macro]) {
16153    # Preserve the white space surrounding the "#".
16154    print prefix "define", macro P[macro] D[macro]
16155    next
16156  } else {
16157    # Replace #undef with comments.  This is necessary, for example,
16158    # in the case of _POSIX_SOURCE, which is predefined and required
16159    # on some systems where configure will not decide to define it.
16160    if (defundef == "undef") {
16161      print "/*", prefix defundef, macro, "*/"
16162      next
16163    }
16164  }
16165}
16166{ print }
16167_ACAWK
16168_ACEOF
16169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16170  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16171fi # test -n "$CONFIG_HEADERS"
16172
16173
16174eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
16175shift
16176for ac_tag
16177do
16178  case $ac_tag in
16179  :[FHLC]) ac_mode=$ac_tag; continue;;
16180  esac
16181  case $ac_mode$ac_tag in
16182  :[FHL]*:*);;
16183  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16184  :[FH]-) ac_tag=-:-;;
16185  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16186  esac
16187  ac_save_IFS=$IFS
16188  IFS=:
16189  set x $ac_tag
16190  IFS=$ac_save_IFS
16191  shift
16192  ac_file=$1
16193  shift
16194
16195  case $ac_mode in
16196  :L) ac_source=$1;;
16197  :[FH])
16198    ac_file_inputs=
16199    for ac_f
16200    do
16201      case $ac_f in
16202      -) ac_f="$ac_tmp/stdin";;
16203      *) # Look for the file first in the build tree, then in the source tree
16204	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16205	 # because $ac_f cannot contain `:'.
16206	 test -f "$ac_f" ||
16207	   case $ac_f in
16208	   [\\/$]*) false;;
16209	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16210	   esac ||
16211	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16212      esac
16213      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16214      as_fn_append ac_file_inputs " '$ac_f'"
16215    done
16216
16217    # Let's still pretend it is `configure' which instantiates (i.e., don't
16218    # use $as_me), people would be surprised to read:
16219    #    /* config.h.  Generated by config.status.  */
16220    configure_input='Generated from '`
16221	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16222	`' by configure.'
16223    if test x"$ac_file" != x-; then
16224      configure_input="$ac_file.  $configure_input"
16225      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16226$as_echo "$as_me: creating $ac_file" >&6;}
16227    fi
16228    # Neutralize special characters interpreted by sed in replacement strings.
16229    case $configure_input in #(
16230    *\&* | *\|* | *\\* )
16231       ac_sed_conf_input=`$as_echo "$configure_input" |
16232       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16233    *) ac_sed_conf_input=$configure_input;;
16234    esac
16235
16236    case $ac_tag in
16237    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16238      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16239    esac
16240    ;;
16241  esac
16242
16243  ac_dir=`$as_dirname -- "$ac_file" ||
16244$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16245	 X"$ac_file" : 'X\(//\)[^/]' \| \
16246	 X"$ac_file" : 'X\(//\)$' \| \
16247	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16248$as_echo X"$ac_file" |
16249    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16250	    s//\1/
16251	    q
16252	  }
16253	  /^X\(\/\/\)[^/].*/{
16254	    s//\1/
16255	    q
16256	  }
16257	  /^X\(\/\/\)$/{
16258	    s//\1/
16259	    q
16260	  }
16261	  /^X\(\/\).*/{
16262	    s//\1/
16263	    q
16264	  }
16265	  s/.*/./; q'`
16266  as_dir="$ac_dir"; as_fn_mkdir_p
16267  ac_builddir=.
16268
16269case "$ac_dir" in
16270.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16271*)
16272  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16273  # A ".." for each directory in $ac_dir_suffix.
16274  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16275  case $ac_top_builddir_sub in
16276  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16277  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16278  esac ;;
16279esac
16280ac_abs_top_builddir=$ac_pwd
16281ac_abs_builddir=$ac_pwd$ac_dir_suffix
16282# for backward compatibility:
16283ac_top_builddir=$ac_top_build_prefix
16284
16285case $srcdir in
16286  .)  # We are building in place.
16287    ac_srcdir=.
16288    ac_top_srcdir=$ac_top_builddir_sub
16289    ac_abs_top_srcdir=$ac_pwd ;;
16290  [\\/]* | ?:[\\/]* )  # Absolute name.
16291    ac_srcdir=$srcdir$ac_dir_suffix;
16292    ac_top_srcdir=$srcdir
16293    ac_abs_top_srcdir=$srcdir ;;
16294  *) # Relative name.
16295    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16296    ac_top_srcdir=$ac_top_build_prefix$srcdir
16297    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16298esac
16299ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16300
16301
16302  case $ac_mode in
16303  :F)
16304  #
16305  # CONFIG_FILE
16306  #
16307
16308  case $INSTALL in
16309  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16310  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16311  esac
16312  ac_MKDIR_P=$MKDIR_P
16313  case $MKDIR_P in
16314  [\\/$]* | ?:[\\/]* ) ;;
16315  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16316  esac
16317_ACEOF
16318
16319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320# If the template does not know about datarootdir, expand it.
16321# FIXME: This hack should be removed a few years after 2.60.
16322ac_datarootdir_hack=; ac_datarootdir_seen=
16323ac_sed_dataroot='
16324/datarootdir/ {
16325  p
16326  q
16327}
16328/@datadir@/p
16329/@docdir@/p
16330/@infodir@/p
16331/@localedir@/p
16332/@mandir@/p'
16333case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16334*datarootdir*) ac_datarootdir_seen=yes;;
16335*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16336  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16337$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16338_ACEOF
16339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16340  ac_datarootdir_hack='
16341  s&@datadir@&$datadir&g
16342  s&@docdir@&$docdir&g
16343  s&@infodir@&$infodir&g
16344  s&@localedir@&$localedir&g
16345  s&@mandir@&$mandir&g
16346  s&\\\${datarootdir}&$datarootdir&g' ;;
16347esac
16348_ACEOF
16349
16350# Neutralize VPATH when `$srcdir' = `.'.
16351# Shell code in configure.ac might set extrasub.
16352# FIXME: do we really want to maintain this feature?
16353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16354ac_sed_extra="$ac_vpsub
16355$extrasub
16356_ACEOF
16357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16358:t
16359/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16360s|@configure_input@|$ac_sed_conf_input|;t t
16361s&@top_builddir@&$ac_top_builddir_sub&;t t
16362s&@top_build_prefix@&$ac_top_build_prefix&;t t
16363s&@srcdir@&$ac_srcdir&;t t
16364s&@abs_srcdir@&$ac_abs_srcdir&;t t
16365s&@top_srcdir@&$ac_top_srcdir&;t t
16366s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16367s&@builddir@&$ac_builddir&;t t
16368s&@abs_builddir@&$ac_abs_builddir&;t t
16369s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16370s&@INSTALL@&$ac_INSTALL&;t t
16371s&@MKDIR_P@&$ac_MKDIR_P&;t t
16372$ac_datarootdir_hack
16373"
16374eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16375  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16376
16377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16378  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16379  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16380      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16381  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16382which seems to be undefined.  Please make sure it is defined" >&5
16383$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16384which seems to be undefined.  Please make sure it is defined" >&2;}
16385
16386  rm -f "$ac_tmp/stdin"
16387  case $ac_file in
16388  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16389  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16390  esac \
16391  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16392 ;;
16393  :H)
16394  #
16395  # CONFIG_HEADER
16396  #
16397  if test x"$ac_file" != x-; then
16398    {
16399      $as_echo "/* $configure_input  */" \
16400      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16401    } >"$ac_tmp/config.h" \
16402      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16403    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16404      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16405$as_echo "$as_me: $ac_file is unchanged" >&6;}
16406    else
16407      rm -f "$ac_file"
16408      mv "$ac_tmp/config.h" "$ac_file" \
16409	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16410    fi
16411  else
16412    $as_echo "/* $configure_input  */" \
16413      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16414      || as_fn_error $? "could not create -" "$LINENO" 5
16415  fi
16416 ;;
16417
16418
16419  esac
16420
16421
16422  case $ac_file$ac_mode in
16423    "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
16424
16425  esac
16426done # for ac_tag
16427
16428
16429as_fn_exit 0
16430_ACEOF
16431ac_clean_files=$ac_clean_files_save
16432
16433test $ac_write_fail = 0 ||
16434  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16435
16436
16437# configure is writing to config.log, and then calls config.status.
16438# config.status does its own redirection, appending to config.log.
16439# Unfortunately, on DOS this fails, as config.log is still kept open
16440# by configure, so config.status won't be able to write to it; its
16441# output is simply discarded.  So we exec the FD to /dev/null,
16442# effectively closing config.log, so it can be properly (re)opened and
16443# appended to by config.status.  When coming back to configure, we
16444# need to make the FD available again.
16445if test "$no_create" != yes; then
16446  ac_cs_success=:
16447  ac_config_status_args=
16448  test "$silent" = yes &&
16449    ac_config_status_args="$ac_config_status_args --quiet"
16450  exec 5>/dev/null
16451  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16452  exec 5>>config.log
16453  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16454  # would make configure fail if this is the last instruction.
16455  $ac_cs_success || as_fn_exit 1
16456fi
16457if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16458  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16459$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16460fi
16461
16462
16463echo "creating Modules/Setup"
16464if test ! -f Modules/Setup
16465then
16466	cp $srcdir/Modules/Setup.dist Modules/Setup
16467fi
16468
16469echo "creating Modules/Setup.local"
16470if test ! -f Modules/Setup.local
16471then
16472	echo "# Edit this file for local setup changes" >Modules/Setup.local
16473fi
16474
16475echo "creating Makefile"
16476$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
16477			-s Modules Modules/Setup.config \
16478			Modules/Setup.local Modules/Setup
16479
16480case $ac_sys_system in
16481BeOS)
16482        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16483
16484  Support for BeOS is deprecated as of Python 2.6.
16485  See PEP 11 for the gory details.
16486  " >&5
16487$as_echo "$as_me: WARNING:
16488
16489  Support for BeOS is deprecated as of Python 2.6.
16490  See PEP 11 for the gory details.
16491  " >&2;}
16492  ;;
16493*) ;;
16494esac
16495
16496mv config.c Modules
16497
16498if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
16499    echo "" >&6
16500    echo "" >&6
16501    echo "If you want a release build with all optimizations active (LTO, PGO, etc),"
16502    echo "please run ./configure --enable-optimizations" >&6
16503    echo "" >&6
16504    echo "" >&6
16505fi
16506