~malept/ubuntu/lucid/python2.6/dev-dependency-fix

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-13 12:51:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090213125100-uufgcb9yeqzujpqw
Tags: upstream-2.6.1
ImportĀ upstreamĀ versionĀ 2.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# From configure.in Revision: 67229 .
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated by GNU Autoconf 2.61 for python 2.6.
 
5
#
 
6
# Report bugs to <http://www.python.org/python-bugs>.
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
10
# This configure script is free software; the Free Software Foundation
 
11
# gives unlimited permission to copy, distribute and modify it.
 
12
## --------------------- ##
 
13
## M4sh Initialization.  ##
 
14
## --------------------- ##
 
15
 
 
16
# Be more Bourne compatible
 
17
DUALCASE=1; export DUALCASE # for MKS sh
 
18
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19
  emulate sh
 
20
  NULLCMD=:
 
21
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22
  # is contrary to our usage.  Disable this feature.
 
23
  alias -g '${1+"$@"}'='"$@"'
 
24
  setopt NO_GLOB_SUBST
 
25
else
 
26
  case `(set -o) 2>/dev/null` in
 
27
  *posix*) set -o posix ;;
 
28
esac
 
29
 
 
30
fi
 
31
 
 
32
 
 
33
 
 
34
 
 
35
# PATH needs CR
 
36
# Avoid depending upon Character Ranges.
 
37
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
38
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
39
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
40
as_cr_digits='0123456789'
 
41
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
42
 
 
43
# The user is always right.
 
44
if test "${PATH_SEPARATOR+set}" != set; then
 
45
  echo "#! /bin/sh" >conf$$.sh
 
46
  echo  "exit 0"   >>conf$$.sh
 
47
  chmod +x conf$$.sh
 
48
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
49
    PATH_SEPARATOR=';'
 
50
  else
 
51
    PATH_SEPARATOR=:
 
52
  fi
 
53
  rm -f conf$$.sh
 
54
fi
 
55
 
 
56
# Support unset when possible.
 
57
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
58
  as_unset=unset
 
59
else
 
60
  as_unset=false
 
61
fi
 
62
 
 
63
 
 
64
# IFS
 
65
# We need space, tab and new line, in precisely that order.  Quoting is
 
66
# there to prevent editors from complaining about space-tab.
 
67
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
68
# splitting by setting IFS to empty value.)
 
69
as_nl='
 
70
'
 
71
IFS=" ""        $as_nl"
 
72
 
 
73
# Find who we are.  Look in the path if we contain no directory separator.
 
74
case $0 in
 
75
  *[\\/]* ) as_myself=$0 ;;
 
76
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
77
for as_dir in $PATH
 
78
do
 
79
  IFS=$as_save_IFS
 
80
  test -z "$as_dir" && as_dir=.
 
81
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
82
done
 
83
IFS=$as_save_IFS
 
84
 
 
85
     ;;
 
86
esac
 
87
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
88
# in which case we are not to be found in the path.
 
89
if test "x$as_myself" = x; then
 
90
  as_myself=$0
 
91
fi
 
92
if test ! -f "$as_myself"; then
 
93
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
94
  { (exit 1); exit 1; }
 
95
fi
 
96
 
 
97
# Work around bugs in pre-3.0 UWIN ksh.
 
98
for as_var in ENV MAIL MAILPATH
 
99
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
100
done
 
101
PS1='$ '
 
102
PS2='> '
 
103
PS4='+ '
 
104
 
 
105
# NLS nuisances.
 
106
for as_var in \
 
107
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
108
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
109
  LC_TELEPHONE LC_TIME
 
110
do
 
111
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
112
    eval $as_var=C; export $as_var
 
113
  else
 
114
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
115
  fi
 
116
done
 
117
 
 
118
# Required to use basename.
 
119
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
120
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
121
  as_expr=expr
 
122
else
 
123
  as_expr=false
 
124
fi
 
125
 
 
126
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
127
  as_basename=basename
 
128
else
 
129
  as_basename=false
 
130
fi
 
131
 
 
132
 
 
133
# Name of the executable.
 
134
as_me=`$as_basename -- "$0" ||
 
135
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
136
         X"$0" : 'X\(//\)$' \| \
 
137
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
138
echo X/"$0" |
 
139
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
140
            s//\1/
 
141
            q
 
142
          }
 
143
          /^X\/\(\/\/\)$/{
 
144
            s//\1/
 
145
            q
 
146
          }
 
147
          /^X\/\(\/\).*/{
 
148
            s//\1/
 
149
            q
 
150
          }
 
151
          s/.*/./; q'`
 
152
 
 
153
# CDPATH.
 
154
$as_unset CDPATH
 
155
 
 
156
 
 
157
if test "x$CONFIG_SHELL" = x; then
 
158
  if (eval ":") 2>/dev/null; then
 
159
  as_have_required=yes
 
160
else
 
161
  as_have_required=no
 
162
fi
 
163
 
 
164
  if test $as_have_required = yes &&     (eval ":
 
165
(as_func_return () {
 
166
  (exit \$1)
 
167
}
 
168
as_func_success () {
 
169
  as_func_return 0
 
170
}
 
171
as_func_failure () {
 
172
  as_func_return 1
 
173
}
 
174
as_func_ret_success () {
 
175
  return 0
 
176
}
 
177
as_func_ret_failure () {
 
178
  return 1
 
179
}
 
180
 
 
181
exitcode=0
 
182
if as_func_success; then
 
183
  :
 
184
else
 
185
  exitcode=1
 
186
  echo as_func_success failed.
 
187
fi
 
188
 
 
189
if as_func_failure; then
 
190
  exitcode=1
 
191
  echo as_func_failure succeeded.
 
192
fi
 
193
 
 
194
if as_func_ret_success; then
 
195
  :
 
196
else
 
197
  exitcode=1
 
198
  echo as_func_ret_success failed.
 
199
fi
 
200
 
 
201
if as_func_ret_failure; then
 
202
  exitcode=1
 
203
  echo as_func_ret_failure succeeded.
 
204
fi
 
205
 
 
206
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
207
  :
 
208
else
 
209
  exitcode=1
 
210
  echo positional parameters were not saved.
 
211
fi
 
212
 
 
213
test \$exitcode = 0) || { (exit 1); exit 1; }
 
214
 
 
215
(
 
216
  as_lineno_1=\$LINENO
 
217
  as_lineno_2=\$LINENO
 
218
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
219
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
220
") 2> /dev/null; then
 
221
  :
 
222
else
 
223
  as_candidate_shells=
 
224
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
225
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
226
do
 
227
  IFS=$as_save_IFS
 
228
  test -z "$as_dir" && as_dir=.
 
229
  case $as_dir in
 
230
         /*)
 
231
           for as_base in sh bash ksh sh5; do
 
232
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
233
           done;;
 
234
       esac
 
235
done
 
236
IFS=$as_save_IFS
 
237
 
 
238
 
 
239
      for as_shell in $as_candidate_shells $SHELL; do
 
240
         # Try only shells that exist, to save several forks.
 
241
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
242
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
243
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
244
  emulate sh
 
245
  NULLCMD=:
 
246
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
247
  # is contrary to our usage.  Disable this feature.
 
248
  alias -g '${1+"$@"}'='"$@"'
 
249
  setopt NO_GLOB_SUBST
 
250
else
 
251
  case `(set -o) 2>/dev/null` in
 
252
  *posix*) set -o posix ;;
 
253
esac
 
254
 
 
255
fi
 
256
 
 
257
 
 
258
:
 
259
_ASEOF
 
260
}; then
 
261
  CONFIG_SHELL=$as_shell
 
262
               as_have_required=yes
 
263
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
264
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
265
  emulate sh
 
266
  NULLCMD=:
 
267
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
268
  # is contrary to our usage.  Disable this feature.
 
269
  alias -g '${1+"$@"}'='"$@"'
 
270
  setopt NO_GLOB_SUBST
 
271
else
 
272
  case `(set -o) 2>/dev/null` in
 
273
  *posix*) set -o posix ;;
 
274
esac
 
275
 
 
276
fi
 
277
 
 
278
 
 
279
:
 
280
(as_func_return () {
 
281
  (exit $1)
 
282
}
 
283
as_func_success () {
 
284
  as_func_return 0
 
285
}
 
286
as_func_failure () {
 
287
  as_func_return 1
 
288
}
 
289
as_func_ret_success () {
 
290
  return 0
 
291
}
 
292
as_func_ret_failure () {
 
293
  return 1
 
294
}
 
295
 
 
296
exitcode=0
 
297
if as_func_success; then
 
298
  :
 
299
else
 
300
  exitcode=1
 
301
  echo as_func_success failed.
 
302
fi
 
303
 
 
304
if as_func_failure; then
 
305
  exitcode=1
 
306
  echo as_func_failure succeeded.
 
307
fi
 
308
 
 
309
if as_func_ret_success; then
 
310
  :
 
311
else
 
312
  exitcode=1
 
313
  echo as_func_ret_success failed.
 
314
fi
 
315
 
 
316
if as_func_ret_failure; then
 
317
  exitcode=1
 
318
  echo as_func_ret_failure succeeded.
 
319
fi
 
320
 
 
321
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
322
  :
 
323
else
 
324
  exitcode=1
 
325
  echo positional parameters were not saved.
 
326
fi
 
327
 
 
328
test $exitcode = 0) || { (exit 1); exit 1; }
 
329
 
 
330
(
 
331
  as_lineno_1=$LINENO
 
332
  as_lineno_2=$LINENO
 
333
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
334
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
335
 
 
336
_ASEOF
 
337
}; then
 
338
  break
 
339
fi
 
340
 
 
341
fi
 
342
 
 
343
      done
 
344
 
 
345
      if test "x$CONFIG_SHELL" != x; then
 
346
  for as_var in BASH_ENV ENV
 
347
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
348
        done
 
349
        export CONFIG_SHELL
 
350
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
351
fi
 
352
 
 
353
 
 
354
    if test $as_have_required = no; then
 
355
  echo This script requires a shell more modern than all the
 
356
      echo shells that I found on your system.  Please install a
 
357
      echo modern shell, or manually run the script under such a
 
358
      echo shell if you do have one.
 
359
      { (exit 1); exit 1; }
 
360
fi
 
361
 
 
362
 
 
363
fi
 
364
 
 
365
fi
 
366
 
 
367
 
 
368
 
 
369
(eval "as_func_return () {
 
370
  (exit \$1)
 
371
}
 
372
as_func_success () {
 
373
  as_func_return 0
 
374
}
 
375
as_func_failure () {
 
376
  as_func_return 1
 
377
}
 
378
as_func_ret_success () {
 
379
  return 0
 
380
}
 
381
as_func_ret_failure () {
 
382
  return 1
 
383
}
 
384
 
 
385
exitcode=0
 
386
if as_func_success; then
 
387
  :
 
388
else
 
389
  exitcode=1
 
390
  echo as_func_success failed.
 
391
fi
 
392
 
 
393
if as_func_failure; then
 
394
  exitcode=1
 
395
  echo as_func_failure succeeded.
 
396
fi
 
397
 
 
398
if as_func_ret_success; then
 
399
  :
 
400
else
 
401
  exitcode=1
 
402
  echo as_func_ret_success failed.
 
403
fi
 
404
 
 
405
if as_func_ret_failure; then
 
406
  exitcode=1
 
407
  echo as_func_ret_failure succeeded.
 
408
fi
 
409
 
 
410
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
411
  :
 
412
else
 
413
  exitcode=1
 
414
  echo positional parameters were not saved.
 
415
fi
 
416
 
 
417
test \$exitcode = 0") || {
 
418
  echo No shell found that supports shell functions.
 
419
  echo Please tell autoconf@gnu.org about your system,
 
420
  echo including any error possibly output before this
 
421
  echo message
 
422
}
 
423
 
 
424
 
 
425
 
 
426
  as_lineno_1=$LINENO
 
427
  as_lineno_2=$LINENO
 
428
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
429
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
430
 
 
431
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
432
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
433
  # line-number line after each line using $LINENO; the second 'sed'
 
434
  # does the real work.  The second script uses 'N' to pair each
 
435
  # line-number line with the line containing $LINENO, and appends
 
436
  # trailing '-' during substitution so that $LINENO is not a special
 
437
  # case at line end.
 
438
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
439
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
440
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
441
  sed -n '
 
442
    p
 
443
    /[$]LINENO/=
 
444
  ' <$as_myself |
 
445
    sed '
 
446
      s/[$]LINENO.*/&-/
 
447
      t lineno
 
448
      b
 
449
      :lineno
 
450
      N
 
451
      :loop
 
452
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
453
      t loop
 
454
      s/-\n.*//
 
455
    ' >$as_me.lineno &&
 
456
  chmod +x "$as_me.lineno" ||
 
457
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
458
   { (exit 1); exit 1; }; }
 
459
 
 
460
  # Don't try to exec as it changes $[0], causing all sort of problems
 
461
  # (the dirname of $[0] is not the place where we might find the
 
462
  # original and so on.  Autoconf is especially sensitive to this).
 
463
  . "./$as_me.lineno"
 
464
  # Exit status is that of the last command.
 
465
  exit
 
466
}
 
467
 
 
468
 
 
469
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
470
  as_dirname=dirname
 
471
else
 
472
  as_dirname=false
 
473
fi
 
474
 
 
475
ECHO_C= ECHO_N= ECHO_T=
 
476
case `echo -n x` in
 
477
-n*)
 
478
  case `echo 'x\c'` in
 
479
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
480
  *)   ECHO_C='\c';;
 
481
  esac;;
 
482
*)
 
483
  ECHO_N='-n';;
 
484
esac
 
485
 
 
486
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
487
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
488
  as_expr=expr
 
489
else
 
490
  as_expr=false
 
491
fi
 
492
 
 
493
rm -f conf$$ conf$$.exe conf$$.file
 
494
if test -d conf$$.dir; then
 
495
  rm -f conf$$.dir/conf$$.file
 
496
else
 
497
  rm -f conf$$.dir
 
498
  mkdir conf$$.dir
 
499
fi
 
500
echo >conf$$.file
 
501
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
502
  as_ln_s='ln -s'
 
503
  # ... but there are two gotchas:
 
504
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
505
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
506
  # In both cases, we have to default to `cp -p'.
 
507
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
508
    as_ln_s='cp -p'
 
509
elif ln conf$$.file conf$$ 2>/dev/null; then
 
510
  as_ln_s=ln
 
511
else
 
512
  as_ln_s='cp -p'
 
513
fi
 
514
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
515
rmdir conf$$.dir 2>/dev/null
 
516
 
 
517
if mkdir -p . 2>/dev/null; then
 
518
  as_mkdir_p=:
 
519
else
 
520
  test -d ./-p && rmdir ./-p
 
521
  as_mkdir_p=false
 
522
fi
 
523
 
 
524
if test -x / >/dev/null 2>&1; then
 
525
  as_test_x='test -x'
 
526
else
 
527
  if ls -dL / >/dev/null 2>&1; then
 
528
    as_ls_L_option=L
 
529
  else
 
530
    as_ls_L_option=
 
531
  fi
 
532
  as_test_x='
 
533
    eval sh -c '\''
 
534
      if test -d "$1"; then
 
535
        test -d "$1/.";
 
536
      else
 
537
        case $1 in
 
538
        -*)set "./$1";;
 
539
        esac;
 
540
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
541
        ???[sx]*):;;*)false;;esac;fi
 
542
    '\'' sh
 
543
  '
 
544
fi
 
545
as_executable_p=$as_test_x
 
546
 
 
547
# Sed expression to map a string onto a valid CPP name.
 
548
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
549
 
 
550
# Sed expression to map a string onto a valid variable name.
 
551
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
552
 
 
553
 
 
554
 
 
555
exec 7<&0 </dev/null 6>&1
 
556
 
 
557
# Name of the host.
 
558
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
559
# so uname gets run too.
 
560
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
561
 
 
562
#
 
563
# Initializations.
 
564
#
 
565
ac_default_prefix=/usr/local
 
566
ac_clean_files=
 
567
ac_config_libobj_dir=.
 
568
LIBOBJS=
 
569
cross_compiling=no
 
570
subdirs=
 
571
MFLAGS=
 
572
MAKEFLAGS=
 
573
SHELL=${CONFIG_SHELL-/bin/sh}
 
574
 
 
575
# Identity of this package.
 
576
PACKAGE_NAME='python'
 
577
PACKAGE_TARNAME='python'
 
578
PACKAGE_VERSION='2.6'
 
579
PACKAGE_STRING='python 2.6'
 
580
PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
 
581
 
 
582
ac_unique_file="Include/object.h"
 
583
# Factoring default headers for most tests.
 
584
ac_includes_default="\
 
585
#include <stdio.h>
 
586
#ifdef HAVE_SYS_TYPES_H
 
587
# include <sys/types.h>
 
588
#endif
 
589
#ifdef HAVE_SYS_STAT_H
 
590
# include <sys/stat.h>
 
591
#endif
 
592
#ifdef STDC_HEADERS
 
593
# include <stdlib.h>
 
594
# include <stddef.h>
 
595
#else
 
596
# ifdef HAVE_STDLIB_H
 
597
#  include <stdlib.h>
 
598
# endif
 
599
#endif
 
600
#ifdef HAVE_STRING_H
 
601
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
602
#  include <memory.h>
 
603
# endif
 
604
# include <string.h>
 
605
#endif
 
606
#ifdef HAVE_STRINGS_H
 
607
# include <strings.h>
 
608
#endif
 
609
#ifdef HAVE_INTTYPES_H
 
610
# include <inttypes.h>
 
611
#endif
 
612
#ifdef HAVE_STDINT_H
 
613
# include <stdint.h>
 
614
#endif
 
615
#ifdef HAVE_UNISTD_H
 
616
# include <unistd.h>
 
617
#endif"
 
618
 
 
619
ac_subst_vars='SHELL
 
620
PATH_SEPARATOR
 
621
PACKAGE_NAME
 
622
PACKAGE_TARNAME
 
623
PACKAGE_VERSION
 
624
PACKAGE_STRING
 
625
PACKAGE_BUGREPORT
 
626
exec_prefix
 
627
prefix
 
628
program_transform_name
 
629
bindir
 
630
sbindir
 
631
libexecdir
 
632
datarootdir
 
633
datadir
 
634
sysconfdir
 
635
sharedstatedir
 
636
localstatedir
 
637
includedir
 
638
oldincludedir
 
639
docdir
 
640
infodir
 
641
htmldir
 
642
dvidir
 
643
pdfdir
 
644
psdir
 
645
libdir
 
646
localedir
 
647
mandir
 
648
DEFS
 
649
ECHO_C
 
650
ECHO_N
 
651
ECHO_T
 
652
LIBS
 
653
build_alias
 
654
host_alias
 
655
target_alias
 
656
VERSION
 
657
SOVERSION
 
658
CONFIG_ARGS
 
659
UNIVERSALSDK
 
660
ARCH_RUN_32BIT
 
661
PYTHONFRAMEWORK
 
662
PYTHONFRAMEWORKIDENTIFIER
 
663
PYTHONFRAMEWORKDIR
 
664
PYTHONFRAMEWORKPREFIX
 
665
PYTHONFRAMEWORKINSTALLDIR
 
666
FRAMEWORKINSTALLFIRST
 
667
FRAMEWORKINSTALLLAST
 
668
FRAMEWORKALTINSTALLFIRST
 
669
FRAMEWORKALTINSTALLLAST
 
670
FRAMEWORKUNIXTOOLSPREFIX
 
671
MACHDEP
 
672
SGI_ABI
 
673
EXTRAPLATDIR
 
674
EXTRAMACHDEPPATH
 
675
CONFIGURE_MACOSX_DEPLOYMENT_TARGET
 
676
EXPORT_MACOSX_DEPLOYMENT_TARGET
 
677
CC
 
678
CFLAGS
 
679
LDFLAGS
 
680
CPPFLAGS
 
681
ac_ct_CC
 
682
EXEEXT
 
683
OBJEXT
 
684
CXX
 
685
MAINCC
 
686
CPP
 
687
GREP
 
688
EGREP
 
689
BUILDEXEEXT
 
690
LIBRARY
 
691
LDLIBRARY
 
692
DLLLIBRARY
 
693
BLDLIBRARY
 
694
LDLIBRARYDIR
 
695
INSTSONAME
 
696
RUNSHARED
 
697
LINKCC
 
698
RANLIB
 
699
AR
 
700
SVNVERSION
 
701
INSTALL_PROGRAM
 
702
INSTALL_SCRIPT
 
703
INSTALL_DATA
 
704
LN
 
705
OPT
 
706
BASECFLAGS
 
707
UNIVERSAL_ARCH_FLAGS
 
708
OTHER_LIBTOOL_OPT
 
709
LIBTOOL_CRUFT
 
710
SO
 
711
LDSHARED
 
712
BLDSHARED
 
713
CCSHARED
 
714
LINKFORSHARED
 
715
CFLAGSFORSHARED
 
716
SHLIBS
 
717
USE_SIGNAL_MODULE
 
718
SIGNAL_OBJS
 
719
USE_THREAD_MODULE
 
720
LDLAST
 
721
THREADOBJ
 
722
DLINCLDIR
 
723
DYNLOADFILE
 
724
MACHDEP_OBJS
 
725
TRUE
 
726
LIBOBJS
 
727
HAVE_GETHOSTBYNAME_R_6_ARG
 
728
HAVE_GETHOSTBYNAME_R_5_ARG
 
729
HAVE_GETHOSTBYNAME_R_3_ARG
 
730
HAVE_GETHOSTBYNAME_R
 
731
HAVE_GETHOSTBYNAME
 
732
LIBM
 
733
LIBC
 
734
UNICODE_OBJS
 
735
THREADHEADERS
 
736
SRCDIRS
 
737
LTLIBOBJS'
 
738
ac_subst_files=''
 
739
      ac_precious_vars='build_alias
 
740
host_alias
 
741
target_alias
 
742
CC
 
743
CFLAGS
 
744
LDFLAGS
 
745
LIBS
 
746
CPPFLAGS
 
747
CPP'
 
748
 
 
749
 
 
750
# Initialize some variables set by options.
 
751
ac_init_help=
 
752
ac_init_version=false
 
753
# The variables have the same names as the options, with
 
754
# dashes changed to underlines.
 
755
cache_file=/dev/null
 
756
exec_prefix=NONE
 
757
no_create=
 
758
no_recursion=
 
759
prefix=NONE
 
760
program_prefix=NONE
 
761
program_suffix=NONE
 
762
program_transform_name=s,x,x,
 
763
silent=
 
764
site=
 
765
srcdir=
 
766
verbose=
 
767
x_includes=NONE
 
768
x_libraries=NONE
 
769
 
 
770
# Installation directory options.
 
771
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
772
# and all the variables that are supposed to be based on exec_prefix
 
773
# by default will actually change.
 
774
# Use braces instead of parens because sh, perl, etc. also accept them.
 
775
# (The list follows the same order as the GNU Coding Standards.)
 
776
bindir='${exec_prefix}/bin'
 
777
sbindir='${exec_prefix}/sbin'
 
778
libexecdir='${exec_prefix}/libexec'
 
779
datarootdir='${prefix}/share'
 
780
datadir='${datarootdir}'
 
781
sysconfdir='${prefix}/etc'
 
782
sharedstatedir='${prefix}/com'
 
783
localstatedir='${prefix}/var'
 
784
includedir='${prefix}/include'
 
785
oldincludedir='/usr/include'
 
786
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
787
infodir='${datarootdir}/info'
 
788
htmldir='${docdir}'
 
789
dvidir='${docdir}'
 
790
pdfdir='${docdir}'
 
791
psdir='${docdir}'
 
792
libdir='${exec_prefix}/lib'
 
793
localedir='${datarootdir}/locale'
 
794
mandir='${datarootdir}/man'
 
795
 
 
796
ac_prev=
 
797
ac_dashdash=
 
798
for ac_option
 
799
do
 
800
  # If the previous option needs an argument, assign it.
 
801
  if test -n "$ac_prev"; then
 
802
    eval $ac_prev=\$ac_option
 
803
    ac_prev=
 
804
    continue
 
805
  fi
 
806
 
 
807
  case $ac_option in
 
808
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
809
  *)    ac_optarg=yes ;;
 
810
  esac
 
811
 
 
812
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
813
 
 
814
  case $ac_dashdash$ac_option in
 
815
  --)
 
816
    ac_dashdash=yes ;;
 
817
 
 
818
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
819
    ac_prev=bindir ;;
 
820
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
821
    bindir=$ac_optarg ;;
 
822
 
 
823
  -build | --build | --buil | --bui | --bu)
 
824
    ac_prev=build_alias ;;
 
825
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
826
    build_alias=$ac_optarg ;;
 
827
 
 
828
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
829
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
830
    ac_prev=cache_file ;;
 
831
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
832
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
833
    cache_file=$ac_optarg ;;
 
834
 
 
835
  --config-cache | -C)
 
836
    cache_file=config.cache ;;
 
837
 
 
838
  -datadir | --datadir | --datadi | --datad)
 
839
    ac_prev=datadir ;;
 
840
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
841
    datadir=$ac_optarg ;;
 
842
 
 
843
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
844
  | --dataroo | --dataro | --datar)
 
845
    ac_prev=datarootdir ;;
 
846
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
847
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
848
    datarootdir=$ac_optarg ;;
 
849
 
 
850
  -disable-* | --disable-*)
 
851
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
852
    # Reject names that are not valid shell variable names.
 
853
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
854
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
855
   { (exit 1); exit 1; }; }
 
856
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
857
    eval enable_$ac_feature=no ;;
 
858
 
 
859
  -docdir | --docdir | --docdi | --doc | --do)
 
860
    ac_prev=docdir ;;
 
861
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
862
    docdir=$ac_optarg ;;
 
863
 
 
864
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
865
    ac_prev=dvidir ;;
 
866
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
867
    dvidir=$ac_optarg ;;
 
868
 
 
869
  -enable-* | --enable-*)
 
870
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
871
    # Reject names that are not valid shell variable names.
 
872
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
873
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
874
   { (exit 1); exit 1; }; }
 
875
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
876
    eval enable_$ac_feature=\$ac_optarg ;;
 
877
 
 
878
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
879
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
880
  | --exec | --exe | --ex)
 
881
    ac_prev=exec_prefix ;;
 
882
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
883
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
884
  | --exec=* | --exe=* | --ex=*)
 
885
    exec_prefix=$ac_optarg ;;
 
886
 
 
887
  -gas | --gas | --ga | --g)
 
888
    # Obsolete; use --with-gas.
 
889
    with_gas=yes ;;
 
890
 
 
891
  -help | --help | --hel | --he | -h)
 
892
    ac_init_help=long ;;
 
893
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
894
    ac_init_help=recursive ;;
 
895
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
896
    ac_init_help=short ;;
 
897
 
 
898
  -host | --host | --hos | --ho)
 
899
    ac_prev=host_alias ;;
 
900
  -host=* | --host=* | --hos=* | --ho=*)
 
901
    host_alias=$ac_optarg ;;
 
902
 
 
903
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
904
    ac_prev=htmldir ;;
 
905
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
906
  | --ht=*)
 
907
    htmldir=$ac_optarg ;;
 
908
 
 
909
  -includedir | --includedir | --includedi | --included | --include \
 
910
  | --includ | --inclu | --incl | --inc)
 
911
    ac_prev=includedir ;;
 
912
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
913
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
914
    includedir=$ac_optarg ;;
 
915
 
 
916
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
917
    ac_prev=infodir ;;
 
918
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
919
    infodir=$ac_optarg ;;
 
920
 
 
921
  -libdir | --libdir | --libdi | --libd)
 
922
    ac_prev=libdir ;;
 
923
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
924
    libdir=$ac_optarg ;;
 
925
 
 
926
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
927
  | --libexe | --libex | --libe)
 
928
    ac_prev=libexecdir ;;
 
929
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
930
  | --libexe=* | --libex=* | --libe=*)
 
931
    libexecdir=$ac_optarg ;;
 
932
 
 
933
  -localedir | --localedir | --localedi | --localed | --locale)
 
934
    ac_prev=localedir ;;
 
935
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
936
    localedir=$ac_optarg ;;
 
937
 
 
938
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
939
  | --localstate | --localstat | --localsta | --localst | --locals)
 
940
    ac_prev=localstatedir ;;
 
941
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
942
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
943
    localstatedir=$ac_optarg ;;
 
944
 
 
945
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
946
    ac_prev=mandir ;;
 
947
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
948
    mandir=$ac_optarg ;;
 
949
 
 
950
  -nfp | --nfp | --nf)
 
951
    # Obsolete; use --without-fp.
 
952
    with_fp=no ;;
 
953
 
 
954
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
955
  | --no-cr | --no-c | -n)
 
956
    no_create=yes ;;
 
957
 
 
958
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
959
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
960
    no_recursion=yes ;;
 
961
 
 
962
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
963
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
964
  | --oldin | --oldi | --old | --ol | --o)
 
965
    ac_prev=oldincludedir ;;
 
966
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
967
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
968
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
969
    oldincludedir=$ac_optarg ;;
 
970
 
 
971
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
972
    ac_prev=prefix ;;
 
973
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
974
    prefix=$ac_optarg ;;
 
975
 
 
976
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
977
  | --program-pre | --program-pr | --program-p)
 
978
    ac_prev=program_prefix ;;
 
979
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
980
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
981
    program_prefix=$ac_optarg ;;
 
982
 
 
983
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
984
  | --program-suf | --program-su | --program-s)
 
985
    ac_prev=program_suffix ;;
 
986
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
987
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
988
    program_suffix=$ac_optarg ;;
 
989
 
 
990
  -program-transform-name | --program-transform-name \
 
991
  | --program-transform-nam | --program-transform-na \
 
992
  | --program-transform-n | --program-transform- \
 
993
  | --program-transform | --program-transfor \
 
994
  | --program-transfo | --program-transf \
 
995
  | --program-trans | --program-tran \
 
996
  | --progr-tra | --program-tr | --program-t)
 
997
    ac_prev=program_transform_name ;;
 
998
  -program-transform-name=* | --program-transform-name=* \
 
999
  | --program-transform-nam=* | --program-transform-na=* \
 
1000
  | --program-transform-n=* | --program-transform-=* \
 
1001
  | --program-transform=* | --program-transfor=* \
 
1002
  | --program-transfo=* | --program-transf=* \
 
1003
  | --program-trans=* | --program-tran=* \
 
1004
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1005
    program_transform_name=$ac_optarg ;;
 
1006
 
 
1007
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1008
    ac_prev=pdfdir ;;
 
1009
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1010
    pdfdir=$ac_optarg ;;
 
1011
 
 
1012
  -psdir | --psdir | --psdi | --psd | --ps)
 
1013
    ac_prev=psdir ;;
 
1014
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1015
    psdir=$ac_optarg ;;
 
1016
 
 
1017
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1018
  | -silent | --silent | --silen | --sile | --sil)
 
1019
    silent=yes ;;
 
1020
 
 
1021
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1022
    ac_prev=sbindir ;;
 
1023
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1024
  | --sbi=* | --sb=*)
 
1025
    sbindir=$ac_optarg ;;
 
1026
 
 
1027
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1028
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1029
  | --sharedst | --shareds | --shared | --share | --shar \
 
1030
  | --sha | --sh)
 
1031
    ac_prev=sharedstatedir ;;
 
1032
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1033
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1034
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1035
  | --sha=* | --sh=*)
 
1036
    sharedstatedir=$ac_optarg ;;
 
1037
 
 
1038
  -site | --site | --sit)
 
1039
    ac_prev=site ;;
 
1040
  -site=* | --site=* | --sit=*)
 
1041
    site=$ac_optarg ;;
 
1042
 
 
1043
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1044
    ac_prev=srcdir ;;
 
1045
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1046
    srcdir=$ac_optarg ;;
 
1047
 
 
1048
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1049
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1050
    ac_prev=sysconfdir ;;
 
1051
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1052
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1053
    sysconfdir=$ac_optarg ;;
 
1054
 
 
1055
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1056
    ac_prev=target_alias ;;
 
1057
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1058
    target_alias=$ac_optarg ;;
 
1059
 
 
1060
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1061
    verbose=yes ;;
 
1062
 
 
1063
  -version | --version | --versio | --versi | --vers | -V)
 
1064
    ac_init_version=: ;;
 
1065
 
 
1066
  -with-* | --with-*)
 
1067
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1068
    # Reject names that are not valid shell variable names.
 
1069
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1070
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1071
   { (exit 1); exit 1; }; }
 
1072
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1073
    eval with_$ac_package=\$ac_optarg ;;
 
1074
 
 
1075
  -without-* | --without-*)
 
1076
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1077
    # Reject names that are not valid shell variable names.
 
1078
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1079
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1080
   { (exit 1); exit 1; }; }
 
1081
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1082
    eval with_$ac_package=no ;;
 
1083
 
 
1084
  --x)
 
1085
    # Obsolete; use --with-x.
 
1086
    with_x=yes ;;
 
1087
 
 
1088
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1089
  | --x-incl | --x-inc | --x-in | --x-i)
 
1090
    ac_prev=x_includes ;;
 
1091
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1092
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1093
    x_includes=$ac_optarg ;;
 
1094
 
 
1095
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1096
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1097
    ac_prev=x_libraries ;;
 
1098
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1099
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1100
    x_libraries=$ac_optarg ;;
 
1101
 
 
1102
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1103
Try \`$0 --help' for more information." >&2
 
1104
   { (exit 1); exit 1; }; }
 
1105
    ;;
 
1106
 
 
1107
  *=*)
 
1108
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1109
    # Reject names that are not valid shell variable names.
 
1110
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1111
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1112
   { (exit 1); exit 1; }; }
 
1113
    eval $ac_envvar=\$ac_optarg
 
1114
    export $ac_envvar ;;
 
1115
 
 
1116
  *)
 
1117
    # FIXME: should be removed in autoconf 3.0.
 
1118
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1119
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1120
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1121
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1122
    ;;
 
1123
 
 
1124
  esac
 
1125
done
 
1126
 
 
1127
if test -n "$ac_prev"; then
 
1128
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1129
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1130
   { (exit 1); exit 1; }; }
 
1131
fi
 
1132
 
 
1133
# Be sure to have absolute directory names.
 
1134
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1135
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1136
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1137
                libdir localedir mandir
 
1138
do
 
1139
  eval ac_val=\$$ac_var
 
1140
  case $ac_val in
 
1141
    [\\/$]* | ?:[\\/]* )  continue;;
 
1142
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1143
  esac
 
1144
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1145
   { (exit 1); exit 1; }; }
 
1146
done
 
1147
 
 
1148
# There might be people who depend on the old broken behavior: `$host'
 
1149
# used to hold the argument of --host etc.
 
1150
# FIXME: To remove some day.
 
1151
build=$build_alias
 
1152
host=$host_alias
 
1153
target=$target_alias
 
1154
 
 
1155
# FIXME: To remove some day.
 
1156
if test "x$host_alias" != x; then
 
1157
  if test "x$build_alias" = x; then
 
1158
    cross_compiling=maybe
 
1159
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1160
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1161
  elif test "x$build_alias" != "x$host_alias"; then
 
1162
    cross_compiling=yes
 
1163
  fi
 
1164
fi
 
1165
 
 
1166
ac_tool_prefix=
 
1167
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1168
 
 
1169
test "$silent" = yes && exec 6>/dev/null
 
1170
 
 
1171
 
 
1172
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1173
ac_ls_di=`ls -di .` &&
 
1174
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1175
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1176
   { (exit 1); exit 1; }; }
 
1177
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1178
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1179
   { (exit 1); exit 1; }; }
 
1180
 
 
1181
 
 
1182
# Find the source files, if location was not specified.
 
1183
if test -z "$srcdir"; then
 
1184
  ac_srcdir_defaulted=yes
 
1185
  # Try the directory containing this script, then the parent directory.
 
1186
  ac_confdir=`$as_dirname -- "$0" ||
 
1187
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1188
         X"$0" : 'X\(//\)[^/]' \| \
 
1189
         X"$0" : 'X\(//\)$' \| \
 
1190
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1191
echo X"$0" |
 
1192
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1193
            s//\1/
 
1194
            q
 
1195
          }
 
1196
          /^X\(\/\/\)[^/].*/{
 
1197
            s//\1/
 
1198
            q
 
1199
          }
 
1200
          /^X\(\/\/\)$/{
 
1201
            s//\1/
 
1202
            q
 
1203
          }
 
1204
          /^X\(\/\).*/{
 
1205
            s//\1/
 
1206
            q
 
1207
          }
 
1208
          s/.*/./; q'`
 
1209
  srcdir=$ac_confdir
 
1210
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1211
    srcdir=..
 
1212
  fi
 
1213
else
 
1214
  ac_srcdir_defaulted=no
 
1215
fi
 
1216
if test ! -r "$srcdir/$ac_unique_file"; then
 
1217
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1218
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1219
   { (exit 1); exit 1; }; }
 
1220
fi
 
1221
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1222
ac_abs_confdir=`(
 
1223
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1224
   { (exit 1); exit 1; }; }
 
1225
        pwd)`
 
1226
# When building in place, set srcdir=.
 
1227
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1228
  srcdir=.
 
1229
fi
 
1230
# Remove unnecessary trailing slashes from srcdir.
 
1231
# Double slashes in file names in object file debugging info
 
1232
# mess up M-x gdb in Emacs.
 
1233
case $srcdir in
 
1234
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1235
esac
 
1236
for ac_var in $ac_precious_vars; do
 
1237
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1238
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1239
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1240
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1241
done
 
1242
 
 
1243
#
 
1244
# Report the --help message.
 
1245
#
 
1246
if test "$ac_init_help" = "long"; then
 
1247
  # Omit some internal or obsolete options to make the list less imposing.
 
1248
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1249
  cat <<_ACEOF
 
1250
\`configure' configures python 2.6 to adapt to many kinds of systems.
 
1251
 
 
1252
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1253
 
 
1254
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1255
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1256
 
 
1257
Defaults for the options are specified in brackets.
 
1258
 
 
1259
Configuration:
 
1260
  -h, --help              display this help and exit
 
1261
      --help=short        display options specific to this package
 
1262
      --help=recursive    display the short help of all the included packages
 
1263
  -V, --version           display version information and exit
 
1264
  -q, --quiet, --silent   do not print \`checking...' messages
 
1265
      --cache-file=FILE   cache test results in FILE [disabled]
 
1266
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1267
  -n, --no-create         do not create output files
 
1268
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1269
 
 
1270
Installation directories:
 
1271
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1272
                          [$ac_default_prefix]
 
1273
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1274
                          [PREFIX]
 
1275
 
 
1276
By default, \`make install' will install all the files in
 
1277
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1278
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1279
for instance \`--prefix=\$HOME'.
 
1280
 
 
1281
For better control, use the options below.
 
1282
 
 
1283
Fine tuning of the installation directories:
 
1284
  --bindir=DIR           user executables [EPREFIX/bin]
 
1285
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1286
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1287
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1288
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1289
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1290
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1291
  --includedir=DIR       C header files [PREFIX/include]
 
1292
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1293
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1294
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1295
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1296
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1297
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1298
  --docdir=DIR           documentation root [DATAROOTDIR/doc/python]
 
1299
  --htmldir=DIR          html documentation [DOCDIR]
 
1300
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1301
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1302
  --psdir=DIR            ps documentation [DOCDIR]
 
1303
_ACEOF
 
1304
 
 
1305
  cat <<\_ACEOF
 
1306
_ACEOF
 
1307
fi
 
1308
 
 
1309
if test -n "$ac_init_help"; then
 
1310
  case $ac_init_help in
 
1311
     short | recursive ) echo "Configuration of python 2.6:";;
 
1312
   esac
 
1313
  cat <<\_ACEOF
 
1314
 
 
1315
Optional Features:
 
1316
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1317
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1318
  --enable-universalsdk[=SDKDIR]
 
1319
                          Build against Mac OS X 10.4u SDK (ppc/i386)
 
1320
  --enable-framework[=INSTALLDIR]
 
1321
                          Build (MacOSX|Darwin) framework
 
1322
  --enable-shared         disable/enable building shared python library
 
1323
  --enable-profiling      enable C-level code profiling
 
1324
  --enable-toolbox-glue   disable/enable MacOSX glue code for extensions
 
1325
  --enable-ipv6           Enable ipv6 (with ipv4) support
 
1326
  --disable-ipv6          Disable ipv6 support
 
1327
  --enable-unicode[=ucs[24]]
 
1328
                          Enable Unicode strings (default is yes)
 
1329
 
 
1330
Optional Packages:
 
1331
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1332
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1333
  --with-universal-archs=ARCH
 
1334
                          select architectures for universal build ("32-bit",
 
1335
                          "64-bit" or "all")
 
1336
  --with-framework-name=FRAMEWORK
 
1337
                          specify an alternate name of the framework built
 
1338
                          with --enable-framework
 
1339
  --without-gcc           never use gcc
 
1340
  --with-cxx-main=<compiler>
 
1341
                          compile main() and link python executable with C++
 
1342
                          compiler
 
1343
  --with-suffix=.exe      set executable suffix
 
1344
  --with-pydebug          build with Py_DEBUG defined
 
1345
  --with-libs='lib1 ...'  link against additional libs
 
1346
  --with-system-ffi       build _ctypes module using an installed ffi library
 
1347
  --with-signal-module    disable/enable signal module
 
1348
  --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries
 
1349
  --with(out)-threads[=DIRECTORY]
 
1350
                          disable/enable thread support
 
1351
  --with(out)-thread[=DIRECTORY]
 
1352
                          deprecated; use --with(out)-threads
 
1353
  --with-pth              use GNU pth threading libraries
 
1354
  --with(out)-doc-strings disable/enable documentation strings
 
1355
  --with(out)-tsc         enable/disable timestamp counter profile
 
1356
  --with(out)-pymalloc    disable/enable specialized mallocs
 
1357
  --with-wctype-functions use wctype.h functions
 
1358
  --with-fpectl           enable SIGFPE catching
 
1359
  --with-libm=STRING      math library
 
1360
  --with-libc=STRING      C library
 
1361
 
 
1362
Some influential environment variables:
 
1363
  CC          C compiler command
 
1364
  CFLAGS      C compiler flags
 
1365
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1366
              nonstandard directory <lib dir>
 
1367
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1368
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1369
              you have headers in a nonstandard directory <include dir>
 
1370
  CPP         C preprocessor
 
1371
 
 
1372
Use these variables to override the choices made by `configure' or to help
 
1373
it to find libraries and programs with nonstandard names/locations.
 
1374
 
 
1375
Report bugs to <http://www.python.org/python-bugs>.
 
1376
_ACEOF
 
1377
ac_status=$?
 
1378
fi
 
1379
 
 
1380
if test "$ac_init_help" = "recursive"; then
 
1381
  # If there are subdirs, report their specific --help.
 
1382
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1383
    test -d "$ac_dir" || continue
 
1384
    ac_builddir=.
 
1385
 
 
1386
case "$ac_dir" in
 
1387
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1388
*)
 
1389
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1390
  # A ".." for each directory in $ac_dir_suffix.
 
1391
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1392
  case $ac_top_builddir_sub in
 
1393
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1394
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1395
  esac ;;
 
1396
esac
 
1397
ac_abs_top_builddir=$ac_pwd
 
1398
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1399
# for backward compatibility:
 
1400
ac_top_builddir=$ac_top_build_prefix
 
1401
 
 
1402
case $srcdir in
 
1403
  .)  # We are building in place.
 
1404
    ac_srcdir=.
 
1405
    ac_top_srcdir=$ac_top_builddir_sub
 
1406
    ac_abs_top_srcdir=$ac_pwd ;;
 
1407
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1408
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1409
    ac_top_srcdir=$srcdir
 
1410
    ac_abs_top_srcdir=$srcdir ;;
 
1411
  *) # Relative name.
 
1412
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1413
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1414
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1415
esac
 
1416
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1417
 
 
1418
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1419
    # Check for guested configure.
 
1420
    if test -f "$ac_srcdir/configure.gnu"; then
 
1421
      echo &&
 
1422
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1423
    elif test -f "$ac_srcdir/configure"; then
 
1424
      echo &&
 
1425
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1426
    else
 
1427
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1428
    fi || ac_status=$?
 
1429
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1430
  done
 
1431
fi
 
1432
 
 
1433
test -n "$ac_init_help" && exit $ac_status
 
1434
if $ac_init_version; then
 
1435
  cat <<\_ACEOF
 
1436
python configure 2.6
 
1437
generated by GNU Autoconf 2.61
 
1438
 
 
1439
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1440
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1441
This configure script is free software; the Free Software Foundation
 
1442
gives unlimited permission to copy, distribute and modify it.
 
1443
_ACEOF
 
1444
  exit
 
1445
fi
 
1446
cat >config.log <<_ACEOF
 
1447
This file contains any messages produced by compilers while
 
1448
running configure, to aid debugging if configure makes a mistake.
 
1449
 
 
1450
It was created by python $as_me 2.6, which was
 
1451
generated by GNU Autoconf 2.61.  Invocation command line was
 
1452
 
 
1453
  $ $0 $@
 
1454
 
 
1455
_ACEOF
 
1456
exec 5>>config.log
 
1457
{
 
1458
cat <<_ASUNAME
 
1459
## --------- ##
 
1460
## Platform. ##
 
1461
## --------- ##
 
1462
 
 
1463
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1464
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1465
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1466
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1467
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1468
 
 
1469
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1470
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1471
 
 
1472
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1473
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1474
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1475
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1476
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1477
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1478
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1479
 
 
1480
_ASUNAME
 
1481
 
 
1482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1483
for as_dir in $PATH
 
1484
do
 
1485
  IFS=$as_save_IFS
 
1486
  test -z "$as_dir" && as_dir=.
 
1487
  echo "PATH: $as_dir"
 
1488
done
 
1489
IFS=$as_save_IFS
 
1490
 
 
1491
} >&5
 
1492
 
 
1493
cat >&5 <<_ACEOF
 
1494
 
 
1495
 
 
1496
## ----------- ##
 
1497
## Core tests. ##
 
1498
## ----------- ##
 
1499
 
 
1500
_ACEOF
 
1501
 
 
1502
 
 
1503
# Keep a trace of the command line.
 
1504
# Strip out --no-create and --no-recursion so they do not pile up.
 
1505
# Strip out --silent because we don't want to record it for future runs.
 
1506
# Also quote any args containing shell meta-characters.
 
1507
# Make two passes to allow for proper duplicate-argument suppression.
 
1508
ac_configure_args=
 
1509
ac_configure_args0=
 
1510
ac_configure_args1=
 
1511
ac_must_keep_next=false
 
1512
for ac_pass in 1 2
 
1513
do
 
1514
  for ac_arg
 
1515
  do
 
1516
    case $ac_arg in
 
1517
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1518
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1519
    | -silent | --silent | --silen | --sile | --sil)
 
1520
      continue ;;
 
1521
    *\'*)
 
1522
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1523
    esac
 
1524
    case $ac_pass in
 
1525
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1526
    2)
 
1527
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1528
      if test $ac_must_keep_next = true; then
 
1529
        ac_must_keep_next=false # Got value, back to normal.
 
1530
      else
 
1531
        case $ac_arg in
 
1532
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1533
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1534
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1535
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1536
            case "$ac_configure_args0 " in
 
1537
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1538
            esac
 
1539
            ;;
 
1540
          -* ) ac_must_keep_next=true ;;
 
1541
        esac
 
1542
      fi
 
1543
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1544
      ;;
 
1545
    esac
 
1546
  done
 
1547
done
 
1548
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1549
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1550
 
 
1551
# When interrupted or exit'd, cleanup temporary files, and complete
 
1552
# config.log.  We remove comments because anyway the quotes in there
 
1553
# would cause problems or look ugly.
 
1554
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1555
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1556
trap 'exit_status=$?
 
1557
  # Save into config.log some information that might help in debugging.
 
1558
  {
 
1559
    echo
 
1560
 
 
1561
    cat <<\_ASBOX
 
1562
## ---------------- ##
 
1563
## Cache variables. ##
 
1564
## ---------------- ##
 
1565
_ASBOX
 
1566
    echo
 
1567
    # The following way of writing the cache mishandles newlines in values,
 
1568
(
 
1569
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1570
    eval ac_val=\$$ac_var
 
1571
    case $ac_val in #(
 
1572
    *${as_nl}*)
 
1573
      case $ac_var in #(
 
1574
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1575
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1576
      esac
 
1577
      case $ac_var in #(
 
1578
      _ | IFS | as_nl) ;; #(
 
1579
      *) $as_unset $ac_var ;;
 
1580
      esac ;;
 
1581
    esac
 
1582
  done
 
1583
  (set) 2>&1 |
 
1584
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1585
    *${as_nl}ac_space=\ *)
 
1586
      sed -n \
 
1587
        "s/'\''/'\''\\\\'\'''\''/g;
 
1588
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1589
      ;; #(
 
1590
    *)
 
1591
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1592
      ;;
 
1593
    esac |
 
1594
    sort
 
1595
)
 
1596
    echo
 
1597
 
 
1598
    cat <<\_ASBOX
 
1599
## ----------------- ##
 
1600
## Output variables. ##
 
1601
## ----------------- ##
 
1602
_ASBOX
 
1603
    echo
 
1604
    for ac_var in $ac_subst_vars
 
1605
    do
 
1606
      eval ac_val=\$$ac_var
 
1607
      case $ac_val in
 
1608
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1609
      esac
 
1610
      echo "$ac_var='\''$ac_val'\''"
 
1611
    done | sort
 
1612
    echo
 
1613
 
 
1614
    if test -n "$ac_subst_files"; then
 
1615
      cat <<\_ASBOX
 
1616
## ------------------- ##
 
1617
## File substitutions. ##
 
1618
## ------------------- ##
 
1619
_ASBOX
 
1620
      echo
 
1621
      for ac_var in $ac_subst_files
 
1622
      do
 
1623
        eval ac_val=\$$ac_var
 
1624
        case $ac_val in
 
1625
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1626
        esac
 
1627
        echo "$ac_var='\''$ac_val'\''"
 
1628
      done | sort
 
1629
      echo
 
1630
    fi
 
1631
 
 
1632
    if test -s confdefs.h; then
 
1633
      cat <<\_ASBOX
 
1634
## ----------- ##
 
1635
## confdefs.h. ##
 
1636
## ----------- ##
 
1637
_ASBOX
 
1638
      echo
 
1639
      cat confdefs.h
 
1640
      echo
 
1641
    fi
 
1642
    test "$ac_signal" != 0 &&
 
1643
      echo "$as_me: caught signal $ac_signal"
 
1644
    echo "$as_me: exit $exit_status"
 
1645
  } >&5
 
1646
  rm -f core *.core core.conftest.* &&
 
1647
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1648
    exit $exit_status
 
1649
' 0
 
1650
for ac_signal in 1 2 13 15; do
 
1651
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1652
done
 
1653
ac_signal=0
 
1654
 
 
1655
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1656
rm -f -r conftest* confdefs.h
 
1657
 
 
1658
# Predefined preprocessor variables.
 
1659
 
 
1660
cat >>confdefs.h <<_ACEOF
 
1661
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1662
_ACEOF
 
1663
 
 
1664
 
 
1665
cat >>confdefs.h <<_ACEOF
 
1666
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1667
_ACEOF
 
1668
 
 
1669
 
 
1670
cat >>confdefs.h <<_ACEOF
 
1671
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1672
_ACEOF
 
1673
 
 
1674
 
 
1675
cat >>confdefs.h <<_ACEOF
 
1676
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1677
_ACEOF
 
1678
 
 
1679
 
 
1680
cat >>confdefs.h <<_ACEOF
 
1681
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1682
_ACEOF
 
1683
 
 
1684
 
 
1685
# Let the site file select an alternate cache file if it wants to.
 
1686
# Prefer explicitly selected file to automatically selected ones.
 
1687
if test -n "$CONFIG_SITE"; then
 
1688
  set x "$CONFIG_SITE"
 
1689
elif test "x$prefix" != xNONE; then
 
1690
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1691
else
 
1692
  set x "$ac_default_prefix/share/config.site" \
 
1693
        "$ac_default_prefix/etc/config.site"
 
1694
fi
 
1695
shift
 
1696
for ac_site_file
 
1697
do
 
1698
  if test -r "$ac_site_file"; then
 
1699
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1700
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1701
    sed 's/^/| /' "$ac_site_file" >&5
 
1702
    . "$ac_site_file"
 
1703
  fi
 
1704
done
 
1705
 
 
1706
if test -r "$cache_file"; then
 
1707
  # Some versions of bash will fail to source /dev/null (special
 
1708
  # files actually), so we avoid doing that.
 
1709
  if test -f "$cache_file"; then
 
1710
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1711
echo "$as_me: loading cache $cache_file" >&6;}
 
1712
    case $cache_file in
 
1713
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1714
      *)                      . "./$cache_file";;
 
1715
    esac
 
1716
  fi
 
1717
else
 
1718
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1719
echo "$as_me: creating cache $cache_file" >&6;}
 
1720
  >$cache_file
 
1721
fi
 
1722
 
 
1723
# Check that the precious variables saved in the cache have kept the same
 
1724
# value.
 
1725
ac_cache_corrupted=false
 
1726
for ac_var in $ac_precious_vars; do
 
1727
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1728
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1729
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1730
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1731
  case $ac_old_set,$ac_new_set in
 
1732
    set,)
 
1733
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1734
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1735
      ac_cache_corrupted=: ;;
 
1736
    ,set)
 
1737
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1738
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1739
      ac_cache_corrupted=: ;;
 
1740
    ,);;
 
1741
    *)
 
1742
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1743
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1744
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1745
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1746
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1747
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1748
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1749
        ac_cache_corrupted=:
 
1750
      fi;;
 
1751
  esac
 
1752
  # Pass precious variables to config.status.
 
1753
  if test "$ac_new_set" = set; then
 
1754
    case $ac_new_val in
 
1755
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1756
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1757
    esac
 
1758
    case " $ac_configure_args " in
 
1759
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1760
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1761
    esac
 
1762
  fi
 
1763
done
 
1764
if $ac_cache_corrupted; then
 
1765
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1766
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1767
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1768
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1769
   { (exit 1); exit 1; }; }
 
1770
fi
 
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
 
 
1776
 
 
1777
 
 
1778
 
 
1779
 
 
1780
 
 
1781
 
 
1782
 
 
1783
 
 
1784
 
 
1785
 
 
1786
 
 
1787
 
 
1788
 
 
1789
 
 
1790
 
 
1791
 
 
1792
 
 
1793
 
 
1794
 
 
1795
 
 
1796
ac_ext=c
 
1797
ac_cpp='$CPP $CPPFLAGS'
 
1798
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1799
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1800
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1801
 
 
1802
 
 
1803
 
 
1804
ac_config_headers="$ac_config_headers pyconfig.h"
 
1805
 
 
1806
 
 
1807
 
 
1808
 
 
1809
 
 
1810
 
 
1811
 
 
1812
# We don't use PACKAGE_ variables, and they cause conflicts
 
1813
# with other autoconf-based packages that include Python.h
 
1814
grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
 
1815
rm confdefs.h
 
1816
mv confdefs.h.new confdefs.h
 
1817
 
 
1818
 
 
1819
VERSION=2.6
 
1820
 
 
1821
 
 
1822
SOVERSION=1.0
 
1823
 
 
1824
# The later defininition of _XOPEN_SOURCE disables certain features
 
1825
# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
 
1826
 
 
1827
cat >>confdefs.h <<\_ACEOF
 
1828
#define _GNU_SOURCE 1
 
1829
_ACEOF
 
1830
 
 
1831
 
 
1832
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
 
1833
# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
 
1834
# them.
 
1835
 
 
1836
cat >>confdefs.h <<\_ACEOF
 
1837
#define _NETBSD_SOURCE 1
 
1838
_ACEOF
 
1839
 
 
1840
 
 
1841
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
 
1842
# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
 
1843
# them.
 
1844
 
 
1845
cat >>confdefs.h <<\_ACEOF
 
1846
#define __BSD_VISIBLE 1
 
1847
_ACEOF
 
1848
 
 
1849
 
 
1850
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
 
1851
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
 
1852
 
 
1853
cat >>confdefs.h <<\_ACEOF
 
1854
#define _BSD_TYPES 1
 
1855
_ACEOF
 
1856
 
 
1857
 
 
1858
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
 
1859
# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
 
1860
# them.
 
1861
 
 
1862
cat >>confdefs.h <<\_ACEOF
 
1863
#define _DARWIN_C_SOURCE 1
 
1864
_ACEOF
 
1865
 
 
1866
 
 
1867
 
 
1868
define_xopen_source=yes
 
1869
 
 
1870
# Arguments passed to configure.
 
1871
 
 
1872
CONFIG_ARGS="$ac_configure_args"
 
1873
 
 
1874
# Check whether --enable-universalsdk was given.
 
1875
if test "${enable_universalsdk+set}" = set; then
 
1876
  enableval=$enable_universalsdk;
 
1877
        case $enableval in
 
1878
        yes)
 
1879
                enableval=/Developer/SDKs/MacOSX10.4u.sdk
 
1880
                ;;
 
1881
        esac
 
1882
        case $enableval in
 
1883
        no)
 
1884
                UNIVERSALSDK=
 
1885
                enable_universalsdk=
 
1886
                ;;
 
1887
        *)
 
1888
                UNIVERSALSDK=$enableval
 
1889
                ;;
 
1890
        esac
 
1891
 
 
1892
else
 
1893
 
 
1894
        UNIVERSALSDK=
 
1895
        enable_universalsdk=
 
1896
 
 
1897
fi
 
1898
 
 
1899
 
 
1900
 
 
1901
ARCH_RUN_32BIT=
 
1902
 
 
1903
 
 
1904
UNIVERSAL_ARCHS="32-bit"
 
1905
{ echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
 
1906
echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
 
1907
 
 
1908
# Check whether --with-universal-archs was given.
 
1909
if test "${with_universal_archs+set}" = set; then
 
1910
  withval=$with_universal_archs;
 
1911
        { echo "$as_me:$LINENO: result: $withval" >&5
 
1912
echo "${ECHO_T}$withval" >&6; }
 
1913
        UNIVERSAL_ARCHS="$withval"
 
1914
 
 
1915
else
 
1916
 
 
1917
        { echo "$as_me:$LINENO: result: 32-bit" >&5
 
1918
echo "${ECHO_T}32-bit" >&6; }
 
1919
 
 
1920
fi
 
1921
 
 
1922
 
 
1923
 
 
1924
 
 
1925
 
 
1926
# Check whether --with-framework-name was given.
 
1927
if test "${with_framework_name+set}" = set; then
 
1928
  withval=$with_framework_name;
 
1929
    PYTHONFRAMEWORK=${withval}
 
1930
    PYTHONFRAMEWORKDIR=${withval}.framework
 
1931
    PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
 
1932
 
 
1933
else
 
1934
 
 
1935
    PYTHONFRAMEWORK=Python
 
1936
    PYTHONFRAMEWORKDIR=Python.framework
 
1937
    PYTHONFRAMEWORKIDENTIFIER=org.python.python
 
1938
 
 
1939
fi
 
1940
 
 
1941
# Check whether --enable-framework was given.
 
1942
if test "${enable_framework+set}" = set; then
 
1943
  enableval=$enable_framework;
 
1944
        case $enableval in
 
1945
        yes)
 
1946
                enableval=/Library/Frameworks
 
1947
        esac
 
1948
        case $enableval in
 
1949
        no)
 
1950
                PYTHONFRAMEWORK=
 
1951
                PYTHONFRAMEWORKDIR=no-framework
 
1952
                PYTHONFRAMEWORKPREFIX=
 
1953
                PYTHONFRAMEWORKINSTALLDIR=
 
1954
                FRAMEWORKINSTALLFIRST=
 
1955
                FRAMEWORKINSTALLLAST=
 
1956
                FRAMEWORKALTINSTALLFIRST=
 
1957
                FRAMEWORKALTINSTALLLAST=
 
1958
                if test "x${prefix}" = "xNONE"; then
 
1959
                        FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
 
1960
                else
 
1961
                        FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
 
1962
                fi
 
1963
                enable_framework=
 
1964
                ;;
 
1965
        *)
 
1966
                PYTHONFRAMEWORKPREFIX=$enableval
 
1967
                PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
 
1968
                FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
 
1969
                FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
 
1970
                if test "$UNIVERSAL_ARCHS" = "all"
 
1971
                then
 
1972
                        FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
 
1973
                else
 
1974
                        FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
 
1975
                fi
 
1976
 
 
1977
                if test "x${prefix}" = "xNONE" ; then
 
1978
                        FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
 
1979
                else
 
1980
                        FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
 
1981
                fi
 
1982
                prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
 
1983
 
 
1984
                # Add files for Mac specific code to the list of output
 
1985
                # files:
 
1986
                ac_config_files="$ac_config_files Mac/Makefile"
 
1987
 
 
1988
                ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
 
1989
 
 
1990
                ac_config_files="$ac_config_files Mac/IDLE/Makefile"
 
1991
 
 
1992
                ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
 
1993
 
 
1994
                ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
 
1995
 
 
1996
        esac
 
1997
 
 
1998
else
 
1999
 
 
2000
        PYTHONFRAMEWORK=
 
2001
        PYTHONFRAMEWORKDIR=no-framework
 
2002
        PYTHONFRAMEWORKPREFIX=
 
2003
        PYTHONFRAMEWORKINSTALLDIR=
 
2004
        FRAMEWORKINSTALLFIRST=
 
2005
        FRAMEWORKINSTALLLAST=
 
2006
        FRAMEWORKALTINSTALLFIRST=
 
2007
        FRAMEWORKALTINSTALLLAST=
 
2008
        if test "x${prefix}" = "xNONE" ; then
 
2009
                FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
 
2010
        else
 
2011
                FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
 
2012
        fi
 
2013
        enable_framework=
 
2014
 
 
2015
        if test "$UNIVERSAL_ARCHS" = "all"
 
2016
        then
 
2017
                FRAMEWORKINSTALLLAST=update4wayuniversal
 
2018
                FRAMEWORKALTINSTALLLAST=update4wayuniversal
 
2019
        fi
 
2020
 
 
2021
fi
 
2022
 
 
2023
 
 
2024
 
 
2025
 
 
2026
 
 
2027
 
 
2028
 
 
2029
 
 
2030
 
 
2031
 
 
2032
 
 
2033
 
 
2034
##AC_ARG_WITH(dyld,
 
2035
##            AC_HELP_STRING(--with-dyld,
 
2036
##                           Use (OpenStep|Rhapsody) dynamic linker))
 
2037
##
 
2038
# Set name for machine-dependent library files
 
2039
 
 
2040
{ echo "$as_me:$LINENO: checking MACHDEP" >&5
 
2041
echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
 
2042
if test -z "$MACHDEP"
 
2043
then
 
2044
        ac_sys_system=`uname -s`
 
2045
        if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
 
2046
        -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
 
2047
                ac_sys_release=`uname -v`
 
2048
        else
 
2049
                ac_sys_release=`uname -r`
 
2050
        fi
 
2051
        ac_md_system=`echo $ac_sys_system |
 
2052
                           tr -d '/ ' | tr '[A-Z]' '[a-z]'`
 
2053
        ac_md_release=`echo $ac_sys_release |
 
2054
                           tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
 
2055
        MACHDEP="$ac_md_system$ac_md_release"
 
2056
 
 
2057
        case $MACHDEP in
 
2058
        cygwin*) MACHDEP="cygwin";;
 
2059
        darwin*) MACHDEP="darwin";;
 
2060
        atheos*) MACHDEP="atheos";;
 
2061
        irix646) MACHDEP="irix6";;
 
2062
        '')     MACHDEP="unknown";;
 
2063
        esac
 
2064
fi
 
2065
 
 
2066
# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
 
2067
# disable features if it is defined, without any means to access these
 
2068
# features as extensions. For these systems, we skip the definition of
 
2069
# _XOPEN_SOURCE. Before adding a system to the list to gain access to
 
2070
# some feature, make sure there is no alternative way to access this
 
2071
# feature. Also, when using wildcards, make sure you have verified the
 
2072
# need for not defining _XOPEN_SOURCE on all systems matching the
 
2073
# wildcard, and that the wildcard does not include future systems
 
2074
# (which may remove their limitations).
 
2075
case $ac_sys_system/$ac_sys_release in
 
2076
  # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
 
2077
  # even though select is a POSIX function. Reported by J. Ribbens.
 
2078
  # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
 
2079
  OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
 
2080
    define_xopen_source=no
 
2081
    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
 
2082
    # also defined. This can be overridden by defining _BSD_SOURCE
 
2083
    # As this has a different meaning on Linux, only define it on OpenBSD
 
2084
 
 
2085
cat >>confdefs.h <<\_ACEOF
 
2086
#define _BSD_SOURCE 1
 
2087
_ACEOF
 
2088
 
 
2089
    ;;
 
2090
  # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
 
2091
  # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
 
2092
  # Marc Recht
 
2093
  NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
 
2094
    define_xopen_source=no;;
 
2095
  # On Solaris 2.6, sys/wait.h is inconsistent in the usage
 
2096
  # of union __?sigval. Reported by Stuart Bishop.
 
2097
  SunOS/5.6)
 
2098
    define_xopen_source=no;;
 
2099
  # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
 
2100
  # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
 
2101
  # Reconfirmed for 7.1.4 by Martin v. Loewis.
 
2102
  OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
 
2103
    define_xopen_source=no;;
 
2104
  # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
 
2105
  # but used in struct sockaddr.sa_family. Reported by Tim Rice.
 
2106
  SCO_SV/3.2)
 
2107
    define_xopen_source=no;;
 
2108
  # On FreeBSD 4, the math functions C89 does not cover are never defined
 
2109
  # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
 
2110
  FreeBSD/4.*)
 
2111
    define_xopen_source=no;;
 
2112
  # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
 
2113
  # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
 
2114
  # identifies itself as Darwin/7.*
 
2115
  # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
 
2116
  # disables platform specific features beyond repair.
 
2117
  # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
 
2118
  # has no effect, don't bother defining them
 
2119
  Darwin/[6789].*)
 
2120
    define_xopen_source=no;;
 
2121
  # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
 
2122
  # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
 
2123
  # or has another value. By not (re)defining it, the defaults come in place.
 
2124
  AIX/4)
 
2125
    define_xopen_source=no;;
 
2126
  AIX/5)
 
2127
    if test `uname -r` -eq 1; then
 
2128
      define_xopen_source=no
 
2129
    fi
 
2130
    ;;
 
2131
  # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
 
2132
  # defining NI_NUMERICHOST.
 
2133
  QNX/6.3.2)
 
2134
    define_xopen_source=no
 
2135
    ;;
 
2136
 
 
2137
esac
 
2138
 
 
2139
if test $define_xopen_source = yes
 
2140
then
 
2141
  # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
 
2142
  # defined precisely as g++ defines it
 
2143
  # Furthermore, on Solaris 10, XPG6 requires the use of a C99
 
2144
  # compiler
 
2145
  case $ac_sys_system/$ac_sys_release in
 
2146
    SunOS/5.8|SunOS/5.9|SunOS/5.10)
 
2147
 
 
2148
cat >>confdefs.h <<\_ACEOF
 
2149
#define _XOPEN_SOURCE 500
 
2150
_ACEOF
 
2151
 
 
2152
      ;;
 
2153
    *)
 
2154
 
 
2155
cat >>confdefs.h <<\_ACEOF
 
2156
#define _XOPEN_SOURCE 600
 
2157
_ACEOF
 
2158
 
 
2159
      ;;
 
2160
  esac
 
2161
 
 
2162
  # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
 
2163
  # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
 
2164
  # several APIs are not declared. Since this is also needed in some
 
2165
  # cases for HP-UX, we define it globally.
 
2166
  # except for Solaris 10, where it must not be defined,
 
2167
  # as it implies XPG4.2
 
2168
  case $ac_sys_system/$ac_sys_release in
 
2169
    SunOS/5.10)
 
2170
      ;;
 
2171
    *)
 
2172
 
 
2173
cat >>confdefs.h <<\_ACEOF
 
2174
#define _XOPEN_SOURCE_EXTENDED 1
 
2175
_ACEOF
 
2176
 
 
2177
      ;;
 
2178
  esac
 
2179
 
 
2180
 
 
2181
cat >>confdefs.h <<\_ACEOF
 
2182
#define _POSIX_C_SOURCE 200112L
 
2183
_ACEOF
 
2184
 
 
2185
 
 
2186
fi
 
2187
 
 
2188
#
 
2189
# SGI compilers allow the specification of the both the ABI and the
 
2190
# ISA on the command line.  Depending on the values of these switches,
 
2191
# different and often incompatable code will be generated.
 
2192
#
 
2193
# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
 
2194
# thus supply support for various ABI/ISA combinations.  The MACHDEP
 
2195
# variable is also adjusted.
 
2196
#
 
2197
 
 
2198
if test ! -z "$SGI_ABI"
 
2199
then
 
2200
        CC="cc $SGI_ABI"
 
2201
        LDFLAGS="$SGI_ABI $LDFLAGS"
 
2202
        MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
 
2203
fi
 
2204
{ echo "$as_me:$LINENO: result: $MACHDEP" >&5
 
2205
echo "${ECHO_T}$MACHDEP" >&6; }
 
2206
 
 
2207
# And add extra plat-mac for darwin
 
2208
 
 
2209
 
 
2210
{ echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
 
2211
echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
 
2212
if test -z "$EXTRAPLATDIR"
 
2213
then
 
2214
        case $MACHDEP in
 
2215
        darwin)
 
2216
                EXTRAPLATDIR="\$(PLATMACDIRS)"
 
2217
                EXTRAMACHDEPPATH="\$(PLATMACPATH)"
 
2218
                ;;
 
2219
        *)
 
2220
                EXTRAPLATDIR=""
 
2221
                EXTRAMACHDEPPATH=""
 
2222
                ;;
 
2223
        esac
 
2224
fi
 
2225
{ echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
 
2226
echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
 
2227
 
 
2228
# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
 
2229
# it may influence the way we can build extensions, so distutils
 
2230
# needs to check it
 
2231
 
 
2232
 
 
2233
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
 
2234
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
 
2235
 
 
2236
{ echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
 
2237
echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
 
2238
ac_sys_machine=`uname -m`
 
2239
{ echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
 
2240
echo "${ECHO_T}$ac_sys_machine" >&6; }
 
2241
 
 
2242
# checks for alternative programs
 
2243
 
 
2244
# compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just
 
2245
# for debug/optimization stuff.  BASECFLAGS is for flags that are required
 
2246
# just to get things to compile and link.  Users are free to override OPT
 
2247
# when running configure or make.  The build should not break if they do.
 
2248
# BASECFLAGS should generally not be messed with, however.
 
2249
 
 
2250
# XXX shouldn't some/most/all of this code be merged with the stuff later
 
2251
# on that fiddles with OPT and BASECFLAGS?
 
2252
{ echo "$as_me:$LINENO: checking for --without-gcc" >&5
 
2253
echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
 
2254
 
 
2255
# Check whether --with-gcc was given.
 
2256
if test "${with_gcc+set}" = set; then
 
2257
  withval=$with_gcc;
 
2258
        case $withval in
 
2259
        no)     CC=cc
 
2260
                without_gcc=yes;;
 
2261
        yes)    CC=gcc
 
2262
                without_gcc=no;;
 
2263
        *)      CC=$withval
 
2264
                without_gcc=$withval;;
 
2265
        esac
 
2266
else
 
2267
 
 
2268
        case $ac_sys_system in
 
2269
        AIX*)   CC=cc_r
 
2270
                without_gcc=;;
 
2271
        BeOS*)
 
2272
                case $BE_HOST_CPU in
 
2273
                ppc)
 
2274
                        CC=mwcc
 
2275
                        without_gcc=yes
 
2276
                        BASECFLAGS="$BASECFLAGS -export pragma"
 
2277
                        OPT="$OPT -O"
 
2278
                        LDFLAGS="$LDFLAGS -nodup"
 
2279
                        ;;
 
2280
                x86)
 
2281
                        CC=gcc
 
2282
                        without_gcc=no
 
2283
                        OPT="$OPT -O"
 
2284
                        ;;
 
2285
                *)
 
2286
                        { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
 
2287
echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
 
2288
   { (exit 1); exit 1; }; }
 
2289
                        ;;
 
2290
                esac
 
2291
                AR="\$(srcdir)/Modules/ar_beos"
 
2292
                RANLIB=:
 
2293
                ;;
 
2294
    Monterey*)
 
2295
        RANLIB=:
 
2296
        without_gcc=;;
 
2297
        *)      without_gcc=no;;
 
2298
        esac
 
2299
fi
 
2300
 
 
2301
{ echo "$as_me:$LINENO: result: $without_gcc" >&5
 
2302
echo "${ECHO_T}$without_gcc" >&6; }
 
2303
 
 
2304
# If the user switches compilers, we can't believe the cache
 
2305
if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
 
2306
then
 
2307
  { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
 
2308
(it is also a good idea to do 'make clean' before compiling)" >&5
 
2309
echo "$as_me: error: cached CC is different -- throw away $cache_file
 
2310
(it is also a good idea to do 'make clean' before compiling)" >&2;}
 
2311
   { (exit 1); exit 1; }; }
 
2312
fi
 
2313
 
 
2314
ac_ext=c
 
2315
ac_cpp='$CPP $CPPFLAGS'
 
2316
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2317
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2318
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2319
if test -n "$ac_tool_prefix"; then
 
2320
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2321
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2322
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2323
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2324
if test "${ac_cv_prog_CC+set}" = set; then
 
2325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2326
else
 
2327
  if test -n "$CC"; then
 
2328
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2329
else
 
2330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2331
for as_dir in $PATH
 
2332
do
 
2333
  IFS=$as_save_IFS
 
2334
  test -z "$as_dir" && as_dir=.
 
2335
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2336
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2337
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2338
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2339
    break 2
 
2340
  fi
 
2341
done
 
2342
done
 
2343
IFS=$as_save_IFS
 
2344
 
 
2345
fi
 
2346
fi
 
2347
CC=$ac_cv_prog_CC
 
2348
if test -n "$CC"; then
 
2349
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2350
echo "${ECHO_T}$CC" >&6; }
 
2351
else
 
2352
  { echo "$as_me:$LINENO: result: no" >&5
 
2353
echo "${ECHO_T}no" >&6; }
 
2354
fi
 
2355
 
 
2356
 
 
2357
fi
 
2358
if test -z "$ac_cv_prog_CC"; then
 
2359
  ac_ct_CC=$CC
 
2360
  # Extract the first word of "gcc", so it can be a program name with args.
 
2361
set dummy gcc; ac_word=$2
 
2362
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2363
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2364
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2366
else
 
2367
  if test -n "$ac_ct_CC"; then
 
2368
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2369
else
 
2370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2371
for as_dir in $PATH
 
2372
do
 
2373
  IFS=$as_save_IFS
 
2374
  test -z "$as_dir" && as_dir=.
 
2375
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2376
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2377
    ac_cv_prog_ac_ct_CC="gcc"
 
2378
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2379
    break 2
 
2380
  fi
 
2381
done
 
2382
done
 
2383
IFS=$as_save_IFS
 
2384
 
 
2385
fi
 
2386
fi
 
2387
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2388
if test -n "$ac_ct_CC"; then
 
2389
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2390
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2391
else
 
2392
  { echo "$as_me:$LINENO: result: no" >&5
 
2393
echo "${ECHO_T}no" >&6; }
 
2394
fi
 
2395
 
 
2396
  if test "x$ac_ct_CC" = x; then
 
2397
    CC=""
 
2398
  else
 
2399
    case $cross_compiling:$ac_tool_warned in
 
2400
yes:)
 
2401
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2402
whose name does not start with the host triplet.  If you think this
 
2403
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2404
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2405
whose name does not start with the host triplet.  If you think this
 
2406
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2407
ac_tool_warned=yes ;;
 
2408
esac
 
2409
    CC=$ac_ct_CC
 
2410
  fi
 
2411
else
 
2412
  CC="$ac_cv_prog_CC"
 
2413
fi
 
2414
 
 
2415
if test -z "$CC"; then
 
2416
          if test -n "$ac_tool_prefix"; then
 
2417
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2418
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2419
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2420
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2421
if test "${ac_cv_prog_CC+set}" = set; then
 
2422
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2423
else
 
2424
  if test -n "$CC"; then
 
2425
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2426
else
 
2427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2428
for as_dir in $PATH
 
2429
do
 
2430
  IFS=$as_save_IFS
 
2431
  test -z "$as_dir" && as_dir=.
 
2432
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2433
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2434
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2435
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2436
    break 2
 
2437
  fi
 
2438
done
 
2439
done
 
2440
IFS=$as_save_IFS
 
2441
 
 
2442
fi
 
2443
fi
 
2444
CC=$ac_cv_prog_CC
 
2445
if test -n "$CC"; then
 
2446
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2447
echo "${ECHO_T}$CC" >&6; }
 
2448
else
 
2449
  { echo "$as_me:$LINENO: result: no" >&5
 
2450
echo "${ECHO_T}no" >&6; }
 
2451
fi
 
2452
 
 
2453
 
 
2454
  fi
 
2455
fi
 
2456
if test -z "$CC"; then
 
2457
  # Extract the first word of "cc", so it can be a program name with args.
 
2458
set dummy cc; ac_word=$2
 
2459
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2461
if test "${ac_cv_prog_CC+set}" = set; then
 
2462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2463
else
 
2464
  if test -n "$CC"; then
 
2465
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2466
else
 
2467
  ac_prog_rejected=no
 
2468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2469
for as_dir in $PATH
 
2470
do
 
2471
  IFS=$as_save_IFS
 
2472
  test -z "$as_dir" && as_dir=.
 
2473
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2474
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2475
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2476
       ac_prog_rejected=yes
 
2477
       continue
 
2478
     fi
 
2479
    ac_cv_prog_CC="cc"
 
2480
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2481
    break 2
 
2482
  fi
 
2483
done
 
2484
done
 
2485
IFS=$as_save_IFS
 
2486
 
 
2487
if test $ac_prog_rejected = yes; then
 
2488
  # We found a bogon in the path, so make sure we never use it.
 
2489
  set dummy $ac_cv_prog_CC
 
2490
  shift
 
2491
  if test $# != 0; then
 
2492
    # We chose a different compiler from the bogus one.
 
2493
    # However, it has the same basename, so the bogon will be chosen
 
2494
    # first if we set CC to just the basename; use the full file name.
 
2495
    shift
 
2496
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2497
  fi
 
2498
fi
 
2499
fi
 
2500
fi
 
2501
CC=$ac_cv_prog_CC
 
2502
if test -n "$CC"; then
 
2503
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2504
echo "${ECHO_T}$CC" >&6; }
 
2505
else
 
2506
  { echo "$as_me:$LINENO: result: no" >&5
 
2507
echo "${ECHO_T}no" >&6; }
 
2508
fi
 
2509
 
 
2510
 
 
2511
fi
 
2512
if test -z "$CC"; then
 
2513
  if test -n "$ac_tool_prefix"; then
 
2514
  for ac_prog in cl.exe
 
2515
  do
 
2516
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2517
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2518
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2519
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2520
if test "${ac_cv_prog_CC+set}" = set; then
 
2521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2522
else
 
2523
  if test -n "$CC"; then
 
2524
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2525
else
 
2526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2527
for as_dir in $PATH
 
2528
do
 
2529
  IFS=$as_save_IFS
 
2530
  test -z "$as_dir" && as_dir=.
 
2531
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2532
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2533
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2534
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2535
    break 2
 
2536
  fi
 
2537
done
 
2538
done
 
2539
IFS=$as_save_IFS
 
2540
 
 
2541
fi
 
2542
fi
 
2543
CC=$ac_cv_prog_CC
 
2544
if test -n "$CC"; then
 
2545
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2546
echo "${ECHO_T}$CC" >&6; }
 
2547
else
 
2548
  { echo "$as_me:$LINENO: result: no" >&5
 
2549
echo "${ECHO_T}no" >&6; }
 
2550
fi
 
2551
 
 
2552
 
 
2553
    test -n "$CC" && break
 
2554
  done
 
2555
fi
 
2556
if test -z "$CC"; then
 
2557
  ac_ct_CC=$CC
 
2558
  for ac_prog in cl.exe
 
2559
do
 
2560
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2561
set dummy $ac_prog; ac_word=$2
 
2562
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2564
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2566
else
 
2567
  if test -n "$ac_ct_CC"; then
 
2568
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2569
else
 
2570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2571
for as_dir in $PATH
 
2572
do
 
2573
  IFS=$as_save_IFS
 
2574
  test -z "$as_dir" && as_dir=.
 
2575
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2576
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2577
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2578
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2579
    break 2
 
2580
  fi
 
2581
done
 
2582
done
 
2583
IFS=$as_save_IFS
 
2584
 
 
2585
fi
 
2586
fi
 
2587
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2588
if test -n "$ac_ct_CC"; then
 
2589
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2590
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2591
else
 
2592
  { echo "$as_me:$LINENO: result: no" >&5
 
2593
echo "${ECHO_T}no" >&6; }
 
2594
fi
 
2595
 
 
2596
 
 
2597
  test -n "$ac_ct_CC" && break
 
2598
done
 
2599
 
 
2600
  if test "x$ac_ct_CC" = x; then
 
2601
    CC=""
 
2602
  else
 
2603
    case $cross_compiling:$ac_tool_warned in
 
2604
yes:)
 
2605
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2606
whose name does not start with the host triplet.  If you think this
 
2607
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2608
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2609
whose name does not start with the host triplet.  If you think this
 
2610
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2611
ac_tool_warned=yes ;;
 
2612
esac
 
2613
    CC=$ac_ct_CC
 
2614
  fi
 
2615
fi
 
2616
 
 
2617
fi
 
2618
 
 
2619
 
 
2620
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2621
See \`config.log' for more details." >&5
 
2622
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2623
See \`config.log' for more details." >&2;}
 
2624
   { (exit 1); exit 1; }; }
 
2625
 
 
2626
# Provide some information about the compiler.
 
2627
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2628
ac_compiler=`set X $ac_compile; echo $2`
 
2629
{ (ac_try="$ac_compiler --version >&5"
 
2630
case "(($ac_try" in
 
2631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2632
  *) ac_try_echo=$ac_try;;
 
2633
esac
 
2634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2635
  (eval "$ac_compiler --version >&5") 2>&5
 
2636
  ac_status=$?
 
2637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2638
  (exit $ac_status); }
 
2639
{ (ac_try="$ac_compiler -v >&5"
 
2640
case "(($ac_try" in
 
2641
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2642
  *) ac_try_echo=$ac_try;;
 
2643
esac
 
2644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2645
  (eval "$ac_compiler -v >&5") 2>&5
 
2646
  ac_status=$?
 
2647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2648
  (exit $ac_status); }
 
2649
{ (ac_try="$ac_compiler -V >&5"
 
2650
case "(($ac_try" in
 
2651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2652
  *) ac_try_echo=$ac_try;;
 
2653
esac
 
2654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2655
  (eval "$ac_compiler -V >&5") 2>&5
 
2656
  ac_status=$?
 
2657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2658
  (exit $ac_status); }
 
2659
 
 
2660
cat >conftest.$ac_ext <<_ACEOF
 
2661
/* confdefs.h.  */
 
2662
_ACEOF
 
2663
cat confdefs.h >>conftest.$ac_ext
 
2664
cat >>conftest.$ac_ext <<_ACEOF
 
2665
/* end confdefs.h.  */
 
2666
 
 
2667
int
 
2668
main ()
 
2669
{
 
2670
 
 
2671
  ;
 
2672
  return 0;
 
2673
}
 
2674
_ACEOF
 
2675
ac_clean_files_save=$ac_clean_files
 
2676
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2677
# Try to create an executable without -o first, disregard a.out.
 
2678
# It will help us diagnose broken compilers, and finding out an intuition
 
2679
# of exeext.
 
2680
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2681
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2682
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2683
#
 
2684
# List of possible output files, starting from the most likely.
 
2685
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2686
# only as a last resort.  b.out is created by i960 compilers.
 
2687
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2688
#
 
2689
# The IRIX 6 linker writes into existing files which may not be
 
2690
# executable, retaining their permissions.  Remove them first so a
 
2691
# subsequent execution test works.
 
2692
ac_rmfiles=
 
2693
for ac_file in $ac_files
 
2694
do
 
2695
  case $ac_file in
 
2696
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2697
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2698
  esac
 
2699
done
 
2700
rm -f $ac_rmfiles
 
2701
 
 
2702
if { (ac_try="$ac_link_default"
 
2703
case "(($ac_try" in
 
2704
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2705
  *) ac_try_echo=$ac_try;;
 
2706
esac
 
2707
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2708
  (eval "$ac_link_default") 2>&5
 
2709
  ac_status=$?
 
2710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2711
  (exit $ac_status); }; then
 
2712
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2713
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2714
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2715
# so that the user can short-circuit this test for compilers unknown to
 
2716
# Autoconf.
 
2717
for ac_file in $ac_files ''
 
2718
do
 
2719
  test -f "$ac_file" || continue
 
2720
  case $ac_file in
 
2721
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2722
        ;;
 
2723
    [ab].out )
 
2724
        # We found the default executable, but exeext='' is most
 
2725
        # certainly right.
 
2726
        break;;
 
2727
    *.* )
 
2728
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2729
        then :; else
 
2730
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2731
        fi
 
2732
        # We set ac_cv_exeext here because the later test for it is not
 
2733
        # safe: cross compilers may not add the suffix if given an `-o'
 
2734
        # argument, so we may need to know it at that point already.
 
2735
        # Even if this section looks crufty: it has the advantage of
 
2736
        # actually working.
 
2737
        break;;
 
2738
    * )
 
2739
        break;;
 
2740
  esac
 
2741
done
 
2742
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2743
 
 
2744
else
 
2745
  ac_file=''
 
2746
fi
 
2747
 
 
2748
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2749
echo "${ECHO_T}$ac_file" >&6; }
 
2750
if test -z "$ac_file"; then
 
2751
  echo "$as_me: failed program was:" >&5
 
2752
sed 's/^/| /' conftest.$ac_ext >&5
 
2753
 
 
2754
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2755
See \`config.log' for more details." >&5
 
2756
echo "$as_me: error: C compiler cannot create executables
 
2757
See \`config.log' for more details." >&2;}
 
2758
   { (exit 77); exit 77; }; }
 
2759
fi
 
2760
 
 
2761
ac_exeext=$ac_cv_exeext
 
2762
 
 
2763
# Check that the compiler produces executables we can run.  If not, either
 
2764
# the compiler is broken, or we cross compile.
 
2765
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2766
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2767
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2768
# If not cross compiling, check that we can run a simple program.
 
2769
if test "$cross_compiling" != yes; then
 
2770
  if { ac_try='./$ac_file'
 
2771
  { (case "(($ac_try" in
 
2772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2773
  *) ac_try_echo=$ac_try;;
 
2774
esac
 
2775
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2776
  (eval "$ac_try") 2>&5
 
2777
  ac_status=$?
 
2778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2779
  (exit $ac_status); }; }; then
 
2780
    cross_compiling=no
 
2781
  else
 
2782
    if test "$cross_compiling" = maybe; then
 
2783
        cross_compiling=yes
 
2784
    else
 
2785
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2786
If you meant to cross compile, use \`--host'.
 
2787
See \`config.log' for more details." >&5
 
2788
echo "$as_me: error: cannot run C compiled programs.
 
2789
If you meant to cross compile, use \`--host'.
 
2790
See \`config.log' for more details." >&2;}
 
2791
   { (exit 1); exit 1; }; }
 
2792
    fi
 
2793
  fi
 
2794
fi
 
2795
{ echo "$as_me:$LINENO: result: yes" >&5
 
2796
echo "${ECHO_T}yes" >&6; }
 
2797
 
 
2798
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2799
ac_clean_files=$ac_clean_files_save
 
2800
# Check that the compiler produces executables we can run.  If not, either
 
2801
# the compiler is broken, or we cross compile.
 
2802
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2803
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2804
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2805
echo "${ECHO_T}$cross_compiling" >&6; }
 
2806
 
 
2807
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2808
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2809
if { (ac_try="$ac_link"
 
2810
case "(($ac_try" in
 
2811
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2812
  *) ac_try_echo=$ac_try;;
 
2813
esac
 
2814
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2815
  (eval "$ac_link") 2>&5
 
2816
  ac_status=$?
 
2817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2818
  (exit $ac_status); }; then
 
2819
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2820
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2821
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2822
# `rm'.
 
2823
for ac_file in conftest.exe conftest conftest.*; do
 
2824
  test -f "$ac_file" || continue
 
2825
  case $ac_file in
 
2826
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2827
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2828
          break;;
 
2829
    * ) break;;
 
2830
  esac
 
2831
done
 
2832
else
 
2833
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2834
See \`config.log' for more details." >&5
 
2835
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2836
See \`config.log' for more details." >&2;}
 
2837
   { (exit 1); exit 1; }; }
 
2838
fi
 
2839
 
 
2840
rm -f conftest$ac_cv_exeext
 
2841
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2842
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2843
 
 
2844
rm -f conftest.$ac_ext
 
2845
EXEEXT=$ac_cv_exeext
 
2846
ac_exeext=$EXEEXT
 
2847
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2848
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2849
if test "${ac_cv_objext+set}" = set; then
 
2850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2851
else
 
2852
  cat >conftest.$ac_ext <<_ACEOF
 
2853
/* confdefs.h.  */
 
2854
_ACEOF
 
2855
cat confdefs.h >>conftest.$ac_ext
 
2856
cat >>conftest.$ac_ext <<_ACEOF
 
2857
/* end confdefs.h.  */
 
2858
 
 
2859
int
 
2860
main ()
 
2861
{
 
2862
 
 
2863
  ;
 
2864
  return 0;
 
2865
}
 
2866
_ACEOF
 
2867
rm -f conftest.o conftest.obj
 
2868
if { (ac_try="$ac_compile"
 
2869
case "(($ac_try" in
 
2870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2871
  *) ac_try_echo=$ac_try;;
 
2872
esac
 
2873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2874
  (eval "$ac_compile") 2>&5
 
2875
  ac_status=$?
 
2876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2877
  (exit $ac_status); }; then
 
2878
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2879
  test -f "$ac_file" || continue;
 
2880
  case $ac_file in
 
2881
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2882
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2883
       break;;
 
2884
  esac
 
2885
done
 
2886
else
 
2887
  echo "$as_me: failed program was:" >&5
 
2888
sed 's/^/| /' conftest.$ac_ext >&5
 
2889
 
 
2890
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2891
See \`config.log' for more details." >&5
 
2892
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2893
See \`config.log' for more details." >&2;}
 
2894
   { (exit 1); exit 1; }; }
 
2895
fi
 
2896
 
 
2897
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2898
fi
 
2899
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2900
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2901
OBJEXT=$ac_cv_objext
 
2902
ac_objext=$OBJEXT
 
2903
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2904
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
2905
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2907
else
 
2908
  cat >conftest.$ac_ext <<_ACEOF
 
2909
/* confdefs.h.  */
 
2910
_ACEOF
 
2911
cat confdefs.h >>conftest.$ac_ext
 
2912
cat >>conftest.$ac_ext <<_ACEOF
 
2913
/* end confdefs.h.  */
 
2914
 
 
2915
int
 
2916
main ()
 
2917
{
 
2918
#ifndef __GNUC__
 
2919
       choke me
 
2920
#endif
 
2921
 
 
2922
  ;
 
2923
  return 0;
 
2924
}
 
2925
_ACEOF
 
2926
rm -f conftest.$ac_objext
 
2927
if { (ac_try="$ac_compile"
 
2928
case "(($ac_try" in
 
2929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2930
  *) ac_try_echo=$ac_try;;
 
2931
esac
 
2932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2933
  (eval "$ac_compile") 2>conftest.er1
 
2934
  ac_status=$?
 
2935
  grep -v '^ *+' conftest.er1 >conftest.err
 
2936
  rm -f conftest.er1
 
2937
  cat conftest.err >&5
 
2938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2939
  (exit $ac_status); } && {
 
2940
         test -z "$ac_c_werror_flag" ||
 
2941
         test ! -s conftest.err
 
2942
       } && test -s conftest.$ac_objext; then
 
2943
  ac_compiler_gnu=yes
 
2944
else
 
2945
  echo "$as_me: failed program was:" >&5
 
2946
sed 's/^/| /' conftest.$ac_ext >&5
 
2947
 
 
2948
        ac_compiler_gnu=no
 
2949
fi
 
2950
 
 
2951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2952
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2953
 
 
2954
fi
 
2955
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2956
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
2957
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2958
ac_test_CFLAGS=${CFLAGS+set}
 
2959
ac_save_CFLAGS=$CFLAGS
 
2960
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2961
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
2962
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2964
else
 
2965
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2966
   ac_c_werror_flag=yes
 
2967
   ac_cv_prog_cc_g=no
 
2968
   CFLAGS="-g"
 
2969
   cat >conftest.$ac_ext <<_ACEOF
 
2970
/* confdefs.h.  */
 
2971
_ACEOF
 
2972
cat confdefs.h >>conftest.$ac_ext
 
2973
cat >>conftest.$ac_ext <<_ACEOF
 
2974
/* end confdefs.h.  */
 
2975
 
 
2976
int
 
2977
main ()
 
2978
{
 
2979
 
 
2980
  ;
 
2981
  return 0;
 
2982
}
 
2983
_ACEOF
 
2984
rm -f conftest.$ac_objext
 
2985
if { (ac_try="$ac_compile"
 
2986
case "(($ac_try" in
 
2987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2988
  *) ac_try_echo=$ac_try;;
 
2989
esac
 
2990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2991
  (eval "$ac_compile") 2>conftest.er1
 
2992
  ac_status=$?
 
2993
  grep -v '^ *+' conftest.er1 >conftest.err
 
2994
  rm -f conftest.er1
 
2995
  cat conftest.err >&5
 
2996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2997
  (exit $ac_status); } && {
 
2998
         test -z "$ac_c_werror_flag" ||
 
2999
         test ! -s conftest.err
 
3000
       } && test -s conftest.$ac_objext; then
 
3001
  ac_cv_prog_cc_g=yes
 
3002
else
 
3003
  echo "$as_me: failed program was:" >&5
 
3004
sed 's/^/| /' conftest.$ac_ext >&5
 
3005
 
 
3006
        CFLAGS=""
 
3007
      cat >conftest.$ac_ext <<_ACEOF
 
3008
/* confdefs.h.  */
 
3009
_ACEOF
 
3010
cat confdefs.h >>conftest.$ac_ext
 
3011
cat >>conftest.$ac_ext <<_ACEOF
 
3012
/* end confdefs.h.  */
 
3013
 
 
3014
int
 
3015
main ()
 
3016
{
 
3017
 
 
3018
  ;
 
3019
  return 0;
 
3020
}
 
3021
_ACEOF
 
3022
rm -f conftest.$ac_objext
 
3023
if { (ac_try="$ac_compile"
 
3024
case "(($ac_try" in
 
3025
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3026
  *) ac_try_echo=$ac_try;;
 
3027
esac
 
3028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3029
  (eval "$ac_compile") 2>conftest.er1
 
3030
  ac_status=$?
 
3031
  grep -v '^ *+' conftest.er1 >conftest.err
 
3032
  rm -f conftest.er1
 
3033
  cat conftest.err >&5
 
3034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3035
  (exit $ac_status); } && {
 
3036
         test -z "$ac_c_werror_flag" ||
 
3037
         test ! -s conftest.err
 
3038
       } && test -s conftest.$ac_objext; then
 
3039
  :
 
3040
else
 
3041
  echo "$as_me: failed program was:" >&5
 
3042
sed 's/^/| /' conftest.$ac_ext >&5
 
3043
 
 
3044
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3045
         CFLAGS="-g"
 
3046
         cat >conftest.$ac_ext <<_ACEOF
 
3047
/* confdefs.h.  */
 
3048
_ACEOF
 
3049
cat confdefs.h >>conftest.$ac_ext
 
3050
cat >>conftest.$ac_ext <<_ACEOF
 
3051
/* end confdefs.h.  */
 
3052
 
 
3053
int
 
3054
main ()
 
3055
{
 
3056
 
 
3057
  ;
 
3058
  return 0;
 
3059
}
 
3060
_ACEOF
 
3061
rm -f conftest.$ac_objext
 
3062
if { (ac_try="$ac_compile"
 
3063
case "(($ac_try" in
 
3064
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3065
  *) ac_try_echo=$ac_try;;
 
3066
esac
 
3067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3068
  (eval "$ac_compile") 2>conftest.er1
 
3069
  ac_status=$?
 
3070
  grep -v '^ *+' conftest.er1 >conftest.err
 
3071
  rm -f conftest.er1
 
3072
  cat conftest.err >&5
 
3073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3074
  (exit $ac_status); } && {
 
3075
         test -z "$ac_c_werror_flag" ||
 
3076
         test ! -s conftest.err
 
3077
       } && test -s conftest.$ac_objext; then
 
3078
  ac_cv_prog_cc_g=yes
 
3079
else
 
3080
  echo "$as_me: failed program was:" >&5
 
3081
sed 's/^/| /' conftest.$ac_ext >&5
 
3082
 
 
3083
 
 
3084
fi
 
3085
 
 
3086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3087
fi
 
3088
 
 
3089
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3090
fi
 
3091
 
 
3092
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3093
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3094
fi
 
3095
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3096
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3097
if test "$ac_test_CFLAGS" = set; then
 
3098
  CFLAGS=$ac_save_CFLAGS
 
3099
elif test $ac_cv_prog_cc_g = yes; then
 
3100
  if test "$GCC" = yes; then
 
3101
    CFLAGS="-g -O2"
 
3102
  else
 
3103
    CFLAGS="-g"
 
3104
  fi
 
3105
else
 
3106
  if test "$GCC" = yes; then
 
3107
    CFLAGS="-O2"
 
3108
  else
 
3109
    CFLAGS=
 
3110
  fi
 
3111
fi
 
3112
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3113
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3114
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3115
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3116
else
 
3117
  ac_cv_prog_cc_c89=no
 
3118
ac_save_CC=$CC
 
3119
cat >conftest.$ac_ext <<_ACEOF
 
3120
/* confdefs.h.  */
 
3121
_ACEOF
 
3122
cat confdefs.h >>conftest.$ac_ext
 
3123
cat >>conftest.$ac_ext <<_ACEOF
 
3124
/* end confdefs.h.  */
 
3125
#include <stdarg.h>
 
3126
#include <stdio.h>
 
3127
#include <sys/types.h>
 
3128
#include <sys/stat.h>
 
3129
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3130
struct buf { int x; };
 
3131
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3132
static char *e (p, i)
 
3133
     char **p;
 
3134
     int i;
 
3135
{
 
3136
  return p[i];
 
3137
}
 
3138
static char *f (char * (*g) (char **, int), char **p, ...)
 
3139
{
 
3140
  char *s;
 
3141
  va_list v;
 
3142
  va_start (v,p);
 
3143
  s = g (p, va_arg (v,int));
 
3144
  va_end (v);
 
3145
  return s;
 
3146
}
 
3147
 
 
3148
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3149
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3150
   These don't provoke an error unfortunately, instead are silently treated
 
3151
   as 'x'.  The following induces an error, until -std is added to get
 
3152
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3153
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3154
   that's true only with -std.  */
 
3155
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3156
 
 
3157
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3158
   inside strings and character constants.  */
 
3159
#define FOO(x) 'x'
 
3160
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3161
 
 
3162
int test (int i, double x);
 
3163
struct s1 {int (*f) (int a);};
 
3164
struct s2 {int (*f) (double a);};
 
3165
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3166
int argc;
 
3167
char **argv;
 
3168
int
 
3169
main ()
 
3170
{
 
3171
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3172
  ;
 
3173
  return 0;
 
3174
}
 
3175
_ACEOF
 
3176
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3177
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3178
do
 
3179
  CC="$ac_save_CC $ac_arg"
 
3180
  rm -f conftest.$ac_objext
 
3181
if { (ac_try="$ac_compile"
 
3182
case "(($ac_try" in
 
3183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3184
  *) ac_try_echo=$ac_try;;
 
3185
esac
 
3186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3187
  (eval "$ac_compile") 2>conftest.er1
 
3188
  ac_status=$?
 
3189
  grep -v '^ *+' conftest.er1 >conftest.err
 
3190
  rm -f conftest.er1
 
3191
  cat conftest.err >&5
 
3192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3193
  (exit $ac_status); } && {
 
3194
         test -z "$ac_c_werror_flag" ||
 
3195
         test ! -s conftest.err
 
3196
       } && test -s conftest.$ac_objext; then
 
3197
  ac_cv_prog_cc_c89=$ac_arg
 
3198
else
 
3199
  echo "$as_me: failed program was:" >&5
 
3200
sed 's/^/| /' conftest.$ac_ext >&5
 
3201
 
 
3202
 
 
3203
fi
 
3204
 
 
3205
rm -f core conftest.err conftest.$ac_objext
 
3206
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3207
done
 
3208
rm -f conftest.$ac_ext
 
3209
CC=$ac_save_CC
 
3210
 
 
3211
fi
 
3212
# AC_CACHE_VAL
 
3213
case "x$ac_cv_prog_cc_c89" in
 
3214
  x)
 
3215
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3216
echo "${ECHO_T}none needed" >&6; } ;;
 
3217
  xno)
 
3218
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3219
echo "${ECHO_T}unsupported" >&6; } ;;
 
3220
  *)
 
3221
    CC="$CC $ac_cv_prog_cc_c89"
 
3222
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3223
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3224
esac
 
3225
 
 
3226
 
 
3227
ac_ext=c
 
3228
ac_cpp='$CPP $CPPFLAGS'
 
3229
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3230
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3231
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3232
 
 
3233
 
 
3234
 
 
3235
 
 
3236
{ echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
 
3237
echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
 
3238
 
 
3239
# Check whether --with-cxx_main was given.
 
3240
if test "${with_cxx_main+set}" = set; then
 
3241
  withval=$with_cxx_main;
 
3242
 
 
3243
        case $withval in
 
3244
        no)     with_cxx_main=no
 
3245
                MAINCC='$(CC)';;
 
3246
        yes)    with_cxx_main=yes
 
3247
                MAINCC='$(CXX)';;
 
3248
        *)      with_cxx_main=yes
 
3249
                MAINCC=$withval
 
3250
                if test -z "$CXX"
 
3251
                then
 
3252
                        CXX=$withval
 
3253
                fi;;
 
3254
        esac
 
3255
else
 
3256
 
 
3257
        with_cxx_main=no
 
3258
        MAINCC='$(CC)'
 
3259
 
 
3260
fi
 
3261
 
 
3262
{ echo "$as_me:$LINENO: result: $with_cxx_main" >&5
 
3263
echo "${ECHO_T}$with_cxx_main" >&6; }
 
3264
 
 
3265
preset_cxx="$CXX"
 
3266
if test -z "$CXX"
 
3267
then
 
3268
        case "$CC" in
 
3269
        gcc)    # Extract the first word of "g++", so it can be a program name with args.
 
3270
set dummy g++; ac_word=$2
 
3271
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3272
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3273
if test "${ac_cv_path_CXX+set}" = set; then
 
3274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3275
else
 
3276
  case $CXX in
 
3277
  [\\/]* | ?:[\\/]*)
 
3278
  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
 
3279
  ;;
 
3280
  *)
 
3281
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3282
for as_dir in notfound
 
3283
do
 
3284
  IFS=$as_save_IFS
 
3285
  test -z "$as_dir" && as_dir=.
 
3286
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3287
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3288
    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
 
3289
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3290
    break 2
 
3291
  fi
 
3292
done
 
3293
done
 
3294
IFS=$as_save_IFS
 
3295
 
 
3296
  test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
 
3297
  ;;
 
3298
esac
 
3299
fi
 
3300
CXX=$ac_cv_path_CXX
 
3301
if test -n "$CXX"; then
 
3302
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
3303
echo "${ECHO_T}$CXX" >&6; }
 
3304
else
 
3305
  { echo "$as_me:$LINENO: result: no" >&5
 
3306
echo "${ECHO_T}no" >&6; }
 
3307
fi
 
3308
 
 
3309
 ;;
 
3310
        cc)     # Extract the first word of "c++", so it can be a program name with args.
 
3311
set dummy c++; ac_word=$2
 
3312
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3313
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3314
if test "${ac_cv_path_CXX+set}" = set; then
 
3315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3316
else
 
3317
  case $CXX in
 
3318
  [\\/]* | ?:[\\/]*)
 
3319
  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
 
3320
  ;;
 
3321
  *)
 
3322
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3323
for as_dir in notfound
 
3324
do
 
3325
  IFS=$as_save_IFS
 
3326
  test -z "$as_dir" && as_dir=.
 
3327
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3328
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3329
    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
 
3330
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3331
    break 2
 
3332
  fi
 
3333
done
 
3334
done
 
3335
IFS=$as_save_IFS
 
3336
 
 
3337
  test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
 
3338
  ;;
 
3339
esac
 
3340
fi
 
3341
CXX=$ac_cv_path_CXX
 
3342
if test -n "$CXX"; then
 
3343
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
3344
echo "${ECHO_T}$CXX" >&6; }
 
3345
else
 
3346
  { echo "$as_me:$LINENO: result: no" >&5
 
3347
echo "${ECHO_T}no" >&6; }
 
3348
fi
 
3349
 
 
3350
 ;;
 
3351
        esac
 
3352
        if test "$CXX" = "notfound"
 
3353
        then
 
3354
                CXX=""
 
3355
        fi
 
3356
fi
 
3357
if test -z "$CXX"
 
3358
then
 
3359
        for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
 
3360
do
 
3361
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3362
set dummy $ac_prog; ac_word=$2
 
3363
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3364
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3365
if test "${ac_cv_prog_CXX+set}" = set; then
 
3366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3367
else
 
3368
  if test -n "$CXX"; then
 
3369
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3370
else
 
3371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3372
for as_dir in $PATH
 
3373
do
 
3374
  IFS=$as_save_IFS
 
3375
  test -z "$as_dir" && as_dir=.
 
3376
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3378
    ac_cv_prog_CXX="$ac_prog"
 
3379
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3380
    break 2
 
3381
  fi
 
3382
done
 
3383
done
 
3384
IFS=$as_save_IFS
 
3385
 
 
3386
fi
 
3387
fi
 
3388
CXX=$ac_cv_prog_CXX
 
3389
if test -n "$CXX"; then
 
3390
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
3391
echo "${ECHO_T}$CXX" >&6; }
 
3392
else
 
3393
  { echo "$as_me:$LINENO: result: no" >&5
 
3394
echo "${ECHO_T}no" >&6; }
 
3395
fi
 
3396
 
 
3397
 
 
3398
  test -n "$CXX" && break
 
3399
done
 
3400
test -n "$CXX" || CXX="notfound"
 
3401
 
 
3402
        if test "$CXX" = "notfound"
 
3403
        then
 
3404
                CXX=""
 
3405
        fi
 
3406
fi
 
3407
if test "$preset_cxx" != "$CXX"
 
3408
then
 
3409
        { echo "$as_me:$LINENO: WARNING:
 
3410
 
 
3411
  By default, distutils will build C++ extension modules with \"$CXX\".
 
3412
  If this is not intended, then set CXX on the configure command line.
 
3413
  " >&5
 
3414
echo "$as_me: WARNING:
 
3415
 
 
3416
  By default, distutils will build C++ extension modules with \"$CXX\".
 
3417
  If this is not intended, then set CXX on the configure command line.
 
3418
  " >&2;}
 
3419
fi
 
3420
 
 
3421
 
 
3422
# checks for UNIX variants that set C preprocessor variables
 
3423
 
 
3424
ac_ext=c
 
3425
ac_cpp='$CPP $CPPFLAGS'
 
3426
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3427
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3428
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3429
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3430
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3431
# On Suns, sometimes $CPP names a directory.
 
3432
if test -n "$CPP" && test -d "$CPP"; then
 
3433
  CPP=
 
3434
fi
 
3435
if test -z "$CPP"; then
 
3436
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3438
else
 
3439
      # Double quotes because CPP needs to be expanded
 
3440
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3441
    do
 
3442
      ac_preproc_ok=false
 
3443
for ac_c_preproc_warn_flag in '' yes
 
3444
do
 
3445
  # Use a header file that comes with gcc, so configuring glibc
 
3446
  # with a fresh cross-compiler works.
 
3447
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3448
  # <limits.h> exists even on freestanding compilers.
 
3449
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3450
  # not just through cpp. "Syntax error" is here to catch this case.
 
3451
  cat >conftest.$ac_ext <<_ACEOF
 
3452
/* confdefs.h.  */
 
3453
_ACEOF
 
3454
cat confdefs.h >>conftest.$ac_ext
 
3455
cat >>conftest.$ac_ext <<_ACEOF
 
3456
/* end confdefs.h.  */
 
3457
#ifdef __STDC__
 
3458
# include <limits.h>
 
3459
#else
 
3460
# include <assert.h>
 
3461
#endif
 
3462
                     Syntax error
 
3463
_ACEOF
 
3464
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3465
case "(($ac_try" in
 
3466
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3467
  *) ac_try_echo=$ac_try;;
 
3468
esac
 
3469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3470
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3471
  ac_status=$?
 
3472
  grep -v '^ *+' conftest.er1 >conftest.err
 
3473
  rm -f conftest.er1
 
3474
  cat conftest.err >&5
 
3475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3476
  (exit $ac_status); } >/dev/null && {
 
3477
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3478
         test ! -s conftest.err
 
3479
       }; then
 
3480
  :
 
3481
else
 
3482
  echo "$as_me: failed program was:" >&5
 
3483
sed 's/^/| /' conftest.$ac_ext >&5
 
3484
 
 
3485
  # Broken: fails on valid input.
 
3486
continue
 
3487
fi
 
3488
 
 
3489
rm -f conftest.err conftest.$ac_ext
 
3490
 
 
3491
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3492
  # can be detected and how.
 
3493
  cat >conftest.$ac_ext <<_ACEOF
 
3494
/* confdefs.h.  */
 
3495
_ACEOF
 
3496
cat confdefs.h >>conftest.$ac_ext
 
3497
cat >>conftest.$ac_ext <<_ACEOF
 
3498
/* end confdefs.h.  */
 
3499
#include <ac_nonexistent.h>
 
3500
_ACEOF
 
3501
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3502
case "(($ac_try" in
 
3503
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3504
  *) ac_try_echo=$ac_try;;
 
3505
esac
 
3506
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3507
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3508
  ac_status=$?
 
3509
  grep -v '^ *+' conftest.er1 >conftest.err
 
3510
  rm -f conftest.er1
 
3511
  cat conftest.err >&5
 
3512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3513
  (exit $ac_status); } >/dev/null && {
 
3514
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3515
         test ! -s conftest.err
 
3516
       }; then
 
3517
  # Broken: success on invalid input.
 
3518
continue
 
3519
else
 
3520
  echo "$as_me: failed program was:" >&5
 
3521
sed 's/^/| /' conftest.$ac_ext >&5
 
3522
 
 
3523
  # Passes both tests.
 
3524
ac_preproc_ok=:
 
3525
break
 
3526
fi
 
3527
 
 
3528
rm -f conftest.err conftest.$ac_ext
 
3529
 
 
3530
done
 
3531
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3532
rm -f conftest.err conftest.$ac_ext
 
3533
if $ac_preproc_ok; then
 
3534
  break
 
3535
fi
 
3536
 
 
3537
    done
 
3538
    ac_cv_prog_CPP=$CPP
 
3539
 
 
3540
fi
 
3541
  CPP=$ac_cv_prog_CPP
 
3542
else
 
3543
  ac_cv_prog_CPP=$CPP
 
3544
fi
 
3545
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
3546
echo "${ECHO_T}$CPP" >&6; }
 
3547
ac_preproc_ok=false
 
3548
for ac_c_preproc_warn_flag in '' yes
 
3549
do
 
3550
  # Use a header file that comes with gcc, so configuring glibc
 
3551
  # with a fresh cross-compiler works.
 
3552
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3553
  # <limits.h> exists even on freestanding compilers.
 
3554
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3555
  # not just through cpp. "Syntax error" is here to catch this case.
 
3556
  cat >conftest.$ac_ext <<_ACEOF
 
3557
/* confdefs.h.  */
 
3558
_ACEOF
 
3559
cat confdefs.h >>conftest.$ac_ext
 
3560
cat >>conftest.$ac_ext <<_ACEOF
 
3561
/* end confdefs.h.  */
 
3562
#ifdef __STDC__
 
3563
# include <limits.h>
 
3564
#else
 
3565
# include <assert.h>
 
3566
#endif
 
3567
                     Syntax error
 
3568
_ACEOF
 
3569
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3570
case "(($ac_try" in
 
3571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3572
  *) ac_try_echo=$ac_try;;
 
3573
esac
 
3574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3575
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3576
  ac_status=$?
 
3577
  grep -v '^ *+' conftest.er1 >conftest.err
 
3578
  rm -f conftest.er1
 
3579
  cat conftest.err >&5
 
3580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3581
  (exit $ac_status); } >/dev/null && {
 
3582
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3583
         test ! -s conftest.err
 
3584
       }; then
 
3585
  :
 
3586
else
 
3587
  echo "$as_me: failed program was:" >&5
 
3588
sed 's/^/| /' conftest.$ac_ext >&5
 
3589
 
 
3590
  # Broken: fails on valid input.
 
3591
continue
 
3592
fi
 
3593
 
 
3594
rm -f conftest.err conftest.$ac_ext
 
3595
 
 
3596
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3597
  # can be detected and how.
 
3598
  cat >conftest.$ac_ext <<_ACEOF
 
3599
/* confdefs.h.  */
 
3600
_ACEOF
 
3601
cat confdefs.h >>conftest.$ac_ext
 
3602
cat >>conftest.$ac_ext <<_ACEOF
 
3603
/* end confdefs.h.  */
 
3604
#include <ac_nonexistent.h>
 
3605
_ACEOF
 
3606
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3607
case "(($ac_try" in
 
3608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3609
  *) ac_try_echo=$ac_try;;
 
3610
esac
 
3611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3612
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3613
  ac_status=$?
 
3614
  grep -v '^ *+' conftest.er1 >conftest.err
 
3615
  rm -f conftest.er1
 
3616
  cat conftest.err >&5
 
3617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3618
  (exit $ac_status); } >/dev/null && {
 
3619
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3620
         test ! -s conftest.err
 
3621
       }; then
 
3622
  # Broken: success on invalid input.
 
3623
continue
 
3624
else
 
3625
  echo "$as_me: failed program was:" >&5
 
3626
sed 's/^/| /' conftest.$ac_ext >&5
 
3627
 
 
3628
  # Passes both tests.
 
3629
ac_preproc_ok=:
 
3630
break
 
3631
fi
 
3632
 
 
3633
rm -f conftest.err conftest.$ac_ext
 
3634
 
 
3635
done
 
3636
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3637
rm -f conftest.err conftest.$ac_ext
 
3638
if $ac_preproc_ok; then
 
3639
  :
 
3640
else
 
3641
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3642
See \`config.log' for more details." >&5
 
3643
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3644
See \`config.log' for more details." >&2;}
 
3645
   { (exit 1); exit 1; }; }
 
3646
fi
 
3647
 
 
3648
ac_ext=c
 
3649
ac_cpp='$CPP $CPPFLAGS'
 
3650
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3651
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3652
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3653
 
 
3654
 
 
3655
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3656
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3657
if test "${ac_cv_path_GREP+set}" = set; then
 
3658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3659
else
 
3660
  # Extract the first word of "grep ggrep" to use in msg output
 
3661
if test -z "$GREP"; then
 
3662
set dummy grep ggrep; ac_prog_name=$2
 
3663
if test "${ac_cv_path_GREP+set}" = set; then
 
3664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3665
else
 
3666
  ac_path_GREP_found=false
 
3667
# Loop through the user's path and test for each of PROGNAME-LIST
 
3668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3669
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3670
do
 
3671
  IFS=$as_save_IFS
 
3672
  test -z "$as_dir" && as_dir=.
 
3673
  for ac_prog in grep ggrep; do
 
3674
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3675
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3676
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3677
    # Check for GNU ac_path_GREP and select it if it is found.
 
3678
  # Check for GNU $ac_path_GREP
 
3679
case `"$ac_path_GREP" --version 2>&1` in
 
3680
*GNU*)
 
3681
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3682
*)
 
3683
  ac_count=0
 
3684
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3685
  while :
 
3686
  do
 
3687
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3688
    mv "conftest.tmp" "conftest.in"
 
3689
    cp "conftest.in" "conftest.nl"
 
3690
    echo 'GREP' >> "conftest.nl"
 
3691
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3692
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3693
    ac_count=`expr $ac_count + 1`
 
3694
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3695
      # Best one so far, save it but keep looking for a better one
 
3696
      ac_cv_path_GREP="$ac_path_GREP"
 
3697
      ac_path_GREP_max=$ac_count
 
3698
    fi
 
3699
    # 10*(2^10) chars as input seems more than enough
 
3700
    test $ac_count -gt 10 && break
 
3701
  done
 
3702
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3703
esac
 
3704
 
 
3705
 
 
3706
    $ac_path_GREP_found && break 3
 
3707
  done
 
3708
done
 
3709
 
 
3710
done
 
3711
IFS=$as_save_IFS
 
3712
 
 
3713
 
 
3714
fi
 
3715
 
 
3716
GREP="$ac_cv_path_GREP"
 
3717
if test -z "$GREP"; then
 
3718
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3719
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3720
   { (exit 1); exit 1; }; }
 
3721
fi
 
3722
 
 
3723
else
 
3724
  ac_cv_path_GREP=$GREP
 
3725
fi
 
3726
 
 
3727
 
 
3728
fi
 
3729
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3730
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3731
 GREP="$ac_cv_path_GREP"
 
3732
 
 
3733
 
 
3734
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3735
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3736
if test "${ac_cv_path_EGREP+set}" = set; then
 
3737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3738
else
 
3739
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3740
   then ac_cv_path_EGREP="$GREP -E"
 
3741
   else
 
3742
     # Extract the first word of "egrep" to use in msg output
 
3743
if test -z "$EGREP"; then
 
3744
set dummy egrep; ac_prog_name=$2
 
3745
if test "${ac_cv_path_EGREP+set}" = set; then
 
3746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3747
else
 
3748
  ac_path_EGREP_found=false
 
3749
# Loop through the user's path and test for each of PROGNAME-LIST
 
3750
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3751
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3752
do
 
3753
  IFS=$as_save_IFS
 
3754
  test -z "$as_dir" && as_dir=.
 
3755
  for ac_prog in egrep; do
 
3756
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3757
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3758
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3759
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3760
  # Check for GNU $ac_path_EGREP
 
3761
case `"$ac_path_EGREP" --version 2>&1` in
 
3762
*GNU*)
 
3763
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3764
*)
 
3765
  ac_count=0
 
3766
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3767
  while :
 
3768
  do
 
3769
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3770
    mv "conftest.tmp" "conftest.in"
 
3771
    cp "conftest.in" "conftest.nl"
 
3772
    echo 'EGREP' >> "conftest.nl"
 
3773
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3774
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3775
    ac_count=`expr $ac_count + 1`
 
3776
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3777
      # Best one so far, save it but keep looking for a better one
 
3778
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3779
      ac_path_EGREP_max=$ac_count
 
3780
    fi
 
3781
    # 10*(2^10) chars as input seems more than enough
 
3782
    test $ac_count -gt 10 && break
 
3783
  done
 
3784
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3785
esac
 
3786
 
 
3787
 
 
3788
    $ac_path_EGREP_found && break 3
 
3789
  done
 
3790
done
 
3791
 
 
3792
done
 
3793
IFS=$as_save_IFS
 
3794
 
 
3795
 
 
3796
fi
 
3797
 
 
3798
EGREP="$ac_cv_path_EGREP"
 
3799
if test -z "$EGREP"; then
 
3800
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3801
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3802
   { (exit 1); exit 1; }; }
 
3803
fi
 
3804
 
 
3805
else
 
3806
  ac_cv_path_EGREP=$EGREP
 
3807
fi
 
3808
 
 
3809
 
 
3810
   fi
 
3811
fi
 
3812
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3813
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3814
 EGREP="$ac_cv_path_EGREP"
 
3815
 
 
3816
 
 
3817
 
 
3818
{ echo "$as_me:$LINENO: checking for AIX" >&5
 
3819
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
 
3820
cat >conftest.$ac_ext <<_ACEOF
 
3821
/* confdefs.h.  */
 
3822
_ACEOF
 
3823
cat confdefs.h >>conftest.$ac_ext
 
3824
cat >>conftest.$ac_ext <<_ACEOF
 
3825
/* end confdefs.h.  */
 
3826
#ifdef _AIX
 
3827
  yes
 
3828
#endif
 
3829
 
 
3830
_ACEOF
 
3831
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3832
  $EGREP "yes" >/dev/null 2>&1; then
 
3833
  { echo "$as_me:$LINENO: result: yes" >&5
 
3834
echo "${ECHO_T}yes" >&6; }
 
3835
cat >>confdefs.h <<\_ACEOF
 
3836
#define _ALL_SOURCE 1
 
3837
_ACEOF
 
3838
 
 
3839
else
 
3840
  { echo "$as_me:$LINENO: result: no" >&5
 
3841
echo "${ECHO_T}no" >&6; }
 
3842
fi
 
3843
rm -f conftest*
 
3844
 
 
3845
 
 
3846
 
 
3847
# Check for unsupported systems
 
3848
case $ac_sys_system/$ac_sys_release in
 
3849
atheos*|Linux*/1*)
 
3850
   echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
 
3851
   echo See README for details.
 
3852
   exit 1;;
 
3853
esac
 
3854
 
 
3855
 
 
3856
{ echo "$as_me:$LINENO: checking for --with-suffix" >&5
 
3857
echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
 
3858
 
 
3859
# Check whether --with-suffix was given.
 
3860
if test "${with_suffix+set}" = set; then
 
3861
  withval=$with_suffix;
 
3862
        case $withval in
 
3863
        no)     EXEEXT=;;
 
3864
        yes)    EXEEXT=.exe;;
 
3865
        *)      EXEEXT=$withval;;
 
3866
        esac
 
3867
fi
 
3868
 
 
3869
{ echo "$as_me:$LINENO: result: $EXEEXT" >&5
 
3870
echo "${ECHO_T}$EXEEXT" >&6; }
 
3871
 
 
3872
# Test whether we're running on a non-case-sensitive system, in which
 
3873
# case we give a warning if no ext is given
 
3874
 
 
3875
{ echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
 
3876
echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
 
3877
if test ! -d CaseSensitiveTestDir; then
 
3878
mkdir CaseSensitiveTestDir
 
3879
fi
 
3880
 
 
3881
if test -d casesensitivetestdir
 
3882
then
 
3883
    { echo "$as_me:$LINENO: result: yes" >&5
 
3884
echo "${ECHO_T}yes" >&6; }
 
3885
    BUILDEXEEXT=.exe
 
3886
else
 
3887
        { echo "$as_me:$LINENO: result: no" >&5
 
3888
echo "${ECHO_T}no" >&6; }
 
3889
        BUILDEXEEXT=$EXEEXT
 
3890
fi
 
3891
rmdir CaseSensitiveTestDir
 
3892
 
 
3893
case $MACHDEP in
 
3894
bsdos*)
 
3895
    case $CC in
 
3896
    gcc) CC="$CC -D_HAVE_BSDI";;
 
3897
    esac;;
 
3898
esac
 
3899
 
 
3900
case $ac_sys_system in
 
3901
hp*|HP*)
 
3902
    case $CC in
 
3903
    cc|*/cc) CC="$CC -Ae";;
 
3904
    esac;;
 
3905
Monterey*)
 
3906
    case $CC in
 
3907
    cc) CC="$CC -Wl,-Bexport";;
 
3908
    esac;;
 
3909
SunOS*)
 
3910
    # Some functions have a prototype only with that define, e.g. confstr
 
3911
 
 
3912
cat >>confdefs.h <<\_ACEOF
 
3913
#define __EXTENSIONS__ 1
 
3914
_ACEOF
 
3915
 
 
3916
    ;;
 
3917
esac
 
3918
 
 
3919
 
 
3920
 
 
3921
{ echo "$as_me:$LINENO: checking LIBRARY" >&5
 
3922
echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
 
3923
if test -z "$LIBRARY"
 
3924
then
 
3925
        LIBRARY='libpython$(VERSION).a'
 
3926
fi
 
3927
{ echo "$as_me:$LINENO: result: $LIBRARY" >&5
 
3928
echo "${ECHO_T}$LIBRARY" >&6; }
 
3929
 
 
3930
# LDLIBRARY is the name of the library to link against (as opposed to the
 
3931
# name of the library into which to insert object files). BLDLIBRARY is also
 
3932
# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
 
3933
# is blank as the main program is not linked directly against LDLIBRARY.
 
3934
# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
 
3935
# systems without shared libraries, LDLIBRARY is the same as LIBRARY
 
3936
# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
 
3937
# DLLLIBRARY is the shared (i.e., DLL) library.
 
3938
#
 
3939
# RUNSHARED is used to run shared python without installed libraries
 
3940
#
 
3941
# INSTSONAME is the name of the shared library that will be use to install
 
3942
# on the system - some systems like version suffix, others don't
 
3943
 
 
3944
 
 
3945
 
 
3946
 
 
3947
 
 
3948
 
 
3949
LDLIBRARY="$LIBRARY"
 
3950
BLDLIBRARY='$(LDLIBRARY)'
 
3951
INSTSONAME='$(LDLIBRARY)'
 
3952
DLLLIBRARY=''
 
3953
LDLIBRARYDIR=''
 
3954
RUNSHARED=''
 
3955
 
 
3956
# LINKCC is the command that links the python executable -- default is $(CC).
 
3957
# If CXX is set, and if it is needed to link a main function that was
 
3958
# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
 
3959
# python might then depend on the C++ runtime
 
3960
# This is altered for AIX in order to build the export list before
 
3961
# linking.
 
3962
 
 
3963
{ echo "$as_me:$LINENO: checking LINKCC" >&5
 
3964
echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
 
3965
if test -z "$LINKCC"
 
3966
then
 
3967
        LINKCC='$(PURIFY) $(MAINCC)'
 
3968
        case $ac_sys_system in
 
3969
        AIX*)
 
3970
           exp_extra="\"\""
 
3971
           if test $ac_sys_release -ge 5 -o \
 
3972
                   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
 
3973
               exp_extra="."
 
3974
           fi
 
3975
           LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
 
3976
        Monterey64*)
 
3977
           LINKCC="$LINKCC -L/usr/lib/ia64l64";;
 
3978
        QNX*)
 
3979
           # qcc must be used because the other compilers do not
 
3980
           # support -N.
 
3981
           LINKCC=qcc;;
 
3982
        esac
 
3983
fi
 
3984
{ echo "$as_me:$LINENO: result: $LINKCC" >&5
 
3985
echo "${ECHO_T}$LINKCC" >&6; }
 
3986
 
 
3987
{ echo "$as_me:$LINENO: checking for --enable-shared" >&5
 
3988
echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
 
3989
# Check whether --enable-shared was given.
 
3990
if test "${enable_shared+set}" = set; then
 
3991
  enableval=$enable_shared;
 
3992
fi
 
3993
 
 
3994
 
 
3995
if test -z "$enable_shared"
 
3996
then
 
3997
  case $ac_sys_system in
 
3998
  CYGWIN* | atheos*)
 
3999
    enable_shared="yes";;
 
4000
  *)
 
4001
    enable_shared="no";;
 
4002
  esac
 
4003
fi
 
4004
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
4005
echo "${ECHO_T}$enable_shared" >&6; }
 
4006
 
 
4007
{ echo "$as_me:$LINENO: checking for --enable-profiling" >&5
 
4008
echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
 
4009
# Check whether --enable-profiling was given.
 
4010
if test "${enable_profiling+set}" = set; then
 
4011
  enableval=$enable_profiling; ac_save_cc="$CC"
 
4012
 CC="$CC -pg"
 
4013
 if test "$cross_compiling" = yes; then
 
4014
  ac_enable_profiling="no"
 
4015
else
 
4016
  cat >conftest.$ac_ext <<_ACEOF
 
4017
/* confdefs.h.  */
 
4018
_ACEOF
 
4019
cat confdefs.h >>conftest.$ac_ext
 
4020
cat >>conftest.$ac_ext <<_ACEOF
 
4021
/* end confdefs.h.  */
 
4022
int main() { return 0; }
 
4023
_ACEOF
 
4024
rm -f conftest$ac_exeext
 
4025
if { (ac_try="$ac_link"
 
4026
case "(($ac_try" in
 
4027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4028
  *) ac_try_echo=$ac_try;;
 
4029
esac
 
4030
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4031
  (eval "$ac_link") 2>&5
 
4032
  ac_status=$?
 
4033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4034
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4035
  { (case "(($ac_try" in
 
4036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4037
  *) ac_try_echo=$ac_try;;
 
4038
esac
 
4039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4040
  (eval "$ac_try") 2>&5
 
4041
  ac_status=$?
 
4042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4043
  (exit $ac_status); }; }; then
 
4044
  ac_enable_profiling="yes"
 
4045
else
 
4046
  echo "$as_me: program exited with status $ac_status" >&5
 
4047
echo "$as_me: failed program was:" >&5
 
4048
sed 's/^/| /' conftest.$ac_ext >&5
 
4049
 
 
4050
( exit $ac_status )
 
4051
ac_enable_profiling="no"
 
4052
fi
 
4053
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4054
fi
 
4055
 
 
4056
 
 
4057
 CC="$ac_save_cc"
 
4058
fi
 
4059
 
 
4060
{ echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
 
4061
echo "${ECHO_T}$ac_enable_profiling" >&6; }
 
4062
 
 
4063
case "$ac_enable_profiling" in
 
4064
    "yes")
 
4065
        BASECFLAGS="-pg $BASECFLAGS"
 
4066
        LDFLAGS="-pg $LDFLAGS"
 
4067
    ;;
 
4068
esac
 
4069
 
 
4070
{ echo "$as_me:$LINENO: checking LDLIBRARY" >&5
 
4071
echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
 
4072
 
 
4073
# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
 
4074
# library that we build, but we do not want to link against it (we
 
4075
# will find it with a -framework option). For this reason there is an
 
4076
# extra variable BLDLIBRARY against which Python and the extension
 
4077
# modules are linked, BLDLIBRARY. This is normally the same as
 
4078
# LDLIBRARY, but empty for MacOSX framework builds.
 
4079
if test "$enable_framework"
 
4080
then
 
4081
  LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
4082
  RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
 
4083
  BLDLIBRARY=''
 
4084
else
 
4085
  BLDLIBRARY='$(LDLIBRARY)'
 
4086
fi
 
4087
 
 
4088
# Other platforms follow
 
4089
if test $enable_shared = "yes"; then
 
4090
 
 
4091
cat >>confdefs.h <<\_ACEOF
 
4092
#define Py_ENABLE_SHARED 1
 
4093
_ACEOF
 
4094
 
 
4095
  case $ac_sys_system in
 
4096
    BeOS*)
 
4097
          LDLIBRARY='libpython$(VERSION).so'
 
4098
          ;;
 
4099
    CYGWIN*)
 
4100
          LDLIBRARY='libpython$(VERSION).dll.a'
 
4101
          DLLLIBRARY='libpython$(VERSION).dll'
 
4102
          ;;
 
4103
    SunOS*)
 
4104
          LDLIBRARY='libpython$(VERSION).so'
 
4105
          BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
 
4106
          RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
 
4107
          INSTSONAME="$LDLIBRARY".$SOVERSION
 
4108
          ;;
 
4109
    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
 
4110
          LDLIBRARY='libpython$(VERSION).so'
 
4111
          BLDLIBRARY='-L. -lpython$(VERSION)'
 
4112
          RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
 
4113
          case $ac_sys_system in
 
4114
              FreeBSD*)
 
4115
                SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
 
4116
                ;;
 
4117
          esac
 
4118
          INSTSONAME="$LDLIBRARY".$SOVERSION
 
4119
          ;;
 
4120
    hp*|HP*)
 
4121
          case `uname -m` in
 
4122
                ia64)
 
4123
                        LDLIBRARY='libpython$(VERSION).so'
 
4124
                        ;;
 
4125
                *)
 
4126
                        LDLIBRARY='libpython$(VERSION).sl'
 
4127
                        ;;
 
4128
          esac
 
4129
          BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
 
4130
          RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
 
4131
          ;;
 
4132
    OSF*)
 
4133
          LDLIBRARY='libpython$(VERSION).so'
 
4134
          BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
 
4135
          RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
 
4136
          ;;
 
4137
    atheos*)
 
4138
          LDLIBRARY='libpython$(VERSION).so'
 
4139
          BLDLIBRARY='-L. -lpython$(VERSION)'
 
4140
          RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
 
4141
          ;;
 
4142
  esac
 
4143
else # shared is disabled
 
4144
  case $ac_sys_system in
 
4145
    CYGWIN*)
 
4146
          BLDLIBRARY='$(LIBRARY)'
 
4147
          LDLIBRARY='libpython$(VERSION).dll.a'
 
4148
          ;;
 
4149
  esac
 
4150
fi
 
4151
 
 
4152
{ echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
 
4153
echo "${ECHO_T}$LDLIBRARY" >&6; }
 
4154
 
 
4155
if test -n "$ac_tool_prefix"; then
 
4156
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4157
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4158
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4159
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4160
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4162
else
 
4163
  if test -n "$RANLIB"; then
 
4164
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4165
else
 
4166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4167
for as_dir in $PATH
 
4168
do
 
4169
  IFS=$as_save_IFS
 
4170
  test -z "$as_dir" && as_dir=.
 
4171
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4172
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4173
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4174
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4175
    break 2
 
4176
  fi
 
4177
done
 
4178
done
 
4179
IFS=$as_save_IFS
 
4180
 
 
4181
fi
 
4182
fi
 
4183
RANLIB=$ac_cv_prog_RANLIB
 
4184
if test -n "$RANLIB"; then
 
4185
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4186
echo "${ECHO_T}$RANLIB" >&6; }
 
4187
else
 
4188
  { echo "$as_me:$LINENO: result: no" >&5
 
4189
echo "${ECHO_T}no" >&6; }
 
4190
fi
 
4191
 
 
4192
 
 
4193
fi
 
4194
if test -z "$ac_cv_prog_RANLIB"; then
 
4195
  ac_ct_RANLIB=$RANLIB
 
4196
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4197
set dummy ranlib; ac_word=$2
 
4198
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4199
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4200
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4202
else
 
4203
  if test -n "$ac_ct_RANLIB"; then
 
4204
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4205
else
 
4206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4207
for as_dir in $PATH
 
4208
do
 
4209
  IFS=$as_save_IFS
 
4210
  test -z "$as_dir" && as_dir=.
 
4211
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4212
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4213
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4214
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4215
    break 2
 
4216
  fi
 
4217
done
 
4218
done
 
4219
IFS=$as_save_IFS
 
4220
 
 
4221
fi
 
4222
fi
 
4223
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4224
if test -n "$ac_ct_RANLIB"; then
 
4225
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4226
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
4227
else
 
4228
  { echo "$as_me:$LINENO: result: no" >&5
 
4229
echo "${ECHO_T}no" >&6; }
 
4230
fi
 
4231
 
 
4232
  if test "x$ac_ct_RANLIB" = x; then
 
4233
    RANLIB=":"
 
4234
  else
 
4235
    case $cross_compiling:$ac_tool_warned in
 
4236
yes:)
 
4237
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4238
whose name does not start with the host triplet.  If you think this
 
4239
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4240
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4241
whose name does not start with the host triplet.  If you think this
 
4242
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4243
ac_tool_warned=yes ;;
 
4244
esac
 
4245
    RANLIB=$ac_ct_RANLIB
 
4246
  fi
 
4247
else
 
4248
  RANLIB="$ac_cv_prog_RANLIB"
 
4249
fi
 
4250
 
 
4251
 
 
4252
for ac_prog in ar aal
 
4253
do
 
4254
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4255
set dummy $ac_prog; ac_word=$2
 
4256
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4257
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4258
if test "${ac_cv_prog_AR+set}" = set; then
 
4259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4260
else
 
4261
  if test -n "$AR"; then
 
4262
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
4263
else
 
4264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4265
for as_dir in $PATH
 
4266
do
 
4267
  IFS=$as_save_IFS
 
4268
  test -z "$as_dir" && as_dir=.
 
4269
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4270
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4271
    ac_cv_prog_AR="$ac_prog"
 
4272
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4273
    break 2
 
4274
  fi
 
4275
done
 
4276
done
 
4277
IFS=$as_save_IFS
 
4278
 
 
4279
fi
 
4280
fi
 
4281
AR=$ac_cv_prog_AR
 
4282
if test -n "$AR"; then
 
4283
  { echo "$as_me:$LINENO: result: $AR" >&5
 
4284
echo "${ECHO_T}$AR" >&6; }
 
4285
else
 
4286
  { echo "$as_me:$LINENO: result: no" >&5
 
4287
echo "${ECHO_T}no" >&6; }
 
4288
fi
 
4289
 
 
4290
 
 
4291
  test -n "$AR" && break
 
4292
done
 
4293
test -n "$AR" || AR="ar"
 
4294
 
 
4295
 
 
4296
 
 
4297
# Extract the first word of "svnversion", so it can be a program name with args.
 
4298
set dummy svnversion; ac_word=$2
 
4299
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4300
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4301
if test "${ac_cv_prog_SVNVERSION+set}" = set; then
 
4302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4303
else
 
4304
  if test -n "$SVNVERSION"; then
 
4305
  ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
 
4306
else
 
4307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4308
for as_dir in $PATH
 
4309
do
 
4310
  IFS=$as_save_IFS
 
4311
  test -z "$as_dir" && as_dir=.
 
4312
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4313
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4314
    ac_cv_prog_SVNVERSION="found"
 
4315
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4316
    break 2
 
4317
  fi
 
4318
done
 
4319
done
 
4320
IFS=$as_save_IFS
 
4321
 
 
4322
  test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
 
4323
fi
 
4324
fi
 
4325
SVNVERSION=$ac_cv_prog_SVNVERSION
 
4326
if test -n "$SVNVERSION"; then
 
4327
  { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
 
4328
echo "${ECHO_T}$SVNVERSION" >&6; }
 
4329
else
 
4330
  { echo "$as_me:$LINENO: result: no" >&5
 
4331
echo "${ECHO_T}no" >&6; }
 
4332
fi
 
4333
 
 
4334
 
 
4335
if test $SVNVERSION = found
 
4336
then
 
4337
        SVNVERSION="svnversion \$(srcdir)"
 
4338
else
 
4339
        SVNVERSION="echo exported"
 
4340
fi
 
4341
 
 
4342
case $MACHDEP in
 
4343
bsdos*|hp*|HP*)
 
4344
        # install -d does not work on BSDI or HP-UX
 
4345
        if test -z "$INSTALL"
 
4346
        then
 
4347
                INSTALL="${srcdir}/install-sh -c"
 
4348
        fi
 
4349
esac
 
4350
ac_aux_dir=
 
4351
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
4352
  if test -f "$ac_dir/install-sh"; then
 
4353
    ac_aux_dir=$ac_dir
 
4354
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
4355
    break
 
4356
  elif test -f "$ac_dir/install.sh"; then
 
4357
    ac_aux_dir=$ac_dir
 
4358
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
4359
    break
 
4360
  elif test -f "$ac_dir/shtool"; then
 
4361
    ac_aux_dir=$ac_dir
 
4362
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
4363
    break
 
4364
  fi
 
4365
done
 
4366
if test -z "$ac_aux_dir"; then
 
4367
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
4368
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
4369
   { (exit 1); exit 1; }; }
 
4370
fi
 
4371
 
 
4372
# These three variables are undocumented and unsupported,
 
4373
# and are intended to be withdrawn in a future Autoconf release.
 
4374
# They can cause serious problems if a builder's source tree is in a directory
 
4375
# whose full name contains unusual characters.
 
4376
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
4377
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
4378
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
4379
 
 
4380
 
 
4381
# Find a good install program.  We prefer a C program (faster),
 
4382
# so one script is as good as another.  But avoid the broken or
 
4383
# incompatible versions:
 
4384
# SysV /etc/install, /usr/sbin/install
 
4385
# SunOS /usr/etc/install
 
4386
# IRIX /sbin/install
 
4387
# AIX /bin/install
 
4388
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
4389
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
4390
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
4391
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
4392
# OS/2's system install, which has a completely different semantic
 
4393
# ./install, which can be erroneously created by make from ./install.sh.
 
4394
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
4395
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
4396
if test -z "$INSTALL"; then
 
4397
if test "${ac_cv_path_install+set}" = set; then
 
4398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4399
else
 
4400
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4401
for as_dir in $PATH
 
4402
do
 
4403
  IFS=$as_save_IFS
 
4404
  test -z "$as_dir" && as_dir=.
 
4405
  # Account for people who put trailing slashes in PATH elements.
 
4406
case $as_dir/ in
 
4407
  ./ | .// | /cC/* | \
 
4408
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
4409
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
4410
  /usr/ucb/* ) ;;
 
4411
  *)
 
4412
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
4413
    # Don't use installbsd from OSF since it installs stuff as root
 
4414
    # by default.
 
4415
    for ac_prog in ginstall scoinst install; do
 
4416
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4417
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
4418
          if test $ac_prog = install &&
 
4419
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4420
            # AIX install.  It has an incompatible calling convention.
 
4421
            :
 
4422
          elif test $ac_prog = install &&
 
4423
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4424
            # program-specific install script used by HP pwplus--don't use.
 
4425
            :
 
4426
          else
 
4427
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4428
            break 3
 
4429
          fi
 
4430
        fi
 
4431
      done
 
4432
    done
 
4433
    ;;
 
4434
esac
 
4435
done
 
4436
IFS=$as_save_IFS
 
4437
 
 
4438
 
 
4439
fi
 
4440
  if test "${ac_cv_path_install+set}" = set; then
 
4441
    INSTALL=$ac_cv_path_install
 
4442
  else
 
4443
    # As a last resort, use the slow shell script.  Don't cache a
 
4444
    # value for INSTALL within a source directory, because that will
 
4445
    # break other packages using the cache if that directory is
 
4446
    # removed, or if the value is a relative name.
 
4447
    INSTALL=$ac_install_sh
 
4448
  fi
 
4449
fi
 
4450
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
4451
echo "${ECHO_T}$INSTALL" >&6; }
 
4452
 
 
4453
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
4454
# It thinks the first close brace ends the variable substitution.
 
4455
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
4456
 
 
4457
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
4458
 
 
4459
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
4460
 
 
4461
 
 
4462
# Not every filesystem supports hard links
 
4463
 
 
4464
if test -z "$LN" ; then
 
4465
        case $ac_sys_system in
 
4466
                BeOS*) LN="ln -s";;
 
4467
                CYGWIN*) LN="ln -s";;
 
4468
                atheos*) LN="ln -s";;
 
4469
                *) LN=ln;;
 
4470
        esac
 
4471
fi
 
4472
 
 
4473
# Check for --with-pydebug
 
4474
{ echo "$as_me:$LINENO: checking for --with-pydebug" >&5
 
4475
echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
 
4476
 
 
4477
# Check whether --with-pydebug was given.
 
4478
if test "${with_pydebug+set}" = set; then
 
4479
  withval=$with_pydebug;
 
4480
if test "$withval" != no
 
4481
then
 
4482
 
 
4483
cat >>confdefs.h <<\_ACEOF
 
4484
#define Py_DEBUG 1
 
4485
_ACEOF
 
4486
 
 
4487
  { echo "$as_me:$LINENO: result: yes" >&5
 
4488
echo "${ECHO_T}yes" >&6; };
 
4489
  Py_DEBUG='true'
 
4490
else { echo "$as_me:$LINENO: result: no" >&5
 
4491
echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
 
4492
fi
 
4493
else
 
4494
  { echo "$as_me:$LINENO: result: no" >&5
 
4495
echo "${ECHO_T}no" >&6; }
 
4496
fi
 
4497
 
 
4498
 
 
4499
# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
 
4500
# merged with this chunk of code?
 
4501
 
 
4502
# Optimizer/debugger flags
 
4503
# ------------------------
 
4504
# (The following bit of code is complicated enough - please keep things
 
4505
# indented properly.  Just pretend you're editing Python code. ;-)
 
4506
 
 
4507
# There are two parallel sets of case statements below, one that checks to
 
4508
# see if OPT was set and one that does BASECFLAGS setting based upon
 
4509
# compiler and platform.  BASECFLAGS tweaks need to be made even if the
 
4510
# user set OPT.
 
4511
 
 
4512
# tweak OPT based on compiler and platform, only if the user didn't set
 
4513
# it on the command line
 
4514
 
 
4515
if test -z "$OPT"
 
4516
then
 
4517
    case $GCC in
 
4518
    yes)
 
4519
        if test "$CC" != 'g++' ; then
 
4520
            STRICT_PROTO="-Wstrict-prototypes"
 
4521
        fi
 
4522
        # For gcc 4.x we need to use -fwrapv so lets check if its supported
 
4523
        if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
 
4524
           WRAP="-fwrapv"
 
4525
        fi
 
4526
        case $ac_cv_prog_cc_g in
 
4527
        yes)
 
4528
            if test "$Py_DEBUG" = 'true' ; then
 
4529
                # Optimization messes up debuggers, so turn it off for
 
4530
                # debug builds.
 
4531
                OPT="-g -Wall $STRICT_PROTO"
 
4532
            else
 
4533
                OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
 
4534
            fi
 
4535
            ;;
 
4536
        *)
 
4537
            OPT="-O3 -Wall $STRICT_PROTO"
 
4538
            ;;
 
4539
        esac
 
4540
        case $ac_sys_system in
 
4541
            SCO_SV*) OPT="$OPT -m486 -DSCO5"
 
4542
            ;;
 
4543
        esac
 
4544
        ;;
 
4545
 
 
4546
    *)
 
4547
        OPT="-O"
 
4548
        ;;
 
4549
    esac
 
4550
 
 
4551
    # The current (beta) Monterey compiler dies with optimizations
 
4552
    # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
 
4553
    case $ac_sys_system in
 
4554
        Monterey*)
 
4555
            OPT=""
 
4556
            ;;
 
4557
    esac
 
4558
 
 
4559
fi
 
4560
 
 
4561
 
 
4562
 
 
4563
# The -arch flags for universal builds on OSX
 
4564
UNIVERSAL_ARCH_FLAGS=
 
4565
 
 
4566
 
 
4567
# tweak BASECFLAGS based on compiler and platform
 
4568
case $GCC in
 
4569
yes)
 
4570
    # Python violates C99 rules, by casting between incompatible
 
4571
    # pointer types. GCC may generate bad code as a result of that,
 
4572
    # so use -fno-strict-aliasing if supported.
 
4573
    { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
 
4574
echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
 
4575
     ac_save_cc="$CC"
 
4576
     CC="$CC -fno-strict-aliasing"
 
4577
     if test "$cross_compiling" = yes; then
 
4578
  ac_cv_no_strict_aliasing_ok=no
 
4579
else
 
4580
  cat >conftest.$ac_ext <<_ACEOF
 
4581
/* confdefs.h.  */
 
4582
_ACEOF
 
4583
cat confdefs.h >>conftest.$ac_ext
 
4584
cat >>conftest.$ac_ext <<_ACEOF
 
4585
/* end confdefs.h.  */
 
4586
int main() { return 0; }
 
4587
_ACEOF
 
4588
rm -f conftest$ac_exeext
 
4589
if { (ac_try="$ac_link"
 
4590
case "(($ac_try" in
 
4591
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4592
  *) ac_try_echo=$ac_try;;
 
4593
esac
 
4594
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4595
  (eval "$ac_link") 2>&5
 
4596
  ac_status=$?
 
4597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4598
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4599
  { (case "(($ac_try" in
 
4600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4601
  *) ac_try_echo=$ac_try;;
 
4602
esac
 
4603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4604
  (eval "$ac_try") 2>&5
 
4605
  ac_status=$?
 
4606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4607
  (exit $ac_status); }; }; then
 
4608
  ac_cv_no_strict_aliasing_ok=yes
 
4609
else
 
4610
  echo "$as_me: program exited with status $ac_status" >&5
 
4611
echo "$as_me: failed program was:" >&5
 
4612
sed 's/^/| /' conftest.$ac_ext >&5
 
4613
 
 
4614
( exit $ac_status )
 
4615
ac_cv_no_strict_aliasing_ok=no
 
4616
fi
 
4617
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4618
fi
 
4619
 
 
4620
 
 
4621
     CC="$ac_save_cc"
 
4622
    { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
 
4623
echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
 
4624
    if test $ac_cv_no_strict_aliasing_ok = yes
 
4625
    then
 
4626
      BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
 
4627
    fi
 
4628
 
 
4629
    # if using gcc on alpha, use -mieee to get (near) full IEEE 754
 
4630
    # support.  Without this, treatment of subnormals doesn't follow
 
4631
    # the standard.
 
4632
    case $ac_sys_machine in
 
4633
         alpha*)
 
4634
                BASECFLAGS="$BASECFLAGS -mieee"
 
4635
                ;;
 
4636
    esac
 
4637
 
 
4638
    case $ac_sys_system in
 
4639
        SCO_SV*)
 
4640
            BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
 
4641
            ;;
 
4642
        # is there any other compiler on Darwin besides gcc?
 
4643
        Darwin*)
 
4644
            # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
 
4645
            # used to be here, but non-Apple gcc doesn't accept them.
 
4646
 
 
4647
 
 
4648
            if test "${enable_universalsdk}"; then
 
4649
                UNIVERSAL_ARCH_FLAGS=""
 
4650
                if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
 
4651
                   UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
 
4652
                   ARCH_RUN_32BIT=""
 
4653
 
 
4654
                 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
 
4655
                   UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
 
4656
 
 
4657
                 elif test "$UNIVERSAL_ARCHS" = "all" ; then
 
4658
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
 
4659
                   ARCH_RUN_32BIT="arch -i386 -ppc"
 
4660
 
 
4661
                 else
 
4662
                   { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
 
4663
echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
 
4664
   { (exit 1); exit 1; }; }
 
4665
 
 
4666
                 fi
 
4667
 
 
4668
 
 
4669
                BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
 
4670
                tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
 
4671
                if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
 
4672
                        CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
 
4673
                fi
 
4674
            fi
 
4675
 
 
4676
            # Calculate the right deployment target for this build.
 
4677
            #
 
4678
            cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
 
4679
            if test ${cur_target} '>' 10.2; then
 
4680
                    cur_target=10.3
 
4681
            fi
 
4682
            if test "${UNIVERSAL_ARCHS}" = "all"; then
 
4683
                    # Ensure that the default platform for a 4-way
 
4684
                    # universal build is OSX 10.5, that's the first
 
4685
                    # OS release where 4-way builds make sense.
 
4686
                    cur_target='10.5'
 
4687
            fi
 
4688
            CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
 
4689
 
 
4690
            # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
 
4691
            # environment with a value that is the same as what we'll use
 
4692
            # in the Makefile to ensure that we'll get the same compiler
 
4693
            # environment during configure and build time.
 
4694
            MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
 
4695
            export MACOSX_DEPLOYMENT_TARGET
 
4696
            EXPORT_MACOSX_DEPLOYMENT_TARGET=''
 
4697
 
 
4698
            ;;
 
4699
        OSF*)
 
4700
            BASECFLAGS="$BASECFLAGS -mieee"
 
4701
            ;;
 
4702
    esac
 
4703
    ;;
 
4704
 
 
4705
*)
 
4706
    case $ac_sys_system in
 
4707
    OpenUNIX*|UnixWare*)
 
4708
        BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
 
4709
        ;;
 
4710
    OSF*)
 
4711
        BASECFLAGS="$BASECFLAGS -ieee -std"
 
4712
        ;;
 
4713
    SCO_SV*)
 
4714
        BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
 
4715
        ;;
 
4716
    esac
 
4717
    ;;
 
4718
esac
 
4719
 
 
4720
if test "$Py_DEBUG" = 'true'; then
 
4721
  :
 
4722
else
 
4723
  OPT="-DNDEBUG $OPT"
 
4724
fi
 
4725
 
 
4726
if test "$ac_arch_flags"
 
4727
then
 
4728
        BASECFLAGS="$BASECFLAGS $ac_arch_flags"
 
4729
fi
 
4730
 
 
4731
# disable check for icc since it seems to pass, but generates a warning
 
4732
if test "$CC" = icc
 
4733
then
 
4734
  ac_cv_opt_olimit_ok=no
 
4735
fi
 
4736
 
 
4737
{ echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
 
4738
echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
 
4739
if test "${ac_cv_opt_olimit_ok+set}" = set; then
 
4740
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4741
else
 
4742
  ac_save_cc="$CC"
 
4743
CC="$CC -OPT:Olimit=0"
 
4744
if test "$cross_compiling" = yes; then
 
4745
  ac_cv_opt_olimit_ok=no
 
4746
else
 
4747
  cat >conftest.$ac_ext <<_ACEOF
 
4748
/* confdefs.h.  */
 
4749
_ACEOF
 
4750
cat confdefs.h >>conftest.$ac_ext
 
4751
cat >>conftest.$ac_ext <<_ACEOF
 
4752
/* end confdefs.h.  */
 
4753
int main() { return 0; }
 
4754
_ACEOF
 
4755
rm -f conftest$ac_exeext
 
4756
if { (ac_try="$ac_link"
 
4757
case "(($ac_try" in
 
4758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4759
  *) ac_try_echo=$ac_try;;
 
4760
esac
 
4761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4762
  (eval "$ac_link") 2>&5
 
4763
  ac_status=$?
 
4764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4765
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4766
  { (case "(($ac_try" in
 
4767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4768
  *) ac_try_echo=$ac_try;;
 
4769
esac
 
4770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4771
  (eval "$ac_try") 2>&5
 
4772
  ac_status=$?
 
4773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4774
  (exit $ac_status); }; }; then
 
4775
  ac_cv_opt_olimit_ok=yes
 
4776
else
 
4777
  echo "$as_me: program exited with status $ac_status" >&5
 
4778
echo "$as_me: failed program was:" >&5
 
4779
sed 's/^/| /' conftest.$ac_ext >&5
 
4780
 
 
4781
( exit $ac_status )
 
4782
ac_cv_opt_olimit_ok=no
 
4783
fi
 
4784
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4785
fi
 
4786
 
 
4787
 
 
4788
CC="$ac_save_cc"
 
4789
fi
 
4790
 
 
4791
{ echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
 
4792
echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
 
4793
if test $ac_cv_opt_olimit_ok = yes; then
 
4794
    case $ac_sys_system in
 
4795
        # XXX is this branch needed? On MacOSX 10.2.2 the result of the
 
4796
        # olimit_ok test is "no".  Is it "yes" in some other Darwin-esque
 
4797
        # environment?
 
4798
        Darwin*)
 
4799
            ;;
 
4800
        *)
 
4801
            BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
 
4802
            ;;
 
4803
    esac
 
4804
else
 
4805
  { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
 
4806
echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
 
4807
  if test "${ac_cv_olimit_ok+set}" = set; then
 
4808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4809
else
 
4810
  ac_save_cc="$CC"
 
4811
  CC="$CC -Olimit 1500"
 
4812
  if test "$cross_compiling" = yes; then
 
4813
  ac_cv_olimit_ok=no
 
4814
else
 
4815
  cat >conftest.$ac_ext <<_ACEOF
 
4816
/* confdefs.h.  */
 
4817
_ACEOF
 
4818
cat confdefs.h >>conftest.$ac_ext
 
4819
cat >>conftest.$ac_ext <<_ACEOF
 
4820
/* end confdefs.h.  */
 
4821
int main() { return 0; }
 
4822
_ACEOF
 
4823
rm -f conftest$ac_exeext
 
4824
if { (ac_try="$ac_link"
 
4825
case "(($ac_try" in
 
4826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4827
  *) ac_try_echo=$ac_try;;
 
4828
esac
 
4829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4830
  (eval "$ac_link") 2>&5
 
4831
  ac_status=$?
 
4832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4833
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4834
  { (case "(($ac_try" in
 
4835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4836
  *) ac_try_echo=$ac_try;;
 
4837
esac
 
4838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4839
  (eval "$ac_try") 2>&5
 
4840
  ac_status=$?
 
4841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4842
  (exit $ac_status); }; }; then
 
4843
  ac_cv_olimit_ok=yes
 
4844
else
 
4845
  echo "$as_me: program exited with status $ac_status" >&5
 
4846
echo "$as_me: failed program was:" >&5
 
4847
sed 's/^/| /' conftest.$ac_ext >&5
 
4848
 
 
4849
( exit $ac_status )
 
4850
ac_cv_olimit_ok=no
 
4851
fi
 
4852
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4853
fi
 
4854
 
 
4855
 
 
4856
  CC="$ac_save_cc"
 
4857
fi
 
4858
 
 
4859
  { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
 
4860
echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
 
4861
  if test $ac_cv_olimit_ok = yes; then
 
4862
    BASECFLAGS="$BASECFLAGS -Olimit 1500"
 
4863
  fi
 
4864
fi
 
4865
 
 
4866
# Check whether GCC supports PyArg_ParseTuple format
 
4867
if test "$GCC" = "yes"
 
4868
then
 
4869
  { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
 
4870
echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
 
4871
  save_CFLAGS=$CFLAGS
 
4872
  CFLAGS="$CFLAGS -Werror"
 
4873
  cat >conftest.$ac_ext <<_ACEOF
 
4874
/* confdefs.h.  */
 
4875
_ACEOF
 
4876
cat confdefs.h >>conftest.$ac_ext
 
4877
cat >>conftest.$ac_ext <<_ACEOF
 
4878
/* end confdefs.h.  */
 
4879
 
 
4880
    void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
 
4881
 
 
4882
int
 
4883
main ()
 
4884
{
 
4885
 
 
4886
  ;
 
4887
  return 0;
 
4888
}
 
4889
_ACEOF
 
4890
rm -f conftest.$ac_objext
 
4891
if { (ac_try="$ac_compile"
 
4892
case "(($ac_try" in
 
4893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4894
  *) ac_try_echo=$ac_try;;
 
4895
esac
 
4896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4897
  (eval "$ac_compile") 2>conftest.er1
 
4898
  ac_status=$?
 
4899
  grep -v '^ *+' conftest.er1 >conftest.err
 
4900
  rm -f conftest.er1
 
4901
  cat conftest.err >&5
 
4902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4903
  (exit $ac_status); } && {
 
4904
         test -z "$ac_c_werror_flag" ||
 
4905
         test ! -s conftest.err
 
4906
       } && test -s conftest.$ac_objext; then
 
4907
 
 
4908
cat >>confdefs.h <<\_ACEOF
 
4909
#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
 
4910
_ACEOF
 
4911
 
 
4912
  { echo "$as_me:$LINENO: result: yes" >&5
 
4913
echo "${ECHO_T}yes" >&6; }
 
4914
else
 
4915
  echo "$as_me: failed program was:" >&5
 
4916
sed 's/^/| /' conftest.$ac_ext >&5
 
4917
 
 
4918
        { echo "$as_me:$LINENO: result: no" >&5
 
4919
echo "${ECHO_T}no" >&6; }
 
4920
 
 
4921
fi
 
4922
 
 
4923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4924
  CFLAGS=$save_CFLAGS
 
4925
fi
 
4926
 
 
4927
# On some compilers, pthreads are available without further options
 
4928
# (e.g. MacOS X). On some of these systems, the compiler will not
 
4929
# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
 
4930
# So we have to see first whether pthreads are available without
 
4931
# options before we can check whether -Kpthread improves anything.
 
4932
{ echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
 
4933
echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
 
4934
if test "${ac_cv_pthread_is_default+set}" = set; then
 
4935
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4936
else
 
4937
  if test "$cross_compiling" = yes; then
 
4938
  ac_cv_pthread_is_default=no
 
4939
else
 
4940
  cat >conftest.$ac_ext <<_ACEOF
 
4941
/* confdefs.h.  */
 
4942
_ACEOF
 
4943
cat confdefs.h >>conftest.$ac_ext
 
4944
cat >>conftest.$ac_ext <<_ACEOF
 
4945
/* end confdefs.h.  */
 
4946
 
 
4947
#include <pthread.h>
 
4948
 
 
4949
void* routine(void* p){return NULL;}
 
4950
 
 
4951
int main(){
 
4952
  pthread_t p;
 
4953
  if(pthread_create(&p,NULL,routine,NULL)!=0)
 
4954
    return 1;
 
4955
  (void)pthread_detach(p);
 
4956
  return 0;
 
4957
}
 
4958
 
 
4959
_ACEOF
 
4960
rm -f conftest$ac_exeext
 
4961
if { (ac_try="$ac_link"
 
4962
case "(($ac_try" in
 
4963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4964
  *) ac_try_echo=$ac_try;;
 
4965
esac
 
4966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4967
  (eval "$ac_link") 2>&5
 
4968
  ac_status=$?
 
4969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4970
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4971
  { (case "(($ac_try" in
 
4972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4973
  *) ac_try_echo=$ac_try;;
 
4974
esac
 
4975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4976
  (eval "$ac_try") 2>&5
 
4977
  ac_status=$?
 
4978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4979
  (exit $ac_status); }; }; then
 
4980
 
 
4981
  ac_cv_pthread_is_default=yes
 
4982
  ac_cv_kthread=no
 
4983
  ac_cv_pthread=no
 
4984
 
 
4985
else
 
4986
  echo "$as_me: program exited with status $ac_status" >&5
 
4987
echo "$as_me: failed program was:" >&5
 
4988
sed 's/^/| /' conftest.$ac_ext >&5
 
4989
 
 
4990
( exit $ac_status )
 
4991
ac_cv_pthread_is_default=no
 
4992
fi
 
4993
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4994
fi
 
4995
 
 
4996
 
 
4997
 
 
4998
fi
 
4999
 
 
5000
{ echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
 
5001
echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
 
5002
 
 
5003
 
 
5004
if test $ac_cv_pthread_is_default = yes
 
5005
then
 
5006
  ac_cv_kpthread=no
 
5007
else
 
5008
# -Kpthread, if available, provides the right #defines
 
5009
# and linker options to make pthread_create available
 
5010
# Some compilers won't report that they do not support -Kpthread,
 
5011
# so we need to run a program to see whether it really made the
 
5012
# function available.
 
5013
{ echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
 
5014
echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
 
5015
if test "${ac_cv_kpthread+set}" = set; then
 
5016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5017
else
 
5018
  ac_save_cc="$CC"
 
5019
CC="$CC -Kpthread"
 
5020
if test "$cross_compiling" = yes; then
 
5021
  ac_cv_kpthread=no
 
5022
else
 
5023
  cat >conftest.$ac_ext <<_ACEOF
 
5024
/* confdefs.h.  */
 
5025
_ACEOF
 
5026
cat confdefs.h >>conftest.$ac_ext
 
5027
cat >>conftest.$ac_ext <<_ACEOF
 
5028
/* end confdefs.h.  */
 
5029
 
 
5030
#include <pthread.h>
 
5031
 
 
5032
void* routine(void* p){return NULL;}
 
5033
 
 
5034
int main(){
 
5035
  pthread_t p;
 
5036
  if(pthread_create(&p,NULL,routine,NULL)!=0)
 
5037
    return 1;
 
5038
  (void)pthread_detach(p);
 
5039
  return 0;
 
5040
}
 
5041
 
 
5042
_ACEOF
 
5043
rm -f conftest$ac_exeext
 
5044
if { (ac_try="$ac_link"
 
5045
case "(($ac_try" in
 
5046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5047
  *) ac_try_echo=$ac_try;;
 
5048
esac
 
5049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5050
  (eval "$ac_link") 2>&5
 
5051
  ac_status=$?
 
5052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5053
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5054
  { (case "(($ac_try" in
 
5055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5056
  *) ac_try_echo=$ac_try;;
 
5057
esac
 
5058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5059
  (eval "$ac_try") 2>&5
 
5060
  ac_status=$?
 
5061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5062
  (exit $ac_status); }; }; then
 
5063
  ac_cv_kpthread=yes
 
5064
else
 
5065
  echo "$as_me: program exited with status $ac_status" >&5
 
5066
echo "$as_me: failed program was:" >&5
 
5067
sed 's/^/| /' conftest.$ac_ext >&5
 
5068
 
 
5069
( exit $ac_status )
 
5070
ac_cv_kpthread=no
 
5071
fi
 
5072
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5073
fi
 
5074
 
 
5075
 
 
5076
CC="$ac_save_cc"
 
5077
fi
 
5078
 
 
5079
{ echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
 
5080
echo "${ECHO_T}$ac_cv_kpthread" >&6; }
 
5081
fi
 
5082
 
 
5083
if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
 
5084
then
 
5085
# -Kthread, if available, provides the right #defines
 
5086
# and linker options to make pthread_create available
 
5087
# Some compilers won't report that they do not support -Kthread,
 
5088
# so we need to run a program to see whether it really made the
 
5089
# function available.
 
5090
{ echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
 
5091
echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
 
5092
if test "${ac_cv_kthread+set}" = set; then
 
5093
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5094
else
 
5095
  ac_save_cc="$CC"
 
5096
CC="$CC -Kthread"
 
5097
if test "$cross_compiling" = yes; then
 
5098
  ac_cv_kthread=no
 
5099
else
 
5100
  cat >conftest.$ac_ext <<_ACEOF
 
5101
/* confdefs.h.  */
 
5102
_ACEOF
 
5103
cat confdefs.h >>conftest.$ac_ext
 
5104
cat >>conftest.$ac_ext <<_ACEOF
 
5105
/* end confdefs.h.  */
 
5106
 
 
5107
#include <pthread.h>
 
5108
 
 
5109
void* routine(void* p){return NULL;}
 
5110
 
 
5111
int main(){
 
5112
  pthread_t p;
 
5113
  if(pthread_create(&p,NULL,routine,NULL)!=0)
 
5114
    return 1;
 
5115
  (void)pthread_detach(p);
 
5116
  return 0;
 
5117
}
 
5118
 
 
5119
_ACEOF
 
5120
rm -f conftest$ac_exeext
 
5121
if { (ac_try="$ac_link"
 
5122
case "(($ac_try" in
 
5123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5124
  *) ac_try_echo=$ac_try;;
 
5125
esac
 
5126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5127
  (eval "$ac_link") 2>&5
 
5128
  ac_status=$?
 
5129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5130
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5131
  { (case "(($ac_try" in
 
5132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5133
  *) ac_try_echo=$ac_try;;
 
5134
esac
 
5135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5136
  (eval "$ac_try") 2>&5
 
5137
  ac_status=$?
 
5138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5139
  (exit $ac_status); }; }; then
 
5140
  ac_cv_kthread=yes
 
5141
else
 
5142
  echo "$as_me: program exited with status $ac_status" >&5
 
5143
echo "$as_me: failed program was:" >&5
 
5144
sed 's/^/| /' conftest.$ac_ext >&5
 
5145
 
 
5146
( exit $ac_status )
 
5147
ac_cv_kthread=no
 
5148
fi
 
5149
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5150
fi
 
5151
 
 
5152
 
 
5153
CC="$ac_save_cc"
 
5154
fi
 
5155
 
 
5156
{ echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
 
5157
echo "${ECHO_T}$ac_cv_kthread" >&6; }
 
5158
fi
 
5159
 
 
5160
if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
 
5161
then
 
5162
# -pthread, if available, provides the right #defines
 
5163
# and linker options to make pthread_create available
 
5164
# Some compilers won't report that they do not support -pthread,
 
5165
# so we need to run a program to see whether it really made the
 
5166
# function available.
 
5167
{ echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
 
5168
echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
 
5169
if test "${ac_cv_thread+set}" = set; then
 
5170
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5171
else
 
5172
  ac_save_cc="$CC"
 
5173
CC="$CC -pthread"
 
5174
if test "$cross_compiling" = yes; then
 
5175
  ac_cv_pthread=no
 
5176
else
 
5177
  cat >conftest.$ac_ext <<_ACEOF
 
5178
/* confdefs.h.  */
 
5179
_ACEOF
 
5180
cat confdefs.h >>conftest.$ac_ext
 
5181
cat >>conftest.$ac_ext <<_ACEOF
 
5182
/* end confdefs.h.  */
 
5183
 
 
5184
#include <pthread.h>
 
5185
 
 
5186
void* routine(void* p){return NULL;}
 
5187
 
 
5188
int main(){
 
5189
  pthread_t p;
 
5190
  if(pthread_create(&p,NULL,routine,NULL)!=0)
 
5191
    return 1;
 
5192
  (void)pthread_detach(p);
 
5193
  return 0;
 
5194
}
 
5195
 
 
5196
_ACEOF
 
5197
rm -f conftest$ac_exeext
 
5198
if { (ac_try="$ac_link"
 
5199
case "(($ac_try" in
 
5200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5201
  *) ac_try_echo=$ac_try;;
 
5202
esac
 
5203
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5204
  (eval "$ac_link") 2>&5
 
5205
  ac_status=$?
 
5206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5207
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5208
  { (case "(($ac_try" in
 
5209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5210
  *) ac_try_echo=$ac_try;;
 
5211
esac
 
5212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5213
  (eval "$ac_try") 2>&5
 
5214
  ac_status=$?
 
5215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5216
  (exit $ac_status); }; }; then
 
5217
  ac_cv_pthread=yes
 
5218
else
 
5219
  echo "$as_me: program exited with status $ac_status" >&5
 
5220
echo "$as_me: failed program was:" >&5
 
5221
sed 's/^/| /' conftest.$ac_ext >&5
 
5222
 
 
5223
( exit $ac_status )
 
5224
ac_cv_pthread=no
 
5225
fi
 
5226
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5227
fi
 
5228
 
 
5229
 
 
5230
CC="$ac_save_cc"
 
5231
fi
 
5232
 
 
5233
{ echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
 
5234
echo "${ECHO_T}$ac_cv_pthread" >&6; }
 
5235
fi
 
5236
 
 
5237
# If we have set a CC compiler flag for thread support then
 
5238
# check if it works for CXX, too.
 
5239
ac_cv_cxx_thread=no
 
5240
if test ! -z "$CXX"
 
5241
then
 
5242
{ echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
 
5243
echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
 
5244
ac_save_cxx="$CXX"
 
5245
 
 
5246
if test "$ac_cv_kpthread" = "yes"
 
5247
then
 
5248
  CXX="$CXX -Kpthread"
 
5249
  ac_cv_cxx_thread=yes
 
5250
elif test "$ac_cv_kthread" = "yes"
 
5251
then
 
5252
  CXX="$CXX -Kthread"
 
5253
  ac_cv_cxx_thread=yes
 
5254
elif test "$ac_cv_pthread" = "yes"
 
5255
then
 
5256
  CXX="$CXX -pthread"
 
5257
  ac_cv_cxx_thread=yes
 
5258
fi
 
5259
 
 
5260
if test $ac_cv_cxx_thread = yes
 
5261
then
 
5262
  echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
 
5263
  $CXX -c conftest.$ac_ext 2>&5
 
5264
  if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
 
5265
     && test -s conftest$ac_exeext && ./conftest$ac_exeext
 
5266
  then
 
5267
    ac_cv_cxx_thread=yes
 
5268
  else
 
5269
    ac_cv_cxx_thread=no
 
5270
  fi
 
5271
  rm -fr conftest*
 
5272
fi
 
5273
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
 
5274
echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
 
5275
fi
 
5276
CXX="$ac_save_cxx"
 
5277
 
 
5278
 
 
5279
# checks for header files
 
5280
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5281
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
5282
if test "${ac_cv_header_stdc+set}" = set; then
 
5283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5284
else
 
5285
  cat >conftest.$ac_ext <<_ACEOF
 
5286
/* confdefs.h.  */
 
5287
_ACEOF
 
5288
cat confdefs.h >>conftest.$ac_ext
 
5289
cat >>conftest.$ac_ext <<_ACEOF
 
5290
/* end confdefs.h.  */
 
5291
#include <stdlib.h>
 
5292
#include <stdarg.h>
 
5293
#include <string.h>
 
5294
#include <float.h>
 
5295
 
 
5296
int
 
5297
main ()
 
5298
{
 
5299
 
 
5300
  ;
 
5301
  return 0;
 
5302
}
 
5303
_ACEOF
 
5304
rm -f conftest.$ac_objext
 
5305
if { (ac_try="$ac_compile"
 
5306
case "(($ac_try" in
 
5307
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5308
  *) ac_try_echo=$ac_try;;
 
5309
esac
 
5310
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5311
  (eval "$ac_compile") 2>conftest.er1
 
5312
  ac_status=$?
 
5313
  grep -v '^ *+' conftest.er1 >conftest.err
 
5314
  rm -f conftest.er1
 
5315
  cat conftest.err >&5
 
5316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5317
  (exit $ac_status); } && {
 
5318
         test -z "$ac_c_werror_flag" ||
 
5319
         test ! -s conftest.err
 
5320
       } && test -s conftest.$ac_objext; then
 
5321
  ac_cv_header_stdc=yes
 
5322
else
 
5323
  echo "$as_me: failed program was:" >&5
 
5324
sed 's/^/| /' conftest.$ac_ext >&5
 
5325
 
 
5326
        ac_cv_header_stdc=no
 
5327
fi
 
5328
 
 
5329
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5330
 
 
5331
if test $ac_cv_header_stdc = yes; then
 
5332
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5333
  cat >conftest.$ac_ext <<_ACEOF
 
5334
/* confdefs.h.  */
 
5335
_ACEOF
 
5336
cat confdefs.h >>conftest.$ac_ext
 
5337
cat >>conftest.$ac_ext <<_ACEOF
 
5338
/* end confdefs.h.  */
 
5339
#include <string.h>
 
5340
 
 
5341
_ACEOF
 
5342
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5343
  $EGREP "memchr" >/dev/null 2>&1; then
 
5344
  :
 
5345
else
 
5346
  ac_cv_header_stdc=no
 
5347
fi
 
5348
rm -f conftest*
 
5349
 
 
5350
fi
 
5351
 
 
5352
if test $ac_cv_header_stdc = yes; then
 
5353
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5354
  cat >conftest.$ac_ext <<_ACEOF
 
5355
/* confdefs.h.  */
 
5356
_ACEOF
 
5357
cat confdefs.h >>conftest.$ac_ext
 
5358
cat >>conftest.$ac_ext <<_ACEOF
 
5359
/* end confdefs.h.  */
 
5360
#include <stdlib.h>
 
5361
 
 
5362
_ACEOF
 
5363
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5364
  $EGREP "free" >/dev/null 2>&1; then
 
5365
  :
 
5366
else
 
5367
  ac_cv_header_stdc=no
 
5368
fi
 
5369
rm -f conftest*
 
5370
 
 
5371
fi
 
5372
 
 
5373
if test $ac_cv_header_stdc = yes; then
 
5374
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5375
  if test "$cross_compiling" = yes; then
 
5376
  :
 
5377
else
 
5378
  cat >conftest.$ac_ext <<_ACEOF
 
5379
/* confdefs.h.  */
 
5380
_ACEOF
 
5381
cat confdefs.h >>conftest.$ac_ext
 
5382
cat >>conftest.$ac_ext <<_ACEOF
 
5383
/* end confdefs.h.  */
 
5384
#include <ctype.h>
 
5385
#include <stdlib.h>
 
5386
#if ((' ' & 0x0FF) == 0x020)
 
5387
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5388
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5389
#else
 
5390
# define ISLOWER(c) \
 
5391
                   (('a' <= (c) && (c) <= 'i') \
 
5392
                     || ('j' <= (c) && (c) <= 'r') \
 
5393
                     || ('s' <= (c) && (c) <= 'z'))
 
5394
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5395
#endif
 
5396
 
 
5397
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5398
int
 
5399
main ()
 
5400
{
 
5401
  int i;
 
5402
  for (i = 0; i < 256; i++)
 
5403
    if (XOR (islower (i), ISLOWER (i))
 
5404
        || toupper (i) != TOUPPER (i))
 
5405
      return 2;
 
5406
  return 0;
 
5407
}
 
5408
_ACEOF
 
5409
rm -f conftest$ac_exeext
 
5410
if { (ac_try="$ac_link"
 
5411
case "(($ac_try" in
 
5412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5413
  *) ac_try_echo=$ac_try;;
 
5414
esac
 
5415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5416
  (eval "$ac_link") 2>&5
 
5417
  ac_status=$?
 
5418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5419
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5420
  { (case "(($ac_try" in
 
5421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5422
  *) ac_try_echo=$ac_try;;
 
5423
esac
 
5424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5425
  (eval "$ac_try") 2>&5
 
5426
  ac_status=$?
 
5427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5428
  (exit $ac_status); }; }; then
 
5429
  :
 
5430
else
 
5431
  echo "$as_me: program exited with status $ac_status" >&5
 
5432
echo "$as_me: failed program was:" >&5
 
5433
sed 's/^/| /' conftest.$ac_ext >&5
 
5434
 
 
5435
( exit $ac_status )
 
5436
ac_cv_header_stdc=no
 
5437
fi
 
5438
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5439
fi
 
5440
 
 
5441
 
 
5442
fi
 
5443
fi
 
5444
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5445
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5446
if test $ac_cv_header_stdc = yes; then
 
5447
 
 
5448
cat >>confdefs.h <<\_ACEOF
 
5449
#define STDC_HEADERS 1
 
5450
_ACEOF
 
5451
 
 
5452
fi
 
5453
 
 
5454
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5455
 
 
5456
 
 
5457
 
 
5458
 
 
5459
 
 
5460
 
 
5461
 
 
5462
 
 
5463
 
 
5464
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5465
                  inttypes.h stdint.h unistd.h
 
5466
do
 
5467
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5468
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5469
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5470
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5472
else
 
5473
  cat >conftest.$ac_ext <<_ACEOF
 
5474
/* confdefs.h.  */
 
5475
_ACEOF
 
5476
cat confdefs.h >>conftest.$ac_ext
 
5477
cat >>conftest.$ac_ext <<_ACEOF
 
5478
/* end confdefs.h.  */
 
5479
$ac_includes_default
 
5480
 
 
5481
#include <$ac_header>
 
5482
_ACEOF
 
5483
rm -f conftest.$ac_objext
 
5484
if { (ac_try="$ac_compile"
 
5485
case "(($ac_try" in
 
5486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5487
  *) ac_try_echo=$ac_try;;
 
5488
esac
 
5489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5490
  (eval "$ac_compile") 2>conftest.er1
 
5491
  ac_status=$?
 
5492
  grep -v '^ *+' conftest.er1 >conftest.err
 
5493
  rm -f conftest.er1
 
5494
  cat conftest.err >&5
 
5495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5496
  (exit $ac_status); } && {
 
5497
         test -z "$ac_c_werror_flag" ||
 
5498
         test ! -s conftest.err
 
5499
       } && test -s conftest.$ac_objext; then
 
5500
  eval "$as_ac_Header=yes"
 
5501
else
 
5502
  echo "$as_me: failed program was:" >&5
 
5503
sed 's/^/| /' conftest.$ac_ext >&5
 
5504
 
 
5505
        eval "$as_ac_Header=no"
 
5506
fi
 
5507
 
 
5508
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5509
fi
 
5510
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5511
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5512
echo "${ECHO_T}$ac_res" >&6; }
 
5513
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5514
  cat >>confdefs.h <<_ACEOF
 
5515
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5516
_ACEOF
 
5517
 
 
5518
fi
 
5519
 
 
5520
done
 
5521
 
 
5522
 
 
5523
 
 
5524
 
 
5525
 
 
5526
 
 
5527
 
 
5528
 
 
5529
 
 
5530
 
 
5531
 
 
5532
 
 
5533
 
 
5534
 
 
5535
 
 
5536
 
 
5537
 
 
5538
 
 
5539
 
 
5540
 
 
5541
 
 
5542
 
 
5543
 
 
5544
 
 
5545
 
 
5546
 
 
5547
 
 
5548
 
 
5549
 
 
5550
 
 
5551
 
 
5552
 
 
5553
 
 
5554
 
 
5555
 
 
5556
 
 
5557
 
 
5558
 
 
5559
 
 
5560
 
 
5561
 
 
5562
 
 
5563
 
 
5564
 
 
5565
 
 
5566
 
 
5567
 
 
5568
 
 
5569
 
 
5570
 
 
5571
 
 
5572
 
 
5573
 
 
5574
 
 
5575
 
 
5576
 
 
5577
for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
 
5578
fcntl.h grp.h \
 
5579
ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
 
5580
shadow.h signal.h stdint.h stropts.h termios.h thread.h \
 
5581
unistd.h utime.h \
 
5582
sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
 
5583
sys/lock.h sys/mkdev.h sys/modem.h \
 
5584
sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
 
5585
sys/termio.h sys/time.h \
 
5586
sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
 
5587
sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
 
5588
bluetooth/bluetooth.h linux/tipc.h
 
5589
do
 
5590
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5591
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5592
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5593
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5594
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5596
fi
 
5597
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5598
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5599
echo "${ECHO_T}$ac_res" >&6; }
 
5600
else
 
5601
  # Is the header compilable?
 
5602
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5603
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5604
cat >conftest.$ac_ext <<_ACEOF
 
5605
/* confdefs.h.  */
 
5606
_ACEOF
 
5607
cat confdefs.h >>conftest.$ac_ext
 
5608
cat >>conftest.$ac_ext <<_ACEOF
 
5609
/* end confdefs.h.  */
 
5610
$ac_includes_default
 
5611
#include <$ac_header>
 
5612
_ACEOF
 
5613
rm -f conftest.$ac_objext
 
5614
if { (ac_try="$ac_compile"
 
5615
case "(($ac_try" in
 
5616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5617
  *) ac_try_echo=$ac_try;;
 
5618
esac
 
5619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5620
  (eval "$ac_compile") 2>conftest.er1
 
5621
  ac_status=$?
 
5622
  grep -v '^ *+' conftest.er1 >conftest.err
 
5623
  rm -f conftest.er1
 
5624
  cat conftest.err >&5
 
5625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5626
  (exit $ac_status); } && {
 
5627
         test -z "$ac_c_werror_flag" ||
 
5628
         test ! -s conftest.err
 
5629
       } && test -s conftest.$ac_objext; then
 
5630
  ac_header_compiler=yes
 
5631
else
 
5632
  echo "$as_me: failed program was:" >&5
 
5633
sed 's/^/| /' conftest.$ac_ext >&5
 
5634
 
 
5635
        ac_header_compiler=no
 
5636
fi
 
5637
 
 
5638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5639
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5640
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5641
 
 
5642
# Is the header present?
 
5643
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5644
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5645
cat >conftest.$ac_ext <<_ACEOF
 
5646
/* confdefs.h.  */
 
5647
_ACEOF
 
5648
cat confdefs.h >>conftest.$ac_ext
 
5649
cat >>conftest.$ac_ext <<_ACEOF
 
5650
/* end confdefs.h.  */
 
5651
#include <$ac_header>
 
5652
_ACEOF
 
5653
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5654
case "(($ac_try" in
 
5655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5656
  *) ac_try_echo=$ac_try;;
 
5657
esac
 
5658
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5659
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5660
  ac_status=$?
 
5661
  grep -v '^ *+' conftest.er1 >conftest.err
 
5662
  rm -f conftest.er1
 
5663
  cat conftest.err >&5
 
5664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5665
  (exit $ac_status); } >/dev/null && {
 
5666
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5667
         test ! -s conftest.err
 
5668
       }; then
 
5669
  ac_header_preproc=yes
 
5670
else
 
5671
  echo "$as_me: failed program was:" >&5
 
5672
sed 's/^/| /' conftest.$ac_ext >&5
 
5673
 
 
5674
  ac_header_preproc=no
 
5675
fi
 
5676
 
 
5677
rm -f conftest.err conftest.$ac_ext
 
5678
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5679
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5680
 
 
5681
# So?  What about this header?
 
5682
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5683
  yes:no: )
 
5684
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5685
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5686
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5687
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5688
    ac_header_preproc=yes
 
5689
    ;;
 
5690
  no:yes:* )
 
5691
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5692
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5693
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5694
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5695
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5696
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5697
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5698
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5699
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5700
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5701
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5702
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5703
    ( cat <<\_ASBOX
 
5704
## ------------------------------------------------ ##
 
5705
## Report this to http://www.python.org/python-bugs ##
 
5706
## ------------------------------------------------ ##
 
5707
_ASBOX
 
5708
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5709
    ;;
 
5710
esac
 
5711
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5712
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5713
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5715
else
 
5716
  eval "$as_ac_Header=\$ac_header_preproc"
 
5717
fi
 
5718
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5719
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5720
echo "${ECHO_T}$ac_res" >&6; }
 
5721
 
 
5722
fi
 
5723
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5724
  cat >>confdefs.h <<_ACEOF
 
5725
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5726
_ACEOF
 
5727
 
 
5728
fi
 
5729
 
 
5730
done
 
5731
 
 
5732
 
 
5733
 
 
5734
 
 
5735
 
 
5736
 
 
5737
ac_header_dirent=no
 
5738
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
5739
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
5740
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
5741
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
 
5742
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5743
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5744
else
 
5745
  cat >conftest.$ac_ext <<_ACEOF
 
5746
/* confdefs.h.  */
 
5747
_ACEOF
 
5748
cat confdefs.h >>conftest.$ac_ext
 
5749
cat >>conftest.$ac_ext <<_ACEOF
 
5750
/* end confdefs.h.  */
 
5751
#include <sys/types.h>
 
5752
#include <$ac_hdr>
 
5753
 
 
5754
int
 
5755
main ()
 
5756
{
 
5757
if ((DIR *) 0)
 
5758
return 0;
 
5759
  ;
 
5760
  return 0;
 
5761
}
 
5762
_ACEOF
 
5763
rm -f conftest.$ac_objext
 
5764
if { (ac_try="$ac_compile"
 
5765
case "(($ac_try" in
 
5766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5767
  *) ac_try_echo=$ac_try;;
 
5768
esac
 
5769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5770
  (eval "$ac_compile") 2>conftest.er1
 
5771
  ac_status=$?
 
5772
  grep -v '^ *+' conftest.er1 >conftest.err
 
5773
  rm -f conftest.er1
 
5774
  cat conftest.err >&5
 
5775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5776
  (exit $ac_status); } && {
 
5777
         test -z "$ac_c_werror_flag" ||
 
5778
         test ! -s conftest.err
 
5779
       } && test -s conftest.$ac_objext; then
 
5780
  eval "$as_ac_Header=yes"
 
5781
else
 
5782
  echo "$as_me: failed program was:" >&5
 
5783
sed 's/^/| /' conftest.$ac_ext >&5
 
5784
 
 
5785
        eval "$as_ac_Header=no"
 
5786
fi
 
5787
 
 
5788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5789
fi
 
5790
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5791
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5792
echo "${ECHO_T}$ac_res" >&6; }
 
5793
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5794
  cat >>confdefs.h <<_ACEOF
 
5795
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
5796
_ACEOF
 
5797
 
 
5798
ac_header_dirent=$ac_hdr; break
 
5799
fi
 
5800
 
 
5801
done
 
5802
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
5803
if test $ac_header_dirent = dirent.h; then
 
5804
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
5805
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
5806
if test "${ac_cv_search_opendir+set}" = set; then
 
5807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5808
else
 
5809
  ac_func_search_save_LIBS=$LIBS
 
5810
cat >conftest.$ac_ext <<_ACEOF
 
5811
/* confdefs.h.  */
 
5812
_ACEOF
 
5813
cat confdefs.h >>conftest.$ac_ext
 
5814
cat >>conftest.$ac_ext <<_ACEOF
 
5815
/* end confdefs.h.  */
 
5816
 
 
5817
/* Override any GCC internal prototype to avoid an error.
 
5818
   Use char because int might match the return type of a GCC
 
5819
   builtin and then its argument prototype would still apply.  */
 
5820
#ifdef __cplusplus
 
5821
extern "C"
 
5822
#endif
 
5823
char opendir ();
 
5824
int
 
5825
main ()
 
5826
{
 
5827
return opendir ();
 
5828
  ;
 
5829
  return 0;
 
5830
}
 
5831
_ACEOF
 
5832
for ac_lib in '' dir; do
 
5833
  if test -z "$ac_lib"; then
 
5834
    ac_res="none required"
 
5835
  else
 
5836
    ac_res=-l$ac_lib
 
5837
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5838
  fi
 
5839
  rm -f conftest.$ac_objext conftest$ac_exeext
 
5840
if { (ac_try="$ac_link"
 
5841
case "(($ac_try" in
 
5842
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5843
  *) ac_try_echo=$ac_try;;
 
5844
esac
 
5845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5846
  (eval "$ac_link") 2>conftest.er1
 
5847
  ac_status=$?
 
5848
  grep -v '^ *+' conftest.er1 >conftest.err
 
5849
  rm -f conftest.er1
 
5850
  cat conftest.err >&5
 
5851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5852
  (exit $ac_status); } && {
 
5853
         test -z "$ac_c_werror_flag" ||
 
5854
         test ! -s conftest.err
 
5855
       } && test -s conftest$ac_exeext &&
 
5856
       $as_test_x conftest$ac_exeext; then
 
5857
  ac_cv_search_opendir=$ac_res
 
5858
else
 
5859
  echo "$as_me: failed program was:" >&5
 
5860
sed 's/^/| /' conftest.$ac_ext >&5
 
5861
 
 
5862
 
 
5863
fi
 
5864
 
 
5865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5866
      conftest$ac_exeext
 
5867
  if test "${ac_cv_search_opendir+set}" = set; then
 
5868
  break
 
5869
fi
 
5870
done
 
5871
if test "${ac_cv_search_opendir+set}" = set; then
 
5872
  :
 
5873
else
 
5874
  ac_cv_search_opendir=no
 
5875
fi
 
5876
rm conftest.$ac_ext
 
5877
LIBS=$ac_func_search_save_LIBS
 
5878
fi
 
5879
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
5880
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
5881
ac_res=$ac_cv_search_opendir
 
5882
if test "$ac_res" != no; then
 
5883
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
5884
 
 
5885
fi
 
5886
 
 
5887
else
 
5888
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
5889
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
5890
if test "${ac_cv_search_opendir+set}" = set; then
 
5891
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5892
else
 
5893
  ac_func_search_save_LIBS=$LIBS
 
5894
cat >conftest.$ac_ext <<_ACEOF
 
5895
/* confdefs.h.  */
 
5896
_ACEOF
 
5897
cat confdefs.h >>conftest.$ac_ext
 
5898
cat >>conftest.$ac_ext <<_ACEOF
 
5899
/* end confdefs.h.  */
 
5900
 
 
5901
/* Override any GCC internal prototype to avoid an error.
 
5902
   Use char because int might match the return type of a GCC
 
5903
   builtin and then its argument prototype would still apply.  */
 
5904
#ifdef __cplusplus
 
5905
extern "C"
 
5906
#endif
 
5907
char opendir ();
 
5908
int
 
5909
main ()
 
5910
{
 
5911
return opendir ();
 
5912
  ;
 
5913
  return 0;
 
5914
}
 
5915
_ACEOF
 
5916
for ac_lib in '' x; do
 
5917
  if test -z "$ac_lib"; then
 
5918
    ac_res="none required"
 
5919
  else
 
5920
    ac_res=-l$ac_lib
 
5921
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5922
  fi
 
5923
  rm -f conftest.$ac_objext conftest$ac_exeext
 
5924
if { (ac_try="$ac_link"
 
5925
case "(($ac_try" in
 
5926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5927
  *) ac_try_echo=$ac_try;;
 
5928
esac
 
5929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5930
  (eval "$ac_link") 2>conftest.er1
 
5931
  ac_status=$?
 
5932
  grep -v '^ *+' conftest.er1 >conftest.err
 
5933
  rm -f conftest.er1
 
5934
  cat conftest.err >&5
 
5935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5936
  (exit $ac_status); } && {
 
5937
         test -z "$ac_c_werror_flag" ||
 
5938
         test ! -s conftest.err
 
5939
       } && test -s conftest$ac_exeext &&
 
5940
       $as_test_x conftest$ac_exeext; then
 
5941
  ac_cv_search_opendir=$ac_res
 
5942
else
 
5943
  echo "$as_me: failed program was:" >&5
 
5944
sed 's/^/| /' conftest.$ac_ext >&5
 
5945
 
 
5946
 
 
5947
fi
 
5948
 
 
5949
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5950
      conftest$ac_exeext
 
5951
  if test "${ac_cv_search_opendir+set}" = set; then
 
5952
  break
 
5953
fi
 
5954
done
 
5955
if test "${ac_cv_search_opendir+set}" = set; then
 
5956
  :
 
5957
else
 
5958
  ac_cv_search_opendir=no
 
5959
fi
 
5960
rm conftest.$ac_ext
 
5961
LIBS=$ac_func_search_save_LIBS
 
5962
fi
 
5963
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
5964
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
5965
ac_res=$ac_cv_search_opendir
 
5966
if test "$ac_res" != no; then
 
5967
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
5968
 
 
5969
fi
 
5970
 
 
5971
fi
 
5972
 
 
5973
{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
 
5974
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
 
5975
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
 
5976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5977
else
 
5978
  cat >conftest.$ac_ext <<_ACEOF
 
5979
/* confdefs.h.  */
 
5980
_ACEOF
 
5981
cat confdefs.h >>conftest.$ac_ext
 
5982
cat >>conftest.$ac_ext <<_ACEOF
 
5983
/* end confdefs.h.  */
 
5984
#include <sys/types.h>
 
5985
int
 
5986
main ()
 
5987
{
 
5988
return makedev(0, 0);
 
5989
  ;
 
5990
  return 0;
 
5991
}
 
5992
_ACEOF
 
5993
rm -f conftest.$ac_objext conftest$ac_exeext
 
5994
if { (ac_try="$ac_link"
 
5995
case "(($ac_try" in
 
5996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5997
  *) ac_try_echo=$ac_try;;
 
5998
esac
 
5999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6000
  (eval "$ac_link") 2>conftest.er1
 
6001
  ac_status=$?
 
6002
  grep -v '^ *+' conftest.er1 >conftest.err
 
6003
  rm -f conftest.er1
 
6004
  cat conftest.err >&5
 
6005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6006
  (exit $ac_status); } && {
 
6007
         test -z "$ac_c_werror_flag" ||
 
6008
         test ! -s conftest.err
 
6009
       } && test -s conftest$ac_exeext &&
 
6010
       $as_test_x conftest$ac_exeext; then
 
6011
  ac_cv_header_sys_types_h_makedev=yes
 
6012
else
 
6013
  echo "$as_me: failed program was:" >&5
 
6014
sed 's/^/| /' conftest.$ac_ext >&5
 
6015
 
 
6016
        ac_cv_header_sys_types_h_makedev=no
 
6017
fi
 
6018
 
 
6019
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6020
      conftest$ac_exeext conftest.$ac_ext
 
6021
 
 
6022
fi
 
6023
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
 
6024
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
 
6025
 
 
6026
if test $ac_cv_header_sys_types_h_makedev = no; then
 
6027
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
 
6028
  { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
 
6029
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
 
6030
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
 
6031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6032
fi
 
6033
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
 
6034
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
 
6035
else
 
6036
  # Is the header compilable?
 
6037
{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
 
6038
echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
 
6039
cat >conftest.$ac_ext <<_ACEOF
 
6040
/* confdefs.h.  */
 
6041
_ACEOF
 
6042
cat confdefs.h >>conftest.$ac_ext
 
6043
cat >>conftest.$ac_ext <<_ACEOF
 
6044
/* end confdefs.h.  */
 
6045
$ac_includes_default
 
6046
#include <sys/mkdev.h>
 
6047
_ACEOF
 
6048
rm -f conftest.$ac_objext
 
6049
if { (ac_try="$ac_compile"
 
6050
case "(($ac_try" in
 
6051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6052
  *) ac_try_echo=$ac_try;;
 
6053
esac
 
6054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6055
  (eval "$ac_compile") 2>conftest.er1
 
6056
  ac_status=$?
 
6057
  grep -v '^ *+' conftest.er1 >conftest.err
 
6058
  rm -f conftest.er1
 
6059
  cat conftest.err >&5
 
6060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6061
  (exit $ac_status); } && {
 
6062
         test -z "$ac_c_werror_flag" ||
 
6063
         test ! -s conftest.err
 
6064
       } && test -s conftest.$ac_objext; then
 
6065
  ac_header_compiler=yes
 
6066
else
 
6067
  echo "$as_me: failed program was:" >&5
 
6068
sed 's/^/| /' conftest.$ac_ext >&5
 
6069
 
 
6070
        ac_header_compiler=no
 
6071
fi
 
6072
 
 
6073
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6074
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6075
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
6076
 
 
6077
# Is the header present?
 
6078
{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
 
6079
echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
 
6080
cat >conftest.$ac_ext <<_ACEOF
 
6081
/* confdefs.h.  */
 
6082
_ACEOF
 
6083
cat confdefs.h >>conftest.$ac_ext
 
6084
cat >>conftest.$ac_ext <<_ACEOF
 
6085
/* end confdefs.h.  */
 
6086
#include <sys/mkdev.h>
 
6087
_ACEOF
 
6088
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6089
case "(($ac_try" in
 
6090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6091
  *) ac_try_echo=$ac_try;;
 
6092
esac
 
6093
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6094
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6095
  ac_status=$?
 
6096
  grep -v '^ *+' conftest.er1 >conftest.err
 
6097
  rm -f conftest.er1
 
6098
  cat conftest.err >&5
 
6099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6100
  (exit $ac_status); } >/dev/null && {
 
6101
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6102
         test ! -s conftest.err
 
6103
       }; then
 
6104
  ac_header_preproc=yes
 
6105
else
 
6106
  echo "$as_me: failed program was:" >&5
 
6107
sed 's/^/| /' conftest.$ac_ext >&5
 
6108
 
 
6109
  ac_header_preproc=no
 
6110
fi
 
6111
 
 
6112
rm -f conftest.err conftest.$ac_ext
 
6113
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6114
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
6115
 
 
6116
# So?  What about this header?
 
6117
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6118
  yes:no: )
 
6119
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
6120
echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6121
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
 
6122
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
 
6123
    ac_header_preproc=yes
 
6124
    ;;
 
6125
  no:yes:* )
 
6126
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
 
6127
echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
 
6128
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
 
6129
echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
 
6130
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
 
6131
echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
 
6132
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6133
echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6134
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
 
6135
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
 
6136
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
 
6137
echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
 
6138
    ( cat <<\_ASBOX
 
6139
## ------------------------------------------------ ##
 
6140
## Report this to http://www.python.org/python-bugs ##
 
6141
## ------------------------------------------------ ##
 
6142
_ASBOX
 
6143
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6144
    ;;
 
6145
esac
 
6146
{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
 
6147
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
 
6148
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
 
6149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6150
else
 
6151
  ac_cv_header_sys_mkdev_h=$ac_header_preproc
 
6152
fi
 
6153
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
 
6154
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
 
6155
 
 
6156
fi
 
6157
if test $ac_cv_header_sys_mkdev_h = yes; then
 
6158
 
 
6159
cat >>confdefs.h <<\_ACEOF
 
6160
#define MAJOR_IN_MKDEV 1
 
6161
_ACEOF
 
6162
 
 
6163
fi
 
6164
 
 
6165
 
 
6166
 
 
6167
  if test $ac_cv_header_sys_mkdev_h = no; then
 
6168
    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
 
6169
  { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
 
6170
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
 
6171
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
 
6172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6173
fi
 
6174
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
 
6175
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
 
6176
else
 
6177
  # Is the header compilable?
 
6178
{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
 
6179
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
 
6180
cat >conftest.$ac_ext <<_ACEOF
 
6181
/* confdefs.h.  */
 
6182
_ACEOF
 
6183
cat confdefs.h >>conftest.$ac_ext
 
6184
cat >>conftest.$ac_ext <<_ACEOF
 
6185
/* end confdefs.h.  */
 
6186
$ac_includes_default
 
6187
#include <sys/sysmacros.h>
 
6188
_ACEOF
 
6189
rm -f conftest.$ac_objext
 
6190
if { (ac_try="$ac_compile"
 
6191
case "(($ac_try" in
 
6192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6193
  *) ac_try_echo=$ac_try;;
 
6194
esac
 
6195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6196
  (eval "$ac_compile") 2>conftest.er1
 
6197
  ac_status=$?
 
6198
  grep -v '^ *+' conftest.er1 >conftest.err
 
6199
  rm -f conftest.er1
 
6200
  cat conftest.err >&5
 
6201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6202
  (exit $ac_status); } && {
 
6203
         test -z "$ac_c_werror_flag" ||
 
6204
         test ! -s conftest.err
 
6205
       } && test -s conftest.$ac_objext; then
 
6206
  ac_header_compiler=yes
 
6207
else
 
6208
  echo "$as_me: failed program was:" >&5
 
6209
sed 's/^/| /' conftest.$ac_ext >&5
 
6210
 
 
6211
        ac_header_compiler=no
 
6212
fi
 
6213
 
 
6214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6215
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6216
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
6217
 
 
6218
# Is the header present?
 
6219
{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
 
6220
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
 
6221
cat >conftest.$ac_ext <<_ACEOF
 
6222
/* confdefs.h.  */
 
6223
_ACEOF
 
6224
cat confdefs.h >>conftest.$ac_ext
 
6225
cat >>conftest.$ac_ext <<_ACEOF
 
6226
/* end confdefs.h.  */
 
6227
#include <sys/sysmacros.h>
 
6228
_ACEOF
 
6229
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6230
case "(($ac_try" in
 
6231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6232
  *) ac_try_echo=$ac_try;;
 
6233
esac
 
6234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6235
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6236
  ac_status=$?
 
6237
  grep -v '^ *+' conftest.er1 >conftest.err
 
6238
  rm -f conftest.er1
 
6239
  cat conftest.err >&5
 
6240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6241
  (exit $ac_status); } >/dev/null && {
 
6242
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6243
         test ! -s conftest.err
 
6244
       }; then
 
6245
  ac_header_preproc=yes
 
6246
else
 
6247
  echo "$as_me: failed program was:" >&5
 
6248
sed 's/^/| /' conftest.$ac_ext >&5
 
6249
 
 
6250
  ac_header_preproc=no
 
6251
fi
 
6252
 
 
6253
rm -f conftest.err conftest.$ac_ext
 
6254
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6255
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
6256
 
 
6257
# So?  What about this header?
 
6258
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6259
  yes:no: )
 
6260
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
6261
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6262
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
 
6263
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
 
6264
    ac_header_preproc=yes
 
6265
    ;;
 
6266
  no:yes:* )
 
6267
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
 
6268
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
 
6269
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
 
6270
echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
 
6271
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
 
6272
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
 
6273
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6274
echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6275
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
 
6276
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
 
6277
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
 
6278
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
 
6279
    ( cat <<\_ASBOX
 
6280
## ------------------------------------------------ ##
 
6281
## Report this to http://www.python.org/python-bugs ##
 
6282
## ------------------------------------------------ ##
 
6283
_ASBOX
 
6284
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6285
    ;;
 
6286
esac
 
6287
{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
 
6288
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
 
6289
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
 
6290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6291
else
 
6292
  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
 
6293
fi
 
6294
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
 
6295
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
 
6296
 
 
6297
fi
 
6298
if test $ac_cv_header_sys_sysmacros_h = yes; then
 
6299
 
 
6300
cat >>confdefs.h <<\_ACEOF
 
6301
#define MAJOR_IN_SYSMACROS 1
 
6302
_ACEOF
 
6303
 
 
6304
fi
 
6305
 
 
6306
 
 
6307
  fi
 
6308
fi
 
6309
 
 
6310
 
 
6311
# On Solaris, term.h requires curses.h
 
6312
 
 
6313
for ac_header in term.h
 
6314
do
 
6315
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6316
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6317
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6318
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6319
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6320
else
 
6321
  cat >conftest.$ac_ext <<_ACEOF
 
6322
/* confdefs.h.  */
 
6323
_ACEOF
 
6324
cat confdefs.h >>conftest.$ac_ext
 
6325
cat >>conftest.$ac_ext <<_ACEOF
 
6326
/* end confdefs.h.  */
 
6327
 
 
6328
#ifdef HAVE_CURSES_H
 
6329
#include <curses.h>
 
6330
#endif
 
6331
 
 
6332
 
 
6333
#include <$ac_header>
 
6334
_ACEOF
 
6335
rm -f conftest.$ac_objext
 
6336
if { (ac_try="$ac_compile"
 
6337
case "(($ac_try" in
 
6338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6339
  *) ac_try_echo=$ac_try;;
 
6340
esac
 
6341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6342
  (eval "$ac_compile") 2>conftest.er1
 
6343
  ac_status=$?
 
6344
  grep -v '^ *+' conftest.er1 >conftest.err
 
6345
  rm -f conftest.er1
 
6346
  cat conftest.err >&5
 
6347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6348
  (exit $ac_status); } && {
 
6349
         test -z "$ac_c_werror_flag" ||
 
6350
         test ! -s conftest.err
 
6351
       } && test -s conftest.$ac_objext; then
 
6352
  eval "$as_ac_Header=yes"
 
6353
else
 
6354
  echo "$as_me: failed program was:" >&5
 
6355
sed 's/^/| /' conftest.$ac_ext >&5
 
6356
 
 
6357
        eval "$as_ac_Header=no"
 
6358
fi
 
6359
 
 
6360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6361
fi
 
6362
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6363
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6364
echo "${ECHO_T}$ac_res" >&6; }
 
6365
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6366
  cat >>confdefs.h <<_ACEOF
 
6367
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6368
_ACEOF
 
6369
 
 
6370
fi
 
6371
 
 
6372
done
 
6373
 
 
6374
 
 
6375
# On Linux, netlink.h requires asm/types.h
 
6376
 
 
6377
for ac_header in linux/netlink.h
 
6378
do
 
6379
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6380
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6381
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6382
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6383
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6384
else
 
6385
  cat >conftest.$ac_ext <<_ACEOF
 
6386
/* confdefs.h.  */
 
6387
_ACEOF
 
6388
cat confdefs.h >>conftest.$ac_ext
 
6389
cat >>conftest.$ac_ext <<_ACEOF
 
6390
/* end confdefs.h.  */
 
6391
 
 
6392
#ifdef HAVE_ASM_TYPES_H
 
6393
#include <asm/types.h>
 
6394
#endif
 
6395
#ifdef HAVE_SYS_SOCKET_H
 
6396
#include <sys/socket.h>
 
6397
#endif
 
6398
 
 
6399
 
 
6400
#include <$ac_header>
 
6401
_ACEOF
 
6402
rm -f conftest.$ac_objext
 
6403
if { (ac_try="$ac_compile"
 
6404
case "(($ac_try" in
 
6405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6406
  *) ac_try_echo=$ac_try;;
 
6407
esac
 
6408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6409
  (eval "$ac_compile") 2>conftest.er1
 
6410
  ac_status=$?
 
6411
  grep -v '^ *+' conftest.er1 >conftest.err
 
6412
  rm -f conftest.er1
 
6413
  cat conftest.err >&5
 
6414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6415
  (exit $ac_status); } && {
 
6416
         test -z "$ac_c_werror_flag" ||
 
6417
         test ! -s conftest.err
 
6418
       } && test -s conftest.$ac_objext; then
 
6419
  eval "$as_ac_Header=yes"
 
6420
else
 
6421
  echo "$as_me: failed program was:" >&5
 
6422
sed 's/^/| /' conftest.$ac_ext >&5
 
6423
 
 
6424
        eval "$as_ac_Header=no"
 
6425
fi
 
6426
 
 
6427
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6428
fi
 
6429
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6430
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6431
echo "${ECHO_T}$ac_res" >&6; }
 
6432
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6433
  cat >>confdefs.h <<_ACEOF
 
6434
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6435
_ACEOF
 
6436
 
 
6437
fi
 
6438
 
 
6439
done
 
6440
 
 
6441
 
 
6442
# checks for typedefs
 
6443
was_it_defined=no
 
6444
{ echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
 
6445
echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
 
6446
cat >conftest.$ac_ext <<_ACEOF
 
6447
/* confdefs.h.  */
 
6448
_ACEOF
 
6449
cat confdefs.h >>conftest.$ac_ext
 
6450
cat >>conftest.$ac_ext <<_ACEOF
 
6451
/* end confdefs.h.  */
 
6452
#include <time.h>
 
6453
 
 
6454
_ACEOF
 
6455
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6456
  $EGREP "clock_t" >/dev/null 2>&1; then
 
6457
  was_it_defined=yes
 
6458
else
 
6459
 
 
6460
 
 
6461
cat >>confdefs.h <<\_ACEOF
 
6462
#define clock_t long
 
6463
_ACEOF
 
6464
 
 
6465
 
 
6466
fi
 
6467
rm -f conftest*
 
6468
 
 
6469
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
 
6470
echo "${ECHO_T}$was_it_defined" >&6; }
 
6471
 
 
6472
# Check whether using makedev requires defining _OSF_SOURCE
 
6473
{ echo "$as_me:$LINENO: checking for makedev" >&5
 
6474
echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
 
6475
cat >conftest.$ac_ext <<_ACEOF
 
6476
/* confdefs.h.  */
 
6477
_ACEOF
 
6478
cat confdefs.h >>conftest.$ac_ext
 
6479
cat >>conftest.$ac_ext <<_ACEOF
 
6480
/* end confdefs.h.  */
 
6481
#include <sys/types.h>
 
6482
int
 
6483
main ()
 
6484
{
 
6485
 makedev(0, 0)
 
6486
  ;
 
6487
  return 0;
 
6488
}
 
6489
_ACEOF
 
6490
rm -f conftest.$ac_objext conftest$ac_exeext
 
6491
if { (ac_try="$ac_link"
 
6492
case "(($ac_try" in
 
6493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6494
  *) ac_try_echo=$ac_try;;
 
6495
esac
 
6496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6497
  (eval "$ac_link") 2>conftest.er1
 
6498
  ac_status=$?
 
6499
  grep -v '^ *+' conftest.er1 >conftest.err
 
6500
  rm -f conftest.er1
 
6501
  cat conftest.err >&5
 
6502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6503
  (exit $ac_status); } && {
 
6504
         test -z "$ac_c_werror_flag" ||
 
6505
         test ! -s conftest.err
 
6506
       } && test -s conftest$ac_exeext &&
 
6507
       $as_test_x conftest$ac_exeext; then
 
6508
  ac_cv_has_makedev=yes
 
6509
else
 
6510
  echo "$as_me: failed program was:" >&5
 
6511
sed 's/^/| /' conftest.$ac_ext >&5
 
6512
 
 
6513
        ac_cv_has_makedev=no
 
6514
fi
 
6515
 
 
6516
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6517
      conftest$ac_exeext conftest.$ac_ext
 
6518
if test "$ac_cv_has_makedev" = "no"; then
 
6519
    # we didn't link, try if _OSF_SOURCE will allow us to link
 
6520
    cat >conftest.$ac_ext <<_ACEOF
 
6521
/* confdefs.h.  */
 
6522
_ACEOF
 
6523
cat confdefs.h >>conftest.$ac_ext
 
6524
cat >>conftest.$ac_ext <<_ACEOF
 
6525
/* end confdefs.h.  */
 
6526
 
 
6527
#define _OSF_SOURCE 1
 
6528
#include <sys/types.h>
 
6529
 
 
6530
int
 
6531
main ()
 
6532
{
 
6533
 makedev(0, 0)
 
6534
  ;
 
6535
  return 0;
 
6536
}
 
6537
_ACEOF
 
6538
rm -f conftest.$ac_objext conftest$ac_exeext
 
6539
if { (ac_try="$ac_link"
 
6540
case "(($ac_try" in
 
6541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6542
  *) ac_try_echo=$ac_try;;
 
6543
esac
 
6544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6545
  (eval "$ac_link") 2>conftest.er1
 
6546
  ac_status=$?
 
6547
  grep -v '^ *+' conftest.er1 >conftest.err
 
6548
  rm -f conftest.er1
 
6549
  cat conftest.err >&5
 
6550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6551
  (exit $ac_status); } && {
 
6552
         test -z "$ac_c_werror_flag" ||
 
6553
         test ! -s conftest.err
 
6554
       } && test -s conftest$ac_exeext &&
 
6555
       $as_test_x conftest$ac_exeext; then
 
6556
  ac_cv_has_makedev=yes
 
6557
else
 
6558
  echo "$as_me: failed program was:" >&5
 
6559
sed 's/^/| /' conftest.$ac_ext >&5
 
6560
 
 
6561
        ac_cv_has_makedev=no
 
6562
fi
 
6563
 
 
6564
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6565
      conftest$ac_exeext conftest.$ac_ext
 
6566
    if test "$ac_cv_has_makedev" = "yes"; then
 
6567
 
 
6568
cat >>confdefs.h <<\_ACEOF
 
6569
#define _OSF_SOURCE 1
 
6570
_ACEOF
 
6571
 
 
6572
    fi
 
6573
fi
 
6574
{ echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
 
6575
echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
 
6576
if test "$ac_cv_has_makedev" = "yes"; then
 
6577
 
 
6578
cat >>confdefs.h <<\_ACEOF
 
6579
#define HAVE_MAKEDEV 1
 
6580
_ACEOF
 
6581
 
 
6582
fi
 
6583
 
 
6584
# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
 
6585
# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
 
6586
# defined, but the compiler does not support pragma redefine_extname,
 
6587
# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
 
6588
# structures (such as rlimit64) without declaring them. As a
 
6589
# work-around, disable LFS on such configurations
 
6590
 
 
6591
use_lfs=yes
 
6592
{ echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
 
6593
echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
 
6594
cat >conftest.$ac_ext <<_ACEOF
 
6595
/* confdefs.h.  */
 
6596
_ACEOF
 
6597
cat confdefs.h >>conftest.$ac_ext
 
6598
cat >>conftest.$ac_ext <<_ACEOF
 
6599
/* end confdefs.h.  */
 
6600
 
 
6601
#define _LARGEFILE_SOURCE 1
 
6602
#define _FILE_OFFSET_BITS 64
 
6603
#include <sys/resource.h>
 
6604
 
 
6605
int
 
6606
main ()
 
6607
{
 
6608
struct rlimit foo;
 
6609
  ;
 
6610
  return 0;
 
6611
}
 
6612
_ACEOF
 
6613
rm -f conftest.$ac_objext
 
6614
if { (ac_try="$ac_compile"
 
6615
case "(($ac_try" in
 
6616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6617
  *) ac_try_echo=$ac_try;;
 
6618
esac
 
6619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6620
  (eval "$ac_compile") 2>conftest.er1
 
6621
  ac_status=$?
 
6622
  grep -v '^ *+' conftest.er1 >conftest.err
 
6623
  rm -f conftest.er1
 
6624
  cat conftest.err >&5
 
6625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6626
  (exit $ac_status); } && {
 
6627
         test -z "$ac_c_werror_flag" ||
 
6628
         test ! -s conftest.err
 
6629
       } && test -s conftest.$ac_objext; then
 
6630
  sol_lfs_bug=no
 
6631
else
 
6632
  echo "$as_me: failed program was:" >&5
 
6633
sed 's/^/| /' conftest.$ac_ext >&5
 
6634
 
 
6635
        sol_lfs_bug=yes
 
6636
fi
 
6637
 
 
6638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6639
{ echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
 
6640
echo "${ECHO_T}$sol_lfs_bug" >&6; }
 
6641
if test "$sol_lfs_bug" = "yes"; then
 
6642
  use_lfs=no
 
6643
fi
 
6644
 
 
6645
if test "$use_lfs" = "yes"; then
 
6646
# Two defines needed to enable largefile support on various platforms
 
6647
# These may affect some typedefs
 
6648
 
 
6649
cat >>confdefs.h <<\_ACEOF
 
6650
#define _LARGEFILE_SOURCE 1
 
6651
_ACEOF
 
6652
 
 
6653
 
 
6654
cat >>confdefs.h <<\_ACEOF
 
6655
#define _FILE_OFFSET_BITS 64
 
6656
_ACEOF
 
6657
 
 
6658
fi
 
6659
 
 
6660
# Add some code to confdefs.h so that the test for off_t works on SCO
 
6661
cat >> confdefs.h <<\EOF
 
6662
#if defined(SCO_DS)
 
6663
#undef _OFF_T
 
6664
#endif
 
6665
EOF
 
6666
 
 
6667
# Type availability checks
 
6668
{ echo "$as_me:$LINENO: checking for mode_t" >&5
 
6669
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
 
6670
if test "${ac_cv_type_mode_t+set}" = set; then
 
6671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6672
else
 
6673
  cat >conftest.$ac_ext <<_ACEOF
 
6674
/* confdefs.h.  */
 
6675
_ACEOF
 
6676
cat confdefs.h >>conftest.$ac_ext
 
6677
cat >>conftest.$ac_ext <<_ACEOF
 
6678
/* end confdefs.h.  */
 
6679
$ac_includes_default
 
6680
typedef mode_t ac__type_new_;
 
6681
int
 
6682
main ()
 
6683
{
 
6684
if ((ac__type_new_ *) 0)
 
6685
  return 0;
 
6686
if (sizeof (ac__type_new_))
 
6687
  return 0;
 
6688
  ;
 
6689
  return 0;
 
6690
}
 
6691
_ACEOF
 
6692
rm -f conftest.$ac_objext
 
6693
if { (ac_try="$ac_compile"
 
6694
case "(($ac_try" in
 
6695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6696
  *) ac_try_echo=$ac_try;;
 
6697
esac
 
6698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6699
  (eval "$ac_compile") 2>conftest.er1
 
6700
  ac_status=$?
 
6701
  grep -v '^ *+' conftest.er1 >conftest.err
 
6702
  rm -f conftest.er1
 
6703
  cat conftest.err >&5
 
6704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6705
  (exit $ac_status); } && {
 
6706
         test -z "$ac_c_werror_flag" ||
 
6707
         test ! -s conftest.err
 
6708
       } && test -s conftest.$ac_objext; then
 
6709
  ac_cv_type_mode_t=yes
 
6710
else
 
6711
  echo "$as_me: failed program was:" >&5
 
6712
sed 's/^/| /' conftest.$ac_ext >&5
 
6713
 
 
6714
        ac_cv_type_mode_t=no
 
6715
fi
 
6716
 
 
6717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6718
fi
 
6719
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 
6720
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
 
6721
if test $ac_cv_type_mode_t = yes; then
 
6722
  :
 
6723
else
 
6724
 
 
6725
cat >>confdefs.h <<_ACEOF
 
6726
#define mode_t int
 
6727
_ACEOF
 
6728
 
 
6729
fi
 
6730
 
 
6731
{ echo "$as_me:$LINENO: checking for off_t" >&5
 
6732
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
 
6733
if test "${ac_cv_type_off_t+set}" = set; then
 
6734
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6735
else
 
6736
  cat >conftest.$ac_ext <<_ACEOF
 
6737
/* confdefs.h.  */
 
6738
_ACEOF
 
6739
cat confdefs.h >>conftest.$ac_ext
 
6740
cat >>conftest.$ac_ext <<_ACEOF
 
6741
/* end confdefs.h.  */
 
6742
$ac_includes_default
 
6743
typedef off_t ac__type_new_;
 
6744
int
 
6745
main ()
 
6746
{
 
6747
if ((ac__type_new_ *) 0)
 
6748
  return 0;
 
6749
if (sizeof (ac__type_new_))
 
6750
  return 0;
 
6751
  ;
 
6752
  return 0;
 
6753
}
 
6754
_ACEOF
 
6755
rm -f conftest.$ac_objext
 
6756
if { (ac_try="$ac_compile"
 
6757
case "(($ac_try" in
 
6758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6759
  *) ac_try_echo=$ac_try;;
 
6760
esac
 
6761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6762
  (eval "$ac_compile") 2>conftest.er1
 
6763
  ac_status=$?
 
6764
  grep -v '^ *+' conftest.er1 >conftest.err
 
6765
  rm -f conftest.er1
 
6766
  cat conftest.err >&5
 
6767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6768
  (exit $ac_status); } && {
 
6769
         test -z "$ac_c_werror_flag" ||
 
6770
         test ! -s conftest.err
 
6771
       } && test -s conftest.$ac_objext; then
 
6772
  ac_cv_type_off_t=yes
 
6773
else
 
6774
  echo "$as_me: failed program was:" >&5
 
6775
sed 's/^/| /' conftest.$ac_ext >&5
 
6776
 
 
6777
        ac_cv_type_off_t=no
 
6778
fi
 
6779
 
 
6780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6781
fi
 
6782
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
6783
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
 
6784
if test $ac_cv_type_off_t = yes; then
 
6785
  :
 
6786
else
 
6787
 
 
6788
cat >>confdefs.h <<_ACEOF
 
6789
#define off_t long int
 
6790
_ACEOF
 
6791
 
 
6792
fi
 
6793
 
 
6794
{ echo "$as_me:$LINENO: checking for pid_t" >&5
 
6795
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
6796
if test "${ac_cv_type_pid_t+set}" = set; then
 
6797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6798
else
 
6799
  cat >conftest.$ac_ext <<_ACEOF
 
6800
/* confdefs.h.  */
 
6801
_ACEOF
 
6802
cat confdefs.h >>conftest.$ac_ext
 
6803
cat >>conftest.$ac_ext <<_ACEOF
 
6804
/* end confdefs.h.  */
 
6805
$ac_includes_default
 
6806
typedef pid_t ac__type_new_;
 
6807
int
 
6808
main ()
 
6809
{
 
6810
if ((ac__type_new_ *) 0)
 
6811
  return 0;
 
6812
if (sizeof (ac__type_new_))
 
6813
  return 0;
 
6814
  ;
 
6815
  return 0;
 
6816
}
 
6817
_ACEOF
 
6818
rm -f conftest.$ac_objext
 
6819
if { (ac_try="$ac_compile"
 
6820
case "(($ac_try" in
 
6821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6822
  *) ac_try_echo=$ac_try;;
 
6823
esac
 
6824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6825
  (eval "$ac_compile") 2>conftest.er1
 
6826
  ac_status=$?
 
6827
  grep -v '^ *+' conftest.er1 >conftest.err
 
6828
  rm -f conftest.er1
 
6829
  cat conftest.err >&5
 
6830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6831
  (exit $ac_status); } && {
 
6832
         test -z "$ac_c_werror_flag" ||
 
6833
         test ! -s conftest.err
 
6834
       } && test -s conftest.$ac_objext; then
 
6835
  ac_cv_type_pid_t=yes
 
6836
else
 
6837
  echo "$as_me: failed program was:" >&5
 
6838
sed 's/^/| /' conftest.$ac_ext >&5
 
6839
 
 
6840
        ac_cv_type_pid_t=no
 
6841
fi
 
6842
 
 
6843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6844
fi
 
6845
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
6846
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 
6847
if test $ac_cv_type_pid_t = yes; then
 
6848
  :
 
6849
else
 
6850
 
 
6851
cat >>confdefs.h <<_ACEOF
 
6852
#define pid_t int
 
6853
_ACEOF
 
6854
 
 
6855
fi
 
6856
 
 
6857
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
6858
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
 
6859
if test "${ac_cv_type_signal+set}" = set; then
 
6860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6861
else
 
6862
  cat >conftest.$ac_ext <<_ACEOF
 
6863
/* confdefs.h.  */
 
6864
_ACEOF
 
6865
cat confdefs.h >>conftest.$ac_ext
 
6866
cat >>conftest.$ac_ext <<_ACEOF
 
6867
/* end confdefs.h.  */
 
6868
#include <sys/types.h>
 
6869
#include <signal.h>
 
6870
 
 
6871
int
 
6872
main ()
 
6873
{
 
6874
return *(signal (0, 0)) (0) == 1;
 
6875
  ;
 
6876
  return 0;
 
6877
}
 
6878
_ACEOF
 
6879
rm -f conftest.$ac_objext
 
6880
if { (ac_try="$ac_compile"
 
6881
case "(($ac_try" in
 
6882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6883
  *) ac_try_echo=$ac_try;;
 
6884
esac
 
6885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6886
  (eval "$ac_compile") 2>conftest.er1
 
6887
  ac_status=$?
 
6888
  grep -v '^ *+' conftest.er1 >conftest.err
 
6889
  rm -f conftest.er1
 
6890
  cat conftest.err >&5
 
6891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6892
  (exit $ac_status); } && {
 
6893
         test -z "$ac_c_werror_flag" ||
 
6894
         test ! -s conftest.err
 
6895
       } && test -s conftest.$ac_objext; then
 
6896
  ac_cv_type_signal=int
 
6897
else
 
6898
  echo "$as_me: failed program was:" >&5
 
6899
sed 's/^/| /' conftest.$ac_ext >&5
 
6900
 
 
6901
        ac_cv_type_signal=void
 
6902
fi
 
6903
 
 
6904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6905
fi
 
6906
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
6907
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
 
6908
 
 
6909
cat >>confdefs.h <<_ACEOF
 
6910
#define RETSIGTYPE $ac_cv_type_signal
 
6911
_ACEOF
 
6912
 
 
6913
 
 
6914
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
6915
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
6916
if test "${ac_cv_type_size_t+set}" = set; then
 
6917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6918
else
 
6919
  cat >conftest.$ac_ext <<_ACEOF
 
6920
/* confdefs.h.  */
 
6921
_ACEOF
 
6922
cat confdefs.h >>conftest.$ac_ext
 
6923
cat >>conftest.$ac_ext <<_ACEOF
 
6924
/* end confdefs.h.  */
 
6925
$ac_includes_default
 
6926
typedef size_t ac__type_new_;
 
6927
int
 
6928
main ()
 
6929
{
 
6930
if ((ac__type_new_ *) 0)
 
6931
  return 0;
 
6932
if (sizeof (ac__type_new_))
 
6933
  return 0;
 
6934
  ;
 
6935
  return 0;
 
6936
}
 
6937
_ACEOF
 
6938
rm -f conftest.$ac_objext
 
6939
if { (ac_try="$ac_compile"
 
6940
case "(($ac_try" in
 
6941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6942
  *) ac_try_echo=$ac_try;;
 
6943
esac
 
6944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6945
  (eval "$ac_compile") 2>conftest.er1
 
6946
  ac_status=$?
 
6947
  grep -v '^ *+' conftest.er1 >conftest.err
 
6948
  rm -f conftest.er1
 
6949
  cat conftest.err >&5
 
6950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6951
  (exit $ac_status); } && {
 
6952
         test -z "$ac_c_werror_flag" ||
 
6953
         test ! -s conftest.err
 
6954
       } && test -s conftest.$ac_objext; then
 
6955
  ac_cv_type_size_t=yes
 
6956
else
 
6957
  echo "$as_me: failed program was:" >&5
 
6958
sed 's/^/| /' conftest.$ac_ext >&5
 
6959
 
 
6960
        ac_cv_type_size_t=no
 
6961
fi
 
6962
 
 
6963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6964
fi
 
6965
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
6966
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
6967
if test $ac_cv_type_size_t = yes; then
 
6968
  :
 
6969
else
 
6970
 
 
6971
cat >>confdefs.h <<_ACEOF
 
6972
#define size_t unsigned int
 
6973
_ACEOF
 
6974
 
 
6975
fi
 
6976
 
 
6977
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
6978
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
 
6979
if test "${ac_cv_type_uid_t+set}" = set; then
 
6980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6981
else
 
6982
  cat >conftest.$ac_ext <<_ACEOF
 
6983
/* confdefs.h.  */
 
6984
_ACEOF
 
6985
cat confdefs.h >>conftest.$ac_ext
 
6986
cat >>conftest.$ac_ext <<_ACEOF
 
6987
/* end confdefs.h.  */
 
6988
#include <sys/types.h>
 
6989
 
 
6990
_ACEOF
 
6991
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6992
  $EGREP "uid_t" >/dev/null 2>&1; then
 
6993
  ac_cv_type_uid_t=yes
 
6994
else
 
6995
  ac_cv_type_uid_t=no
 
6996
fi
 
6997
rm -f conftest*
 
6998
 
 
6999
fi
 
7000
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
7001
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
 
7002
if test $ac_cv_type_uid_t = no; then
 
7003
 
 
7004
cat >>confdefs.h <<\_ACEOF
 
7005
#define uid_t int
 
7006
_ACEOF
 
7007
 
 
7008
 
 
7009
cat >>confdefs.h <<\_ACEOF
 
7010
#define gid_t int
 
7011
_ACEOF
 
7012
 
 
7013
fi
 
7014
 
 
7015
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
 
7016
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
 
7017
if test "${ac_cv_type_ssize_t+set}" = set; then
 
7018
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7019
else
 
7020
  cat >conftest.$ac_ext <<_ACEOF
 
7021
/* confdefs.h.  */
 
7022
_ACEOF
 
7023
cat confdefs.h >>conftest.$ac_ext
 
7024
cat >>conftest.$ac_ext <<_ACEOF
 
7025
/* end confdefs.h.  */
 
7026
$ac_includes_default
 
7027
typedef ssize_t ac__type_new_;
 
7028
int
 
7029
main ()
 
7030
{
 
7031
if ((ac__type_new_ *) 0)
 
7032
  return 0;
 
7033
if (sizeof (ac__type_new_))
 
7034
  return 0;
 
7035
  ;
 
7036
  return 0;
 
7037
}
 
7038
_ACEOF
 
7039
rm -f conftest.$ac_objext
 
7040
if { (ac_try="$ac_compile"
 
7041
case "(($ac_try" in
 
7042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7043
  *) ac_try_echo=$ac_try;;
 
7044
esac
 
7045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7046
  (eval "$ac_compile") 2>conftest.er1
 
7047
  ac_status=$?
 
7048
  grep -v '^ *+' conftest.er1 >conftest.err
 
7049
  rm -f conftest.er1
 
7050
  cat conftest.err >&5
 
7051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7052
  (exit $ac_status); } && {
 
7053
         test -z "$ac_c_werror_flag" ||
 
7054
         test ! -s conftest.err
 
7055
       } && test -s conftest.$ac_objext; then
 
7056
  ac_cv_type_ssize_t=yes
 
7057
else
 
7058
  echo "$as_me: failed program was:" >&5
 
7059
sed 's/^/| /' conftest.$ac_ext >&5
 
7060
 
 
7061
        ac_cv_type_ssize_t=no
 
7062
fi
 
7063
 
 
7064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7065
fi
 
7066
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
 
7067
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
 
7068
if test $ac_cv_type_ssize_t = yes; then
 
7069
 
 
7070
cat >>confdefs.h <<\_ACEOF
 
7071
#define HAVE_SSIZE_T 1
 
7072
_ACEOF
 
7073
 
 
7074
fi
 
7075
 
 
7076
 
 
7077
# Sizes of various common basic types
 
7078
# ANSI C requires sizeof(char) == 1, so no need to check it
 
7079
{ echo "$as_me:$LINENO: checking for int" >&5
 
7080
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
 
7081
if test "${ac_cv_type_int+set}" = set; then
 
7082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7083
else
 
7084
  cat >conftest.$ac_ext <<_ACEOF
 
7085
/* confdefs.h.  */
 
7086
_ACEOF
 
7087
cat confdefs.h >>conftest.$ac_ext
 
7088
cat >>conftest.$ac_ext <<_ACEOF
 
7089
/* end confdefs.h.  */
 
7090
$ac_includes_default
 
7091
typedef int ac__type_new_;
 
7092
int
 
7093
main ()
 
7094
{
 
7095
if ((ac__type_new_ *) 0)
 
7096
  return 0;
 
7097
if (sizeof (ac__type_new_))
 
7098
  return 0;
 
7099
  ;
 
7100
  return 0;
 
7101
}
 
7102
_ACEOF
 
7103
rm -f conftest.$ac_objext
 
7104
if { (ac_try="$ac_compile"
 
7105
case "(($ac_try" in
 
7106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7107
  *) ac_try_echo=$ac_try;;
 
7108
esac
 
7109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7110
  (eval "$ac_compile") 2>conftest.er1
 
7111
  ac_status=$?
 
7112
  grep -v '^ *+' conftest.er1 >conftest.err
 
7113
  rm -f conftest.er1
 
7114
  cat conftest.err >&5
 
7115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7116
  (exit $ac_status); } && {
 
7117
         test -z "$ac_c_werror_flag" ||
 
7118
         test ! -s conftest.err
 
7119
       } && test -s conftest.$ac_objext; then
 
7120
  ac_cv_type_int=yes
 
7121
else
 
7122
  echo "$as_me: failed program was:" >&5
 
7123
sed 's/^/| /' conftest.$ac_ext >&5
 
7124
 
 
7125
        ac_cv_type_int=no
 
7126
fi
 
7127
 
 
7128
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7129
fi
 
7130
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
7131
echo "${ECHO_T}$ac_cv_type_int" >&6; }
 
7132
 
 
7133
# The cast to long int works around a bug in the HP C Compiler
 
7134
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7135
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7136
# This bug is HP SR number 8606223364.
 
7137
{ echo "$as_me:$LINENO: checking size of int" >&5
 
7138
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
 
7139
if test "${ac_cv_sizeof_int+set}" = set; then
 
7140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7141
else
 
7142
  if test "$cross_compiling" = yes; then
 
7143
  # Depending upon the size, compute the lo and hi bounds.
 
7144
cat >conftest.$ac_ext <<_ACEOF
 
7145
/* confdefs.h.  */
 
7146
_ACEOF
 
7147
cat confdefs.h >>conftest.$ac_ext
 
7148
cat >>conftest.$ac_ext <<_ACEOF
 
7149
/* end confdefs.h.  */
 
7150
$ac_includes_default
 
7151
   typedef int ac__type_sizeof_;
 
7152
int
 
7153
main ()
 
7154
{
 
7155
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
7156
test_array [0] = 0
 
7157
 
 
7158
  ;
 
7159
  return 0;
 
7160
}
 
7161
_ACEOF
 
7162
rm -f conftest.$ac_objext
 
7163
if { (ac_try="$ac_compile"
 
7164
case "(($ac_try" in
 
7165
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7166
  *) ac_try_echo=$ac_try;;
 
7167
esac
 
7168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7169
  (eval "$ac_compile") 2>conftest.er1
 
7170
  ac_status=$?
 
7171
  grep -v '^ *+' conftest.er1 >conftest.err
 
7172
  rm -f conftest.er1
 
7173
  cat conftest.err >&5
 
7174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7175
  (exit $ac_status); } && {
 
7176
         test -z "$ac_c_werror_flag" ||
 
7177
         test ! -s conftest.err
 
7178
       } && test -s conftest.$ac_objext; then
 
7179
  ac_lo=0 ac_mid=0
 
7180
  while :; do
 
7181
    cat >conftest.$ac_ext <<_ACEOF
 
7182
/* confdefs.h.  */
 
7183
_ACEOF
 
7184
cat confdefs.h >>conftest.$ac_ext
 
7185
cat >>conftest.$ac_ext <<_ACEOF
 
7186
/* end confdefs.h.  */
 
7187
$ac_includes_default
 
7188
   typedef int ac__type_sizeof_;
 
7189
int
 
7190
main ()
 
7191
{
 
7192
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7193
test_array [0] = 0
 
7194
 
 
7195
  ;
 
7196
  return 0;
 
7197
}
 
7198
_ACEOF
 
7199
rm -f conftest.$ac_objext
 
7200
if { (ac_try="$ac_compile"
 
7201
case "(($ac_try" in
 
7202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7203
  *) ac_try_echo=$ac_try;;
 
7204
esac
 
7205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7206
  (eval "$ac_compile") 2>conftest.er1
 
7207
  ac_status=$?
 
7208
  grep -v '^ *+' conftest.er1 >conftest.err
 
7209
  rm -f conftest.er1
 
7210
  cat conftest.err >&5
 
7211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7212
  (exit $ac_status); } && {
 
7213
         test -z "$ac_c_werror_flag" ||
 
7214
         test ! -s conftest.err
 
7215
       } && test -s conftest.$ac_objext; then
 
7216
  ac_hi=$ac_mid; break
 
7217
else
 
7218
  echo "$as_me: failed program was:" >&5
 
7219
sed 's/^/| /' conftest.$ac_ext >&5
 
7220
 
 
7221
        ac_lo=`expr $ac_mid + 1`
 
7222
                        if test $ac_lo -le $ac_mid; then
 
7223
                          ac_lo= ac_hi=
 
7224
                          break
 
7225
                        fi
 
7226
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
7227
fi
 
7228
 
 
7229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7230
  done
 
7231
else
 
7232
  echo "$as_me: failed program was:" >&5
 
7233
sed 's/^/| /' conftest.$ac_ext >&5
 
7234
 
 
7235
        cat >conftest.$ac_ext <<_ACEOF
 
7236
/* confdefs.h.  */
 
7237
_ACEOF
 
7238
cat confdefs.h >>conftest.$ac_ext
 
7239
cat >>conftest.$ac_ext <<_ACEOF
 
7240
/* end confdefs.h.  */
 
7241
$ac_includes_default
 
7242
   typedef int ac__type_sizeof_;
 
7243
int
 
7244
main ()
 
7245
{
 
7246
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
7247
test_array [0] = 0
 
7248
 
 
7249
  ;
 
7250
  return 0;
 
7251
}
 
7252
_ACEOF
 
7253
rm -f conftest.$ac_objext
 
7254
if { (ac_try="$ac_compile"
 
7255
case "(($ac_try" in
 
7256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7257
  *) ac_try_echo=$ac_try;;
 
7258
esac
 
7259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7260
  (eval "$ac_compile") 2>conftest.er1
 
7261
  ac_status=$?
 
7262
  grep -v '^ *+' conftest.er1 >conftest.err
 
7263
  rm -f conftest.er1
 
7264
  cat conftest.err >&5
 
7265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7266
  (exit $ac_status); } && {
 
7267
         test -z "$ac_c_werror_flag" ||
 
7268
         test ! -s conftest.err
 
7269
       } && test -s conftest.$ac_objext; then
 
7270
  ac_hi=-1 ac_mid=-1
 
7271
  while :; do
 
7272
    cat >conftest.$ac_ext <<_ACEOF
 
7273
/* confdefs.h.  */
 
7274
_ACEOF
 
7275
cat confdefs.h >>conftest.$ac_ext
 
7276
cat >>conftest.$ac_ext <<_ACEOF
 
7277
/* end confdefs.h.  */
 
7278
$ac_includes_default
 
7279
   typedef int ac__type_sizeof_;
 
7280
int
 
7281
main ()
 
7282
{
 
7283
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
7284
test_array [0] = 0
 
7285
 
 
7286
  ;
 
7287
  return 0;
 
7288
}
 
7289
_ACEOF
 
7290
rm -f conftest.$ac_objext
 
7291
if { (ac_try="$ac_compile"
 
7292
case "(($ac_try" in
 
7293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7294
  *) ac_try_echo=$ac_try;;
 
7295
esac
 
7296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7297
  (eval "$ac_compile") 2>conftest.er1
 
7298
  ac_status=$?
 
7299
  grep -v '^ *+' conftest.er1 >conftest.err
 
7300
  rm -f conftest.er1
 
7301
  cat conftest.err >&5
 
7302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7303
  (exit $ac_status); } && {
 
7304
         test -z "$ac_c_werror_flag" ||
 
7305
         test ! -s conftest.err
 
7306
       } && test -s conftest.$ac_objext; then
 
7307
  ac_lo=$ac_mid; break
 
7308
else
 
7309
  echo "$as_me: failed program was:" >&5
 
7310
sed 's/^/| /' conftest.$ac_ext >&5
 
7311
 
 
7312
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
7313
                        if test $ac_mid -le $ac_hi; then
 
7314
                          ac_lo= ac_hi=
 
7315
                          break
 
7316
                        fi
 
7317
                        ac_mid=`expr 2 '*' $ac_mid`
 
7318
fi
 
7319
 
 
7320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7321
  done
 
7322
else
 
7323
  echo "$as_me: failed program was:" >&5
 
7324
sed 's/^/| /' conftest.$ac_ext >&5
 
7325
 
 
7326
        ac_lo= ac_hi=
 
7327
fi
 
7328
 
 
7329
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7330
fi
 
7331
 
 
7332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7333
# Binary search between lo and hi bounds.
 
7334
while test "x$ac_lo" != "x$ac_hi"; do
 
7335
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7336
  cat >conftest.$ac_ext <<_ACEOF
 
7337
/* confdefs.h.  */
 
7338
_ACEOF
 
7339
cat confdefs.h >>conftest.$ac_ext
 
7340
cat >>conftest.$ac_ext <<_ACEOF
 
7341
/* end confdefs.h.  */
 
7342
$ac_includes_default
 
7343
   typedef int ac__type_sizeof_;
 
7344
int
 
7345
main ()
 
7346
{
 
7347
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7348
test_array [0] = 0
 
7349
 
 
7350
  ;
 
7351
  return 0;
 
7352
}
 
7353
_ACEOF
 
7354
rm -f conftest.$ac_objext
 
7355
if { (ac_try="$ac_compile"
 
7356
case "(($ac_try" in
 
7357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7358
  *) ac_try_echo=$ac_try;;
 
7359
esac
 
7360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7361
  (eval "$ac_compile") 2>conftest.er1
 
7362
  ac_status=$?
 
7363
  grep -v '^ *+' conftest.er1 >conftest.err
 
7364
  rm -f conftest.er1
 
7365
  cat conftest.err >&5
 
7366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7367
  (exit $ac_status); } && {
 
7368
         test -z "$ac_c_werror_flag" ||
 
7369
         test ! -s conftest.err
 
7370
       } && test -s conftest.$ac_objext; then
 
7371
  ac_hi=$ac_mid
 
7372
else
 
7373
  echo "$as_me: failed program was:" >&5
 
7374
sed 's/^/| /' conftest.$ac_ext >&5
 
7375
 
 
7376
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
7377
fi
 
7378
 
 
7379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7380
done
 
7381
case $ac_lo in
 
7382
?*) ac_cv_sizeof_int=$ac_lo;;
 
7383
'') if test "$ac_cv_type_int" = yes; then
 
7384
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
7385
See \`config.log' for more details." >&5
 
7386
echo "$as_me: error: cannot compute sizeof (int)
 
7387
See \`config.log' for more details." >&2;}
 
7388
   { (exit 77); exit 77; }; }
 
7389
   else
 
7390
     ac_cv_sizeof_int=0
 
7391
   fi ;;
 
7392
esac
 
7393
else
 
7394
  cat >conftest.$ac_ext <<_ACEOF
 
7395
/* confdefs.h.  */
 
7396
_ACEOF
 
7397
cat confdefs.h >>conftest.$ac_ext
 
7398
cat >>conftest.$ac_ext <<_ACEOF
 
7399
/* end confdefs.h.  */
 
7400
$ac_includes_default
 
7401
   typedef int ac__type_sizeof_;
 
7402
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7403
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7404
#include <stdio.h>
 
7405
#include <stdlib.h>
 
7406
int
 
7407
main ()
 
7408
{
 
7409
 
 
7410
  FILE *f = fopen ("conftest.val", "w");
 
7411
  if (! f)
 
7412
    return 1;
 
7413
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
7414
    {
 
7415
      long int i = longval ();
 
7416
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7417
        return 1;
 
7418
      fprintf (f, "%ld\n", i);
 
7419
    }
 
7420
  else
 
7421
    {
 
7422
      unsigned long int i = ulongval ();
 
7423
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7424
        return 1;
 
7425
      fprintf (f, "%lu\n", i);
 
7426
    }
 
7427
  return ferror (f) || fclose (f) != 0;
 
7428
 
 
7429
  ;
 
7430
  return 0;
 
7431
}
 
7432
_ACEOF
 
7433
rm -f conftest$ac_exeext
 
7434
if { (ac_try="$ac_link"
 
7435
case "(($ac_try" in
 
7436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7437
  *) ac_try_echo=$ac_try;;
 
7438
esac
 
7439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7440
  (eval "$ac_link") 2>&5
 
7441
  ac_status=$?
 
7442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7443
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7444
  { (case "(($ac_try" in
 
7445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7446
  *) ac_try_echo=$ac_try;;
 
7447
esac
 
7448
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7449
  (eval "$ac_try") 2>&5
 
7450
  ac_status=$?
 
7451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7452
  (exit $ac_status); }; }; then
 
7453
  ac_cv_sizeof_int=`cat conftest.val`
 
7454
else
 
7455
  echo "$as_me: program exited with status $ac_status" >&5
 
7456
echo "$as_me: failed program was:" >&5
 
7457
sed 's/^/| /' conftest.$ac_ext >&5
 
7458
 
 
7459
( exit $ac_status )
 
7460
if test "$ac_cv_type_int" = yes; then
 
7461
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
7462
See \`config.log' for more details." >&5
 
7463
echo "$as_me: error: cannot compute sizeof (int)
 
7464
See \`config.log' for more details." >&2;}
 
7465
   { (exit 77); exit 77; }; }
 
7466
   else
 
7467
     ac_cv_sizeof_int=0
 
7468
   fi
 
7469
fi
 
7470
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7471
fi
 
7472
rm -f conftest.val
 
7473
fi
 
7474
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
7475
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
7476
 
 
7477
 
 
7478
 
 
7479
cat >>confdefs.h <<_ACEOF
 
7480
#define SIZEOF_INT $ac_cv_sizeof_int
 
7481
_ACEOF
 
7482
 
 
7483
 
 
7484
{ echo "$as_me:$LINENO: checking for long" >&5
 
7485
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
 
7486
if test "${ac_cv_type_long+set}" = set; then
 
7487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7488
else
 
7489
  cat >conftest.$ac_ext <<_ACEOF
 
7490
/* confdefs.h.  */
 
7491
_ACEOF
 
7492
cat confdefs.h >>conftest.$ac_ext
 
7493
cat >>conftest.$ac_ext <<_ACEOF
 
7494
/* end confdefs.h.  */
 
7495
$ac_includes_default
 
7496
typedef long ac__type_new_;
 
7497
int
 
7498
main ()
 
7499
{
 
7500
if ((ac__type_new_ *) 0)
 
7501
  return 0;
 
7502
if (sizeof (ac__type_new_))
 
7503
  return 0;
 
7504
  ;
 
7505
  return 0;
 
7506
}
 
7507
_ACEOF
 
7508
rm -f conftest.$ac_objext
 
7509
if { (ac_try="$ac_compile"
 
7510
case "(($ac_try" in
 
7511
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7512
  *) ac_try_echo=$ac_try;;
 
7513
esac
 
7514
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7515
  (eval "$ac_compile") 2>conftest.er1
 
7516
  ac_status=$?
 
7517
  grep -v '^ *+' conftest.er1 >conftest.err
 
7518
  rm -f conftest.er1
 
7519
  cat conftest.err >&5
 
7520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7521
  (exit $ac_status); } && {
 
7522
         test -z "$ac_c_werror_flag" ||
 
7523
         test ! -s conftest.err
 
7524
       } && test -s conftest.$ac_objext; then
 
7525
  ac_cv_type_long=yes
 
7526
else
 
7527
  echo "$as_me: failed program was:" >&5
 
7528
sed 's/^/| /' conftest.$ac_ext >&5
 
7529
 
 
7530
        ac_cv_type_long=no
 
7531
fi
 
7532
 
 
7533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7534
fi
 
7535
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
7536
echo "${ECHO_T}$ac_cv_type_long" >&6; }
 
7537
 
 
7538
# The cast to long int works around a bug in the HP C Compiler
 
7539
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7540
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7541
# This bug is HP SR number 8606223364.
 
7542
{ echo "$as_me:$LINENO: checking size of long" >&5
 
7543
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
 
7544
if test "${ac_cv_sizeof_long+set}" = set; then
 
7545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7546
else
 
7547
  if test "$cross_compiling" = yes; then
 
7548
  # Depending upon the size, compute the lo and hi bounds.
 
7549
cat >conftest.$ac_ext <<_ACEOF
 
7550
/* confdefs.h.  */
 
7551
_ACEOF
 
7552
cat confdefs.h >>conftest.$ac_ext
 
7553
cat >>conftest.$ac_ext <<_ACEOF
 
7554
/* end confdefs.h.  */
 
7555
$ac_includes_default
 
7556
   typedef long ac__type_sizeof_;
 
7557
int
 
7558
main ()
 
7559
{
 
7560
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
7561
test_array [0] = 0
 
7562
 
 
7563
  ;
 
7564
  return 0;
 
7565
}
 
7566
_ACEOF
 
7567
rm -f conftest.$ac_objext
 
7568
if { (ac_try="$ac_compile"
 
7569
case "(($ac_try" in
 
7570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7571
  *) ac_try_echo=$ac_try;;
 
7572
esac
 
7573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7574
  (eval "$ac_compile") 2>conftest.er1
 
7575
  ac_status=$?
 
7576
  grep -v '^ *+' conftest.er1 >conftest.err
 
7577
  rm -f conftest.er1
 
7578
  cat conftest.err >&5
 
7579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7580
  (exit $ac_status); } && {
 
7581
         test -z "$ac_c_werror_flag" ||
 
7582
         test ! -s conftest.err
 
7583
       } && test -s conftest.$ac_objext; then
 
7584
  ac_lo=0 ac_mid=0
 
7585
  while :; do
 
7586
    cat >conftest.$ac_ext <<_ACEOF
 
7587
/* confdefs.h.  */
 
7588
_ACEOF
 
7589
cat confdefs.h >>conftest.$ac_ext
 
7590
cat >>conftest.$ac_ext <<_ACEOF
 
7591
/* end confdefs.h.  */
 
7592
$ac_includes_default
 
7593
   typedef long ac__type_sizeof_;
 
7594
int
 
7595
main ()
 
7596
{
 
7597
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7598
test_array [0] = 0
 
7599
 
 
7600
  ;
 
7601
  return 0;
 
7602
}
 
7603
_ACEOF
 
7604
rm -f conftest.$ac_objext
 
7605
if { (ac_try="$ac_compile"
 
7606
case "(($ac_try" in
 
7607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7608
  *) ac_try_echo=$ac_try;;
 
7609
esac
 
7610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7611
  (eval "$ac_compile") 2>conftest.er1
 
7612
  ac_status=$?
 
7613
  grep -v '^ *+' conftest.er1 >conftest.err
 
7614
  rm -f conftest.er1
 
7615
  cat conftest.err >&5
 
7616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7617
  (exit $ac_status); } && {
 
7618
         test -z "$ac_c_werror_flag" ||
 
7619
         test ! -s conftest.err
 
7620
       } && test -s conftest.$ac_objext; then
 
7621
  ac_hi=$ac_mid; break
 
7622
else
 
7623
  echo "$as_me: failed program was:" >&5
 
7624
sed 's/^/| /' conftest.$ac_ext >&5
 
7625
 
 
7626
        ac_lo=`expr $ac_mid + 1`
 
7627
                        if test $ac_lo -le $ac_mid; then
 
7628
                          ac_lo= ac_hi=
 
7629
                          break
 
7630
                        fi
 
7631
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
7632
fi
 
7633
 
 
7634
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7635
  done
 
7636
else
 
7637
  echo "$as_me: failed program was:" >&5
 
7638
sed 's/^/| /' conftest.$ac_ext >&5
 
7639
 
 
7640
        cat >conftest.$ac_ext <<_ACEOF
 
7641
/* confdefs.h.  */
 
7642
_ACEOF
 
7643
cat confdefs.h >>conftest.$ac_ext
 
7644
cat >>conftest.$ac_ext <<_ACEOF
 
7645
/* end confdefs.h.  */
 
7646
$ac_includes_default
 
7647
   typedef long ac__type_sizeof_;
 
7648
int
 
7649
main ()
 
7650
{
 
7651
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
7652
test_array [0] = 0
 
7653
 
 
7654
  ;
 
7655
  return 0;
 
7656
}
 
7657
_ACEOF
 
7658
rm -f conftest.$ac_objext
 
7659
if { (ac_try="$ac_compile"
 
7660
case "(($ac_try" in
 
7661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7662
  *) ac_try_echo=$ac_try;;
 
7663
esac
 
7664
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7665
  (eval "$ac_compile") 2>conftest.er1
 
7666
  ac_status=$?
 
7667
  grep -v '^ *+' conftest.er1 >conftest.err
 
7668
  rm -f conftest.er1
 
7669
  cat conftest.err >&5
 
7670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7671
  (exit $ac_status); } && {
 
7672
         test -z "$ac_c_werror_flag" ||
 
7673
         test ! -s conftest.err
 
7674
       } && test -s conftest.$ac_objext; then
 
7675
  ac_hi=-1 ac_mid=-1
 
7676
  while :; do
 
7677
    cat >conftest.$ac_ext <<_ACEOF
 
7678
/* confdefs.h.  */
 
7679
_ACEOF
 
7680
cat confdefs.h >>conftest.$ac_ext
 
7681
cat >>conftest.$ac_ext <<_ACEOF
 
7682
/* end confdefs.h.  */
 
7683
$ac_includes_default
 
7684
   typedef long ac__type_sizeof_;
 
7685
int
 
7686
main ()
 
7687
{
 
7688
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
7689
test_array [0] = 0
 
7690
 
 
7691
  ;
 
7692
  return 0;
 
7693
}
 
7694
_ACEOF
 
7695
rm -f conftest.$ac_objext
 
7696
if { (ac_try="$ac_compile"
 
7697
case "(($ac_try" in
 
7698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7699
  *) ac_try_echo=$ac_try;;
 
7700
esac
 
7701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7702
  (eval "$ac_compile") 2>conftest.er1
 
7703
  ac_status=$?
 
7704
  grep -v '^ *+' conftest.er1 >conftest.err
 
7705
  rm -f conftest.er1
 
7706
  cat conftest.err >&5
 
7707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7708
  (exit $ac_status); } && {
 
7709
         test -z "$ac_c_werror_flag" ||
 
7710
         test ! -s conftest.err
 
7711
       } && test -s conftest.$ac_objext; then
 
7712
  ac_lo=$ac_mid; break
 
7713
else
 
7714
  echo "$as_me: failed program was:" >&5
 
7715
sed 's/^/| /' conftest.$ac_ext >&5
 
7716
 
 
7717
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
7718
                        if test $ac_mid -le $ac_hi; then
 
7719
                          ac_lo= ac_hi=
 
7720
                          break
 
7721
                        fi
 
7722
                        ac_mid=`expr 2 '*' $ac_mid`
 
7723
fi
 
7724
 
 
7725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7726
  done
 
7727
else
 
7728
  echo "$as_me: failed program was:" >&5
 
7729
sed 's/^/| /' conftest.$ac_ext >&5
 
7730
 
 
7731
        ac_lo= ac_hi=
 
7732
fi
 
7733
 
 
7734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7735
fi
 
7736
 
 
7737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7738
# Binary search between lo and hi bounds.
 
7739
while test "x$ac_lo" != "x$ac_hi"; do
 
7740
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7741
  cat >conftest.$ac_ext <<_ACEOF
 
7742
/* confdefs.h.  */
 
7743
_ACEOF
 
7744
cat confdefs.h >>conftest.$ac_ext
 
7745
cat >>conftest.$ac_ext <<_ACEOF
 
7746
/* end confdefs.h.  */
 
7747
$ac_includes_default
 
7748
   typedef long ac__type_sizeof_;
 
7749
int
 
7750
main ()
 
7751
{
 
7752
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7753
test_array [0] = 0
 
7754
 
 
7755
  ;
 
7756
  return 0;
 
7757
}
 
7758
_ACEOF
 
7759
rm -f conftest.$ac_objext
 
7760
if { (ac_try="$ac_compile"
 
7761
case "(($ac_try" in
 
7762
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7763
  *) ac_try_echo=$ac_try;;
 
7764
esac
 
7765
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7766
  (eval "$ac_compile") 2>conftest.er1
 
7767
  ac_status=$?
 
7768
  grep -v '^ *+' conftest.er1 >conftest.err
 
7769
  rm -f conftest.er1
 
7770
  cat conftest.err >&5
 
7771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7772
  (exit $ac_status); } && {
 
7773
         test -z "$ac_c_werror_flag" ||
 
7774
         test ! -s conftest.err
 
7775
       } && test -s conftest.$ac_objext; then
 
7776
  ac_hi=$ac_mid
 
7777
else
 
7778
  echo "$as_me: failed program was:" >&5
 
7779
sed 's/^/| /' conftest.$ac_ext >&5
 
7780
 
 
7781
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
7782
fi
 
7783
 
 
7784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7785
done
 
7786
case $ac_lo in
 
7787
?*) ac_cv_sizeof_long=$ac_lo;;
 
7788
'') if test "$ac_cv_type_long" = yes; then
 
7789
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
7790
See \`config.log' for more details." >&5
 
7791
echo "$as_me: error: cannot compute sizeof (long)
 
7792
See \`config.log' for more details." >&2;}
 
7793
   { (exit 77); exit 77; }; }
 
7794
   else
 
7795
     ac_cv_sizeof_long=0
 
7796
   fi ;;
 
7797
esac
 
7798
else
 
7799
  cat >conftest.$ac_ext <<_ACEOF
 
7800
/* confdefs.h.  */
 
7801
_ACEOF
 
7802
cat confdefs.h >>conftest.$ac_ext
 
7803
cat >>conftest.$ac_ext <<_ACEOF
 
7804
/* end confdefs.h.  */
 
7805
$ac_includes_default
 
7806
   typedef long ac__type_sizeof_;
 
7807
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7808
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7809
#include <stdio.h>
 
7810
#include <stdlib.h>
 
7811
int
 
7812
main ()
 
7813
{
 
7814
 
 
7815
  FILE *f = fopen ("conftest.val", "w");
 
7816
  if (! f)
 
7817
    return 1;
 
7818
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
7819
    {
 
7820
      long int i = longval ();
 
7821
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7822
        return 1;
 
7823
      fprintf (f, "%ld\n", i);
 
7824
    }
 
7825
  else
 
7826
    {
 
7827
      unsigned long int i = ulongval ();
 
7828
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7829
        return 1;
 
7830
      fprintf (f, "%lu\n", i);
 
7831
    }
 
7832
  return ferror (f) || fclose (f) != 0;
 
7833
 
 
7834
  ;
 
7835
  return 0;
 
7836
}
 
7837
_ACEOF
 
7838
rm -f conftest$ac_exeext
 
7839
if { (ac_try="$ac_link"
 
7840
case "(($ac_try" in
 
7841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7842
  *) ac_try_echo=$ac_try;;
 
7843
esac
 
7844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7845
  (eval "$ac_link") 2>&5
 
7846
  ac_status=$?
 
7847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7848
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7849
  { (case "(($ac_try" in
 
7850
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7851
  *) ac_try_echo=$ac_try;;
 
7852
esac
 
7853
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7854
  (eval "$ac_try") 2>&5
 
7855
  ac_status=$?
 
7856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7857
  (exit $ac_status); }; }; then
 
7858
  ac_cv_sizeof_long=`cat conftest.val`
 
7859
else
 
7860
  echo "$as_me: program exited with status $ac_status" >&5
 
7861
echo "$as_me: failed program was:" >&5
 
7862
sed 's/^/| /' conftest.$ac_ext >&5
 
7863
 
 
7864
( exit $ac_status )
 
7865
if test "$ac_cv_type_long" = yes; then
 
7866
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
7867
See \`config.log' for more details." >&5
 
7868
echo "$as_me: error: cannot compute sizeof (long)
 
7869
See \`config.log' for more details." >&2;}
 
7870
   { (exit 77); exit 77; }; }
 
7871
   else
 
7872
     ac_cv_sizeof_long=0
 
7873
   fi
 
7874
fi
 
7875
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7876
fi
 
7877
rm -f conftest.val
 
7878
fi
 
7879
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
7880
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
7881
 
 
7882
 
 
7883
 
 
7884
cat >>confdefs.h <<_ACEOF
 
7885
#define SIZEOF_LONG $ac_cv_sizeof_long
 
7886
_ACEOF
 
7887
 
 
7888
 
 
7889
{ echo "$as_me:$LINENO: checking for void *" >&5
 
7890
echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
 
7891
if test "${ac_cv_type_void_p+set}" = set; then
 
7892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7893
else
 
7894
  cat >conftest.$ac_ext <<_ACEOF
 
7895
/* confdefs.h.  */
 
7896
_ACEOF
 
7897
cat confdefs.h >>conftest.$ac_ext
 
7898
cat >>conftest.$ac_ext <<_ACEOF
 
7899
/* end confdefs.h.  */
 
7900
$ac_includes_default
 
7901
typedef void * ac__type_new_;
 
7902
int
 
7903
main ()
 
7904
{
 
7905
if ((ac__type_new_ *) 0)
 
7906
  return 0;
 
7907
if (sizeof (ac__type_new_))
 
7908
  return 0;
 
7909
  ;
 
7910
  return 0;
 
7911
}
 
7912
_ACEOF
 
7913
rm -f conftest.$ac_objext
 
7914
if { (ac_try="$ac_compile"
 
7915
case "(($ac_try" in
 
7916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7917
  *) ac_try_echo=$ac_try;;
 
7918
esac
 
7919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7920
  (eval "$ac_compile") 2>conftest.er1
 
7921
  ac_status=$?
 
7922
  grep -v '^ *+' conftest.er1 >conftest.err
 
7923
  rm -f conftest.er1
 
7924
  cat conftest.err >&5
 
7925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7926
  (exit $ac_status); } && {
 
7927
         test -z "$ac_c_werror_flag" ||
 
7928
         test ! -s conftest.err
 
7929
       } && test -s conftest.$ac_objext; then
 
7930
  ac_cv_type_void_p=yes
 
7931
else
 
7932
  echo "$as_me: failed program was:" >&5
 
7933
sed 's/^/| /' conftest.$ac_ext >&5
 
7934
 
 
7935
        ac_cv_type_void_p=no
 
7936
fi
 
7937
 
 
7938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7939
fi
 
7940
{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
 
7941
echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
 
7942
 
 
7943
# The cast to long int works around a bug in the HP C Compiler
 
7944
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7945
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7946
# This bug is HP SR number 8606223364.
 
7947
{ echo "$as_me:$LINENO: checking size of void *" >&5
 
7948
echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
 
7949
if test "${ac_cv_sizeof_void_p+set}" = set; then
 
7950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7951
else
 
7952
  if test "$cross_compiling" = yes; then
 
7953
  # Depending upon the size, compute the lo and hi bounds.
 
7954
cat >conftest.$ac_ext <<_ACEOF
 
7955
/* confdefs.h.  */
 
7956
_ACEOF
 
7957
cat confdefs.h >>conftest.$ac_ext
 
7958
cat >>conftest.$ac_ext <<_ACEOF
 
7959
/* end confdefs.h.  */
 
7960
$ac_includes_default
 
7961
   typedef void * ac__type_sizeof_;
 
7962
int
 
7963
main ()
 
7964
{
 
7965
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
7966
test_array [0] = 0
 
7967
 
 
7968
  ;
 
7969
  return 0;
 
7970
}
 
7971
_ACEOF
 
7972
rm -f conftest.$ac_objext
 
7973
if { (ac_try="$ac_compile"
 
7974
case "(($ac_try" in
 
7975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7976
  *) ac_try_echo=$ac_try;;
 
7977
esac
 
7978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7979
  (eval "$ac_compile") 2>conftest.er1
 
7980
  ac_status=$?
 
7981
  grep -v '^ *+' conftest.er1 >conftest.err
 
7982
  rm -f conftest.er1
 
7983
  cat conftest.err >&5
 
7984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7985
  (exit $ac_status); } && {
 
7986
         test -z "$ac_c_werror_flag" ||
 
7987
         test ! -s conftest.err
 
7988
       } && test -s conftest.$ac_objext; then
 
7989
  ac_lo=0 ac_mid=0
 
7990
  while :; do
 
7991
    cat >conftest.$ac_ext <<_ACEOF
 
7992
/* confdefs.h.  */
 
7993
_ACEOF
 
7994
cat confdefs.h >>conftest.$ac_ext
 
7995
cat >>conftest.$ac_ext <<_ACEOF
 
7996
/* end confdefs.h.  */
 
7997
$ac_includes_default
 
7998
   typedef void * ac__type_sizeof_;
 
7999
int
 
8000
main ()
 
8001
{
 
8002
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8003
test_array [0] = 0
 
8004
 
 
8005
  ;
 
8006
  return 0;
 
8007
}
 
8008
_ACEOF
 
8009
rm -f conftest.$ac_objext
 
8010
if { (ac_try="$ac_compile"
 
8011
case "(($ac_try" in
 
8012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8013
  *) ac_try_echo=$ac_try;;
 
8014
esac
 
8015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8016
  (eval "$ac_compile") 2>conftest.er1
 
8017
  ac_status=$?
 
8018
  grep -v '^ *+' conftest.er1 >conftest.err
 
8019
  rm -f conftest.er1
 
8020
  cat conftest.err >&5
 
8021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8022
  (exit $ac_status); } && {
 
8023
         test -z "$ac_c_werror_flag" ||
 
8024
         test ! -s conftest.err
 
8025
       } && test -s conftest.$ac_objext; then
 
8026
  ac_hi=$ac_mid; break
 
8027
else
 
8028
  echo "$as_me: failed program was:" >&5
 
8029
sed 's/^/| /' conftest.$ac_ext >&5
 
8030
 
 
8031
        ac_lo=`expr $ac_mid + 1`
 
8032
                        if test $ac_lo -le $ac_mid; then
 
8033
                          ac_lo= ac_hi=
 
8034
                          break
 
8035
                        fi
 
8036
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
8037
fi
 
8038
 
 
8039
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8040
  done
 
8041
else
 
8042
  echo "$as_me: failed program was:" >&5
 
8043
sed 's/^/| /' conftest.$ac_ext >&5
 
8044
 
 
8045
        cat >conftest.$ac_ext <<_ACEOF
 
8046
/* confdefs.h.  */
 
8047
_ACEOF
 
8048
cat confdefs.h >>conftest.$ac_ext
 
8049
cat >>conftest.$ac_ext <<_ACEOF
 
8050
/* end confdefs.h.  */
 
8051
$ac_includes_default
 
8052
   typedef void * ac__type_sizeof_;
 
8053
int
 
8054
main ()
 
8055
{
 
8056
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
8057
test_array [0] = 0
 
8058
 
 
8059
  ;
 
8060
  return 0;
 
8061
}
 
8062
_ACEOF
 
8063
rm -f conftest.$ac_objext
 
8064
if { (ac_try="$ac_compile"
 
8065
case "(($ac_try" in
 
8066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8067
  *) ac_try_echo=$ac_try;;
 
8068
esac
 
8069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8070
  (eval "$ac_compile") 2>conftest.er1
 
8071
  ac_status=$?
 
8072
  grep -v '^ *+' conftest.er1 >conftest.err
 
8073
  rm -f conftest.er1
 
8074
  cat conftest.err >&5
 
8075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8076
  (exit $ac_status); } && {
 
8077
         test -z "$ac_c_werror_flag" ||
 
8078
         test ! -s conftest.err
 
8079
       } && test -s conftest.$ac_objext; then
 
8080
  ac_hi=-1 ac_mid=-1
 
8081
  while :; do
 
8082
    cat >conftest.$ac_ext <<_ACEOF
 
8083
/* confdefs.h.  */
 
8084
_ACEOF
 
8085
cat confdefs.h >>conftest.$ac_ext
 
8086
cat >>conftest.$ac_ext <<_ACEOF
 
8087
/* end confdefs.h.  */
 
8088
$ac_includes_default
 
8089
   typedef void * ac__type_sizeof_;
 
8090
int
 
8091
main ()
 
8092
{
 
8093
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
8094
test_array [0] = 0
 
8095
 
 
8096
  ;
 
8097
  return 0;
 
8098
}
 
8099
_ACEOF
 
8100
rm -f conftest.$ac_objext
 
8101
if { (ac_try="$ac_compile"
 
8102
case "(($ac_try" in
 
8103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8104
  *) ac_try_echo=$ac_try;;
 
8105
esac
 
8106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8107
  (eval "$ac_compile") 2>conftest.er1
 
8108
  ac_status=$?
 
8109
  grep -v '^ *+' conftest.er1 >conftest.err
 
8110
  rm -f conftest.er1
 
8111
  cat conftest.err >&5
 
8112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8113
  (exit $ac_status); } && {
 
8114
         test -z "$ac_c_werror_flag" ||
 
8115
         test ! -s conftest.err
 
8116
       } && test -s conftest.$ac_objext; then
 
8117
  ac_lo=$ac_mid; break
 
8118
else
 
8119
  echo "$as_me: failed program was:" >&5
 
8120
sed 's/^/| /' conftest.$ac_ext >&5
 
8121
 
 
8122
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
8123
                        if test $ac_mid -le $ac_hi; then
 
8124
                          ac_lo= ac_hi=
 
8125
                          break
 
8126
                        fi
 
8127
                        ac_mid=`expr 2 '*' $ac_mid`
 
8128
fi
 
8129
 
 
8130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8131
  done
 
8132
else
 
8133
  echo "$as_me: failed program was:" >&5
 
8134
sed 's/^/| /' conftest.$ac_ext >&5
 
8135
 
 
8136
        ac_lo= ac_hi=
 
8137
fi
 
8138
 
 
8139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8140
fi
 
8141
 
 
8142
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8143
# Binary search between lo and hi bounds.
 
8144
while test "x$ac_lo" != "x$ac_hi"; do
 
8145
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
8146
  cat >conftest.$ac_ext <<_ACEOF
 
8147
/* confdefs.h.  */
 
8148
_ACEOF
 
8149
cat confdefs.h >>conftest.$ac_ext
 
8150
cat >>conftest.$ac_ext <<_ACEOF
 
8151
/* end confdefs.h.  */
 
8152
$ac_includes_default
 
8153
   typedef void * ac__type_sizeof_;
 
8154
int
 
8155
main ()
 
8156
{
 
8157
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8158
test_array [0] = 0
 
8159
 
 
8160
  ;
 
8161
  return 0;
 
8162
}
 
8163
_ACEOF
 
8164
rm -f conftest.$ac_objext
 
8165
if { (ac_try="$ac_compile"
 
8166
case "(($ac_try" in
 
8167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8168
  *) ac_try_echo=$ac_try;;
 
8169
esac
 
8170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8171
  (eval "$ac_compile") 2>conftest.er1
 
8172
  ac_status=$?
 
8173
  grep -v '^ *+' conftest.er1 >conftest.err
 
8174
  rm -f conftest.er1
 
8175
  cat conftest.err >&5
 
8176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8177
  (exit $ac_status); } && {
 
8178
         test -z "$ac_c_werror_flag" ||
 
8179
         test ! -s conftest.err
 
8180
       } && test -s conftest.$ac_objext; then
 
8181
  ac_hi=$ac_mid
 
8182
else
 
8183
  echo "$as_me: failed program was:" >&5
 
8184
sed 's/^/| /' conftest.$ac_ext >&5
 
8185
 
 
8186
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
8187
fi
 
8188
 
 
8189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8190
done
 
8191
case $ac_lo in
 
8192
?*) ac_cv_sizeof_void_p=$ac_lo;;
 
8193
'') if test "$ac_cv_type_void_p" = yes; then
 
8194
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
 
8195
See \`config.log' for more details." >&5
 
8196
echo "$as_me: error: cannot compute sizeof (void *)
 
8197
See \`config.log' for more details." >&2;}
 
8198
   { (exit 77); exit 77; }; }
 
8199
   else
 
8200
     ac_cv_sizeof_void_p=0
 
8201
   fi ;;
 
8202
esac
 
8203
else
 
8204
  cat >conftest.$ac_ext <<_ACEOF
 
8205
/* confdefs.h.  */
 
8206
_ACEOF
 
8207
cat confdefs.h >>conftest.$ac_ext
 
8208
cat >>conftest.$ac_ext <<_ACEOF
 
8209
/* end confdefs.h.  */
 
8210
$ac_includes_default
 
8211
   typedef void * ac__type_sizeof_;
 
8212
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
8213
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
8214
#include <stdio.h>
 
8215
#include <stdlib.h>
 
8216
int
 
8217
main ()
 
8218
{
 
8219
 
 
8220
  FILE *f = fopen ("conftest.val", "w");
 
8221
  if (! f)
 
8222
    return 1;
 
8223
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
8224
    {
 
8225
      long int i = longval ();
 
8226
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
8227
        return 1;
 
8228
      fprintf (f, "%ld\n", i);
 
8229
    }
 
8230
  else
 
8231
    {
 
8232
      unsigned long int i = ulongval ();
 
8233
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
8234
        return 1;
 
8235
      fprintf (f, "%lu\n", i);
 
8236
    }
 
8237
  return ferror (f) || fclose (f) != 0;
 
8238
 
 
8239
  ;
 
8240
  return 0;
 
8241
}
 
8242
_ACEOF
 
8243
rm -f conftest$ac_exeext
 
8244
if { (ac_try="$ac_link"
 
8245
case "(($ac_try" in
 
8246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8247
  *) ac_try_echo=$ac_try;;
 
8248
esac
 
8249
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8250
  (eval "$ac_link") 2>&5
 
8251
  ac_status=$?
 
8252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8253
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8254
  { (case "(($ac_try" in
 
8255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8256
  *) ac_try_echo=$ac_try;;
 
8257
esac
 
8258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8259
  (eval "$ac_try") 2>&5
 
8260
  ac_status=$?
 
8261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8262
  (exit $ac_status); }; }; then
 
8263
  ac_cv_sizeof_void_p=`cat conftest.val`
 
8264
else
 
8265
  echo "$as_me: program exited with status $ac_status" >&5
 
8266
echo "$as_me: failed program was:" >&5
 
8267
sed 's/^/| /' conftest.$ac_ext >&5
 
8268
 
 
8269
( exit $ac_status )
 
8270
if test "$ac_cv_type_void_p" = yes; then
 
8271
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
 
8272
See \`config.log' for more details." >&5
 
8273
echo "$as_me: error: cannot compute sizeof (void *)
 
8274
See \`config.log' for more details." >&2;}
 
8275
   { (exit 77); exit 77; }; }
 
8276
   else
 
8277
     ac_cv_sizeof_void_p=0
 
8278
   fi
 
8279
fi
 
8280
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8281
fi
 
8282
rm -f conftest.val
 
8283
fi
 
8284
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
 
8285
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
 
8286
 
 
8287
 
 
8288
 
 
8289
cat >>confdefs.h <<_ACEOF
 
8290
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
8291
_ACEOF
 
8292
 
 
8293
 
 
8294
{ echo "$as_me:$LINENO: checking for short" >&5
 
8295
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
 
8296
if test "${ac_cv_type_short+set}" = set; then
 
8297
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8298
else
 
8299
  cat >conftest.$ac_ext <<_ACEOF
 
8300
/* confdefs.h.  */
 
8301
_ACEOF
 
8302
cat confdefs.h >>conftest.$ac_ext
 
8303
cat >>conftest.$ac_ext <<_ACEOF
 
8304
/* end confdefs.h.  */
 
8305
$ac_includes_default
 
8306
typedef short ac__type_new_;
 
8307
int
 
8308
main ()
 
8309
{
 
8310
if ((ac__type_new_ *) 0)
 
8311
  return 0;
 
8312
if (sizeof (ac__type_new_))
 
8313
  return 0;
 
8314
  ;
 
8315
  return 0;
 
8316
}
 
8317
_ACEOF
 
8318
rm -f conftest.$ac_objext
 
8319
if { (ac_try="$ac_compile"
 
8320
case "(($ac_try" in
 
8321
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8322
  *) ac_try_echo=$ac_try;;
 
8323
esac
 
8324
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8325
  (eval "$ac_compile") 2>conftest.er1
 
8326
  ac_status=$?
 
8327
  grep -v '^ *+' conftest.er1 >conftest.err
 
8328
  rm -f conftest.er1
 
8329
  cat conftest.err >&5
 
8330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8331
  (exit $ac_status); } && {
 
8332
         test -z "$ac_c_werror_flag" ||
 
8333
         test ! -s conftest.err
 
8334
       } && test -s conftest.$ac_objext; then
 
8335
  ac_cv_type_short=yes
 
8336
else
 
8337
  echo "$as_me: failed program was:" >&5
 
8338
sed 's/^/| /' conftest.$ac_ext >&5
 
8339
 
 
8340
        ac_cv_type_short=no
 
8341
fi
 
8342
 
 
8343
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8344
fi
 
8345
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
8346
echo "${ECHO_T}$ac_cv_type_short" >&6; }
 
8347
 
 
8348
# The cast to long int works around a bug in the HP C Compiler
 
8349
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
8350
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
8351
# This bug is HP SR number 8606223364.
 
8352
{ echo "$as_me:$LINENO: checking size of short" >&5
 
8353
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
 
8354
if test "${ac_cv_sizeof_short+set}" = set; then
 
8355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8356
else
 
8357
  if test "$cross_compiling" = yes; then
 
8358
  # Depending upon the size, compute the lo and hi bounds.
 
8359
cat >conftest.$ac_ext <<_ACEOF
 
8360
/* confdefs.h.  */
 
8361
_ACEOF
 
8362
cat confdefs.h >>conftest.$ac_ext
 
8363
cat >>conftest.$ac_ext <<_ACEOF
 
8364
/* end confdefs.h.  */
 
8365
$ac_includes_default
 
8366
   typedef short ac__type_sizeof_;
 
8367
int
 
8368
main ()
 
8369
{
 
8370
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
8371
test_array [0] = 0
 
8372
 
 
8373
  ;
 
8374
  return 0;
 
8375
}
 
8376
_ACEOF
 
8377
rm -f conftest.$ac_objext
 
8378
if { (ac_try="$ac_compile"
 
8379
case "(($ac_try" in
 
8380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8381
  *) ac_try_echo=$ac_try;;
 
8382
esac
 
8383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8384
  (eval "$ac_compile") 2>conftest.er1
 
8385
  ac_status=$?
 
8386
  grep -v '^ *+' conftest.er1 >conftest.err
 
8387
  rm -f conftest.er1
 
8388
  cat conftest.err >&5
 
8389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8390
  (exit $ac_status); } && {
 
8391
         test -z "$ac_c_werror_flag" ||
 
8392
         test ! -s conftest.err
 
8393
       } && test -s conftest.$ac_objext; then
 
8394
  ac_lo=0 ac_mid=0
 
8395
  while :; do
 
8396
    cat >conftest.$ac_ext <<_ACEOF
 
8397
/* confdefs.h.  */
 
8398
_ACEOF
 
8399
cat confdefs.h >>conftest.$ac_ext
 
8400
cat >>conftest.$ac_ext <<_ACEOF
 
8401
/* end confdefs.h.  */
 
8402
$ac_includes_default
 
8403
   typedef short ac__type_sizeof_;
 
8404
int
 
8405
main ()
 
8406
{
 
8407
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8408
test_array [0] = 0
 
8409
 
 
8410
  ;
 
8411
  return 0;
 
8412
}
 
8413
_ACEOF
 
8414
rm -f conftest.$ac_objext
 
8415
if { (ac_try="$ac_compile"
 
8416
case "(($ac_try" in
 
8417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8418
  *) ac_try_echo=$ac_try;;
 
8419
esac
 
8420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8421
  (eval "$ac_compile") 2>conftest.er1
 
8422
  ac_status=$?
 
8423
  grep -v '^ *+' conftest.er1 >conftest.err
 
8424
  rm -f conftest.er1
 
8425
  cat conftest.err >&5
 
8426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8427
  (exit $ac_status); } && {
 
8428
         test -z "$ac_c_werror_flag" ||
 
8429
         test ! -s conftest.err
 
8430
       } && test -s conftest.$ac_objext; then
 
8431
  ac_hi=$ac_mid; break
 
8432
else
 
8433
  echo "$as_me: failed program was:" >&5
 
8434
sed 's/^/| /' conftest.$ac_ext >&5
 
8435
 
 
8436
        ac_lo=`expr $ac_mid + 1`
 
8437
                        if test $ac_lo -le $ac_mid; then
 
8438
                          ac_lo= ac_hi=
 
8439
                          break
 
8440
                        fi
 
8441
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
8442
fi
 
8443
 
 
8444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8445
  done
 
8446
else
 
8447
  echo "$as_me: failed program was:" >&5
 
8448
sed 's/^/| /' conftest.$ac_ext >&5
 
8449
 
 
8450
        cat >conftest.$ac_ext <<_ACEOF
 
8451
/* confdefs.h.  */
 
8452
_ACEOF
 
8453
cat confdefs.h >>conftest.$ac_ext
 
8454
cat >>conftest.$ac_ext <<_ACEOF
 
8455
/* end confdefs.h.  */
 
8456
$ac_includes_default
 
8457
   typedef short ac__type_sizeof_;
 
8458
int
 
8459
main ()
 
8460
{
 
8461
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
8462
test_array [0] = 0
 
8463
 
 
8464
  ;
 
8465
  return 0;
 
8466
}
 
8467
_ACEOF
 
8468
rm -f conftest.$ac_objext
 
8469
if { (ac_try="$ac_compile"
 
8470
case "(($ac_try" in
 
8471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8472
  *) ac_try_echo=$ac_try;;
 
8473
esac
 
8474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8475
  (eval "$ac_compile") 2>conftest.er1
 
8476
  ac_status=$?
 
8477
  grep -v '^ *+' conftest.er1 >conftest.err
 
8478
  rm -f conftest.er1
 
8479
  cat conftest.err >&5
 
8480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8481
  (exit $ac_status); } && {
 
8482
         test -z "$ac_c_werror_flag" ||
 
8483
         test ! -s conftest.err
 
8484
       } && test -s conftest.$ac_objext; then
 
8485
  ac_hi=-1 ac_mid=-1
 
8486
  while :; do
 
8487
    cat >conftest.$ac_ext <<_ACEOF
 
8488
/* confdefs.h.  */
 
8489
_ACEOF
 
8490
cat confdefs.h >>conftest.$ac_ext
 
8491
cat >>conftest.$ac_ext <<_ACEOF
 
8492
/* end confdefs.h.  */
 
8493
$ac_includes_default
 
8494
   typedef short ac__type_sizeof_;
 
8495
int
 
8496
main ()
 
8497
{
 
8498
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
8499
test_array [0] = 0
 
8500
 
 
8501
  ;
 
8502
  return 0;
 
8503
}
 
8504
_ACEOF
 
8505
rm -f conftest.$ac_objext
 
8506
if { (ac_try="$ac_compile"
 
8507
case "(($ac_try" in
 
8508
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8509
  *) ac_try_echo=$ac_try;;
 
8510
esac
 
8511
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8512
  (eval "$ac_compile") 2>conftest.er1
 
8513
  ac_status=$?
 
8514
  grep -v '^ *+' conftest.er1 >conftest.err
 
8515
  rm -f conftest.er1
 
8516
  cat conftest.err >&5
 
8517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8518
  (exit $ac_status); } && {
 
8519
         test -z "$ac_c_werror_flag" ||
 
8520
         test ! -s conftest.err
 
8521
       } && test -s conftest.$ac_objext; then
 
8522
  ac_lo=$ac_mid; break
 
8523
else
 
8524
  echo "$as_me: failed program was:" >&5
 
8525
sed 's/^/| /' conftest.$ac_ext >&5
 
8526
 
 
8527
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
8528
                        if test $ac_mid -le $ac_hi; then
 
8529
                          ac_lo= ac_hi=
 
8530
                          break
 
8531
                        fi
 
8532
                        ac_mid=`expr 2 '*' $ac_mid`
 
8533
fi
 
8534
 
 
8535
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8536
  done
 
8537
else
 
8538
  echo "$as_me: failed program was:" >&5
 
8539
sed 's/^/| /' conftest.$ac_ext >&5
 
8540
 
 
8541
        ac_lo= ac_hi=
 
8542
fi
 
8543
 
 
8544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8545
fi
 
8546
 
 
8547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8548
# Binary search between lo and hi bounds.
 
8549
while test "x$ac_lo" != "x$ac_hi"; do
 
8550
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
8551
  cat >conftest.$ac_ext <<_ACEOF
 
8552
/* confdefs.h.  */
 
8553
_ACEOF
 
8554
cat confdefs.h >>conftest.$ac_ext
 
8555
cat >>conftest.$ac_ext <<_ACEOF
 
8556
/* end confdefs.h.  */
 
8557
$ac_includes_default
 
8558
   typedef short ac__type_sizeof_;
 
8559
int
 
8560
main ()
 
8561
{
 
8562
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8563
test_array [0] = 0
 
8564
 
 
8565
  ;
 
8566
  return 0;
 
8567
}
 
8568
_ACEOF
 
8569
rm -f conftest.$ac_objext
 
8570
if { (ac_try="$ac_compile"
 
8571
case "(($ac_try" in
 
8572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8573
  *) ac_try_echo=$ac_try;;
 
8574
esac
 
8575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8576
  (eval "$ac_compile") 2>conftest.er1
 
8577
  ac_status=$?
 
8578
  grep -v '^ *+' conftest.er1 >conftest.err
 
8579
  rm -f conftest.er1
 
8580
  cat conftest.err >&5
 
8581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8582
  (exit $ac_status); } && {
 
8583
         test -z "$ac_c_werror_flag" ||
 
8584
         test ! -s conftest.err
 
8585
       } && test -s conftest.$ac_objext; then
 
8586
  ac_hi=$ac_mid
 
8587
else
 
8588
  echo "$as_me: failed program was:" >&5
 
8589
sed 's/^/| /' conftest.$ac_ext >&5
 
8590
 
 
8591
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
8592
fi
 
8593
 
 
8594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8595
done
 
8596
case $ac_lo in
 
8597
?*) ac_cv_sizeof_short=$ac_lo;;
 
8598
'') if test "$ac_cv_type_short" = yes; then
 
8599
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
8600
See \`config.log' for more details." >&5
 
8601
echo "$as_me: error: cannot compute sizeof (short)
 
8602
See \`config.log' for more details." >&2;}
 
8603
   { (exit 77); exit 77; }; }
 
8604
   else
 
8605
     ac_cv_sizeof_short=0
 
8606
   fi ;;
 
8607
esac
 
8608
else
 
8609
  cat >conftest.$ac_ext <<_ACEOF
 
8610
/* confdefs.h.  */
 
8611
_ACEOF
 
8612
cat confdefs.h >>conftest.$ac_ext
 
8613
cat >>conftest.$ac_ext <<_ACEOF
 
8614
/* end confdefs.h.  */
 
8615
$ac_includes_default
 
8616
   typedef short ac__type_sizeof_;
 
8617
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
8618
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
8619
#include <stdio.h>
 
8620
#include <stdlib.h>
 
8621
int
 
8622
main ()
 
8623
{
 
8624
 
 
8625
  FILE *f = fopen ("conftest.val", "w");
 
8626
  if (! f)
 
8627
    return 1;
 
8628
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
8629
    {
 
8630
      long int i = longval ();
 
8631
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
8632
        return 1;
 
8633
      fprintf (f, "%ld\n", i);
 
8634
    }
 
8635
  else
 
8636
    {
 
8637
      unsigned long int i = ulongval ();
 
8638
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
8639
        return 1;
 
8640
      fprintf (f, "%lu\n", i);
 
8641
    }
 
8642
  return ferror (f) || fclose (f) != 0;
 
8643
 
 
8644
  ;
 
8645
  return 0;
 
8646
}
 
8647
_ACEOF
 
8648
rm -f conftest$ac_exeext
 
8649
if { (ac_try="$ac_link"
 
8650
case "(($ac_try" in
 
8651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8652
  *) ac_try_echo=$ac_try;;
 
8653
esac
 
8654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8655
  (eval "$ac_link") 2>&5
 
8656
  ac_status=$?
 
8657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8658
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8659
  { (case "(($ac_try" in
 
8660
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8661
  *) ac_try_echo=$ac_try;;
 
8662
esac
 
8663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8664
  (eval "$ac_try") 2>&5
 
8665
  ac_status=$?
 
8666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8667
  (exit $ac_status); }; }; then
 
8668
  ac_cv_sizeof_short=`cat conftest.val`
 
8669
else
 
8670
  echo "$as_me: program exited with status $ac_status" >&5
 
8671
echo "$as_me: failed program was:" >&5
 
8672
sed 's/^/| /' conftest.$ac_ext >&5
 
8673
 
 
8674
( exit $ac_status )
 
8675
if test "$ac_cv_type_short" = yes; then
 
8676
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
8677
See \`config.log' for more details." >&5
 
8678
echo "$as_me: error: cannot compute sizeof (short)
 
8679
See \`config.log' for more details." >&2;}
 
8680
   { (exit 77); exit 77; }; }
 
8681
   else
 
8682
     ac_cv_sizeof_short=0
 
8683
   fi
 
8684
fi
 
8685
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8686
fi
 
8687
rm -f conftest.val
 
8688
fi
 
8689
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
8690
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
 
8691
 
 
8692
 
 
8693
 
 
8694
cat >>confdefs.h <<_ACEOF
 
8695
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
8696
_ACEOF
 
8697
 
 
8698
 
 
8699
{ echo "$as_me:$LINENO: checking for float" >&5
 
8700
echo $ECHO_N "checking for float... $ECHO_C" >&6; }
 
8701
if test "${ac_cv_type_float+set}" = set; then
 
8702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8703
else
 
8704
  cat >conftest.$ac_ext <<_ACEOF
 
8705
/* confdefs.h.  */
 
8706
_ACEOF
 
8707
cat confdefs.h >>conftest.$ac_ext
 
8708
cat >>conftest.$ac_ext <<_ACEOF
 
8709
/* end confdefs.h.  */
 
8710
$ac_includes_default
 
8711
typedef float ac__type_new_;
 
8712
int
 
8713
main ()
 
8714
{
 
8715
if ((ac__type_new_ *) 0)
 
8716
  return 0;
 
8717
if (sizeof (ac__type_new_))
 
8718
  return 0;
 
8719
  ;
 
8720
  return 0;
 
8721
}
 
8722
_ACEOF
 
8723
rm -f conftest.$ac_objext
 
8724
if { (ac_try="$ac_compile"
 
8725
case "(($ac_try" in
 
8726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8727
  *) ac_try_echo=$ac_try;;
 
8728
esac
 
8729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8730
  (eval "$ac_compile") 2>conftest.er1
 
8731
  ac_status=$?
 
8732
  grep -v '^ *+' conftest.er1 >conftest.err
 
8733
  rm -f conftest.er1
 
8734
  cat conftest.err >&5
 
8735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8736
  (exit $ac_status); } && {
 
8737
         test -z "$ac_c_werror_flag" ||
 
8738
         test ! -s conftest.err
 
8739
       } && test -s conftest.$ac_objext; then
 
8740
  ac_cv_type_float=yes
 
8741
else
 
8742
  echo "$as_me: failed program was:" >&5
 
8743
sed 's/^/| /' conftest.$ac_ext >&5
 
8744
 
 
8745
        ac_cv_type_float=no
 
8746
fi
 
8747
 
 
8748
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8749
fi
 
8750
{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
 
8751
echo "${ECHO_T}$ac_cv_type_float" >&6; }
 
8752
 
 
8753
# The cast to long int works around a bug in the HP C Compiler
 
8754
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
8755
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
8756
# This bug is HP SR number 8606223364.
 
8757
{ echo "$as_me:$LINENO: checking size of float" >&5
 
8758
echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
 
8759
if test "${ac_cv_sizeof_float+set}" = set; then
 
8760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8761
else
 
8762
  if test "$cross_compiling" = yes; then
 
8763
  # Depending upon the size, compute the lo and hi bounds.
 
8764
cat >conftest.$ac_ext <<_ACEOF
 
8765
/* confdefs.h.  */
 
8766
_ACEOF
 
8767
cat confdefs.h >>conftest.$ac_ext
 
8768
cat >>conftest.$ac_ext <<_ACEOF
 
8769
/* end confdefs.h.  */
 
8770
$ac_includes_default
 
8771
   typedef float ac__type_sizeof_;
 
8772
int
 
8773
main ()
 
8774
{
 
8775
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
8776
test_array [0] = 0
 
8777
 
 
8778
  ;
 
8779
  return 0;
 
8780
}
 
8781
_ACEOF
 
8782
rm -f conftest.$ac_objext
 
8783
if { (ac_try="$ac_compile"
 
8784
case "(($ac_try" in
 
8785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8786
  *) ac_try_echo=$ac_try;;
 
8787
esac
 
8788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8789
  (eval "$ac_compile") 2>conftest.er1
 
8790
  ac_status=$?
 
8791
  grep -v '^ *+' conftest.er1 >conftest.err
 
8792
  rm -f conftest.er1
 
8793
  cat conftest.err >&5
 
8794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8795
  (exit $ac_status); } && {
 
8796
         test -z "$ac_c_werror_flag" ||
 
8797
         test ! -s conftest.err
 
8798
       } && test -s conftest.$ac_objext; then
 
8799
  ac_lo=0 ac_mid=0
 
8800
  while :; do
 
8801
    cat >conftest.$ac_ext <<_ACEOF
 
8802
/* confdefs.h.  */
 
8803
_ACEOF
 
8804
cat confdefs.h >>conftest.$ac_ext
 
8805
cat >>conftest.$ac_ext <<_ACEOF
 
8806
/* end confdefs.h.  */
 
8807
$ac_includes_default
 
8808
   typedef float ac__type_sizeof_;
 
8809
int
 
8810
main ()
 
8811
{
 
8812
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8813
test_array [0] = 0
 
8814
 
 
8815
  ;
 
8816
  return 0;
 
8817
}
 
8818
_ACEOF
 
8819
rm -f conftest.$ac_objext
 
8820
if { (ac_try="$ac_compile"
 
8821
case "(($ac_try" in
 
8822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8823
  *) ac_try_echo=$ac_try;;
 
8824
esac
 
8825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8826
  (eval "$ac_compile") 2>conftest.er1
 
8827
  ac_status=$?
 
8828
  grep -v '^ *+' conftest.er1 >conftest.err
 
8829
  rm -f conftest.er1
 
8830
  cat conftest.err >&5
 
8831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8832
  (exit $ac_status); } && {
 
8833
         test -z "$ac_c_werror_flag" ||
 
8834
         test ! -s conftest.err
 
8835
       } && test -s conftest.$ac_objext; then
 
8836
  ac_hi=$ac_mid; break
 
8837
else
 
8838
  echo "$as_me: failed program was:" >&5
 
8839
sed 's/^/| /' conftest.$ac_ext >&5
 
8840
 
 
8841
        ac_lo=`expr $ac_mid + 1`
 
8842
                        if test $ac_lo -le $ac_mid; then
 
8843
                          ac_lo= ac_hi=
 
8844
                          break
 
8845
                        fi
 
8846
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
8847
fi
 
8848
 
 
8849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8850
  done
 
8851
else
 
8852
  echo "$as_me: failed program was:" >&5
 
8853
sed 's/^/| /' conftest.$ac_ext >&5
 
8854
 
 
8855
        cat >conftest.$ac_ext <<_ACEOF
 
8856
/* confdefs.h.  */
 
8857
_ACEOF
 
8858
cat confdefs.h >>conftest.$ac_ext
 
8859
cat >>conftest.$ac_ext <<_ACEOF
 
8860
/* end confdefs.h.  */
 
8861
$ac_includes_default
 
8862
   typedef float ac__type_sizeof_;
 
8863
int
 
8864
main ()
 
8865
{
 
8866
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
8867
test_array [0] = 0
 
8868
 
 
8869
  ;
 
8870
  return 0;
 
8871
}
 
8872
_ACEOF
 
8873
rm -f conftest.$ac_objext
 
8874
if { (ac_try="$ac_compile"
 
8875
case "(($ac_try" in
 
8876
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8877
  *) ac_try_echo=$ac_try;;
 
8878
esac
 
8879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8880
  (eval "$ac_compile") 2>conftest.er1
 
8881
  ac_status=$?
 
8882
  grep -v '^ *+' conftest.er1 >conftest.err
 
8883
  rm -f conftest.er1
 
8884
  cat conftest.err >&5
 
8885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8886
  (exit $ac_status); } && {
 
8887
         test -z "$ac_c_werror_flag" ||
 
8888
         test ! -s conftest.err
 
8889
       } && test -s conftest.$ac_objext; then
 
8890
  ac_hi=-1 ac_mid=-1
 
8891
  while :; do
 
8892
    cat >conftest.$ac_ext <<_ACEOF
 
8893
/* confdefs.h.  */
 
8894
_ACEOF
 
8895
cat confdefs.h >>conftest.$ac_ext
 
8896
cat >>conftest.$ac_ext <<_ACEOF
 
8897
/* end confdefs.h.  */
 
8898
$ac_includes_default
 
8899
   typedef float ac__type_sizeof_;
 
8900
int
 
8901
main ()
 
8902
{
 
8903
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
8904
test_array [0] = 0
 
8905
 
 
8906
  ;
 
8907
  return 0;
 
8908
}
 
8909
_ACEOF
 
8910
rm -f conftest.$ac_objext
 
8911
if { (ac_try="$ac_compile"
 
8912
case "(($ac_try" in
 
8913
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8914
  *) ac_try_echo=$ac_try;;
 
8915
esac
 
8916
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8917
  (eval "$ac_compile") 2>conftest.er1
 
8918
  ac_status=$?
 
8919
  grep -v '^ *+' conftest.er1 >conftest.err
 
8920
  rm -f conftest.er1
 
8921
  cat conftest.err >&5
 
8922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8923
  (exit $ac_status); } && {
 
8924
         test -z "$ac_c_werror_flag" ||
 
8925
         test ! -s conftest.err
 
8926
       } && test -s conftest.$ac_objext; then
 
8927
  ac_lo=$ac_mid; break
 
8928
else
 
8929
  echo "$as_me: failed program was:" >&5
 
8930
sed 's/^/| /' conftest.$ac_ext >&5
 
8931
 
 
8932
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
8933
                        if test $ac_mid -le $ac_hi; then
 
8934
                          ac_lo= ac_hi=
 
8935
                          break
 
8936
                        fi
 
8937
                        ac_mid=`expr 2 '*' $ac_mid`
 
8938
fi
 
8939
 
 
8940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8941
  done
 
8942
else
 
8943
  echo "$as_me: failed program was:" >&5
 
8944
sed 's/^/| /' conftest.$ac_ext >&5
 
8945
 
 
8946
        ac_lo= ac_hi=
 
8947
fi
 
8948
 
 
8949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8950
fi
 
8951
 
 
8952
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8953
# Binary search between lo and hi bounds.
 
8954
while test "x$ac_lo" != "x$ac_hi"; do
 
8955
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
8956
  cat >conftest.$ac_ext <<_ACEOF
 
8957
/* confdefs.h.  */
 
8958
_ACEOF
 
8959
cat confdefs.h >>conftest.$ac_ext
 
8960
cat >>conftest.$ac_ext <<_ACEOF
 
8961
/* end confdefs.h.  */
 
8962
$ac_includes_default
 
8963
   typedef float ac__type_sizeof_;
 
8964
int
 
8965
main ()
 
8966
{
 
8967
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8968
test_array [0] = 0
 
8969
 
 
8970
  ;
 
8971
  return 0;
 
8972
}
 
8973
_ACEOF
 
8974
rm -f conftest.$ac_objext
 
8975
if { (ac_try="$ac_compile"
 
8976
case "(($ac_try" in
 
8977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8978
  *) ac_try_echo=$ac_try;;
 
8979
esac
 
8980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8981
  (eval "$ac_compile") 2>conftest.er1
 
8982
  ac_status=$?
 
8983
  grep -v '^ *+' conftest.er1 >conftest.err
 
8984
  rm -f conftest.er1
 
8985
  cat conftest.err >&5
 
8986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8987
  (exit $ac_status); } && {
 
8988
         test -z "$ac_c_werror_flag" ||
 
8989
         test ! -s conftest.err
 
8990
       } && test -s conftest.$ac_objext; then
 
8991
  ac_hi=$ac_mid
 
8992
else
 
8993
  echo "$as_me: failed program was:" >&5
 
8994
sed 's/^/| /' conftest.$ac_ext >&5
 
8995
 
 
8996
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
8997
fi
 
8998
 
 
8999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9000
done
 
9001
case $ac_lo in
 
9002
?*) ac_cv_sizeof_float=$ac_lo;;
 
9003
'') if test "$ac_cv_type_float" = yes; then
 
9004
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
 
9005
See \`config.log' for more details." >&5
 
9006
echo "$as_me: error: cannot compute sizeof (float)
 
9007
See \`config.log' for more details." >&2;}
 
9008
   { (exit 77); exit 77; }; }
 
9009
   else
 
9010
     ac_cv_sizeof_float=0
 
9011
   fi ;;
 
9012
esac
 
9013
else
 
9014
  cat >conftest.$ac_ext <<_ACEOF
 
9015
/* confdefs.h.  */
 
9016
_ACEOF
 
9017
cat confdefs.h >>conftest.$ac_ext
 
9018
cat >>conftest.$ac_ext <<_ACEOF
 
9019
/* end confdefs.h.  */
 
9020
$ac_includes_default
 
9021
   typedef float ac__type_sizeof_;
 
9022
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
9023
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
9024
#include <stdio.h>
 
9025
#include <stdlib.h>
 
9026
int
 
9027
main ()
 
9028
{
 
9029
 
 
9030
  FILE *f = fopen ("conftest.val", "w");
 
9031
  if (! f)
 
9032
    return 1;
 
9033
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
9034
    {
 
9035
      long int i = longval ();
 
9036
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9037
        return 1;
 
9038
      fprintf (f, "%ld\n", i);
 
9039
    }
 
9040
  else
 
9041
    {
 
9042
      unsigned long int i = ulongval ();
 
9043
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9044
        return 1;
 
9045
      fprintf (f, "%lu\n", i);
 
9046
    }
 
9047
  return ferror (f) || fclose (f) != 0;
 
9048
 
 
9049
  ;
 
9050
  return 0;
 
9051
}
 
9052
_ACEOF
 
9053
rm -f conftest$ac_exeext
 
9054
if { (ac_try="$ac_link"
 
9055
case "(($ac_try" in
 
9056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9057
  *) ac_try_echo=$ac_try;;
 
9058
esac
 
9059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9060
  (eval "$ac_link") 2>&5
 
9061
  ac_status=$?
 
9062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9063
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9064
  { (case "(($ac_try" in
 
9065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9066
  *) ac_try_echo=$ac_try;;
 
9067
esac
 
9068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9069
  (eval "$ac_try") 2>&5
 
9070
  ac_status=$?
 
9071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9072
  (exit $ac_status); }; }; then
 
9073
  ac_cv_sizeof_float=`cat conftest.val`
 
9074
else
 
9075
  echo "$as_me: program exited with status $ac_status" >&5
 
9076
echo "$as_me: failed program was:" >&5
 
9077
sed 's/^/| /' conftest.$ac_ext >&5
 
9078
 
 
9079
( exit $ac_status )
 
9080
if test "$ac_cv_type_float" = yes; then
 
9081
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
 
9082
See \`config.log' for more details." >&5
 
9083
echo "$as_me: error: cannot compute sizeof (float)
 
9084
See \`config.log' for more details." >&2;}
 
9085
   { (exit 77); exit 77; }; }
 
9086
   else
 
9087
     ac_cv_sizeof_float=0
 
9088
   fi
 
9089
fi
 
9090
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9091
fi
 
9092
rm -f conftest.val
 
9093
fi
 
9094
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
 
9095
echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
 
9096
 
 
9097
 
 
9098
 
 
9099
cat >>confdefs.h <<_ACEOF
 
9100
#define SIZEOF_FLOAT $ac_cv_sizeof_float
 
9101
_ACEOF
 
9102
 
 
9103
 
 
9104
{ echo "$as_me:$LINENO: checking for double" >&5
 
9105
echo $ECHO_N "checking for double... $ECHO_C" >&6; }
 
9106
if test "${ac_cv_type_double+set}" = set; then
 
9107
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9108
else
 
9109
  cat >conftest.$ac_ext <<_ACEOF
 
9110
/* confdefs.h.  */
 
9111
_ACEOF
 
9112
cat confdefs.h >>conftest.$ac_ext
 
9113
cat >>conftest.$ac_ext <<_ACEOF
 
9114
/* end confdefs.h.  */
 
9115
$ac_includes_default
 
9116
typedef double ac__type_new_;
 
9117
int
 
9118
main ()
 
9119
{
 
9120
if ((ac__type_new_ *) 0)
 
9121
  return 0;
 
9122
if (sizeof (ac__type_new_))
 
9123
  return 0;
 
9124
  ;
 
9125
  return 0;
 
9126
}
 
9127
_ACEOF
 
9128
rm -f conftest.$ac_objext
 
9129
if { (ac_try="$ac_compile"
 
9130
case "(($ac_try" in
 
9131
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9132
  *) ac_try_echo=$ac_try;;
 
9133
esac
 
9134
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9135
  (eval "$ac_compile") 2>conftest.er1
 
9136
  ac_status=$?
 
9137
  grep -v '^ *+' conftest.er1 >conftest.err
 
9138
  rm -f conftest.er1
 
9139
  cat conftest.err >&5
 
9140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9141
  (exit $ac_status); } && {
 
9142
         test -z "$ac_c_werror_flag" ||
 
9143
         test ! -s conftest.err
 
9144
       } && test -s conftest.$ac_objext; then
 
9145
  ac_cv_type_double=yes
 
9146
else
 
9147
  echo "$as_me: failed program was:" >&5
 
9148
sed 's/^/| /' conftest.$ac_ext >&5
 
9149
 
 
9150
        ac_cv_type_double=no
 
9151
fi
 
9152
 
 
9153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9154
fi
 
9155
{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
 
9156
echo "${ECHO_T}$ac_cv_type_double" >&6; }
 
9157
 
 
9158
# The cast to long int works around a bug in the HP C Compiler
 
9159
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9160
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9161
# This bug is HP SR number 8606223364.
 
9162
{ echo "$as_me:$LINENO: checking size of double" >&5
 
9163
echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
 
9164
if test "${ac_cv_sizeof_double+set}" = set; then
 
9165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9166
else
 
9167
  if test "$cross_compiling" = yes; then
 
9168
  # Depending upon the size, compute the lo and hi bounds.
 
9169
cat >conftest.$ac_ext <<_ACEOF
 
9170
/* confdefs.h.  */
 
9171
_ACEOF
 
9172
cat confdefs.h >>conftest.$ac_ext
 
9173
cat >>conftest.$ac_ext <<_ACEOF
 
9174
/* end confdefs.h.  */
 
9175
$ac_includes_default
 
9176
   typedef double ac__type_sizeof_;
 
9177
int
 
9178
main ()
 
9179
{
 
9180
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
9181
test_array [0] = 0
 
9182
 
 
9183
  ;
 
9184
  return 0;
 
9185
}
 
9186
_ACEOF
 
9187
rm -f conftest.$ac_objext
 
9188
if { (ac_try="$ac_compile"
 
9189
case "(($ac_try" in
 
9190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9191
  *) ac_try_echo=$ac_try;;
 
9192
esac
 
9193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9194
  (eval "$ac_compile") 2>conftest.er1
 
9195
  ac_status=$?
 
9196
  grep -v '^ *+' conftest.er1 >conftest.err
 
9197
  rm -f conftest.er1
 
9198
  cat conftest.err >&5
 
9199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9200
  (exit $ac_status); } && {
 
9201
         test -z "$ac_c_werror_flag" ||
 
9202
         test ! -s conftest.err
 
9203
       } && test -s conftest.$ac_objext; then
 
9204
  ac_lo=0 ac_mid=0
 
9205
  while :; do
 
9206
    cat >conftest.$ac_ext <<_ACEOF
 
9207
/* confdefs.h.  */
 
9208
_ACEOF
 
9209
cat confdefs.h >>conftest.$ac_ext
 
9210
cat >>conftest.$ac_ext <<_ACEOF
 
9211
/* end confdefs.h.  */
 
9212
$ac_includes_default
 
9213
   typedef double ac__type_sizeof_;
 
9214
int
 
9215
main ()
 
9216
{
 
9217
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
9218
test_array [0] = 0
 
9219
 
 
9220
  ;
 
9221
  return 0;
 
9222
}
 
9223
_ACEOF
 
9224
rm -f conftest.$ac_objext
 
9225
if { (ac_try="$ac_compile"
 
9226
case "(($ac_try" in
 
9227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9228
  *) ac_try_echo=$ac_try;;
 
9229
esac
 
9230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9231
  (eval "$ac_compile") 2>conftest.er1
 
9232
  ac_status=$?
 
9233
  grep -v '^ *+' conftest.er1 >conftest.err
 
9234
  rm -f conftest.er1
 
9235
  cat conftest.err >&5
 
9236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9237
  (exit $ac_status); } && {
 
9238
         test -z "$ac_c_werror_flag" ||
 
9239
         test ! -s conftest.err
 
9240
       } && test -s conftest.$ac_objext; then
 
9241
  ac_hi=$ac_mid; break
 
9242
else
 
9243
  echo "$as_me: failed program was:" >&5
 
9244
sed 's/^/| /' conftest.$ac_ext >&5
 
9245
 
 
9246
        ac_lo=`expr $ac_mid + 1`
 
9247
                        if test $ac_lo -le $ac_mid; then
 
9248
                          ac_lo= ac_hi=
 
9249
                          break
 
9250
                        fi
 
9251
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
9252
fi
 
9253
 
 
9254
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9255
  done
 
9256
else
 
9257
  echo "$as_me: failed program was:" >&5
 
9258
sed 's/^/| /' conftest.$ac_ext >&5
 
9259
 
 
9260
        cat >conftest.$ac_ext <<_ACEOF
 
9261
/* confdefs.h.  */
 
9262
_ACEOF
 
9263
cat confdefs.h >>conftest.$ac_ext
 
9264
cat >>conftest.$ac_ext <<_ACEOF
 
9265
/* end confdefs.h.  */
 
9266
$ac_includes_default
 
9267
   typedef double ac__type_sizeof_;
 
9268
int
 
9269
main ()
 
9270
{
 
9271
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
9272
test_array [0] = 0
 
9273
 
 
9274
  ;
 
9275
  return 0;
 
9276
}
 
9277
_ACEOF
 
9278
rm -f conftest.$ac_objext
 
9279
if { (ac_try="$ac_compile"
 
9280
case "(($ac_try" in
 
9281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9282
  *) ac_try_echo=$ac_try;;
 
9283
esac
 
9284
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9285
  (eval "$ac_compile") 2>conftest.er1
 
9286
  ac_status=$?
 
9287
  grep -v '^ *+' conftest.er1 >conftest.err
 
9288
  rm -f conftest.er1
 
9289
  cat conftest.err >&5
 
9290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9291
  (exit $ac_status); } && {
 
9292
         test -z "$ac_c_werror_flag" ||
 
9293
         test ! -s conftest.err
 
9294
       } && test -s conftest.$ac_objext; then
 
9295
  ac_hi=-1 ac_mid=-1
 
9296
  while :; do
 
9297
    cat >conftest.$ac_ext <<_ACEOF
 
9298
/* confdefs.h.  */
 
9299
_ACEOF
 
9300
cat confdefs.h >>conftest.$ac_ext
 
9301
cat >>conftest.$ac_ext <<_ACEOF
 
9302
/* end confdefs.h.  */
 
9303
$ac_includes_default
 
9304
   typedef double ac__type_sizeof_;
 
9305
int
 
9306
main ()
 
9307
{
 
9308
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
9309
test_array [0] = 0
 
9310
 
 
9311
  ;
 
9312
  return 0;
 
9313
}
 
9314
_ACEOF
 
9315
rm -f conftest.$ac_objext
 
9316
if { (ac_try="$ac_compile"
 
9317
case "(($ac_try" in
 
9318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9319
  *) ac_try_echo=$ac_try;;
 
9320
esac
 
9321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9322
  (eval "$ac_compile") 2>conftest.er1
 
9323
  ac_status=$?
 
9324
  grep -v '^ *+' conftest.er1 >conftest.err
 
9325
  rm -f conftest.er1
 
9326
  cat conftest.err >&5
 
9327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9328
  (exit $ac_status); } && {
 
9329
         test -z "$ac_c_werror_flag" ||
 
9330
         test ! -s conftest.err
 
9331
       } && test -s conftest.$ac_objext; then
 
9332
  ac_lo=$ac_mid; break
 
9333
else
 
9334
  echo "$as_me: failed program was:" >&5
 
9335
sed 's/^/| /' conftest.$ac_ext >&5
 
9336
 
 
9337
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
9338
                        if test $ac_mid -le $ac_hi; then
 
9339
                          ac_lo= ac_hi=
 
9340
                          break
 
9341
                        fi
 
9342
                        ac_mid=`expr 2 '*' $ac_mid`
 
9343
fi
 
9344
 
 
9345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9346
  done
 
9347
else
 
9348
  echo "$as_me: failed program was:" >&5
 
9349
sed 's/^/| /' conftest.$ac_ext >&5
 
9350
 
 
9351
        ac_lo= ac_hi=
 
9352
fi
 
9353
 
 
9354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9355
fi
 
9356
 
 
9357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9358
# Binary search between lo and hi bounds.
 
9359
while test "x$ac_lo" != "x$ac_hi"; do
 
9360
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
9361
  cat >conftest.$ac_ext <<_ACEOF
 
9362
/* confdefs.h.  */
 
9363
_ACEOF
 
9364
cat confdefs.h >>conftest.$ac_ext
 
9365
cat >>conftest.$ac_ext <<_ACEOF
 
9366
/* end confdefs.h.  */
 
9367
$ac_includes_default
 
9368
   typedef double ac__type_sizeof_;
 
9369
int
 
9370
main ()
 
9371
{
 
9372
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
9373
test_array [0] = 0
 
9374
 
 
9375
  ;
 
9376
  return 0;
 
9377
}
 
9378
_ACEOF
 
9379
rm -f conftest.$ac_objext
 
9380
if { (ac_try="$ac_compile"
 
9381
case "(($ac_try" in
 
9382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9383
  *) ac_try_echo=$ac_try;;
 
9384
esac
 
9385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9386
  (eval "$ac_compile") 2>conftest.er1
 
9387
  ac_status=$?
 
9388
  grep -v '^ *+' conftest.er1 >conftest.err
 
9389
  rm -f conftest.er1
 
9390
  cat conftest.err >&5
 
9391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9392
  (exit $ac_status); } && {
 
9393
         test -z "$ac_c_werror_flag" ||
 
9394
         test ! -s conftest.err
 
9395
       } && test -s conftest.$ac_objext; then
 
9396
  ac_hi=$ac_mid
 
9397
else
 
9398
  echo "$as_me: failed program was:" >&5
 
9399
sed 's/^/| /' conftest.$ac_ext >&5
 
9400
 
 
9401
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
9402
fi
 
9403
 
 
9404
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9405
done
 
9406
case $ac_lo in
 
9407
?*) ac_cv_sizeof_double=$ac_lo;;
 
9408
'') if test "$ac_cv_type_double" = yes; then
 
9409
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
 
9410
See \`config.log' for more details." >&5
 
9411
echo "$as_me: error: cannot compute sizeof (double)
 
9412
See \`config.log' for more details." >&2;}
 
9413
   { (exit 77); exit 77; }; }
 
9414
   else
 
9415
     ac_cv_sizeof_double=0
 
9416
   fi ;;
 
9417
esac
 
9418
else
 
9419
  cat >conftest.$ac_ext <<_ACEOF
 
9420
/* confdefs.h.  */
 
9421
_ACEOF
 
9422
cat confdefs.h >>conftest.$ac_ext
 
9423
cat >>conftest.$ac_ext <<_ACEOF
 
9424
/* end confdefs.h.  */
 
9425
$ac_includes_default
 
9426
   typedef double ac__type_sizeof_;
 
9427
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
9428
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
9429
#include <stdio.h>
 
9430
#include <stdlib.h>
 
9431
int
 
9432
main ()
 
9433
{
 
9434
 
 
9435
  FILE *f = fopen ("conftest.val", "w");
 
9436
  if (! f)
 
9437
    return 1;
 
9438
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
9439
    {
 
9440
      long int i = longval ();
 
9441
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9442
        return 1;
 
9443
      fprintf (f, "%ld\n", i);
 
9444
    }
 
9445
  else
 
9446
    {
 
9447
      unsigned long int i = ulongval ();
 
9448
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9449
        return 1;
 
9450
      fprintf (f, "%lu\n", i);
 
9451
    }
 
9452
  return ferror (f) || fclose (f) != 0;
 
9453
 
 
9454
  ;
 
9455
  return 0;
 
9456
}
 
9457
_ACEOF
 
9458
rm -f conftest$ac_exeext
 
9459
if { (ac_try="$ac_link"
 
9460
case "(($ac_try" in
 
9461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9462
  *) ac_try_echo=$ac_try;;
 
9463
esac
 
9464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9465
  (eval "$ac_link") 2>&5
 
9466
  ac_status=$?
 
9467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9468
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9469
  { (case "(($ac_try" in
 
9470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9471
  *) ac_try_echo=$ac_try;;
 
9472
esac
 
9473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9474
  (eval "$ac_try") 2>&5
 
9475
  ac_status=$?
 
9476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9477
  (exit $ac_status); }; }; then
 
9478
  ac_cv_sizeof_double=`cat conftest.val`
 
9479
else
 
9480
  echo "$as_me: program exited with status $ac_status" >&5
 
9481
echo "$as_me: failed program was:" >&5
 
9482
sed 's/^/| /' conftest.$ac_ext >&5
 
9483
 
 
9484
( exit $ac_status )
 
9485
if test "$ac_cv_type_double" = yes; then
 
9486
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
 
9487
See \`config.log' for more details." >&5
 
9488
echo "$as_me: error: cannot compute sizeof (double)
 
9489
See \`config.log' for more details." >&2;}
 
9490
   { (exit 77); exit 77; }; }
 
9491
   else
 
9492
     ac_cv_sizeof_double=0
 
9493
   fi
 
9494
fi
 
9495
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9496
fi
 
9497
rm -f conftest.val
 
9498
fi
 
9499
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
 
9500
echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
 
9501
 
 
9502
 
 
9503
 
 
9504
cat >>confdefs.h <<_ACEOF
 
9505
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
 
9506
_ACEOF
 
9507
 
 
9508
 
 
9509
{ echo "$as_me:$LINENO: checking for fpos_t" >&5
 
9510
echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
 
9511
if test "${ac_cv_type_fpos_t+set}" = set; then
 
9512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9513
else
 
9514
  cat >conftest.$ac_ext <<_ACEOF
 
9515
/* confdefs.h.  */
 
9516
_ACEOF
 
9517
cat confdefs.h >>conftest.$ac_ext
 
9518
cat >>conftest.$ac_ext <<_ACEOF
 
9519
/* end confdefs.h.  */
 
9520
$ac_includes_default
 
9521
typedef fpos_t ac__type_new_;
 
9522
int
 
9523
main ()
 
9524
{
 
9525
if ((ac__type_new_ *) 0)
 
9526
  return 0;
 
9527
if (sizeof (ac__type_new_))
 
9528
  return 0;
 
9529
  ;
 
9530
  return 0;
 
9531
}
 
9532
_ACEOF
 
9533
rm -f conftest.$ac_objext
 
9534
if { (ac_try="$ac_compile"
 
9535
case "(($ac_try" in
 
9536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9537
  *) ac_try_echo=$ac_try;;
 
9538
esac
 
9539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9540
  (eval "$ac_compile") 2>conftest.er1
 
9541
  ac_status=$?
 
9542
  grep -v '^ *+' conftest.er1 >conftest.err
 
9543
  rm -f conftest.er1
 
9544
  cat conftest.err >&5
 
9545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9546
  (exit $ac_status); } && {
 
9547
         test -z "$ac_c_werror_flag" ||
 
9548
         test ! -s conftest.err
 
9549
       } && test -s conftest.$ac_objext; then
 
9550
  ac_cv_type_fpos_t=yes
 
9551
else
 
9552
  echo "$as_me: failed program was:" >&5
 
9553
sed 's/^/| /' conftest.$ac_ext >&5
 
9554
 
 
9555
        ac_cv_type_fpos_t=no
 
9556
fi
 
9557
 
 
9558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9559
fi
 
9560
{ echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
 
9561
echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
 
9562
 
 
9563
# The cast to long int works around a bug in the HP C Compiler
 
9564
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9565
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9566
# This bug is HP SR number 8606223364.
 
9567
{ echo "$as_me:$LINENO: checking size of fpos_t" >&5
 
9568
echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
 
9569
if test "${ac_cv_sizeof_fpos_t+set}" = set; then
 
9570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9571
else
 
9572
  if test "$cross_compiling" = yes; then
 
9573
  # Depending upon the size, compute the lo and hi bounds.
 
9574
cat >conftest.$ac_ext <<_ACEOF
 
9575
/* confdefs.h.  */
 
9576
_ACEOF
 
9577
cat confdefs.h >>conftest.$ac_ext
 
9578
cat >>conftest.$ac_ext <<_ACEOF
 
9579
/* end confdefs.h.  */
 
9580
$ac_includes_default
 
9581
   typedef fpos_t ac__type_sizeof_;
 
9582
int
 
9583
main ()
 
9584
{
 
9585
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
9586
test_array [0] = 0
 
9587
 
 
9588
  ;
 
9589
  return 0;
 
9590
}
 
9591
_ACEOF
 
9592
rm -f conftest.$ac_objext
 
9593
if { (ac_try="$ac_compile"
 
9594
case "(($ac_try" in
 
9595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9596
  *) ac_try_echo=$ac_try;;
 
9597
esac
 
9598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9599
  (eval "$ac_compile") 2>conftest.er1
 
9600
  ac_status=$?
 
9601
  grep -v '^ *+' conftest.er1 >conftest.err
 
9602
  rm -f conftest.er1
 
9603
  cat conftest.err >&5
 
9604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9605
  (exit $ac_status); } && {
 
9606
         test -z "$ac_c_werror_flag" ||
 
9607
         test ! -s conftest.err
 
9608
       } && test -s conftest.$ac_objext; then
 
9609
  ac_lo=0 ac_mid=0
 
9610
  while :; do
 
9611
    cat >conftest.$ac_ext <<_ACEOF
 
9612
/* confdefs.h.  */
 
9613
_ACEOF
 
9614
cat confdefs.h >>conftest.$ac_ext
 
9615
cat >>conftest.$ac_ext <<_ACEOF
 
9616
/* end confdefs.h.  */
 
9617
$ac_includes_default
 
9618
   typedef fpos_t ac__type_sizeof_;
 
9619
int
 
9620
main ()
 
9621
{
 
9622
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
9623
test_array [0] = 0
 
9624
 
 
9625
  ;
 
9626
  return 0;
 
9627
}
 
9628
_ACEOF
 
9629
rm -f conftest.$ac_objext
 
9630
if { (ac_try="$ac_compile"
 
9631
case "(($ac_try" in
 
9632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9633
  *) ac_try_echo=$ac_try;;
 
9634
esac
 
9635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9636
  (eval "$ac_compile") 2>conftest.er1
 
9637
  ac_status=$?
 
9638
  grep -v '^ *+' conftest.er1 >conftest.err
 
9639
  rm -f conftest.er1
 
9640
  cat conftest.err >&5
 
9641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9642
  (exit $ac_status); } && {
 
9643
         test -z "$ac_c_werror_flag" ||
 
9644
         test ! -s conftest.err
 
9645
       } && test -s conftest.$ac_objext; then
 
9646
  ac_hi=$ac_mid; break
 
9647
else
 
9648
  echo "$as_me: failed program was:" >&5
 
9649
sed 's/^/| /' conftest.$ac_ext >&5
 
9650
 
 
9651
        ac_lo=`expr $ac_mid + 1`
 
9652
                        if test $ac_lo -le $ac_mid; then
 
9653
                          ac_lo= ac_hi=
 
9654
                          break
 
9655
                        fi
 
9656
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
9657
fi
 
9658
 
 
9659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9660
  done
 
9661
else
 
9662
  echo "$as_me: failed program was:" >&5
 
9663
sed 's/^/| /' conftest.$ac_ext >&5
 
9664
 
 
9665
        cat >conftest.$ac_ext <<_ACEOF
 
9666
/* confdefs.h.  */
 
9667
_ACEOF
 
9668
cat confdefs.h >>conftest.$ac_ext
 
9669
cat >>conftest.$ac_ext <<_ACEOF
 
9670
/* end confdefs.h.  */
 
9671
$ac_includes_default
 
9672
   typedef fpos_t ac__type_sizeof_;
 
9673
int
 
9674
main ()
 
9675
{
 
9676
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
9677
test_array [0] = 0
 
9678
 
 
9679
  ;
 
9680
  return 0;
 
9681
}
 
9682
_ACEOF
 
9683
rm -f conftest.$ac_objext
 
9684
if { (ac_try="$ac_compile"
 
9685
case "(($ac_try" in
 
9686
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9687
  *) ac_try_echo=$ac_try;;
 
9688
esac
 
9689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9690
  (eval "$ac_compile") 2>conftest.er1
 
9691
  ac_status=$?
 
9692
  grep -v '^ *+' conftest.er1 >conftest.err
 
9693
  rm -f conftest.er1
 
9694
  cat conftest.err >&5
 
9695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9696
  (exit $ac_status); } && {
 
9697
         test -z "$ac_c_werror_flag" ||
 
9698
         test ! -s conftest.err
 
9699
       } && test -s conftest.$ac_objext; then
 
9700
  ac_hi=-1 ac_mid=-1
 
9701
  while :; do
 
9702
    cat >conftest.$ac_ext <<_ACEOF
 
9703
/* confdefs.h.  */
 
9704
_ACEOF
 
9705
cat confdefs.h >>conftest.$ac_ext
 
9706
cat >>conftest.$ac_ext <<_ACEOF
 
9707
/* end confdefs.h.  */
 
9708
$ac_includes_default
 
9709
   typedef fpos_t ac__type_sizeof_;
 
9710
int
 
9711
main ()
 
9712
{
 
9713
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
9714
test_array [0] = 0
 
9715
 
 
9716
  ;
 
9717
  return 0;
 
9718
}
 
9719
_ACEOF
 
9720
rm -f conftest.$ac_objext
 
9721
if { (ac_try="$ac_compile"
 
9722
case "(($ac_try" in
 
9723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9724
  *) ac_try_echo=$ac_try;;
 
9725
esac
 
9726
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9727
  (eval "$ac_compile") 2>conftest.er1
 
9728
  ac_status=$?
 
9729
  grep -v '^ *+' conftest.er1 >conftest.err
 
9730
  rm -f conftest.er1
 
9731
  cat conftest.err >&5
 
9732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9733
  (exit $ac_status); } && {
 
9734
         test -z "$ac_c_werror_flag" ||
 
9735
         test ! -s conftest.err
 
9736
       } && test -s conftest.$ac_objext; then
 
9737
  ac_lo=$ac_mid; break
 
9738
else
 
9739
  echo "$as_me: failed program was:" >&5
 
9740
sed 's/^/| /' conftest.$ac_ext >&5
 
9741
 
 
9742
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
9743
                        if test $ac_mid -le $ac_hi; then
 
9744
                          ac_lo= ac_hi=
 
9745
                          break
 
9746
                        fi
 
9747
                        ac_mid=`expr 2 '*' $ac_mid`
 
9748
fi
 
9749
 
 
9750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9751
  done
 
9752
else
 
9753
  echo "$as_me: failed program was:" >&5
 
9754
sed 's/^/| /' conftest.$ac_ext >&5
 
9755
 
 
9756
        ac_lo= ac_hi=
 
9757
fi
 
9758
 
 
9759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9760
fi
 
9761
 
 
9762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9763
# Binary search between lo and hi bounds.
 
9764
while test "x$ac_lo" != "x$ac_hi"; do
 
9765
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
9766
  cat >conftest.$ac_ext <<_ACEOF
 
9767
/* confdefs.h.  */
 
9768
_ACEOF
 
9769
cat confdefs.h >>conftest.$ac_ext
 
9770
cat >>conftest.$ac_ext <<_ACEOF
 
9771
/* end confdefs.h.  */
 
9772
$ac_includes_default
 
9773
   typedef fpos_t ac__type_sizeof_;
 
9774
int
 
9775
main ()
 
9776
{
 
9777
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
9778
test_array [0] = 0
 
9779
 
 
9780
  ;
 
9781
  return 0;
 
9782
}
 
9783
_ACEOF
 
9784
rm -f conftest.$ac_objext
 
9785
if { (ac_try="$ac_compile"
 
9786
case "(($ac_try" in
 
9787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9788
  *) ac_try_echo=$ac_try;;
 
9789
esac
 
9790
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9791
  (eval "$ac_compile") 2>conftest.er1
 
9792
  ac_status=$?
 
9793
  grep -v '^ *+' conftest.er1 >conftest.err
 
9794
  rm -f conftest.er1
 
9795
  cat conftest.err >&5
 
9796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9797
  (exit $ac_status); } && {
 
9798
         test -z "$ac_c_werror_flag" ||
 
9799
         test ! -s conftest.err
 
9800
       } && test -s conftest.$ac_objext; then
 
9801
  ac_hi=$ac_mid
 
9802
else
 
9803
  echo "$as_me: failed program was:" >&5
 
9804
sed 's/^/| /' conftest.$ac_ext >&5
 
9805
 
 
9806
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
9807
fi
 
9808
 
 
9809
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9810
done
 
9811
case $ac_lo in
 
9812
?*) ac_cv_sizeof_fpos_t=$ac_lo;;
 
9813
'') if test "$ac_cv_type_fpos_t" = yes; then
 
9814
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
 
9815
See \`config.log' for more details." >&5
 
9816
echo "$as_me: error: cannot compute sizeof (fpos_t)
 
9817
See \`config.log' for more details." >&2;}
 
9818
   { (exit 77); exit 77; }; }
 
9819
   else
 
9820
     ac_cv_sizeof_fpos_t=0
 
9821
   fi ;;
 
9822
esac
 
9823
else
 
9824
  cat >conftest.$ac_ext <<_ACEOF
 
9825
/* confdefs.h.  */
 
9826
_ACEOF
 
9827
cat confdefs.h >>conftest.$ac_ext
 
9828
cat >>conftest.$ac_ext <<_ACEOF
 
9829
/* end confdefs.h.  */
 
9830
$ac_includes_default
 
9831
   typedef fpos_t ac__type_sizeof_;
 
9832
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
9833
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
9834
#include <stdio.h>
 
9835
#include <stdlib.h>
 
9836
int
 
9837
main ()
 
9838
{
 
9839
 
 
9840
  FILE *f = fopen ("conftest.val", "w");
 
9841
  if (! f)
 
9842
    return 1;
 
9843
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
9844
    {
 
9845
      long int i = longval ();
 
9846
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9847
        return 1;
 
9848
      fprintf (f, "%ld\n", i);
 
9849
    }
 
9850
  else
 
9851
    {
 
9852
      unsigned long int i = ulongval ();
 
9853
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9854
        return 1;
 
9855
      fprintf (f, "%lu\n", i);
 
9856
    }
 
9857
  return ferror (f) || fclose (f) != 0;
 
9858
 
 
9859
  ;
 
9860
  return 0;
 
9861
}
 
9862
_ACEOF
 
9863
rm -f conftest$ac_exeext
 
9864
if { (ac_try="$ac_link"
 
9865
case "(($ac_try" in
 
9866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9867
  *) ac_try_echo=$ac_try;;
 
9868
esac
 
9869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9870
  (eval "$ac_link") 2>&5
 
9871
  ac_status=$?
 
9872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9873
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9874
  { (case "(($ac_try" in
 
9875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9876
  *) ac_try_echo=$ac_try;;
 
9877
esac
 
9878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9879
  (eval "$ac_try") 2>&5
 
9880
  ac_status=$?
 
9881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9882
  (exit $ac_status); }; }; then
 
9883
  ac_cv_sizeof_fpos_t=`cat conftest.val`
 
9884
else
 
9885
  echo "$as_me: program exited with status $ac_status" >&5
 
9886
echo "$as_me: failed program was:" >&5
 
9887
sed 's/^/| /' conftest.$ac_ext >&5
 
9888
 
 
9889
( exit $ac_status )
 
9890
if test "$ac_cv_type_fpos_t" = yes; then
 
9891
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
 
9892
See \`config.log' for more details." >&5
 
9893
echo "$as_me: error: cannot compute sizeof (fpos_t)
 
9894
See \`config.log' for more details." >&2;}
 
9895
   { (exit 77); exit 77; }; }
 
9896
   else
 
9897
     ac_cv_sizeof_fpos_t=0
 
9898
   fi
 
9899
fi
 
9900
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9901
fi
 
9902
rm -f conftest.val
 
9903
fi
 
9904
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
 
9905
echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
 
9906
 
 
9907
 
 
9908
 
 
9909
cat >>confdefs.h <<_ACEOF
 
9910
#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
 
9911
_ACEOF
 
9912
 
 
9913
 
 
9914
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
9915
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
9916
if test "${ac_cv_type_size_t+set}" = set; then
 
9917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9918
else
 
9919
  cat >conftest.$ac_ext <<_ACEOF
 
9920
/* confdefs.h.  */
 
9921
_ACEOF
 
9922
cat confdefs.h >>conftest.$ac_ext
 
9923
cat >>conftest.$ac_ext <<_ACEOF
 
9924
/* end confdefs.h.  */
 
9925
$ac_includes_default
 
9926
typedef size_t ac__type_new_;
 
9927
int
 
9928
main ()
 
9929
{
 
9930
if ((ac__type_new_ *) 0)
 
9931
  return 0;
 
9932
if (sizeof (ac__type_new_))
 
9933
  return 0;
 
9934
  ;
 
9935
  return 0;
 
9936
}
 
9937
_ACEOF
 
9938
rm -f conftest.$ac_objext
 
9939
if { (ac_try="$ac_compile"
 
9940
case "(($ac_try" in
 
9941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9942
  *) ac_try_echo=$ac_try;;
 
9943
esac
 
9944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9945
  (eval "$ac_compile") 2>conftest.er1
 
9946
  ac_status=$?
 
9947
  grep -v '^ *+' conftest.er1 >conftest.err
 
9948
  rm -f conftest.er1
 
9949
  cat conftest.err >&5
 
9950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9951
  (exit $ac_status); } && {
 
9952
         test -z "$ac_c_werror_flag" ||
 
9953
         test ! -s conftest.err
 
9954
       } && test -s conftest.$ac_objext; then
 
9955
  ac_cv_type_size_t=yes
 
9956
else
 
9957
  echo "$as_me: failed program was:" >&5
 
9958
sed 's/^/| /' conftest.$ac_ext >&5
 
9959
 
 
9960
        ac_cv_type_size_t=no
 
9961
fi
 
9962
 
 
9963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9964
fi
 
9965
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
9966
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
9967
 
 
9968
# The cast to long int works around a bug in the HP C Compiler
 
9969
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9970
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9971
# This bug is HP SR number 8606223364.
 
9972
{ echo "$as_me:$LINENO: checking size of size_t" >&5
 
9973
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
 
9974
if test "${ac_cv_sizeof_size_t+set}" = set; then
 
9975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9976
else
 
9977
  if test "$cross_compiling" = yes; then
 
9978
  # Depending upon the size, compute the lo and hi bounds.
 
9979
cat >conftest.$ac_ext <<_ACEOF
 
9980
/* confdefs.h.  */
 
9981
_ACEOF
 
9982
cat confdefs.h >>conftest.$ac_ext
 
9983
cat >>conftest.$ac_ext <<_ACEOF
 
9984
/* end confdefs.h.  */
 
9985
$ac_includes_default
 
9986
   typedef size_t ac__type_sizeof_;
 
9987
int
 
9988
main ()
 
9989
{
 
9990
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
9991
test_array [0] = 0
 
9992
 
 
9993
  ;
 
9994
  return 0;
 
9995
}
 
9996
_ACEOF
 
9997
rm -f conftest.$ac_objext
 
9998
if { (ac_try="$ac_compile"
 
9999
case "(($ac_try" in
 
10000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10001
  *) ac_try_echo=$ac_try;;
 
10002
esac
 
10003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10004
  (eval "$ac_compile") 2>conftest.er1
 
10005
  ac_status=$?
 
10006
  grep -v '^ *+' conftest.er1 >conftest.err
 
10007
  rm -f conftest.er1
 
10008
  cat conftest.err >&5
 
10009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10010
  (exit $ac_status); } && {
 
10011
         test -z "$ac_c_werror_flag" ||
 
10012
         test ! -s conftest.err
 
10013
       } && test -s conftest.$ac_objext; then
 
10014
  ac_lo=0 ac_mid=0
 
10015
  while :; do
 
10016
    cat >conftest.$ac_ext <<_ACEOF
 
10017
/* confdefs.h.  */
 
10018
_ACEOF
 
10019
cat confdefs.h >>conftest.$ac_ext
 
10020
cat >>conftest.$ac_ext <<_ACEOF
 
10021
/* end confdefs.h.  */
 
10022
$ac_includes_default
 
10023
   typedef size_t ac__type_sizeof_;
 
10024
int
 
10025
main ()
 
10026
{
 
10027
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10028
test_array [0] = 0
 
10029
 
 
10030
  ;
 
10031
  return 0;
 
10032
}
 
10033
_ACEOF
 
10034
rm -f conftest.$ac_objext
 
10035
if { (ac_try="$ac_compile"
 
10036
case "(($ac_try" in
 
10037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10038
  *) ac_try_echo=$ac_try;;
 
10039
esac
 
10040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10041
  (eval "$ac_compile") 2>conftest.er1
 
10042
  ac_status=$?
 
10043
  grep -v '^ *+' conftest.er1 >conftest.err
 
10044
  rm -f conftest.er1
 
10045
  cat conftest.err >&5
 
10046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10047
  (exit $ac_status); } && {
 
10048
         test -z "$ac_c_werror_flag" ||
 
10049
         test ! -s conftest.err
 
10050
       } && test -s conftest.$ac_objext; then
 
10051
  ac_hi=$ac_mid; break
 
10052
else
 
10053
  echo "$as_me: failed program was:" >&5
 
10054
sed 's/^/| /' conftest.$ac_ext >&5
 
10055
 
 
10056
        ac_lo=`expr $ac_mid + 1`
 
10057
                        if test $ac_lo -le $ac_mid; then
 
10058
                          ac_lo= ac_hi=
 
10059
                          break
 
10060
                        fi
 
10061
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
10062
fi
 
10063
 
 
10064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10065
  done
 
10066
else
 
10067
  echo "$as_me: failed program was:" >&5
 
10068
sed 's/^/| /' conftest.$ac_ext >&5
 
10069
 
 
10070
        cat >conftest.$ac_ext <<_ACEOF
 
10071
/* confdefs.h.  */
 
10072
_ACEOF
 
10073
cat confdefs.h >>conftest.$ac_ext
 
10074
cat >>conftest.$ac_ext <<_ACEOF
 
10075
/* end confdefs.h.  */
 
10076
$ac_includes_default
 
10077
   typedef size_t ac__type_sizeof_;
 
10078
int
 
10079
main ()
 
10080
{
 
10081
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
10082
test_array [0] = 0
 
10083
 
 
10084
  ;
 
10085
  return 0;
 
10086
}
 
10087
_ACEOF
 
10088
rm -f conftest.$ac_objext
 
10089
if { (ac_try="$ac_compile"
 
10090
case "(($ac_try" in
 
10091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10092
  *) ac_try_echo=$ac_try;;
 
10093
esac
 
10094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10095
  (eval "$ac_compile") 2>conftest.er1
 
10096
  ac_status=$?
 
10097
  grep -v '^ *+' conftest.er1 >conftest.err
 
10098
  rm -f conftest.er1
 
10099
  cat conftest.err >&5
 
10100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10101
  (exit $ac_status); } && {
 
10102
         test -z "$ac_c_werror_flag" ||
 
10103
         test ! -s conftest.err
 
10104
       } && test -s conftest.$ac_objext; then
 
10105
  ac_hi=-1 ac_mid=-1
 
10106
  while :; do
 
10107
    cat >conftest.$ac_ext <<_ACEOF
 
10108
/* confdefs.h.  */
 
10109
_ACEOF
 
10110
cat confdefs.h >>conftest.$ac_ext
 
10111
cat >>conftest.$ac_ext <<_ACEOF
 
10112
/* end confdefs.h.  */
 
10113
$ac_includes_default
 
10114
   typedef size_t ac__type_sizeof_;
 
10115
int
 
10116
main ()
 
10117
{
 
10118
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
10119
test_array [0] = 0
 
10120
 
 
10121
  ;
 
10122
  return 0;
 
10123
}
 
10124
_ACEOF
 
10125
rm -f conftest.$ac_objext
 
10126
if { (ac_try="$ac_compile"
 
10127
case "(($ac_try" in
 
10128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10129
  *) ac_try_echo=$ac_try;;
 
10130
esac
 
10131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10132
  (eval "$ac_compile") 2>conftest.er1
 
10133
  ac_status=$?
 
10134
  grep -v '^ *+' conftest.er1 >conftest.err
 
10135
  rm -f conftest.er1
 
10136
  cat conftest.err >&5
 
10137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10138
  (exit $ac_status); } && {
 
10139
         test -z "$ac_c_werror_flag" ||
 
10140
         test ! -s conftest.err
 
10141
       } && test -s conftest.$ac_objext; then
 
10142
  ac_lo=$ac_mid; break
 
10143
else
 
10144
  echo "$as_me: failed program was:" >&5
 
10145
sed 's/^/| /' conftest.$ac_ext >&5
 
10146
 
 
10147
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
10148
                        if test $ac_mid -le $ac_hi; then
 
10149
                          ac_lo= ac_hi=
 
10150
                          break
 
10151
                        fi
 
10152
                        ac_mid=`expr 2 '*' $ac_mid`
 
10153
fi
 
10154
 
 
10155
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10156
  done
 
10157
else
 
10158
  echo "$as_me: failed program was:" >&5
 
10159
sed 's/^/| /' conftest.$ac_ext >&5
 
10160
 
 
10161
        ac_lo= ac_hi=
 
10162
fi
 
10163
 
 
10164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10165
fi
 
10166
 
 
10167
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10168
# Binary search between lo and hi bounds.
 
10169
while test "x$ac_lo" != "x$ac_hi"; do
 
10170
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
10171
  cat >conftest.$ac_ext <<_ACEOF
 
10172
/* confdefs.h.  */
 
10173
_ACEOF
 
10174
cat confdefs.h >>conftest.$ac_ext
 
10175
cat >>conftest.$ac_ext <<_ACEOF
 
10176
/* end confdefs.h.  */
 
10177
$ac_includes_default
 
10178
   typedef size_t ac__type_sizeof_;
 
10179
int
 
10180
main ()
 
10181
{
 
10182
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10183
test_array [0] = 0
 
10184
 
 
10185
  ;
 
10186
  return 0;
 
10187
}
 
10188
_ACEOF
 
10189
rm -f conftest.$ac_objext
 
10190
if { (ac_try="$ac_compile"
 
10191
case "(($ac_try" in
 
10192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10193
  *) ac_try_echo=$ac_try;;
 
10194
esac
 
10195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10196
  (eval "$ac_compile") 2>conftest.er1
 
10197
  ac_status=$?
 
10198
  grep -v '^ *+' conftest.er1 >conftest.err
 
10199
  rm -f conftest.er1
 
10200
  cat conftest.err >&5
 
10201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10202
  (exit $ac_status); } && {
 
10203
         test -z "$ac_c_werror_flag" ||
 
10204
         test ! -s conftest.err
 
10205
       } && test -s conftest.$ac_objext; then
 
10206
  ac_hi=$ac_mid
 
10207
else
 
10208
  echo "$as_me: failed program was:" >&5
 
10209
sed 's/^/| /' conftest.$ac_ext >&5
 
10210
 
 
10211
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
10212
fi
 
10213
 
 
10214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10215
done
 
10216
case $ac_lo in
 
10217
?*) ac_cv_sizeof_size_t=$ac_lo;;
 
10218
'') if test "$ac_cv_type_size_t" = yes; then
 
10219
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
 
10220
See \`config.log' for more details." >&5
 
10221
echo "$as_me: error: cannot compute sizeof (size_t)
 
10222
See \`config.log' for more details." >&2;}
 
10223
   { (exit 77); exit 77; }; }
 
10224
   else
 
10225
     ac_cv_sizeof_size_t=0
 
10226
   fi ;;
 
10227
esac
 
10228
else
 
10229
  cat >conftest.$ac_ext <<_ACEOF
 
10230
/* confdefs.h.  */
 
10231
_ACEOF
 
10232
cat confdefs.h >>conftest.$ac_ext
 
10233
cat >>conftest.$ac_ext <<_ACEOF
 
10234
/* end confdefs.h.  */
 
10235
$ac_includes_default
 
10236
   typedef size_t ac__type_sizeof_;
 
10237
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
10238
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
10239
#include <stdio.h>
 
10240
#include <stdlib.h>
 
10241
int
 
10242
main ()
 
10243
{
 
10244
 
 
10245
  FILE *f = fopen ("conftest.val", "w");
 
10246
  if (! f)
 
10247
    return 1;
 
10248
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
10249
    {
 
10250
      long int i = longval ();
 
10251
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10252
        return 1;
 
10253
      fprintf (f, "%ld\n", i);
 
10254
    }
 
10255
  else
 
10256
    {
 
10257
      unsigned long int i = ulongval ();
 
10258
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10259
        return 1;
 
10260
      fprintf (f, "%lu\n", i);
 
10261
    }
 
10262
  return ferror (f) || fclose (f) != 0;
 
10263
 
 
10264
  ;
 
10265
  return 0;
 
10266
}
 
10267
_ACEOF
 
10268
rm -f conftest$ac_exeext
 
10269
if { (ac_try="$ac_link"
 
10270
case "(($ac_try" in
 
10271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10272
  *) ac_try_echo=$ac_try;;
 
10273
esac
 
10274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10275
  (eval "$ac_link") 2>&5
 
10276
  ac_status=$?
 
10277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10278
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10279
  { (case "(($ac_try" in
 
10280
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10281
  *) ac_try_echo=$ac_try;;
 
10282
esac
 
10283
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10284
  (eval "$ac_try") 2>&5
 
10285
  ac_status=$?
 
10286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10287
  (exit $ac_status); }; }; then
 
10288
  ac_cv_sizeof_size_t=`cat conftest.val`
 
10289
else
 
10290
  echo "$as_me: program exited with status $ac_status" >&5
 
10291
echo "$as_me: failed program was:" >&5
 
10292
sed 's/^/| /' conftest.$ac_ext >&5
 
10293
 
 
10294
( exit $ac_status )
 
10295
if test "$ac_cv_type_size_t" = yes; then
 
10296
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
 
10297
See \`config.log' for more details." >&5
 
10298
echo "$as_me: error: cannot compute sizeof (size_t)
 
10299
See \`config.log' for more details." >&2;}
 
10300
   { (exit 77); exit 77; }; }
 
10301
   else
 
10302
     ac_cv_sizeof_size_t=0
 
10303
   fi
 
10304
fi
 
10305
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10306
fi
 
10307
rm -f conftest.val
 
10308
fi
 
10309
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
 
10310
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
 
10311
 
 
10312
 
 
10313
 
 
10314
cat >>confdefs.h <<_ACEOF
 
10315
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
 
10316
_ACEOF
 
10317
 
 
10318
 
 
10319
{ echo "$as_me:$LINENO: checking for pid_t" >&5
 
10320
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
10321
if test "${ac_cv_type_pid_t+set}" = set; then
 
10322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10323
else
 
10324
  cat >conftest.$ac_ext <<_ACEOF
 
10325
/* confdefs.h.  */
 
10326
_ACEOF
 
10327
cat confdefs.h >>conftest.$ac_ext
 
10328
cat >>conftest.$ac_ext <<_ACEOF
 
10329
/* end confdefs.h.  */
 
10330
$ac_includes_default
 
10331
typedef pid_t ac__type_new_;
 
10332
int
 
10333
main ()
 
10334
{
 
10335
if ((ac__type_new_ *) 0)
 
10336
  return 0;
 
10337
if (sizeof (ac__type_new_))
 
10338
  return 0;
 
10339
  ;
 
10340
  return 0;
 
10341
}
 
10342
_ACEOF
 
10343
rm -f conftest.$ac_objext
 
10344
if { (ac_try="$ac_compile"
 
10345
case "(($ac_try" in
 
10346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10347
  *) ac_try_echo=$ac_try;;
 
10348
esac
 
10349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10350
  (eval "$ac_compile") 2>conftest.er1
 
10351
  ac_status=$?
 
10352
  grep -v '^ *+' conftest.er1 >conftest.err
 
10353
  rm -f conftest.er1
 
10354
  cat conftest.err >&5
 
10355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10356
  (exit $ac_status); } && {
 
10357
         test -z "$ac_c_werror_flag" ||
 
10358
         test ! -s conftest.err
 
10359
       } && test -s conftest.$ac_objext; then
 
10360
  ac_cv_type_pid_t=yes
 
10361
else
 
10362
  echo "$as_me: failed program was:" >&5
 
10363
sed 's/^/| /' conftest.$ac_ext >&5
 
10364
 
 
10365
        ac_cv_type_pid_t=no
 
10366
fi
 
10367
 
 
10368
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10369
fi
 
10370
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
10371
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 
10372
 
 
10373
# The cast to long int works around a bug in the HP C Compiler
 
10374
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
10375
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
10376
# This bug is HP SR number 8606223364.
 
10377
{ echo "$as_me:$LINENO: checking size of pid_t" >&5
 
10378
echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
 
10379
if test "${ac_cv_sizeof_pid_t+set}" = set; then
 
10380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10381
else
 
10382
  if test "$cross_compiling" = yes; then
 
10383
  # Depending upon the size, compute the lo and hi bounds.
 
10384
cat >conftest.$ac_ext <<_ACEOF
 
10385
/* confdefs.h.  */
 
10386
_ACEOF
 
10387
cat confdefs.h >>conftest.$ac_ext
 
10388
cat >>conftest.$ac_ext <<_ACEOF
 
10389
/* end confdefs.h.  */
 
10390
$ac_includes_default
 
10391
   typedef pid_t ac__type_sizeof_;
 
10392
int
 
10393
main ()
 
10394
{
 
10395
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
10396
test_array [0] = 0
 
10397
 
 
10398
  ;
 
10399
  return 0;
 
10400
}
 
10401
_ACEOF
 
10402
rm -f conftest.$ac_objext
 
10403
if { (ac_try="$ac_compile"
 
10404
case "(($ac_try" in
 
10405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10406
  *) ac_try_echo=$ac_try;;
 
10407
esac
 
10408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10409
  (eval "$ac_compile") 2>conftest.er1
 
10410
  ac_status=$?
 
10411
  grep -v '^ *+' conftest.er1 >conftest.err
 
10412
  rm -f conftest.er1
 
10413
  cat conftest.err >&5
 
10414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10415
  (exit $ac_status); } && {
 
10416
         test -z "$ac_c_werror_flag" ||
 
10417
         test ! -s conftest.err
 
10418
       } && test -s conftest.$ac_objext; then
 
10419
  ac_lo=0 ac_mid=0
 
10420
  while :; do
 
10421
    cat >conftest.$ac_ext <<_ACEOF
 
10422
/* confdefs.h.  */
 
10423
_ACEOF
 
10424
cat confdefs.h >>conftest.$ac_ext
 
10425
cat >>conftest.$ac_ext <<_ACEOF
 
10426
/* end confdefs.h.  */
 
10427
$ac_includes_default
 
10428
   typedef pid_t ac__type_sizeof_;
 
10429
int
 
10430
main ()
 
10431
{
 
10432
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10433
test_array [0] = 0
 
10434
 
 
10435
  ;
 
10436
  return 0;
 
10437
}
 
10438
_ACEOF
 
10439
rm -f conftest.$ac_objext
 
10440
if { (ac_try="$ac_compile"
 
10441
case "(($ac_try" in
 
10442
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10443
  *) ac_try_echo=$ac_try;;
 
10444
esac
 
10445
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10446
  (eval "$ac_compile") 2>conftest.er1
 
10447
  ac_status=$?
 
10448
  grep -v '^ *+' conftest.er1 >conftest.err
 
10449
  rm -f conftest.er1
 
10450
  cat conftest.err >&5
 
10451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10452
  (exit $ac_status); } && {
 
10453
         test -z "$ac_c_werror_flag" ||
 
10454
         test ! -s conftest.err
 
10455
       } && test -s conftest.$ac_objext; then
 
10456
  ac_hi=$ac_mid; break
 
10457
else
 
10458
  echo "$as_me: failed program was:" >&5
 
10459
sed 's/^/| /' conftest.$ac_ext >&5
 
10460
 
 
10461
        ac_lo=`expr $ac_mid + 1`
 
10462
                        if test $ac_lo -le $ac_mid; then
 
10463
                          ac_lo= ac_hi=
 
10464
                          break
 
10465
                        fi
 
10466
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
10467
fi
 
10468
 
 
10469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10470
  done
 
10471
else
 
10472
  echo "$as_me: failed program was:" >&5
 
10473
sed 's/^/| /' conftest.$ac_ext >&5
 
10474
 
 
10475
        cat >conftest.$ac_ext <<_ACEOF
 
10476
/* confdefs.h.  */
 
10477
_ACEOF
 
10478
cat confdefs.h >>conftest.$ac_ext
 
10479
cat >>conftest.$ac_ext <<_ACEOF
 
10480
/* end confdefs.h.  */
 
10481
$ac_includes_default
 
10482
   typedef pid_t ac__type_sizeof_;
 
10483
int
 
10484
main ()
 
10485
{
 
10486
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
10487
test_array [0] = 0
 
10488
 
 
10489
  ;
 
10490
  return 0;
 
10491
}
 
10492
_ACEOF
 
10493
rm -f conftest.$ac_objext
 
10494
if { (ac_try="$ac_compile"
 
10495
case "(($ac_try" in
 
10496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10497
  *) ac_try_echo=$ac_try;;
 
10498
esac
 
10499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10500
  (eval "$ac_compile") 2>conftest.er1
 
10501
  ac_status=$?
 
10502
  grep -v '^ *+' conftest.er1 >conftest.err
 
10503
  rm -f conftest.er1
 
10504
  cat conftest.err >&5
 
10505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10506
  (exit $ac_status); } && {
 
10507
         test -z "$ac_c_werror_flag" ||
 
10508
         test ! -s conftest.err
 
10509
       } && test -s conftest.$ac_objext; then
 
10510
  ac_hi=-1 ac_mid=-1
 
10511
  while :; do
 
10512
    cat >conftest.$ac_ext <<_ACEOF
 
10513
/* confdefs.h.  */
 
10514
_ACEOF
 
10515
cat confdefs.h >>conftest.$ac_ext
 
10516
cat >>conftest.$ac_ext <<_ACEOF
 
10517
/* end confdefs.h.  */
 
10518
$ac_includes_default
 
10519
   typedef pid_t ac__type_sizeof_;
 
10520
int
 
10521
main ()
 
10522
{
 
10523
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
10524
test_array [0] = 0
 
10525
 
 
10526
  ;
 
10527
  return 0;
 
10528
}
 
10529
_ACEOF
 
10530
rm -f conftest.$ac_objext
 
10531
if { (ac_try="$ac_compile"
 
10532
case "(($ac_try" in
 
10533
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10534
  *) ac_try_echo=$ac_try;;
 
10535
esac
 
10536
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10537
  (eval "$ac_compile") 2>conftest.er1
 
10538
  ac_status=$?
 
10539
  grep -v '^ *+' conftest.er1 >conftest.err
 
10540
  rm -f conftest.er1
 
10541
  cat conftest.err >&5
 
10542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10543
  (exit $ac_status); } && {
 
10544
         test -z "$ac_c_werror_flag" ||
 
10545
         test ! -s conftest.err
 
10546
       } && test -s conftest.$ac_objext; then
 
10547
  ac_lo=$ac_mid; break
 
10548
else
 
10549
  echo "$as_me: failed program was:" >&5
 
10550
sed 's/^/| /' conftest.$ac_ext >&5
 
10551
 
 
10552
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
10553
                        if test $ac_mid -le $ac_hi; then
 
10554
                          ac_lo= ac_hi=
 
10555
                          break
 
10556
                        fi
 
10557
                        ac_mid=`expr 2 '*' $ac_mid`
 
10558
fi
 
10559
 
 
10560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10561
  done
 
10562
else
 
10563
  echo "$as_me: failed program was:" >&5
 
10564
sed 's/^/| /' conftest.$ac_ext >&5
 
10565
 
 
10566
        ac_lo= ac_hi=
 
10567
fi
 
10568
 
 
10569
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10570
fi
 
10571
 
 
10572
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10573
# Binary search between lo and hi bounds.
 
10574
while test "x$ac_lo" != "x$ac_hi"; do
 
10575
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
10576
  cat >conftest.$ac_ext <<_ACEOF
 
10577
/* confdefs.h.  */
 
10578
_ACEOF
 
10579
cat confdefs.h >>conftest.$ac_ext
 
10580
cat >>conftest.$ac_ext <<_ACEOF
 
10581
/* end confdefs.h.  */
 
10582
$ac_includes_default
 
10583
   typedef pid_t ac__type_sizeof_;
 
10584
int
 
10585
main ()
 
10586
{
 
10587
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10588
test_array [0] = 0
 
10589
 
 
10590
  ;
 
10591
  return 0;
 
10592
}
 
10593
_ACEOF
 
10594
rm -f conftest.$ac_objext
 
10595
if { (ac_try="$ac_compile"
 
10596
case "(($ac_try" in
 
10597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10598
  *) ac_try_echo=$ac_try;;
 
10599
esac
 
10600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10601
  (eval "$ac_compile") 2>conftest.er1
 
10602
  ac_status=$?
 
10603
  grep -v '^ *+' conftest.er1 >conftest.err
 
10604
  rm -f conftest.er1
 
10605
  cat conftest.err >&5
 
10606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10607
  (exit $ac_status); } && {
 
10608
         test -z "$ac_c_werror_flag" ||
 
10609
         test ! -s conftest.err
 
10610
       } && test -s conftest.$ac_objext; then
 
10611
  ac_hi=$ac_mid
 
10612
else
 
10613
  echo "$as_me: failed program was:" >&5
 
10614
sed 's/^/| /' conftest.$ac_ext >&5
 
10615
 
 
10616
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
10617
fi
 
10618
 
 
10619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10620
done
 
10621
case $ac_lo in
 
10622
?*) ac_cv_sizeof_pid_t=$ac_lo;;
 
10623
'') if test "$ac_cv_type_pid_t" = yes; then
 
10624
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
 
10625
See \`config.log' for more details." >&5
 
10626
echo "$as_me: error: cannot compute sizeof (pid_t)
 
10627
See \`config.log' for more details." >&2;}
 
10628
   { (exit 77); exit 77; }; }
 
10629
   else
 
10630
     ac_cv_sizeof_pid_t=0
 
10631
   fi ;;
 
10632
esac
 
10633
else
 
10634
  cat >conftest.$ac_ext <<_ACEOF
 
10635
/* confdefs.h.  */
 
10636
_ACEOF
 
10637
cat confdefs.h >>conftest.$ac_ext
 
10638
cat >>conftest.$ac_ext <<_ACEOF
 
10639
/* end confdefs.h.  */
 
10640
$ac_includes_default
 
10641
   typedef pid_t ac__type_sizeof_;
 
10642
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
10643
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
10644
#include <stdio.h>
 
10645
#include <stdlib.h>
 
10646
int
 
10647
main ()
 
10648
{
 
10649
 
 
10650
  FILE *f = fopen ("conftest.val", "w");
 
10651
  if (! f)
 
10652
    return 1;
 
10653
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
10654
    {
 
10655
      long int i = longval ();
 
10656
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10657
        return 1;
 
10658
      fprintf (f, "%ld\n", i);
 
10659
    }
 
10660
  else
 
10661
    {
 
10662
      unsigned long int i = ulongval ();
 
10663
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10664
        return 1;
 
10665
      fprintf (f, "%lu\n", i);
 
10666
    }
 
10667
  return ferror (f) || fclose (f) != 0;
 
10668
 
 
10669
  ;
 
10670
  return 0;
 
10671
}
 
10672
_ACEOF
 
10673
rm -f conftest$ac_exeext
 
10674
if { (ac_try="$ac_link"
 
10675
case "(($ac_try" in
 
10676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10677
  *) ac_try_echo=$ac_try;;
 
10678
esac
 
10679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10680
  (eval "$ac_link") 2>&5
 
10681
  ac_status=$?
 
10682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10683
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10684
  { (case "(($ac_try" in
 
10685
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10686
  *) ac_try_echo=$ac_try;;
 
10687
esac
 
10688
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10689
  (eval "$ac_try") 2>&5
 
10690
  ac_status=$?
 
10691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10692
  (exit $ac_status); }; }; then
 
10693
  ac_cv_sizeof_pid_t=`cat conftest.val`
 
10694
else
 
10695
  echo "$as_me: program exited with status $ac_status" >&5
 
10696
echo "$as_me: failed program was:" >&5
 
10697
sed 's/^/| /' conftest.$ac_ext >&5
 
10698
 
 
10699
( exit $ac_status )
 
10700
if test "$ac_cv_type_pid_t" = yes; then
 
10701
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
 
10702
See \`config.log' for more details." >&5
 
10703
echo "$as_me: error: cannot compute sizeof (pid_t)
 
10704
See \`config.log' for more details." >&2;}
 
10705
   { (exit 77); exit 77; }; }
 
10706
   else
 
10707
     ac_cv_sizeof_pid_t=0
 
10708
   fi
 
10709
fi
 
10710
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10711
fi
 
10712
rm -f conftest.val
 
10713
fi
 
10714
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
 
10715
echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
 
10716
 
 
10717
 
 
10718
 
 
10719
cat >>confdefs.h <<_ACEOF
 
10720
#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
 
10721
_ACEOF
 
10722
 
 
10723
 
 
10724
 
 
10725
{ echo "$as_me:$LINENO: checking for long long support" >&5
 
10726
echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
 
10727
have_long_long=no
 
10728
cat >conftest.$ac_ext <<_ACEOF
 
10729
/* confdefs.h.  */
 
10730
_ACEOF
 
10731
cat confdefs.h >>conftest.$ac_ext
 
10732
cat >>conftest.$ac_ext <<_ACEOF
 
10733
/* end confdefs.h.  */
 
10734
 
 
10735
int
 
10736
main ()
 
10737
{
 
10738
long long x; x = (long long)0;
 
10739
  ;
 
10740
  return 0;
 
10741
}
 
10742
_ACEOF
 
10743
rm -f conftest.$ac_objext
 
10744
if { (ac_try="$ac_compile"
 
10745
case "(($ac_try" in
 
10746
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10747
  *) ac_try_echo=$ac_try;;
 
10748
esac
 
10749
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10750
  (eval "$ac_compile") 2>conftest.er1
 
10751
  ac_status=$?
 
10752
  grep -v '^ *+' conftest.er1 >conftest.err
 
10753
  rm -f conftest.er1
 
10754
  cat conftest.err >&5
 
10755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10756
  (exit $ac_status); } && {
 
10757
         test -z "$ac_c_werror_flag" ||
 
10758
         test ! -s conftest.err
 
10759
       } && test -s conftest.$ac_objext; then
 
10760
 
 
10761
 
 
10762
cat >>confdefs.h <<\_ACEOF
 
10763
#define HAVE_LONG_LONG 1
 
10764
_ACEOF
 
10765
 
 
10766
  have_long_long=yes
 
10767
 
 
10768
else
 
10769
  echo "$as_me: failed program was:" >&5
 
10770
sed 's/^/| /' conftest.$ac_ext >&5
 
10771
 
 
10772
 
 
10773
fi
 
10774
 
 
10775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10776
{ echo "$as_me:$LINENO: result: $have_long_long" >&5
 
10777
echo "${ECHO_T}$have_long_long" >&6; }
 
10778
if test "$have_long_long" = yes ; then
 
10779
{ echo "$as_me:$LINENO: checking for long long" >&5
 
10780
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
 
10781
if test "${ac_cv_type_long_long+set}" = set; then
 
10782
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10783
else
 
10784
  cat >conftest.$ac_ext <<_ACEOF
 
10785
/* confdefs.h.  */
 
10786
_ACEOF
 
10787
cat confdefs.h >>conftest.$ac_ext
 
10788
cat >>conftest.$ac_ext <<_ACEOF
 
10789
/* end confdefs.h.  */
 
10790
$ac_includes_default
 
10791
typedef long long ac__type_new_;
 
10792
int
 
10793
main ()
 
10794
{
 
10795
if ((ac__type_new_ *) 0)
 
10796
  return 0;
 
10797
if (sizeof (ac__type_new_))
 
10798
  return 0;
 
10799
  ;
 
10800
  return 0;
 
10801
}
 
10802
_ACEOF
 
10803
rm -f conftest.$ac_objext
 
10804
if { (ac_try="$ac_compile"
 
10805
case "(($ac_try" in
 
10806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10807
  *) ac_try_echo=$ac_try;;
 
10808
esac
 
10809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10810
  (eval "$ac_compile") 2>conftest.er1
 
10811
  ac_status=$?
 
10812
  grep -v '^ *+' conftest.er1 >conftest.err
 
10813
  rm -f conftest.er1
 
10814
  cat conftest.err >&5
 
10815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10816
  (exit $ac_status); } && {
 
10817
         test -z "$ac_c_werror_flag" ||
 
10818
         test ! -s conftest.err
 
10819
       } && test -s conftest.$ac_objext; then
 
10820
  ac_cv_type_long_long=yes
 
10821
else
 
10822
  echo "$as_me: failed program was:" >&5
 
10823
sed 's/^/| /' conftest.$ac_ext >&5
 
10824
 
 
10825
        ac_cv_type_long_long=no
 
10826
fi
 
10827
 
 
10828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10829
fi
 
10830
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
10831
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
 
10832
 
 
10833
# The cast to long int works around a bug in the HP C Compiler
 
10834
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
10835
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
10836
# This bug is HP SR number 8606223364.
 
10837
{ echo "$as_me:$LINENO: checking size of long long" >&5
 
10838
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
 
10839
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
10840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10841
else
 
10842
  if test "$cross_compiling" = yes; then
 
10843
  # Depending upon the size, compute the lo and hi bounds.
 
10844
cat >conftest.$ac_ext <<_ACEOF
 
10845
/* confdefs.h.  */
 
10846
_ACEOF
 
10847
cat confdefs.h >>conftest.$ac_ext
 
10848
cat >>conftest.$ac_ext <<_ACEOF
 
10849
/* end confdefs.h.  */
 
10850
$ac_includes_default
 
10851
   typedef long long ac__type_sizeof_;
 
10852
int
 
10853
main ()
 
10854
{
 
10855
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
10856
test_array [0] = 0
 
10857
 
 
10858
  ;
 
10859
  return 0;
 
10860
}
 
10861
_ACEOF
 
10862
rm -f conftest.$ac_objext
 
10863
if { (ac_try="$ac_compile"
 
10864
case "(($ac_try" in
 
10865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10866
  *) ac_try_echo=$ac_try;;
 
10867
esac
 
10868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10869
  (eval "$ac_compile") 2>conftest.er1
 
10870
  ac_status=$?
 
10871
  grep -v '^ *+' conftest.er1 >conftest.err
 
10872
  rm -f conftest.er1
 
10873
  cat conftest.err >&5
 
10874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10875
  (exit $ac_status); } && {
 
10876
         test -z "$ac_c_werror_flag" ||
 
10877
         test ! -s conftest.err
 
10878
       } && test -s conftest.$ac_objext; then
 
10879
  ac_lo=0 ac_mid=0
 
10880
  while :; do
 
10881
    cat >conftest.$ac_ext <<_ACEOF
 
10882
/* confdefs.h.  */
 
10883
_ACEOF
 
10884
cat confdefs.h >>conftest.$ac_ext
 
10885
cat >>conftest.$ac_ext <<_ACEOF
 
10886
/* end confdefs.h.  */
 
10887
$ac_includes_default
 
10888
   typedef long long ac__type_sizeof_;
 
10889
int
 
10890
main ()
 
10891
{
 
10892
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10893
test_array [0] = 0
 
10894
 
 
10895
  ;
 
10896
  return 0;
 
10897
}
 
10898
_ACEOF
 
10899
rm -f conftest.$ac_objext
 
10900
if { (ac_try="$ac_compile"
 
10901
case "(($ac_try" in
 
10902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10903
  *) ac_try_echo=$ac_try;;
 
10904
esac
 
10905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10906
  (eval "$ac_compile") 2>conftest.er1
 
10907
  ac_status=$?
 
10908
  grep -v '^ *+' conftest.er1 >conftest.err
 
10909
  rm -f conftest.er1
 
10910
  cat conftest.err >&5
 
10911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10912
  (exit $ac_status); } && {
 
10913
         test -z "$ac_c_werror_flag" ||
 
10914
         test ! -s conftest.err
 
10915
       } && test -s conftest.$ac_objext; then
 
10916
  ac_hi=$ac_mid; break
 
10917
else
 
10918
  echo "$as_me: failed program was:" >&5
 
10919
sed 's/^/| /' conftest.$ac_ext >&5
 
10920
 
 
10921
        ac_lo=`expr $ac_mid + 1`
 
10922
                        if test $ac_lo -le $ac_mid; then
 
10923
                          ac_lo= ac_hi=
 
10924
                          break
 
10925
                        fi
 
10926
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
10927
fi
 
10928
 
 
10929
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10930
  done
 
10931
else
 
10932
  echo "$as_me: failed program was:" >&5
 
10933
sed 's/^/| /' conftest.$ac_ext >&5
 
10934
 
 
10935
        cat >conftest.$ac_ext <<_ACEOF
 
10936
/* confdefs.h.  */
 
10937
_ACEOF
 
10938
cat confdefs.h >>conftest.$ac_ext
 
10939
cat >>conftest.$ac_ext <<_ACEOF
 
10940
/* end confdefs.h.  */
 
10941
$ac_includes_default
 
10942
   typedef long long ac__type_sizeof_;
 
10943
int
 
10944
main ()
 
10945
{
 
10946
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
10947
test_array [0] = 0
 
10948
 
 
10949
  ;
 
10950
  return 0;
 
10951
}
 
10952
_ACEOF
 
10953
rm -f conftest.$ac_objext
 
10954
if { (ac_try="$ac_compile"
 
10955
case "(($ac_try" in
 
10956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10957
  *) ac_try_echo=$ac_try;;
 
10958
esac
 
10959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10960
  (eval "$ac_compile") 2>conftest.er1
 
10961
  ac_status=$?
 
10962
  grep -v '^ *+' conftest.er1 >conftest.err
 
10963
  rm -f conftest.er1
 
10964
  cat conftest.err >&5
 
10965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10966
  (exit $ac_status); } && {
 
10967
         test -z "$ac_c_werror_flag" ||
 
10968
         test ! -s conftest.err
 
10969
       } && test -s conftest.$ac_objext; then
 
10970
  ac_hi=-1 ac_mid=-1
 
10971
  while :; do
 
10972
    cat >conftest.$ac_ext <<_ACEOF
 
10973
/* confdefs.h.  */
 
10974
_ACEOF
 
10975
cat confdefs.h >>conftest.$ac_ext
 
10976
cat >>conftest.$ac_ext <<_ACEOF
 
10977
/* end confdefs.h.  */
 
10978
$ac_includes_default
 
10979
   typedef long long ac__type_sizeof_;
 
10980
int
 
10981
main ()
 
10982
{
 
10983
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
10984
test_array [0] = 0
 
10985
 
 
10986
  ;
 
10987
  return 0;
 
10988
}
 
10989
_ACEOF
 
10990
rm -f conftest.$ac_objext
 
10991
if { (ac_try="$ac_compile"
 
10992
case "(($ac_try" in
 
10993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10994
  *) ac_try_echo=$ac_try;;
 
10995
esac
 
10996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10997
  (eval "$ac_compile") 2>conftest.er1
 
10998
  ac_status=$?
 
10999
  grep -v '^ *+' conftest.er1 >conftest.err
 
11000
  rm -f conftest.er1
 
11001
  cat conftest.err >&5
 
11002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11003
  (exit $ac_status); } && {
 
11004
         test -z "$ac_c_werror_flag" ||
 
11005
         test ! -s conftest.err
 
11006
       } && test -s conftest.$ac_objext; then
 
11007
  ac_lo=$ac_mid; break
 
11008
else
 
11009
  echo "$as_me: failed program was:" >&5
 
11010
sed 's/^/| /' conftest.$ac_ext >&5
 
11011
 
 
11012
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
11013
                        if test $ac_mid -le $ac_hi; then
 
11014
                          ac_lo= ac_hi=
 
11015
                          break
 
11016
                        fi
 
11017
                        ac_mid=`expr 2 '*' $ac_mid`
 
11018
fi
 
11019
 
 
11020
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11021
  done
 
11022
else
 
11023
  echo "$as_me: failed program was:" >&5
 
11024
sed 's/^/| /' conftest.$ac_ext >&5
 
11025
 
 
11026
        ac_lo= ac_hi=
 
11027
fi
 
11028
 
 
11029
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11030
fi
 
11031
 
 
11032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11033
# Binary search between lo and hi bounds.
 
11034
while test "x$ac_lo" != "x$ac_hi"; do
 
11035
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
11036
  cat >conftest.$ac_ext <<_ACEOF
 
11037
/* confdefs.h.  */
 
11038
_ACEOF
 
11039
cat confdefs.h >>conftest.$ac_ext
 
11040
cat >>conftest.$ac_ext <<_ACEOF
 
11041
/* end confdefs.h.  */
 
11042
$ac_includes_default
 
11043
   typedef long long ac__type_sizeof_;
 
11044
int
 
11045
main ()
 
11046
{
 
11047
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
11048
test_array [0] = 0
 
11049
 
 
11050
  ;
 
11051
  return 0;
 
11052
}
 
11053
_ACEOF
 
11054
rm -f conftest.$ac_objext
 
11055
if { (ac_try="$ac_compile"
 
11056
case "(($ac_try" in
 
11057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11058
  *) ac_try_echo=$ac_try;;
 
11059
esac
 
11060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11061
  (eval "$ac_compile") 2>conftest.er1
 
11062
  ac_status=$?
 
11063
  grep -v '^ *+' conftest.er1 >conftest.err
 
11064
  rm -f conftest.er1
 
11065
  cat conftest.err >&5
 
11066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11067
  (exit $ac_status); } && {
 
11068
         test -z "$ac_c_werror_flag" ||
 
11069
         test ! -s conftest.err
 
11070
       } && test -s conftest.$ac_objext; then
 
11071
  ac_hi=$ac_mid
 
11072
else
 
11073
  echo "$as_me: failed program was:" >&5
 
11074
sed 's/^/| /' conftest.$ac_ext >&5
 
11075
 
 
11076
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
11077
fi
 
11078
 
 
11079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11080
done
 
11081
case $ac_lo in
 
11082
?*) ac_cv_sizeof_long_long=$ac_lo;;
 
11083
'') if test "$ac_cv_type_long_long" = yes; then
 
11084
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
 
11085
See \`config.log' for more details." >&5
 
11086
echo "$as_me: error: cannot compute sizeof (long long)
 
11087
See \`config.log' for more details." >&2;}
 
11088
   { (exit 77); exit 77; }; }
 
11089
   else
 
11090
     ac_cv_sizeof_long_long=0
 
11091
   fi ;;
 
11092
esac
 
11093
else
 
11094
  cat >conftest.$ac_ext <<_ACEOF
 
11095
/* confdefs.h.  */
 
11096
_ACEOF
 
11097
cat confdefs.h >>conftest.$ac_ext
 
11098
cat >>conftest.$ac_ext <<_ACEOF
 
11099
/* end confdefs.h.  */
 
11100
$ac_includes_default
 
11101
   typedef long long ac__type_sizeof_;
 
11102
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
11103
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
11104
#include <stdio.h>
 
11105
#include <stdlib.h>
 
11106
int
 
11107
main ()
 
11108
{
 
11109
 
 
11110
  FILE *f = fopen ("conftest.val", "w");
 
11111
  if (! f)
 
11112
    return 1;
 
11113
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
11114
    {
 
11115
      long int i = longval ();
 
11116
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
11117
        return 1;
 
11118
      fprintf (f, "%ld\n", i);
 
11119
    }
 
11120
  else
 
11121
    {
 
11122
      unsigned long int i = ulongval ();
 
11123
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
11124
        return 1;
 
11125
      fprintf (f, "%lu\n", i);
 
11126
    }
 
11127
  return ferror (f) || fclose (f) != 0;
 
11128
 
 
11129
  ;
 
11130
  return 0;
 
11131
}
 
11132
_ACEOF
 
11133
rm -f conftest$ac_exeext
 
11134
if { (ac_try="$ac_link"
 
11135
case "(($ac_try" in
 
11136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11137
  *) ac_try_echo=$ac_try;;
 
11138
esac
 
11139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11140
  (eval "$ac_link") 2>&5
 
11141
  ac_status=$?
 
11142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11143
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11144
  { (case "(($ac_try" in
 
11145
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11146
  *) ac_try_echo=$ac_try;;
 
11147
esac
 
11148
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11149
  (eval "$ac_try") 2>&5
 
11150
  ac_status=$?
 
11151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11152
  (exit $ac_status); }; }; then
 
11153
  ac_cv_sizeof_long_long=`cat conftest.val`
 
11154
else
 
11155
  echo "$as_me: program exited with status $ac_status" >&5
 
11156
echo "$as_me: failed program was:" >&5
 
11157
sed 's/^/| /' conftest.$ac_ext >&5
 
11158
 
 
11159
( exit $ac_status )
 
11160
if test "$ac_cv_type_long_long" = yes; then
 
11161
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
 
11162
See \`config.log' for more details." >&5
 
11163
echo "$as_me: error: cannot compute sizeof (long long)
 
11164
See \`config.log' for more details." >&2;}
 
11165
   { (exit 77); exit 77; }; }
 
11166
   else
 
11167
     ac_cv_sizeof_long_long=0
 
11168
   fi
 
11169
fi
 
11170
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11171
fi
 
11172
rm -f conftest.val
 
11173
fi
 
11174
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
11175
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
 
11176
 
 
11177
 
 
11178
 
 
11179
cat >>confdefs.h <<_ACEOF
 
11180
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
11181
_ACEOF
 
11182
 
 
11183
 
 
11184
fi
 
11185
 
 
11186
{ echo "$as_me:$LINENO: checking for long double support" >&5
 
11187
echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
 
11188
have_long_double=no
 
11189
cat >conftest.$ac_ext <<_ACEOF
 
11190
/* confdefs.h.  */
 
11191
_ACEOF
 
11192
cat confdefs.h >>conftest.$ac_ext
 
11193
cat >>conftest.$ac_ext <<_ACEOF
 
11194
/* end confdefs.h.  */
 
11195
 
 
11196
int
 
11197
main ()
 
11198
{
 
11199
long double x; x = (long double)0.;
 
11200
  ;
 
11201
  return 0;
 
11202
}
 
11203
_ACEOF
 
11204
rm -f conftest.$ac_objext
 
11205
if { (ac_try="$ac_compile"
 
11206
case "(($ac_try" in
 
11207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11208
  *) ac_try_echo=$ac_try;;
 
11209
esac
 
11210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11211
  (eval "$ac_compile") 2>conftest.er1
 
11212
  ac_status=$?
 
11213
  grep -v '^ *+' conftest.er1 >conftest.err
 
11214
  rm -f conftest.er1
 
11215
  cat conftest.err >&5
 
11216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11217
  (exit $ac_status); } && {
 
11218
         test -z "$ac_c_werror_flag" ||
 
11219
         test ! -s conftest.err
 
11220
       } && test -s conftest.$ac_objext; then
 
11221
 
 
11222
 
 
11223
cat >>confdefs.h <<\_ACEOF
 
11224
#define HAVE_LONG_DOUBLE 1
 
11225
_ACEOF
 
11226
 
 
11227
  have_long_double=yes
 
11228
 
 
11229
else
 
11230
  echo "$as_me: failed program was:" >&5
 
11231
sed 's/^/| /' conftest.$ac_ext >&5
 
11232
 
 
11233
 
 
11234
fi
 
11235
 
 
11236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11237
{ echo "$as_me:$LINENO: result: $have_long_double" >&5
 
11238
echo "${ECHO_T}$have_long_double" >&6; }
 
11239
if test "$have_long_double" = yes ; then
 
11240
{ echo "$as_me:$LINENO: checking for long double" >&5
 
11241
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
 
11242
if test "${ac_cv_type_long_double+set}" = set; then
 
11243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11244
else
 
11245
  cat >conftest.$ac_ext <<_ACEOF
 
11246
/* confdefs.h.  */
 
11247
_ACEOF
 
11248
cat confdefs.h >>conftest.$ac_ext
 
11249
cat >>conftest.$ac_ext <<_ACEOF
 
11250
/* end confdefs.h.  */
 
11251
$ac_includes_default
 
11252
typedef long double ac__type_new_;
 
11253
int
 
11254
main ()
 
11255
{
 
11256
if ((ac__type_new_ *) 0)
 
11257
  return 0;
 
11258
if (sizeof (ac__type_new_))
 
11259
  return 0;
 
11260
  ;
 
11261
  return 0;
 
11262
}
 
11263
_ACEOF
 
11264
rm -f conftest.$ac_objext
 
11265
if { (ac_try="$ac_compile"
 
11266
case "(($ac_try" in
 
11267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11268
  *) ac_try_echo=$ac_try;;
 
11269
esac
 
11270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11271
  (eval "$ac_compile") 2>conftest.er1
 
11272
  ac_status=$?
 
11273
  grep -v '^ *+' conftest.er1 >conftest.err
 
11274
  rm -f conftest.er1
 
11275
  cat conftest.err >&5
 
11276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11277
  (exit $ac_status); } && {
 
11278
         test -z "$ac_c_werror_flag" ||
 
11279
         test ! -s conftest.err
 
11280
       } && test -s conftest.$ac_objext; then
 
11281
  ac_cv_type_long_double=yes
 
11282
else
 
11283
  echo "$as_me: failed program was:" >&5
 
11284
sed 's/^/| /' conftest.$ac_ext >&5
 
11285
 
 
11286
        ac_cv_type_long_double=no
 
11287
fi
 
11288
 
 
11289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11290
fi
 
11291
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
 
11292
echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
 
11293
 
 
11294
# The cast to long int works around a bug in the HP C Compiler
 
11295
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
11296
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
11297
# This bug is HP SR number 8606223364.
 
11298
{ echo "$as_me:$LINENO: checking size of long double" >&5
 
11299
echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
 
11300
if test "${ac_cv_sizeof_long_double+set}" = set; then
 
11301
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11302
else
 
11303
  if test "$cross_compiling" = yes; then
 
11304
  # Depending upon the size, compute the lo and hi bounds.
 
11305
cat >conftest.$ac_ext <<_ACEOF
 
11306
/* confdefs.h.  */
 
11307
_ACEOF
 
11308
cat confdefs.h >>conftest.$ac_ext
 
11309
cat >>conftest.$ac_ext <<_ACEOF
 
11310
/* end confdefs.h.  */
 
11311
$ac_includes_default
 
11312
   typedef long double ac__type_sizeof_;
 
11313
int
 
11314
main ()
 
11315
{
 
11316
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
11317
test_array [0] = 0
 
11318
 
 
11319
  ;
 
11320
  return 0;
 
11321
}
 
11322
_ACEOF
 
11323
rm -f conftest.$ac_objext
 
11324
if { (ac_try="$ac_compile"
 
11325
case "(($ac_try" in
 
11326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11327
  *) ac_try_echo=$ac_try;;
 
11328
esac
 
11329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11330
  (eval "$ac_compile") 2>conftest.er1
 
11331
  ac_status=$?
 
11332
  grep -v '^ *+' conftest.er1 >conftest.err
 
11333
  rm -f conftest.er1
 
11334
  cat conftest.err >&5
 
11335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11336
  (exit $ac_status); } && {
 
11337
         test -z "$ac_c_werror_flag" ||
 
11338
         test ! -s conftest.err
 
11339
       } && test -s conftest.$ac_objext; then
 
11340
  ac_lo=0 ac_mid=0
 
11341
  while :; do
 
11342
    cat >conftest.$ac_ext <<_ACEOF
 
11343
/* confdefs.h.  */
 
11344
_ACEOF
 
11345
cat confdefs.h >>conftest.$ac_ext
 
11346
cat >>conftest.$ac_ext <<_ACEOF
 
11347
/* end confdefs.h.  */
 
11348
$ac_includes_default
 
11349
   typedef long double ac__type_sizeof_;
 
11350
int
 
11351
main ()
 
11352
{
 
11353
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
11354
test_array [0] = 0
 
11355
 
 
11356
  ;
 
11357
  return 0;
 
11358
}
 
11359
_ACEOF
 
11360
rm -f conftest.$ac_objext
 
11361
if { (ac_try="$ac_compile"
 
11362
case "(($ac_try" in
 
11363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11364
  *) ac_try_echo=$ac_try;;
 
11365
esac
 
11366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11367
  (eval "$ac_compile") 2>conftest.er1
 
11368
  ac_status=$?
 
11369
  grep -v '^ *+' conftest.er1 >conftest.err
 
11370
  rm -f conftest.er1
 
11371
  cat conftest.err >&5
 
11372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11373
  (exit $ac_status); } && {
 
11374
         test -z "$ac_c_werror_flag" ||
 
11375
         test ! -s conftest.err
 
11376
       } && test -s conftest.$ac_objext; then
 
11377
  ac_hi=$ac_mid; break
 
11378
else
 
11379
  echo "$as_me: failed program was:" >&5
 
11380
sed 's/^/| /' conftest.$ac_ext >&5
 
11381
 
 
11382
        ac_lo=`expr $ac_mid + 1`
 
11383
                        if test $ac_lo -le $ac_mid; then
 
11384
                          ac_lo= ac_hi=
 
11385
                          break
 
11386
                        fi
 
11387
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
11388
fi
 
11389
 
 
11390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11391
  done
 
11392
else
 
11393
  echo "$as_me: failed program was:" >&5
 
11394
sed 's/^/| /' conftest.$ac_ext >&5
 
11395
 
 
11396
        cat >conftest.$ac_ext <<_ACEOF
 
11397
/* confdefs.h.  */
 
11398
_ACEOF
 
11399
cat confdefs.h >>conftest.$ac_ext
 
11400
cat >>conftest.$ac_ext <<_ACEOF
 
11401
/* end confdefs.h.  */
 
11402
$ac_includes_default
 
11403
   typedef long double ac__type_sizeof_;
 
11404
int
 
11405
main ()
 
11406
{
 
11407
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
11408
test_array [0] = 0
 
11409
 
 
11410
  ;
 
11411
  return 0;
 
11412
}
 
11413
_ACEOF
 
11414
rm -f conftest.$ac_objext
 
11415
if { (ac_try="$ac_compile"
 
11416
case "(($ac_try" in
 
11417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11418
  *) ac_try_echo=$ac_try;;
 
11419
esac
 
11420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11421
  (eval "$ac_compile") 2>conftest.er1
 
11422
  ac_status=$?
 
11423
  grep -v '^ *+' conftest.er1 >conftest.err
 
11424
  rm -f conftest.er1
 
11425
  cat conftest.err >&5
 
11426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11427
  (exit $ac_status); } && {
 
11428
         test -z "$ac_c_werror_flag" ||
 
11429
         test ! -s conftest.err
 
11430
       } && test -s conftest.$ac_objext; then
 
11431
  ac_hi=-1 ac_mid=-1
 
11432
  while :; do
 
11433
    cat >conftest.$ac_ext <<_ACEOF
 
11434
/* confdefs.h.  */
 
11435
_ACEOF
 
11436
cat confdefs.h >>conftest.$ac_ext
 
11437
cat >>conftest.$ac_ext <<_ACEOF
 
11438
/* end confdefs.h.  */
 
11439
$ac_includes_default
 
11440
   typedef long double ac__type_sizeof_;
 
11441
int
 
11442
main ()
 
11443
{
 
11444
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
11445
test_array [0] = 0
 
11446
 
 
11447
  ;
 
11448
  return 0;
 
11449
}
 
11450
_ACEOF
 
11451
rm -f conftest.$ac_objext
 
11452
if { (ac_try="$ac_compile"
 
11453
case "(($ac_try" in
 
11454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11455
  *) ac_try_echo=$ac_try;;
 
11456
esac
 
11457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11458
  (eval "$ac_compile") 2>conftest.er1
 
11459
  ac_status=$?
 
11460
  grep -v '^ *+' conftest.er1 >conftest.err
 
11461
  rm -f conftest.er1
 
11462
  cat conftest.err >&5
 
11463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11464
  (exit $ac_status); } && {
 
11465
         test -z "$ac_c_werror_flag" ||
 
11466
         test ! -s conftest.err
 
11467
       } && test -s conftest.$ac_objext; then
 
11468
  ac_lo=$ac_mid; break
 
11469
else
 
11470
  echo "$as_me: failed program was:" >&5
 
11471
sed 's/^/| /' conftest.$ac_ext >&5
 
11472
 
 
11473
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
11474
                        if test $ac_mid -le $ac_hi; then
 
11475
                          ac_lo= ac_hi=
 
11476
                          break
 
11477
                        fi
 
11478
                        ac_mid=`expr 2 '*' $ac_mid`
 
11479
fi
 
11480
 
 
11481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11482
  done
 
11483
else
 
11484
  echo "$as_me: failed program was:" >&5
 
11485
sed 's/^/| /' conftest.$ac_ext >&5
 
11486
 
 
11487
        ac_lo= ac_hi=
 
11488
fi
 
11489
 
 
11490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11491
fi
 
11492
 
 
11493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11494
# Binary search between lo and hi bounds.
 
11495
while test "x$ac_lo" != "x$ac_hi"; do
 
11496
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
11497
  cat >conftest.$ac_ext <<_ACEOF
 
11498
/* confdefs.h.  */
 
11499
_ACEOF
 
11500
cat confdefs.h >>conftest.$ac_ext
 
11501
cat >>conftest.$ac_ext <<_ACEOF
 
11502
/* end confdefs.h.  */
 
11503
$ac_includes_default
 
11504
   typedef long double ac__type_sizeof_;
 
11505
int
 
11506
main ()
 
11507
{
 
11508
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
11509
test_array [0] = 0
 
11510
 
 
11511
  ;
 
11512
  return 0;
 
11513
}
 
11514
_ACEOF
 
11515
rm -f conftest.$ac_objext
 
11516
if { (ac_try="$ac_compile"
 
11517
case "(($ac_try" in
 
11518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11519
  *) ac_try_echo=$ac_try;;
 
11520
esac
 
11521
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11522
  (eval "$ac_compile") 2>conftest.er1
 
11523
  ac_status=$?
 
11524
  grep -v '^ *+' conftest.er1 >conftest.err
 
11525
  rm -f conftest.er1
 
11526
  cat conftest.err >&5
 
11527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11528
  (exit $ac_status); } && {
 
11529
         test -z "$ac_c_werror_flag" ||
 
11530
         test ! -s conftest.err
 
11531
       } && test -s conftest.$ac_objext; then
 
11532
  ac_hi=$ac_mid
 
11533
else
 
11534
  echo "$as_me: failed program was:" >&5
 
11535
sed 's/^/| /' conftest.$ac_ext >&5
 
11536
 
 
11537
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
11538
fi
 
11539
 
 
11540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11541
done
 
11542
case $ac_lo in
 
11543
?*) ac_cv_sizeof_long_double=$ac_lo;;
 
11544
'') if test "$ac_cv_type_long_double" = yes; then
 
11545
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
 
11546
See \`config.log' for more details." >&5
 
11547
echo "$as_me: error: cannot compute sizeof (long double)
 
11548
See \`config.log' for more details." >&2;}
 
11549
   { (exit 77); exit 77; }; }
 
11550
   else
 
11551
     ac_cv_sizeof_long_double=0
 
11552
   fi ;;
 
11553
esac
 
11554
else
 
11555
  cat >conftest.$ac_ext <<_ACEOF
 
11556
/* confdefs.h.  */
 
11557
_ACEOF
 
11558
cat confdefs.h >>conftest.$ac_ext
 
11559
cat >>conftest.$ac_ext <<_ACEOF
 
11560
/* end confdefs.h.  */
 
11561
$ac_includes_default
 
11562
   typedef long double ac__type_sizeof_;
 
11563
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
11564
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
11565
#include <stdio.h>
 
11566
#include <stdlib.h>
 
11567
int
 
11568
main ()
 
11569
{
 
11570
 
 
11571
  FILE *f = fopen ("conftest.val", "w");
 
11572
  if (! f)
 
11573
    return 1;
 
11574
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
11575
    {
 
11576
      long int i = longval ();
 
11577
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
11578
        return 1;
 
11579
      fprintf (f, "%ld\n", i);
 
11580
    }
 
11581
  else
 
11582
    {
 
11583
      unsigned long int i = ulongval ();
 
11584
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
11585
        return 1;
 
11586
      fprintf (f, "%lu\n", i);
 
11587
    }
 
11588
  return ferror (f) || fclose (f) != 0;
 
11589
 
 
11590
  ;
 
11591
  return 0;
 
11592
}
 
11593
_ACEOF
 
11594
rm -f conftest$ac_exeext
 
11595
if { (ac_try="$ac_link"
 
11596
case "(($ac_try" in
 
11597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11598
  *) ac_try_echo=$ac_try;;
 
11599
esac
 
11600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11601
  (eval "$ac_link") 2>&5
 
11602
  ac_status=$?
 
11603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11604
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11605
  { (case "(($ac_try" in
 
11606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11607
  *) ac_try_echo=$ac_try;;
 
11608
esac
 
11609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11610
  (eval "$ac_try") 2>&5
 
11611
  ac_status=$?
 
11612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11613
  (exit $ac_status); }; }; then
 
11614
  ac_cv_sizeof_long_double=`cat conftest.val`
 
11615
else
 
11616
  echo "$as_me: program exited with status $ac_status" >&5
 
11617
echo "$as_me: failed program was:" >&5
 
11618
sed 's/^/| /' conftest.$ac_ext >&5
 
11619
 
 
11620
( exit $ac_status )
 
11621
if test "$ac_cv_type_long_double" = yes; then
 
11622
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
 
11623
See \`config.log' for more details." >&5
 
11624
echo "$as_me: error: cannot compute sizeof (long double)
 
11625
See \`config.log' for more details." >&2;}
 
11626
   { (exit 77); exit 77; }; }
 
11627
   else
 
11628
     ac_cv_sizeof_long_double=0
 
11629
   fi
 
11630
fi
 
11631
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11632
fi
 
11633
rm -f conftest.val
 
11634
fi
 
11635
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
 
11636
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
 
11637
 
 
11638
 
 
11639
 
 
11640
cat >>confdefs.h <<_ACEOF
 
11641
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
 
11642
_ACEOF
 
11643
 
 
11644
 
 
11645
fi
 
11646
 
 
11647
{ echo "$as_me:$LINENO: checking for _Bool support" >&5
 
11648
echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
 
11649
have_c99_bool=no
 
11650
cat >conftest.$ac_ext <<_ACEOF
 
11651
/* confdefs.h.  */
 
11652
_ACEOF
 
11653
cat confdefs.h >>conftest.$ac_ext
 
11654
cat >>conftest.$ac_ext <<_ACEOF
 
11655
/* end confdefs.h.  */
 
11656
 
 
11657
int
 
11658
main ()
 
11659
{
 
11660
_Bool x; x = (_Bool)0;
 
11661
  ;
 
11662
  return 0;
 
11663
}
 
11664
_ACEOF
 
11665
rm -f conftest.$ac_objext
 
11666
if { (ac_try="$ac_compile"
 
11667
case "(($ac_try" in
 
11668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11669
  *) ac_try_echo=$ac_try;;
 
11670
esac
 
11671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11672
  (eval "$ac_compile") 2>conftest.er1
 
11673
  ac_status=$?
 
11674
  grep -v '^ *+' conftest.er1 >conftest.err
 
11675
  rm -f conftest.er1
 
11676
  cat conftest.err >&5
 
11677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11678
  (exit $ac_status); } && {
 
11679
         test -z "$ac_c_werror_flag" ||
 
11680
         test ! -s conftest.err
 
11681
       } && test -s conftest.$ac_objext; then
 
11682
 
 
11683
 
 
11684
cat >>confdefs.h <<\_ACEOF
 
11685
#define HAVE_C99_BOOL 1
 
11686
_ACEOF
 
11687
 
 
11688
  have_c99_bool=yes
 
11689
 
 
11690
else
 
11691
  echo "$as_me: failed program was:" >&5
 
11692
sed 's/^/| /' conftest.$ac_ext >&5
 
11693
 
 
11694
 
 
11695
fi
 
11696
 
 
11697
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11698
{ echo "$as_me:$LINENO: result: $have_c99_bool" >&5
 
11699
echo "${ECHO_T}$have_c99_bool" >&6; }
 
11700
if test "$have_c99_bool" = yes ; then
 
11701
{ echo "$as_me:$LINENO: checking for _Bool" >&5
 
11702
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
 
11703
if test "${ac_cv_type__Bool+set}" = set; then
 
11704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11705
else
 
11706
  cat >conftest.$ac_ext <<_ACEOF
 
11707
/* confdefs.h.  */
 
11708
_ACEOF
 
11709
cat confdefs.h >>conftest.$ac_ext
 
11710
cat >>conftest.$ac_ext <<_ACEOF
 
11711
/* end confdefs.h.  */
 
11712
$ac_includes_default
 
11713
typedef _Bool ac__type_new_;
 
11714
int
 
11715
main ()
 
11716
{
 
11717
if ((ac__type_new_ *) 0)
 
11718
  return 0;
 
11719
if (sizeof (ac__type_new_))
 
11720
  return 0;
 
11721
  ;
 
11722
  return 0;
 
11723
}
 
11724
_ACEOF
 
11725
rm -f conftest.$ac_objext
 
11726
if { (ac_try="$ac_compile"
 
11727
case "(($ac_try" in
 
11728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11729
  *) ac_try_echo=$ac_try;;
 
11730
esac
 
11731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11732
  (eval "$ac_compile") 2>conftest.er1
 
11733
  ac_status=$?
 
11734
  grep -v '^ *+' conftest.er1 >conftest.err
 
11735
  rm -f conftest.er1
 
11736
  cat conftest.err >&5
 
11737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11738
  (exit $ac_status); } && {
 
11739
         test -z "$ac_c_werror_flag" ||
 
11740
         test ! -s conftest.err
 
11741
       } && test -s conftest.$ac_objext; then
 
11742
  ac_cv_type__Bool=yes
 
11743
else
 
11744
  echo "$as_me: failed program was:" >&5
 
11745
sed 's/^/| /' conftest.$ac_ext >&5
 
11746
 
 
11747
        ac_cv_type__Bool=no
 
11748
fi
 
11749
 
 
11750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11751
fi
 
11752
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
11753
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
 
11754
 
 
11755
# The cast to long int works around a bug in the HP C Compiler
 
11756
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
11757
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
11758
# This bug is HP SR number 8606223364.
 
11759
{ echo "$as_me:$LINENO: checking size of _Bool" >&5
 
11760
echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
 
11761
if test "${ac_cv_sizeof__Bool+set}" = set; then
 
11762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11763
else
 
11764
  if test "$cross_compiling" = yes; then
 
11765
  # Depending upon the size, compute the lo and hi bounds.
 
11766
cat >conftest.$ac_ext <<_ACEOF
 
11767
/* confdefs.h.  */
 
11768
_ACEOF
 
11769
cat confdefs.h >>conftest.$ac_ext
 
11770
cat >>conftest.$ac_ext <<_ACEOF
 
11771
/* end confdefs.h.  */
 
11772
$ac_includes_default
 
11773
   typedef _Bool ac__type_sizeof_;
 
11774
int
 
11775
main ()
 
11776
{
 
11777
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
11778
test_array [0] = 0
 
11779
 
 
11780
  ;
 
11781
  return 0;
 
11782
}
 
11783
_ACEOF
 
11784
rm -f conftest.$ac_objext
 
11785
if { (ac_try="$ac_compile"
 
11786
case "(($ac_try" in
 
11787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11788
  *) ac_try_echo=$ac_try;;
 
11789
esac
 
11790
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11791
  (eval "$ac_compile") 2>conftest.er1
 
11792
  ac_status=$?
 
11793
  grep -v '^ *+' conftest.er1 >conftest.err
 
11794
  rm -f conftest.er1
 
11795
  cat conftest.err >&5
 
11796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11797
  (exit $ac_status); } && {
 
11798
         test -z "$ac_c_werror_flag" ||
 
11799
         test ! -s conftest.err
 
11800
       } && test -s conftest.$ac_objext; then
 
11801
  ac_lo=0 ac_mid=0
 
11802
  while :; do
 
11803
    cat >conftest.$ac_ext <<_ACEOF
 
11804
/* confdefs.h.  */
 
11805
_ACEOF
 
11806
cat confdefs.h >>conftest.$ac_ext
 
11807
cat >>conftest.$ac_ext <<_ACEOF
 
11808
/* end confdefs.h.  */
 
11809
$ac_includes_default
 
11810
   typedef _Bool ac__type_sizeof_;
 
11811
int
 
11812
main ()
 
11813
{
 
11814
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
11815
test_array [0] = 0
 
11816
 
 
11817
  ;
 
11818
  return 0;
 
11819
}
 
11820
_ACEOF
 
11821
rm -f conftest.$ac_objext
 
11822
if { (ac_try="$ac_compile"
 
11823
case "(($ac_try" in
 
11824
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11825
  *) ac_try_echo=$ac_try;;
 
11826
esac
 
11827
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11828
  (eval "$ac_compile") 2>conftest.er1
 
11829
  ac_status=$?
 
11830
  grep -v '^ *+' conftest.er1 >conftest.err
 
11831
  rm -f conftest.er1
 
11832
  cat conftest.err >&5
 
11833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11834
  (exit $ac_status); } && {
 
11835
         test -z "$ac_c_werror_flag" ||
 
11836
         test ! -s conftest.err
 
11837
       } && test -s conftest.$ac_objext; then
 
11838
  ac_hi=$ac_mid; break
 
11839
else
 
11840
  echo "$as_me: failed program was:" >&5
 
11841
sed 's/^/| /' conftest.$ac_ext >&5
 
11842
 
 
11843
        ac_lo=`expr $ac_mid + 1`
 
11844
                        if test $ac_lo -le $ac_mid; then
 
11845
                          ac_lo= ac_hi=
 
11846
                          break
 
11847
                        fi
 
11848
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
11849
fi
 
11850
 
 
11851
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11852
  done
 
11853
else
 
11854
  echo "$as_me: failed program was:" >&5
 
11855
sed 's/^/| /' conftest.$ac_ext >&5
 
11856
 
 
11857
        cat >conftest.$ac_ext <<_ACEOF
 
11858
/* confdefs.h.  */
 
11859
_ACEOF
 
11860
cat confdefs.h >>conftest.$ac_ext
 
11861
cat >>conftest.$ac_ext <<_ACEOF
 
11862
/* end confdefs.h.  */
 
11863
$ac_includes_default
 
11864
   typedef _Bool ac__type_sizeof_;
 
11865
int
 
11866
main ()
 
11867
{
 
11868
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
11869
test_array [0] = 0
 
11870
 
 
11871
  ;
 
11872
  return 0;
 
11873
}
 
11874
_ACEOF
 
11875
rm -f conftest.$ac_objext
 
11876
if { (ac_try="$ac_compile"
 
11877
case "(($ac_try" in
 
11878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11879
  *) ac_try_echo=$ac_try;;
 
11880
esac
 
11881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11882
  (eval "$ac_compile") 2>conftest.er1
 
11883
  ac_status=$?
 
11884
  grep -v '^ *+' conftest.er1 >conftest.err
 
11885
  rm -f conftest.er1
 
11886
  cat conftest.err >&5
 
11887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11888
  (exit $ac_status); } && {
 
11889
         test -z "$ac_c_werror_flag" ||
 
11890
         test ! -s conftest.err
 
11891
       } && test -s conftest.$ac_objext; then
 
11892
  ac_hi=-1 ac_mid=-1
 
11893
  while :; do
 
11894
    cat >conftest.$ac_ext <<_ACEOF
 
11895
/* confdefs.h.  */
 
11896
_ACEOF
 
11897
cat confdefs.h >>conftest.$ac_ext
 
11898
cat >>conftest.$ac_ext <<_ACEOF
 
11899
/* end confdefs.h.  */
 
11900
$ac_includes_default
 
11901
   typedef _Bool ac__type_sizeof_;
 
11902
int
 
11903
main ()
 
11904
{
 
11905
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
11906
test_array [0] = 0
 
11907
 
 
11908
  ;
 
11909
  return 0;
 
11910
}
 
11911
_ACEOF
 
11912
rm -f conftest.$ac_objext
 
11913
if { (ac_try="$ac_compile"
 
11914
case "(($ac_try" in
 
11915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11916
  *) ac_try_echo=$ac_try;;
 
11917
esac
 
11918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11919
  (eval "$ac_compile") 2>conftest.er1
 
11920
  ac_status=$?
 
11921
  grep -v '^ *+' conftest.er1 >conftest.err
 
11922
  rm -f conftest.er1
 
11923
  cat conftest.err >&5
 
11924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11925
  (exit $ac_status); } && {
 
11926
         test -z "$ac_c_werror_flag" ||
 
11927
         test ! -s conftest.err
 
11928
       } && test -s conftest.$ac_objext; then
 
11929
  ac_lo=$ac_mid; break
 
11930
else
 
11931
  echo "$as_me: failed program was:" >&5
 
11932
sed 's/^/| /' conftest.$ac_ext >&5
 
11933
 
 
11934
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
11935
                        if test $ac_mid -le $ac_hi; then
 
11936
                          ac_lo= ac_hi=
 
11937
                          break
 
11938
                        fi
 
11939
                        ac_mid=`expr 2 '*' $ac_mid`
 
11940
fi
 
11941
 
 
11942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11943
  done
 
11944
else
 
11945
  echo "$as_me: failed program was:" >&5
 
11946
sed 's/^/| /' conftest.$ac_ext >&5
 
11947
 
 
11948
        ac_lo= ac_hi=
 
11949
fi
 
11950
 
 
11951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11952
fi
 
11953
 
 
11954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11955
# Binary search between lo and hi bounds.
 
11956
while test "x$ac_lo" != "x$ac_hi"; do
 
11957
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
11958
  cat >conftest.$ac_ext <<_ACEOF
 
11959
/* confdefs.h.  */
 
11960
_ACEOF
 
11961
cat confdefs.h >>conftest.$ac_ext
 
11962
cat >>conftest.$ac_ext <<_ACEOF
 
11963
/* end confdefs.h.  */
 
11964
$ac_includes_default
 
11965
   typedef _Bool ac__type_sizeof_;
 
11966
int
 
11967
main ()
 
11968
{
 
11969
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
11970
test_array [0] = 0
 
11971
 
 
11972
  ;
 
11973
  return 0;
 
11974
}
 
11975
_ACEOF
 
11976
rm -f conftest.$ac_objext
 
11977
if { (ac_try="$ac_compile"
 
11978
case "(($ac_try" in
 
11979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11980
  *) ac_try_echo=$ac_try;;
 
11981
esac
 
11982
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11983
  (eval "$ac_compile") 2>conftest.er1
 
11984
  ac_status=$?
 
11985
  grep -v '^ *+' conftest.er1 >conftest.err
 
11986
  rm -f conftest.er1
 
11987
  cat conftest.err >&5
 
11988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11989
  (exit $ac_status); } && {
 
11990
         test -z "$ac_c_werror_flag" ||
 
11991
         test ! -s conftest.err
 
11992
       } && test -s conftest.$ac_objext; then
 
11993
  ac_hi=$ac_mid
 
11994
else
 
11995
  echo "$as_me: failed program was:" >&5
 
11996
sed 's/^/| /' conftest.$ac_ext >&5
 
11997
 
 
11998
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
11999
fi
 
12000
 
 
12001
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12002
done
 
12003
case $ac_lo in
 
12004
?*) ac_cv_sizeof__Bool=$ac_lo;;
 
12005
'') if test "$ac_cv_type__Bool" = yes; then
 
12006
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
 
12007
See \`config.log' for more details." >&5
 
12008
echo "$as_me: error: cannot compute sizeof (_Bool)
 
12009
See \`config.log' for more details." >&2;}
 
12010
   { (exit 77); exit 77; }; }
 
12011
   else
 
12012
     ac_cv_sizeof__Bool=0
 
12013
   fi ;;
 
12014
esac
 
12015
else
 
12016
  cat >conftest.$ac_ext <<_ACEOF
 
12017
/* confdefs.h.  */
 
12018
_ACEOF
 
12019
cat confdefs.h >>conftest.$ac_ext
 
12020
cat >>conftest.$ac_ext <<_ACEOF
 
12021
/* end confdefs.h.  */
 
12022
$ac_includes_default
 
12023
   typedef _Bool ac__type_sizeof_;
 
12024
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
12025
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
12026
#include <stdio.h>
 
12027
#include <stdlib.h>
 
12028
int
 
12029
main ()
 
12030
{
 
12031
 
 
12032
  FILE *f = fopen ("conftest.val", "w");
 
12033
  if (! f)
 
12034
    return 1;
 
12035
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
12036
    {
 
12037
      long int i = longval ();
 
12038
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
12039
        return 1;
 
12040
      fprintf (f, "%ld\n", i);
 
12041
    }
 
12042
  else
 
12043
    {
 
12044
      unsigned long int i = ulongval ();
 
12045
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
12046
        return 1;
 
12047
      fprintf (f, "%lu\n", i);
 
12048
    }
 
12049
  return ferror (f) || fclose (f) != 0;
 
12050
 
 
12051
  ;
 
12052
  return 0;
 
12053
}
 
12054
_ACEOF
 
12055
rm -f conftest$ac_exeext
 
12056
if { (ac_try="$ac_link"
 
12057
case "(($ac_try" in
 
12058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12059
  *) ac_try_echo=$ac_try;;
 
12060
esac
 
12061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12062
  (eval "$ac_link") 2>&5
 
12063
  ac_status=$?
 
12064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12065
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12066
  { (case "(($ac_try" in
 
12067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12068
  *) ac_try_echo=$ac_try;;
 
12069
esac
 
12070
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12071
  (eval "$ac_try") 2>&5
 
12072
  ac_status=$?
 
12073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12074
  (exit $ac_status); }; }; then
 
12075
  ac_cv_sizeof__Bool=`cat conftest.val`
 
12076
else
 
12077
  echo "$as_me: program exited with status $ac_status" >&5
 
12078
echo "$as_me: failed program was:" >&5
 
12079
sed 's/^/| /' conftest.$ac_ext >&5
 
12080
 
 
12081
( exit $ac_status )
 
12082
if test "$ac_cv_type__Bool" = yes; then
 
12083
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
 
12084
See \`config.log' for more details." >&5
 
12085
echo "$as_me: error: cannot compute sizeof (_Bool)
 
12086
See \`config.log' for more details." >&2;}
 
12087
   { (exit 77); exit 77; }; }
 
12088
   else
 
12089
     ac_cv_sizeof__Bool=0
 
12090
   fi
 
12091
fi
 
12092
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12093
fi
 
12094
rm -f conftest.val
 
12095
fi
 
12096
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
 
12097
echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
 
12098
 
 
12099
 
 
12100
 
 
12101
cat >>confdefs.h <<_ACEOF
 
12102
#define SIZEOF__BOOL $ac_cv_sizeof__Bool
 
12103
_ACEOF
 
12104
 
 
12105
 
 
12106
fi
 
12107
 
 
12108
{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
 
12109
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
 
12110
if test "${ac_cv_type_uintptr_t+set}" = set; then
 
12111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12112
else
 
12113
  cat >conftest.$ac_ext <<_ACEOF
 
12114
/* confdefs.h.  */
 
12115
_ACEOF
 
12116
cat confdefs.h >>conftest.$ac_ext
 
12117
cat >>conftest.$ac_ext <<_ACEOF
 
12118
/* end confdefs.h.  */
 
12119
#ifdef HAVE_STDINT_H
 
12120
        #include <stdint.h>
 
12121
        #endif
 
12122
 
 
12123
typedef uintptr_t ac__type_new_;
 
12124
int
 
12125
main ()
 
12126
{
 
12127
if ((ac__type_new_ *) 0)
 
12128
  return 0;
 
12129
if (sizeof (ac__type_new_))
 
12130
  return 0;
 
12131
  ;
 
12132
  return 0;
 
12133
}
 
12134
_ACEOF
 
12135
rm -f conftest.$ac_objext
 
12136
if { (ac_try="$ac_compile"
 
12137
case "(($ac_try" in
 
12138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12139
  *) ac_try_echo=$ac_try;;
 
12140
esac
 
12141
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12142
  (eval "$ac_compile") 2>conftest.er1
 
12143
  ac_status=$?
 
12144
  grep -v '^ *+' conftest.er1 >conftest.err
 
12145
  rm -f conftest.er1
 
12146
  cat conftest.err >&5
 
12147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12148
  (exit $ac_status); } && {
 
12149
         test -z "$ac_c_werror_flag" ||
 
12150
         test ! -s conftest.err
 
12151
       } && test -s conftest.$ac_objext; then
 
12152
  ac_cv_type_uintptr_t=yes
 
12153
else
 
12154
  echo "$as_me: failed program was:" >&5
 
12155
sed 's/^/| /' conftest.$ac_ext >&5
 
12156
 
 
12157
        ac_cv_type_uintptr_t=no
 
12158
fi
 
12159
 
 
12160
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12161
fi
 
12162
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
 
12163
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
 
12164
if test $ac_cv_type_uintptr_t = yes; then
 
12165
 
 
12166
cat >>confdefs.h <<_ACEOF
 
12167
#define HAVE_UINTPTR_T 1
 
12168
_ACEOF
 
12169
 
 
12170
{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
 
12171
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
 
12172
if test "${ac_cv_type_uintptr_t+set}" = set; then
 
12173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12174
else
 
12175
  cat >conftest.$ac_ext <<_ACEOF
 
12176
/* confdefs.h.  */
 
12177
_ACEOF
 
12178
cat confdefs.h >>conftest.$ac_ext
 
12179
cat >>conftest.$ac_ext <<_ACEOF
 
12180
/* end confdefs.h.  */
 
12181
$ac_includes_default
 
12182
typedef uintptr_t ac__type_new_;
 
12183
int
 
12184
main ()
 
12185
{
 
12186
if ((ac__type_new_ *) 0)
 
12187
  return 0;
 
12188
if (sizeof (ac__type_new_))
 
12189
  return 0;
 
12190
  ;
 
12191
  return 0;
 
12192
}
 
12193
_ACEOF
 
12194
rm -f conftest.$ac_objext
 
12195
if { (ac_try="$ac_compile"
 
12196
case "(($ac_try" in
 
12197
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12198
  *) ac_try_echo=$ac_try;;
 
12199
esac
 
12200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12201
  (eval "$ac_compile") 2>conftest.er1
 
12202
  ac_status=$?
 
12203
  grep -v '^ *+' conftest.er1 >conftest.err
 
12204
  rm -f conftest.er1
 
12205
  cat conftest.err >&5
 
12206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12207
  (exit $ac_status); } && {
 
12208
         test -z "$ac_c_werror_flag" ||
 
12209
         test ! -s conftest.err
 
12210
       } && test -s conftest.$ac_objext; then
 
12211
  ac_cv_type_uintptr_t=yes
 
12212
else
 
12213
  echo "$as_me: failed program was:" >&5
 
12214
sed 's/^/| /' conftest.$ac_ext >&5
 
12215
 
 
12216
        ac_cv_type_uintptr_t=no
 
12217
fi
 
12218
 
 
12219
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12220
fi
 
12221
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
 
12222
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
 
12223
 
 
12224
# The cast to long int works around a bug in the HP C Compiler
 
12225
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
12226
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
12227
# This bug is HP SR number 8606223364.
 
12228
{ echo "$as_me:$LINENO: checking size of uintptr_t" >&5
 
12229
echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
 
12230
if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
 
12231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12232
else
 
12233
  if test "$cross_compiling" = yes; then
 
12234
  # Depending upon the size, compute the lo and hi bounds.
 
12235
cat >conftest.$ac_ext <<_ACEOF
 
12236
/* confdefs.h.  */
 
12237
_ACEOF
 
12238
cat confdefs.h >>conftest.$ac_ext
 
12239
cat >>conftest.$ac_ext <<_ACEOF
 
12240
/* end confdefs.h.  */
 
12241
$ac_includes_default
 
12242
   typedef uintptr_t ac__type_sizeof_;
 
12243
int
 
12244
main ()
 
12245
{
 
12246
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
12247
test_array [0] = 0
 
12248
 
 
12249
  ;
 
12250
  return 0;
 
12251
}
 
12252
_ACEOF
 
12253
rm -f conftest.$ac_objext
 
12254
if { (ac_try="$ac_compile"
 
12255
case "(($ac_try" in
 
12256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12257
  *) ac_try_echo=$ac_try;;
 
12258
esac
 
12259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12260
  (eval "$ac_compile") 2>conftest.er1
 
12261
  ac_status=$?
 
12262
  grep -v '^ *+' conftest.er1 >conftest.err
 
12263
  rm -f conftest.er1
 
12264
  cat conftest.err >&5
 
12265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12266
  (exit $ac_status); } && {
 
12267
         test -z "$ac_c_werror_flag" ||
 
12268
         test ! -s conftest.err
 
12269
       } && test -s conftest.$ac_objext; then
 
12270
  ac_lo=0 ac_mid=0
 
12271
  while :; do
 
12272
    cat >conftest.$ac_ext <<_ACEOF
 
12273
/* confdefs.h.  */
 
12274
_ACEOF
 
12275
cat confdefs.h >>conftest.$ac_ext
 
12276
cat >>conftest.$ac_ext <<_ACEOF
 
12277
/* end confdefs.h.  */
 
12278
$ac_includes_default
 
12279
   typedef uintptr_t ac__type_sizeof_;
 
12280
int
 
12281
main ()
 
12282
{
 
12283
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
12284
test_array [0] = 0
 
12285
 
 
12286
  ;
 
12287
  return 0;
 
12288
}
 
12289
_ACEOF
 
12290
rm -f conftest.$ac_objext
 
12291
if { (ac_try="$ac_compile"
 
12292
case "(($ac_try" in
 
12293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12294
  *) ac_try_echo=$ac_try;;
 
12295
esac
 
12296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12297
  (eval "$ac_compile") 2>conftest.er1
 
12298
  ac_status=$?
 
12299
  grep -v '^ *+' conftest.er1 >conftest.err
 
12300
  rm -f conftest.er1
 
12301
  cat conftest.err >&5
 
12302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12303
  (exit $ac_status); } && {
 
12304
         test -z "$ac_c_werror_flag" ||
 
12305
         test ! -s conftest.err
 
12306
       } && test -s conftest.$ac_objext; then
 
12307
  ac_hi=$ac_mid; break
 
12308
else
 
12309
  echo "$as_me: failed program was:" >&5
 
12310
sed 's/^/| /' conftest.$ac_ext >&5
 
12311
 
 
12312
        ac_lo=`expr $ac_mid + 1`
 
12313
                        if test $ac_lo -le $ac_mid; then
 
12314
                          ac_lo= ac_hi=
 
12315
                          break
 
12316
                        fi
 
12317
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
12318
fi
 
12319
 
 
12320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12321
  done
 
12322
else
 
12323
  echo "$as_me: failed program was:" >&5
 
12324
sed 's/^/| /' conftest.$ac_ext >&5
 
12325
 
 
12326
        cat >conftest.$ac_ext <<_ACEOF
 
12327
/* confdefs.h.  */
 
12328
_ACEOF
 
12329
cat confdefs.h >>conftest.$ac_ext
 
12330
cat >>conftest.$ac_ext <<_ACEOF
 
12331
/* end confdefs.h.  */
 
12332
$ac_includes_default
 
12333
   typedef uintptr_t ac__type_sizeof_;
 
12334
int
 
12335
main ()
 
12336
{
 
12337
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
12338
test_array [0] = 0
 
12339
 
 
12340
  ;
 
12341
  return 0;
 
12342
}
 
12343
_ACEOF
 
12344
rm -f conftest.$ac_objext
 
12345
if { (ac_try="$ac_compile"
 
12346
case "(($ac_try" in
 
12347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12348
  *) ac_try_echo=$ac_try;;
 
12349
esac
 
12350
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12351
  (eval "$ac_compile") 2>conftest.er1
 
12352
  ac_status=$?
 
12353
  grep -v '^ *+' conftest.er1 >conftest.err
 
12354
  rm -f conftest.er1
 
12355
  cat conftest.err >&5
 
12356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12357
  (exit $ac_status); } && {
 
12358
         test -z "$ac_c_werror_flag" ||
 
12359
         test ! -s conftest.err
 
12360
       } && test -s conftest.$ac_objext; then
 
12361
  ac_hi=-1 ac_mid=-1
 
12362
  while :; do
 
12363
    cat >conftest.$ac_ext <<_ACEOF
 
12364
/* confdefs.h.  */
 
12365
_ACEOF
 
12366
cat confdefs.h >>conftest.$ac_ext
 
12367
cat >>conftest.$ac_ext <<_ACEOF
 
12368
/* end confdefs.h.  */
 
12369
$ac_includes_default
 
12370
   typedef uintptr_t ac__type_sizeof_;
 
12371
int
 
12372
main ()
 
12373
{
 
12374
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
12375
test_array [0] = 0
 
12376
 
 
12377
  ;
 
12378
  return 0;
 
12379
}
 
12380
_ACEOF
 
12381
rm -f conftest.$ac_objext
 
12382
if { (ac_try="$ac_compile"
 
12383
case "(($ac_try" in
 
12384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12385
  *) ac_try_echo=$ac_try;;
 
12386
esac
 
12387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12388
  (eval "$ac_compile") 2>conftest.er1
 
12389
  ac_status=$?
 
12390
  grep -v '^ *+' conftest.er1 >conftest.err
 
12391
  rm -f conftest.er1
 
12392
  cat conftest.err >&5
 
12393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12394
  (exit $ac_status); } && {
 
12395
         test -z "$ac_c_werror_flag" ||
 
12396
         test ! -s conftest.err
 
12397
       } && test -s conftest.$ac_objext; then
 
12398
  ac_lo=$ac_mid; break
 
12399
else
 
12400
  echo "$as_me: failed program was:" >&5
 
12401
sed 's/^/| /' conftest.$ac_ext >&5
 
12402
 
 
12403
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
12404
                        if test $ac_mid -le $ac_hi; then
 
12405
                          ac_lo= ac_hi=
 
12406
                          break
 
12407
                        fi
 
12408
                        ac_mid=`expr 2 '*' $ac_mid`
 
12409
fi
 
12410
 
 
12411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12412
  done
 
12413
else
 
12414
  echo "$as_me: failed program was:" >&5
 
12415
sed 's/^/| /' conftest.$ac_ext >&5
 
12416
 
 
12417
        ac_lo= ac_hi=
 
12418
fi
 
12419
 
 
12420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12421
fi
 
12422
 
 
12423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12424
# Binary search between lo and hi bounds.
 
12425
while test "x$ac_lo" != "x$ac_hi"; do
 
12426
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
12427
  cat >conftest.$ac_ext <<_ACEOF
 
12428
/* confdefs.h.  */
 
12429
_ACEOF
 
12430
cat confdefs.h >>conftest.$ac_ext
 
12431
cat >>conftest.$ac_ext <<_ACEOF
 
12432
/* end confdefs.h.  */
 
12433
$ac_includes_default
 
12434
   typedef uintptr_t ac__type_sizeof_;
 
12435
int
 
12436
main ()
 
12437
{
 
12438
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
12439
test_array [0] = 0
 
12440
 
 
12441
  ;
 
12442
  return 0;
 
12443
}
 
12444
_ACEOF
 
12445
rm -f conftest.$ac_objext
 
12446
if { (ac_try="$ac_compile"
 
12447
case "(($ac_try" in
 
12448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12449
  *) ac_try_echo=$ac_try;;
 
12450
esac
 
12451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12452
  (eval "$ac_compile") 2>conftest.er1
 
12453
  ac_status=$?
 
12454
  grep -v '^ *+' conftest.er1 >conftest.err
 
12455
  rm -f conftest.er1
 
12456
  cat conftest.err >&5
 
12457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12458
  (exit $ac_status); } && {
 
12459
         test -z "$ac_c_werror_flag" ||
 
12460
         test ! -s conftest.err
 
12461
       } && test -s conftest.$ac_objext; then
 
12462
  ac_hi=$ac_mid
 
12463
else
 
12464
  echo "$as_me: failed program was:" >&5
 
12465
sed 's/^/| /' conftest.$ac_ext >&5
 
12466
 
 
12467
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
12468
fi
 
12469
 
 
12470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12471
done
 
12472
case $ac_lo in
 
12473
?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
 
12474
'') if test "$ac_cv_type_uintptr_t" = yes; then
 
12475
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
 
12476
See \`config.log' for more details." >&5
 
12477
echo "$as_me: error: cannot compute sizeof (uintptr_t)
 
12478
See \`config.log' for more details." >&2;}
 
12479
   { (exit 77); exit 77; }; }
 
12480
   else
 
12481
     ac_cv_sizeof_uintptr_t=0
 
12482
   fi ;;
 
12483
esac
 
12484
else
 
12485
  cat >conftest.$ac_ext <<_ACEOF
 
12486
/* confdefs.h.  */
 
12487
_ACEOF
 
12488
cat confdefs.h >>conftest.$ac_ext
 
12489
cat >>conftest.$ac_ext <<_ACEOF
 
12490
/* end confdefs.h.  */
 
12491
$ac_includes_default
 
12492
   typedef uintptr_t ac__type_sizeof_;
 
12493
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
12494
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
12495
#include <stdio.h>
 
12496
#include <stdlib.h>
 
12497
int
 
12498
main ()
 
12499
{
 
12500
 
 
12501
  FILE *f = fopen ("conftest.val", "w");
 
12502
  if (! f)
 
12503
    return 1;
 
12504
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
12505
    {
 
12506
      long int i = longval ();
 
12507
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
12508
        return 1;
 
12509
      fprintf (f, "%ld\n", i);
 
12510
    }
 
12511
  else
 
12512
    {
 
12513
      unsigned long int i = ulongval ();
 
12514
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
12515
        return 1;
 
12516
      fprintf (f, "%lu\n", i);
 
12517
    }
 
12518
  return ferror (f) || fclose (f) != 0;
 
12519
 
 
12520
  ;
 
12521
  return 0;
 
12522
}
 
12523
_ACEOF
 
12524
rm -f conftest$ac_exeext
 
12525
if { (ac_try="$ac_link"
 
12526
case "(($ac_try" in
 
12527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12528
  *) ac_try_echo=$ac_try;;
 
12529
esac
 
12530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12531
  (eval "$ac_link") 2>&5
 
12532
  ac_status=$?
 
12533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12534
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12535
  { (case "(($ac_try" in
 
12536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12537
  *) ac_try_echo=$ac_try;;
 
12538
esac
 
12539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12540
  (eval "$ac_try") 2>&5
 
12541
  ac_status=$?
 
12542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12543
  (exit $ac_status); }; }; then
 
12544
  ac_cv_sizeof_uintptr_t=`cat conftest.val`
 
12545
else
 
12546
  echo "$as_me: program exited with status $ac_status" >&5
 
12547
echo "$as_me: failed program was:" >&5
 
12548
sed 's/^/| /' conftest.$ac_ext >&5
 
12549
 
 
12550
( exit $ac_status )
 
12551
if test "$ac_cv_type_uintptr_t" = yes; then
 
12552
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
 
12553
See \`config.log' for more details." >&5
 
12554
echo "$as_me: error: cannot compute sizeof (uintptr_t)
 
12555
See \`config.log' for more details." >&2;}
 
12556
   { (exit 77); exit 77; }; }
 
12557
   else
 
12558
     ac_cv_sizeof_uintptr_t=0
 
12559
   fi
 
12560
fi
 
12561
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12562
fi
 
12563
rm -f conftest.val
 
12564
fi
 
12565
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
 
12566
echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
 
12567
 
 
12568
 
 
12569
 
 
12570
cat >>confdefs.h <<_ACEOF
 
12571
#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
 
12572
_ACEOF
 
12573
 
 
12574
 
 
12575
fi
 
12576
 
 
12577
 
 
12578
 
 
12579
# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
 
12580
{ echo "$as_me:$LINENO: checking size of off_t" >&5
 
12581
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
 
12582
if test "${ac_cv_sizeof_off_t+set}" = set; then
 
12583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12584
else
 
12585
  if test "$cross_compiling" = yes; then
 
12586
  ac_cv_sizeof_off_t=4
 
12587
else
 
12588
  cat >conftest.$ac_ext <<_ACEOF
 
12589
/* confdefs.h.  */
 
12590
_ACEOF
 
12591
cat confdefs.h >>conftest.$ac_ext
 
12592
cat >>conftest.$ac_ext <<_ACEOF
 
12593
/* end confdefs.h.  */
 
12594
#include <stdio.h>
 
12595
#include <sys/types.h>
 
12596
main()
 
12597
{
 
12598
  FILE *f=fopen("conftestval", "w");
 
12599
  if (!f) exit(1);
 
12600
  fprintf(f, "%d\n", sizeof(off_t));
 
12601
  exit(0);
 
12602
}
 
12603
_ACEOF
 
12604
rm -f conftest$ac_exeext
 
12605
if { (ac_try="$ac_link"
 
12606
case "(($ac_try" in
 
12607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12608
  *) ac_try_echo=$ac_try;;
 
12609
esac
 
12610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12611
  (eval "$ac_link") 2>&5
 
12612
  ac_status=$?
 
12613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12614
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12615
  { (case "(($ac_try" in
 
12616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12617
  *) ac_try_echo=$ac_try;;
 
12618
esac
 
12619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12620
  (eval "$ac_try") 2>&5
 
12621
  ac_status=$?
 
12622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12623
  (exit $ac_status); }; }; then
 
12624
  ac_cv_sizeof_off_t=`cat conftestval`
 
12625
else
 
12626
  echo "$as_me: program exited with status $ac_status" >&5
 
12627
echo "$as_me: failed program was:" >&5
 
12628
sed 's/^/| /' conftest.$ac_ext >&5
 
12629
 
 
12630
( exit $ac_status )
 
12631
ac_cv_sizeof_off_t=0
 
12632
fi
 
12633
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12634
fi
 
12635
 
 
12636
 
 
12637
 
 
12638
fi
 
12639
 
 
12640
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
 
12641
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
 
12642
 
 
12643
cat >>confdefs.h <<_ACEOF
 
12644
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
 
12645
_ACEOF
 
12646
 
 
12647
 
 
12648
{ echo "$as_me:$LINENO: checking whether to enable large file support" >&5
 
12649
echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
 
12650
if test "$have_long_long" = yes -a \
 
12651
        "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
 
12652
        "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
 
12653
 
 
12654
cat >>confdefs.h <<\_ACEOF
 
12655
#define HAVE_LARGEFILE_SUPPORT 1
 
12656
_ACEOF
 
12657
 
 
12658
  { echo "$as_me:$LINENO: result: yes" >&5
 
12659
echo "${ECHO_T}yes" >&6; }
 
12660
else
 
12661
  { echo "$as_me:$LINENO: result: no" >&5
 
12662
echo "${ECHO_T}no" >&6; }
 
12663
fi
 
12664
 
 
12665
# AC_CHECK_SIZEOF() doesn't include <time.h>.
 
12666
{ echo "$as_me:$LINENO: checking size of time_t" >&5
 
12667
echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
 
12668
if test "${ac_cv_sizeof_time_t+set}" = set; then
 
12669
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12670
else
 
12671
  if test "$cross_compiling" = yes; then
 
12672
  ac_cv_sizeof_time_t=4
 
12673
else
 
12674
  cat >conftest.$ac_ext <<_ACEOF
 
12675
/* confdefs.h.  */
 
12676
_ACEOF
 
12677
cat confdefs.h >>conftest.$ac_ext
 
12678
cat >>conftest.$ac_ext <<_ACEOF
 
12679
/* end confdefs.h.  */
 
12680
#include <stdio.h>
 
12681
#include <time.h>
 
12682
main()
 
12683
{
 
12684
  FILE *f=fopen("conftestval", "w");
 
12685
  if (!f) exit(1);
 
12686
  fprintf(f, "%d\n", sizeof(time_t));
 
12687
  exit(0);
 
12688
}
 
12689
_ACEOF
 
12690
rm -f conftest$ac_exeext
 
12691
if { (ac_try="$ac_link"
 
12692
case "(($ac_try" in
 
12693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12694
  *) ac_try_echo=$ac_try;;
 
12695
esac
 
12696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12697
  (eval "$ac_link") 2>&5
 
12698
  ac_status=$?
 
12699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12700
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12701
  { (case "(($ac_try" in
 
12702
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12703
  *) ac_try_echo=$ac_try;;
 
12704
esac
 
12705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12706
  (eval "$ac_try") 2>&5
 
12707
  ac_status=$?
 
12708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12709
  (exit $ac_status); }; }; then
 
12710
  ac_cv_sizeof_time_t=`cat conftestval`
 
12711
else
 
12712
  echo "$as_me: program exited with status $ac_status" >&5
 
12713
echo "$as_me: failed program was:" >&5
 
12714
sed 's/^/| /' conftest.$ac_ext >&5
 
12715
 
 
12716
( exit $ac_status )
 
12717
ac_cv_sizeof_time_t=0
 
12718
fi
 
12719
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12720
fi
 
12721
 
 
12722
 
 
12723
 
 
12724
fi
 
12725
 
 
12726
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
 
12727
echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
 
12728
 
 
12729
cat >>confdefs.h <<_ACEOF
 
12730
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
 
12731
_ACEOF
 
12732
 
 
12733
 
 
12734
 
 
12735
# if have pthread_t then define SIZEOF_PTHREAD_T
 
12736
ac_save_cc="$CC"
 
12737
if test "$ac_cv_kpthread" = "yes"
 
12738
then CC="$CC -Kpthread"
 
12739
elif test "$ac_cv_kthread" = "yes"
 
12740
then CC="$CC -Kthread"
 
12741
elif test "$ac_cv_pthread" = "yes"
 
12742
then CC="$CC -pthread"
 
12743
fi
 
12744
{ echo "$as_me:$LINENO: checking for pthread_t" >&5
 
12745
echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
 
12746
have_pthread_t=no
 
12747
cat >conftest.$ac_ext <<_ACEOF
 
12748
/* confdefs.h.  */
 
12749
_ACEOF
 
12750
cat confdefs.h >>conftest.$ac_ext
 
12751
cat >>conftest.$ac_ext <<_ACEOF
 
12752
/* end confdefs.h.  */
 
12753
#include <pthread.h>
 
12754
int
 
12755
main ()
 
12756
{
 
12757
pthread_t x; x = *(pthread_t*)0;
 
12758
  ;
 
12759
  return 0;
 
12760
}
 
12761
_ACEOF
 
12762
rm -f conftest.$ac_objext
 
12763
if { (ac_try="$ac_compile"
 
12764
case "(($ac_try" in
 
12765
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12766
  *) ac_try_echo=$ac_try;;
 
12767
esac
 
12768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12769
  (eval "$ac_compile") 2>conftest.er1
 
12770
  ac_status=$?
 
12771
  grep -v '^ *+' conftest.er1 >conftest.err
 
12772
  rm -f conftest.er1
 
12773
  cat conftest.err >&5
 
12774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12775
  (exit $ac_status); } && {
 
12776
         test -z "$ac_c_werror_flag" ||
 
12777
         test ! -s conftest.err
 
12778
       } && test -s conftest.$ac_objext; then
 
12779
  have_pthread_t=yes
 
12780
else
 
12781
  echo "$as_me: failed program was:" >&5
 
12782
sed 's/^/| /' conftest.$ac_ext >&5
 
12783
 
 
12784
 
 
12785
fi
 
12786
 
 
12787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12788
{ echo "$as_me:$LINENO: result: $have_pthread_t" >&5
 
12789
echo "${ECHO_T}$have_pthread_t" >&6; }
 
12790
if test "$have_pthread_t" = yes ; then
 
12791
  # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
 
12792
  { echo "$as_me:$LINENO: checking size of pthread_t" >&5
 
12793
echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
 
12794
  if test "${ac_cv_sizeof_pthread_t+set}" = set; then
 
12795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12796
else
 
12797
  if test "$cross_compiling" = yes; then
 
12798
  ac_cv_sizeof_pthread_t=4
 
12799
else
 
12800
  cat >conftest.$ac_ext <<_ACEOF
 
12801
/* confdefs.h.  */
 
12802
_ACEOF
 
12803
cat confdefs.h >>conftest.$ac_ext
 
12804
cat >>conftest.$ac_ext <<_ACEOF
 
12805
/* end confdefs.h.  */
 
12806
#include <stdio.h>
 
12807
#include <pthread.h>
 
12808
  main()
 
12809
  {
 
12810
    FILE *f=fopen("conftestval", "w");
 
12811
    if (!f) exit(1);
 
12812
    fprintf(f, "%d\n", sizeof(pthread_t));
 
12813
    exit(0);
 
12814
  }
 
12815
_ACEOF
 
12816
rm -f conftest$ac_exeext
 
12817
if { (ac_try="$ac_link"
 
12818
case "(($ac_try" in
 
12819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12820
  *) ac_try_echo=$ac_try;;
 
12821
esac
 
12822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12823
  (eval "$ac_link") 2>&5
 
12824
  ac_status=$?
 
12825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12826
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12827
  { (case "(($ac_try" in
 
12828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12829
  *) ac_try_echo=$ac_try;;
 
12830
esac
 
12831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12832
  (eval "$ac_try") 2>&5
 
12833
  ac_status=$?
 
12834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12835
  (exit $ac_status); }; }; then
 
12836
  ac_cv_sizeof_pthread_t=`cat conftestval`
 
12837
else
 
12838
  echo "$as_me: program exited with status $ac_status" >&5
 
12839
echo "$as_me: failed program was:" >&5
 
12840
sed 's/^/| /' conftest.$ac_ext >&5
 
12841
 
 
12842
( exit $ac_status )
 
12843
ac_cv_sizeof_pthread_t=0
 
12844
fi
 
12845
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12846
fi
 
12847
 
 
12848
 
 
12849
 
 
12850
fi
 
12851
 
 
12852
  { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
 
12853
echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
 
12854
 
 
12855
cat >>confdefs.h <<_ACEOF
 
12856
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
 
12857
_ACEOF
 
12858
 
 
12859
fi
 
12860
CC="$ac_save_cc"
 
12861
 
 
12862
{ echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
 
12863
echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
 
12864
# Check whether --enable-toolbox-glue was given.
 
12865
if test "${enable_toolbox_glue+set}" = set; then
 
12866
  enableval=$enable_toolbox_glue;
 
12867
fi
 
12868
 
 
12869
 
 
12870
if test -z "$enable_toolbox_glue"
 
12871
then
 
12872
        case $ac_sys_system/$ac_sys_release in
 
12873
        Darwin/*)
 
12874
                enable_toolbox_glue="yes";;
 
12875
        *)
 
12876
                enable_toolbox_glue="no";;
 
12877
        esac
 
12878
fi
 
12879
case "$enable_toolbox_glue" in
 
12880
yes)
 
12881
        extra_machdep_objs="Python/mactoolboxglue.o"
 
12882
        extra_undefs="-u _PyMac_Error"
 
12883
 
 
12884
cat >>confdefs.h <<\_ACEOF
 
12885
#define USE_TOOLBOX_OBJECT_GLUE 1
 
12886
_ACEOF
 
12887
 
 
12888
        ;;
 
12889
*)
 
12890
        extra_machdep_objs=""
 
12891
        extra_undefs=""
 
12892
        ;;
 
12893
esac
 
12894
{ echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
 
12895
echo "${ECHO_T}$enable_toolbox_glue" >&6; }
 
12896
 
 
12897
 
 
12898
 
 
12899
case $ac_sys_system/$ac_sys_release in
 
12900
  Darwin/[01567]\..*)
 
12901
    OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
 
12902
    ;;
 
12903
  Darwin/*)
 
12904
    OTHER_LIBTOOL_OPT=""
 
12905
    ;;
 
12906
esac
 
12907
 
 
12908
 
 
12909
case $ac_sys_system/$ac_sys_release in
 
12910
  Darwin/[01567]\..*)
 
12911
    LIBTOOL_CRUFT="-framework System -lcc_dynamic"
 
12912
    if test "${enable_universalsdk}"; then
 
12913
            :
 
12914
    else
 
12915
        LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
 
12916
    fi
 
12917
    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
12918
    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
 
12919
  Darwin/*)
 
12920
    gcc_version=`gcc -v 2>&1 |  grep version | cut -d\  -f3`
 
12921
    if test ${gcc_version} '<' 4.0
 
12922
        then
 
12923
            LIBTOOL_CRUFT="-lcc_dynamic"
 
12924
        else
 
12925
            LIBTOOL_CRUFT=""
 
12926
    fi
 
12927
    LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
 
12928
    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
12929
    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
 
12930
esac
 
12931
 
 
12932
{ echo "$as_me:$LINENO: checking for --enable-framework" >&5
 
12933
echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
 
12934
if test "$enable_framework"
 
12935
then
 
12936
        BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
 
12937
        # -F. is needed to allow linking to the framework while
 
12938
        # in the build location.
 
12939
 
 
12940
cat >>confdefs.h <<\_ACEOF
 
12941
#define WITH_NEXT_FRAMEWORK 1
 
12942
_ACEOF
 
12943
 
 
12944
        { echo "$as_me:$LINENO: result: yes" >&5
 
12945
echo "${ECHO_T}yes" >&6; }
 
12946
else
 
12947
        { echo "$as_me:$LINENO: result: no" >&5
 
12948
echo "${ECHO_T}no" >&6; }
 
12949
fi
 
12950
 
 
12951
{ echo "$as_me:$LINENO: checking for dyld" >&5
 
12952
echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
 
12953
case $ac_sys_system/$ac_sys_release in
 
12954
  Darwin/*)
 
12955
 
 
12956
cat >>confdefs.h <<\_ACEOF
 
12957
#define WITH_DYLD 1
 
12958
_ACEOF
 
12959
 
 
12960
        { echo "$as_me:$LINENO: result: always on for Darwin" >&5
 
12961
echo "${ECHO_T}always on for Darwin" >&6; }
 
12962
        ;;
 
12963
  *)
 
12964
        { echo "$as_me:$LINENO: result: no" >&5
 
12965
echo "${ECHO_T}no" >&6; }
 
12966
        ;;
 
12967
esac
 
12968
 
 
12969
# Set info about shared libraries.
 
12970
 
 
12971
 
 
12972
 
 
12973
 
 
12974
 
 
12975
# SO is the extension of shared libraries `(including the dot!)
 
12976
# -- usually .so, .sl on HP-UX, .dll on Cygwin
 
12977
{ echo "$as_me:$LINENO: checking SO" >&5
 
12978
echo $ECHO_N "checking SO... $ECHO_C" >&6; }
 
12979
if test -z "$SO"
 
12980
then
 
12981
        case $ac_sys_system in
 
12982
        hp*|HP*)
 
12983
                case `uname -m` in
 
12984
                        ia64) SO=.so;;
 
12985
                        *)    SO=.sl;;
 
12986
                esac
 
12987
                ;;
 
12988
        CYGWIN*)   SO=.dll;;
 
12989
        *)         SO=.so;;
 
12990
        esac
 
12991
else
 
12992
        # this might also be a termcap variable, see #610332
 
12993
        echo
 
12994
        echo '====================================================================='
 
12995
        echo '+                                                                   +'
 
12996
        echo '+ WARNING: You have set SO in your environment.                     +'
 
12997
        echo '+ Do you really mean to change the extension for shared libraries?  +'
 
12998
        echo '+ Continuing in 10 seconds to let you to ponder.                    +'
 
12999
        echo '+                                                                   +'
 
13000
        echo '====================================================================='
 
13001
        sleep 10
 
13002
fi
 
13003
{ echo "$as_me:$LINENO: result: $SO" >&5
 
13004
echo "${ECHO_T}$SO" >&6; }
 
13005
 
 
13006
cat >>confdefs.h <<_ACEOF
 
13007
#define SHLIB_EXT "$SO"
 
13008
_ACEOF
 
13009
 
 
13010
# LDSHARED is the ld *command* used to create shared library
 
13011
# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
 
13012
# (Shared libraries in this instance are shared modules to be loaded into
 
13013
# Python, as opposed to building Python itself as a shared library.)
 
13014
{ echo "$as_me:$LINENO: checking LDSHARED" >&5
 
13015
echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
 
13016
if test -z "$LDSHARED"
 
13017
then
 
13018
        case $ac_sys_system/$ac_sys_release in
 
13019
        AIX*)
 
13020
                BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
 
13021
                LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
 
13022
                ;;
 
13023
        BeOS*)
 
13024
                BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
 
13025
                LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
 
13026
                ;;
 
13027
        IRIX/5*) LDSHARED="ld -shared";;
 
13028
        IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
 
13029
        SunOS/5*)
 
13030
                if test "$GCC" = "yes"
 
13031
                then LDSHARED='$(CC) -shared'
 
13032
                else LDSHARED='$(CC) -G';
 
13033
                fi ;;
 
13034
        hp*|HP*)
 
13035
                if test "$GCC" = "yes"
 
13036
                then LDSHARED='$(CC) -shared'
 
13037
                else LDSHARED='ld -b';
 
13038
                fi ;;
 
13039
        OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
 
13040
        Darwin/1.3*)
 
13041
                LDSHARED='$(CC) $(LDFLAGS) -bundle'
 
13042
                if test "$enable_framework" ; then
 
13043
                        # Link against the framework. All externals should be defined.
 
13044
                        BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
13045
                        LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
13046
                else
 
13047
                        # No framework. Ignore undefined symbols, assuming they come from Python
 
13048
                        LDSHARED="$LDSHARED -undefined suppress"
 
13049
                fi ;;
 
13050
        Darwin/1.4*|Darwin/5.*|Darwin/6.*)
 
13051
                LDSHARED='$(CC) $(LDFLAGS) -bundle'
 
13052
                if test "$enable_framework" ; then
 
13053
                        # Link against the framework. All externals should be defined.
 
13054
                        BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
13055
                        LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
13056
                else
 
13057
                        # No framework, use the Python app as bundle-loader
 
13058
                        BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
 
13059
                        LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
 
13060
                fi ;;
 
13061
        Darwin/*)
 
13062
                # Use -undefined dynamic_lookup whenever possible (10.3 and later).
 
13063
                # This allows an extension to be used in any Python
 
13064
 
 
13065
                if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
 
13066
                then
 
13067
                        if test "${enable_universalsdk}"; then
 
13068
                                LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
 
13069
                        fi
 
13070
                        LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
 
13071
                        BLDSHARED="$LDSHARED"
 
13072
                else
 
13073
                        LDSHARED='$(CC) $(LDFLAGS) -bundle'
 
13074
                        if test "$enable_framework" ; then
 
13075
                                # Link against the framework. All externals should be defined.
 
13076
                                BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
13077
                                LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
13078
                        else
 
13079
                                # No framework, use the Python app as bundle-loader
 
13080
                                BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
 
13081
                                LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
 
13082
                        fi
 
13083
                fi
 
13084
                ;;
 
13085
        Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
 
13086
        BSD/OS*/4*) LDSHARED="gcc -shared";;
 
13087
        FreeBSD*)
 
13088
                if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
 
13089
                then
 
13090
                        LDSHARED="$CC -shared ${LDFLAGS}"
 
13091
                else
 
13092
                        LDSHARED="ld -Bshareable ${LDFLAGS}"
 
13093
                fi;;
 
13094
        OpenBSD*)
 
13095
                if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
 
13096
                then
 
13097
                                LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
 
13098
                else
 
13099
                                case `uname -r` in
 
13100
                                [01].* | 2.[0-7] | 2.[0-7].*)
 
13101
                                   LDSHARED="ld -Bshareable ${LDFLAGS}"
 
13102
                                   ;;
 
13103
                                *)
 
13104
                                   LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
 
13105
                                   ;;
 
13106
                                esac
 
13107
                fi;;
 
13108
        NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
 
13109
        OpenUNIX*|UnixWare*)
 
13110
                if test "$GCC" = "yes"
 
13111
                then LDSHARED='$(CC) -shared'
 
13112
                else LDSHARED='$(CC) -G'
 
13113
                fi;;
 
13114
        SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
 
13115
        Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
 
13116
        CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
 
13117
        atheos*) LDSHARED="gcc -shared";;
 
13118
        *)      LDSHARED="ld";;
 
13119
        esac
 
13120
fi
 
13121
{ echo "$as_me:$LINENO: result: $LDSHARED" >&5
 
13122
echo "${ECHO_T}$LDSHARED" >&6; }
 
13123
BLDSHARED=${BLDSHARED-$LDSHARED}
 
13124
# CCSHARED are the C *flags* used to create objects to go into a shared
 
13125
# library (module) -- this is only needed for a few systems
 
13126
{ echo "$as_me:$LINENO: checking CCSHARED" >&5
 
13127
echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
 
13128
if test -z "$CCSHARED"
 
13129
then
 
13130
        case $ac_sys_system/$ac_sys_release in
 
13131
        SunOS*) if test "$GCC" = yes;
 
13132
                then CCSHARED="-fPIC";
 
13133
                elif test `uname -p` = sparc;
 
13134
                then CCSHARED="-xcode=pic32";
 
13135
                else CCSHARED="-Kpic";
 
13136
                fi;;
 
13137
        hp*|HP*) if test "$GCC" = yes;
 
13138
                 then CCSHARED="-fPIC";
 
13139
                 else CCSHARED="+z";
 
13140
                 fi;;
 
13141
        Linux*|GNU*) CCSHARED="-fPIC";;
 
13142
        BSD/OS*/4*) CCSHARED="-fpic";;
 
13143
        FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
 
13144
        OpenUNIX*|UnixWare*)
 
13145
                if test "$GCC" = "yes"
 
13146
                then CCSHARED="-fPIC"
 
13147
                else CCSHARED="-KPIC"
 
13148
                fi;;
 
13149
        SCO_SV*)
 
13150
                if test "$GCC" = "yes"
 
13151
                then CCSHARED="-fPIC"
 
13152
                else CCSHARED="-Kpic -belf"
 
13153
                fi;;
 
13154
        Monterey*) CCSHARED="-G";;
 
13155
        IRIX*/6*)  case $CC in
 
13156
                   *gcc*) CCSHARED="-shared";;
 
13157
                   *) CCSHARED="";;
 
13158
                   esac;;
 
13159
        atheos*) CCSHARED="-fPIC";;
 
13160
        esac
 
13161
fi
 
13162
{ echo "$as_me:$LINENO: result: $CCSHARED" >&5
 
13163
echo "${ECHO_T}$CCSHARED" >&6; }
 
13164
# LINKFORSHARED are the flags passed to the $(CC) command that links
 
13165
# the python executable -- this is only needed for a few systems
 
13166
{ echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
 
13167
echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
 
13168
if test -z "$LINKFORSHARED"
 
13169
then
 
13170
        case $ac_sys_system/$ac_sys_release in
 
13171
        AIX*)   LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
 
13172
        hp*|HP*)
 
13173
            LINKFORSHARED="-Wl,-E -Wl,+s";;
 
13174
#           LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
 
13175
        BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
 
13176
        Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
 
13177
        # -u libsys_s pulls in all symbols in libsys
 
13178
        Darwin/*)
 
13179
                # -u _PyMac_Error is needed to pull in the mac toolbox glue,
 
13180
                # which is
 
13181
                # not used by the core itself but which needs to be in the core so
 
13182
                # that dynamically loaded extension modules have access to it.
 
13183
                # -prebind is no longer used, because it actually seems to give a
 
13184
                # slowdown in stead of a speedup, maybe due to the large number of
 
13185
                # dynamic loads Python does.
 
13186
 
 
13187
                LINKFORSHARED="$extra_undefs"
 
13188
                if test "$enable_framework"
 
13189
                then
 
13190
                        LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
 
13191
                fi
 
13192
                LINKFORSHARED="$LINKFORSHARED";;
 
13193
        OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
 
13194
        SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
 
13195
        ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
 
13196
        FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
 
13197
                if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
 
13198
                then
 
13199
                        LINKFORSHARED="-Wl,--export-dynamic"
 
13200
                fi;;
 
13201
        SunOS/5*) case $CC in
 
13202
                  *gcc*)
 
13203
                    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
 
13204
                    then
 
13205
                        LINKFORSHARED="-Xlinker --export-dynamic"
 
13206
                    fi;;
 
13207
                  esac;;
 
13208
        CYGWIN*)
 
13209
                if test $enable_shared = "no"
 
13210
                then
 
13211
                        LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
 
13212
                fi;;
 
13213
        QNX*)
 
13214
                # -Wl,-E causes the symbols to be added to the dynamic
 
13215
                # symbol table so that they can be found when a module
 
13216
                # is loaded.  -N 2048K causes the stack size to be set
 
13217
                # to 2048 kilobytes so that the stack doesn't overflow
 
13218
                # when running test_compile.py.
 
13219
                LINKFORSHARED='-Wl,-E -N 2048K';;
 
13220
        esac
 
13221
fi
 
13222
{ echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
 
13223
echo "${ECHO_T}$LINKFORSHARED" >&6; }
 
13224
 
 
13225
 
 
13226
 
 
13227
{ echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
 
13228
echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
 
13229
if test ! "$LIBRARY" = "$LDLIBRARY"
 
13230
then
 
13231
        case $ac_sys_system in
 
13232
        CYGWIN*)
 
13233
                # Cygwin needs CCSHARED when building extension DLLs
 
13234
                # but not when building the interpreter DLL.
 
13235
                CFLAGSFORSHARED='';;
 
13236
        *)
 
13237
                CFLAGSFORSHARED='$(CCSHARED)'
 
13238
        esac
 
13239
fi
 
13240
{ echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
 
13241
echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
 
13242
 
 
13243
# SHLIBS are libraries (except -lc and -lm) to link to the python shared
 
13244
# library (with --enable-shared).
 
13245
# For platforms on which shared libraries are not allowed to have unresolved
 
13246
# symbols, this must be set to $(LIBS) (expanded by make). We do this even
 
13247
# if it is not required, since it creates a dependency of the shared library
 
13248
# to LIBS. This, in turn, means that applications linking the shared libpython
 
13249
# don't need to link LIBS explicitly. The default should be only changed
 
13250
# on systems where this approach causes problems.
 
13251
 
 
13252
{ echo "$as_me:$LINENO: checking SHLIBS" >&5
 
13253
echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
 
13254
case "$ac_sys_system" in
 
13255
        *)
 
13256
                SHLIBS='$(LIBS)';;
 
13257
esac
 
13258
{ echo "$as_me:$LINENO: result: $SHLIBS" >&5
 
13259
echo "${ECHO_T}$SHLIBS" >&6; }
 
13260
 
 
13261
 
 
13262
# checks for libraries
 
13263
 
 
13264
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13265
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
13266
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13268
else
 
13269
  ac_check_lib_save_LIBS=$LIBS
 
13270
LIBS="-ldl  $LIBS"
 
13271
cat >conftest.$ac_ext <<_ACEOF
 
13272
/* confdefs.h.  */
 
13273
_ACEOF
 
13274
cat confdefs.h >>conftest.$ac_ext
 
13275
cat >>conftest.$ac_ext <<_ACEOF
 
13276
/* end confdefs.h.  */
 
13277
 
 
13278
/* Override any GCC internal prototype to avoid an error.
 
13279
   Use char because int might match the return type of a GCC
 
13280
   builtin and then its argument prototype would still apply.  */
 
13281
#ifdef __cplusplus
 
13282
extern "C"
 
13283
#endif
 
13284
char dlopen ();
 
13285
int
 
13286
main ()
 
13287
{
 
13288
return dlopen ();
 
13289
  ;
 
13290
  return 0;
 
13291
}
 
13292
_ACEOF
 
13293
rm -f conftest.$ac_objext conftest$ac_exeext
 
13294
if { (ac_try="$ac_link"
 
13295
case "(($ac_try" in
 
13296
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13297
  *) ac_try_echo=$ac_try;;
 
13298
esac
 
13299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13300
  (eval "$ac_link") 2>conftest.er1
 
13301
  ac_status=$?
 
13302
  grep -v '^ *+' conftest.er1 >conftest.err
 
13303
  rm -f conftest.er1
 
13304
  cat conftest.err >&5
 
13305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13306
  (exit $ac_status); } && {
 
13307
         test -z "$ac_c_werror_flag" ||
 
13308
         test ! -s conftest.err
 
13309
       } && test -s conftest$ac_exeext &&
 
13310
       $as_test_x conftest$ac_exeext; then
 
13311
  ac_cv_lib_dl_dlopen=yes
 
13312
else
 
13313
  echo "$as_me: failed program was:" >&5
 
13314
sed 's/^/| /' conftest.$ac_ext >&5
 
13315
 
 
13316
        ac_cv_lib_dl_dlopen=no
 
13317
fi
 
13318
 
 
13319
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13320
      conftest$ac_exeext conftest.$ac_ext
 
13321
LIBS=$ac_check_lib_save_LIBS
 
13322
fi
 
13323
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13324
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
13325
if test $ac_cv_lib_dl_dlopen = yes; then
 
13326
  cat >>confdefs.h <<_ACEOF
 
13327
#define HAVE_LIBDL 1
 
13328
_ACEOF
 
13329
 
 
13330
  LIBS="-ldl $LIBS"
 
13331
 
 
13332
fi
 
13333
        # Dynamic linking for SunOS/Solaris and SYSV
 
13334
 
 
13335
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
13336
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
13337
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
13338
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13339
else
 
13340
  ac_check_lib_save_LIBS=$LIBS
 
13341
LIBS="-ldld  $LIBS"
 
13342
cat >conftest.$ac_ext <<_ACEOF
 
13343
/* confdefs.h.  */
 
13344
_ACEOF
 
13345
cat confdefs.h >>conftest.$ac_ext
 
13346
cat >>conftest.$ac_ext <<_ACEOF
 
13347
/* end confdefs.h.  */
 
13348
 
 
13349
/* Override any GCC internal prototype to avoid an error.
 
13350
   Use char because int might match the return type of a GCC
 
13351
   builtin and then its argument prototype would still apply.  */
 
13352
#ifdef __cplusplus
 
13353
extern "C"
 
13354
#endif
 
13355
char shl_load ();
 
13356
int
 
13357
main ()
 
13358
{
 
13359
return shl_load ();
 
13360
  ;
 
13361
  return 0;
 
13362
}
 
13363
_ACEOF
 
13364
rm -f conftest.$ac_objext conftest$ac_exeext
 
13365
if { (ac_try="$ac_link"
 
13366
case "(($ac_try" in
 
13367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13368
  *) ac_try_echo=$ac_try;;
 
13369
esac
 
13370
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13371
  (eval "$ac_link") 2>conftest.er1
 
13372
  ac_status=$?
 
13373
  grep -v '^ *+' conftest.er1 >conftest.err
 
13374
  rm -f conftest.er1
 
13375
  cat conftest.err >&5
 
13376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13377
  (exit $ac_status); } && {
 
13378
         test -z "$ac_c_werror_flag" ||
 
13379
         test ! -s conftest.err
 
13380
       } && test -s conftest$ac_exeext &&
 
13381
       $as_test_x conftest$ac_exeext; then
 
13382
  ac_cv_lib_dld_shl_load=yes
 
13383
else
 
13384
  echo "$as_me: failed program was:" >&5
 
13385
sed 's/^/| /' conftest.$ac_ext >&5
 
13386
 
 
13387
        ac_cv_lib_dld_shl_load=no
 
13388
fi
 
13389
 
 
13390
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13391
      conftest$ac_exeext conftest.$ac_ext
 
13392
LIBS=$ac_check_lib_save_LIBS
 
13393
fi
 
13394
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
13395
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
13396
if test $ac_cv_lib_dld_shl_load = yes; then
 
13397
  cat >>confdefs.h <<_ACEOF
 
13398
#define HAVE_LIBDLD 1
 
13399
_ACEOF
 
13400
 
 
13401
  LIBS="-ldld $LIBS"
 
13402
 
 
13403
fi
 
13404
        # Dynamic linking for HP-UX
 
13405
 
 
13406
# only check for sem_ini if thread support is requested
 
13407
if test "$with_threads" = "yes" -o -z "$with_threads"; then
 
13408
    { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
 
13409
echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
 
13410
if test "${ac_cv_search_sem_init+set}" = set; then
 
13411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13412
else
 
13413
  ac_func_search_save_LIBS=$LIBS
 
13414
cat >conftest.$ac_ext <<_ACEOF
 
13415
/* confdefs.h.  */
 
13416
_ACEOF
 
13417
cat confdefs.h >>conftest.$ac_ext
 
13418
cat >>conftest.$ac_ext <<_ACEOF
 
13419
/* end confdefs.h.  */
 
13420
 
 
13421
/* Override any GCC internal prototype to avoid an error.
 
13422
   Use char because int might match the return type of a GCC
 
13423
   builtin and then its argument prototype would still apply.  */
 
13424
#ifdef __cplusplus
 
13425
extern "C"
 
13426
#endif
 
13427
char sem_init ();
 
13428
int
 
13429
main ()
 
13430
{
 
13431
return sem_init ();
 
13432
  ;
 
13433
  return 0;
 
13434
}
 
13435
_ACEOF
 
13436
for ac_lib in '' pthread rt posix4; do
 
13437
  if test -z "$ac_lib"; then
 
13438
    ac_res="none required"
 
13439
  else
 
13440
    ac_res=-l$ac_lib
 
13441
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
13442
  fi
 
13443
  rm -f conftest.$ac_objext conftest$ac_exeext
 
13444
if { (ac_try="$ac_link"
 
13445
case "(($ac_try" in
 
13446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13447
  *) ac_try_echo=$ac_try;;
 
13448
esac
 
13449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13450
  (eval "$ac_link") 2>conftest.er1
 
13451
  ac_status=$?
 
13452
  grep -v '^ *+' conftest.er1 >conftest.err
 
13453
  rm -f conftest.er1
 
13454
  cat conftest.err >&5
 
13455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13456
  (exit $ac_status); } && {
 
13457
         test -z "$ac_c_werror_flag" ||
 
13458
         test ! -s conftest.err
 
13459
       } && test -s conftest$ac_exeext &&
 
13460
       $as_test_x conftest$ac_exeext; then
 
13461
  ac_cv_search_sem_init=$ac_res
 
13462
else
 
13463
  echo "$as_me: failed program was:" >&5
 
13464
sed 's/^/| /' conftest.$ac_ext >&5
 
13465
 
 
13466
 
 
13467
fi
 
13468
 
 
13469
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13470
      conftest$ac_exeext
 
13471
  if test "${ac_cv_search_sem_init+set}" = set; then
 
13472
  break
 
13473
fi
 
13474
done
 
13475
if test "${ac_cv_search_sem_init+set}" = set; then
 
13476
  :
 
13477
else
 
13478
  ac_cv_search_sem_init=no
 
13479
fi
 
13480
rm conftest.$ac_ext
 
13481
LIBS=$ac_func_search_save_LIBS
 
13482
fi
 
13483
{ echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
 
13484
echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
 
13485
ac_res=$ac_cv_search_sem_init
 
13486
if test "$ac_res" != no; then
 
13487
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
13488
 
 
13489
fi
 
13490
 # 'Real Time' functions on Solaris
 
13491
                                                # posix4 on Solaris 2.6
 
13492
                                                # pthread (first!) on Linux
 
13493
fi
 
13494
 
 
13495
# check if we need libintl for locale functions
 
13496
{ echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
 
13497
echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
 
13498
if test "${ac_cv_lib_intl_textdomain+set}" = set; then
 
13499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13500
else
 
13501
  ac_check_lib_save_LIBS=$LIBS
 
13502
LIBS="-lintl  $LIBS"
 
13503
cat >conftest.$ac_ext <<_ACEOF
 
13504
/* confdefs.h.  */
 
13505
_ACEOF
 
13506
cat confdefs.h >>conftest.$ac_ext
 
13507
cat >>conftest.$ac_ext <<_ACEOF
 
13508
/* end confdefs.h.  */
 
13509
 
 
13510
/* Override any GCC internal prototype to avoid an error.
 
13511
   Use char because int might match the return type of a GCC
 
13512
   builtin and then its argument prototype would still apply.  */
 
13513
#ifdef __cplusplus
 
13514
extern "C"
 
13515
#endif
 
13516
char textdomain ();
 
13517
int
 
13518
main ()
 
13519
{
 
13520
return textdomain ();
 
13521
  ;
 
13522
  return 0;
 
13523
}
 
13524
_ACEOF
 
13525
rm -f conftest.$ac_objext conftest$ac_exeext
 
13526
if { (ac_try="$ac_link"
 
13527
case "(($ac_try" in
 
13528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13529
  *) ac_try_echo=$ac_try;;
 
13530
esac
 
13531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13532
  (eval "$ac_link") 2>conftest.er1
 
13533
  ac_status=$?
 
13534
  grep -v '^ *+' conftest.er1 >conftest.err
 
13535
  rm -f conftest.er1
 
13536
  cat conftest.err >&5
 
13537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13538
  (exit $ac_status); } && {
 
13539
         test -z "$ac_c_werror_flag" ||
 
13540
         test ! -s conftest.err
 
13541
       } && test -s conftest$ac_exeext &&
 
13542
       $as_test_x conftest$ac_exeext; then
 
13543
  ac_cv_lib_intl_textdomain=yes
 
13544
else
 
13545
  echo "$as_me: failed program was:" >&5
 
13546
sed 's/^/| /' conftest.$ac_ext >&5
 
13547
 
 
13548
        ac_cv_lib_intl_textdomain=no
 
13549
fi
 
13550
 
 
13551
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13552
      conftest$ac_exeext conftest.$ac_ext
 
13553
LIBS=$ac_check_lib_save_LIBS
 
13554
fi
 
13555
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
 
13556
echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
 
13557
if test $ac_cv_lib_intl_textdomain = yes; then
 
13558
 
 
13559
cat >>confdefs.h <<\_ACEOF
 
13560
#define WITH_LIBINTL 1
 
13561
_ACEOF
 
13562
 
 
13563
fi
 
13564
 
 
13565
 
 
13566
# checks for system dependent C++ extensions support
 
13567
case "$ac_sys_system" in
 
13568
        AIX*)   { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
 
13569
echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
 
13570
                cat >conftest.$ac_ext <<_ACEOF
 
13571
/* confdefs.h.  */
 
13572
_ACEOF
 
13573
cat confdefs.h >>conftest.$ac_ext
 
13574
cat >>conftest.$ac_ext <<_ACEOF
 
13575
/* end confdefs.h.  */
 
13576
#include "/usr/lpp/xlC/include/load.h"
 
13577
int
 
13578
main ()
 
13579
{
 
13580
loadAndInit("", 0, "")
 
13581
  ;
 
13582
  return 0;
 
13583
}
 
13584
_ACEOF
 
13585
rm -f conftest.$ac_objext conftest$ac_exeext
 
13586
if { (ac_try="$ac_link"
 
13587
case "(($ac_try" in
 
13588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13589
  *) ac_try_echo=$ac_try;;
 
13590
esac
 
13591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13592
  (eval "$ac_link") 2>conftest.er1
 
13593
  ac_status=$?
 
13594
  grep -v '^ *+' conftest.er1 >conftest.err
 
13595
  rm -f conftest.er1
 
13596
  cat conftest.err >&5
 
13597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13598
  (exit $ac_status); } && {
 
13599
         test -z "$ac_c_werror_flag" ||
 
13600
         test ! -s conftest.err
 
13601
       } && test -s conftest$ac_exeext &&
 
13602
       $as_test_x conftest$ac_exeext; then
 
13603
 
 
13604
cat >>confdefs.h <<\_ACEOF
 
13605
#define AIX_GENUINE_CPLUSPLUS 1
 
13606
_ACEOF
 
13607
 
 
13608
                             { echo "$as_me:$LINENO: result: yes" >&5
 
13609
echo "${ECHO_T}yes" >&6; }
 
13610
else
 
13611
  echo "$as_me: failed program was:" >&5
 
13612
sed 's/^/| /' conftest.$ac_ext >&5
 
13613
 
 
13614
        { echo "$as_me:$LINENO: result: no" >&5
 
13615
echo "${ECHO_T}no" >&6; }
 
13616
fi
 
13617
 
 
13618
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13619
      conftest$ac_exeext conftest.$ac_ext;;
 
13620
        *) ;;
 
13621
esac
 
13622
 
 
13623
# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
 
13624
# BeOS' sockets are stashed in libnet.
 
13625
{ echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
 
13626
echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
 
13627
if test "${ac_cv_lib_nsl_t_open+set}" = set; then
 
13628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13629
else
 
13630
  ac_check_lib_save_LIBS=$LIBS
 
13631
LIBS="-lnsl  $LIBS"
 
13632
cat >conftest.$ac_ext <<_ACEOF
 
13633
/* confdefs.h.  */
 
13634
_ACEOF
 
13635
cat confdefs.h >>conftest.$ac_ext
 
13636
cat >>conftest.$ac_ext <<_ACEOF
 
13637
/* end confdefs.h.  */
 
13638
 
 
13639
/* Override any GCC internal prototype to avoid an error.
 
13640
   Use char because int might match the return type of a GCC
 
13641
   builtin and then its argument prototype would still apply.  */
 
13642
#ifdef __cplusplus
 
13643
extern "C"
 
13644
#endif
 
13645
char t_open ();
 
13646
int
 
13647
main ()
 
13648
{
 
13649
return t_open ();
 
13650
  ;
 
13651
  return 0;
 
13652
}
 
13653
_ACEOF
 
13654
rm -f conftest.$ac_objext conftest$ac_exeext
 
13655
if { (ac_try="$ac_link"
 
13656
case "(($ac_try" in
 
13657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13658
  *) ac_try_echo=$ac_try;;
 
13659
esac
 
13660
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13661
  (eval "$ac_link") 2>conftest.er1
 
13662
  ac_status=$?
 
13663
  grep -v '^ *+' conftest.er1 >conftest.err
 
13664
  rm -f conftest.er1
 
13665
  cat conftest.err >&5
 
13666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13667
  (exit $ac_status); } && {
 
13668
         test -z "$ac_c_werror_flag" ||
 
13669
         test ! -s conftest.err
 
13670
       } && test -s conftest$ac_exeext &&
 
13671
       $as_test_x conftest$ac_exeext; then
 
13672
  ac_cv_lib_nsl_t_open=yes
 
13673
else
 
13674
  echo "$as_me: failed program was:" >&5
 
13675
sed 's/^/| /' conftest.$ac_ext >&5
 
13676
 
 
13677
        ac_cv_lib_nsl_t_open=no
 
13678
fi
 
13679
 
 
13680
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13681
      conftest$ac_exeext conftest.$ac_ext
 
13682
LIBS=$ac_check_lib_save_LIBS
 
13683
fi
 
13684
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
 
13685
echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
 
13686
if test $ac_cv_lib_nsl_t_open = yes; then
 
13687
  LIBS="-lnsl $LIBS"
 
13688
fi
 
13689
 # SVR4
 
13690
{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
 
13691
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
 
13692
if test "${ac_cv_lib_socket_socket+set}" = set; then
 
13693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13694
else
 
13695
  ac_check_lib_save_LIBS=$LIBS
 
13696
LIBS="-lsocket $LIBS $LIBS"
 
13697
cat >conftest.$ac_ext <<_ACEOF
 
13698
/* confdefs.h.  */
 
13699
_ACEOF
 
13700
cat confdefs.h >>conftest.$ac_ext
 
13701
cat >>conftest.$ac_ext <<_ACEOF
 
13702
/* end confdefs.h.  */
 
13703
 
 
13704
/* Override any GCC internal prototype to avoid an error.
 
13705
   Use char because int might match the return type of a GCC
 
13706
   builtin and then its argument prototype would still apply.  */
 
13707
#ifdef __cplusplus
 
13708
extern "C"
 
13709
#endif
 
13710
char socket ();
 
13711
int
 
13712
main ()
 
13713
{
 
13714
return socket ();
 
13715
  ;
 
13716
  return 0;
 
13717
}
 
13718
_ACEOF
 
13719
rm -f conftest.$ac_objext conftest$ac_exeext
 
13720
if { (ac_try="$ac_link"
 
13721
case "(($ac_try" in
 
13722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13723
  *) ac_try_echo=$ac_try;;
 
13724
esac
 
13725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13726
  (eval "$ac_link") 2>conftest.er1
 
13727
  ac_status=$?
 
13728
  grep -v '^ *+' conftest.er1 >conftest.err
 
13729
  rm -f conftest.er1
 
13730
  cat conftest.err >&5
 
13731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13732
  (exit $ac_status); } && {
 
13733
         test -z "$ac_c_werror_flag" ||
 
13734
         test ! -s conftest.err
 
13735
       } && test -s conftest$ac_exeext &&
 
13736
       $as_test_x conftest$ac_exeext; then
 
13737
  ac_cv_lib_socket_socket=yes
 
13738
else
 
13739
  echo "$as_me: failed program was:" >&5
 
13740
sed 's/^/| /' conftest.$ac_ext >&5
 
13741
 
 
13742
        ac_cv_lib_socket_socket=no
 
13743
fi
 
13744
 
 
13745
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13746
      conftest$ac_exeext conftest.$ac_ext
 
13747
LIBS=$ac_check_lib_save_LIBS
 
13748
fi
 
13749
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
 
13750
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
 
13751
if test $ac_cv_lib_socket_socket = yes; then
 
13752
  LIBS="-lsocket $LIBS"
 
13753
fi
 
13754
 # SVR4 sockets
 
13755
 
 
13756
case "$ac_sys_system" in
 
13757
BeOS*)
 
13758
{ echo "$as_me:$LINENO: checking for socket in -lnet" >&5
 
13759
echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
 
13760
if test "${ac_cv_lib_net_socket+set}" = set; then
 
13761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13762
else
 
13763
  ac_check_lib_save_LIBS=$LIBS
 
13764
LIBS="-lnet $LIBS $LIBS"
 
13765
cat >conftest.$ac_ext <<_ACEOF
 
13766
/* confdefs.h.  */
 
13767
_ACEOF
 
13768
cat confdefs.h >>conftest.$ac_ext
 
13769
cat >>conftest.$ac_ext <<_ACEOF
 
13770
/* end confdefs.h.  */
 
13771
 
 
13772
/* Override any GCC internal prototype to avoid an error.
 
13773
   Use char because int might match the return type of a GCC
 
13774
   builtin and then its argument prototype would still apply.  */
 
13775
#ifdef __cplusplus
 
13776
extern "C"
 
13777
#endif
 
13778
char socket ();
 
13779
int
 
13780
main ()
 
13781
{
 
13782
return socket ();
 
13783
  ;
 
13784
  return 0;
 
13785
}
 
13786
_ACEOF
 
13787
rm -f conftest.$ac_objext conftest$ac_exeext
 
13788
if { (ac_try="$ac_link"
 
13789
case "(($ac_try" in
 
13790
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13791
  *) ac_try_echo=$ac_try;;
 
13792
esac
 
13793
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13794
  (eval "$ac_link") 2>conftest.er1
 
13795
  ac_status=$?
 
13796
  grep -v '^ *+' conftest.er1 >conftest.err
 
13797
  rm -f conftest.er1
 
13798
  cat conftest.err >&5
 
13799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13800
  (exit $ac_status); } && {
 
13801
         test -z "$ac_c_werror_flag" ||
 
13802
         test ! -s conftest.err
 
13803
       } && test -s conftest$ac_exeext &&
 
13804
       $as_test_x conftest$ac_exeext; then
 
13805
  ac_cv_lib_net_socket=yes
 
13806
else
 
13807
  echo "$as_me: failed program was:" >&5
 
13808
sed 's/^/| /' conftest.$ac_ext >&5
 
13809
 
 
13810
        ac_cv_lib_net_socket=no
 
13811
fi
 
13812
 
 
13813
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13814
      conftest$ac_exeext conftest.$ac_ext
 
13815
LIBS=$ac_check_lib_save_LIBS
 
13816
fi
 
13817
{ echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
 
13818
echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
 
13819
if test $ac_cv_lib_net_socket = yes; then
 
13820
  LIBS="-lnet $LIBS"
 
13821
fi
 
13822
 # BeOS
 
13823
;;
 
13824
esac
 
13825
 
 
13826
{ echo "$as_me:$LINENO: checking for --with-libs" >&5
 
13827
echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
 
13828
 
 
13829
# Check whether --with-libs was given.
 
13830
if test "${with_libs+set}" = set; then
 
13831
  withval=$with_libs;
 
13832
{ echo "$as_me:$LINENO: result: $withval" >&5
 
13833
echo "${ECHO_T}$withval" >&6; }
 
13834
LIBS="$withval $LIBS"
 
13835
 
 
13836
else
 
13837
  { echo "$as_me:$LINENO: result: no" >&5
 
13838
echo "${ECHO_T}no" >&6; }
 
13839
fi
 
13840
 
 
13841
 
 
13842
# Check for use of the system libffi library
 
13843
{ echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
 
13844
echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
 
13845
 
 
13846
# Check whether --with-system_ffi was given.
 
13847
if test "${with_system_ffi+set}" = set; then
 
13848
  withval=$with_system_ffi;
 
13849
fi
 
13850
 
 
13851
 
 
13852
{ echo "$as_me:$LINENO: result: $with_system_ffi" >&5
 
13853
echo "${ECHO_T}$with_system_ffi" >&6; }
 
13854
 
 
13855
# Determine if signalmodule should be used.
 
13856
 
 
13857
 
 
13858
{ echo "$as_me:$LINENO: checking for --with-signal-module" >&5
 
13859
echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
 
13860
 
 
13861
# Check whether --with-signal-module was given.
 
13862
if test "${with_signal_module+set}" = set; then
 
13863
  withval=$with_signal_module;
 
13864
fi
 
13865
 
 
13866
 
 
13867
if test -z "$with_signal_module"
 
13868
then with_signal_module="yes"
 
13869
fi
 
13870
{ echo "$as_me:$LINENO: result: $with_signal_module" >&5
 
13871
echo "${ECHO_T}$with_signal_module" >&6; }
 
13872
 
 
13873
if test "${with_signal_module}" = "yes"; then
 
13874
        USE_SIGNAL_MODULE=""
 
13875
        SIGNAL_OBJS=""
 
13876
else
 
13877
        USE_SIGNAL_MODULE="#"
 
13878
        SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
 
13879
fi
 
13880
 
 
13881
# This is used to generate Setup.config
 
13882
 
 
13883
USE_THREAD_MODULE=""
 
13884
 
 
13885
{ echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
 
13886
echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
 
13887
 
 
13888
 
 
13889
# Check whether --with-dec-threads was given.
 
13890
if test "${with_dec_threads+set}" = set; then
 
13891
  withval=$with_dec_threads;
 
13892
{ echo "$as_me:$LINENO: result: $withval" >&5
 
13893
echo "${ECHO_T}$withval" >&6; }
 
13894
LDLAST=-threads
 
13895
if test "${with_thread+set}" != set; then
 
13896
   with_thread="$withval";
 
13897
fi
 
13898
else
 
13899
  { echo "$as_me:$LINENO: result: no" >&5
 
13900
echo "${ECHO_T}no" >&6; }
 
13901
fi
 
13902
 
 
13903
 
 
13904
# Templates for things AC_DEFINEd more than once.
 
13905
# For a single AC_DEFINE, no template is needed.
 
13906
 
 
13907
 
 
13908
 
 
13909
 
 
13910
 
 
13911
 
 
13912
 
 
13913
{ echo "$as_me:$LINENO: checking for --with-threads" >&5
 
13914
echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
 
13915
 
 
13916
# Check whether --with-threads was given.
 
13917
if test "${with_threads+set}" = set; then
 
13918
  withval=$with_threads;
 
13919
fi
 
13920
 
 
13921
 
 
13922
# --with-thread is deprecated, but check for it anyway
 
13923
 
 
13924
# Check whether --with-thread was given.
 
13925
if test "${with_thread+set}" = set; then
 
13926
  withval=$with_thread; with_threads=$with_thread
 
13927
fi
 
13928
 
 
13929
 
 
13930
if test -z "$with_threads"
 
13931
then with_threads="yes"
 
13932
fi
 
13933
{ echo "$as_me:$LINENO: result: $with_threads" >&5
 
13934
echo "${ECHO_T}$with_threads" >&6; }
 
13935
 
 
13936
 
 
13937
if test "$with_threads" = "no"
 
13938
then
 
13939
    USE_THREAD_MODULE="#"
 
13940
elif test "$ac_cv_pthread_is_default" = yes
 
13941
then
 
13942
    cat >>confdefs.h <<\_ACEOF
 
13943
#define WITH_THREAD 1
 
13944
_ACEOF
 
13945
 
 
13946
    # Defining _REENTRANT on system with POSIX threads should not hurt.
 
13947
    cat >>confdefs.h <<\_ACEOF
 
13948
#define _REENTRANT 1
 
13949
_ACEOF
 
13950
 
 
13951
    posix_threads=yes
 
13952
    THREADOBJ="Python/thread.o"
 
13953
elif test "$ac_cv_kpthread" = "yes"
 
13954
then
 
13955
    CC="$CC -Kpthread"
 
13956
    if test "$ac_cv_cxx_thread" = "yes"; then
 
13957
        CXX="$CXX -Kpthread"
 
13958
    fi
 
13959
    cat >>confdefs.h <<\_ACEOF
 
13960
#define WITH_THREAD 1
 
13961
_ACEOF
 
13962
 
 
13963
    posix_threads=yes
 
13964
    THREADOBJ="Python/thread.o"
 
13965
elif test "$ac_cv_kthread" = "yes"
 
13966
then
 
13967
    CC="$CC -Kthread"
 
13968
    if test "$ac_cv_cxx_thread" = "yes"; then
 
13969
        CXX="$CXX -Kthread"
 
13970
    fi
 
13971
    cat >>confdefs.h <<\_ACEOF
 
13972
#define WITH_THREAD 1
 
13973
_ACEOF
 
13974
 
 
13975
    posix_threads=yes
 
13976
    THREADOBJ="Python/thread.o"
 
13977
elif test "$ac_cv_pthread" = "yes"
 
13978
then
 
13979
    CC="$CC -pthread"
 
13980
    if test "$ac_cv_cxx_thread" = "yes"; then
 
13981
        CXX="$CXX -pthread"
 
13982
    fi
 
13983
    cat >>confdefs.h <<\_ACEOF
 
13984
#define WITH_THREAD 1
 
13985
_ACEOF
 
13986
 
 
13987
    posix_threads=yes
 
13988
    THREADOBJ="Python/thread.o"
 
13989
else
 
13990
    if test ! -z "$with_threads" -a -d "$with_threads"
 
13991
    then LDFLAGS="$LDFLAGS -L$with_threads"
 
13992
    fi
 
13993
    if test ! -z "$withval" -a -d "$withval"
 
13994
    then LDFLAGS="$LDFLAGS -L$withval"
 
13995
    fi
 
13996
 
 
13997
    # According to the POSIX spec, a pthreads implementation must
 
13998
    # define _POSIX_THREADS in unistd.h. Some apparently don't
 
13999
    # (e.g. gnu pth with pthread emulation)
 
14000
    { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
 
14001
echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
 
14002
    cat >conftest.$ac_ext <<_ACEOF
 
14003
/* confdefs.h.  */
 
14004
_ACEOF
 
14005
cat confdefs.h >>conftest.$ac_ext
 
14006
cat >>conftest.$ac_ext <<_ACEOF
 
14007
/* end confdefs.h.  */
 
14008
 
 
14009
#include <unistd.h>
 
14010
#ifdef _POSIX_THREADS
 
14011
yes
 
14012
#endif
 
14013
 
 
14014
_ACEOF
 
14015
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14016
  $EGREP "yes" >/dev/null 2>&1; then
 
14017
  unistd_defines_pthreads=yes
 
14018
else
 
14019
  unistd_defines_pthreads=no
 
14020
fi
 
14021
rm -f conftest*
 
14022
 
 
14023
    { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
 
14024
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
 
14025
 
 
14026
    cat >>confdefs.h <<\_ACEOF
 
14027
#define _REENTRANT 1
 
14028
_ACEOF
 
14029
 
 
14030
    if test "${ac_cv_header_cthreads_h+set}" = set; then
 
14031
  { echo "$as_me:$LINENO: checking for cthreads.h" >&5
 
14032
echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
 
14033
if test "${ac_cv_header_cthreads_h+set}" = set; then
 
14034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14035
fi
 
14036
{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
 
14037
echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
 
14038
else
 
14039
  # Is the header compilable?
 
14040
{ echo "$as_me:$LINENO: checking cthreads.h usability" >&5
 
14041
echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
 
14042
cat >conftest.$ac_ext <<_ACEOF
 
14043
/* confdefs.h.  */
 
14044
_ACEOF
 
14045
cat confdefs.h >>conftest.$ac_ext
 
14046
cat >>conftest.$ac_ext <<_ACEOF
 
14047
/* end confdefs.h.  */
 
14048
$ac_includes_default
 
14049
#include <cthreads.h>
 
14050
_ACEOF
 
14051
rm -f conftest.$ac_objext
 
14052
if { (ac_try="$ac_compile"
 
14053
case "(($ac_try" in
 
14054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14055
  *) ac_try_echo=$ac_try;;
 
14056
esac
 
14057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14058
  (eval "$ac_compile") 2>conftest.er1
 
14059
  ac_status=$?
 
14060
  grep -v '^ *+' conftest.er1 >conftest.err
 
14061
  rm -f conftest.er1
 
14062
  cat conftest.err >&5
 
14063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14064
  (exit $ac_status); } && {
 
14065
         test -z "$ac_c_werror_flag" ||
 
14066
         test ! -s conftest.err
 
14067
       } && test -s conftest.$ac_objext; then
 
14068
  ac_header_compiler=yes
 
14069
else
 
14070
  echo "$as_me: failed program was:" >&5
 
14071
sed 's/^/| /' conftest.$ac_ext >&5
 
14072
 
 
14073
        ac_header_compiler=no
 
14074
fi
 
14075
 
 
14076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14077
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14078
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
14079
 
 
14080
# Is the header present?
 
14081
{ echo "$as_me:$LINENO: checking cthreads.h presence" >&5
 
14082
echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
 
14083
cat >conftest.$ac_ext <<_ACEOF
 
14084
/* confdefs.h.  */
 
14085
_ACEOF
 
14086
cat confdefs.h >>conftest.$ac_ext
 
14087
cat >>conftest.$ac_ext <<_ACEOF
 
14088
/* end confdefs.h.  */
 
14089
#include <cthreads.h>
 
14090
_ACEOF
 
14091
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14092
case "(($ac_try" in
 
14093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14094
  *) ac_try_echo=$ac_try;;
 
14095
esac
 
14096
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14097
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
14098
  ac_status=$?
 
14099
  grep -v '^ *+' conftest.er1 >conftest.err
 
14100
  rm -f conftest.er1
 
14101
  cat conftest.err >&5
 
14102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14103
  (exit $ac_status); } >/dev/null && {
 
14104
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14105
         test ! -s conftest.err
 
14106
       }; then
 
14107
  ac_header_preproc=yes
 
14108
else
 
14109
  echo "$as_me: failed program was:" >&5
 
14110
sed 's/^/| /' conftest.$ac_ext >&5
 
14111
 
 
14112
  ac_header_preproc=no
 
14113
fi
 
14114
 
 
14115
rm -f conftest.err conftest.$ac_ext
 
14116
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14117
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
14118
 
 
14119
# So?  What about this header?
 
14120
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14121
  yes:no: )
 
14122
    { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
14123
echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14124
    { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
 
14125
echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
 
14126
    ac_header_preproc=yes
 
14127
    ;;
 
14128
  no:yes:* )
 
14129
    { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
 
14130
echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
 
14131
    { echo "$as_me:$LINENO: WARNING: cthreads.h:     check for missing prerequisite headers?" >&5
 
14132
echo "$as_me: WARNING: cthreads.h:     check for missing prerequisite headers?" >&2;}
 
14133
    { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
 
14134
echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
 
14135
    { echo "$as_me:$LINENO: WARNING: cthreads.h:     section \"Present But Cannot Be Compiled\"" >&5
 
14136
echo "$as_me: WARNING: cthreads.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14137
    { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
 
14138
echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
 
14139
    { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
 
14140
echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
 
14141
    ( cat <<\_ASBOX
 
14142
## ------------------------------------------------ ##
 
14143
## Report this to http://www.python.org/python-bugs ##
 
14144
## ------------------------------------------------ ##
 
14145
_ASBOX
 
14146
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
14147
    ;;
 
14148
esac
 
14149
{ echo "$as_me:$LINENO: checking for cthreads.h" >&5
 
14150
echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
 
14151
if test "${ac_cv_header_cthreads_h+set}" = set; then
 
14152
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14153
else
 
14154
  ac_cv_header_cthreads_h=$ac_header_preproc
 
14155
fi
 
14156
{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
 
14157
echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
 
14158
 
 
14159
fi
 
14160
if test $ac_cv_header_cthreads_h = yes; then
 
14161
  cat >>confdefs.h <<\_ACEOF
 
14162
#define WITH_THREAD 1
 
14163
_ACEOF
 
14164
 
 
14165
    cat >>confdefs.h <<\_ACEOF
 
14166
#define C_THREADS 1
 
14167
_ACEOF
 
14168
 
 
14169
 
 
14170
cat >>confdefs.h <<\_ACEOF
 
14171
#define HURD_C_THREADS 1
 
14172
_ACEOF
 
14173
 
 
14174
    LIBS="$LIBS -lthreads"
 
14175
    THREADOBJ="Python/thread.o"
 
14176
else
 
14177
 
 
14178
    if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
 
14179
  { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
 
14180
echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
 
14181
if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
 
14182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14183
fi
 
14184
{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
 
14185
echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
 
14186
else
 
14187
  # Is the header compilable?
 
14188
{ echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
 
14189
echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
 
14190
cat >conftest.$ac_ext <<_ACEOF
 
14191
/* confdefs.h.  */
 
14192
_ACEOF
 
14193
cat confdefs.h >>conftest.$ac_ext
 
14194
cat >>conftest.$ac_ext <<_ACEOF
 
14195
/* end confdefs.h.  */
 
14196
$ac_includes_default
 
14197
#include <mach/cthreads.h>
 
14198
_ACEOF
 
14199
rm -f conftest.$ac_objext
 
14200
if { (ac_try="$ac_compile"
 
14201
case "(($ac_try" in
 
14202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14203
  *) ac_try_echo=$ac_try;;
 
14204
esac
 
14205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14206
  (eval "$ac_compile") 2>conftest.er1
 
14207
  ac_status=$?
 
14208
  grep -v '^ *+' conftest.er1 >conftest.err
 
14209
  rm -f conftest.er1
 
14210
  cat conftest.err >&5
 
14211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14212
  (exit $ac_status); } && {
 
14213
         test -z "$ac_c_werror_flag" ||
 
14214
         test ! -s conftest.err
 
14215
       } && test -s conftest.$ac_objext; then
 
14216
  ac_header_compiler=yes
 
14217
else
 
14218
  echo "$as_me: failed program was:" >&5
 
14219
sed 's/^/| /' conftest.$ac_ext >&5
 
14220
 
 
14221
        ac_header_compiler=no
 
14222
fi
 
14223
 
 
14224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14225
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14226
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
14227
 
 
14228
# Is the header present?
 
14229
{ echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
 
14230
echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
 
14231
cat >conftest.$ac_ext <<_ACEOF
 
14232
/* confdefs.h.  */
 
14233
_ACEOF
 
14234
cat confdefs.h >>conftest.$ac_ext
 
14235
cat >>conftest.$ac_ext <<_ACEOF
 
14236
/* end confdefs.h.  */
 
14237
#include <mach/cthreads.h>
 
14238
_ACEOF
 
14239
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14240
case "(($ac_try" in
 
14241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14242
  *) ac_try_echo=$ac_try;;
 
14243
esac
 
14244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14245
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
14246
  ac_status=$?
 
14247
  grep -v '^ *+' conftest.er1 >conftest.err
 
14248
  rm -f conftest.er1
 
14249
  cat conftest.err >&5
 
14250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14251
  (exit $ac_status); } >/dev/null && {
 
14252
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14253
         test ! -s conftest.err
 
14254
       }; then
 
14255
  ac_header_preproc=yes
 
14256
else
 
14257
  echo "$as_me: failed program was:" >&5
 
14258
sed 's/^/| /' conftest.$ac_ext >&5
 
14259
 
 
14260
  ac_header_preproc=no
 
14261
fi
 
14262
 
 
14263
rm -f conftest.err conftest.$ac_ext
 
14264
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14265
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
14266
 
 
14267
# So?  What about this header?
 
14268
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14269
  yes:no: )
 
14270
    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
14271
echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14272
    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
 
14273
echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
 
14274
    ac_header_preproc=yes
 
14275
    ;;
 
14276
  no:yes:* )
 
14277
    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
 
14278
echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
 
14279
    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h:     check for missing prerequisite headers?" >&5
 
14280
echo "$as_me: WARNING: mach/cthreads.h:     check for missing prerequisite headers?" >&2;}
 
14281
    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
 
14282
echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
 
14283
    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h:     section \"Present But Cannot Be Compiled\"" >&5
 
14284
echo "$as_me: WARNING: mach/cthreads.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14285
    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
 
14286
echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
 
14287
    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
 
14288
echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
 
14289
    ( cat <<\_ASBOX
 
14290
## ------------------------------------------------ ##
 
14291
## Report this to http://www.python.org/python-bugs ##
 
14292
## ------------------------------------------------ ##
 
14293
_ASBOX
 
14294
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
14295
    ;;
 
14296
esac
 
14297
{ echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
 
14298
echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
 
14299
if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
 
14300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14301
else
 
14302
  ac_cv_header_mach_cthreads_h=$ac_header_preproc
 
14303
fi
 
14304
{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
 
14305
echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
 
14306
 
 
14307
fi
 
14308
if test $ac_cv_header_mach_cthreads_h = yes; then
 
14309
  cat >>confdefs.h <<\_ACEOF
 
14310
#define WITH_THREAD 1
 
14311
_ACEOF
 
14312
 
 
14313
    cat >>confdefs.h <<\_ACEOF
 
14314
#define C_THREADS 1
 
14315
_ACEOF
 
14316
 
 
14317
 
 
14318
cat >>confdefs.h <<\_ACEOF
 
14319
#define MACH_C_THREADS 1
 
14320
_ACEOF
 
14321
 
 
14322
    THREADOBJ="Python/thread.o"
 
14323
else
 
14324
 
 
14325
    { echo "$as_me:$LINENO: checking for --with-pth" >&5
 
14326
echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
 
14327
 
 
14328
# Check whether --with-pth was given.
 
14329
if test "${with_pth+set}" = set; then
 
14330
  withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
 
14331
echo "${ECHO_T}$withval" >&6; }
 
14332
                  cat >>confdefs.h <<\_ACEOF
 
14333
#define WITH_THREAD 1
 
14334
_ACEOF
 
14335
 
 
14336
 
 
14337
cat >>confdefs.h <<\_ACEOF
 
14338
#define HAVE_PTH 1
 
14339
_ACEOF
 
14340
 
 
14341
                  LIBS="-lpth $LIBS"
 
14342
                  THREADOBJ="Python/thread.o"
 
14343
else
 
14344
  { echo "$as_me:$LINENO: result: no" >&5
 
14345
echo "${ECHO_T}no" >&6; }
 
14346
 
 
14347
    # Just looking for pthread_create in libpthread is not enough:
 
14348
    # on HP/UX, pthread.h renames pthread_create to a different symbol name.
 
14349
    # So we really have to include pthread.h, and then link.
 
14350
    _libs=$LIBS
 
14351
    LIBS="$LIBS -lpthread"
 
14352
    { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
14353
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
 
14354
    cat >conftest.$ac_ext <<_ACEOF
 
14355
/* confdefs.h.  */
 
14356
_ACEOF
 
14357
cat confdefs.h >>conftest.$ac_ext
 
14358
cat >>conftest.$ac_ext <<_ACEOF
 
14359
/* end confdefs.h.  */
 
14360
#include <pthread.h>
 
14361
 
 
14362
void * start_routine (void *arg) { exit (0); }
 
14363
int
 
14364
main ()
 
14365
{
 
14366
 
 
14367
pthread_create (NULL, NULL, start_routine, NULL)
 
14368
  ;
 
14369
  return 0;
 
14370
}
 
14371
_ACEOF
 
14372
rm -f conftest.$ac_objext conftest$ac_exeext
 
14373
if { (ac_try="$ac_link"
 
14374
case "(($ac_try" in
 
14375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14376
  *) ac_try_echo=$ac_try;;
 
14377
esac
 
14378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14379
  (eval "$ac_link") 2>conftest.er1
 
14380
  ac_status=$?
 
14381
  grep -v '^ *+' conftest.er1 >conftest.err
 
14382
  rm -f conftest.er1
 
14383
  cat conftest.err >&5
 
14384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14385
  (exit $ac_status); } && {
 
14386
         test -z "$ac_c_werror_flag" ||
 
14387
         test ! -s conftest.err
 
14388
       } && test -s conftest$ac_exeext &&
 
14389
       $as_test_x conftest$ac_exeext; then
 
14390
 
 
14391
    { echo "$as_me:$LINENO: result: yes" >&5
 
14392
echo "${ECHO_T}yes" >&6; }
 
14393
    cat >>confdefs.h <<\_ACEOF
 
14394
#define WITH_THREAD 1
 
14395
_ACEOF
 
14396
 
 
14397
    posix_threads=yes
 
14398
    THREADOBJ="Python/thread.o"
 
14399
else
 
14400
  echo "$as_me: failed program was:" >&5
 
14401
sed 's/^/| /' conftest.$ac_ext >&5
 
14402
 
 
14403
 
 
14404
    LIBS=$_libs
 
14405
    { echo "$as_me:$LINENO: checking for pthread_detach" >&5
 
14406
echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
 
14407
if test "${ac_cv_func_pthread_detach+set}" = set; then
 
14408
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14409
else
 
14410
  cat >conftest.$ac_ext <<_ACEOF
 
14411
/* confdefs.h.  */
 
14412
_ACEOF
 
14413
cat confdefs.h >>conftest.$ac_ext
 
14414
cat >>conftest.$ac_ext <<_ACEOF
 
14415
/* end confdefs.h.  */
 
14416
/* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
 
14417
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14418
#define pthread_detach innocuous_pthread_detach
 
14419
 
 
14420
/* System header to define __stub macros and hopefully few prototypes,
 
14421
    which can conflict with char pthread_detach (); below.
 
14422
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14423
    <limits.h> exists even on freestanding compilers.  */
 
14424
 
 
14425
#ifdef __STDC__
 
14426
# include <limits.h>
 
14427
#else
 
14428
# include <assert.h>
 
14429
#endif
 
14430
 
 
14431
#undef pthread_detach
 
14432
 
 
14433
/* Override any GCC internal prototype to avoid an error.
 
14434
   Use char because int might match the return type of a GCC
 
14435
   builtin and then its argument prototype would still apply.  */
 
14436
#ifdef __cplusplus
 
14437
extern "C"
 
14438
#endif
 
14439
char pthread_detach ();
 
14440
/* The GNU C library defines this for functions which it implements
 
14441
    to always fail with ENOSYS.  Some functions are actually named
 
14442
    something starting with __ and the normal name is an alias.  */
 
14443
#if defined __stub_pthread_detach || defined __stub___pthread_detach
 
14444
choke me
 
14445
#endif
 
14446
 
 
14447
int
 
14448
main ()
 
14449
{
 
14450
return pthread_detach ();
 
14451
  ;
 
14452
  return 0;
 
14453
}
 
14454
_ACEOF
 
14455
rm -f conftest.$ac_objext conftest$ac_exeext
 
14456
if { (ac_try="$ac_link"
 
14457
case "(($ac_try" in
 
14458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14459
  *) ac_try_echo=$ac_try;;
 
14460
esac
 
14461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14462
  (eval "$ac_link") 2>conftest.er1
 
14463
  ac_status=$?
 
14464
  grep -v '^ *+' conftest.er1 >conftest.err
 
14465
  rm -f conftest.er1
 
14466
  cat conftest.err >&5
 
14467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14468
  (exit $ac_status); } && {
 
14469
         test -z "$ac_c_werror_flag" ||
 
14470
         test ! -s conftest.err
 
14471
       } && test -s conftest$ac_exeext &&
 
14472
       $as_test_x conftest$ac_exeext; then
 
14473
  ac_cv_func_pthread_detach=yes
 
14474
else
 
14475
  echo "$as_me: failed program was:" >&5
 
14476
sed 's/^/| /' conftest.$ac_ext >&5
 
14477
 
 
14478
        ac_cv_func_pthread_detach=no
 
14479
fi
 
14480
 
 
14481
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14482
      conftest$ac_exeext conftest.$ac_ext
 
14483
fi
 
14484
{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
 
14485
echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
 
14486
if test $ac_cv_func_pthread_detach = yes; then
 
14487
  cat >>confdefs.h <<\_ACEOF
 
14488
#define WITH_THREAD 1
 
14489
_ACEOF
 
14490
 
 
14491
    posix_threads=yes
 
14492
    THREADOBJ="Python/thread.o"
 
14493
else
 
14494
 
 
14495
    if test "${ac_cv_header_atheos_threads_h+set}" = set; then
 
14496
  { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
 
14497
echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
 
14498
if test "${ac_cv_header_atheos_threads_h+set}" = set; then
 
14499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14500
fi
 
14501
{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
 
14502
echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
 
14503
else
 
14504
  # Is the header compilable?
 
14505
{ echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
 
14506
echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
 
14507
cat >conftest.$ac_ext <<_ACEOF
 
14508
/* confdefs.h.  */
 
14509
_ACEOF
 
14510
cat confdefs.h >>conftest.$ac_ext
 
14511
cat >>conftest.$ac_ext <<_ACEOF
 
14512
/* end confdefs.h.  */
 
14513
$ac_includes_default
 
14514
#include <atheos/threads.h>
 
14515
_ACEOF
 
14516
rm -f conftest.$ac_objext
 
14517
if { (ac_try="$ac_compile"
 
14518
case "(($ac_try" in
 
14519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14520
  *) ac_try_echo=$ac_try;;
 
14521
esac
 
14522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14523
  (eval "$ac_compile") 2>conftest.er1
 
14524
  ac_status=$?
 
14525
  grep -v '^ *+' conftest.er1 >conftest.err
 
14526
  rm -f conftest.er1
 
14527
  cat conftest.err >&5
 
14528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14529
  (exit $ac_status); } && {
 
14530
         test -z "$ac_c_werror_flag" ||
 
14531
         test ! -s conftest.err
 
14532
       } && test -s conftest.$ac_objext; then
 
14533
  ac_header_compiler=yes
 
14534
else
 
14535
  echo "$as_me: failed program was:" >&5
 
14536
sed 's/^/| /' conftest.$ac_ext >&5
 
14537
 
 
14538
        ac_header_compiler=no
 
14539
fi
 
14540
 
 
14541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14542
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14543
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
14544
 
 
14545
# Is the header present?
 
14546
{ echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
 
14547
echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
 
14548
cat >conftest.$ac_ext <<_ACEOF
 
14549
/* confdefs.h.  */
 
14550
_ACEOF
 
14551
cat confdefs.h >>conftest.$ac_ext
 
14552
cat >>conftest.$ac_ext <<_ACEOF
 
14553
/* end confdefs.h.  */
 
14554
#include <atheos/threads.h>
 
14555
_ACEOF
 
14556
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14557
case "(($ac_try" in
 
14558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14559
  *) ac_try_echo=$ac_try;;
 
14560
esac
 
14561
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14562
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
14563
  ac_status=$?
 
14564
  grep -v '^ *+' conftest.er1 >conftest.err
 
14565
  rm -f conftest.er1
 
14566
  cat conftest.err >&5
 
14567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14568
  (exit $ac_status); } >/dev/null && {
 
14569
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14570
         test ! -s conftest.err
 
14571
       }; then
 
14572
  ac_header_preproc=yes
 
14573
else
 
14574
  echo "$as_me: failed program was:" >&5
 
14575
sed 's/^/| /' conftest.$ac_ext >&5
 
14576
 
 
14577
  ac_header_preproc=no
 
14578
fi
 
14579
 
 
14580
rm -f conftest.err conftest.$ac_ext
 
14581
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14582
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
14583
 
 
14584
# So?  What about this header?
 
14585
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14586
  yes:no: )
 
14587
    { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
14588
echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14589
    { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
 
14590
echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
 
14591
    ac_header_preproc=yes
 
14592
    ;;
 
14593
  no:yes:* )
 
14594
    { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
 
14595
echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
 
14596
    { echo "$as_me:$LINENO: WARNING: atheos/threads.h:     check for missing prerequisite headers?" >&5
 
14597
echo "$as_me: WARNING: atheos/threads.h:     check for missing prerequisite headers?" >&2;}
 
14598
    { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
 
14599
echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
 
14600
    { echo "$as_me:$LINENO: WARNING: atheos/threads.h:     section \"Present But Cannot Be Compiled\"" >&5
 
14601
echo "$as_me: WARNING: atheos/threads.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14602
    { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
 
14603
echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
 
14604
    { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
 
14605
echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
 
14606
    ( cat <<\_ASBOX
 
14607
## ------------------------------------------------ ##
 
14608
## Report this to http://www.python.org/python-bugs ##
 
14609
## ------------------------------------------------ ##
 
14610
_ASBOX
 
14611
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
14612
    ;;
 
14613
esac
 
14614
{ echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
 
14615
echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
 
14616
if test "${ac_cv_header_atheos_threads_h+set}" = set; then
 
14617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14618
else
 
14619
  ac_cv_header_atheos_threads_h=$ac_header_preproc
 
14620
fi
 
14621
{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
 
14622
echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
 
14623
 
 
14624
fi
 
14625
if test $ac_cv_header_atheos_threads_h = yes; then
 
14626
  cat >>confdefs.h <<\_ACEOF
 
14627
#define WITH_THREAD 1
 
14628
_ACEOF
 
14629
 
 
14630
 
 
14631
cat >>confdefs.h <<\_ACEOF
 
14632
#define ATHEOS_THREADS 1
 
14633
_ACEOF
 
14634
 
 
14635
    THREADOBJ="Python/thread.o"
 
14636
else
 
14637
 
 
14638
    if test "${ac_cv_header_kernel_OS_h+set}" = set; then
 
14639
  { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
 
14640
echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
 
14641
if test "${ac_cv_header_kernel_OS_h+set}" = set; then
 
14642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14643
fi
 
14644
{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
 
14645
echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
 
14646
else
 
14647
  # Is the header compilable?
 
14648
{ echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
 
14649
echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
 
14650
cat >conftest.$ac_ext <<_ACEOF
 
14651
/* confdefs.h.  */
 
14652
_ACEOF
 
14653
cat confdefs.h >>conftest.$ac_ext
 
14654
cat >>conftest.$ac_ext <<_ACEOF
 
14655
/* end confdefs.h.  */
 
14656
$ac_includes_default
 
14657
#include <kernel/OS.h>
 
14658
_ACEOF
 
14659
rm -f conftest.$ac_objext
 
14660
if { (ac_try="$ac_compile"
 
14661
case "(($ac_try" in
 
14662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14663
  *) ac_try_echo=$ac_try;;
 
14664
esac
 
14665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14666
  (eval "$ac_compile") 2>conftest.er1
 
14667
  ac_status=$?
 
14668
  grep -v '^ *+' conftest.er1 >conftest.err
 
14669
  rm -f conftest.er1
 
14670
  cat conftest.err >&5
 
14671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14672
  (exit $ac_status); } && {
 
14673
         test -z "$ac_c_werror_flag" ||
 
14674
         test ! -s conftest.err
 
14675
       } && test -s conftest.$ac_objext; then
 
14676
  ac_header_compiler=yes
 
14677
else
 
14678
  echo "$as_me: failed program was:" >&5
 
14679
sed 's/^/| /' conftest.$ac_ext >&5
 
14680
 
 
14681
        ac_header_compiler=no
 
14682
fi
 
14683
 
 
14684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14685
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14686
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
14687
 
 
14688
# Is the header present?
 
14689
{ echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
 
14690
echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
 
14691
cat >conftest.$ac_ext <<_ACEOF
 
14692
/* confdefs.h.  */
 
14693
_ACEOF
 
14694
cat confdefs.h >>conftest.$ac_ext
 
14695
cat >>conftest.$ac_ext <<_ACEOF
 
14696
/* end confdefs.h.  */
 
14697
#include <kernel/OS.h>
 
14698
_ACEOF
 
14699
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14700
case "(($ac_try" in
 
14701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14702
  *) ac_try_echo=$ac_try;;
 
14703
esac
 
14704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14705
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
14706
  ac_status=$?
 
14707
  grep -v '^ *+' conftest.er1 >conftest.err
 
14708
  rm -f conftest.er1
 
14709
  cat conftest.err >&5
 
14710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14711
  (exit $ac_status); } >/dev/null && {
 
14712
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14713
         test ! -s conftest.err
 
14714
       }; then
 
14715
  ac_header_preproc=yes
 
14716
else
 
14717
  echo "$as_me: failed program was:" >&5
 
14718
sed 's/^/| /' conftest.$ac_ext >&5
 
14719
 
 
14720
  ac_header_preproc=no
 
14721
fi
 
14722
 
 
14723
rm -f conftest.err conftest.$ac_ext
 
14724
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14725
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
14726
 
 
14727
# So?  What about this header?
 
14728
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14729
  yes:no: )
 
14730
    { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
14731
echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14732
    { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
 
14733
echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
 
14734
    ac_header_preproc=yes
 
14735
    ;;
 
14736
  no:yes:* )
 
14737
    { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
 
14738
echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
 
14739
    { echo "$as_me:$LINENO: WARNING: kernel/OS.h:     check for missing prerequisite headers?" >&5
 
14740
echo "$as_me: WARNING: kernel/OS.h:     check for missing prerequisite headers?" >&2;}
 
14741
    { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
 
14742
echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
 
14743
    { echo "$as_me:$LINENO: WARNING: kernel/OS.h:     section \"Present But Cannot Be Compiled\"" >&5
 
14744
echo "$as_me: WARNING: kernel/OS.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14745
    { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
 
14746
echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
 
14747
    { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
 
14748
echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
 
14749
    ( cat <<\_ASBOX
 
14750
## ------------------------------------------------ ##
 
14751
## Report this to http://www.python.org/python-bugs ##
 
14752
## ------------------------------------------------ ##
 
14753
_ASBOX
 
14754
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
14755
    ;;
 
14756
esac
 
14757
{ echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
 
14758
echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
 
14759
if test "${ac_cv_header_kernel_OS_h+set}" = set; then
 
14760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14761
else
 
14762
  ac_cv_header_kernel_OS_h=$ac_header_preproc
 
14763
fi
 
14764
{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
 
14765
echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
 
14766
 
 
14767
fi
 
14768
if test $ac_cv_header_kernel_OS_h = yes; then
 
14769
  cat >>confdefs.h <<\_ACEOF
 
14770
#define WITH_THREAD 1
 
14771
_ACEOF
 
14772
 
 
14773
 
 
14774
cat >>confdefs.h <<\_ACEOF
 
14775
#define BEOS_THREADS 1
 
14776
_ACEOF
 
14777
 
 
14778
    THREADOBJ="Python/thread.o"
 
14779
else
 
14780
 
 
14781
    { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
 
14782
echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
 
14783
if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
 
14784
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14785
else
 
14786
  ac_check_lib_save_LIBS=$LIBS
 
14787
LIBS="-lpthreads  $LIBS"
 
14788
cat >conftest.$ac_ext <<_ACEOF
 
14789
/* confdefs.h.  */
 
14790
_ACEOF
 
14791
cat confdefs.h >>conftest.$ac_ext
 
14792
cat >>conftest.$ac_ext <<_ACEOF
 
14793
/* end confdefs.h.  */
 
14794
 
 
14795
/* Override any GCC internal prototype to avoid an error.
 
14796
   Use char because int might match the return type of a GCC
 
14797
   builtin and then its argument prototype would still apply.  */
 
14798
#ifdef __cplusplus
 
14799
extern "C"
 
14800
#endif
 
14801
char pthread_create ();
 
14802
int
 
14803
main ()
 
14804
{
 
14805
return pthread_create ();
 
14806
  ;
 
14807
  return 0;
 
14808
}
 
14809
_ACEOF
 
14810
rm -f conftest.$ac_objext conftest$ac_exeext
 
14811
if { (ac_try="$ac_link"
 
14812
case "(($ac_try" in
 
14813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14814
  *) ac_try_echo=$ac_try;;
 
14815
esac
 
14816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14817
  (eval "$ac_link") 2>conftest.er1
 
14818
  ac_status=$?
 
14819
  grep -v '^ *+' conftest.er1 >conftest.err
 
14820
  rm -f conftest.er1
 
14821
  cat conftest.err >&5
 
14822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14823
  (exit $ac_status); } && {
 
14824
         test -z "$ac_c_werror_flag" ||
 
14825
         test ! -s conftest.err
 
14826
       } && test -s conftest$ac_exeext &&
 
14827
       $as_test_x conftest$ac_exeext; then
 
14828
  ac_cv_lib_pthreads_pthread_create=yes
 
14829
else
 
14830
  echo "$as_me: failed program was:" >&5
 
14831
sed 's/^/| /' conftest.$ac_ext >&5
 
14832
 
 
14833
        ac_cv_lib_pthreads_pthread_create=no
 
14834
fi
 
14835
 
 
14836
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14837
      conftest$ac_exeext conftest.$ac_ext
 
14838
LIBS=$ac_check_lib_save_LIBS
 
14839
fi
 
14840
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
 
14841
echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
 
14842
if test $ac_cv_lib_pthreads_pthread_create = yes; then
 
14843
  cat >>confdefs.h <<\_ACEOF
 
14844
#define WITH_THREAD 1
 
14845
_ACEOF
 
14846
 
 
14847
    posix_threads=yes
 
14848
    LIBS="$LIBS -lpthreads"
 
14849
    THREADOBJ="Python/thread.o"
 
14850
else
 
14851
 
 
14852
    { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
 
14853
echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
 
14854
if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
 
14855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14856
else
 
14857
  ac_check_lib_save_LIBS=$LIBS
 
14858
LIBS="-lc_r  $LIBS"
 
14859
cat >conftest.$ac_ext <<_ACEOF
 
14860
/* confdefs.h.  */
 
14861
_ACEOF
 
14862
cat confdefs.h >>conftest.$ac_ext
 
14863
cat >>conftest.$ac_ext <<_ACEOF
 
14864
/* end confdefs.h.  */
 
14865
 
 
14866
/* Override any GCC internal prototype to avoid an error.
 
14867
   Use char because int might match the return type of a GCC
 
14868
   builtin and then its argument prototype would still apply.  */
 
14869
#ifdef __cplusplus
 
14870
extern "C"
 
14871
#endif
 
14872
char pthread_create ();
 
14873
int
 
14874
main ()
 
14875
{
 
14876
return pthread_create ();
 
14877
  ;
 
14878
  return 0;
 
14879
}
 
14880
_ACEOF
 
14881
rm -f conftest.$ac_objext conftest$ac_exeext
 
14882
if { (ac_try="$ac_link"
 
14883
case "(($ac_try" in
 
14884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14885
  *) ac_try_echo=$ac_try;;
 
14886
esac
 
14887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14888
  (eval "$ac_link") 2>conftest.er1
 
14889
  ac_status=$?
 
14890
  grep -v '^ *+' conftest.er1 >conftest.err
 
14891
  rm -f conftest.er1
 
14892
  cat conftest.err >&5
 
14893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14894
  (exit $ac_status); } && {
 
14895
         test -z "$ac_c_werror_flag" ||
 
14896
         test ! -s conftest.err
 
14897
       } && test -s conftest$ac_exeext &&
 
14898
       $as_test_x conftest$ac_exeext; then
 
14899
  ac_cv_lib_c_r_pthread_create=yes
 
14900
else
 
14901
  echo "$as_me: failed program was:" >&5
 
14902
sed 's/^/| /' conftest.$ac_ext >&5
 
14903
 
 
14904
        ac_cv_lib_c_r_pthread_create=no
 
14905
fi
 
14906
 
 
14907
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14908
      conftest$ac_exeext conftest.$ac_ext
 
14909
LIBS=$ac_check_lib_save_LIBS
 
14910
fi
 
14911
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
 
14912
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
 
14913
if test $ac_cv_lib_c_r_pthread_create = yes; then
 
14914
  cat >>confdefs.h <<\_ACEOF
 
14915
#define WITH_THREAD 1
 
14916
_ACEOF
 
14917
 
 
14918
    posix_threads=yes
 
14919
    LIBS="$LIBS -lc_r"
 
14920
    THREADOBJ="Python/thread.o"
 
14921
else
 
14922
 
 
14923
    { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
 
14924
echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
 
14925
if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
 
14926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14927
else
 
14928
  ac_check_lib_save_LIBS=$LIBS
 
14929
LIBS="-lpthread  $LIBS"
 
14930
cat >conftest.$ac_ext <<_ACEOF
 
14931
/* confdefs.h.  */
 
14932
_ACEOF
 
14933
cat confdefs.h >>conftest.$ac_ext
 
14934
cat >>conftest.$ac_ext <<_ACEOF
 
14935
/* end confdefs.h.  */
 
14936
 
 
14937
/* Override any GCC internal prototype to avoid an error.
 
14938
   Use char because int might match the return type of a GCC
 
14939
   builtin and then its argument prototype would still apply.  */
 
14940
#ifdef __cplusplus
 
14941
extern "C"
 
14942
#endif
 
14943
char __pthread_create_system ();
 
14944
int
 
14945
main ()
 
14946
{
 
14947
return __pthread_create_system ();
 
14948
  ;
 
14949
  return 0;
 
14950
}
 
14951
_ACEOF
 
14952
rm -f conftest.$ac_objext conftest$ac_exeext
 
14953
if { (ac_try="$ac_link"
 
14954
case "(($ac_try" in
 
14955
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14956
  *) ac_try_echo=$ac_try;;
 
14957
esac
 
14958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14959
  (eval "$ac_link") 2>conftest.er1
 
14960
  ac_status=$?
 
14961
  grep -v '^ *+' conftest.er1 >conftest.err
 
14962
  rm -f conftest.er1
 
14963
  cat conftest.err >&5
 
14964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14965
  (exit $ac_status); } && {
 
14966
         test -z "$ac_c_werror_flag" ||
 
14967
         test ! -s conftest.err
 
14968
       } && test -s conftest$ac_exeext &&
 
14969
       $as_test_x conftest$ac_exeext; then
 
14970
  ac_cv_lib_pthread___pthread_create_system=yes
 
14971
else
 
14972
  echo "$as_me: failed program was:" >&5
 
14973
sed 's/^/| /' conftest.$ac_ext >&5
 
14974
 
 
14975
        ac_cv_lib_pthread___pthread_create_system=no
 
14976
fi
 
14977
 
 
14978
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14979
      conftest$ac_exeext conftest.$ac_ext
 
14980
LIBS=$ac_check_lib_save_LIBS
 
14981
fi
 
14982
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
 
14983
echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
 
14984
if test $ac_cv_lib_pthread___pthread_create_system = yes; then
 
14985
  cat >>confdefs.h <<\_ACEOF
 
14986
#define WITH_THREAD 1
 
14987
_ACEOF
 
14988
 
 
14989
    posix_threads=yes
 
14990
    LIBS="$LIBS -lpthread"
 
14991
    THREADOBJ="Python/thread.o"
 
14992
else
 
14993
 
 
14994
    { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
 
14995
echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
 
14996
if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
 
14997
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14998
else
 
14999
  ac_check_lib_save_LIBS=$LIBS
 
15000
LIBS="-lcma  $LIBS"
 
15001
cat >conftest.$ac_ext <<_ACEOF
 
15002
/* confdefs.h.  */
 
15003
_ACEOF
 
15004
cat confdefs.h >>conftest.$ac_ext
 
15005
cat >>conftest.$ac_ext <<_ACEOF
 
15006
/* end confdefs.h.  */
 
15007
 
 
15008
/* Override any GCC internal prototype to avoid an error.
 
15009
   Use char because int might match the return type of a GCC
 
15010
   builtin and then its argument prototype would still apply.  */
 
15011
#ifdef __cplusplus
 
15012
extern "C"
 
15013
#endif
 
15014
char pthread_create ();
 
15015
int
 
15016
main ()
 
15017
{
 
15018
return pthread_create ();
 
15019
  ;
 
15020
  return 0;
 
15021
}
 
15022
_ACEOF
 
15023
rm -f conftest.$ac_objext conftest$ac_exeext
 
15024
if { (ac_try="$ac_link"
 
15025
case "(($ac_try" in
 
15026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15027
  *) ac_try_echo=$ac_try;;
 
15028
esac
 
15029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15030
  (eval "$ac_link") 2>conftest.er1
 
15031
  ac_status=$?
 
15032
  grep -v '^ *+' conftest.er1 >conftest.err
 
15033
  rm -f conftest.er1
 
15034
  cat conftest.err >&5
 
15035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15036
  (exit $ac_status); } && {
 
15037
         test -z "$ac_c_werror_flag" ||
 
15038
         test ! -s conftest.err
 
15039
       } && test -s conftest$ac_exeext &&
 
15040
       $as_test_x conftest$ac_exeext; then
 
15041
  ac_cv_lib_cma_pthread_create=yes
 
15042
else
 
15043
  echo "$as_me: failed program was:" >&5
 
15044
sed 's/^/| /' conftest.$ac_ext >&5
 
15045
 
 
15046
        ac_cv_lib_cma_pthread_create=no
 
15047
fi
 
15048
 
 
15049
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15050
      conftest$ac_exeext conftest.$ac_ext
 
15051
LIBS=$ac_check_lib_save_LIBS
 
15052
fi
 
15053
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
 
15054
echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
 
15055
if test $ac_cv_lib_cma_pthread_create = yes; then
 
15056
  cat >>confdefs.h <<\_ACEOF
 
15057
#define WITH_THREAD 1
 
15058
_ACEOF
 
15059
 
 
15060
    posix_threads=yes
 
15061
    LIBS="$LIBS -lcma"
 
15062
    THREADOBJ="Python/thread.o"
 
15063
else
 
15064
 
 
15065
    USE_THREAD_MODULE="#"
 
15066
fi
 
15067
 
 
15068
 
 
15069
fi
 
15070
 
 
15071
fi
 
15072
 
 
15073
fi
 
15074
 
 
15075
fi
 
15076
 
 
15077
 
 
15078
fi
 
15079
 
 
15080
 
 
15081
fi
 
15082
 
 
15083
fi
 
15084
 
 
15085
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15086
      conftest$ac_exeext conftest.$ac_ext
 
15087
fi
 
15088
 
 
15089
fi
 
15090
 
 
15091
 
 
15092
fi
 
15093
 
 
15094
 
 
15095
 
 
15096
    { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
 
15097
echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
 
15098
if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
 
15099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15100
else
 
15101
  ac_check_lib_save_LIBS=$LIBS
 
15102
LIBS="-lmpc  $LIBS"
 
15103
cat >conftest.$ac_ext <<_ACEOF
 
15104
/* confdefs.h.  */
 
15105
_ACEOF
 
15106
cat confdefs.h >>conftest.$ac_ext
 
15107
cat >>conftest.$ac_ext <<_ACEOF
 
15108
/* end confdefs.h.  */
 
15109
 
 
15110
/* Override any GCC internal prototype to avoid an error.
 
15111
   Use char because int might match the return type of a GCC
 
15112
   builtin and then its argument prototype would still apply.  */
 
15113
#ifdef __cplusplus
 
15114
extern "C"
 
15115
#endif
 
15116
char usconfig ();
 
15117
int
 
15118
main ()
 
15119
{
 
15120
return usconfig ();
 
15121
  ;
 
15122
  return 0;
 
15123
}
 
15124
_ACEOF
 
15125
rm -f conftest.$ac_objext conftest$ac_exeext
 
15126
if { (ac_try="$ac_link"
 
15127
case "(($ac_try" in
 
15128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15129
  *) ac_try_echo=$ac_try;;
 
15130
esac
 
15131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15132
  (eval "$ac_link") 2>conftest.er1
 
15133
  ac_status=$?
 
15134
  grep -v '^ *+' conftest.er1 >conftest.err
 
15135
  rm -f conftest.er1
 
15136
  cat conftest.err >&5
 
15137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15138
  (exit $ac_status); } && {
 
15139
         test -z "$ac_c_werror_flag" ||
 
15140
         test ! -s conftest.err
 
15141
       } && test -s conftest$ac_exeext &&
 
15142
       $as_test_x conftest$ac_exeext; then
 
15143
  ac_cv_lib_mpc_usconfig=yes
 
15144
else
 
15145
  echo "$as_me: failed program was:" >&5
 
15146
sed 's/^/| /' conftest.$ac_ext >&5
 
15147
 
 
15148
        ac_cv_lib_mpc_usconfig=no
 
15149
fi
 
15150
 
 
15151
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15152
      conftest$ac_exeext conftest.$ac_ext
 
15153
LIBS=$ac_check_lib_save_LIBS
 
15154
fi
 
15155
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
 
15156
echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
 
15157
if test $ac_cv_lib_mpc_usconfig = yes; then
 
15158
  cat >>confdefs.h <<\_ACEOF
 
15159
#define WITH_THREAD 1
 
15160
_ACEOF
 
15161
 
 
15162
    LIBS="$LIBS -lmpc"
 
15163
    THREADOBJ="Python/thread.o"
 
15164
    USE_THREAD_MODULE=""
 
15165
fi
 
15166
 
 
15167
 
 
15168
    if test "$posix_threads" != "yes"; then
 
15169
      { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
 
15170
echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
 
15171
if test "${ac_cv_lib_thread_thr_create+set}" = set; then
 
15172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15173
else
 
15174
  ac_check_lib_save_LIBS=$LIBS
 
15175
LIBS="-lthread  $LIBS"
 
15176
cat >conftest.$ac_ext <<_ACEOF
 
15177
/* confdefs.h.  */
 
15178
_ACEOF
 
15179
cat confdefs.h >>conftest.$ac_ext
 
15180
cat >>conftest.$ac_ext <<_ACEOF
 
15181
/* end confdefs.h.  */
 
15182
 
 
15183
/* Override any GCC internal prototype to avoid an error.
 
15184
   Use char because int might match the return type of a GCC
 
15185
   builtin and then its argument prototype would still apply.  */
 
15186
#ifdef __cplusplus
 
15187
extern "C"
 
15188
#endif
 
15189
char thr_create ();
 
15190
int
 
15191
main ()
 
15192
{
 
15193
return thr_create ();
 
15194
  ;
 
15195
  return 0;
 
15196
}
 
15197
_ACEOF
 
15198
rm -f conftest.$ac_objext conftest$ac_exeext
 
15199
if { (ac_try="$ac_link"
 
15200
case "(($ac_try" in
 
15201
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15202
  *) ac_try_echo=$ac_try;;
 
15203
esac
 
15204
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15205
  (eval "$ac_link") 2>conftest.er1
 
15206
  ac_status=$?
 
15207
  grep -v '^ *+' conftest.er1 >conftest.err
 
15208
  rm -f conftest.er1
 
15209
  cat conftest.err >&5
 
15210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15211
  (exit $ac_status); } && {
 
15212
         test -z "$ac_c_werror_flag" ||
 
15213
         test ! -s conftest.err
 
15214
       } && test -s conftest$ac_exeext &&
 
15215
       $as_test_x conftest$ac_exeext; then
 
15216
  ac_cv_lib_thread_thr_create=yes
 
15217
else
 
15218
  echo "$as_me: failed program was:" >&5
 
15219
sed 's/^/| /' conftest.$ac_ext >&5
 
15220
 
 
15221
        ac_cv_lib_thread_thr_create=no
 
15222
fi
 
15223
 
 
15224
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15225
      conftest$ac_exeext conftest.$ac_ext
 
15226
LIBS=$ac_check_lib_save_LIBS
 
15227
fi
 
15228
{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
 
15229
echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
 
15230
if test $ac_cv_lib_thread_thr_create = yes; then
 
15231
  cat >>confdefs.h <<\_ACEOF
 
15232
#define WITH_THREAD 1
 
15233
_ACEOF
 
15234
 
 
15235
      LIBS="$LIBS -lthread"
 
15236
      THREADOBJ="Python/thread.o"
 
15237
      USE_THREAD_MODULE=""
 
15238
fi
 
15239
 
 
15240
    fi
 
15241
 
 
15242
    if test "$USE_THREAD_MODULE" != "#"
 
15243
    then
 
15244
        # If the above checks didn't disable threads, (at least) OSF1
 
15245
        # needs this '-threads' argument during linking.
 
15246
        case $ac_sys_system in
 
15247
        OSF1) LDLAST=-threads;;
 
15248
        esac
 
15249
    fi
 
15250
fi
 
15251
 
 
15252
if test "$posix_threads" = "yes"; then
 
15253
      if test "$unistd_defines_pthreads" = "no"; then
 
15254
 
 
15255
cat >>confdefs.h <<\_ACEOF
 
15256
#define _POSIX_THREADS 1
 
15257
_ACEOF
 
15258
 
 
15259
      fi
 
15260
 
 
15261
      # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
 
15262
      case  $ac_sys_system/$ac_sys_release in
 
15263
  SunOS/5.6)
 
15264
cat >>confdefs.h <<\_ACEOF
 
15265
#define HAVE_PTHREAD_DESTRUCTOR 1
 
15266
_ACEOF
 
15267
 
 
15268
                       ;;
 
15269
      SunOS/5.8)
 
15270
cat >>confdefs.h <<\_ACEOF
 
15271
#define HAVE_BROKEN_POSIX_SEMAPHORES 1
 
15272
_ACEOF
 
15273
 
 
15274
                       ;;
 
15275
      AIX/5)
 
15276
cat >>confdefs.h <<\_ACEOF
 
15277
#define HAVE_BROKEN_POSIX_SEMAPHORES 1
 
15278
_ACEOF
 
15279
 
 
15280
                       ;;
 
15281
      esac
 
15282
 
 
15283
      { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
 
15284
echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
 
15285
      if test "${ac_cv_pthread_system_supported+set}" = set; then
 
15286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15287
else
 
15288
  if test "$cross_compiling" = yes; then
 
15289
  ac_cv_pthread_system_supported=no
 
15290
else
 
15291
  cat >conftest.$ac_ext <<_ACEOF
 
15292
/* confdefs.h.  */
 
15293
_ACEOF
 
15294
cat confdefs.h >>conftest.$ac_ext
 
15295
cat >>conftest.$ac_ext <<_ACEOF
 
15296
/* end confdefs.h.  */
 
15297
#include <pthread.h>
 
15298
      void *foo(void *parm) {
 
15299
        return NULL;
 
15300
      }
 
15301
      main() {
 
15302
        pthread_attr_t attr;
 
15303
        pthread_t id;
 
15304
        if (pthread_attr_init(&attr)) exit(-1);
 
15305
        if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
 
15306
        if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
 
15307
        exit(0);
 
15308
      }
 
15309
_ACEOF
 
15310
rm -f conftest$ac_exeext
 
15311
if { (ac_try="$ac_link"
 
15312
case "(($ac_try" in
 
15313
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15314
  *) ac_try_echo=$ac_try;;
 
15315
esac
 
15316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15317
  (eval "$ac_link") 2>&5
 
15318
  ac_status=$?
 
15319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15320
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15321
  { (case "(($ac_try" in
 
15322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15323
  *) ac_try_echo=$ac_try;;
 
15324
esac
 
15325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15326
  (eval "$ac_try") 2>&5
 
15327
  ac_status=$?
 
15328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15329
  (exit $ac_status); }; }; then
 
15330
  ac_cv_pthread_system_supported=yes
 
15331
else
 
15332
  echo "$as_me: program exited with status $ac_status" >&5
 
15333
echo "$as_me: failed program was:" >&5
 
15334
sed 's/^/| /' conftest.$ac_ext >&5
 
15335
 
 
15336
( exit $ac_status )
 
15337
ac_cv_pthread_system_supported=no
 
15338
fi
 
15339
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15340
fi
 
15341
 
 
15342
 
 
15343
 
 
15344
fi
 
15345
 
 
15346
      { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
 
15347
echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
 
15348
      if test "$ac_cv_pthread_system_supported" = "yes"; then
 
15349
 
 
15350
cat >>confdefs.h <<\_ACEOF
 
15351
#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
 
15352
_ACEOF
 
15353
 
 
15354
      fi
 
15355
 
 
15356
for ac_func in pthread_sigmask
 
15357
do
 
15358
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15359
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15360
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
15361
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15363
else
 
15364
  cat >conftest.$ac_ext <<_ACEOF
 
15365
/* confdefs.h.  */
 
15366
_ACEOF
 
15367
cat confdefs.h >>conftest.$ac_ext
 
15368
cat >>conftest.$ac_ext <<_ACEOF
 
15369
/* end confdefs.h.  */
 
15370
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15371
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15372
#define $ac_func innocuous_$ac_func
 
15373
 
 
15374
/* System header to define __stub macros and hopefully few prototypes,
 
15375
    which can conflict with char $ac_func (); below.
 
15376
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15377
    <limits.h> exists even on freestanding compilers.  */
 
15378
 
 
15379
#ifdef __STDC__
 
15380
# include <limits.h>
 
15381
#else
 
15382
# include <assert.h>
 
15383
#endif
 
15384
 
 
15385
#undef $ac_func
 
15386
 
 
15387
/* Override any GCC internal prototype to avoid an error.
 
15388
   Use char because int might match the return type of a GCC
 
15389
   builtin and then its argument prototype would still apply.  */
 
15390
#ifdef __cplusplus
 
15391
extern "C"
 
15392
#endif
 
15393
char $ac_func ();
 
15394
/* The GNU C library defines this for functions which it implements
 
15395
    to always fail with ENOSYS.  Some functions are actually named
 
15396
    something starting with __ and the normal name is an alias.  */
 
15397
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15398
choke me
 
15399
#endif
 
15400
 
 
15401
int
 
15402
main ()
 
15403
{
 
15404
return $ac_func ();
 
15405
  ;
 
15406
  return 0;
 
15407
}
 
15408
_ACEOF
 
15409
rm -f conftest.$ac_objext conftest$ac_exeext
 
15410
if { (ac_try="$ac_link"
 
15411
case "(($ac_try" in
 
15412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15413
  *) ac_try_echo=$ac_try;;
 
15414
esac
 
15415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15416
  (eval "$ac_link") 2>conftest.er1
 
15417
  ac_status=$?
 
15418
  grep -v '^ *+' conftest.er1 >conftest.err
 
15419
  rm -f conftest.er1
 
15420
  cat conftest.err >&5
 
15421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15422
  (exit $ac_status); } && {
 
15423
         test -z "$ac_c_werror_flag" ||
 
15424
         test ! -s conftest.err
 
15425
       } && test -s conftest$ac_exeext &&
 
15426
       $as_test_x conftest$ac_exeext; then
 
15427
  eval "$as_ac_var=yes"
 
15428
else
 
15429
  echo "$as_me: failed program was:" >&5
 
15430
sed 's/^/| /' conftest.$ac_ext >&5
 
15431
 
 
15432
        eval "$as_ac_var=no"
 
15433
fi
 
15434
 
 
15435
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15436
      conftest$ac_exeext conftest.$ac_ext
 
15437
fi
 
15438
ac_res=`eval echo '${'$as_ac_var'}'`
 
15439
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15440
echo "${ECHO_T}$ac_res" >&6; }
 
15441
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15442
  cat >>confdefs.h <<_ACEOF
 
15443
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15444
_ACEOF
 
15445
 case $ac_sys_system in
 
15446
        CYGWIN*)
 
15447
 
 
15448
cat >>confdefs.h <<\_ACEOF
 
15449
#define HAVE_BROKEN_PTHREAD_SIGMASK 1
 
15450
_ACEOF
 
15451
 
 
15452
            ;;
 
15453
        esac
 
15454
fi
 
15455
done
 
15456
 
 
15457
fi
 
15458
 
 
15459
 
 
15460
# Check for enable-ipv6
 
15461
 
 
15462
 
 
15463
{ echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
 
15464
echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
 
15465
# Check whether --enable-ipv6 was given.
 
15466
if test "${enable_ipv6+set}" = set; then
 
15467
  enableval=$enable_ipv6;  case "$enableval" in
 
15468
  no)
 
15469
       { echo "$as_me:$LINENO: result: no" >&5
 
15470
echo "${ECHO_T}no" >&6; }
 
15471
       ipv6=no
 
15472
       ;;
 
15473
  *)   { echo "$as_me:$LINENO: result: yes" >&5
 
15474
echo "${ECHO_T}yes" >&6; }
 
15475
       cat >>confdefs.h <<\_ACEOF
 
15476
#define ENABLE_IPV6 1
 
15477
_ACEOF
 
15478
 
 
15479
       ipv6=yes
 
15480
       ;;
 
15481
  esac
 
15482
else
 
15483
 
 
15484
  if test "$cross_compiling" = yes; then
 
15485
  { echo "$as_me:$LINENO: result: no" >&5
 
15486
echo "${ECHO_T}no" >&6; }
 
15487
  ipv6=no
 
15488
 
 
15489
else
 
15490
  cat >conftest.$ac_ext <<_ACEOF
 
15491
/* confdefs.h.  */
 
15492
_ACEOF
 
15493
cat confdefs.h >>conftest.$ac_ext
 
15494
cat >>conftest.$ac_ext <<_ACEOF
 
15495
/* end confdefs.h.  */
 
15496
 /* AF_INET6 available check */
 
15497
#include <sys/types.h>
 
15498
#include <sys/socket.h>
 
15499
main()
 
15500
{
 
15501
 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
 
15502
   exit(1);
 
15503
 else
 
15504
   exit(0);
 
15505
}
 
15506
 
 
15507
_ACEOF
 
15508
rm -f conftest$ac_exeext
 
15509
if { (ac_try="$ac_link"
 
15510
case "(($ac_try" in
 
15511
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15512
  *) ac_try_echo=$ac_try;;
 
15513
esac
 
15514
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15515
  (eval "$ac_link") 2>&5
 
15516
  ac_status=$?
 
15517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15518
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15519
  { (case "(($ac_try" in
 
15520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15521
  *) ac_try_echo=$ac_try;;
 
15522
esac
 
15523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15524
  (eval "$ac_try") 2>&5
 
15525
  ac_status=$?
 
15526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15527
  (exit $ac_status); }; }; then
 
15528
  { echo "$as_me:$LINENO: result: yes" >&5
 
15529
echo "${ECHO_T}yes" >&6; }
 
15530
  ipv6=yes
 
15531
else
 
15532
  echo "$as_me: program exited with status $ac_status" >&5
 
15533
echo "$as_me: failed program was:" >&5
 
15534
sed 's/^/| /' conftest.$ac_ext >&5
 
15535
 
 
15536
( exit $ac_status )
 
15537
{ echo "$as_me:$LINENO: result: no" >&5
 
15538
echo "${ECHO_T}no" >&6; }
 
15539
  ipv6=no
 
15540
fi
 
15541
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15542
fi
 
15543
 
 
15544
 
 
15545
 
 
15546
if test "$ipv6" = "yes"; then
 
15547
        { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
 
15548
echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
 
15549
        cat >conftest.$ac_ext <<_ACEOF
 
15550
/* confdefs.h.  */
 
15551
_ACEOF
 
15552
cat confdefs.h >>conftest.$ac_ext
 
15553
cat >>conftest.$ac_ext <<_ACEOF
 
15554
/* end confdefs.h.  */
 
15555
#include <sys/types.h>
 
15556
#include <netinet/in.h>
 
15557
int
 
15558
main ()
 
15559
{
 
15560
struct sockaddr_in6 x;
 
15561
x.sin6_scope_id;
 
15562
  ;
 
15563
  return 0;
 
15564
}
 
15565
_ACEOF
 
15566
rm -f conftest.$ac_objext
 
15567
if { (ac_try="$ac_compile"
 
15568
case "(($ac_try" in
 
15569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15570
  *) ac_try_echo=$ac_try;;
 
15571
esac
 
15572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15573
  (eval "$ac_compile") 2>conftest.er1
 
15574
  ac_status=$?
 
15575
  grep -v '^ *+' conftest.er1 >conftest.err
 
15576
  rm -f conftest.er1
 
15577
  cat conftest.err >&5
 
15578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15579
  (exit $ac_status); } && {
 
15580
         test -z "$ac_c_werror_flag" ||
 
15581
         test ! -s conftest.err
 
15582
       } && test -s conftest.$ac_objext; then
 
15583
  { echo "$as_me:$LINENO: result: yes" >&5
 
15584
echo "${ECHO_T}yes" >&6; }
 
15585
                ipv6=yes
 
15586
else
 
15587
  echo "$as_me: failed program was:" >&5
 
15588
sed 's/^/| /' conftest.$ac_ext >&5
 
15589
 
 
15590
        { echo "$as_me:$LINENO: result: no" >&5
 
15591
echo "${ECHO_T}no" >&6; }
 
15592
                ipv6=no
 
15593
fi
 
15594
 
 
15595
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15596
fi
 
15597
 
 
15598
if test "$ipv6" = "yes"; then
 
15599
        cat >>confdefs.h <<\_ACEOF
 
15600
#define ENABLE_IPV6 1
 
15601
_ACEOF
 
15602
 
 
15603
fi
 
15604
 
 
15605
fi
 
15606
 
 
15607
 
 
15608
ipv6type=unknown
 
15609
ipv6lib=none
 
15610
ipv6trylibc=no
 
15611
 
 
15612
if test "$ipv6" = "yes"; then
 
15613
        { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
 
15614
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
 
15615
        for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
 
15616
        do
 
15617
                case $i in
 
15618
                inria)
 
15619
                                                cat >conftest.$ac_ext <<_ACEOF
 
15620
/* confdefs.h.  */
 
15621
_ACEOF
 
15622
cat confdefs.h >>conftest.$ac_ext
 
15623
cat >>conftest.$ac_ext <<_ACEOF
 
15624
/* end confdefs.h.  */
 
15625
 
 
15626
#include <netinet/in.h>
 
15627
#ifdef IPV6_INRIA_VERSION
 
15628
yes
 
15629
#endif
 
15630
_ACEOF
 
15631
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15632
  $EGREP "yes" >/dev/null 2>&1; then
 
15633
  ipv6type=$i
 
15634
fi
 
15635
rm -f conftest*
 
15636
 
 
15637
                        ;;
 
15638
                kame)
 
15639
                                                cat >conftest.$ac_ext <<_ACEOF
 
15640
/* confdefs.h.  */
 
15641
_ACEOF
 
15642
cat confdefs.h >>conftest.$ac_ext
 
15643
cat >>conftest.$ac_ext <<_ACEOF
 
15644
/* end confdefs.h.  */
 
15645
 
 
15646
#include <netinet/in.h>
 
15647
#ifdef __KAME__
 
15648
yes
 
15649
#endif
 
15650
_ACEOF
 
15651
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15652
  $EGREP "yes" >/dev/null 2>&1; then
 
15653
  ipv6type=$i;
 
15654
                                ipv6lib=inet6
 
15655
                                ipv6libdir=/usr/local/v6/lib
 
15656
                                ipv6trylibc=yes
 
15657
fi
 
15658
rm -f conftest*
 
15659
 
 
15660
                        ;;
 
15661
                linux-glibc)
 
15662
                                                cat >conftest.$ac_ext <<_ACEOF
 
15663
/* confdefs.h.  */
 
15664
_ACEOF
 
15665
cat confdefs.h >>conftest.$ac_ext
 
15666
cat >>conftest.$ac_ext <<_ACEOF
 
15667
/* end confdefs.h.  */
 
15668
 
 
15669
#include <features.h>
 
15670
#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
 
15671
yes
 
15672
#endif
 
15673
_ACEOF
 
15674
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15675
  $EGREP "yes" >/dev/null 2>&1; then
 
15676
  ipv6type=$i;
 
15677
                                ipv6trylibc=yes
 
15678
fi
 
15679
rm -f conftest*
 
15680
 
 
15681
                        ;;
 
15682
                linux-inet6)
 
15683
                                                if test -d /usr/inet6; then
 
15684
                                ipv6type=$i
 
15685
                                ipv6lib=inet6
 
15686
                                ipv6libdir=/usr/inet6/lib
 
15687
                                BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
 
15688
                        fi
 
15689
                        ;;
 
15690
                solaris)
 
15691
                        if test -f /etc/netconfig; then
 
15692
                          if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
 
15693
                                ipv6type=$i
 
15694
                                ipv6trylibc=yes
 
15695
                          fi
 
15696
                        fi
 
15697
                        ;;
 
15698
                toshiba)
 
15699
                        cat >conftest.$ac_ext <<_ACEOF
 
15700
/* confdefs.h.  */
 
15701
_ACEOF
 
15702
cat confdefs.h >>conftest.$ac_ext
 
15703
cat >>conftest.$ac_ext <<_ACEOF
 
15704
/* end confdefs.h.  */
 
15705
 
 
15706
#include <sys/param.h>
 
15707
#ifdef _TOSHIBA_INET6
 
15708
yes
 
15709
#endif
 
15710
_ACEOF
 
15711
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15712
  $EGREP "yes" >/dev/null 2>&1; then
 
15713
  ipv6type=$i;
 
15714
                                ipv6lib=inet6;
 
15715
                                ipv6libdir=/usr/local/v6/lib
 
15716
fi
 
15717
rm -f conftest*
 
15718
 
 
15719
                        ;;
 
15720
                v6d)
 
15721
                        cat >conftest.$ac_ext <<_ACEOF
 
15722
/* confdefs.h.  */
 
15723
_ACEOF
 
15724
cat confdefs.h >>conftest.$ac_ext
 
15725
cat >>conftest.$ac_ext <<_ACEOF
 
15726
/* end confdefs.h.  */
 
15727
 
 
15728
#include </usr/local/v6/include/sys/v6config.h>
 
15729
#ifdef __V6D__
 
15730
yes
 
15731
#endif
 
15732
_ACEOF
 
15733
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15734
  $EGREP "yes" >/dev/null 2>&1; then
 
15735
  ipv6type=$i;
 
15736
                                ipv6lib=v6;
 
15737
                                ipv6libdir=/usr/local/v6/lib;
 
15738
                                BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
 
15739
fi
 
15740
rm -f conftest*
 
15741
 
 
15742
                        ;;
 
15743
                zeta)
 
15744
                        cat >conftest.$ac_ext <<_ACEOF
 
15745
/* confdefs.h.  */
 
15746
_ACEOF
 
15747
cat confdefs.h >>conftest.$ac_ext
 
15748
cat >>conftest.$ac_ext <<_ACEOF
 
15749
/* end confdefs.h.  */
 
15750
 
 
15751
#include <sys/param.h>
 
15752
#ifdef _ZETA_MINAMI_INET6
 
15753
yes
 
15754
#endif
 
15755
_ACEOF
 
15756
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15757
  $EGREP "yes" >/dev/null 2>&1; then
 
15758
  ipv6type=$i;
 
15759
                                ipv6lib=inet6;
 
15760
                                ipv6libdir=/usr/local/v6/lib
 
15761
fi
 
15762
rm -f conftest*
 
15763
 
 
15764
                        ;;
 
15765
                esac
 
15766
                if test "$ipv6type" != "unknown"; then
 
15767
                        break
 
15768
                fi
 
15769
        done
 
15770
        { echo "$as_me:$LINENO: result: $ipv6type" >&5
 
15771
echo "${ECHO_T}$ipv6type" >&6; }
 
15772
fi
 
15773
 
 
15774
if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
 
15775
        if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
 
15776
                LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
 
15777
                echo "using lib$ipv6lib"
 
15778
        else
 
15779
                if test $ipv6trylibc = "yes"; then
 
15780
                        echo "using libc"
 
15781
                else
 
15782
                        echo 'Fatal: no $ipv6lib library found.  cannot continue.'
 
15783
                        echo "You need to fetch lib$ipv6lib.a from appropriate"
 
15784
                        echo 'ipv6 kit and compile beforehand.'
 
15785
                        exit 1
 
15786
                fi
 
15787
        fi
 
15788
fi
 
15789
 
 
15790
{ echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
 
15791
echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
 
15792
cat >conftest.$ac_ext <<_ACEOF
 
15793
/* confdefs.h.  */
 
15794
_ACEOF
 
15795
cat confdefs.h >>conftest.$ac_ext
 
15796
cat >>conftest.$ac_ext <<_ACEOF
 
15797
/* end confdefs.h.  */
 
15798
#include <Carbon/Carbon.h>
 
15799
int
 
15800
main ()
 
15801
{
 
15802
FSIORefNum fRef = 0
 
15803
  ;
 
15804
  return 0;
 
15805
}
 
15806
_ACEOF
 
15807
rm -f conftest.$ac_objext
 
15808
if { (ac_try="$ac_compile"
 
15809
case "(($ac_try" in
 
15810
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15811
  *) ac_try_echo=$ac_try;;
 
15812
esac
 
15813
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15814
  (eval "$ac_compile") 2>conftest.er1
 
15815
  ac_status=$?
 
15816
  grep -v '^ *+' conftest.er1 >conftest.err
 
15817
  rm -f conftest.er1
 
15818
  cat conftest.err >&5
 
15819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15820
  (exit $ac_status); } && {
 
15821
         test -z "$ac_c_werror_flag" ||
 
15822
         test ! -s conftest.err
 
15823
       } && test -s conftest.$ac_objext; then
 
15824
 
 
15825
cat >>confdefs.h <<\_ACEOF
 
15826
#define HAVE_OSX105_SDK 1
 
15827
_ACEOF
 
15828
 
 
15829
  { echo "$as_me:$LINENO: result: yes" >&5
 
15830
echo "${ECHO_T}yes" >&6; }
 
15831
else
 
15832
  echo "$as_me: failed program was:" >&5
 
15833
sed 's/^/| /' conftest.$ac_ext >&5
 
15834
 
 
15835
        { echo "$as_me:$LINENO: result: no" >&5
 
15836
echo "${ECHO_T}no" >&6; }
 
15837
 
 
15838
fi
 
15839
 
 
15840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15841
 
 
15842
# Check for --with-doc-strings
 
15843
{ echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
 
15844
echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
 
15845
 
 
15846
# Check whether --with-doc-strings was given.
 
15847
if test "${with_doc_strings+set}" = set; then
 
15848
  withval=$with_doc_strings;
 
15849
fi
 
15850
 
 
15851
 
 
15852
if test -z "$with_doc_strings"
 
15853
then with_doc_strings="yes"
 
15854
fi
 
15855
if test "$with_doc_strings" != "no"
 
15856
then
 
15857
 
 
15858
cat >>confdefs.h <<\_ACEOF
 
15859
#define WITH_DOC_STRINGS 1
 
15860
_ACEOF
 
15861
 
 
15862
fi
 
15863
{ echo "$as_me:$LINENO: result: $with_doc_strings" >&5
 
15864
echo "${ECHO_T}$with_doc_strings" >&6; }
 
15865
 
 
15866
# Check for Python-specific malloc support
 
15867
{ echo "$as_me:$LINENO: checking for --with-tsc" >&5
 
15868
echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
 
15869
 
 
15870
# Check whether --with-tsc was given.
 
15871
if test "${with_tsc+set}" = set; then
 
15872
  withval=$with_tsc;
 
15873
if test "$withval" != no
 
15874
then
 
15875
 
 
15876
cat >>confdefs.h <<\_ACEOF
 
15877
#define WITH_TSC 1
 
15878
_ACEOF
 
15879
 
 
15880
    { echo "$as_me:$LINENO: result: yes" >&5
 
15881
echo "${ECHO_T}yes" >&6; }
 
15882
else { echo "$as_me:$LINENO: result: no" >&5
 
15883
echo "${ECHO_T}no" >&6; }
 
15884
fi
 
15885
else
 
15886
  { echo "$as_me:$LINENO: result: no" >&5
 
15887
echo "${ECHO_T}no" >&6; }
 
15888
fi
 
15889
 
 
15890
 
 
15891
# Check for Python-specific malloc support
 
15892
{ echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
 
15893
echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
 
15894
 
 
15895
# Check whether --with-pymalloc was given.
 
15896
if test "${with_pymalloc+set}" = set; then
 
15897
  withval=$with_pymalloc;
 
15898
fi
 
15899
 
 
15900
 
 
15901
if test -z "$with_pymalloc"
 
15902
then with_pymalloc="yes"
 
15903
fi
 
15904
if test "$with_pymalloc" != "no"
 
15905
then
 
15906
 
 
15907
cat >>confdefs.h <<\_ACEOF
 
15908
#define WITH_PYMALLOC 1
 
15909
_ACEOF
 
15910
 
 
15911
fi
 
15912
{ echo "$as_me:$LINENO: result: $with_pymalloc" >&5
 
15913
echo "${ECHO_T}$with_pymalloc" >&6; }
 
15914
 
 
15915
# Check for --with-wctype-functions
 
15916
{ echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
 
15917
echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
 
15918
 
 
15919
# Check whether --with-wctype-functions was given.
 
15920
if test "${with_wctype_functions+set}" = set; then
 
15921
  withval=$with_wctype_functions;
 
15922
if test "$withval" != no
 
15923
then
 
15924
 
 
15925
cat >>confdefs.h <<\_ACEOF
 
15926
#define WANT_WCTYPE_FUNCTIONS 1
 
15927
_ACEOF
 
15928
 
 
15929
  { echo "$as_me:$LINENO: result: yes" >&5
 
15930
echo "${ECHO_T}yes" >&6; }
 
15931
else { echo "$as_me:$LINENO: result: no" >&5
 
15932
echo "${ECHO_T}no" >&6; }
 
15933
fi
 
15934
else
 
15935
  { echo "$as_me:$LINENO: result: no" >&5
 
15936
echo "${ECHO_T}no" >&6; }
 
15937
fi
 
15938
 
 
15939
 
 
15940
# -I${DLINCLDIR} is added to the compile rule for importdl.o
 
15941
 
 
15942
DLINCLDIR=.
 
15943
 
 
15944
# the dlopen() function means we might want to use dynload_shlib.o. some
 
15945
# platforms, such as AIX, have dlopen(), but don't want to use it.
 
15946
 
 
15947
for ac_func in dlopen
 
15948
do
 
15949
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15950
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15951
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
15952
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15953
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15954
else
 
15955
  cat >conftest.$ac_ext <<_ACEOF
 
15956
/* confdefs.h.  */
 
15957
_ACEOF
 
15958
cat confdefs.h >>conftest.$ac_ext
 
15959
cat >>conftest.$ac_ext <<_ACEOF
 
15960
/* end confdefs.h.  */
 
15961
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15962
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15963
#define $ac_func innocuous_$ac_func
 
15964
 
 
15965
/* System header to define __stub macros and hopefully few prototypes,
 
15966
    which can conflict with char $ac_func (); below.
 
15967
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15968
    <limits.h> exists even on freestanding compilers.  */
 
15969
 
 
15970
#ifdef __STDC__
 
15971
# include <limits.h>
 
15972
#else
 
15973
# include <assert.h>
 
15974
#endif
 
15975
 
 
15976
#undef $ac_func
 
15977
 
 
15978
/* Override any GCC internal prototype to avoid an error.
 
15979
   Use char because int might match the return type of a GCC
 
15980
   builtin and then its argument prototype would still apply.  */
 
15981
#ifdef __cplusplus
 
15982
extern "C"
 
15983
#endif
 
15984
char $ac_func ();
 
15985
/* The GNU C library defines this for functions which it implements
 
15986
    to always fail with ENOSYS.  Some functions are actually named
 
15987
    something starting with __ and the normal name is an alias.  */
 
15988
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15989
choke me
 
15990
#endif
 
15991
 
 
15992
int
 
15993
main ()
 
15994
{
 
15995
return $ac_func ();
 
15996
  ;
 
15997
  return 0;
 
15998
}
 
15999
_ACEOF
 
16000
rm -f conftest.$ac_objext conftest$ac_exeext
 
16001
if { (ac_try="$ac_link"
 
16002
case "(($ac_try" in
 
16003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16004
  *) ac_try_echo=$ac_try;;
 
16005
esac
 
16006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16007
  (eval "$ac_link") 2>conftest.er1
 
16008
  ac_status=$?
 
16009
  grep -v '^ *+' conftest.er1 >conftest.err
 
16010
  rm -f conftest.er1
 
16011
  cat conftest.err >&5
 
16012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16013
  (exit $ac_status); } && {
 
16014
         test -z "$ac_c_werror_flag" ||
 
16015
         test ! -s conftest.err
 
16016
       } && test -s conftest$ac_exeext &&
 
16017
       $as_test_x conftest$ac_exeext; then
 
16018
  eval "$as_ac_var=yes"
 
16019
else
 
16020
  echo "$as_me: failed program was:" >&5
 
16021
sed 's/^/| /' conftest.$ac_ext >&5
 
16022
 
 
16023
        eval "$as_ac_var=no"
 
16024
fi
 
16025
 
 
16026
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16027
      conftest$ac_exeext conftest.$ac_ext
 
16028
fi
 
16029
ac_res=`eval echo '${'$as_ac_var'}'`
 
16030
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16031
echo "${ECHO_T}$ac_res" >&6; }
 
16032
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
16033
  cat >>confdefs.h <<_ACEOF
 
16034
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16035
_ACEOF
 
16036
 
 
16037
fi
 
16038
done
 
16039
 
 
16040
 
 
16041
# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
 
16042
# loading of modules.
 
16043
 
 
16044
{ echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
 
16045
echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
 
16046
if test -z "$DYNLOADFILE"
 
16047
then
 
16048
        case $ac_sys_system/$ac_sys_release in
 
16049
        AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
 
16050
        if test "$ac_cv_func_dlopen" = yes
 
16051
        then DYNLOADFILE="dynload_shlib.o"
 
16052
        else DYNLOADFILE="dynload_aix.o"
 
16053
        fi
 
16054
        ;;
 
16055
        BeOS*) DYNLOADFILE="dynload_beos.o";;
 
16056
        hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
 
16057
        # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
 
16058
        Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
 
16059
        atheos*) DYNLOADFILE="dynload_atheos.o";;
 
16060
        *)
 
16061
        # use dynload_shlib.c and dlopen() if we have it; otherwise stub
 
16062
        # out any dynamic loading
 
16063
        if test "$ac_cv_func_dlopen" = yes
 
16064
        then DYNLOADFILE="dynload_shlib.o"
 
16065
        else DYNLOADFILE="dynload_stub.o"
 
16066
        fi
 
16067
        ;;
 
16068
        esac
 
16069
fi
 
16070
{ echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
 
16071
echo "${ECHO_T}$DYNLOADFILE" >&6; }
 
16072
if test "$DYNLOADFILE" != "dynload_stub.o"
 
16073
then
 
16074
 
 
16075
cat >>confdefs.h <<\_ACEOF
 
16076
#define HAVE_DYNAMIC_LOADING 1
 
16077
_ACEOF
 
16078
 
 
16079
fi
 
16080
 
 
16081
# MACHDEP_OBJS can be set to platform-specific object files needed by Python
 
16082
 
 
16083
 
 
16084
{ echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
 
16085
echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
 
16086
if test -z "$MACHDEP_OBJS"
 
16087
then
 
16088
        MACHDEP_OBJS=$extra_machdep_objs
 
16089
else
 
16090
        MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
 
16091
fi
 
16092
{ echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
 
16093
echo "${ECHO_T}MACHDEP_OBJS" >&6; }
 
16094
 
 
16095
# checks for library functions
 
16096
 
 
16097
 
 
16098
 
 
16099
 
 
16100
 
 
16101
 
 
16102
 
 
16103
 
 
16104
 
 
16105
 
 
16106
 
 
16107
 
 
16108
 
 
16109
 
 
16110
 
 
16111
 
 
16112
 
 
16113
 
 
16114
 
 
16115
 
 
16116
 
 
16117
 
 
16118
 
 
16119
 
 
16120
 
 
16121
 
 
16122
 
 
16123
 
 
16124
 
 
16125
 
 
16126
 
 
16127
 
 
16128
 
 
16129
 
 
16130
 
 
16131
 
 
16132
 
 
16133
 
 
16134
 
 
16135
 
 
16136
 
 
16137
 
 
16138
 
 
16139
 
 
16140
 
 
16141
 
 
16142
 
 
16143
 
 
16144
 
 
16145
 
 
16146
 
 
16147
 
 
16148
 
 
16149
 
 
16150
 
 
16151
 
 
16152
 
 
16153
 
 
16154
 
 
16155
 
 
16156
 
 
16157
 
 
16158
 
 
16159
 
 
16160
 
 
16161
 
 
16162
 
 
16163
 
 
16164
 
 
16165
 
 
16166
 
 
16167
 
 
16168
 
 
16169
 
 
16170
 
 
16171
 
 
16172
 
 
16173
 
 
16174
 
 
16175
 
 
16176
 
 
16177
for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
 
16178
 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
 
16179
 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
 
16180
 getpriority getpwent getspnam getspent getsid getwd \
 
16181
 kill killpg lchmod lchown lstat mkfifo mknod mktime \
 
16182
 mremap nice pathconf pause plock poll pthread_init \
 
16183
 putenv readlink realpath \
 
16184
 select setegid seteuid setgid \
 
16185
 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
 
16186
 sigaction siginterrupt sigrelse strftime \
 
16187
 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
 
16188
 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
 
16189
do
 
16190
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16191
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
16192
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
16193
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
16194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16195
else
 
16196
  cat >conftest.$ac_ext <<_ACEOF
 
16197
/* confdefs.h.  */
 
16198
_ACEOF
 
16199
cat confdefs.h >>conftest.$ac_ext
 
16200
cat >>conftest.$ac_ext <<_ACEOF
 
16201
/* end confdefs.h.  */
 
16202
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16203
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16204
#define $ac_func innocuous_$ac_func
 
16205
 
 
16206
/* System header to define __stub macros and hopefully few prototypes,
 
16207
    which can conflict with char $ac_func (); below.
 
16208
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16209
    <limits.h> exists even on freestanding compilers.  */
 
16210
 
 
16211
#ifdef __STDC__
 
16212
# include <limits.h>
 
16213
#else
 
16214
# include <assert.h>
 
16215
#endif
 
16216
 
 
16217
#undef $ac_func
 
16218
 
 
16219
/* Override any GCC internal prototype to avoid an error.
 
16220
   Use char because int might match the return type of a GCC
 
16221
   builtin and then its argument prototype would still apply.  */
 
16222
#ifdef __cplusplus
 
16223
extern "C"
 
16224
#endif
 
16225
char $ac_func ();
 
16226
/* The GNU C library defines this for functions which it implements
 
16227
    to always fail with ENOSYS.  Some functions are actually named
 
16228
    something starting with __ and the normal name is an alias.  */
 
16229
#if defined __stub_$ac_func || defined __stub___$ac_func
 
16230
choke me
 
16231
#endif
 
16232
 
 
16233
int
 
16234
main ()
 
16235
{
 
16236
return $ac_func ();
 
16237
  ;
 
16238
  return 0;
 
16239
}
 
16240
_ACEOF
 
16241
rm -f conftest.$ac_objext conftest$ac_exeext
 
16242
if { (ac_try="$ac_link"
 
16243
case "(($ac_try" in
 
16244
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16245
  *) ac_try_echo=$ac_try;;
 
16246
esac
 
16247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16248
  (eval "$ac_link") 2>conftest.er1
 
16249
  ac_status=$?
 
16250
  grep -v '^ *+' conftest.er1 >conftest.err
 
16251
  rm -f conftest.er1
 
16252
  cat conftest.err >&5
 
16253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16254
  (exit $ac_status); } && {
 
16255
         test -z "$ac_c_werror_flag" ||
 
16256
         test ! -s conftest.err
 
16257
       } && test -s conftest$ac_exeext &&
 
16258
       $as_test_x conftest$ac_exeext; then
 
16259
  eval "$as_ac_var=yes"
 
16260
else
 
16261
  echo "$as_me: failed program was:" >&5
 
16262
sed 's/^/| /' conftest.$ac_ext >&5
 
16263
 
 
16264
        eval "$as_ac_var=no"
 
16265
fi
 
16266
 
 
16267
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16268
      conftest$ac_exeext conftest.$ac_ext
 
16269
fi
 
16270
ac_res=`eval echo '${'$as_ac_var'}'`
 
16271
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16272
echo "${ECHO_T}$ac_res" >&6; }
 
16273
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
16274
  cat >>confdefs.h <<_ACEOF
 
16275
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16276
_ACEOF
 
16277
 
 
16278
fi
 
16279
done
 
16280
 
 
16281
 
 
16282
# For some functions, having a definition is not sufficient, since
 
16283
# we want to take their address.
 
16284
{ echo "$as_me:$LINENO: checking for chroot" >&5
 
16285
echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
 
16286
cat >conftest.$ac_ext <<_ACEOF
 
16287
/* confdefs.h.  */
 
16288
_ACEOF
 
16289
cat confdefs.h >>conftest.$ac_ext
 
16290
cat >>conftest.$ac_ext <<_ACEOF
 
16291
/* end confdefs.h.  */
 
16292
#include <unistd.h>
 
16293
int
 
16294
main ()
 
16295
{
 
16296
void *x=chroot
 
16297
  ;
 
16298
  return 0;
 
16299
}
 
16300
_ACEOF
 
16301
rm -f conftest.$ac_objext
 
16302
if { (ac_try="$ac_compile"
 
16303
case "(($ac_try" in
 
16304
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16305
  *) ac_try_echo=$ac_try;;
 
16306
esac
 
16307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16308
  (eval "$ac_compile") 2>conftest.er1
 
16309
  ac_status=$?
 
16310
  grep -v '^ *+' conftest.er1 >conftest.err
 
16311
  rm -f conftest.er1
 
16312
  cat conftest.err >&5
 
16313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16314
  (exit $ac_status); } && {
 
16315
         test -z "$ac_c_werror_flag" ||
 
16316
         test ! -s conftest.err
 
16317
       } && test -s conftest.$ac_objext; then
 
16318
 
 
16319
cat >>confdefs.h <<\_ACEOF
 
16320
#define HAVE_CHROOT 1
 
16321
_ACEOF
 
16322
 
 
16323
  { echo "$as_me:$LINENO: result: yes" >&5
 
16324
echo "${ECHO_T}yes" >&6; }
 
16325
else
 
16326
  echo "$as_me: failed program was:" >&5
 
16327
sed 's/^/| /' conftest.$ac_ext >&5
 
16328
 
 
16329
        { echo "$as_me:$LINENO: result: no" >&5
 
16330
echo "${ECHO_T}no" >&6; }
 
16331
 
 
16332
fi
 
16333
 
 
16334
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16335
{ echo "$as_me:$LINENO: checking for link" >&5
 
16336
echo $ECHO_N "checking for link... $ECHO_C" >&6; }
 
16337
cat >conftest.$ac_ext <<_ACEOF
 
16338
/* confdefs.h.  */
 
16339
_ACEOF
 
16340
cat confdefs.h >>conftest.$ac_ext
 
16341
cat >>conftest.$ac_ext <<_ACEOF
 
16342
/* end confdefs.h.  */
 
16343
#include <unistd.h>
 
16344
int
 
16345
main ()
 
16346
{
 
16347
void *x=link
 
16348
  ;
 
16349
  return 0;
 
16350
}
 
16351
_ACEOF
 
16352
rm -f conftest.$ac_objext
 
16353
if { (ac_try="$ac_compile"
 
16354
case "(($ac_try" in
 
16355
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16356
  *) ac_try_echo=$ac_try;;
 
16357
esac
 
16358
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16359
  (eval "$ac_compile") 2>conftest.er1
 
16360
  ac_status=$?
 
16361
  grep -v '^ *+' conftest.er1 >conftest.err
 
16362
  rm -f conftest.er1
 
16363
  cat conftest.err >&5
 
16364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16365
  (exit $ac_status); } && {
 
16366
         test -z "$ac_c_werror_flag" ||
 
16367
         test ! -s conftest.err
 
16368
       } && test -s conftest.$ac_objext; then
 
16369
 
 
16370
cat >>confdefs.h <<\_ACEOF
 
16371
#define HAVE_LINK 1
 
16372
_ACEOF
 
16373
 
 
16374
  { echo "$as_me:$LINENO: result: yes" >&5
 
16375
echo "${ECHO_T}yes" >&6; }
 
16376
else
 
16377
  echo "$as_me: failed program was:" >&5
 
16378
sed 's/^/| /' conftest.$ac_ext >&5
 
16379
 
 
16380
        { echo "$as_me:$LINENO: result: no" >&5
 
16381
echo "${ECHO_T}no" >&6; }
 
16382
 
 
16383
fi
 
16384
 
 
16385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16386
{ echo "$as_me:$LINENO: checking for symlink" >&5
 
16387
echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
 
16388
cat >conftest.$ac_ext <<_ACEOF
 
16389
/* confdefs.h.  */
 
16390
_ACEOF
 
16391
cat confdefs.h >>conftest.$ac_ext
 
16392
cat >>conftest.$ac_ext <<_ACEOF
 
16393
/* end confdefs.h.  */
 
16394
#include <unistd.h>
 
16395
int
 
16396
main ()
 
16397
{
 
16398
void *x=symlink
 
16399
  ;
 
16400
  return 0;
 
16401
}
 
16402
_ACEOF
 
16403
rm -f conftest.$ac_objext
 
16404
if { (ac_try="$ac_compile"
 
16405
case "(($ac_try" in
 
16406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16407
  *) ac_try_echo=$ac_try;;
 
16408
esac
 
16409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16410
  (eval "$ac_compile") 2>conftest.er1
 
16411
  ac_status=$?
 
16412
  grep -v '^ *+' conftest.er1 >conftest.err
 
16413
  rm -f conftest.er1
 
16414
  cat conftest.err >&5
 
16415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16416
  (exit $ac_status); } && {
 
16417
         test -z "$ac_c_werror_flag" ||
 
16418
         test ! -s conftest.err
 
16419
       } && test -s conftest.$ac_objext; then
 
16420
 
 
16421
cat >>confdefs.h <<\_ACEOF
 
16422
#define HAVE_SYMLINK 1
 
16423
_ACEOF
 
16424
 
 
16425
  { echo "$as_me:$LINENO: result: yes" >&5
 
16426
echo "${ECHO_T}yes" >&6; }
 
16427
else
 
16428
  echo "$as_me: failed program was:" >&5
 
16429
sed 's/^/| /' conftest.$ac_ext >&5
 
16430
 
 
16431
        { echo "$as_me:$LINENO: result: no" >&5
 
16432
echo "${ECHO_T}no" >&6; }
 
16433
 
 
16434
fi
 
16435
 
 
16436
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16437
{ echo "$as_me:$LINENO: checking for fchdir" >&5
 
16438
echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
 
16439
cat >conftest.$ac_ext <<_ACEOF
 
16440
/* confdefs.h.  */
 
16441
_ACEOF
 
16442
cat confdefs.h >>conftest.$ac_ext
 
16443
cat >>conftest.$ac_ext <<_ACEOF
 
16444
/* end confdefs.h.  */
 
16445
#include <unistd.h>
 
16446
int
 
16447
main ()
 
16448
{
 
16449
void *x=fchdir
 
16450
  ;
 
16451
  return 0;
 
16452
}
 
16453
_ACEOF
 
16454
rm -f conftest.$ac_objext
 
16455
if { (ac_try="$ac_compile"
 
16456
case "(($ac_try" in
 
16457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16458
  *) ac_try_echo=$ac_try;;
 
16459
esac
 
16460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16461
  (eval "$ac_compile") 2>conftest.er1
 
16462
  ac_status=$?
 
16463
  grep -v '^ *+' conftest.er1 >conftest.err
 
16464
  rm -f conftest.er1
 
16465
  cat conftest.err >&5
 
16466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16467
  (exit $ac_status); } && {
 
16468
         test -z "$ac_c_werror_flag" ||
 
16469
         test ! -s conftest.err
 
16470
       } && test -s conftest.$ac_objext; then
 
16471
 
 
16472
cat >>confdefs.h <<\_ACEOF
 
16473
#define HAVE_FCHDIR 1
 
16474
_ACEOF
 
16475
 
 
16476
  { echo "$as_me:$LINENO: result: yes" >&5
 
16477
echo "${ECHO_T}yes" >&6; }
 
16478
else
 
16479
  echo "$as_me: failed program was:" >&5
 
16480
sed 's/^/| /' conftest.$ac_ext >&5
 
16481
 
 
16482
        { echo "$as_me:$LINENO: result: no" >&5
 
16483
echo "${ECHO_T}no" >&6; }
 
16484
 
 
16485
fi
 
16486
 
 
16487
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16488
{ echo "$as_me:$LINENO: checking for fsync" >&5
 
16489
echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
 
16490
cat >conftest.$ac_ext <<_ACEOF
 
16491
/* confdefs.h.  */
 
16492
_ACEOF
 
16493
cat confdefs.h >>conftest.$ac_ext
 
16494
cat >>conftest.$ac_ext <<_ACEOF
 
16495
/* end confdefs.h.  */
 
16496
#include <unistd.h>
 
16497
int
 
16498
main ()
 
16499
{
 
16500
void *x=fsync
 
16501
  ;
 
16502
  return 0;
 
16503
}
 
16504
_ACEOF
 
16505
rm -f conftest.$ac_objext
 
16506
if { (ac_try="$ac_compile"
 
16507
case "(($ac_try" in
 
16508
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16509
  *) ac_try_echo=$ac_try;;
 
16510
esac
 
16511
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16512
  (eval "$ac_compile") 2>conftest.er1
 
16513
  ac_status=$?
 
16514
  grep -v '^ *+' conftest.er1 >conftest.err
 
16515
  rm -f conftest.er1
 
16516
  cat conftest.err >&5
 
16517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16518
  (exit $ac_status); } && {
 
16519
         test -z "$ac_c_werror_flag" ||
 
16520
         test ! -s conftest.err
 
16521
       } && test -s conftest.$ac_objext; then
 
16522
 
 
16523
cat >>confdefs.h <<\_ACEOF
 
16524
#define HAVE_FSYNC 1
 
16525
_ACEOF
 
16526
 
 
16527
  { echo "$as_me:$LINENO: result: yes" >&5
 
16528
echo "${ECHO_T}yes" >&6; }
 
16529
else
 
16530
  echo "$as_me: failed program was:" >&5
 
16531
sed 's/^/| /' conftest.$ac_ext >&5
 
16532
 
 
16533
        { echo "$as_me:$LINENO: result: no" >&5
 
16534
echo "${ECHO_T}no" >&6; }
 
16535
 
 
16536
fi
 
16537
 
 
16538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16539
{ echo "$as_me:$LINENO: checking for fdatasync" >&5
 
16540
echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
 
16541
cat >conftest.$ac_ext <<_ACEOF
 
16542
/* confdefs.h.  */
 
16543
_ACEOF
 
16544
cat confdefs.h >>conftest.$ac_ext
 
16545
cat >>conftest.$ac_ext <<_ACEOF
 
16546
/* end confdefs.h.  */
 
16547
#include <unistd.h>
 
16548
int
 
16549
main ()
 
16550
{
 
16551
void *x=fdatasync
 
16552
  ;
 
16553
  return 0;
 
16554
}
 
16555
_ACEOF
 
16556
rm -f conftest.$ac_objext
 
16557
if { (ac_try="$ac_compile"
 
16558
case "(($ac_try" in
 
16559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16560
  *) ac_try_echo=$ac_try;;
 
16561
esac
 
16562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16563
  (eval "$ac_compile") 2>conftest.er1
 
16564
  ac_status=$?
 
16565
  grep -v '^ *+' conftest.er1 >conftest.err
 
16566
  rm -f conftest.er1
 
16567
  cat conftest.err >&5
 
16568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16569
  (exit $ac_status); } && {
 
16570
         test -z "$ac_c_werror_flag" ||
 
16571
         test ! -s conftest.err
 
16572
       } && test -s conftest.$ac_objext; then
 
16573
 
 
16574
cat >>confdefs.h <<\_ACEOF
 
16575
#define HAVE_FDATASYNC 1
 
16576
_ACEOF
 
16577
 
 
16578
  { echo "$as_me:$LINENO: result: yes" >&5
 
16579
echo "${ECHO_T}yes" >&6; }
 
16580
else
 
16581
  echo "$as_me: failed program was:" >&5
 
16582
sed 's/^/| /' conftest.$ac_ext >&5
 
16583
 
 
16584
        { echo "$as_me:$LINENO: result: no" >&5
 
16585
echo "${ECHO_T}no" >&6; }
 
16586
 
 
16587
fi
 
16588
 
 
16589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16590
{ echo "$as_me:$LINENO: checking for epoll" >&5
 
16591
echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
 
16592
cat >conftest.$ac_ext <<_ACEOF
 
16593
/* confdefs.h.  */
 
16594
_ACEOF
 
16595
cat confdefs.h >>conftest.$ac_ext
 
16596
cat >>conftest.$ac_ext <<_ACEOF
 
16597
/* end confdefs.h.  */
 
16598
#include <sys/epoll.h>
 
16599
int
 
16600
main ()
 
16601
{
 
16602
void *x=epoll_create
 
16603
  ;
 
16604
  return 0;
 
16605
}
 
16606
_ACEOF
 
16607
rm -f conftest.$ac_objext
 
16608
if { (ac_try="$ac_compile"
 
16609
case "(($ac_try" in
 
16610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16611
  *) ac_try_echo=$ac_try;;
 
16612
esac
 
16613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16614
  (eval "$ac_compile") 2>conftest.er1
 
16615
  ac_status=$?
 
16616
  grep -v '^ *+' conftest.er1 >conftest.err
 
16617
  rm -f conftest.er1
 
16618
  cat conftest.err >&5
 
16619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16620
  (exit $ac_status); } && {
 
16621
         test -z "$ac_c_werror_flag" ||
 
16622
         test ! -s conftest.err
 
16623
       } && test -s conftest.$ac_objext; then
 
16624
 
 
16625
cat >>confdefs.h <<\_ACEOF
 
16626
#define HAVE_EPOLL 1
 
16627
_ACEOF
 
16628
 
 
16629
  { echo "$as_me:$LINENO: result: yes" >&5
 
16630
echo "${ECHO_T}yes" >&6; }
 
16631
else
 
16632
  echo "$as_me: failed program was:" >&5
 
16633
sed 's/^/| /' conftest.$ac_ext >&5
 
16634
 
 
16635
        { echo "$as_me:$LINENO: result: no" >&5
 
16636
echo "${ECHO_T}no" >&6; }
 
16637
 
 
16638
fi
 
16639
 
 
16640
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16641
{ echo "$as_me:$LINENO: checking for kqueue" >&5
 
16642
echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
 
16643
cat >conftest.$ac_ext <<_ACEOF
 
16644
/* confdefs.h.  */
 
16645
_ACEOF
 
16646
cat confdefs.h >>conftest.$ac_ext
 
16647
cat >>conftest.$ac_ext <<_ACEOF
 
16648
/* end confdefs.h.  */
 
16649
 
 
16650
#include <sys/types.h>
 
16651
#include <sys/event.h>
 
16652
 
 
16653
int
 
16654
main ()
 
16655
{
 
16656
int x=kqueue()
 
16657
  ;
 
16658
  return 0;
 
16659
}
 
16660
_ACEOF
 
16661
rm -f conftest.$ac_objext
 
16662
if { (ac_try="$ac_compile"
 
16663
case "(($ac_try" in
 
16664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16665
  *) ac_try_echo=$ac_try;;
 
16666
esac
 
16667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16668
  (eval "$ac_compile") 2>conftest.er1
 
16669
  ac_status=$?
 
16670
  grep -v '^ *+' conftest.er1 >conftest.err
 
16671
  rm -f conftest.er1
 
16672
  cat conftest.err >&5
 
16673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16674
  (exit $ac_status); } && {
 
16675
         test -z "$ac_c_werror_flag" ||
 
16676
         test ! -s conftest.err
 
16677
       } && test -s conftest.$ac_objext; then
 
16678
 
 
16679
cat >>confdefs.h <<\_ACEOF
 
16680
#define HAVE_KQUEUE 1
 
16681
_ACEOF
 
16682
 
 
16683
  { echo "$as_me:$LINENO: result: yes" >&5
 
16684
echo "${ECHO_T}yes" >&6; }
 
16685
else
 
16686
  echo "$as_me: failed program was:" >&5
 
16687
sed 's/^/| /' conftest.$ac_ext >&5
 
16688
 
 
16689
        { echo "$as_me:$LINENO: result: no" >&5
 
16690
echo "${ECHO_T}no" >&6; }
 
16691
 
 
16692
fi
 
16693
 
 
16694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16695
# On some systems (eg. FreeBSD 5), we would find a definition of the
 
16696
# functions ctermid_r, setgroups in the library, but no prototype
 
16697
# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
 
16698
# address to avoid compiler warnings and potential miscompilations
 
16699
# because of the missing prototypes.
 
16700
 
 
16701
{ echo "$as_me:$LINENO: checking for ctermid_r" >&5
 
16702
echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
 
16703
cat >conftest.$ac_ext <<_ACEOF
 
16704
/* confdefs.h.  */
 
16705
_ACEOF
 
16706
cat confdefs.h >>conftest.$ac_ext
 
16707
cat >>conftest.$ac_ext <<_ACEOF
 
16708
/* end confdefs.h.  */
 
16709
 
 
16710
#include "confdefs.h"
 
16711
#include <stdio.h>
 
16712
 
 
16713
int
 
16714
main ()
 
16715
{
 
16716
void* p = ctermid_r
 
16717
  ;
 
16718
  return 0;
 
16719
}
 
16720
_ACEOF
 
16721
rm -f conftest.$ac_objext
 
16722
if { (ac_try="$ac_compile"
 
16723
case "(($ac_try" in
 
16724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16725
  *) ac_try_echo=$ac_try;;
 
16726
esac
 
16727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16728
  (eval "$ac_compile") 2>conftest.er1
 
16729
  ac_status=$?
 
16730
  grep -v '^ *+' conftest.er1 >conftest.err
 
16731
  rm -f conftest.er1
 
16732
  cat conftest.err >&5
 
16733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16734
  (exit $ac_status); } && {
 
16735
         test -z "$ac_c_werror_flag" ||
 
16736
         test ! -s conftest.err
 
16737
       } && test -s conftest.$ac_objext; then
 
16738
 
 
16739
cat >>confdefs.h <<\_ACEOF
 
16740
#define HAVE_CTERMID_R 1
 
16741
_ACEOF
 
16742
 
 
16743
  { echo "$as_me:$LINENO: result: yes" >&5
 
16744
echo "${ECHO_T}yes" >&6; }
 
16745
else
 
16746
  echo "$as_me: failed program was:" >&5
 
16747
sed 's/^/| /' conftest.$ac_ext >&5
 
16748
 
 
16749
        { echo "$as_me:$LINENO: result: no" >&5
 
16750
echo "${ECHO_T}no" >&6; }
 
16751
 
 
16752
fi
 
16753
 
 
16754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16755
 
 
16756
{ echo "$as_me:$LINENO: checking for flock" >&5
 
16757
echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
 
16758
cat >conftest.$ac_ext <<_ACEOF
 
16759
/* confdefs.h.  */
 
16760
_ACEOF
 
16761
cat confdefs.h >>conftest.$ac_ext
 
16762
cat >>conftest.$ac_ext <<_ACEOF
 
16763
/* end confdefs.h.  */
 
16764
 
 
16765
#include "confdefs.h"
 
16766
#include <sys/file.h>
 
16767
 
 
16768
int
 
16769
main ()
 
16770
{
 
16771
void* p = flock
 
16772
  ;
 
16773
  return 0;
 
16774
}
 
16775
_ACEOF
 
16776
rm -f conftest.$ac_objext
 
16777
if { (ac_try="$ac_compile"
 
16778
case "(($ac_try" in
 
16779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16780
  *) ac_try_echo=$ac_try;;
 
16781
esac
 
16782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16783
  (eval "$ac_compile") 2>conftest.er1
 
16784
  ac_status=$?
 
16785
  grep -v '^ *+' conftest.er1 >conftest.err
 
16786
  rm -f conftest.er1
 
16787
  cat conftest.err >&5
 
16788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16789
  (exit $ac_status); } && {
 
16790
         test -z "$ac_c_werror_flag" ||
 
16791
         test ! -s conftest.err
 
16792
       } && test -s conftest.$ac_objext; then
 
16793
 
 
16794
cat >>confdefs.h <<\_ACEOF
 
16795
#define HAVE_FLOCK 1
 
16796
_ACEOF
 
16797
 
 
16798
  { echo "$as_me:$LINENO: result: yes" >&5
 
16799
echo "${ECHO_T}yes" >&6; }
 
16800
else
 
16801
  echo "$as_me: failed program was:" >&5
 
16802
sed 's/^/| /' conftest.$ac_ext >&5
 
16803
 
 
16804
        { echo "$as_me:$LINENO: result: no" >&5
 
16805
echo "${ECHO_T}no" >&6; }
 
16806
 
 
16807
fi
 
16808
 
 
16809
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16810
 
 
16811
{ echo "$as_me:$LINENO: checking for getpagesize" >&5
 
16812
echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
 
16813
cat >conftest.$ac_ext <<_ACEOF
 
16814
/* confdefs.h.  */
 
16815
_ACEOF
 
16816
cat confdefs.h >>conftest.$ac_ext
 
16817
cat >>conftest.$ac_ext <<_ACEOF
 
16818
/* end confdefs.h.  */
 
16819
 
 
16820
#include "confdefs.h"
 
16821
#include <unistd.h>
 
16822
 
 
16823
int
 
16824
main ()
 
16825
{
 
16826
void* p = getpagesize
 
16827
  ;
 
16828
  return 0;
 
16829
}
 
16830
_ACEOF
 
16831
rm -f conftest.$ac_objext
 
16832
if { (ac_try="$ac_compile"
 
16833
case "(($ac_try" in
 
16834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16835
  *) ac_try_echo=$ac_try;;
 
16836
esac
 
16837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16838
  (eval "$ac_compile") 2>conftest.er1
 
16839
  ac_status=$?
 
16840
  grep -v '^ *+' conftest.er1 >conftest.err
 
16841
  rm -f conftest.er1
 
16842
  cat conftest.err >&5
 
16843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16844
  (exit $ac_status); } && {
 
16845
         test -z "$ac_c_werror_flag" ||
 
16846
         test ! -s conftest.err
 
16847
       } && test -s conftest.$ac_objext; then
 
16848
 
 
16849
cat >>confdefs.h <<\_ACEOF
 
16850
#define HAVE_GETPAGESIZE 1
 
16851
_ACEOF
 
16852
 
 
16853
  { echo "$as_me:$LINENO: result: yes" >&5
 
16854
echo "${ECHO_T}yes" >&6; }
 
16855
else
 
16856
  echo "$as_me: failed program was:" >&5
 
16857
sed 's/^/| /' conftest.$ac_ext >&5
 
16858
 
 
16859
        { echo "$as_me:$LINENO: result: no" >&5
 
16860
echo "${ECHO_T}no" >&6; }
 
16861
 
 
16862
fi
 
16863
 
 
16864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16865
 
 
16866
for ac_prog in true
 
16867
do
 
16868
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
16869
set dummy $ac_prog; ac_word=$2
 
16870
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16871
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
16872
if test "${ac_cv_prog_TRUE+set}" = set; then
 
16873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16874
else
 
16875
  if test -n "$TRUE"; then
 
16876
  ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
 
16877
else
 
16878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16879
for as_dir in $PATH
 
16880
do
 
16881
  IFS=$as_save_IFS
 
16882
  test -z "$as_dir" && as_dir=.
 
16883
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16884
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16885
    ac_cv_prog_TRUE="$ac_prog"
 
16886
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16887
    break 2
 
16888
  fi
 
16889
done
 
16890
done
 
16891
IFS=$as_save_IFS
 
16892
 
 
16893
fi
 
16894
fi
 
16895
TRUE=$ac_cv_prog_TRUE
 
16896
if test -n "$TRUE"; then
 
16897
  { echo "$as_me:$LINENO: result: $TRUE" >&5
 
16898
echo "${ECHO_T}$TRUE" >&6; }
 
16899
else
 
16900
  { echo "$as_me:$LINENO: result: no" >&5
 
16901
echo "${ECHO_T}no" >&6; }
 
16902
fi
 
16903
 
 
16904
 
 
16905
  test -n "$TRUE" && break
 
16906
done
 
16907
test -n "$TRUE" || TRUE="/bin/true"
 
16908
 
 
16909
 
 
16910
{ echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
 
16911
echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
 
16912
if test "${ac_cv_lib_c_inet_aton+set}" = set; then
 
16913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16914
else
 
16915
  ac_check_lib_save_LIBS=$LIBS
 
16916
LIBS="-lc  $LIBS"
 
16917
cat >conftest.$ac_ext <<_ACEOF
 
16918
/* confdefs.h.  */
 
16919
_ACEOF
 
16920
cat confdefs.h >>conftest.$ac_ext
 
16921
cat >>conftest.$ac_ext <<_ACEOF
 
16922
/* end confdefs.h.  */
 
16923
 
 
16924
/* Override any GCC internal prototype to avoid an error.
 
16925
   Use char because int might match the return type of a GCC
 
16926
   builtin and then its argument prototype would still apply.  */
 
16927
#ifdef __cplusplus
 
16928
extern "C"
 
16929
#endif
 
16930
char inet_aton ();
 
16931
int
 
16932
main ()
 
16933
{
 
16934
return inet_aton ();
 
16935
  ;
 
16936
  return 0;
 
16937
}
 
16938
_ACEOF
 
16939
rm -f conftest.$ac_objext conftest$ac_exeext
 
16940
if { (ac_try="$ac_link"
 
16941
case "(($ac_try" in
 
16942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16943
  *) ac_try_echo=$ac_try;;
 
16944
esac
 
16945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16946
  (eval "$ac_link") 2>conftest.er1
 
16947
  ac_status=$?
 
16948
  grep -v '^ *+' conftest.er1 >conftest.err
 
16949
  rm -f conftest.er1
 
16950
  cat conftest.err >&5
 
16951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16952
  (exit $ac_status); } && {
 
16953
         test -z "$ac_c_werror_flag" ||
 
16954
         test ! -s conftest.err
 
16955
       } && test -s conftest$ac_exeext &&
 
16956
       $as_test_x conftest$ac_exeext; then
 
16957
  ac_cv_lib_c_inet_aton=yes
 
16958
else
 
16959
  echo "$as_me: failed program was:" >&5
 
16960
sed 's/^/| /' conftest.$ac_ext >&5
 
16961
 
 
16962
        ac_cv_lib_c_inet_aton=no
 
16963
fi
 
16964
 
 
16965
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16966
      conftest$ac_exeext conftest.$ac_ext
 
16967
LIBS=$ac_check_lib_save_LIBS
 
16968
fi
 
16969
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
 
16970
echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
 
16971
if test $ac_cv_lib_c_inet_aton = yes; then
 
16972
  $ac_cv_prog_TRUE
 
16973
else
 
16974
 
 
16975
{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
 
16976
echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
 
16977
if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
 
16978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16979
else
 
16980
  ac_check_lib_save_LIBS=$LIBS
 
16981
LIBS="-lresolv  $LIBS"
 
16982
cat >conftest.$ac_ext <<_ACEOF
 
16983
/* confdefs.h.  */
 
16984
_ACEOF
 
16985
cat confdefs.h >>conftest.$ac_ext
 
16986
cat >>conftest.$ac_ext <<_ACEOF
 
16987
/* end confdefs.h.  */
 
16988
 
 
16989
/* Override any GCC internal prototype to avoid an error.
 
16990
   Use char because int might match the return type of a GCC
 
16991
   builtin and then its argument prototype would still apply.  */
 
16992
#ifdef __cplusplus
 
16993
extern "C"
 
16994
#endif
 
16995
char inet_aton ();
 
16996
int
 
16997
main ()
 
16998
{
 
16999
return inet_aton ();
 
17000
  ;
 
17001
  return 0;
 
17002
}
 
17003
_ACEOF
 
17004
rm -f conftest.$ac_objext conftest$ac_exeext
 
17005
if { (ac_try="$ac_link"
 
17006
case "(($ac_try" in
 
17007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17008
  *) ac_try_echo=$ac_try;;
 
17009
esac
 
17010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17011
  (eval "$ac_link") 2>conftest.er1
 
17012
  ac_status=$?
 
17013
  grep -v '^ *+' conftest.er1 >conftest.err
 
17014
  rm -f conftest.er1
 
17015
  cat conftest.err >&5
 
17016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17017
  (exit $ac_status); } && {
 
17018
         test -z "$ac_c_werror_flag" ||
 
17019
         test ! -s conftest.err
 
17020
       } && test -s conftest$ac_exeext &&
 
17021
       $as_test_x conftest$ac_exeext; then
 
17022
  ac_cv_lib_resolv_inet_aton=yes
 
17023
else
 
17024
  echo "$as_me: failed program was:" >&5
 
17025
sed 's/^/| /' conftest.$ac_ext >&5
 
17026
 
 
17027
        ac_cv_lib_resolv_inet_aton=no
 
17028
fi
 
17029
 
 
17030
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17031
      conftest$ac_exeext conftest.$ac_ext
 
17032
LIBS=$ac_check_lib_save_LIBS
 
17033
fi
 
17034
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
 
17035
echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
 
17036
if test $ac_cv_lib_resolv_inet_aton = yes; then
 
17037
  cat >>confdefs.h <<_ACEOF
 
17038
#define HAVE_LIBRESOLV 1
 
17039
_ACEOF
 
17040
 
 
17041
  LIBS="-lresolv $LIBS"
 
17042
 
 
17043
fi
 
17044
 
 
17045
 
 
17046
fi
 
17047
 
 
17048
 
 
17049
# On Tru64, chflags seems to be present, but calling it will
 
17050
# exit Python
 
17051
{ echo "$as_me:$LINENO: checking for chflags" >&5
 
17052
echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
 
17053
if test "$cross_compiling" = yes; then
 
17054
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
17055
See \`config.log' for more details." >&5
 
17056
echo "$as_me: error: cannot run test program while cross compiling
 
17057
See \`config.log' for more details." >&2;}
 
17058
   { (exit 1); exit 1; }; }
 
17059
else
 
17060
  cat >conftest.$ac_ext <<_ACEOF
 
17061
/* confdefs.h.  */
 
17062
_ACEOF
 
17063
cat confdefs.h >>conftest.$ac_ext
 
17064
cat >>conftest.$ac_ext <<_ACEOF
 
17065
/* end confdefs.h.  */
 
17066
 
 
17067
#include <sys/stat.h>
 
17068
#include <unistd.h>
 
17069
int main(int argc, char*argv[])
 
17070
{
 
17071
  if(chflags(argv[0], 0) != 0)
 
17072
    return 1;
 
17073
  return 0;
 
17074
}
 
17075
 
 
17076
_ACEOF
 
17077
rm -f conftest$ac_exeext
 
17078
if { (ac_try="$ac_link"
 
17079
case "(($ac_try" in
 
17080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17081
  *) ac_try_echo=$ac_try;;
 
17082
esac
 
17083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17084
  (eval "$ac_link") 2>&5
 
17085
  ac_status=$?
 
17086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17087
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17088
  { (case "(($ac_try" in
 
17089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17090
  *) ac_try_echo=$ac_try;;
 
17091
esac
 
17092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17093
  (eval "$ac_try") 2>&5
 
17094
  ac_status=$?
 
17095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17096
  (exit $ac_status); }; }; then
 
17097
 
 
17098
cat >>confdefs.h <<\_ACEOF
 
17099
#define HAVE_CHFLAGS 1
 
17100
_ACEOF
 
17101
 
 
17102
  { echo "$as_me:$LINENO: result: yes" >&5
 
17103
echo "${ECHO_T}yes" >&6; }
 
17104
else
 
17105
  echo "$as_me: program exited with status $ac_status" >&5
 
17106
echo "$as_me: failed program was:" >&5
 
17107
sed 's/^/| /' conftest.$ac_ext >&5
 
17108
 
 
17109
( exit $ac_status )
 
17110
{ echo "$as_me:$LINENO: result: no" >&5
 
17111
echo "${ECHO_T}no" >&6; }
 
17112
 
 
17113
fi
 
17114
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17115
fi
 
17116
 
 
17117
 
 
17118
 
 
17119
{ echo "$as_me:$LINENO: checking for lchflags" >&5
 
17120
echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
 
17121
if test "$cross_compiling" = yes; then
 
17122
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
17123
See \`config.log' for more details." >&5
 
17124
echo "$as_me: error: cannot run test program while cross compiling
 
17125
See \`config.log' for more details." >&2;}
 
17126
   { (exit 1); exit 1; }; }
 
17127
else
 
17128
  cat >conftest.$ac_ext <<_ACEOF
 
17129
/* confdefs.h.  */
 
17130
_ACEOF
 
17131
cat confdefs.h >>conftest.$ac_ext
 
17132
cat >>conftest.$ac_ext <<_ACEOF
 
17133
/* end confdefs.h.  */
 
17134
 
 
17135
#include <sys/stat.h>
 
17136
#include <unistd.h>
 
17137
int main(int argc, char*argv[])
 
17138
{
 
17139
  if(lchflags(argv[0], 0) != 0)
 
17140
    return 1;
 
17141
  return 0;
 
17142
}
 
17143
 
 
17144
_ACEOF
 
17145
rm -f conftest$ac_exeext
 
17146
if { (ac_try="$ac_link"
 
17147
case "(($ac_try" in
 
17148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17149
  *) ac_try_echo=$ac_try;;
 
17150
esac
 
17151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17152
  (eval "$ac_link") 2>&5
 
17153
  ac_status=$?
 
17154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17155
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17156
  { (case "(($ac_try" in
 
17157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17158
  *) ac_try_echo=$ac_try;;
 
17159
esac
 
17160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17161
  (eval "$ac_try") 2>&5
 
17162
  ac_status=$?
 
17163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17164
  (exit $ac_status); }; }; then
 
17165
 
 
17166
cat >>confdefs.h <<\_ACEOF
 
17167
#define HAVE_LCHFLAGS 1
 
17168
_ACEOF
 
17169
 
 
17170
  { echo "$as_me:$LINENO: result: yes" >&5
 
17171
echo "${ECHO_T}yes" >&6; }
 
17172
else
 
17173
  echo "$as_me: program exited with status $ac_status" >&5
 
17174
echo "$as_me: failed program was:" >&5
 
17175
sed 's/^/| /' conftest.$ac_ext >&5
 
17176
 
 
17177
( exit $ac_status )
 
17178
{ echo "$as_me:$LINENO: result: no" >&5
 
17179
echo "${ECHO_T}no" >&6; }
 
17180
 
 
17181
fi
 
17182
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17183
fi
 
17184
 
 
17185
 
 
17186
 
 
17187
case $ac_sys_system/$ac_sys_release in
 
17188
Darwin/*)
 
17189
        _CUR_CFLAGS="${CFLAGS}"
 
17190
        _CUR_LDFLAGS="${LDFLAGS}"
 
17191
        CFLAGS="${CFLAGS} -Wl,-search_paths_first"
 
17192
        LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
 
17193
        ;;
 
17194
esac
 
17195
 
 
17196
{ echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
 
17197
echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
 
17198
if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
 
17199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17200
else
 
17201
  ac_check_lib_save_LIBS=$LIBS
 
17202
LIBS="-lz  $LIBS"
 
17203
cat >conftest.$ac_ext <<_ACEOF
 
17204
/* confdefs.h.  */
 
17205
_ACEOF
 
17206
cat confdefs.h >>conftest.$ac_ext
 
17207
cat >>conftest.$ac_ext <<_ACEOF
 
17208
/* end confdefs.h.  */
 
17209
 
 
17210
/* Override any GCC internal prototype to avoid an error.
 
17211
   Use char because int might match the return type of a GCC
 
17212
   builtin and then its argument prototype would still apply.  */
 
17213
#ifdef __cplusplus
 
17214
extern "C"
 
17215
#endif
 
17216
char inflateCopy ();
 
17217
int
 
17218
main ()
 
17219
{
 
17220
return inflateCopy ();
 
17221
  ;
 
17222
  return 0;
 
17223
}
 
17224
_ACEOF
 
17225
rm -f conftest.$ac_objext conftest$ac_exeext
 
17226
if { (ac_try="$ac_link"
 
17227
case "(($ac_try" in
 
17228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17229
  *) ac_try_echo=$ac_try;;
 
17230
esac
 
17231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17232
  (eval "$ac_link") 2>conftest.er1
 
17233
  ac_status=$?
 
17234
  grep -v '^ *+' conftest.er1 >conftest.err
 
17235
  rm -f conftest.er1
 
17236
  cat conftest.err >&5
 
17237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17238
  (exit $ac_status); } && {
 
17239
         test -z "$ac_c_werror_flag" ||
 
17240
         test ! -s conftest.err
 
17241
       } && test -s conftest$ac_exeext &&
 
17242
       $as_test_x conftest$ac_exeext; then
 
17243
  ac_cv_lib_z_inflateCopy=yes
 
17244
else
 
17245
  echo "$as_me: failed program was:" >&5
 
17246
sed 's/^/| /' conftest.$ac_ext >&5
 
17247
 
 
17248
        ac_cv_lib_z_inflateCopy=no
 
17249
fi
 
17250
 
 
17251
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17252
      conftest$ac_exeext conftest.$ac_ext
 
17253
LIBS=$ac_check_lib_save_LIBS
 
17254
fi
 
17255
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
 
17256
echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
 
17257
if test $ac_cv_lib_z_inflateCopy = yes; then
 
17258
 
 
17259
cat >>confdefs.h <<\_ACEOF
 
17260
#define HAVE_ZLIB_COPY 1
 
17261
_ACEOF
 
17262
 
 
17263
fi
 
17264
 
 
17265
 
 
17266
case $ac_sys_system/$ac_sys_release in
 
17267
Darwin/*)
 
17268
        CFLAGS="${_CUR_CFLAGS}"
 
17269
        LDFLAGS="${_CUR_LDFLAGS}"
 
17270
        ;;
 
17271
esac
 
17272
 
 
17273
{ echo "$as_me:$LINENO: checking for hstrerror" >&5
 
17274
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
 
17275
cat >conftest.$ac_ext <<_ACEOF
 
17276
/* confdefs.h.  */
 
17277
_ACEOF
 
17278
cat confdefs.h >>conftest.$ac_ext
 
17279
cat >>conftest.$ac_ext <<_ACEOF
 
17280
/* end confdefs.h.  */
 
17281
 
 
17282
#include "confdefs.h"
 
17283
#include <netdb.h>
 
17284
 
 
17285
int
 
17286
main ()
 
17287
{
 
17288
void* p = hstrerror; hstrerror(0)
 
17289
  ;
 
17290
  return 0;
 
17291
}
 
17292
_ACEOF
 
17293
rm -f conftest.$ac_objext conftest$ac_exeext
 
17294
if { (ac_try="$ac_link"
 
17295
case "(($ac_try" in
 
17296
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17297
  *) ac_try_echo=$ac_try;;
 
17298
esac
 
17299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17300
  (eval "$ac_link") 2>conftest.er1
 
17301
  ac_status=$?
 
17302
  grep -v '^ *+' conftest.er1 >conftest.err
 
17303
  rm -f conftest.er1
 
17304
  cat conftest.err >&5
 
17305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17306
  (exit $ac_status); } && {
 
17307
         test -z "$ac_c_werror_flag" ||
 
17308
         test ! -s conftest.err
 
17309
       } && test -s conftest$ac_exeext &&
 
17310
       $as_test_x conftest$ac_exeext; then
 
17311
 
 
17312
cat >>confdefs.h <<\_ACEOF
 
17313
#define HAVE_HSTRERROR 1
 
17314
_ACEOF
 
17315
 
 
17316
  { echo "$as_me:$LINENO: result: yes" >&5
 
17317
echo "${ECHO_T}yes" >&6; }
 
17318
else
 
17319
  echo "$as_me: failed program was:" >&5
 
17320
sed 's/^/| /' conftest.$ac_ext >&5
 
17321
 
 
17322
        { echo "$as_me:$LINENO: result: no" >&5
 
17323
echo "${ECHO_T}no" >&6; }
 
17324
 
 
17325
fi
 
17326
 
 
17327
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17328
      conftest$ac_exeext conftest.$ac_ext
 
17329
 
 
17330
{ echo "$as_me:$LINENO: checking for inet_aton" >&5
 
17331
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
 
17332
cat >conftest.$ac_ext <<_ACEOF
 
17333
/* confdefs.h.  */
 
17334
_ACEOF
 
17335
cat confdefs.h >>conftest.$ac_ext
 
17336
cat >>conftest.$ac_ext <<_ACEOF
 
17337
/* end confdefs.h.  */
 
17338
 
 
17339
#include "confdefs.h"
 
17340
#include <sys/types.h>
 
17341
#include <sys/socket.h>
 
17342
#include <netinet/in.h>
 
17343
#include <arpa/inet.h>
 
17344
 
 
17345
int
 
17346
main ()
 
17347
{
 
17348
void* p = inet_aton;inet_aton(0,0)
 
17349
  ;
 
17350
  return 0;
 
17351
}
 
17352
_ACEOF
 
17353
rm -f conftest.$ac_objext conftest$ac_exeext
 
17354
if { (ac_try="$ac_link"
 
17355
case "(($ac_try" in
 
17356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17357
  *) ac_try_echo=$ac_try;;
 
17358
esac
 
17359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17360
  (eval "$ac_link") 2>conftest.er1
 
17361
  ac_status=$?
 
17362
  grep -v '^ *+' conftest.er1 >conftest.err
 
17363
  rm -f conftest.er1
 
17364
  cat conftest.err >&5
 
17365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17366
  (exit $ac_status); } && {
 
17367
         test -z "$ac_c_werror_flag" ||
 
17368
         test ! -s conftest.err
 
17369
       } && test -s conftest$ac_exeext &&
 
17370
       $as_test_x conftest$ac_exeext; then
 
17371
 
 
17372
cat >>confdefs.h <<\_ACEOF
 
17373
#define HAVE_INET_ATON 1
 
17374
_ACEOF
 
17375
 
 
17376
  { echo "$as_me:$LINENO: result: yes" >&5
 
17377
echo "${ECHO_T}yes" >&6; }
 
17378
else
 
17379
  echo "$as_me: failed program was:" >&5
 
17380
sed 's/^/| /' conftest.$ac_ext >&5
 
17381
 
 
17382
        { echo "$as_me:$LINENO: result: no" >&5
 
17383
echo "${ECHO_T}no" >&6; }
 
17384
 
 
17385
fi
 
17386
 
 
17387
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17388
      conftest$ac_exeext conftest.$ac_ext
 
17389
 
 
17390
{ echo "$as_me:$LINENO: checking for inet_pton" >&5
 
17391
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
 
17392
cat >conftest.$ac_ext <<_ACEOF
 
17393
/* confdefs.h.  */
 
17394
_ACEOF
 
17395
cat confdefs.h >>conftest.$ac_ext
 
17396
cat >>conftest.$ac_ext <<_ACEOF
 
17397
/* end confdefs.h.  */
 
17398
 
 
17399
#include "confdefs.h"
 
17400
#include <sys/types.h>
 
17401
#include <sys/socket.h>
 
17402
#include <netinet/in.h>
 
17403
#include <arpa/inet.h>
 
17404
 
 
17405
int
 
17406
main ()
 
17407
{
 
17408
void* p = inet_pton
 
17409
  ;
 
17410
  return 0;
 
17411
}
 
17412
_ACEOF
 
17413
rm -f conftest.$ac_objext
 
17414
if { (ac_try="$ac_compile"
 
17415
case "(($ac_try" in
 
17416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17417
  *) ac_try_echo=$ac_try;;
 
17418
esac
 
17419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17420
  (eval "$ac_compile") 2>conftest.er1
 
17421
  ac_status=$?
 
17422
  grep -v '^ *+' conftest.er1 >conftest.err
 
17423
  rm -f conftest.er1
 
17424
  cat conftest.err >&5
 
17425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17426
  (exit $ac_status); } && {
 
17427
         test -z "$ac_c_werror_flag" ||
 
17428
         test ! -s conftest.err
 
17429
       } && test -s conftest.$ac_objext; then
 
17430
 
 
17431
cat >>confdefs.h <<\_ACEOF
 
17432
#define HAVE_INET_PTON 1
 
17433
_ACEOF
 
17434
 
 
17435
  { echo "$as_me:$LINENO: result: yes" >&5
 
17436
echo "${ECHO_T}yes" >&6; }
 
17437
else
 
17438
  echo "$as_me: failed program was:" >&5
 
17439
sed 's/^/| /' conftest.$ac_ext >&5
 
17440
 
 
17441
        { echo "$as_me:$LINENO: result: no" >&5
 
17442
echo "${ECHO_T}no" >&6; }
 
17443
 
 
17444
fi
 
17445
 
 
17446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17447
 
 
17448
# On some systems, setgroups is in unistd.h, on others, in grp.h
 
17449
{ echo "$as_me:$LINENO: checking for setgroups" >&5
 
17450
echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
 
17451
cat >conftest.$ac_ext <<_ACEOF
 
17452
/* confdefs.h.  */
 
17453
_ACEOF
 
17454
cat confdefs.h >>conftest.$ac_ext
 
17455
cat >>conftest.$ac_ext <<_ACEOF
 
17456
/* end confdefs.h.  */
 
17457
 
 
17458
#include "confdefs.h"
 
17459
#include <unistd.h>
 
17460
#ifdef HAVE_GRP_H
 
17461
#include <grp.h>
 
17462
#endif
 
17463
 
 
17464
int
 
17465
main ()
 
17466
{
 
17467
void* p = setgroups
 
17468
  ;
 
17469
  return 0;
 
17470
}
 
17471
_ACEOF
 
17472
rm -f conftest.$ac_objext
 
17473
if { (ac_try="$ac_compile"
 
17474
case "(($ac_try" in
 
17475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17476
  *) ac_try_echo=$ac_try;;
 
17477
esac
 
17478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17479
  (eval "$ac_compile") 2>conftest.er1
 
17480
  ac_status=$?
 
17481
  grep -v '^ *+' conftest.er1 >conftest.err
 
17482
  rm -f conftest.er1
 
17483
  cat conftest.err >&5
 
17484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17485
  (exit $ac_status); } && {
 
17486
         test -z "$ac_c_werror_flag" ||
 
17487
         test ! -s conftest.err
 
17488
       } && test -s conftest.$ac_objext; then
 
17489
 
 
17490
cat >>confdefs.h <<\_ACEOF
 
17491
#define HAVE_SETGROUPS 1
 
17492
_ACEOF
 
17493
 
 
17494
  { echo "$as_me:$LINENO: result: yes" >&5
 
17495
echo "${ECHO_T}yes" >&6; }
 
17496
else
 
17497
  echo "$as_me: failed program was:" >&5
 
17498
sed 's/^/| /' conftest.$ac_ext >&5
 
17499
 
 
17500
        { echo "$as_me:$LINENO: result: no" >&5
 
17501
echo "${ECHO_T}no" >&6; }
 
17502
 
 
17503
fi
 
17504
 
 
17505
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17506
 
 
17507
# check for openpty and forkpty
 
17508
 
 
17509
 
 
17510
for ac_func in openpty
 
17511
do
 
17512
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17513
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17514
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17515
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17517
else
 
17518
  cat >conftest.$ac_ext <<_ACEOF
 
17519
/* confdefs.h.  */
 
17520
_ACEOF
 
17521
cat confdefs.h >>conftest.$ac_ext
 
17522
cat >>conftest.$ac_ext <<_ACEOF
 
17523
/* end confdefs.h.  */
 
17524
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17525
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17526
#define $ac_func innocuous_$ac_func
 
17527
 
 
17528
/* System header to define __stub macros and hopefully few prototypes,
 
17529
    which can conflict with char $ac_func (); below.
 
17530
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17531
    <limits.h> exists even on freestanding compilers.  */
 
17532
 
 
17533
#ifdef __STDC__
 
17534
# include <limits.h>
 
17535
#else
 
17536
# include <assert.h>
 
17537
#endif
 
17538
 
 
17539
#undef $ac_func
 
17540
 
 
17541
/* Override any GCC internal prototype to avoid an error.
 
17542
   Use char because int might match the return type of a GCC
 
17543
   builtin and then its argument prototype would still apply.  */
 
17544
#ifdef __cplusplus
 
17545
extern "C"
 
17546
#endif
 
17547
char $ac_func ();
 
17548
/* The GNU C library defines this for functions which it implements
 
17549
    to always fail with ENOSYS.  Some functions are actually named
 
17550
    something starting with __ and the normal name is an alias.  */
 
17551
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17552
choke me
 
17553
#endif
 
17554
 
 
17555
int
 
17556
main ()
 
17557
{
 
17558
return $ac_func ();
 
17559
  ;
 
17560
  return 0;
 
17561
}
 
17562
_ACEOF
 
17563
rm -f conftest.$ac_objext conftest$ac_exeext
 
17564
if { (ac_try="$ac_link"
 
17565
case "(($ac_try" in
 
17566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17567
  *) ac_try_echo=$ac_try;;
 
17568
esac
 
17569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17570
  (eval "$ac_link") 2>conftest.er1
 
17571
  ac_status=$?
 
17572
  grep -v '^ *+' conftest.er1 >conftest.err
 
17573
  rm -f conftest.er1
 
17574
  cat conftest.err >&5
 
17575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17576
  (exit $ac_status); } && {
 
17577
         test -z "$ac_c_werror_flag" ||
 
17578
         test ! -s conftest.err
 
17579
       } && test -s conftest$ac_exeext &&
 
17580
       $as_test_x conftest$ac_exeext; then
 
17581
  eval "$as_ac_var=yes"
 
17582
else
 
17583
  echo "$as_me: failed program was:" >&5
 
17584
sed 's/^/| /' conftest.$ac_ext >&5
 
17585
 
 
17586
        eval "$as_ac_var=no"
 
17587
fi
 
17588
 
 
17589
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17590
      conftest$ac_exeext conftest.$ac_ext
 
17591
fi
 
17592
ac_res=`eval echo '${'$as_ac_var'}'`
 
17593
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17594
echo "${ECHO_T}$ac_res" >&6; }
 
17595
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17596
  cat >>confdefs.h <<_ACEOF
 
17597
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17598
_ACEOF
 
17599
 
 
17600
else
 
17601
  { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
 
17602
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
 
17603
if test "${ac_cv_lib_util_openpty+set}" = set; then
 
17604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17605
else
 
17606
  ac_check_lib_save_LIBS=$LIBS
 
17607
LIBS="-lutil  $LIBS"
 
17608
cat >conftest.$ac_ext <<_ACEOF
 
17609
/* confdefs.h.  */
 
17610
_ACEOF
 
17611
cat confdefs.h >>conftest.$ac_ext
 
17612
cat >>conftest.$ac_ext <<_ACEOF
 
17613
/* end confdefs.h.  */
 
17614
 
 
17615
/* Override any GCC internal prototype to avoid an error.
 
17616
   Use char because int might match the return type of a GCC
 
17617
   builtin and then its argument prototype would still apply.  */
 
17618
#ifdef __cplusplus
 
17619
extern "C"
 
17620
#endif
 
17621
char openpty ();
 
17622
int
 
17623
main ()
 
17624
{
 
17625
return openpty ();
 
17626
  ;
 
17627
  return 0;
 
17628
}
 
17629
_ACEOF
 
17630
rm -f conftest.$ac_objext conftest$ac_exeext
 
17631
if { (ac_try="$ac_link"
 
17632
case "(($ac_try" in
 
17633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17634
  *) ac_try_echo=$ac_try;;
 
17635
esac
 
17636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17637
  (eval "$ac_link") 2>conftest.er1
 
17638
  ac_status=$?
 
17639
  grep -v '^ *+' conftest.er1 >conftest.err
 
17640
  rm -f conftest.er1
 
17641
  cat conftest.err >&5
 
17642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17643
  (exit $ac_status); } && {
 
17644
         test -z "$ac_c_werror_flag" ||
 
17645
         test ! -s conftest.err
 
17646
       } && test -s conftest$ac_exeext &&
 
17647
       $as_test_x conftest$ac_exeext; then
 
17648
  ac_cv_lib_util_openpty=yes
 
17649
else
 
17650
  echo "$as_me: failed program was:" >&5
 
17651
sed 's/^/| /' conftest.$ac_ext >&5
 
17652
 
 
17653
        ac_cv_lib_util_openpty=no
 
17654
fi
 
17655
 
 
17656
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17657
      conftest$ac_exeext conftest.$ac_ext
 
17658
LIBS=$ac_check_lib_save_LIBS
 
17659
fi
 
17660
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
 
17661
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
 
17662
if test $ac_cv_lib_util_openpty = yes; then
 
17663
  cat >>confdefs.h <<\_ACEOF
 
17664
#define HAVE_OPENPTY 1
 
17665
_ACEOF
 
17666
 LIBS="$LIBS -lutil"
 
17667
else
 
17668
  { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
 
17669
echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
 
17670
if test "${ac_cv_lib_bsd_openpty+set}" = set; then
 
17671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17672
else
 
17673
  ac_check_lib_save_LIBS=$LIBS
 
17674
LIBS="-lbsd  $LIBS"
 
17675
cat >conftest.$ac_ext <<_ACEOF
 
17676
/* confdefs.h.  */
 
17677
_ACEOF
 
17678
cat confdefs.h >>conftest.$ac_ext
 
17679
cat >>conftest.$ac_ext <<_ACEOF
 
17680
/* end confdefs.h.  */
 
17681
 
 
17682
/* Override any GCC internal prototype to avoid an error.
 
17683
   Use char because int might match the return type of a GCC
 
17684
   builtin and then its argument prototype would still apply.  */
 
17685
#ifdef __cplusplus
 
17686
extern "C"
 
17687
#endif
 
17688
char openpty ();
 
17689
int
 
17690
main ()
 
17691
{
 
17692
return openpty ();
 
17693
  ;
 
17694
  return 0;
 
17695
}
 
17696
_ACEOF
 
17697
rm -f conftest.$ac_objext conftest$ac_exeext
 
17698
if { (ac_try="$ac_link"
 
17699
case "(($ac_try" in
 
17700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17701
  *) ac_try_echo=$ac_try;;
 
17702
esac
 
17703
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17704
  (eval "$ac_link") 2>conftest.er1
 
17705
  ac_status=$?
 
17706
  grep -v '^ *+' conftest.er1 >conftest.err
 
17707
  rm -f conftest.er1
 
17708
  cat conftest.err >&5
 
17709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17710
  (exit $ac_status); } && {
 
17711
         test -z "$ac_c_werror_flag" ||
 
17712
         test ! -s conftest.err
 
17713
       } && test -s conftest$ac_exeext &&
 
17714
       $as_test_x conftest$ac_exeext; then
 
17715
  ac_cv_lib_bsd_openpty=yes
 
17716
else
 
17717
  echo "$as_me: failed program was:" >&5
 
17718
sed 's/^/| /' conftest.$ac_ext >&5
 
17719
 
 
17720
        ac_cv_lib_bsd_openpty=no
 
17721
fi
 
17722
 
 
17723
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17724
      conftest$ac_exeext conftest.$ac_ext
 
17725
LIBS=$ac_check_lib_save_LIBS
 
17726
fi
 
17727
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
 
17728
echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
 
17729
if test $ac_cv_lib_bsd_openpty = yes; then
 
17730
  cat >>confdefs.h <<\_ACEOF
 
17731
#define HAVE_OPENPTY 1
 
17732
_ACEOF
 
17733
 LIBS="$LIBS -lbsd"
 
17734
fi
 
17735
 
 
17736
 
 
17737
fi
 
17738
 
 
17739
 
 
17740
fi
 
17741
done
 
17742
 
 
17743
 
 
17744
for ac_func in forkpty
 
17745
do
 
17746
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17747
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17748
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17749
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17751
else
 
17752
  cat >conftest.$ac_ext <<_ACEOF
 
17753
/* confdefs.h.  */
 
17754
_ACEOF
 
17755
cat confdefs.h >>conftest.$ac_ext
 
17756
cat >>conftest.$ac_ext <<_ACEOF
 
17757
/* end confdefs.h.  */
 
17758
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17759
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17760
#define $ac_func innocuous_$ac_func
 
17761
 
 
17762
/* System header to define __stub macros and hopefully few prototypes,
 
17763
    which can conflict with char $ac_func (); below.
 
17764
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17765
    <limits.h> exists even on freestanding compilers.  */
 
17766
 
 
17767
#ifdef __STDC__
 
17768
# include <limits.h>
 
17769
#else
 
17770
# include <assert.h>
 
17771
#endif
 
17772
 
 
17773
#undef $ac_func
 
17774
 
 
17775
/* Override any GCC internal prototype to avoid an error.
 
17776
   Use char because int might match the return type of a GCC
 
17777
   builtin and then its argument prototype would still apply.  */
 
17778
#ifdef __cplusplus
 
17779
extern "C"
 
17780
#endif
 
17781
char $ac_func ();
 
17782
/* The GNU C library defines this for functions which it implements
 
17783
    to always fail with ENOSYS.  Some functions are actually named
 
17784
    something starting with __ and the normal name is an alias.  */
 
17785
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17786
choke me
 
17787
#endif
 
17788
 
 
17789
int
 
17790
main ()
 
17791
{
 
17792
return $ac_func ();
 
17793
  ;
 
17794
  return 0;
 
17795
}
 
17796
_ACEOF
 
17797
rm -f conftest.$ac_objext conftest$ac_exeext
 
17798
if { (ac_try="$ac_link"
 
17799
case "(($ac_try" in
 
17800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17801
  *) ac_try_echo=$ac_try;;
 
17802
esac
 
17803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17804
  (eval "$ac_link") 2>conftest.er1
 
17805
  ac_status=$?
 
17806
  grep -v '^ *+' conftest.er1 >conftest.err
 
17807
  rm -f conftest.er1
 
17808
  cat conftest.err >&5
 
17809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17810
  (exit $ac_status); } && {
 
17811
         test -z "$ac_c_werror_flag" ||
 
17812
         test ! -s conftest.err
 
17813
       } && test -s conftest$ac_exeext &&
 
17814
       $as_test_x conftest$ac_exeext; then
 
17815
  eval "$as_ac_var=yes"
 
17816
else
 
17817
  echo "$as_me: failed program was:" >&5
 
17818
sed 's/^/| /' conftest.$ac_ext >&5
 
17819
 
 
17820
        eval "$as_ac_var=no"
 
17821
fi
 
17822
 
 
17823
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17824
      conftest$ac_exeext conftest.$ac_ext
 
17825
fi
 
17826
ac_res=`eval echo '${'$as_ac_var'}'`
 
17827
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17828
echo "${ECHO_T}$ac_res" >&6; }
 
17829
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17830
  cat >>confdefs.h <<_ACEOF
 
17831
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17832
_ACEOF
 
17833
 
 
17834
else
 
17835
  { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
 
17836
echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
 
17837
if test "${ac_cv_lib_util_forkpty+set}" = set; then
 
17838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17839
else
 
17840
  ac_check_lib_save_LIBS=$LIBS
 
17841
LIBS="-lutil  $LIBS"
 
17842
cat >conftest.$ac_ext <<_ACEOF
 
17843
/* confdefs.h.  */
 
17844
_ACEOF
 
17845
cat confdefs.h >>conftest.$ac_ext
 
17846
cat >>conftest.$ac_ext <<_ACEOF
 
17847
/* end confdefs.h.  */
 
17848
 
 
17849
/* Override any GCC internal prototype to avoid an error.
 
17850
   Use char because int might match the return type of a GCC
 
17851
   builtin and then its argument prototype would still apply.  */
 
17852
#ifdef __cplusplus
 
17853
extern "C"
 
17854
#endif
 
17855
char forkpty ();
 
17856
int
 
17857
main ()
 
17858
{
 
17859
return forkpty ();
 
17860
  ;
 
17861
  return 0;
 
17862
}
 
17863
_ACEOF
 
17864
rm -f conftest.$ac_objext conftest$ac_exeext
 
17865
if { (ac_try="$ac_link"
 
17866
case "(($ac_try" in
 
17867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17868
  *) ac_try_echo=$ac_try;;
 
17869
esac
 
17870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17871
  (eval "$ac_link") 2>conftest.er1
 
17872
  ac_status=$?
 
17873
  grep -v '^ *+' conftest.er1 >conftest.err
 
17874
  rm -f conftest.er1
 
17875
  cat conftest.err >&5
 
17876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17877
  (exit $ac_status); } && {
 
17878
         test -z "$ac_c_werror_flag" ||
 
17879
         test ! -s conftest.err
 
17880
       } && test -s conftest$ac_exeext &&
 
17881
       $as_test_x conftest$ac_exeext; then
 
17882
  ac_cv_lib_util_forkpty=yes
 
17883
else
 
17884
  echo "$as_me: failed program was:" >&5
 
17885
sed 's/^/| /' conftest.$ac_ext >&5
 
17886
 
 
17887
        ac_cv_lib_util_forkpty=no
 
17888
fi
 
17889
 
 
17890
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17891
      conftest$ac_exeext conftest.$ac_ext
 
17892
LIBS=$ac_check_lib_save_LIBS
 
17893
fi
 
17894
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
 
17895
echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
 
17896
if test $ac_cv_lib_util_forkpty = yes; then
 
17897
  cat >>confdefs.h <<\_ACEOF
 
17898
#define HAVE_FORKPTY 1
 
17899
_ACEOF
 
17900
 LIBS="$LIBS -lutil"
 
17901
else
 
17902
  { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
 
17903
echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
 
17904
if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
 
17905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17906
else
 
17907
  ac_check_lib_save_LIBS=$LIBS
 
17908
LIBS="-lbsd  $LIBS"
 
17909
cat >conftest.$ac_ext <<_ACEOF
 
17910
/* confdefs.h.  */
 
17911
_ACEOF
 
17912
cat confdefs.h >>conftest.$ac_ext
 
17913
cat >>conftest.$ac_ext <<_ACEOF
 
17914
/* end confdefs.h.  */
 
17915
 
 
17916
/* Override any GCC internal prototype to avoid an error.
 
17917
   Use char because int might match the return type of a GCC
 
17918
   builtin and then its argument prototype would still apply.  */
 
17919
#ifdef __cplusplus
 
17920
extern "C"
 
17921
#endif
 
17922
char forkpty ();
 
17923
int
 
17924
main ()
 
17925
{
 
17926
return forkpty ();
 
17927
  ;
 
17928
  return 0;
 
17929
}
 
17930
_ACEOF
 
17931
rm -f conftest.$ac_objext conftest$ac_exeext
 
17932
if { (ac_try="$ac_link"
 
17933
case "(($ac_try" in
 
17934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17935
  *) ac_try_echo=$ac_try;;
 
17936
esac
 
17937
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17938
  (eval "$ac_link") 2>conftest.er1
 
17939
  ac_status=$?
 
17940
  grep -v '^ *+' conftest.er1 >conftest.err
 
17941
  rm -f conftest.er1
 
17942
  cat conftest.err >&5
 
17943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17944
  (exit $ac_status); } && {
 
17945
         test -z "$ac_c_werror_flag" ||
 
17946
         test ! -s conftest.err
 
17947
       } && test -s conftest$ac_exeext &&
 
17948
       $as_test_x conftest$ac_exeext; then
 
17949
  ac_cv_lib_bsd_forkpty=yes
 
17950
else
 
17951
  echo "$as_me: failed program was:" >&5
 
17952
sed 's/^/| /' conftest.$ac_ext >&5
 
17953
 
 
17954
        ac_cv_lib_bsd_forkpty=no
 
17955
fi
 
17956
 
 
17957
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17958
      conftest$ac_exeext conftest.$ac_ext
 
17959
LIBS=$ac_check_lib_save_LIBS
 
17960
fi
 
17961
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
 
17962
echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
 
17963
if test $ac_cv_lib_bsd_forkpty = yes; then
 
17964
  cat >>confdefs.h <<\_ACEOF
 
17965
#define HAVE_FORKPTY 1
 
17966
_ACEOF
 
17967
 LIBS="$LIBS -lbsd"
 
17968
fi
 
17969
 
 
17970
 
 
17971
fi
 
17972
 
 
17973
 
 
17974
fi
 
17975
done
 
17976
 
 
17977
 
 
17978
# Stuff for expat.
 
17979
 
 
17980
for ac_func in memmove
 
17981
do
 
17982
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17983
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17984
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17985
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17987
else
 
17988
  cat >conftest.$ac_ext <<_ACEOF
 
17989
/* confdefs.h.  */
 
17990
_ACEOF
 
17991
cat confdefs.h >>conftest.$ac_ext
 
17992
cat >>conftest.$ac_ext <<_ACEOF
 
17993
/* end confdefs.h.  */
 
17994
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17995
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17996
#define $ac_func innocuous_$ac_func
 
17997
 
 
17998
/* System header to define __stub macros and hopefully few prototypes,
 
17999
    which can conflict with char $ac_func (); below.
 
18000
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18001
    <limits.h> exists even on freestanding compilers.  */
 
18002
 
 
18003
#ifdef __STDC__
 
18004
# include <limits.h>
 
18005
#else
 
18006
# include <assert.h>
 
18007
#endif
 
18008
 
 
18009
#undef $ac_func
 
18010
 
 
18011
/* Override any GCC internal prototype to avoid an error.
 
18012
   Use char because int might match the return type of a GCC
 
18013
   builtin and then its argument prototype would still apply.  */
 
18014
#ifdef __cplusplus
 
18015
extern "C"
 
18016
#endif
 
18017
char $ac_func ();
 
18018
/* The GNU C library defines this for functions which it implements
 
18019
    to always fail with ENOSYS.  Some functions are actually named
 
18020
    something starting with __ and the normal name is an alias.  */
 
18021
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18022
choke me
 
18023
#endif
 
18024
 
 
18025
int
 
18026
main ()
 
18027
{
 
18028
return $ac_func ();
 
18029
  ;
 
18030
  return 0;
 
18031
}
 
18032
_ACEOF
 
18033
rm -f conftest.$ac_objext conftest$ac_exeext
 
18034
if { (ac_try="$ac_link"
 
18035
case "(($ac_try" in
 
18036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18037
  *) ac_try_echo=$ac_try;;
 
18038
esac
 
18039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18040
  (eval "$ac_link") 2>conftest.er1
 
18041
  ac_status=$?
 
18042
  grep -v '^ *+' conftest.er1 >conftest.err
 
18043
  rm -f conftest.er1
 
18044
  cat conftest.err >&5
 
18045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18046
  (exit $ac_status); } && {
 
18047
         test -z "$ac_c_werror_flag" ||
 
18048
         test ! -s conftest.err
 
18049
       } && test -s conftest$ac_exeext &&
 
18050
       $as_test_x conftest$ac_exeext; then
 
18051
  eval "$as_ac_var=yes"
 
18052
else
 
18053
  echo "$as_me: failed program was:" >&5
 
18054
sed 's/^/| /' conftest.$ac_ext >&5
 
18055
 
 
18056
        eval "$as_ac_var=no"
 
18057
fi
 
18058
 
 
18059
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18060
      conftest$ac_exeext conftest.$ac_ext
 
18061
fi
 
18062
ac_res=`eval echo '${'$as_ac_var'}'`
 
18063
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18064
echo "${ECHO_T}$ac_res" >&6; }
 
18065
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18066
  cat >>confdefs.h <<_ACEOF
 
18067
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18068
_ACEOF
 
18069
 
 
18070
fi
 
18071
done
 
18072
 
 
18073
 
 
18074
# check for long file support functions
 
18075
 
 
18076
 
 
18077
 
 
18078
 
 
18079
 
 
18080
 
 
18081
for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
 
18082
do
 
18083
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18084
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18085
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18086
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18088
else
 
18089
  cat >conftest.$ac_ext <<_ACEOF
 
18090
/* confdefs.h.  */
 
18091
_ACEOF
 
18092
cat confdefs.h >>conftest.$ac_ext
 
18093
cat >>conftest.$ac_ext <<_ACEOF
 
18094
/* end confdefs.h.  */
 
18095
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18096
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18097
#define $ac_func innocuous_$ac_func
 
18098
 
 
18099
/* System header to define __stub macros and hopefully few prototypes,
 
18100
    which can conflict with char $ac_func (); below.
 
18101
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18102
    <limits.h> exists even on freestanding compilers.  */
 
18103
 
 
18104
#ifdef __STDC__
 
18105
# include <limits.h>
 
18106
#else
 
18107
# include <assert.h>
 
18108
#endif
 
18109
 
 
18110
#undef $ac_func
 
18111
 
 
18112
/* Override any GCC internal prototype to avoid an error.
 
18113
   Use char because int might match the return type of a GCC
 
18114
   builtin and then its argument prototype would still apply.  */
 
18115
#ifdef __cplusplus
 
18116
extern "C"
 
18117
#endif
 
18118
char $ac_func ();
 
18119
/* The GNU C library defines this for functions which it implements
 
18120
    to always fail with ENOSYS.  Some functions are actually named
 
18121
    something starting with __ and the normal name is an alias.  */
 
18122
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18123
choke me
 
18124
#endif
 
18125
 
 
18126
int
 
18127
main ()
 
18128
{
 
18129
return $ac_func ();
 
18130
  ;
 
18131
  return 0;
 
18132
}
 
18133
_ACEOF
 
18134
rm -f conftest.$ac_objext conftest$ac_exeext
 
18135
if { (ac_try="$ac_link"
 
18136
case "(($ac_try" in
 
18137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18138
  *) ac_try_echo=$ac_try;;
 
18139
esac
 
18140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18141
  (eval "$ac_link") 2>conftest.er1
 
18142
  ac_status=$?
 
18143
  grep -v '^ *+' conftest.er1 >conftest.err
 
18144
  rm -f conftest.er1
 
18145
  cat conftest.err >&5
 
18146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18147
  (exit $ac_status); } && {
 
18148
         test -z "$ac_c_werror_flag" ||
 
18149
         test ! -s conftest.err
 
18150
       } && test -s conftest$ac_exeext &&
 
18151
       $as_test_x conftest$ac_exeext; then
 
18152
  eval "$as_ac_var=yes"
 
18153
else
 
18154
  echo "$as_me: failed program was:" >&5
 
18155
sed 's/^/| /' conftest.$ac_ext >&5
 
18156
 
 
18157
        eval "$as_ac_var=no"
 
18158
fi
 
18159
 
 
18160
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18161
      conftest$ac_exeext conftest.$ac_ext
 
18162
fi
 
18163
ac_res=`eval echo '${'$as_ac_var'}'`
 
18164
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18165
echo "${ECHO_T}$ac_res" >&6; }
 
18166
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18167
  cat >>confdefs.h <<_ACEOF
 
18168
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18169
_ACEOF
 
18170
 
 
18171
fi
 
18172
done
 
18173
 
 
18174
 
 
18175
 
 
18176
 
 
18177
 
 
18178
for ac_func in dup2 getcwd strdup
 
18179
do
 
18180
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18181
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18182
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18183
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18185
else
 
18186
  cat >conftest.$ac_ext <<_ACEOF
 
18187
/* confdefs.h.  */
 
18188
_ACEOF
 
18189
cat confdefs.h >>conftest.$ac_ext
 
18190
cat >>conftest.$ac_ext <<_ACEOF
 
18191
/* end confdefs.h.  */
 
18192
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18193
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18194
#define $ac_func innocuous_$ac_func
 
18195
 
 
18196
/* System header to define __stub macros and hopefully few prototypes,
 
18197
    which can conflict with char $ac_func (); below.
 
18198
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18199
    <limits.h> exists even on freestanding compilers.  */
 
18200
 
 
18201
#ifdef __STDC__
 
18202
# include <limits.h>
 
18203
#else
 
18204
# include <assert.h>
 
18205
#endif
 
18206
 
 
18207
#undef $ac_func
 
18208
 
 
18209
/* Override any GCC internal prototype to avoid an error.
 
18210
   Use char because int might match the return type of a GCC
 
18211
   builtin and then its argument prototype would still apply.  */
 
18212
#ifdef __cplusplus
 
18213
extern "C"
 
18214
#endif
 
18215
char $ac_func ();
 
18216
/* The GNU C library defines this for functions which it implements
 
18217
    to always fail with ENOSYS.  Some functions are actually named
 
18218
    something starting with __ and the normal name is an alias.  */
 
18219
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18220
choke me
 
18221
#endif
 
18222
 
 
18223
int
 
18224
main ()
 
18225
{
 
18226
return $ac_func ();
 
18227
  ;
 
18228
  return 0;
 
18229
}
 
18230
_ACEOF
 
18231
rm -f conftest.$ac_objext conftest$ac_exeext
 
18232
if { (ac_try="$ac_link"
 
18233
case "(($ac_try" in
 
18234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18235
  *) ac_try_echo=$ac_try;;
 
18236
esac
 
18237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18238
  (eval "$ac_link") 2>conftest.er1
 
18239
  ac_status=$?
 
18240
  grep -v '^ *+' conftest.er1 >conftest.err
 
18241
  rm -f conftest.er1
 
18242
  cat conftest.err >&5
 
18243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18244
  (exit $ac_status); } && {
 
18245
         test -z "$ac_c_werror_flag" ||
 
18246
         test ! -s conftest.err
 
18247
       } && test -s conftest$ac_exeext &&
 
18248
       $as_test_x conftest$ac_exeext; then
 
18249
  eval "$as_ac_var=yes"
 
18250
else
 
18251
  echo "$as_me: failed program was:" >&5
 
18252
sed 's/^/| /' conftest.$ac_ext >&5
 
18253
 
 
18254
        eval "$as_ac_var=no"
 
18255
fi
 
18256
 
 
18257
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18258
      conftest$ac_exeext conftest.$ac_ext
 
18259
fi
 
18260
ac_res=`eval echo '${'$as_ac_var'}'`
 
18261
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18262
echo "${ECHO_T}$ac_res" >&6; }
 
18263
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18264
  cat >>confdefs.h <<_ACEOF
 
18265
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18266
_ACEOF
 
18267
 
 
18268
else
 
18269
  case " $LIBOBJS " in
 
18270
  *" $ac_func.$ac_objext "* ) ;;
 
18271
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
18272
 ;;
 
18273
esac
 
18274
 
 
18275
fi
 
18276
done
 
18277
 
 
18278
 
 
18279
 
 
18280
for ac_func in getpgrp
 
18281
do
 
18282
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18283
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18284
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18285
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18287
else
 
18288
  cat >conftest.$ac_ext <<_ACEOF
 
18289
/* confdefs.h.  */
 
18290
_ACEOF
 
18291
cat confdefs.h >>conftest.$ac_ext
 
18292
cat >>conftest.$ac_ext <<_ACEOF
 
18293
/* end confdefs.h.  */
 
18294
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18295
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18296
#define $ac_func innocuous_$ac_func
 
18297
 
 
18298
/* System header to define __stub macros and hopefully few prototypes,
 
18299
    which can conflict with char $ac_func (); below.
 
18300
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18301
    <limits.h> exists even on freestanding compilers.  */
 
18302
 
 
18303
#ifdef __STDC__
 
18304
# include <limits.h>
 
18305
#else
 
18306
# include <assert.h>
 
18307
#endif
 
18308
 
 
18309
#undef $ac_func
 
18310
 
 
18311
/* Override any GCC internal prototype to avoid an error.
 
18312
   Use char because int might match the return type of a GCC
 
18313
   builtin and then its argument prototype would still apply.  */
 
18314
#ifdef __cplusplus
 
18315
extern "C"
 
18316
#endif
 
18317
char $ac_func ();
 
18318
/* The GNU C library defines this for functions which it implements
 
18319
    to always fail with ENOSYS.  Some functions are actually named
 
18320
    something starting with __ and the normal name is an alias.  */
 
18321
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18322
choke me
 
18323
#endif
 
18324
 
 
18325
int
 
18326
main ()
 
18327
{
 
18328
return $ac_func ();
 
18329
  ;
 
18330
  return 0;
 
18331
}
 
18332
_ACEOF
 
18333
rm -f conftest.$ac_objext conftest$ac_exeext
 
18334
if { (ac_try="$ac_link"
 
18335
case "(($ac_try" in
 
18336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18337
  *) ac_try_echo=$ac_try;;
 
18338
esac
 
18339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18340
  (eval "$ac_link") 2>conftest.er1
 
18341
  ac_status=$?
 
18342
  grep -v '^ *+' conftest.er1 >conftest.err
 
18343
  rm -f conftest.er1
 
18344
  cat conftest.err >&5
 
18345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18346
  (exit $ac_status); } && {
 
18347
         test -z "$ac_c_werror_flag" ||
 
18348
         test ! -s conftest.err
 
18349
       } && test -s conftest$ac_exeext &&
 
18350
       $as_test_x conftest$ac_exeext; then
 
18351
  eval "$as_ac_var=yes"
 
18352
else
 
18353
  echo "$as_me: failed program was:" >&5
 
18354
sed 's/^/| /' conftest.$ac_ext >&5
 
18355
 
 
18356
        eval "$as_ac_var=no"
 
18357
fi
 
18358
 
 
18359
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18360
      conftest$ac_exeext conftest.$ac_ext
 
18361
fi
 
18362
ac_res=`eval echo '${'$as_ac_var'}'`
 
18363
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18364
echo "${ECHO_T}$ac_res" >&6; }
 
18365
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18366
  cat >>confdefs.h <<_ACEOF
 
18367
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18368
_ACEOF
 
18369
 cat >conftest.$ac_ext <<_ACEOF
 
18370
/* confdefs.h.  */
 
18371
_ACEOF
 
18372
cat confdefs.h >>conftest.$ac_ext
 
18373
cat >>conftest.$ac_ext <<_ACEOF
 
18374
/* end confdefs.h.  */
 
18375
#include <unistd.h>
 
18376
int
 
18377
main ()
 
18378
{
 
18379
getpgrp(0);
 
18380
  ;
 
18381
  return 0;
 
18382
}
 
18383
_ACEOF
 
18384
rm -f conftest.$ac_objext
 
18385
if { (ac_try="$ac_compile"
 
18386
case "(($ac_try" in
 
18387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18388
  *) ac_try_echo=$ac_try;;
 
18389
esac
 
18390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18391
  (eval "$ac_compile") 2>conftest.er1
 
18392
  ac_status=$?
 
18393
  grep -v '^ *+' conftest.er1 >conftest.err
 
18394
  rm -f conftest.er1
 
18395
  cat conftest.err >&5
 
18396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18397
  (exit $ac_status); } && {
 
18398
         test -z "$ac_c_werror_flag" ||
 
18399
         test ! -s conftest.err
 
18400
       } && test -s conftest.$ac_objext; then
 
18401
 
 
18402
cat >>confdefs.h <<\_ACEOF
 
18403
#define GETPGRP_HAVE_ARG 1
 
18404
_ACEOF
 
18405
 
 
18406
 
 
18407
else
 
18408
  echo "$as_me: failed program was:" >&5
 
18409
sed 's/^/| /' conftest.$ac_ext >&5
 
18410
 
 
18411
 
 
18412
fi
 
18413
 
 
18414
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18415
 
 
18416
fi
 
18417
done
 
18418
 
 
18419
 
 
18420
for ac_func in setpgrp
 
18421
do
 
18422
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18423
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18424
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18425
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18427
else
 
18428
  cat >conftest.$ac_ext <<_ACEOF
 
18429
/* confdefs.h.  */
 
18430
_ACEOF
 
18431
cat confdefs.h >>conftest.$ac_ext
 
18432
cat >>conftest.$ac_ext <<_ACEOF
 
18433
/* end confdefs.h.  */
 
18434
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18435
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18436
#define $ac_func innocuous_$ac_func
 
18437
 
 
18438
/* System header to define __stub macros and hopefully few prototypes,
 
18439
    which can conflict with char $ac_func (); below.
 
18440
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18441
    <limits.h> exists even on freestanding compilers.  */
 
18442
 
 
18443
#ifdef __STDC__
 
18444
# include <limits.h>
 
18445
#else
 
18446
# include <assert.h>
 
18447
#endif
 
18448
 
 
18449
#undef $ac_func
 
18450
 
 
18451
/* Override any GCC internal prototype to avoid an error.
 
18452
   Use char because int might match the return type of a GCC
 
18453
   builtin and then its argument prototype would still apply.  */
 
18454
#ifdef __cplusplus
 
18455
extern "C"
 
18456
#endif
 
18457
char $ac_func ();
 
18458
/* The GNU C library defines this for functions which it implements
 
18459
    to always fail with ENOSYS.  Some functions are actually named
 
18460
    something starting with __ and the normal name is an alias.  */
 
18461
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18462
choke me
 
18463
#endif
 
18464
 
 
18465
int
 
18466
main ()
 
18467
{
 
18468
return $ac_func ();
 
18469
  ;
 
18470
  return 0;
 
18471
}
 
18472
_ACEOF
 
18473
rm -f conftest.$ac_objext conftest$ac_exeext
 
18474
if { (ac_try="$ac_link"
 
18475
case "(($ac_try" in
 
18476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18477
  *) ac_try_echo=$ac_try;;
 
18478
esac
 
18479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18480
  (eval "$ac_link") 2>conftest.er1
 
18481
  ac_status=$?
 
18482
  grep -v '^ *+' conftest.er1 >conftest.err
 
18483
  rm -f conftest.er1
 
18484
  cat conftest.err >&5
 
18485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18486
  (exit $ac_status); } && {
 
18487
         test -z "$ac_c_werror_flag" ||
 
18488
         test ! -s conftest.err
 
18489
       } && test -s conftest$ac_exeext &&
 
18490
       $as_test_x conftest$ac_exeext; then
 
18491
  eval "$as_ac_var=yes"
 
18492
else
 
18493
  echo "$as_me: failed program was:" >&5
 
18494
sed 's/^/| /' conftest.$ac_ext >&5
 
18495
 
 
18496
        eval "$as_ac_var=no"
 
18497
fi
 
18498
 
 
18499
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18500
      conftest$ac_exeext conftest.$ac_ext
 
18501
fi
 
18502
ac_res=`eval echo '${'$as_ac_var'}'`
 
18503
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18504
echo "${ECHO_T}$ac_res" >&6; }
 
18505
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18506
  cat >>confdefs.h <<_ACEOF
 
18507
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18508
_ACEOF
 
18509
 cat >conftest.$ac_ext <<_ACEOF
 
18510
/* confdefs.h.  */
 
18511
_ACEOF
 
18512
cat confdefs.h >>conftest.$ac_ext
 
18513
cat >>conftest.$ac_ext <<_ACEOF
 
18514
/* end confdefs.h.  */
 
18515
#include <unistd.h>
 
18516
int
 
18517
main ()
 
18518
{
 
18519
setpgrp(0,0);
 
18520
  ;
 
18521
  return 0;
 
18522
}
 
18523
_ACEOF
 
18524
rm -f conftest.$ac_objext
 
18525
if { (ac_try="$ac_compile"
 
18526
case "(($ac_try" in
 
18527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18528
  *) ac_try_echo=$ac_try;;
 
18529
esac
 
18530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18531
  (eval "$ac_compile") 2>conftest.er1
 
18532
  ac_status=$?
 
18533
  grep -v '^ *+' conftest.er1 >conftest.err
 
18534
  rm -f conftest.er1
 
18535
  cat conftest.err >&5
 
18536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18537
  (exit $ac_status); } && {
 
18538
         test -z "$ac_c_werror_flag" ||
 
18539
         test ! -s conftest.err
 
18540
       } && test -s conftest.$ac_objext; then
 
18541
 
 
18542
cat >>confdefs.h <<\_ACEOF
 
18543
#define SETPGRP_HAVE_ARG 1
 
18544
_ACEOF
 
18545
 
 
18546
 
 
18547
else
 
18548
  echo "$as_me: failed program was:" >&5
 
18549
sed 's/^/| /' conftest.$ac_ext >&5
 
18550
 
 
18551
 
 
18552
fi
 
18553
 
 
18554
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18555
 
 
18556
fi
 
18557
done
 
18558
 
 
18559
 
 
18560
for ac_func in gettimeofday
 
18561
do
 
18562
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18563
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18564
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18565
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18567
else
 
18568
  cat >conftest.$ac_ext <<_ACEOF
 
18569
/* confdefs.h.  */
 
18570
_ACEOF
 
18571
cat confdefs.h >>conftest.$ac_ext
 
18572
cat >>conftest.$ac_ext <<_ACEOF
 
18573
/* end confdefs.h.  */
 
18574
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18575
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18576
#define $ac_func innocuous_$ac_func
 
18577
 
 
18578
/* System header to define __stub macros and hopefully few prototypes,
 
18579
    which can conflict with char $ac_func (); below.
 
18580
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18581
    <limits.h> exists even on freestanding compilers.  */
 
18582
 
 
18583
#ifdef __STDC__
 
18584
# include <limits.h>
 
18585
#else
 
18586
# include <assert.h>
 
18587
#endif
 
18588
 
 
18589
#undef $ac_func
 
18590
 
 
18591
/* Override any GCC internal prototype to avoid an error.
 
18592
   Use char because int might match the return type of a GCC
 
18593
   builtin and then its argument prototype would still apply.  */
 
18594
#ifdef __cplusplus
 
18595
extern "C"
 
18596
#endif
 
18597
char $ac_func ();
 
18598
/* The GNU C library defines this for functions which it implements
 
18599
    to always fail with ENOSYS.  Some functions are actually named
 
18600
    something starting with __ and the normal name is an alias.  */
 
18601
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18602
choke me
 
18603
#endif
 
18604
 
 
18605
int
 
18606
main ()
 
18607
{
 
18608
return $ac_func ();
 
18609
  ;
 
18610
  return 0;
 
18611
}
 
18612
_ACEOF
 
18613
rm -f conftest.$ac_objext conftest$ac_exeext
 
18614
if { (ac_try="$ac_link"
 
18615
case "(($ac_try" in
 
18616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18617
  *) ac_try_echo=$ac_try;;
 
18618
esac
 
18619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18620
  (eval "$ac_link") 2>conftest.er1
 
18621
  ac_status=$?
 
18622
  grep -v '^ *+' conftest.er1 >conftest.err
 
18623
  rm -f conftest.er1
 
18624
  cat conftest.err >&5
 
18625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18626
  (exit $ac_status); } && {
 
18627
         test -z "$ac_c_werror_flag" ||
 
18628
         test ! -s conftest.err
 
18629
       } && test -s conftest$ac_exeext &&
 
18630
       $as_test_x conftest$ac_exeext; then
 
18631
  eval "$as_ac_var=yes"
 
18632
else
 
18633
  echo "$as_me: failed program was:" >&5
 
18634
sed 's/^/| /' conftest.$ac_ext >&5
 
18635
 
 
18636
        eval "$as_ac_var=no"
 
18637
fi
 
18638
 
 
18639
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18640
      conftest$ac_exeext conftest.$ac_ext
 
18641
fi
 
18642
ac_res=`eval echo '${'$as_ac_var'}'`
 
18643
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18644
echo "${ECHO_T}$ac_res" >&6; }
 
18645
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18646
  cat >>confdefs.h <<_ACEOF
 
18647
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18648
_ACEOF
 
18649
 cat >conftest.$ac_ext <<_ACEOF
 
18650
/* confdefs.h.  */
 
18651
_ACEOF
 
18652
cat confdefs.h >>conftest.$ac_ext
 
18653
cat >>conftest.$ac_ext <<_ACEOF
 
18654
/* end confdefs.h.  */
 
18655
#include <sys/time.h>
 
18656
int
 
18657
main ()
 
18658
{
 
18659
gettimeofday((struct timeval*)0,(struct timezone*)0);
 
18660
  ;
 
18661
  return 0;
 
18662
}
 
18663
_ACEOF
 
18664
rm -f conftest.$ac_objext
 
18665
if { (ac_try="$ac_compile"
 
18666
case "(($ac_try" in
 
18667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18668
  *) ac_try_echo=$ac_try;;
 
18669
esac
 
18670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18671
  (eval "$ac_compile") 2>conftest.er1
 
18672
  ac_status=$?
 
18673
  grep -v '^ *+' conftest.er1 >conftest.err
 
18674
  rm -f conftest.er1
 
18675
  cat conftest.err >&5
 
18676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18677
  (exit $ac_status); } && {
 
18678
         test -z "$ac_c_werror_flag" ||
 
18679
         test ! -s conftest.err
 
18680
       } && test -s conftest.$ac_objext; then
 
18681
  :
 
18682
else
 
18683
  echo "$as_me: failed program was:" >&5
 
18684
sed 's/^/| /' conftest.$ac_ext >&5
 
18685
 
 
18686
 
 
18687
cat >>confdefs.h <<\_ACEOF
 
18688
#define GETTIMEOFDAY_NO_TZ 1
 
18689
_ACEOF
 
18690
 
 
18691
 
 
18692
fi
 
18693
 
 
18694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18695
 
 
18696
fi
 
18697
done
 
18698
 
 
18699
 
 
18700
{ echo "$as_me:$LINENO: checking for major" >&5
 
18701
echo $ECHO_N "checking for major... $ECHO_C" >&6; }
 
18702
cat >conftest.$ac_ext <<_ACEOF
 
18703
/* confdefs.h.  */
 
18704
_ACEOF
 
18705
cat confdefs.h >>conftest.$ac_ext
 
18706
cat >>conftest.$ac_ext <<_ACEOF
 
18707
/* end confdefs.h.  */
 
18708
 
 
18709
#if defined(MAJOR_IN_MKDEV)
 
18710
#include <sys/mkdev.h>
 
18711
#elif defined(MAJOR_IN_SYSMACROS)
 
18712
#include <sys/sysmacros.h>
 
18713
#else
 
18714
#include <sys/types.h>
 
18715
#endif
 
18716
 
 
18717
int
 
18718
main ()
 
18719
{
 
18720
 
 
18721
  makedev(major(0),minor(0));
 
18722
 
 
18723
  ;
 
18724
  return 0;
 
18725
}
 
18726
_ACEOF
 
18727
rm -f conftest.$ac_objext conftest$ac_exeext
 
18728
if { (ac_try="$ac_link"
 
18729
case "(($ac_try" in
 
18730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18731
  *) ac_try_echo=$ac_try;;
 
18732
esac
 
18733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18734
  (eval "$ac_link") 2>conftest.er1
 
18735
  ac_status=$?
 
18736
  grep -v '^ *+' conftest.er1 >conftest.err
 
18737
  rm -f conftest.er1
 
18738
  cat conftest.err >&5
 
18739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18740
  (exit $ac_status); } && {
 
18741
         test -z "$ac_c_werror_flag" ||
 
18742
         test ! -s conftest.err
 
18743
       } && test -s conftest$ac_exeext &&
 
18744
       $as_test_x conftest$ac_exeext; then
 
18745
 
 
18746
 
 
18747
cat >>confdefs.h <<\_ACEOF
 
18748
#define HAVE_DEVICE_MACROS 1
 
18749
_ACEOF
 
18750
 
 
18751
  { echo "$as_me:$LINENO: result: yes" >&5
 
18752
echo "${ECHO_T}yes" >&6; }
 
18753
 
 
18754
else
 
18755
  echo "$as_me: failed program was:" >&5
 
18756
sed 's/^/| /' conftest.$ac_ext >&5
 
18757
 
 
18758
 
 
18759
  { echo "$as_me:$LINENO: result: no" >&5
 
18760
echo "${ECHO_T}no" >&6; }
 
18761
 
 
18762
fi
 
18763
 
 
18764
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18765
      conftest$ac_exeext conftest.$ac_ext
 
18766
 
 
18767
# On OSF/1 V5.1, getaddrinfo is available, but a define
 
18768
# for [no]getaddrinfo in netdb.h.
 
18769
{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
 
18770
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
 
18771
cat >conftest.$ac_ext <<_ACEOF
 
18772
/* confdefs.h.  */
 
18773
_ACEOF
 
18774
cat confdefs.h >>conftest.$ac_ext
 
18775
cat >>conftest.$ac_ext <<_ACEOF
 
18776
/* end confdefs.h.  */
 
18777
 
 
18778
#include <sys/types.h>
 
18779
#include <sys/socket.h>
 
18780
#include <netdb.h>
 
18781
#include <stdio.h>
 
18782
 
 
18783
int
 
18784
main ()
 
18785
{
 
18786
 
 
18787
getaddrinfo(NULL, NULL, NULL, NULL);
 
18788
 
 
18789
  ;
 
18790
  return 0;
 
18791
}
 
18792
_ACEOF
 
18793
rm -f conftest.$ac_objext conftest$ac_exeext
 
18794
if { (ac_try="$ac_link"
 
18795
case "(($ac_try" in
 
18796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18797
  *) ac_try_echo=$ac_try;;
 
18798
esac
 
18799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18800
  (eval "$ac_link") 2>conftest.er1
 
18801
  ac_status=$?
 
18802
  grep -v '^ *+' conftest.er1 >conftest.err
 
18803
  rm -f conftest.er1
 
18804
  cat conftest.err >&5
 
18805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18806
  (exit $ac_status); } && {
 
18807
         test -z "$ac_c_werror_flag" ||
 
18808
         test ! -s conftest.err
 
18809
       } && test -s conftest$ac_exeext &&
 
18810
       $as_test_x conftest$ac_exeext; then
 
18811
 
 
18812
{ echo "$as_me:$LINENO: result: yes" >&5
 
18813
echo "${ECHO_T}yes" >&6; }
 
18814
{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
 
18815
echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
 
18816
if test "$cross_compiling" = yes; then
 
18817
  { echo "$as_me:$LINENO: result: buggy" >&5
 
18818
echo "${ECHO_T}buggy" >&6; }
 
18819
buggygetaddrinfo=yes
 
18820
else
 
18821
  cat >conftest.$ac_ext <<_ACEOF
 
18822
/* confdefs.h.  */
 
18823
_ACEOF
 
18824
cat confdefs.h >>conftest.$ac_ext
 
18825
cat >>conftest.$ac_ext <<_ACEOF
 
18826
/* end confdefs.h.  */
 
18827
 
 
18828
#include <sys/types.h>
 
18829
#include <netdb.h>
 
18830
#include <string.h>
 
18831
#include <sys/socket.h>
 
18832
#include <netinet/in.h>
 
18833
 
 
18834
main()
 
18835
{
 
18836
  int passive, gaierr, inet4 = 0, inet6 = 0;
 
18837
  struct addrinfo hints, *ai, *aitop;
 
18838
  char straddr[INET6_ADDRSTRLEN], strport[16];
 
18839
 
 
18840
  for (passive = 0; passive <= 1; passive++) {
 
18841
    memset(&hints, 0, sizeof(hints));
 
18842
    hints.ai_family = AF_UNSPEC;
 
18843
    hints.ai_flags = passive ? AI_PASSIVE : 0;
 
18844
    hints.ai_socktype = SOCK_STREAM;
 
18845
    hints.ai_protocol = IPPROTO_TCP;
 
18846
    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
 
18847
      (void)gai_strerror(gaierr);
 
18848
      goto bad;
 
18849
    }
 
18850
    for (ai = aitop; ai; ai = ai->ai_next) {
 
18851
      if (ai->ai_addr == NULL ||
 
18852
          ai->ai_addrlen == 0 ||
 
18853
          getnameinfo(ai->ai_addr, ai->ai_addrlen,
 
18854
                      straddr, sizeof(straddr), strport, sizeof(strport),
 
18855
                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
 
18856
        goto bad;
 
18857
      }
 
18858
      switch (ai->ai_family) {
 
18859
      case AF_INET:
 
18860
        if (strcmp(strport, "54321") != 0) {
 
18861
          goto bad;
 
18862
        }
 
18863
        if (passive) {
 
18864
          if (strcmp(straddr, "0.0.0.0") != 0) {
 
18865
            goto bad;
 
18866
          }
 
18867
        } else {
 
18868
          if (strcmp(straddr, "127.0.0.1") != 0) {
 
18869
            goto bad;
 
18870
          }
 
18871
        }
 
18872
        inet4++;
 
18873
        break;
 
18874
      case AF_INET6:
 
18875
        if (strcmp(strport, "54321") != 0) {
 
18876
          goto bad;
 
18877
        }
 
18878
        if (passive) {
 
18879
          if (strcmp(straddr, "::") != 0) {
 
18880
            goto bad;
 
18881
          }
 
18882
        } else {
 
18883
          if (strcmp(straddr, "::1") != 0) {
 
18884
            goto bad;
 
18885
          }
 
18886
        }
 
18887
        inet6++;
 
18888
        break;
 
18889
      case AF_UNSPEC:
 
18890
        goto bad;
 
18891
        break;
 
18892
      default:
 
18893
        /* another family support? */
 
18894
        break;
 
18895
      }
 
18896
    }
 
18897
  }
 
18898
 
 
18899
  if (!(inet4 == 0 || inet4 == 2))
 
18900
    goto bad;
 
18901
  if (!(inet6 == 0 || inet6 == 2))
 
18902
    goto bad;
 
18903
 
 
18904
  if (aitop)
 
18905
    freeaddrinfo(aitop);
 
18906
  exit(0);
 
18907
 
 
18908
 bad:
 
18909
  if (aitop)
 
18910
    freeaddrinfo(aitop);
 
18911
  exit(1);
 
18912
}
 
18913
 
 
18914
_ACEOF
 
18915
rm -f conftest$ac_exeext
 
18916
if { (ac_try="$ac_link"
 
18917
case "(($ac_try" in
 
18918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18919
  *) ac_try_echo=$ac_try;;
 
18920
esac
 
18921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18922
  (eval "$ac_link") 2>&5
 
18923
  ac_status=$?
 
18924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18925
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18926
  { (case "(($ac_try" in
 
18927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18928
  *) ac_try_echo=$ac_try;;
 
18929
esac
 
18930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18931
  (eval "$ac_try") 2>&5
 
18932
  ac_status=$?
 
18933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18934
  (exit $ac_status); }; }; then
 
18935
  { echo "$as_me:$LINENO: result: good" >&5
 
18936
echo "${ECHO_T}good" >&6; }
 
18937
buggygetaddrinfo=no
 
18938
else
 
18939
  echo "$as_me: program exited with status $ac_status" >&5
 
18940
echo "$as_me: failed program was:" >&5
 
18941
sed 's/^/| /' conftest.$ac_ext >&5
 
18942
 
 
18943
( exit $ac_status )
 
18944
{ echo "$as_me:$LINENO: result: buggy" >&5
 
18945
echo "${ECHO_T}buggy" >&6; }
 
18946
buggygetaddrinfo=yes
 
18947
fi
 
18948
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18949
fi
 
18950
 
 
18951
 
 
18952
else
 
18953
  echo "$as_me: failed program was:" >&5
 
18954
sed 's/^/| /' conftest.$ac_ext >&5
 
18955
 
 
18956
 
 
18957
{ echo "$as_me:$LINENO: result: no" >&5
 
18958
echo "${ECHO_T}no" >&6; }
 
18959
buggygetaddrinfo=yes
 
18960
 
 
18961
fi
 
18962
 
 
18963
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18964
      conftest$ac_exeext conftest.$ac_ext
 
18965
 
 
18966
if test "$buggygetaddrinfo" = "yes"; then
 
18967
        if test "$ipv6" = "yes"; then
 
18968
                echo 'Fatal: You must get working getaddrinfo() function.'
 
18969
                echo '       or you can specify "--disable-ipv6"'.
 
18970
                exit 1
 
18971
        fi
 
18972
else
 
18973
 
 
18974
cat >>confdefs.h <<\_ACEOF
 
18975
#define HAVE_GETADDRINFO 1
 
18976
_ACEOF
 
18977
 
 
18978
fi
 
18979
 
 
18980
for ac_func in getnameinfo
 
18981
do
 
18982
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18983
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18984
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18985
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18987
else
 
18988
  cat >conftest.$ac_ext <<_ACEOF
 
18989
/* confdefs.h.  */
 
18990
_ACEOF
 
18991
cat confdefs.h >>conftest.$ac_ext
 
18992
cat >>conftest.$ac_ext <<_ACEOF
 
18993
/* end confdefs.h.  */
 
18994
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18995
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18996
#define $ac_func innocuous_$ac_func
 
18997
 
 
18998
/* System header to define __stub macros and hopefully few prototypes,
 
18999
    which can conflict with char $ac_func (); below.
 
19000
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19001
    <limits.h> exists even on freestanding compilers.  */
 
19002
 
 
19003
#ifdef __STDC__
 
19004
# include <limits.h>
 
19005
#else
 
19006
# include <assert.h>
 
19007
#endif
 
19008
 
 
19009
#undef $ac_func
 
19010
 
 
19011
/* Override any GCC internal prototype to avoid an error.
 
19012
   Use char because int might match the return type of a GCC
 
19013
   builtin and then its argument prototype would still apply.  */
 
19014
#ifdef __cplusplus
 
19015
extern "C"
 
19016
#endif
 
19017
char $ac_func ();
 
19018
/* The GNU C library defines this for functions which it implements
 
19019
    to always fail with ENOSYS.  Some functions are actually named
 
19020
    something starting with __ and the normal name is an alias.  */
 
19021
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19022
choke me
 
19023
#endif
 
19024
 
 
19025
int
 
19026
main ()
 
19027
{
 
19028
return $ac_func ();
 
19029
  ;
 
19030
  return 0;
 
19031
}
 
19032
_ACEOF
 
19033
rm -f conftest.$ac_objext conftest$ac_exeext
 
19034
if { (ac_try="$ac_link"
 
19035
case "(($ac_try" in
 
19036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19037
  *) ac_try_echo=$ac_try;;
 
19038
esac
 
19039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19040
  (eval "$ac_link") 2>conftest.er1
 
19041
  ac_status=$?
 
19042
  grep -v '^ *+' conftest.er1 >conftest.err
 
19043
  rm -f conftest.er1
 
19044
  cat conftest.err >&5
 
19045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19046
  (exit $ac_status); } && {
 
19047
         test -z "$ac_c_werror_flag" ||
 
19048
         test ! -s conftest.err
 
19049
       } && test -s conftest$ac_exeext &&
 
19050
       $as_test_x conftest$ac_exeext; then
 
19051
  eval "$as_ac_var=yes"
 
19052
else
 
19053
  echo "$as_me: failed program was:" >&5
 
19054
sed 's/^/| /' conftest.$ac_ext >&5
 
19055
 
 
19056
        eval "$as_ac_var=no"
 
19057
fi
 
19058
 
 
19059
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19060
      conftest$ac_exeext conftest.$ac_ext
 
19061
fi
 
19062
ac_res=`eval echo '${'$as_ac_var'}'`
 
19063
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19064
echo "${ECHO_T}$ac_res" >&6; }
 
19065
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19066
  cat >>confdefs.h <<_ACEOF
 
19067
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19068
_ACEOF
 
19069
 
 
19070
fi
 
19071
done
 
19072
 
 
19073
 
 
19074
# checks for structures
 
19075
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
19076
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
19077
if test "${ac_cv_header_time+set}" = set; then
 
19078
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19079
else
 
19080
  cat >conftest.$ac_ext <<_ACEOF
 
19081
/* confdefs.h.  */
 
19082
_ACEOF
 
19083
cat confdefs.h >>conftest.$ac_ext
 
19084
cat >>conftest.$ac_ext <<_ACEOF
 
19085
/* end confdefs.h.  */
 
19086
#include <sys/types.h>
 
19087
#include <sys/time.h>
 
19088
#include <time.h>
 
19089
 
 
19090
int
 
19091
main ()
 
19092
{
 
19093
if ((struct tm *) 0)
 
19094
return 0;
 
19095
  ;
 
19096
  return 0;
 
19097
}
 
19098
_ACEOF
 
19099
rm -f conftest.$ac_objext
 
19100
if { (ac_try="$ac_compile"
 
19101
case "(($ac_try" in
 
19102
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19103
  *) ac_try_echo=$ac_try;;
 
19104
esac
 
19105
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19106
  (eval "$ac_compile") 2>conftest.er1
 
19107
  ac_status=$?
 
19108
  grep -v '^ *+' conftest.er1 >conftest.err
 
19109
  rm -f conftest.er1
 
19110
  cat conftest.err >&5
 
19111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19112
  (exit $ac_status); } && {
 
19113
         test -z "$ac_c_werror_flag" ||
 
19114
         test ! -s conftest.err
 
19115
       } && test -s conftest.$ac_objext; then
 
19116
  ac_cv_header_time=yes
 
19117
else
 
19118
  echo "$as_me: failed program was:" >&5
 
19119
sed 's/^/| /' conftest.$ac_ext >&5
 
19120
 
 
19121
        ac_cv_header_time=no
 
19122
fi
 
19123
 
 
19124
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19125
fi
 
19126
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
19127
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
19128
if test $ac_cv_header_time = yes; then
 
19129
 
 
19130
cat >>confdefs.h <<\_ACEOF
 
19131
#define TIME_WITH_SYS_TIME 1
 
19132
_ACEOF
 
19133
 
 
19134
fi
 
19135
 
 
19136
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
19137
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
 
19138
if test "${ac_cv_struct_tm+set}" = set; then
 
19139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19140
else
 
19141
  cat >conftest.$ac_ext <<_ACEOF
 
19142
/* confdefs.h.  */
 
19143
_ACEOF
 
19144
cat confdefs.h >>conftest.$ac_ext
 
19145
cat >>conftest.$ac_ext <<_ACEOF
 
19146
/* end confdefs.h.  */
 
19147
#include <sys/types.h>
 
19148
#include <time.h>
 
19149
 
 
19150
int
 
19151
main ()
 
19152
{
 
19153
struct tm tm;
 
19154
                                     int *p = &tm.tm_sec;
 
19155
                                     return !p;
 
19156
  ;
 
19157
  return 0;
 
19158
}
 
19159
_ACEOF
 
19160
rm -f conftest.$ac_objext
 
19161
if { (ac_try="$ac_compile"
 
19162
case "(($ac_try" in
 
19163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19164
  *) ac_try_echo=$ac_try;;
 
19165
esac
 
19166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19167
  (eval "$ac_compile") 2>conftest.er1
 
19168
  ac_status=$?
 
19169
  grep -v '^ *+' conftest.er1 >conftest.err
 
19170
  rm -f conftest.er1
 
19171
  cat conftest.err >&5
 
19172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19173
  (exit $ac_status); } && {
 
19174
         test -z "$ac_c_werror_flag" ||
 
19175
         test ! -s conftest.err
 
19176
       } && test -s conftest.$ac_objext; then
 
19177
  ac_cv_struct_tm=time.h
 
19178
else
 
19179
  echo "$as_me: failed program was:" >&5
 
19180
sed 's/^/| /' conftest.$ac_ext >&5
 
19181
 
 
19182
        ac_cv_struct_tm=sys/time.h
 
19183
fi
 
19184
 
 
19185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19186
fi
 
19187
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
19188
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
 
19189
if test $ac_cv_struct_tm = sys/time.h; then
 
19190
 
 
19191
cat >>confdefs.h <<\_ACEOF
 
19192
#define TM_IN_SYS_TIME 1
 
19193
_ACEOF
 
19194
 
 
19195
fi
 
19196
 
 
19197
{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
 
19198
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
 
19199
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
 
19200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19201
else
 
19202
  cat >conftest.$ac_ext <<_ACEOF
 
19203
/* confdefs.h.  */
 
19204
_ACEOF
 
19205
cat confdefs.h >>conftest.$ac_ext
 
19206
cat >>conftest.$ac_ext <<_ACEOF
 
19207
/* end confdefs.h.  */
 
19208
#include <sys/types.h>
 
19209
#include <$ac_cv_struct_tm>
 
19210
 
 
19211
 
 
19212
int
 
19213
main ()
 
19214
{
 
19215
static struct tm ac_aggr;
 
19216
if (ac_aggr.tm_zone)
 
19217
return 0;
 
19218
  ;
 
19219
  return 0;
 
19220
}
 
19221
_ACEOF
 
19222
rm -f conftest.$ac_objext
 
19223
if { (ac_try="$ac_compile"
 
19224
case "(($ac_try" in
 
19225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19226
  *) ac_try_echo=$ac_try;;
 
19227
esac
 
19228
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19229
  (eval "$ac_compile") 2>conftest.er1
 
19230
  ac_status=$?
 
19231
  grep -v '^ *+' conftest.er1 >conftest.err
 
19232
  rm -f conftest.er1
 
19233
  cat conftest.err >&5
 
19234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19235
  (exit $ac_status); } && {
 
19236
         test -z "$ac_c_werror_flag" ||
 
19237
         test ! -s conftest.err
 
19238
       } && test -s conftest.$ac_objext; then
 
19239
  ac_cv_member_struct_tm_tm_zone=yes
 
19240
else
 
19241
  echo "$as_me: failed program was:" >&5
 
19242
sed 's/^/| /' conftest.$ac_ext >&5
 
19243
 
 
19244
        cat >conftest.$ac_ext <<_ACEOF
 
19245
/* confdefs.h.  */
 
19246
_ACEOF
 
19247
cat confdefs.h >>conftest.$ac_ext
 
19248
cat >>conftest.$ac_ext <<_ACEOF
 
19249
/* end confdefs.h.  */
 
19250
#include <sys/types.h>
 
19251
#include <$ac_cv_struct_tm>
 
19252
 
 
19253
 
 
19254
int
 
19255
main ()
 
19256
{
 
19257
static struct tm ac_aggr;
 
19258
if (sizeof ac_aggr.tm_zone)
 
19259
return 0;
 
19260
  ;
 
19261
  return 0;
 
19262
}
 
19263
_ACEOF
 
19264
rm -f conftest.$ac_objext
 
19265
if { (ac_try="$ac_compile"
 
19266
case "(($ac_try" in
 
19267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19268
  *) ac_try_echo=$ac_try;;
 
19269
esac
 
19270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19271
  (eval "$ac_compile") 2>conftest.er1
 
19272
  ac_status=$?
 
19273
  grep -v '^ *+' conftest.er1 >conftest.err
 
19274
  rm -f conftest.er1
 
19275
  cat conftest.err >&5
 
19276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19277
  (exit $ac_status); } && {
 
19278
         test -z "$ac_c_werror_flag" ||
 
19279
         test ! -s conftest.err
 
19280
       } && test -s conftest.$ac_objext; then
 
19281
  ac_cv_member_struct_tm_tm_zone=yes
 
19282
else
 
19283
  echo "$as_me: failed program was:" >&5
 
19284
sed 's/^/| /' conftest.$ac_ext >&5
 
19285
 
 
19286
        ac_cv_member_struct_tm_tm_zone=no
 
19287
fi
 
19288
 
 
19289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19290
fi
 
19291
 
 
19292
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19293
fi
 
19294
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
 
19295
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
 
19296
if test $ac_cv_member_struct_tm_tm_zone = yes; then
 
19297
 
 
19298
cat >>confdefs.h <<_ACEOF
 
19299
#define HAVE_STRUCT_TM_TM_ZONE 1
 
19300
_ACEOF
 
19301
 
 
19302
 
 
19303
fi
 
19304
 
 
19305
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
 
19306
 
 
19307
cat >>confdefs.h <<\_ACEOF
 
19308
#define HAVE_TM_ZONE 1
 
19309
_ACEOF
 
19310
 
 
19311
else
 
19312
  { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
 
19313
echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
 
19314
if test "${ac_cv_have_decl_tzname+set}" = set; then
 
19315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19316
else
 
19317
  cat >conftest.$ac_ext <<_ACEOF
 
19318
/* confdefs.h.  */
 
19319
_ACEOF
 
19320
cat confdefs.h >>conftest.$ac_ext
 
19321
cat >>conftest.$ac_ext <<_ACEOF
 
19322
/* end confdefs.h.  */
 
19323
#include <time.h>
 
19324
 
 
19325
int
 
19326
main ()
 
19327
{
 
19328
#ifndef tzname
 
19329
  (void) tzname;
 
19330
#endif
 
19331
 
 
19332
  ;
 
19333
  return 0;
 
19334
}
 
19335
_ACEOF
 
19336
rm -f conftest.$ac_objext
 
19337
if { (ac_try="$ac_compile"
 
19338
case "(($ac_try" in
 
19339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19340
  *) ac_try_echo=$ac_try;;
 
19341
esac
 
19342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19343
  (eval "$ac_compile") 2>conftest.er1
 
19344
  ac_status=$?
 
19345
  grep -v '^ *+' conftest.er1 >conftest.err
 
19346
  rm -f conftest.er1
 
19347
  cat conftest.err >&5
 
19348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19349
  (exit $ac_status); } && {
 
19350
         test -z "$ac_c_werror_flag" ||
 
19351
         test ! -s conftest.err
 
19352
       } && test -s conftest.$ac_objext; then
 
19353
  ac_cv_have_decl_tzname=yes
 
19354
else
 
19355
  echo "$as_me: failed program was:" >&5
 
19356
sed 's/^/| /' conftest.$ac_ext >&5
 
19357
 
 
19358
        ac_cv_have_decl_tzname=no
 
19359
fi
 
19360
 
 
19361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19362
fi
 
19363
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
 
19364
echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
 
19365
if test $ac_cv_have_decl_tzname = yes; then
 
19366
 
 
19367
cat >>confdefs.h <<_ACEOF
 
19368
#define HAVE_DECL_TZNAME 1
 
19369
_ACEOF
 
19370
 
 
19371
 
 
19372
else
 
19373
  cat >>confdefs.h <<_ACEOF
 
19374
#define HAVE_DECL_TZNAME 0
 
19375
_ACEOF
 
19376
 
 
19377
 
 
19378
fi
 
19379
 
 
19380
 
 
19381
  { echo "$as_me:$LINENO: checking for tzname" >&5
 
19382
echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
 
19383
if test "${ac_cv_var_tzname+set}" = set; then
 
19384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19385
else
 
19386
  cat >conftest.$ac_ext <<_ACEOF
 
19387
/* confdefs.h.  */
 
19388
_ACEOF
 
19389
cat confdefs.h >>conftest.$ac_ext
 
19390
cat >>conftest.$ac_ext <<_ACEOF
 
19391
/* end confdefs.h.  */
 
19392
#include <time.h>
 
19393
#if !HAVE_DECL_TZNAME
 
19394
extern char *tzname[];
 
19395
#endif
 
19396
 
 
19397
int
 
19398
main ()
 
19399
{
 
19400
return tzname[0][0];
 
19401
  ;
 
19402
  return 0;
 
19403
}
 
19404
_ACEOF
 
19405
rm -f conftest.$ac_objext conftest$ac_exeext
 
19406
if { (ac_try="$ac_link"
 
19407
case "(($ac_try" in
 
19408
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19409
  *) ac_try_echo=$ac_try;;
 
19410
esac
 
19411
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19412
  (eval "$ac_link") 2>conftest.er1
 
19413
  ac_status=$?
 
19414
  grep -v '^ *+' conftest.er1 >conftest.err
 
19415
  rm -f conftest.er1
 
19416
  cat conftest.err >&5
 
19417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19418
  (exit $ac_status); } && {
 
19419
         test -z "$ac_c_werror_flag" ||
 
19420
         test ! -s conftest.err
 
19421
       } && test -s conftest$ac_exeext &&
 
19422
       $as_test_x conftest$ac_exeext; then
 
19423
  ac_cv_var_tzname=yes
 
19424
else
 
19425
  echo "$as_me: failed program was:" >&5
 
19426
sed 's/^/| /' conftest.$ac_ext >&5
 
19427
 
 
19428
        ac_cv_var_tzname=no
 
19429
fi
 
19430
 
 
19431
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19432
      conftest$ac_exeext conftest.$ac_ext
 
19433
fi
 
19434
{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
 
19435
echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
 
19436
  if test $ac_cv_var_tzname = yes; then
 
19437
 
 
19438
cat >>confdefs.h <<\_ACEOF
 
19439
#define HAVE_TZNAME 1
 
19440
_ACEOF
 
19441
 
 
19442
  fi
 
19443
fi
 
19444
 
 
19445
{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
 
19446
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
 
19447
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
 
19448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19449
else
 
19450
  cat >conftest.$ac_ext <<_ACEOF
 
19451
/* confdefs.h.  */
 
19452
_ACEOF
 
19453
cat confdefs.h >>conftest.$ac_ext
 
19454
cat >>conftest.$ac_ext <<_ACEOF
 
19455
/* end confdefs.h.  */
 
19456
$ac_includes_default
 
19457
int
 
19458
main ()
 
19459
{
 
19460
static struct stat ac_aggr;
 
19461
if (ac_aggr.st_rdev)
 
19462
return 0;
 
19463
  ;
 
19464
  return 0;
 
19465
}
 
19466
_ACEOF
 
19467
rm -f conftest.$ac_objext
 
19468
if { (ac_try="$ac_compile"
 
19469
case "(($ac_try" in
 
19470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19471
  *) ac_try_echo=$ac_try;;
 
19472
esac
 
19473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19474
  (eval "$ac_compile") 2>conftest.er1
 
19475
  ac_status=$?
 
19476
  grep -v '^ *+' conftest.er1 >conftest.err
 
19477
  rm -f conftest.er1
 
19478
  cat conftest.err >&5
 
19479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19480
  (exit $ac_status); } && {
 
19481
         test -z "$ac_c_werror_flag" ||
 
19482
         test ! -s conftest.err
 
19483
       } && test -s conftest.$ac_objext; then
 
19484
  ac_cv_member_struct_stat_st_rdev=yes
 
19485
else
 
19486
  echo "$as_me: failed program was:" >&5
 
19487
sed 's/^/| /' conftest.$ac_ext >&5
 
19488
 
 
19489
        cat >conftest.$ac_ext <<_ACEOF
 
19490
/* confdefs.h.  */
 
19491
_ACEOF
 
19492
cat confdefs.h >>conftest.$ac_ext
 
19493
cat >>conftest.$ac_ext <<_ACEOF
 
19494
/* end confdefs.h.  */
 
19495
$ac_includes_default
 
19496
int
 
19497
main ()
 
19498
{
 
19499
static struct stat ac_aggr;
 
19500
if (sizeof ac_aggr.st_rdev)
 
19501
return 0;
 
19502
  ;
 
19503
  return 0;
 
19504
}
 
19505
_ACEOF
 
19506
rm -f conftest.$ac_objext
 
19507
if { (ac_try="$ac_compile"
 
19508
case "(($ac_try" in
 
19509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19510
  *) ac_try_echo=$ac_try;;
 
19511
esac
 
19512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19513
  (eval "$ac_compile") 2>conftest.er1
 
19514
  ac_status=$?
 
19515
  grep -v '^ *+' conftest.er1 >conftest.err
 
19516
  rm -f conftest.er1
 
19517
  cat conftest.err >&5
 
19518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19519
  (exit $ac_status); } && {
 
19520
         test -z "$ac_c_werror_flag" ||
 
19521
         test ! -s conftest.err
 
19522
       } && test -s conftest.$ac_objext; then
 
19523
  ac_cv_member_struct_stat_st_rdev=yes
 
19524
else
 
19525
  echo "$as_me: failed program was:" >&5
 
19526
sed 's/^/| /' conftest.$ac_ext >&5
 
19527
 
 
19528
        ac_cv_member_struct_stat_st_rdev=no
 
19529
fi
 
19530
 
 
19531
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19532
fi
 
19533
 
 
19534
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19535
fi
 
19536
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
 
19537
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
 
19538
if test $ac_cv_member_struct_stat_st_rdev = yes; then
 
19539
 
 
19540
cat >>confdefs.h <<_ACEOF
 
19541
#define HAVE_STRUCT_STAT_ST_RDEV 1
 
19542
_ACEOF
 
19543
 
 
19544
 
 
19545
fi
 
19546
 
 
19547
{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
 
19548
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
 
19549
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
 
19550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19551
else
 
19552
  cat >conftest.$ac_ext <<_ACEOF
 
19553
/* confdefs.h.  */
 
19554
_ACEOF
 
19555
cat confdefs.h >>conftest.$ac_ext
 
19556
cat >>conftest.$ac_ext <<_ACEOF
 
19557
/* end confdefs.h.  */
 
19558
$ac_includes_default
 
19559
int
 
19560
main ()
 
19561
{
 
19562
static struct stat ac_aggr;
 
19563
if (ac_aggr.st_blksize)
 
19564
return 0;
 
19565
  ;
 
19566
  return 0;
 
19567
}
 
19568
_ACEOF
 
19569
rm -f conftest.$ac_objext
 
19570
if { (ac_try="$ac_compile"
 
19571
case "(($ac_try" in
 
19572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19573
  *) ac_try_echo=$ac_try;;
 
19574
esac
 
19575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19576
  (eval "$ac_compile") 2>conftest.er1
 
19577
  ac_status=$?
 
19578
  grep -v '^ *+' conftest.er1 >conftest.err
 
19579
  rm -f conftest.er1
 
19580
  cat conftest.err >&5
 
19581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19582
  (exit $ac_status); } && {
 
19583
         test -z "$ac_c_werror_flag" ||
 
19584
         test ! -s conftest.err
 
19585
       } && test -s conftest.$ac_objext; then
 
19586
  ac_cv_member_struct_stat_st_blksize=yes
 
19587
else
 
19588
  echo "$as_me: failed program was:" >&5
 
19589
sed 's/^/| /' conftest.$ac_ext >&5
 
19590
 
 
19591
        cat >conftest.$ac_ext <<_ACEOF
 
19592
/* confdefs.h.  */
 
19593
_ACEOF
 
19594
cat confdefs.h >>conftest.$ac_ext
 
19595
cat >>conftest.$ac_ext <<_ACEOF
 
19596
/* end confdefs.h.  */
 
19597
$ac_includes_default
 
19598
int
 
19599
main ()
 
19600
{
 
19601
static struct stat ac_aggr;
 
19602
if (sizeof ac_aggr.st_blksize)
 
19603
return 0;
 
19604
  ;
 
19605
  return 0;
 
19606
}
 
19607
_ACEOF
 
19608
rm -f conftest.$ac_objext
 
19609
if { (ac_try="$ac_compile"
 
19610
case "(($ac_try" in
 
19611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19612
  *) ac_try_echo=$ac_try;;
 
19613
esac
 
19614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19615
  (eval "$ac_compile") 2>conftest.er1
 
19616
  ac_status=$?
 
19617
  grep -v '^ *+' conftest.er1 >conftest.err
 
19618
  rm -f conftest.er1
 
19619
  cat conftest.err >&5
 
19620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19621
  (exit $ac_status); } && {
 
19622
         test -z "$ac_c_werror_flag" ||
 
19623
         test ! -s conftest.err
 
19624
       } && test -s conftest.$ac_objext; then
 
19625
  ac_cv_member_struct_stat_st_blksize=yes
 
19626
else
 
19627
  echo "$as_me: failed program was:" >&5
 
19628
sed 's/^/| /' conftest.$ac_ext >&5
 
19629
 
 
19630
        ac_cv_member_struct_stat_st_blksize=no
 
19631
fi
 
19632
 
 
19633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19634
fi
 
19635
 
 
19636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19637
fi
 
19638
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
 
19639
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
 
19640
if test $ac_cv_member_struct_stat_st_blksize = yes; then
 
19641
 
 
19642
cat >>confdefs.h <<_ACEOF
 
19643
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
 
19644
_ACEOF
 
19645
 
 
19646
 
 
19647
fi
 
19648
 
 
19649
{ echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
 
19650
echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
 
19651
if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
 
19652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19653
else
 
19654
  cat >conftest.$ac_ext <<_ACEOF
 
19655
/* confdefs.h.  */
 
19656
_ACEOF
 
19657
cat confdefs.h >>conftest.$ac_ext
 
19658
cat >>conftest.$ac_ext <<_ACEOF
 
19659
/* end confdefs.h.  */
 
19660
$ac_includes_default
 
19661
int
 
19662
main ()
 
19663
{
 
19664
static struct stat ac_aggr;
 
19665
if (ac_aggr.st_flags)
 
19666
return 0;
 
19667
  ;
 
19668
  return 0;
 
19669
}
 
19670
_ACEOF
 
19671
rm -f conftest.$ac_objext
 
19672
if { (ac_try="$ac_compile"
 
19673
case "(($ac_try" in
 
19674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19675
  *) ac_try_echo=$ac_try;;
 
19676
esac
 
19677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19678
  (eval "$ac_compile") 2>conftest.er1
 
19679
  ac_status=$?
 
19680
  grep -v '^ *+' conftest.er1 >conftest.err
 
19681
  rm -f conftest.er1
 
19682
  cat conftest.err >&5
 
19683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19684
  (exit $ac_status); } && {
 
19685
         test -z "$ac_c_werror_flag" ||
 
19686
         test ! -s conftest.err
 
19687
       } && test -s conftest.$ac_objext; then
 
19688
  ac_cv_member_struct_stat_st_flags=yes
 
19689
else
 
19690
  echo "$as_me: failed program was:" >&5
 
19691
sed 's/^/| /' conftest.$ac_ext >&5
 
19692
 
 
19693
        cat >conftest.$ac_ext <<_ACEOF
 
19694
/* confdefs.h.  */
 
19695
_ACEOF
 
19696
cat confdefs.h >>conftest.$ac_ext
 
19697
cat >>conftest.$ac_ext <<_ACEOF
 
19698
/* end confdefs.h.  */
 
19699
$ac_includes_default
 
19700
int
 
19701
main ()
 
19702
{
 
19703
static struct stat ac_aggr;
 
19704
if (sizeof ac_aggr.st_flags)
 
19705
return 0;
 
19706
  ;
 
19707
  return 0;
 
19708
}
 
19709
_ACEOF
 
19710
rm -f conftest.$ac_objext
 
19711
if { (ac_try="$ac_compile"
 
19712
case "(($ac_try" in
 
19713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19714
  *) ac_try_echo=$ac_try;;
 
19715
esac
 
19716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19717
  (eval "$ac_compile") 2>conftest.er1
 
19718
  ac_status=$?
 
19719
  grep -v '^ *+' conftest.er1 >conftest.err
 
19720
  rm -f conftest.er1
 
19721
  cat conftest.err >&5
 
19722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19723
  (exit $ac_status); } && {
 
19724
         test -z "$ac_c_werror_flag" ||
 
19725
         test ! -s conftest.err
 
19726
       } && test -s conftest.$ac_objext; then
 
19727
  ac_cv_member_struct_stat_st_flags=yes
 
19728
else
 
19729
  echo "$as_me: failed program was:" >&5
 
19730
sed 's/^/| /' conftest.$ac_ext >&5
 
19731
 
 
19732
        ac_cv_member_struct_stat_st_flags=no
 
19733
fi
 
19734
 
 
19735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19736
fi
 
19737
 
 
19738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19739
fi
 
19740
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
 
19741
echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
 
19742
if test $ac_cv_member_struct_stat_st_flags = yes; then
 
19743
 
 
19744
cat >>confdefs.h <<_ACEOF
 
19745
#define HAVE_STRUCT_STAT_ST_FLAGS 1
 
19746
_ACEOF
 
19747
 
 
19748
 
 
19749
fi
 
19750
 
 
19751
{ echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
 
19752
echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
 
19753
if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
 
19754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19755
else
 
19756
  cat >conftest.$ac_ext <<_ACEOF
 
19757
/* confdefs.h.  */
 
19758
_ACEOF
 
19759
cat confdefs.h >>conftest.$ac_ext
 
19760
cat >>conftest.$ac_ext <<_ACEOF
 
19761
/* end confdefs.h.  */
 
19762
$ac_includes_default
 
19763
int
 
19764
main ()
 
19765
{
 
19766
static struct stat ac_aggr;
 
19767
if (ac_aggr.st_gen)
 
19768
return 0;
 
19769
  ;
 
19770
  return 0;
 
19771
}
 
19772
_ACEOF
 
19773
rm -f conftest.$ac_objext
 
19774
if { (ac_try="$ac_compile"
 
19775
case "(($ac_try" in
 
19776
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19777
  *) ac_try_echo=$ac_try;;
 
19778
esac
 
19779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19780
  (eval "$ac_compile") 2>conftest.er1
 
19781
  ac_status=$?
 
19782
  grep -v '^ *+' conftest.er1 >conftest.err
 
19783
  rm -f conftest.er1
 
19784
  cat conftest.err >&5
 
19785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19786
  (exit $ac_status); } && {
 
19787
         test -z "$ac_c_werror_flag" ||
 
19788
         test ! -s conftest.err
 
19789
       } && test -s conftest.$ac_objext; then
 
19790
  ac_cv_member_struct_stat_st_gen=yes
 
19791
else
 
19792
  echo "$as_me: failed program was:" >&5
 
19793
sed 's/^/| /' conftest.$ac_ext >&5
 
19794
 
 
19795
        cat >conftest.$ac_ext <<_ACEOF
 
19796
/* confdefs.h.  */
 
19797
_ACEOF
 
19798
cat confdefs.h >>conftest.$ac_ext
 
19799
cat >>conftest.$ac_ext <<_ACEOF
 
19800
/* end confdefs.h.  */
 
19801
$ac_includes_default
 
19802
int
 
19803
main ()
 
19804
{
 
19805
static struct stat ac_aggr;
 
19806
if (sizeof ac_aggr.st_gen)
 
19807
return 0;
 
19808
  ;
 
19809
  return 0;
 
19810
}
 
19811
_ACEOF
 
19812
rm -f conftest.$ac_objext
 
19813
if { (ac_try="$ac_compile"
 
19814
case "(($ac_try" in
 
19815
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19816
  *) ac_try_echo=$ac_try;;
 
19817
esac
 
19818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19819
  (eval "$ac_compile") 2>conftest.er1
 
19820
  ac_status=$?
 
19821
  grep -v '^ *+' conftest.er1 >conftest.err
 
19822
  rm -f conftest.er1
 
19823
  cat conftest.err >&5
 
19824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19825
  (exit $ac_status); } && {
 
19826
         test -z "$ac_c_werror_flag" ||
 
19827
         test ! -s conftest.err
 
19828
       } && test -s conftest.$ac_objext; then
 
19829
  ac_cv_member_struct_stat_st_gen=yes
 
19830
else
 
19831
  echo "$as_me: failed program was:" >&5
 
19832
sed 's/^/| /' conftest.$ac_ext >&5
 
19833
 
 
19834
        ac_cv_member_struct_stat_st_gen=no
 
19835
fi
 
19836
 
 
19837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19838
fi
 
19839
 
 
19840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19841
fi
 
19842
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
 
19843
echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
 
19844
if test $ac_cv_member_struct_stat_st_gen = yes; then
 
19845
 
 
19846
cat >>confdefs.h <<_ACEOF
 
19847
#define HAVE_STRUCT_STAT_ST_GEN 1
 
19848
_ACEOF
 
19849
 
 
19850
 
 
19851
fi
 
19852
 
 
19853
{ echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
 
19854
echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
 
19855
if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
 
19856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19857
else
 
19858
  cat >conftest.$ac_ext <<_ACEOF
 
19859
/* confdefs.h.  */
 
19860
_ACEOF
 
19861
cat confdefs.h >>conftest.$ac_ext
 
19862
cat >>conftest.$ac_ext <<_ACEOF
 
19863
/* end confdefs.h.  */
 
19864
$ac_includes_default
 
19865
int
 
19866
main ()
 
19867
{
 
19868
static struct stat ac_aggr;
 
19869
if (ac_aggr.st_birthtime)
 
19870
return 0;
 
19871
  ;
 
19872
  return 0;
 
19873
}
 
19874
_ACEOF
 
19875
rm -f conftest.$ac_objext
 
19876
if { (ac_try="$ac_compile"
 
19877
case "(($ac_try" in
 
19878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19879
  *) ac_try_echo=$ac_try;;
 
19880
esac
 
19881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19882
  (eval "$ac_compile") 2>conftest.er1
 
19883
  ac_status=$?
 
19884
  grep -v '^ *+' conftest.er1 >conftest.err
 
19885
  rm -f conftest.er1
 
19886
  cat conftest.err >&5
 
19887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19888
  (exit $ac_status); } && {
 
19889
         test -z "$ac_c_werror_flag" ||
 
19890
         test ! -s conftest.err
 
19891
       } && test -s conftest.$ac_objext; then
 
19892
  ac_cv_member_struct_stat_st_birthtime=yes
 
19893
else
 
19894
  echo "$as_me: failed program was:" >&5
 
19895
sed 's/^/| /' conftest.$ac_ext >&5
 
19896
 
 
19897
        cat >conftest.$ac_ext <<_ACEOF
 
19898
/* confdefs.h.  */
 
19899
_ACEOF
 
19900
cat confdefs.h >>conftest.$ac_ext
 
19901
cat >>conftest.$ac_ext <<_ACEOF
 
19902
/* end confdefs.h.  */
 
19903
$ac_includes_default
 
19904
int
 
19905
main ()
 
19906
{
 
19907
static struct stat ac_aggr;
 
19908
if (sizeof ac_aggr.st_birthtime)
 
19909
return 0;
 
19910
  ;
 
19911
  return 0;
 
19912
}
 
19913
_ACEOF
 
19914
rm -f conftest.$ac_objext
 
19915
if { (ac_try="$ac_compile"
 
19916
case "(($ac_try" in
 
19917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19918
  *) ac_try_echo=$ac_try;;
 
19919
esac
 
19920
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19921
  (eval "$ac_compile") 2>conftest.er1
 
19922
  ac_status=$?
 
19923
  grep -v '^ *+' conftest.er1 >conftest.err
 
19924
  rm -f conftest.er1
 
19925
  cat conftest.err >&5
 
19926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19927
  (exit $ac_status); } && {
 
19928
         test -z "$ac_c_werror_flag" ||
 
19929
         test ! -s conftest.err
 
19930
       } && test -s conftest.$ac_objext; then
 
19931
  ac_cv_member_struct_stat_st_birthtime=yes
 
19932
else
 
19933
  echo "$as_me: failed program was:" >&5
 
19934
sed 's/^/| /' conftest.$ac_ext >&5
 
19935
 
 
19936
        ac_cv_member_struct_stat_st_birthtime=no
 
19937
fi
 
19938
 
 
19939
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19940
fi
 
19941
 
 
19942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19943
fi
 
19944
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
 
19945
echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
 
19946
if test $ac_cv_member_struct_stat_st_birthtime = yes; then
 
19947
 
 
19948
cat >>confdefs.h <<_ACEOF
 
19949
#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
 
19950
_ACEOF
 
19951
 
 
19952
 
 
19953
fi
 
19954
 
 
19955
{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
 
19956
echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
 
19957
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
 
19958
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19959
else
 
19960
  cat >conftest.$ac_ext <<_ACEOF
 
19961
/* confdefs.h.  */
 
19962
_ACEOF
 
19963
cat confdefs.h >>conftest.$ac_ext
 
19964
cat >>conftest.$ac_ext <<_ACEOF
 
19965
/* end confdefs.h.  */
 
19966
$ac_includes_default
 
19967
int
 
19968
main ()
 
19969
{
 
19970
static struct stat ac_aggr;
 
19971
if (ac_aggr.st_blocks)
 
19972
return 0;
 
19973
  ;
 
19974
  return 0;
 
19975
}
 
19976
_ACEOF
 
19977
rm -f conftest.$ac_objext
 
19978
if { (ac_try="$ac_compile"
 
19979
case "(($ac_try" in
 
19980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19981
  *) ac_try_echo=$ac_try;;
 
19982
esac
 
19983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19984
  (eval "$ac_compile") 2>conftest.er1
 
19985
  ac_status=$?
 
19986
  grep -v '^ *+' conftest.er1 >conftest.err
 
19987
  rm -f conftest.er1
 
19988
  cat conftest.err >&5
 
19989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19990
  (exit $ac_status); } && {
 
19991
         test -z "$ac_c_werror_flag" ||
 
19992
         test ! -s conftest.err
 
19993
       } && test -s conftest.$ac_objext; then
 
19994
  ac_cv_member_struct_stat_st_blocks=yes
 
19995
else
 
19996
  echo "$as_me: failed program was:" >&5
 
19997
sed 's/^/| /' conftest.$ac_ext >&5
 
19998
 
 
19999
        cat >conftest.$ac_ext <<_ACEOF
 
20000
/* confdefs.h.  */
 
20001
_ACEOF
 
20002
cat confdefs.h >>conftest.$ac_ext
 
20003
cat >>conftest.$ac_ext <<_ACEOF
 
20004
/* end confdefs.h.  */
 
20005
$ac_includes_default
 
20006
int
 
20007
main ()
 
20008
{
 
20009
static struct stat ac_aggr;
 
20010
if (sizeof ac_aggr.st_blocks)
 
20011
return 0;
 
20012
  ;
 
20013
  return 0;
 
20014
}
 
20015
_ACEOF
 
20016
rm -f conftest.$ac_objext
 
20017
if { (ac_try="$ac_compile"
 
20018
case "(($ac_try" in
 
20019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20020
  *) ac_try_echo=$ac_try;;
 
20021
esac
 
20022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20023
  (eval "$ac_compile") 2>conftest.er1
 
20024
  ac_status=$?
 
20025
  grep -v '^ *+' conftest.er1 >conftest.err
 
20026
  rm -f conftest.er1
 
20027
  cat conftest.err >&5
 
20028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20029
  (exit $ac_status); } && {
 
20030
         test -z "$ac_c_werror_flag" ||
 
20031
         test ! -s conftest.err
 
20032
       } && test -s conftest.$ac_objext; then
 
20033
  ac_cv_member_struct_stat_st_blocks=yes
 
20034
else
 
20035
  echo "$as_me: failed program was:" >&5
 
20036
sed 's/^/| /' conftest.$ac_ext >&5
 
20037
 
 
20038
        ac_cv_member_struct_stat_st_blocks=no
 
20039
fi
 
20040
 
 
20041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20042
fi
 
20043
 
 
20044
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20045
fi
 
20046
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
 
20047
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
 
20048
if test $ac_cv_member_struct_stat_st_blocks = yes; then
 
20049
 
 
20050
cat >>confdefs.h <<_ACEOF
 
20051
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
 
20052
_ACEOF
 
20053
 
 
20054
 
 
20055
cat >>confdefs.h <<\_ACEOF
 
20056
#define HAVE_ST_BLOCKS 1
 
20057
_ACEOF
 
20058
 
 
20059
else
 
20060
  case " $LIBOBJS " in
 
20061
  *" fileblocks.$ac_objext "* ) ;;
 
20062
  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
 
20063
 ;;
 
20064
esac
 
20065
 
 
20066
fi
 
20067
 
 
20068
 
 
20069
 
 
20070
{ echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
 
20071
echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
 
20072
if test "${ac_cv_header_time_altzone+set}" = set; then
 
20073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20074
else
 
20075
  cat >conftest.$ac_ext <<_ACEOF
 
20076
/* confdefs.h.  */
 
20077
_ACEOF
 
20078
cat confdefs.h >>conftest.$ac_ext
 
20079
cat >>conftest.$ac_ext <<_ACEOF
 
20080
/* end confdefs.h.  */
 
20081
#include <time.h>
 
20082
int
 
20083
main ()
 
20084
{
 
20085
return altzone;
 
20086
  ;
 
20087
  return 0;
 
20088
}
 
20089
_ACEOF
 
20090
rm -f conftest.$ac_objext
 
20091
if { (ac_try="$ac_compile"
 
20092
case "(($ac_try" in
 
20093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20094
  *) ac_try_echo=$ac_try;;
 
20095
esac
 
20096
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20097
  (eval "$ac_compile") 2>conftest.er1
 
20098
  ac_status=$?
 
20099
  grep -v '^ *+' conftest.er1 >conftest.err
 
20100
  rm -f conftest.er1
 
20101
  cat conftest.err >&5
 
20102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20103
  (exit $ac_status); } && {
 
20104
         test -z "$ac_c_werror_flag" ||
 
20105
         test ! -s conftest.err
 
20106
       } && test -s conftest.$ac_objext; then
 
20107
  ac_cv_header_time_altzone=yes
 
20108
else
 
20109
  echo "$as_me: failed program was:" >&5
 
20110
sed 's/^/| /' conftest.$ac_ext >&5
 
20111
 
 
20112
        ac_cv_header_time_altzone=no
 
20113
fi
 
20114
 
 
20115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20116
fi
 
20117
 
 
20118
{ echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
 
20119
echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
 
20120
if test $ac_cv_header_time_altzone = yes; then
 
20121
 
 
20122
cat >>confdefs.h <<\_ACEOF
 
20123
#define HAVE_ALTZONE 1
 
20124
_ACEOF
 
20125
 
 
20126
fi
 
20127
 
 
20128
was_it_defined=no
 
20129
{ echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
 
20130
echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
20131
cat >conftest.$ac_ext <<_ACEOF
 
20132
/* confdefs.h.  */
 
20133
_ACEOF
 
20134
cat confdefs.h >>conftest.$ac_ext
 
20135
cat >>conftest.$ac_ext <<_ACEOF
 
20136
/* end confdefs.h.  */
 
20137
 
 
20138
#include <sys/types.h>
 
20139
#include <sys/select.h>
 
20140
#include <sys/time.h>
 
20141
 
 
20142
int
 
20143
main ()
 
20144
{
 
20145
;
 
20146
  ;
 
20147
  return 0;
 
20148
}
 
20149
_ACEOF
 
20150
rm -f conftest.$ac_objext
 
20151
if { (ac_try="$ac_compile"
 
20152
case "(($ac_try" in
 
20153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20154
  *) ac_try_echo=$ac_try;;
 
20155
esac
 
20156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20157
  (eval "$ac_compile") 2>conftest.er1
 
20158
  ac_status=$?
 
20159
  grep -v '^ *+' conftest.er1 >conftest.err
 
20160
  rm -f conftest.er1
 
20161
  cat conftest.err >&5
 
20162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20163
  (exit $ac_status); } && {
 
20164
         test -z "$ac_c_werror_flag" ||
 
20165
         test ! -s conftest.err
 
20166
       } && test -s conftest.$ac_objext; then
 
20167
 
 
20168
 
 
20169
cat >>confdefs.h <<\_ACEOF
 
20170
#define SYS_SELECT_WITH_SYS_TIME 1
 
20171
_ACEOF
 
20172
 
 
20173
  was_it_defined=yes
 
20174
 
 
20175
else
 
20176
  echo "$as_me: failed program was:" >&5
 
20177
sed 's/^/| /' conftest.$ac_ext >&5
 
20178
 
 
20179
 
 
20180
fi
 
20181
 
 
20182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20183
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
 
20184
echo "${ECHO_T}$was_it_defined" >&6; }
 
20185
 
 
20186
{ echo "$as_me:$LINENO: checking for addrinfo" >&5
 
20187
echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
 
20188
if test "${ac_cv_struct_addrinfo+set}" = set; then
 
20189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20190
else
 
20191
  cat >conftest.$ac_ext <<_ACEOF
 
20192
/* confdefs.h.  */
 
20193
_ACEOF
 
20194
cat confdefs.h >>conftest.$ac_ext
 
20195
cat >>conftest.$ac_ext <<_ACEOF
 
20196
/* end confdefs.h.  */
 
20197
 
 
20198
#               include <netdb.h>
 
20199
int
 
20200
main ()
 
20201
{
 
20202
struct addrinfo a
 
20203
  ;
 
20204
  return 0;
 
20205
}
 
20206
_ACEOF
 
20207
rm -f conftest.$ac_objext
 
20208
if { (ac_try="$ac_compile"
 
20209
case "(($ac_try" in
 
20210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20211
  *) ac_try_echo=$ac_try;;
 
20212
esac
 
20213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20214
  (eval "$ac_compile") 2>conftest.er1
 
20215
  ac_status=$?
 
20216
  grep -v '^ *+' conftest.er1 >conftest.err
 
20217
  rm -f conftest.er1
 
20218
  cat conftest.err >&5
 
20219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20220
  (exit $ac_status); } && {
 
20221
         test -z "$ac_c_werror_flag" ||
 
20222
         test ! -s conftest.err
 
20223
       } && test -s conftest.$ac_objext; then
 
20224
  ac_cv_struct_addrinfo=yes
 
20225
else
 
20226
  echo "$as_me: failed program was:" >&5
 
20227
sed 's/^/| /' conftest.$ac_ext >&5
 
20228
 
 
20229
        ac_cv_struct_addrinfo=no
 
20230
fi
 
20231
 
 
20232
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20233
fi
 
20234
 
 
20235
{ echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
 
20236
echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
 
20237
if test $ac_cv_struct_addrinfo = yes; then
 
20238
 
 
20239
cat >>confdefs.h <<\_ACEOF
 
20240
#define HAVE_ADDRINFO 1
 
20241
_ACEOF
 
20242
 
 
20243
fi
 
20244
 
 
20245
{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
 
20246
echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
 
20247
if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
 
20248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20249
else
 
20250
  cat >conftest.$ac_ext <<_ACEOF
 
20251
/* confdefs.h.  */
 
20252
_ACEOF
 
20253
cat confdefs.h >>conftest.$ac_ext
 
20254
cat >>conftest.$ac_ext <<_ACEOF
 
20255
/* end confdefs.h.  */
 
20256
 
 
20257
#               include <sys/types.h>
 
20258
#               include <sys/socket.h>
 
20259
int
 
20260
main ()
 
20261
{
 
20262
struct sockaddr_storage s
 
20263
  ;
 
20264
  return 0;
 
20265
}
 
20266
_ACEOF
 
20267
rm -f conftest.$ac_objext
 
20268
if { (ac_try="$ac_compile"
 
20269
case "(($ac_try" in
 
20270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20271
  *) ac_try_echo=$ac_try;;
 
20272
esac
 
20273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20274
  (eval "$ac_compile") 2>conftest.er1
 
20275
  ac_status=$?
 
20276
  grep -v '^ *+' conftest.er1 >conftest.err
 
20277
  rm -f conftest.er1
 
20278
  cat conftest.err >&5
 
20279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20280
  (exit $ac_status); } && {
 
20281
         test -z "$ac_c_werror_flag" ||
 
20282
         test ! -s conftest.err
 
20283
       } && test -s conftest.$ac_objext; then
 
20284
  ac_cv_struct_sockaddr_storage=yes
 
20285
else
 
20286
  echo "$as_me: failed program was:" >&5
 
20287
sed 's/^/| /' conftest.$ac_ext >&5
 
20288
 
 
20289
        ac_cv_struct_sockaddr_storage=no
 
20290
fi
 
20291
 
 
20292
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20293
fi
 
20294
 
 
20295
{ echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
 
20296
echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
 
20297
if test $ac_cv_struct_sockaddr_storage = yes; then
 
20298
 
 
20299
cat >>confdefs.h <<\_ACEOF
 
20300
#define HAVE_SOCKADDR_STORAGE 1
 
20301
_ACEOF
 
20302
 
 
20303
fi
 
20304
 
 
20305
# checks for compiler characteristics
 
20306
 
 
20307
 
 
20308
{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
 
20309
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
 
20310
if test "${ac_cv_c_char_unsigned+set}" = set; then
 
20311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20312
else
 
20313
  cat >conftest.$ac_ext <<_ACEOF
 
20314
/* confdefs.h.  */
 
20315
_ACEOF
 
20316
cat confdefs.h >>conftest.$ac_ext
 
20317
cat >>conftest.$ac_ext <<_ACEOF
 
20318
/* end confdefs.h.  */
 
20319
$ac_includes_default
 
20320
int
 
20321
main ()
 
20322
{
 
20323
static int test_array [1 - 2 * !(((char) -1) < 0)];
 
20324
test_array [0] = 0
 
20325
 
 
20326
  ;
 
20327
  return 0;
 
20328
}
 
20329
_ACEOF
 
20330
rm -f conftest.$ac_objext
 
20331
if { (ac_try="$ac_compile"
 
20332
case "(($ac_try" in
 
20333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20334
  *) ac_try_echo=$ac_try;;
 
20335
esac
 
20336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20337
  (eval "$ac_compile") 2>conftest.er1
 
20338
  ac_status=$?
 
20339
  grep -v '^ *+' conftest.er1 >conftest.err
 
20340
  rm -f conftest.er1
 
20341
  cat conftest.err >&5
 
20342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20343
  (exit $ac_status); } && {
 
20344
         test -z "$ac_c_werror_flag" ||
 
20345
         test ! -s conftest.err
 
20346
       } && test -s conftest.$ac_objext; then
 
20347
  ac_cv_c_char_unsigned=no
 
20348
else
 
20349
  echo "$as_me: failed program was:" >&5
 
20350
sed 's/^/| /' conftest.$ac_ext >&5
 
20351
 
 
20352
        ac_cv_c_char_unsigned=yes
 
20353
fi
 
20354
 
 
20355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20356
fi
 
20357
{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
 
20358
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
 
20359
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
 
20360
  cat >>confdefs.h <<\_ACEOF
 
20361
#define __CHAR_UNSIGNED__ 1
 
20362
_ACEOF
 
20363
 
 
20364
fi
 
20365
 
 
20366
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
20367
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
20368
if test "${ac_cv_c_const+set}" = set; then
 
20369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20370
else
 
20371
  cat >conftest.$ac_ext <<_ACEOF
 
20372
/* confdefs.h.  */
 
20373
_ACEOF
 
20374
cat confdefs.h >>conftest.$ac_ext
 
20375
cat >>conftest.$ac_ext <<_ACEOF
 
20376
/* end confdefs.h.  */
 
20377
 
 
20378
int
 
20379
main ()
 
20380
{
 
20381
/* FIXME: Include the comments suggested by Paul. */
 
20382
#ifndef __cplusplus
 
20383
  /* Ultrix mips cc rejects this.  */
 
20384
  typedef int charset[2];
 
20385
  const charset cs;
 
20386
  /* SunOS 4.1.1 cc rejects this.  */
 
20387
  char const *const *pcpcc;
 
20388
  char **ppc;
 
20389
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
20390
  struct point {int x, y;};
 
20391
  static struct point const zero = {0,0};
 
20392
  /* AIX XL C 1.02.0.0 rejects this.
 
20393
     It does not let you subtract one const X* pointer from another in
 
20394
     an arm of an if-expression whose if-part is not a constant
 
20395
     expression */
 
20396
  const char *g = "string";
 
20397
  pcpcc = &g + (g ? g-g : 0);
 
20398
  /* HPUX 7.0 cc rejects these. */
 
20399
  ++pcpcc;
 
20400
  ppc = (char**) pcpcc;
 
20401
  pcpcc = (char const *const *) ppc;
 
20402
  { /* SCO 3.2v4 cc rejects this.  */
 
20403
    char *t;
 
20404
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
20405
 
 
20406
    *t++ = 0;
 
20407
    if (s) return 0;
 
20408
  }
 
20409
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
20410
    int x[] = {25, 17};
 
20411
    const int *foo = &x[0];
 
20412
    ++foo;
 
20413
  }
 
20414
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
20415
    typedef const int *iptr;
 
20416
    iptr p = 0;
 
20417
    ++p;
 
20418
  }
 
20419
  { /* AIX XL C 1.02.0.0 rejects this saying
 
20420
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
20421
    struct s { int j; const int *ap[3]; };
 
20422
    struct s *b; b->j = 5;
 
20423
  }
 
20424
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
20425
    const int foo = 10;
 
20426
    if (!foo) return 0;
 
20427
  }
 
20428
  return !cs[0] && !zero.x;
 
20429
#endif
 
20430
 
 
20431
  ;
 
20432
  return 0;
 
20433
}
 
20434
_ACEOF
 
20435
rm -f conftest.$ac_objext
 
20436
if { (ac_try="$ac_compile"
 
20437
case "(($ac_try" in
 
20438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20439
  *) ac_try_echo=$ac_try;;
 
20440
esac
 
20441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20442
  (eval "$ac_compile") 2>conftest.er1
 
20443
  ac_status=$?
 
20444
  grep -v '^ *+' conftest.er1 >conftest.err
 
20445
  rm -f conftest.er1
 
20446
  cat conftest.err >&5
 
20447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20448
  (exit $ac_status); } && {
 
20449
         test -z "$ac_c_werror_flag" ||
 
20450
         test ! -s conftest.err
 
20451
       } && test -s conftest.$ac_objext; then
 
20452
  ac_cv_c_const=yes
 
20453
else
 
20454
  echo "$as_me: failed program was:" >&5
 
20455
sed 's/^/| /' conftest.$ac_ext >&5
 
20456
 
 
20457
        ac_cv_c_const=no
 
20458
fi
 
20459
 
 
20460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20461
fi
 
20462
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
20463
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
20464
if test $ac_cv_c_const = no; then
 
20465
 
 
20466
cat >>confdefs.h <<\_ACEOF
 
20467
#define const
 
20468
_ACEOF
 
20469
 
 
20470
fi
 
20471
 
 
20472
 
 
20473
works=no
 
20474
{ echo "$as_me:$LINENO: checking for working volatile" >&5
 
20475
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
 
20476
cat >conftest.$ac_ext <<_ACEOF
 
20477
/* confdefs.h.  */
 
20478
_ACEOF
 
20479
cat confdefs.h >>conftest.$ac_ext
 
20480
cat >>conftest.$ac_ext <<_ACEOF
 
20481
/* end confdefs.h.  */
 
20482
 
 
20483
int
 
20484
main ()
 
20485
{
 
20486
volatile int x; x = 0;
 
20487
  ;
 
20488
  return 0;
 
20489
}
 
20490
_ACEOF
 
20491
rm -f conftest.$ac_objext
 
20492
if { (ac_try="$ac_compile"
 
20493
case "(($ac_try" in
 
20494
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20495
  *) ac_try_echo=$ac_try;;
 
20496
esac
 
20497
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20498
  (eval "$ac_compile") 2>conftest.er1
 
20499
  ac_status=$?
 
20500
  grep -v '^ *+' conftest.er1 >conftest.err
 
20501
  rm -f conftest.er1
 
20502
  cat conftest.err >&5
 
20503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20504
  (exit $ac_status); } && {
 
20505
         test -z "$ac_c_werror_flag" ||
 
20506
         test ! -s conftest.err
 
20507
       } && test -s conftest.$ac_objext; then
 
20508
  works=yes
 
20509
else
 
20510
  echo "$as_me: failed program was:" >&5
 
20511
sed 's/^/| /' conftest.$ac_ext >&5
 
20512
 
 
20513
 
 
20514
cat >>confdefs.h <<\_ACEOF
 
20515
#define volatile
 
20516
_ACEOF
 
20517
 
 
20518
 
 
20519
fi
 
20520
 
 
20521
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20522
{ echo "$as_me:$LINENO: result: $works" >&5
 
20523
echo "${ECHO_T}$works" >&6; }
 
20524
 
 
20525
works=no
 
20526
{ echo "$as_me:$LINENO: checking for working signed char" >&5
 
20527
echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
 
20528
cat >conftest.$ac_ext <<_ACEOF
 
20529
/* confdefs.h.  */
 
20530
_ACEOF
 
20531
cat confdefs.h >>conftest.$ac_ext
 
20532
cat >>conftest.$ac_ext <<_ACEOF
 
20533
/* end confdefs.h.  */
 
20534
 
 
20535
int
 
20536
main ()
 
20537
{
 
20538
signed char c;
 
20539
  ;
 
20540
  return 0;
 
20541
}
 
20542
_ACEOF
 
20543
rm -f conftest.$ac_objext
 
20544
if { (ac_try="$ac_compile"
 
20545
case "(($ac_try" in
 
20546
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20547
  *) ac_try_echo=$ac_try;;
 
20548
esac
 
20549
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20550
  (eval "$ac_compile") 2>conftest.er1
 
20551
  ac_status=$?
 
20552
  grep -v '^ *+' conftest.er1 >conftest.err
 
20553
  rm -f conftest.er1
 
20554
  cat conftest.err >&5
 
20555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20556
  (exit $ac_status); } && {
 
20557
         test -z "$ac_c_werror_flag" ||
 
20558
         test ! -s conftest.err
 
20559
       } && test -s conftest.$ac_objext; then
 
20560
  works=yes
 
20561
else
 
20562
  echo "$as_me: failed program was:" >&5
 
20563
sed 's/^/| /' conftest.$ac_ext >&5
 
20564
 
 
20565
 
 
20566
cat >>confdefs.h <<\_ACEOF
 
20567
#define signed
 
20568
_ACEOF
 
20569
 
 
20570
 
 
20571
fi
 
20572
 
 
20573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20574
{ echo "$as_me:$LINENO: result: $works" >&5
 
20575
echo "${ECHO_T}$works" >&6; }
 
20576
 
 
20577
have_prototypes=no
 
20578
{ echo "$as_me:$LINENO: checking for prototypes" >&5
 
20579
echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
 
20580
cat >conftest.$ac_ext <<_ACEOF
 
20581
/* confdefs.h.  */
 
20582
_ACEOF
 
20583
cat confdefs.h >>conftest.$ac_ext
 
20584
cat >>conftest.$ac_ext <<_ACEOF
 
20585
/* end confdefs.h.  */
 
20586
int foo(int x) { return 0; }
 
20587
int
 
20588
main ()
 
20589
{
 
20590
return foo(10);
 
20591
  ;
 
20592
  return 0;
 
20593
}
 
20594
_ACEOF
 
20595
rm -f conftest.$ac_objext
 
20596
if { (ac_try="$ac_compile"
 
20597
case "(($ac_try" in
 
20598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20599
  *) ac_try_echo=$ac_try;;
 
20600
esac
 
20601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20602
  (eval "$ac_compile") 2>conftest.er1
 
20603
  ac_status=$?
 
20604
  grep -v '^ *+' conftest.er1 >conftest.err
 
20605
  rm -f conftest.er1
 
20606
  cat conftest.err >&5
 
20607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20608
  (exit $ac_status); } && {
 
20609
         test -z "$ac_c_werror_flag" ||
 
20610
         test ! -s conftest.err
 
20611
       } && test -s conftest.$ac_objext; then
 
20612
 
 
20613
 
 
20614
cat >>confdefs.h <<\_ACEOF
 
20615
#define HAVE_PROTOTYPES 1
 
20616
_ACEOF
 
20617
 
 
20618
  have_prototypes=yes
 
20619
 
 
20620
else
 
20621
  echo "$as_me: failed program was:" >&5
 
20622
sed 's/^/| /' conftest.$ac_ext >&5
 
20623
 
 
20624
 
 
20625
fi
 
20626
 
 
20627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20628
{ echo "$as_me:$LINENO: result: $have_prototypes" >&5
 
20629
echo "${ECHO_T}$have_prototypes" >&6; }
 
20630
 
 
20631
works=no
 
20632
{ echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
 
20633
echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
 
20634
cat >conftest.$ac_ext <<_ACEOF
 
20635
/* confdefs.h.  */
 
20636
_ACEOF
 
20637
cat confdefs.h >>conftest.$ac_ext
 
20638
cat >>conftest.$ac_ext <<_ACEOF
 
20639
/* end confdefs.h.  */
 
20640
 
 
20641
#include <stdarg.h>
 
20642
int foo(int x, ...) {
 
20643
        va_list va;
 
20644
        va_start(va, x);
 
20645
        va_arg(va, int);
 
20646
        va_arg(va, char *);
 
20647
        va_arg(va, double);
 
20648
        return 0;
 
20649
}
 
20650
 
 
20651
int
 
20652
main ()
 
20653
{
 
20654
return foo(10, "", 3.14);
 
20655
  ;
 
20656
  return 0;
 
20657
}
 
20658
_ACEOF
 
20659
rm -f conftest.$ac_objext
 
20660
if { (ac_try="$ac_compile"
 
20661
case "(($ac_try" in
 
20662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20663
  *) ac_try_echo=$ac_try;;
 
20664
esac
 
20665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20666
  (eval "$ac_compile") 2>conftest.er1
 
20667
  ac_status=$?
 
20668
  grep -v '^ *+' conftest.er1 >conftest.err
 
20669
  rm -f conftest.er1
 
20670
  cat conftest.err >&5
 
20671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20672
  (exit $ac_status); } && {
 
20673
         test -z "$ac_c_werror_flag" ||
 
20674
         test ! -s conftest.err
 
20675
       } && test -s conftest.$ac_objext; then
 
20676
 
 
20677
 
 
20678
cat >>confdefs.h <<\_ACEOF
 
20679
#define HAVE_STDARG_PROTOTYPES 1
 
20680
_ACEOF
 
20681
 
 
20682
  works=yes
 
20683
 
 
20684
else
 
20685
  echo "$as_me: failed program was:" >&5
 
20686
sed 's/^/| /' conftest.$ac_ext >&5
 
20687
 
 
20688
 
 
20689
fi
 
20690
 
 
20691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20692
{ echo "$as_me:$LINENO: result: $works" >&5
 
20693
echo "${ECHO_T}$works" >&6; }
 
20694
 
 
20695
# check for socketpair
 
20696
{ echo "$as_me:$LINENO: checking for socketpair" >&5
 
20697
echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
 
20698
cat >conftest.$ac_ext <<_ACEOF
 
20699
/* confdefs.h.  */
 
20700
_ACEOF
 
20701
cat confdefs.h >>conftest.$ac_ext
 
20702
cat >>conftest.$ac_ext <<_ACEOF
 
20703
/* end confdefs.h.  */
 
20704
 
 
20705
#include <sys/types.h>
 
20706
#include <sys/socket.h>
 
20707
 
 
20708
int
 
20709
main ()
 
20710
{
 
20711
void *x=socketpair
 
20712
  ;
 
20713
  return 0;
 
20714
}
 
20715
_ACEOF
 
20716
rm -f conftest.$ac_objext
 
20717
if { (ac_try="$ac_compile"
 
20718
case "(($ac_try" in
 
20719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20720
  *) ac_try_echo=$ac_try;;
 
20721
esac
 
20722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20723
  (eval "$ac_compile") 2>conftest.er1
 
20724
  ac_status=$?
 
20725
  grep -v '^ *+' conftest.er1 >conftest.err
 
20726
  rm -f conftest.er1
 
20727
  cat conftest.err >&5
 
20728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20729
  (exit $ac_status); } && {
 
20730
         test -z "$ac_c_werror_flag" ||
 
20731
         test ! -s conftest.err
 
20732
       } && test -s conftest.$ac_objext; then
 
20733
 
 
20734
cat >>confdefs.h <<\_ACEOF
 
20735
#define HAVE_SOCKETPAIR 1
 
20736
_ACEOF
 
20737
 
 
20738
  { echo "$as_me:$LINENO: result: yes" >&5
 
20739
echo "${ECHO_T}yes" >&6; }
 
20740
else
 
20741
  echo "$as_me: failed program was:" >&5
 
20742
sed 's/^/| /' conftest.$ac_ext >&5
 
20743
 
 
20744
        { echo "$as_me:$LINENO: result: no" >&5
 
20745
echo "${ECHO_T}no" >&6; }
 
20746
 
 
20747
fi
 
20748
 
 
20749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20750
 
 
20751
# check if sockaddr has sa_len member
 
20752
{ echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
 
20753
echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
 
20754
cat >conftest.$ac_ext <<_ACEOF
 
20755
/* confdefs.h.  */
 
20756
_ACEOF
 
20757
cat confdefs.h >>conftest.$ac_ext
 
20758
cat >>conftest.$ac_ext <<_ACEOF
 
20759
/* end confdefs.h.  */
 
20760
#include <sys/types.h>
 
20761
#include <sys/socket.h>
 
20762
int
 
20763
main ()
 
20764
{
 
20765
struct sockaddr x;
 
20766
x.sa_len = 0;
 
20767
  ;
 
20768
  return 0;
 
20769
}
 
20770
_ACEOF
 
20771
rm -f conftest.$ac_objext
 
20772
if { (ac_try="$ac_compile"
 
20773
case "(($ac_try" in
 
20774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20775
  *) ac_try_echo=$ac_try;;
 
20776
esac
 
20777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20778
  (eval "$ac_compile") 2>conftest.er1
 
20779
  ac_status=$?
 
20780
  grep -v '^ *+' conftest.er1 >conftest.err
 
20781
  rm -f conftest.er1
 
20782
  cat conftest.err >&5
 
20783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20784
  (exit $ac_status); } && {
 
20785
         test -z "$ac_c_werror_flag" ||
 
20786
         test ! -s conftest.err
 
20787
       } && test -s conftest.$ac_objext; then
 
20788
  { echo "$as_me:$LINENO: result: yes" >&5
 
20789
echo "${ECHO_T}yes" >&6; }
 
20790
 
 
20791
cat >>confdefs.h <<\_ACEOF
 
20792
#define HAVE_SOCKADDR_SA_LEN 1
 
20793
_ACEOF
 
20794
 
 
20795
else
 
20796
  echo "$as_me: failed program was:" >&5
 
20797
sed 's/^/| /' conftest.$ac_ext >&5
 
20798
 
 
20799
        { echo "$as_me:$LINENO: result: no" >&5
 
20800
echo "${ECHO_T}no" >&6; }
 
20801
fi
 
20802
 
 
20803
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20804
 
 
20805
va_list_is_array=no
 
20806
{ echo "$as_me:$LINENO: checking whether va_list is an array" >&5
 
20807
echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
 
20808
cat >conftest.$ac_ext <<_ACEOF
 
20809
/* confdefs.h.  */
 
20810
_ACEOF
 
20811
cat confdefs.h >>conftest.$ac_ext
 
20812
cat >>conftest.$ac_ext <<_ACEOF
 
20813
/* end confdefs.h.  */
 
20814
 
 
20815
#ifdef HAVE_STDARG_PROTOTYPES
 
20816
#include <stdarg.h>
 
20817
#else
 
20818
#include <varargs.h>
 
20819
#endif
 
20820
 
 
20821
int
 
20822
main ()
 
20823
{
 
20824
va_list list1, list2; list1 = list2;
 
20825
  ;
 
20826
  return 0;
 
20827
}
 
20828
_ACEOF
 
20829
rm -f conftest.$ac_objext
 
20830
if { (ac_try="$ac_compile"
 
20831
case "(($ac_try" in
 
20832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20833
  *) ac_try_echo=$ac_try;;
 
20834
esac
 
20835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20836
  (eval "$ac_compile") 2>conftest.er1
 
20837
  ac_status=$?
 
20838
  grep -v '^ *+' conftest.er1 >conftest.err
 
20839
  rm -f conftest.er1
 
20840
  cat conftest.err >&5
 
20841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20842
  (exit $ac_status); } && {
 
20843
         test -z "$ac_c_werror_flag" ||
 
20844
         test ! -s conftest.err
 
20845
       } && test -s conftest.$ac_objext; then
 
20846
  :
 
20847
else
 
20848
  echo "$as_me: failed program was:" >&5
 
20849
sed 's/^/| /' conftest.$ac_ext >&5
 
20850
 
 
20851
 
 
20852
 
 
20853
cat >>confdefs.h <<\_ACEOF
 
20854
#define VA_LIST_IS_ARRAY 1
 
20855
_ACEOF
 
20856
 
 
20857
 va_list_is_array=yes
 
20858
 
 
20859
fi
 
20860
 
 
20861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20862
{ echo "$as_me:$LINENO: result: $va_list_is_array" >&5
 
20863
echo "${ECHO_T}$va_list_is_array" >&6; }
 
20864
 
 
20865
# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
 
20866
 
 
20867
 
 
20868
 
 
20869
{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
 
20870
echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
 
20871
if test "${ac_cv_func_gethostbyname_r+set}" = set; then
 
20872
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20873
else
 
20874
  cat >conftest.$ac_ext <<_ACEOF
 
20875
/* confdefs.h.  */
 
20876
_ACEOF
 
20877
cat confdefs.h >>conftest.$ac_ext
 
20878
cat >>conftest.$ac_ext <<_ACEOF
 
20879
/* end confdefs.h.  */
 
20880
/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
 
20881
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20882
#define gethostbyname_r innocuous_gethostbyname_r
 
20883
 
 
20884
/* System header to define __stub macros and hopefully few prototypes,
 
20885
    which can conflict with char gethostbyname_r (); below.
 
20886
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20887
    <limits.h> exists even on freestanding compilers.  */
 
20888
 
 
20889
#ifdef __STDC__
 
20890
# include <limits.h>
 
20891
#else
 
20892
# include <assert.h>
 
20893
#endif
 
20894
 
 
20895
#undef gethostbyname_r
 
20896
 
 
20897
/* Override any GCC internal prototype to avoid an error.
 
20898
   Use char because int might match the return type of a GCC
 
20899
   builtin and then its argument prototype would still apply.  */
 
20900
#ifdef __cplusplus
 
20901
extern "C"
 
20902
#endif
 
20903
char gethostbyname_r ();
 
20904
/* The GNU C library defines this for functions which it implements
 
20905
    to always fail with ENOSYS.  Some functions are actually named
 
20906
    something starting with __ and the normal name is an alias.  */
 
20907
#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
 
20908
choke me
 
20909
#endif
 
20910
 
 
20911
int
 
20912
main ()
 
20913
{
 
20914
return gethostbyname_r ();
 
20915
  ;
 
20916
  return 0;
 
20917
}
 
20918
_ACEOF
 
20919
rm -f conftest.$ac_objext conftest$ac_exeext
 
20920
if { (ac_try="$ac_link"
 
20921
case "(($ac_try" in
 
20922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20923
  *) ac_try_echo=$ac_try;;
 
20924
esac
 
20925
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20926
  (eval "$ac_link") 2>conftest.er1
 
20927
  ac_status=$?
 
20928
  grep -v '^ *+' conftest.er1 >conftest.err
 
20929
  rm -f conftest.er1
 
20930
  cat conftest.err >&5
 
20931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20932
  (exit $ac_status); } && {
 
20933
         test -z "$ac_c_werror_flag" ||
 
20934
         test ! -s conftest.err
 
20935
       } && test -s conftest$ac_exeext &&
 
20936
       $as_test_x conftest$ac_exeext; then
 
20937
  ac_cv_func_gethostbyname_r=yes
 
20938
else
 
20939
  echo "$as_me: failed program was:" >&5
 
20940
sed 's/^/| /' conftest.$ac_ext >&5
 
20941
 
 
20942
        ac_cv_func_gethostbyname_r=no
 
20943
fi
 
20944
 
 
20945
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20946
      conftest$ac_exeext conftest.$ac_ext
 
20947
fi
 
20948
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
 
20949
echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
 
20950
if test $ac_cv_func_gethostbyname_r = yes; then
 
20951
 
 
20952
  cat >>confdefs.h <<\_ACEOF
 
20953
#define HAVE_GETHOSTBYNAME_R 1
 
20954
_ACEOF
 
20955
 
 
20956
  { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
 
20957
echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
 
20958
  OLD_CFLAGS=$CFLAGS
 
20959
  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
 
20960
  cat >conftest.$ac_ext <<_ACEOF
 
20961
/* confdefs.h.  */
 
20962
_ACEOF
 
20963
cat confdefs.h >>conftest.$ac_ext
 
20964
cat >>conftest.$ac_ext <<_ACEOF
 
20965
/* end confdefs.h.  */
 
20966
 
 
20967
#   include <netdb.h>
 
20968
 
 
20969
int
 
20970
main ()
 
20971
{
 
20972
 
 
20973
    char *name;
 
20974
    struct hostent *he, *res;
 
20975
    char buffer[2048];
 
20976
    int buflen = 2048;
 
20977
    int h_errnop;
 
20978
 
 
20979
    (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
 
20980
 
 
20981
  ;
 
20982
  return 0;
 
20983
}
 
20984
_ACEOF
 
20985
rm -f conftest.$ac_objext
 
20986
if { (ac_try="$ac_compile"
 
20987
case "(($ac_try" in
 
20988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20989
  *) ac_try_echo=$ac_try;;
 
20990
esac
 
20991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20992
  (eval "$ac_compile") 2>conftest.er1
 
20993
  ac_status=$?
 
20994
  grep -v '^ *+' conftest.er1 >conftest.err
 
20995
  rm -f conftest.er1
 
20996
  cat conftest.err >&5
 
20997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20998
  (exit $ac_status); } && {
 
20999
         test -z "$ac_c_werror_flag" ||
 
21000
         test ! -s conftest.err
 
21001
       } && test -s conftest.$ac_objext; then
 
21002
 
 
21003
    cat >>confdefs.h <<\_ACEOF
 
21004
#define HAVE_GETHOSTBYNAME_R 1
 
21005
_ACEOF
 
21006
 
 
21007
 
 
21008
cat >>confdefs.h <<\_ACEOF
 
21009
#define HAVE_GETHOSTBYNAME_R_6_ARG 1
 
21010
_ACEOF
 
21011
 
 
21012
    { echo "$as_me:$LINENO: result: yes" >&5
 
21013
echo "${ECHO_T}yes" >&6; }
 
21014
 
 
21015
else
 
21016
  echo "$as_me: failed program was:" >&5
 
21017
sed 's/^/| /' conftest.$ac_ext >&5
 
21018
 
 
21019
 
 
21020
    { echo "$as_me:$LINENO: result: no" >&5
 
21021
echo "${ECHO_T}no" >&6; }
 
21022
    { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
 
21023
echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
 
21024
    cat >conftest.$ac_ext <<_ACEOF
 
21025
/* confdefs.h.  */
 
21026
_ACEOF
 
21027
cat confdefs.h >>conftest.$ac_ext
 
21028
cat >>conftest.$ac_ext <<_ACEOF
 
21029
/* end confdefs.h.  */
 
21030
 
 
21031
#     include <netdb.h>
 
21032
 
 
21033
int
 
21034
main ()
 
21035
{
 
21036
 
 
21037
      char *name;
 
21038
      struct hostent *he;
 
21039
      char buffer[2048];
 
21040
      int buflen = 2048;
 
21041
      int h_errnop;
 
21042
 
 
21043
      (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
 
21044
 
 
21045
  ;
 
21046
  return 0;
 
21047
}
 
21048
_ACEOF
 
21049
rm -f conftest.$ac_objext
 
21050
if { (ac_try="$ac_compile"
 
21051
case "(($ac_try" in
 
21052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21053
  *) ac_try_echo=$ac_try;;
 
21054
esac
 
21055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21056
  (eval "$ac_compile") 2>conftest.er1
 
21057
  ac_status=$?
 
21058
  grep -v '^ *+' conftest.er1 >conftest.err
 
21059
  rm -f conftest.er1
 
21060
  cat conftest.err >&5
 
21061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21062
  (exit $ac_status); } && {
 
21063
         test -z "$ac_c_werror_flag" ||
 
21064
         test ! -s conftest.err
 
21065
       } && test -s conftest.$ac_objext; then
 
21066
 
 
21067
      cat >>confdefs.h <<\_ACEOF
 
21068
#define HAVE_GETHOSTBYNAME_R 1
 
21069
_ACEOF
 
21070
 
 
21071
 
 
21072
cat >>confdefs.h <<\_ACEOF
 
21073
#define HAVE_GETHOSTBYNAME_R_5_ARG 1
 
21074
_ACEOF
 
21075
 
 
21076
      { echo "$as_me:$LINENO: result: yes" >&5
 
21077
echo "${ECHO_T}yes" >&6; }
 
21078
 
 
21079
else
 
21080
  echo "$as_me: failed program was:" >&5
 
21081
sed 's/^/| /' conftest.$ac_ext >&5
 
21082
 
 
21083
 
 
21084
      { echo "$as_me:$LINENO: result: no" >&5
 
21085
echo "${ECHO_T}no" >&6; }
 
21086
      { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
 
21087
echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
 
21088
      cat >conftest.$ac_ext <<_ACEOF
 
21089
/* confdefs.h.  */
 
21090
_ACEOF
 
21091
cat confdefs.h >>conftest.$ac_ext
 
21092
cat >>conftest.$ac_ext <<_ACEOF
 
21093
/* end confdefs.h.  */
 
21094
 
 
21095
#       include <netdb.h>
 
21096
 
 
21097
int
 
21098
main ()
 
21099
{
 
21100
 
 
21101
        char *name;
 
21102
        struct hostent *he;
 
21103
        struct hostent_data data;
 
21104
 
 
21105
        (void) gethostbyname_r(name, he, &data);
 
21106
 
 
21107
  ;
 
21108
  return 0;
 
21109
}
 
21110
_ACEOF
 
21111
rm -f conftest.$ac_objext
 
21112
if { (ac_try="$ac_compile"
 
21113
case "(($ac_try" in
 
21114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21115
  *) ac_try_echo=$ac_try;;
 
21116
esac
 
21117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21118
  (eval "$ac_compile") 2>conftest.er1
 
21119
  ac_status=$?
 
21120
  grep -v '^ *+' conftest.er1 >conftest.err
 
21121
  rm -f conftest.er1
 
21122
  cat conftest.err >&5
 
21123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21124
  (exit $ac_status); } && {
 
21125
         test -z "$ac_c_werror_flag" ||
 
21126
         test ! -s conftest.err
 
21127
       } && test -s conftest.$ac_objext; then
 
21128
 
 
21129
        cat >>confdefs.h <<\_ACEOF
 
21130
#define HAVE_GETHOSTBYNAME_R 1
 
21131
_ACEOF
 
21132
 
 
21133
 
 
21134
cat >>confdefs.h <<\_ACEOF
 
21135
#define HAVE_GETHOSTBYNAME_R_3_ARG 1
 
21136
_ACEOF
 
21137
 
 
21138
        { echo "$as_me:$LINENO: result: yes" >&5
 
21139
echo "${ECHO_T}yes" >&6; }
 
21140
 
 
21141
else
 
21142
  echo "$as_me: failed program was:" >&5
 
21143
sed 's/^/| /' conftest.$ac_ext >&5
 
21144
 
 
21145
 
 
21146
        { echo "$as_me:$LINENO: result: no" >&5
 
21147
echo "${ECHO_T}no" >&6; }
 
21148
 
 
21149
fi
 
21150
 
 
21151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21152
 
 
21153
fi
 
21154
 
 
21155
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21156
 
 
21157
fi
 
21158
 
 
21159
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21160
  CFLAGS=$OLD_CFLAGS
 
21161
 
 
21162
else
 
21163
 
 
21164
 
 
21165
for ac_func in gethostbyname
 
21166
do
 
21167
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21168
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21169
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
21170
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21172
else
 
21173
  cat >conftest.$ac_ext <<_ACEOF
 
21174
/* confdefs.h.  */
 
21175
_ACEOF
 
21176
cat confdefs.h >>conftest.$ac_ext
 
21177
cat >>conftest.$ac_ext <<_ACEOF
 
21178
/* end confdefs.h.  */
 
21179
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21180
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21181
#define $ac_func innocuous_$ac_func
 
21182
 
 
21183
/* System header to define __stub macros and hopefully few prototypes,
 
21184
    which can conflict with char $ac_func (); below.
 
21185
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21186
    <limits.h> exists even on freestanding compilers.  */
 
21187
 
 
21188
#ifdef __STDC__
 
21189
# include <limits.h>
 
21190
#else
 
21191
# include <assert.h>
 
21192
#endif
 
21193
 
 
21194
#undef $ac_func
 
21195
 
 
21196
/* Override any GCC internal prototype to avoid an error.
 
21197
   Use char because int might match the return type of a GCC
 
21198
   builtin and then its argument prototype would still apply.  */
 
21199
#ifdef __cplusplus
 
21200
extern "C"
 
21201
#endif
 
21202
char $ac_func ();
 
21203
/* The GNU C library defines this for functions which it implements
 
21204
    to always fail with ENOSYS.  Some functions are actually named
 
21205
    something starting with __ and the normal name is an alias.  */
 
21206
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21207
choke me
 
21208
#endif
 
21209
 
 
21210
int
 
21211
main ()
 
21212
{
 
21213
return $ac_func ();
 
21214
  ;
 
21215
  return 0;
 
21216
}
 
21217
_ACEOF
 
21218
rm -f conftest.$ac_objext conftest$ac_exeext
 
21219
if { (ac_try="$ac_link"
 
21220
case "(($ac_try" in
 
21221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21222
  *) ac_try_echo=$ac_try;;
 
21223
esac
 
21224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21225
  (eval "$ac_link") 2>conftest.er1
 
21226
  ac_status=$?
 
21227
  grep -v '^ *+' conftest.er1 >conftest.err
 
21228
  rm -f conftest.er1
 
21229
  cat conftest.err >&5
 
21230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21231
  (exit $ac_status); } && {
 
21232
         test -z "$ac_c_werror_flag" ||
 
21233
         test ! -s conftest.err
 
21234
       } && test -s conftest$ac_exeext &&
 
21235
       $as_test_x conftest$ac_exeext; then
 
21236
  eval "$as_ac_var=yes"
 
21237
else
 
21238
  echo "$as_me: failed program was:" >&5
 
21239
sed 's/^/| /' conftest.$ac_ext >&5
 
21240
 
 
21241
        eval "$as_ac_var=no"
 
21242
fi
 
21243
 
 
21244
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21245
      conftest$ac_exeext conftest.$ac_ext
 
21246
fi
 
21247
ac_res=`eval echo '${'$as_ac_var'}'`
 
21248
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21249
echo "${ECHO_T}$ac_res" >&6; }
 
21250
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21251
  cat >>confdefs.h <<_ACEOF
 
21252
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21253
_ACEOF
 
21254
 
 
21255
fi
 
21256
done
 
21257
 
 
21258
 
 
21259
fi
 
21260
 
 
21261
 
 
21262
 
 
21263
 
 
21264
 
 
21265
 
 
21266
 
 
21267
# checks for system services
 
21268
# (none yet)
 
21269
 
 
21270
# Linux requires this for correct f.p. operations
 
21271
{ echo "$as_me:$LINENO: checking for __fpu_control" >&5
 
21272
echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
 
21273
if test "${ac_cv_func___fpu_control+set}" = set; then
 
21274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21275
else
 
21276
  cat >conftest.$ac_ext <<_ACEOF
 
21277
/* confdefs.h.  */
 
21278
_ACEOF
 
21279
cat confdefs.h >>conftest.$ac_ext
 
21280
cat >>conftest.$ac_ext <<_ACEOF
 
21281
/* end confdefs.h.  */
 
21282
/* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
 
21283
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21284
#define __fpu_control innocuous___fpu_control
 
21285
 
 
21286
/* System header to define __stub macros and hopefully few prototypes,
 
21287
    which can conflict with char __fpu_control (); below.
 
21288
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21289
    <limits.h> exists even on freestanding compilers.  */
 
21290
 
 
21291
#ifdef __STDC__
 
21292
# include <limits.h>
 
21293
#else
 
21294
# include <assert.h>
 
21295
#endif
 
21296
 
 
21297
#undef __fpu_control
 
21298
 
 
21299
/* Override any GCC internal prototype to avoid an error.
 
21300
   Use char because int might match the return type of a GCC
 
21301
   builtin and then its argument prototype would still apply.  */
 
21302
#ifdef __cplusplus
 
21303
extern "C"
 
21304
#endif
 
21305
char __fpu_control ();
 
21306
/* The GNU C library defines this for functions which it implements
 
21307
    to always fail with ENOSYS.  Some functions are actually named
 
21308
    something starting with __ and the normal name is an alias.  */
 
21309
#if defined __stub___fpu_control || defined __stub_____fpu_control
 
21310
choke me
 
21311
#endif
 
21312
 
 
21313
int
 
21314
main ()
 
21315
{
 
21316
return __fpu_control ();
 
21317
  ;
 
21318
  return 0;
 
21319
}
 
21320
_ACEOF
 
21321
rm -f conftest.$ac_objext conftest$ac_exeext
 
21322
if { (ac_try="$ac_link"
 
21323
case "(($ac_try" in
 
21324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21325
  *) ac_try_echo=$ac_try;;
 
21326
esac
 
21327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21328
  (eval "$ac_link") 2>conftest.er1
 
21329
  ac_status=$?
 
21330
  grep -v '^ *+' conftest.er1 >conftest.err
 
21331
  rm -f conftest.er1
 
21332
  cat conftest.err >&5
 
21333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21334
  (exit $ac_status); } && {
 
21335
         test -z "$ac_c_werror_flag" ||
 
21336
         test ! -s conftest.err
 
21337
       } && test -s conftest$ac_exeext &&
 
21338
       $as_test_x conftest$ac_exeext; then
 
21339
  ac_cv_func___fpu_control=yes
 
21340
else
 
21341
  echo "$as_me: failed program was:" >&5
 
21342
sed 's/^/| /' conftest.$ac_ext >&5
 
21343
 
 
21344
        ac_cv_func___fpu_control=no
 
21345
fi
 
21346
 
 
21347
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21348
      conftest$ac_exeext conftest.$ac_ext
 
21349
fi
 
21350
{ echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
 
21351
echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
 
21352
if test $ac_cv_func___fpu_control = yes; then
 
21353
  :
 
21354
else
 
21355
 
 
21356
{ echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
 
21357
echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
 
21358
if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
 
21359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21360
else
 
21361
  ac_check_lib_save_LIBS=$LIBS
 
21362
LIBS="-lieee  $LIBS"
 
21363
cat >conftest.$ac_ext <<_ACEOF
 
21364
/* confdefs.h.  */
 
21365
_ACEOF
 
21366
cat confdefs.h >>conftest.$ac_ext
 
21367
cat >>conftest.$ac_ext <<_ACEOF
 
21368
/* end confdefs.h.  */
 
21369
 
 
21370
/* Override any GCC internal prototype to avoid an error.
 
21371
   Use char because int might match the return type of a GCC
 
21372
   builtin and then its argument prototype would still apply.  */
 
21373
#ifdef __cplusplus
 
21374
extern "C"
 
21375
#endif
 
21376
char __fpu_control ();
 
21377
int
 
21378
main ()
 
21379
{
 
21380
return __fpu_control ();
 
21381
  ;
 
21382
  return 0;
 
21383
}
 
21384
_ACEOF
 
21385
rm -f conftest.$ac_objext conftest$ac_exeext
 
21386
if { (ac_try="$ac_link"
 
21387
case "(($ac_try" in
 
21388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21389
  *) ac_try_echo=$ac_try;;
 
21390
esac
 
21391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21392
  (eval "$ac_link") 2>conftest.er1
 
21393
  ac_status=$?
 
21394
  grep -v '^ *+' conftest.er1 >conftest.err
 
21395
  rm -f conftest.er1
 
21396
  cat conftest.err >&5
 
21397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21398
  (exit $ac_status); } && {
 
21399
         test -z "$ac_c_werror_flag" ||
 
21400
         test ! -s conftest.err
 
21401
       } && test -s conftest$ac_exeext &&
 
21402
       $as_test_x conftest$ac_exeext; then
 
21403
  ac_cv_lib_ieee___fpu_control=yes
 
21404
else
 
21405
  echo "$as_me: failed program was:" >&5
 
21406
sed 's/^/| /' conftest.$ac_ext >&5
 
21407
 
 
21408
        ac_cv_lib_ieee___fpu_control=no
 
21409
fi
 
21410
 
 
21411
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21412
      conftest$ac_exeext conftest.$ac_ext
 
21413
LIBS=$ac_check_lib_save_LIBS
 
21414
fi
 
21415
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
 
21416
echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
 
21417
if test $ac_cv_lib_ieee___fpu_control = yes; then
 
21418
  cat >>confdefs.h <<_ACEOF
 
21419
#define HAVE_LIBIEEE 1
 
21420
_ACEOF
 
21421
 
 
21422
  LIBS="-lieee $LIBS"
 
21423
 
 
21424
fi
 
21425
 
 
21426
 
 
21427
fi
 
21428
 
 
21429
 
 
21430
# Check for --with-fpectl
 
21431
{ echo "$as_me:$LINENO: checking for --with-fpectl" >&5
 
21432
echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
 
21433
 
 
21434
# Check whether --with-fpectl was given.
 
21435
if test "${with_fpectl+set}" = set; then
 
21436
  withval=$with_fpectl;
 
21437
if test "$withval" != no
 
21438
then
 
21439
 
 
21440
cat >>confdefs.h <<\_ACEOF
 
21441
#define WANT_SIGFPE_HANDLER 1
 
21442
_ACEOF
 
21443
 
 
21444
  { echo "$as_me:$LINENO: result: yes" >&5
 
21445
echo "${ECHO_T}yes" >&6; }
 
21446
else { echo "$as_me:$LINENO: result: no" >&5
 
21447
echo "${ECHO_T}no" >&6; }
 
21448
fi
 
21449
else
 
21450
  { echo "$as_me:$LINENO: result: no" >&5
 
21451
echo "${ECHO_T}no" >&6; }
 
21452
fi
 
21453
 
 
21454
 
 
21455
# check for --with-libm=...
 
21456
 
 
21457
case $ac_sys_system in
 
21458
Darwin) ;;
 
21459
BeOS) ;;
 
21460
*) LIBM=-lm
 
21461
esac
 
21462
{ echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
 
21463
echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
 
21464
 
 
21465
# Check whether --with-libm was given.
 
21466
if test "${with_libm+set}" = set; then
 
21467
  withval=$with_libm;
 
21468
if test "$withval" = no
 
21469
then LIBM=
 
21470
     { echo "$as_me:$LINENO: result: force LIBM empty" >&5
 
21471
echo "${ECHO_T}force LIBM empty" >&6; }
 
21472
elif test "$withval" != yes
 
21473
then LIBM=$withval
 
21474
     { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
 
21475
echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
 
21476
else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
 
21477
echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
 
21478
   { (exit 1); exit 1; }; }
 
21479
fi
 
21480
else
 
21481
  { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
 
21482
echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
 
21483
fi
 
21484
 
 
21485
 
 
21486
# check for --with-libc=...
 
21487
 
 
21488
{ echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
 
21489
echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
 
21490
 
 
21491
# Check whether --with-libc was given.
 
21492
if test "${with_libc+set}" = set; then
 
21493
  withval=$with_libc;
 
21494
if test "$withval" = no
 
21495
then LIBC=
 
21496
     { echo "$as_me:$LINENO: result: force LIBC empty" >&5
 
21497
echo "${ECHO_T}force LIBC empty" >&6; }
 
21498
elif test "$withval" != yes
 
21499
then LIBC=$withval
 
21500
     { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
 
21501
echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
 
21502
else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
 
21503
echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
 
21504
   { (exit 1); exit 1; }; }
 
21505
fi
 
21506
else
 
21507
  { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
 
21508
echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
 
21509
fi
 
21510
 
 
21511
 
 
21512
# ************************************
 
21513
# * Check for mathematical functions *
 
21514
# ************************************
 
21515
 
 
21516
LIBS_SAVE=$LIBS
 
21517
LIBS="$LIBS $LIBM"
 
21518
 
 
21519
# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
 
21520
# -0. on some architectures.
 
21521
{ echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
 
21522
echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
 
21523
if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
 
21524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21525
else
 
21526
 
 
21527
if test "$cross_compiling" = yes; then
 
21528
  ac_cv_tanh_preserves_zero_sign=no
 
21529
else
 
21530
  cat >conftest.$ac_ext <<_ACEOF
 
21531
/* confdefs.h.  */
 
21532
_ACEOF
 
21533
cat confdefs.h >>conftest.$ac_ext
 
21534
cat >>conftest.$ac_ext <<_ACEOF
 
21535
/* end confdefs.h.  */
 
21536
 
 
21537
#include <math.h>
 
21538
#include <stdlib.h>
 
21539
int main() {
 
21540
    /* return 0 if either negative zeros don't exist
 
21541
       on this platform or if negative zeros exist
 
21542
       and tanh(-0.) == -0. */
 
21543
  if (atan2(0., -1.) == atan2(-0., -1.) ||
 
21544
      atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
 
21545
  else exit(1);
 
21546
}
 
21547
 
 
21548
_ACEOF
 
21549
rm -f conftest$ac_exeext
 
21550
if { (ac_try="$ac_link"
 
21551
case "(($ac_try" in
 
21552
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21553
  *) ac_try_echo=$ac_try;;
 
21554
esac
 
21555
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21556
  (eval "$ac_link") 2>&5
 
21557
  ac_status=$?
 
21558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21559
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21560
  { (case "(($ac_try" in
 
21561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21562
  *) ac_try_echo=$ac_try;;
 
21563
esac
 
21564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21565
  (eval "$ac_try") 2>&5
 
21566
  ac_status=$?
 
21567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21568
  (exit $ac_status); }; }; then
 
21569
  ac_cv_tanh_preserves_zero_sign=yes
 
21570
else
 
21571
  echo "$as_me: program exited with status $ac_status" >&5
 
21572
echo "$as_me: failed program was:" >&5
 
21573
sed 's/^/| /' conftest.$ac_ext >&5
 
21574
 
 
21575
( exit $ac_status )
 
21576
ac_cv_tanh_preserves_zero_sign=no
 
21577
fi
 
21578
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21579
fi
 
21580
 
 
21581
 
 
21582
fi
 
21583
 
 
21584
{ echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
 
21585
echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
 
21586
if test "$ac_cv_tanh_preserves_zero_sign" = yes
 
21587
then
 
21588
 
 
21589
cat >>confdefs.h <<\_ACEOF
 
21590
#define TANH_PRESERVES_ZERO_SIGN 1
 
21591
_ACEOF
 
21592
 
 
21593
fi
 
21594
 
 
21595
 
 
21596
for ac_func in hypot
 
21597
do
 
21598
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21599
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21600
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
21601
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21603
else
 
21604
  cat >conftest.$ac_ext <<_ACEOF
 
21605
/* confdefs.h.  */
 
21606
_ACEOF
 
21607
cat confdefs.h >>conftest.$ac_ext
 
21608
cat >>conftest.$ac_ext <<_ACEOF
 
21609
/* end confdefs.h.  */
 
21610
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21611
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21612
#define $ac_func innocuous_$ac_func
 
21613
 
 
21614
/* System header to define __stub macros and hopefully few prototypes,
 
21615
    which can conflict with char $ac_func (); below.
 
21616
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21617
    <limits.h> exists even on freestanding compilers.  */
 
21618
 
 
21619
#ifdef __STDC__
 
21620
# include <limits.h>
 
21621
#else
 
21622
# include <assert.h>
 
21623
#endif
 
21624
 
 
21625
#undef $ac_func
 
21626
 
 
21627
/* Override any GCC internal prototype to avoid an error.
 
21628
   Use char because int might match the return type of a GCC
 
21629
   builtin and then its argument prototype would still apply.  */
 
21630
#ifdef __cplusplus
 
21631
extern "C"
 
21632
#endif
 
21633
char $ac_func ();
 
21634
/* The GNU C library defines this for functions which it implements
 
21635
    to always fail with ENOSYS.  Some functions are actually named
 
21636
    something starting with __ and the normal name is an alias.  */
 
21637
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21638
choke me
 
21639
#endif
 
21640
 
 
21641
int
 
21642
main ()
 
21643
{
 
21644
return $ac_func ();
 
21645
  ;
 
21646
  return 0;
 
21647
}
 
21648
_ACEOF
 
21649
rm -f conftest.$ac_objext conftest$ac_exeext
 
21650
if { (ac_try="$ac_link"
 
21651
case "(($ac_try" in
 
21652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21653
  *) ac_try_echo=$ac_try;;
 
21654
esac
 
21655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21656
  (eval "$ac_link") 2>conftest.er1
 
21657
  ac_status=$?
 
21658
  grep -v '^ *+' conftest.er1 >conftest.err
 
21659
  rm -f conftest.er1
 
21660
  cat conftest.err >&5
 
21661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21662
  (exit $ac_status); } && {
 
21663
         test -z "$ac_c_werror_flag" ||
 
21664
         test ! -s conftest.err
 
21665
       } && test -s conftest$ac_exeext &&
 
21666
       $as_test_x conftest$ac_exeext; then
 
21667
  eval "$as_ac_var=yes"
 
21668
else
 
21669
  echo "$as_me: failed program was:" >&5
 
21670
sed 's/^/| /' conftest.$ac_ext >&5
 
21671
 
 
21672
        eval "$as_ac_var=no"
 
21673
fi
 
21674
 
 
21675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21676
      conftest$ac_exeext conftest.$ac_ext
 
21677
fi
 
21678
ac_res=`eval echo '${'$as_ac_var'}'`
 
21679
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21680
echo "${ECHO_T}$ac_res" >&6; }
 
21681
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21682
  cat >>confdefs.h <<_ACEOF
 
21683
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21684
_ACEOF
 
21685
 
 
21686
else
 
21687
  case " $LIBOBJS " in
 
21688
  *" $ac_func.$ac_objext "* ) ;;
 
21689
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
21690
 ;;
 
21691
esac
 
21692
 
 
21693
fi
 
21694
done
 
21695
 
 
21696
 
 
21697
 
 
21698
 
 
21699
 
 
21700
 
 
21701
 
 
21702
 
 
21703
 
 
21704
 
 
21705
 
 
21706
 
 
21707
for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
 
21708
do
 
21709
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21710
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21711
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
21712
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21714
else
 
21715
  cat >conftest.$ac_ext <<_ACEOF
 
21716
/* confdefs.h.  */
 
21717
_ACEOF
 
21718
cat confdefs.h >>conftest.$ac_ext
 
21719
cat >>conftest.$ac_ext <<_ACEOF
 
21720
/* end confdefs.h.  */
 
21721
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21722
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21723
#define $ac_func innocuous_$ac_func
 
21724
 
 
21725
/* System header to define __stub macros and hopefully few prototypes,
 
21726
    which can conflict with char $ac_func (); below.
 
21727
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21728
    <limits.h> exists even on freestanding compilers.  */
 
21729
 
 
21730
#ifdef __STDC__
 
21731
# include <limits.h>
 
21732
#else
 
21733
# include <assert.h>
 
21734
#endif
 
21735
 
 
21736
#undef $ac_func
 
21737
 
 
21738
/* Override any GCC internal prototype to avoid an error.
 
21739
   Use char because int might match the return type of a GCC
 
21740
   builtin and then its argument prototype would still apply.  */
 
21741
#ifdef __cplusplus
 
21742
extern "C"
 
21743
#endif
 
21744
char $ac_func ();
 
21745
/* The GNU C library defines this for functions which it implements
 
21746
    to always fail with ENOSYS.  Some functions are actually named
 
21747
    something starting with __ and the normal name is an alias.  */
 
21748
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21749
choke me
 
21750
#endif
 
21751
 
 
21752
int
 
21753
main ()
 
21754
{
 
21755
return $ac_func ();
 
21756
  ;
 
21757
  return 0;
 
21758
}
 
21759
_ACEOF
 
21760
rm -f conftest.$ac_objext conftest$ac_exeext
 
21761
if { (ac_try="$ac_link"
 
21762
case "(($ac_try" in
 
21763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21764
  *) ac_try_echo=$ac_try;;
 
21765
esac
 
21766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21767
  (eval "$ac_link") 2>conftest.er1
 
21768
  ac_status=$?
 
21769
  grep -v '^ *+' conftest.er1 >conftest.err
 
21770
  rm -f conftest.er1
 
21771
  cat conftest.err >&5
 
21772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21773
  (exit $ac_status); } && {
 
21774
         test -z "$ac_c_werror_flag" ||
 
21775
         test ! -s conftest.err
 
21776
       } && test -s conftest$ac_exeext &&
 
21777
       $as_test_x conftest$ac_exeext; then
 
21778
  eval "$as_ac_var=yes"
 
21779
else
 
21780
  echo "$as_me: failed program was:" >&5
 
21781
sed 's/^/| /' conftest.$ac_ext >&5
 
21782
 
 
21783
        eval "$as_ac_var=no"
 
21784
fi
 
21785
 
 
21786
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21787
      conftest$ac_exeext conftest.$ac_ext
 
21788
fi
 
21789
ac_res=`eval echo '${'$as_ac_var'}'`
 
21790
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21791
echo "${ECHO_T}$ac_res" >&6; }
 
21792
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21793
  cat >>confdefs.h <<_ACEOF
 
21794
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21795
_ACEOF
 
21796
 
 
21797
fi
 
21798
done
 
21799
 
 
21800
 
 
21801
LIBS=$LIBS_SAVE
 
21802
 
 
21803
# check for wchar.h
 
21804
if test "${ac_cv_header_wchar_h+set}" = set; then
 
21805
  { echo "$as_me:$LINENO: checking for wchar.h" >&5
 
21806
echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
 
21807
if test "${ac_cv_header_wchar_h+set}" = set; then
 
21808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21809
fi
 
21810
{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
 
21811
echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
 
21812
else
 
21813
  # Is the header compilable?
 
21814
{ echo "$as_me:$LINENO: checking wchar.h usability" >&5
 
21815
echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
 
21816
cat >conftest.$ac_ext <<_ACEOF
 
21817
/* confdefs.h.  */
 
21818
_ACEOF
 
21819
cat confdefs.h >>conftest.$ac_ext
 
21820
cat >>conftest.$ac_ext <<_ACEOF
 
21821
/* end confdefs.h.  */
 
21822
$ac_includes_default
 
21823
#include <wchar.h>
 
21824
_ACEOF
 
21825
rm -f conftest.$ac_objext
 
21826
if { (ac_try="$ac_compile"
 
21827
case "(($ac_try" in
 
21828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21829
  *) ac_try_echo=$ac_try;;
 
21830
esac
 
21831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21832
  (eval "$ac_compile") 2>conftest.er1
 
21833
  ac_status=$?
 
21834
  grep -v '^ *+' conftest.er1 >conftest.err
 
21835
  rm -f conftest.er1
 
21836
  cat conftest.err >&5
 
21837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21838
  (exit $ac_status); } && {
 
21839
         test -z "$ac_c_werror_flag" ||
 
21840
         test ! -s conftest.err
 
21841
       } && test -s conftest.$ac_objext; then
 
21842
  ac_header_compiler=yes
 
21843
else
 
21844
  echo "$as_me: failed program was:" >&5
 
21845
sed 's/^/| /' conftest.$ac_ext >&5
 
21846
 
 
21847
        ac_header_compiler=no
 
21848
fi
 
21849
 
 
21850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21851
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21852
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21853
 
 
21854
# Is the header present?
 
21855
{ echo "$as_me:$LINENO: checking wchar.h presence" >&5
 
21856
echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
 
21857
cat >conftest.$ac_ext <<_ACEOF
 
21858
/* confdefs.h.  */
 
21859
_ACEOF
 
21860
cat confdefs.h >>conftest.$ac_ext
 
21861
cat >>conftest.$ac_ext <<_ACEOF
 
21862
/* end confdefs.h.  */
 
21863
#include <wchar.h>
 
21864
_ACEOF
 
21865
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21866
case "(($ac_try" in
 
21867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21868
  *) ac_try_echo=$ac_try;;
 
21869
esac
 
21870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21871
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21872
  ac_status=$?
 
21873
  grep -v '^ *+' conftest.er1 >conftest.err
 
21874
  rm -f conftest.er1
 
21875
  cat conftest.err >&5
 
21876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21877
  (exit $ac_status); } >/dev/null && {
 
21878
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21879
         test ! -s conftest.err
 
21880
       }; then
 
21881
  ac_header_preproc=yes
 
21882
else
 
21883
  echo "$as_me: failed program was:" >&5
 
21884
sed 's/^/| /' conftest.$ac_ext >&5
 
21885
 
 
21886
  ac_header_preproc=no
 
21887
fi
 
21888
 
 
21889
rm -f conftest.err conftest.$ac_ext
 
21890
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21891
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21892
 
 
21893
# So?  What about this header?
 
21894
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21895
  yes:no: )
 
21896
    { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21897
echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21898
    { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
 
21899
echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
 
21900
    ac_header_preproc=yes
 
21901
    ;;
 
21902
  no:yes:* )
 
21903
    { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
 
21904
echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
 
21905
    { echo "$as_me:$LINENO: WARNING: wchar.h:     check for missing prerequisite headers?" >&5
 
21906
echo "$as_me: WARNING: wchar.h:     check for missing prerequisite headers?" >&2;}
 
21907
    { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
 
21908
echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
 
21909
    { echo "$as_me:$LINENO: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21910
echo "$as_me: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21911
    { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
 
21912
echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
 
21913
    { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
 
21914
echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
 
21915
    ( cat <<\_ASBOX
 
21916
## ------------------------------------------------ ##
 
21917
## Report this to http://www.python.org/python-bugs ##
 
21918
## ------------------------------------------------ ##
 
21919
_ASBOX
 
21920
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21921
    ;;
 
21922
esac
 
21923
{ echo "$as_me:$LINENO: checking for wchar.h" >&5
 
21924
echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
 
21925
if test "${ac_cv_header_wchar_h+set}" = set; then
 
21926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21927
else
 
21928
  ac_cv_header_wchar_h=$ac_header_preproc
 
21929
fi
 
21930
{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
 
21931
echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
 
21932
 
 
21933
fi
 
21934
if test $ac_cv_header_wchar_h = yes; then
 
21935
 
 
21936
 
 
21937
cat >>confdefs.h <<\_ACEOF
 
21938
#define HAVE_WCHAR_H 1
 
21939
_ACEOF
 
21940
 
 
21941
  wchar_h="yes"
 
21942
 
 
21943
else
 
21944
  wchar_h="no"
 
21945
 
 
21946
fi
 
21947
 
 
21948
 
 
21949
 
 
21950
# determine wchar_t size
 
21951
if test "$wchar_h" = yes
 
21952
then
 
21953
  { echo "$as_me:$LINENO: checking for wchar_t" >&5
 
21954
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
 
21955
if test "${ac_cv_type_wchar_t+set}" = set; then
 
21956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21957
else
 
21958
  cat >conftest.$ac_ext <<_ACEOF
 
21959
/* confdefs.h.  */
 
21960
_ACEOF
 
21961
cat confdefs.h >>conftest.$ac_ext
 
21962
cat >>conftest.$ac_ext <<_ACEOF
 
21963
/* end confdefs.h.  */
 
21964
#include <wchar.h>
 
21965
 
 
21966
typedef wchar_t ac__type_new_;
 
21967
int
 
21968
main ()
 
21969
{
 
21970
if ((ac__type_new_ *) 0)
 
21971
  return 0;
 
21972
if (sizeof (ac__type_new_))
 
21973
  return 0;
 
21974
  ;
 
21975
  return 0;
 
21976
}
 
21977
_ACEOF
 
21978
rm -f conftest.$ac_objext
 
21979
if { (ac_try="$ac_compile"
 
21980
case "(($ac_try" in
 
21981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21982
  *) ac_try_echo=$ac_try;;
 
21983
esac
 
21984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21985
  (eval "$ac_compile") 2>conftest.er1
 
21986
  ac_status=$?
 
21987
  grep -v '^ *+' conftest.er1 >conftest.err
 
21988
  rm -f conftest.er1
 
21989
  cat conftest.err >&5
 
21990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21991
  (exit $ac_status); } && {
 
21992
         test -z "$ac_c_werror_flag" ||
 
21993
         test ! -s conftest.err
 
21994
       } && test -s conftest.$ac_objext; then
 
21995
  ac_cv_type_wchar_t=yes
 
21996
else
 
21997
  echo "$as_me: failed program was:" >&5
 
21998
sed 's/^/| /' conftest.$ac_ext >&5
 
21999
 
 
22000
        ac_cv_type_wchar_t=no
 
22001
fi
 
22002
 
 
22003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22004
fi
 
22005
{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
 
22006
echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
 
22007
 
 
22008
# The cast to long int works around a bug in the HP C Compiler
 
22009
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22010
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22011
# This bug is HP SR number 8606223364.
 
22012
{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
 
22013
echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
 
22014
if test "${ac_cv_sizeof_wchar_t+set}" = set; then
 
22015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22016
else
 
22017
  if test "$cross_compiling" = yes; then
 
22018
  # Depending upon the size, compute the lo and hi bounds.
 
22019
cat >conftest.$ac_ext <<_ACEOF
 
22020
/* confdefs.h.  */
 
22021
_ACEOF
 
22022
cat confdefs.h >>conftest.$ac_ext
 
22023
cat >>conftest.$ac_ext <<_ACEOF
 
22024
/* end confdefs.h.  */
 
22025
#include <wchar.h>
 
22026
 
 
22027
   typedef wchar_t ac__type_sizeof_;
 
22028
int
 
22029
main ()
 
22030
{
 
22031
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
22032
test_array [0] = 0
 
22033
 
 
22034
  ;
 
22035
  return 0;
 
22036
}
 
22037
_ACEOF
 
22038
rm -f conftest.$ac_objext
 
22039
if { (ac_try="$ac_compile"
 
22040
case "(($ac_try" in
 
22041
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22042
  *) ac_try_echo=$ac_try;;
 
22043
esac
 
22044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22045
  (eval "$ac_compile") 2>conftest.er1
 
22046
  ac_status=$?
 
22047
  grep -v '^ *+' conftest.er1 >conftest.err
 
22048
  rm -f conftest.er1
 
22049
  cat conftest.err >&5
 
22050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22051
  (exit $ac_status); } && {
 
22052
         test -z "$ac_c_werror_flag" ||
 
22053
         test ! -s conftest.err
 
22054
       } && test -s conftest.$ac_objext; then
 
22055
  ac_lo=0 ac_mid=0
 
22056
  while :; do
 
22057
    cat >conftest.$ac_ext <<_ACEOF
 
22058
/* confdefs.h.  */
 
22059
_ACEOF
 
22060
cat confdefs.h >>conftest.$ac_ext
 
22061
cat >>conftest.$ac_ext <<_ACEOF
 
22062
/* end confdefs.h.  */
 
22063
#include <wchar.h>
 
22064
 
 
22065
   typedef wchar_t ac__type_sizeof_;
 
22066
int
 
22067
main ()
 
22068
{
 
22069
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22070
test_array [0] = 0
 
22071
 
 
22072
  ;
 
22073
  return 0;
 
22074
}
 
22075
_ACEOF
 
22076
rm -f conftest.$ac_objext
 
22077
if { (ac_try="$ac_compile"
 
22078
case "(($ac_try" in
 
22079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22080
  *) ac_try_echo=$ac_try;;
 
22081
esac
 
22082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22083
  (eval "$ac_compile") 2>conftest.er1
 
22084
  ac_status=$?
 
22085
  grep -v '^ *+' conftest.er1 >conftest.err
 
22086
  rm -f conftest.er1
 
22087
  cat conftest.err >&5
 
22088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22089
  (exit $ac_status); } && {
 
22090
         test -z "$ac_c_werror_flag" ||
 
22091
         test ! -s conftest.err
 
22092
       } && test -s conftest.$ac_objext; then
 
22093
  ac_hi=$ac_mid; break
 
22094
else
 
22095
  echo "$as_me: failed program was:" >&5
 
22096
sed 's/^/| /' conftest.$ac_ext >&5
 
22097
 
 
22098
        ac_lo=`expr $ac_mid + 1`
 
22099
                        if test $ac_lo -le $ac_mid; then
 
22100
                          ac_lo= ac_hi=
 
22101
                          break
 
22102
                        fi
 
22103
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22104
fi
 
22105
 
 
22106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22107
  done
 
22108
else
 
22109
  echo "$as_me: failed program was:" >&5
 
22110
sed 's/^/| /' conftest.$ac_ext >&5
 
22111
 
 
22112
        cat >conftest.$ac_ext <<_ACEOF
 
22113
/* confdefs.h.  */
 
22114
_ACEOF
 
22115
cat confdefs.h >>conftest.$ac_ext
 
22116
cat >>conftest.$ac_ext <<_ACEOF
 
22117
/* end confdefs.h.  */
 
22118
#include <wchar.h>
 
22119
 
 
22120
   typedef wchar_t ac__type_sizeof_;
 
22121
int
 
22122
main ()
 
22123
{
 
22124
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
22125
test_array [0] = 0
 
22126
 
 
22127
  ;
 
22128
  return 0;
 
22129
}
 
22130
_ACEOF
 
22131
rm -f conftest.$ac_objext
 
22132
if { (ac_try="$ac_compile"
 
22133
case "(($ac_try" in
 
22134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22135
  *) ac_try_echo=$ac_try;;
 
22136
esac
 
22137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22138
  (eval "$ac_compile") 2>conftest.er1
 
22139
  ac_status=$?
 
22140
  grep -v '^ *+' conftest.er1 >conftest.err
 
22141
  rm -f conftest.er1
 
22142
  cat conftest.err >&5
 
22143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22144
  (exit $ac_status); } && {
 
22145
         test -z "$ac_c_werror_flag" ||
 
22146
         test ! -s conftest.err
 
22147
       } && test -s conftest.$ac_objext; then
 
22148
  ac_hi=-1 ac_mid=-1
 
22149
  while :; do
 
22150
    cat >conftest.$ac_ext <<_ACEOF
 
22151
/* confdefs.h.  */
 
22152
_ACEOF
 
22153
cat confdefs.h >>conftest.$ac_ext
 
22154
cat >>conftest.$ac_ext <<_ACEOF
 
22155
/* end confdefs.h.  */
 
22156
#include <wchar.h>
 
22157
 
 
22158
   typedef wchar_t ac__type_sizeof_;
 
22159
int
 
22160
main ()
 
22161
{
 
22162
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
22163
test_array [0] = 0
 
22164
 
 
22165
  ;
 
22166
  return 0;
 
22167
}
 
22168
_ACEOF
 
22169
rm -f conftest.$ac_objext
 
22170
if { (ac_try="$ac_compile"
 
22171
case "(($ac_try" in
 
22172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22173
  *) ac_try_echo=$ac_try;;
 
22174
esac
 
22175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22176
  (eval "$ac_compile") 2>conftest.er1
 
22177
  ac_status=$?
 
22178
  grep -v '^ *+' conftest.er1 >conftest.err
 
22179
  rm -f conftest.er1
 
22180
  cat conftest.err >&5
 
22181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22182
  (exit $ac_status); } && {
 
22183
         test -z "$ac_c_werror_flag" ||
 
22184
         test ! -s conftest.err
 
22185
       } && test -s conftest.$ac_objext; then
 
22186
  ac_lo=$ac_mid; break
 
22187
else
 
22188
  echo "$as_me: failed program was:" >&5
 
22189
sed 's/^/| /' conftest.$ac_ext >&5
 
22190
 
 
22191
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22192
                        if test $ac_mid -le $ac_hi; then
 
22193
                          ac_lo= ac_hi=
 
22194
                          break
 
22195
                        fi
 
22196
                        ac_mid=`expr 2 '*' $ac_mid`
 
22197
fi
 
22198
 
 
22199
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22200
  done
 
22201
else
 
22202
  echo "$as_me: failed program was:" >&5
 
22203
sed 's/^/| /' conftest.$ac_ext >&5
 
22204
 
 
22205
        ac_lo= ac_hi=
 
22206
fi
 
22207
 
 
22208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22209
fi
 
22210
 
 
22211
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22212
# Binary search between lo and hi bounds.
 
22213
while test "x$ac_lo" != "x$ac_hi"; do
 
22214
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22215
  cat >conftest.$ac_ext <<_ACEOF
 
22216
/* confdefs.h.  */
 
22217
_ACEOF
 
22218
cat confdefs.h >>conftest.$ac_ext
 
22219
cat >>conftest.$ac_ext <<_ACEOF
 
22220
/* end confdefs.h.  */
 
22221
#include <wchar.h>
 
22222
 
 
22223
   typedef wchar_t ac__type_sizeof_;
 
22224
int
 
22225
main ()
 
22226
{
 
22227
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22228
test_array [0] = 0
 
22229
 
 
22230
  ;
 
22231
  return 0;
 
22232
}
 
22233
_ACEOF
 
22234
rm -f conftest.$ac_objext
 
22235
if { (ac_try="$ac_compile"
 
22236
case "(($ac_try" in
 
22237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22238
  *) ac_try_echo=$ac_try;;
 
22239
esac
 
22240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22241
  (eval "$ac_compile") 2>conftest.er1
 
22242
  ac_status=$?
 
22243
  grep -v '^ *+' conftest.er1 >conftest.err
 
22244
  rm -f conftest.er1
 
22245
  cat conftest.err >&5
 
22246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22247
  (exit $ac_status); } && {
 
22248
         test -z "$ac_c_werror_flag" ||
 
22249
         test ! -s conftest.err
 
22250
       } && test -s conftest.$ac_objext; then
 
22251
  ac_hi=$ac_mid
 
22252
else
 
22253
  echo "$as_me: failed program was:" >&5
 
22254
sed 's/^/| /' conftest.$ac_ext >&5
 
22255
 
 
22256
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22257
fi
 
22258
 
 
22259
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22260
done
 
22261
case $ac_lo in
 
22262
?*) ac_cv_sizeof_wchar_t=$ac_lo;;
 
22263
'') if test "$ac_cv_type_wchar_t" = yes; then
 
22264
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
 
22265
See \`config.log' for more details." >&5
 
22266
echo "$as_me: error: cannot compute sizeof (wchar_t)
 
22267
See \`config.log' for more details." >&2;}
 
22268
   { (exit 77); exit 77; }; }
 
22269
   else
 
22270
     ac_cv_sizeof_wchar_t=0
 
22271
   fi ;;
 
22272
esac
 
22273
else
 
22274
  cat >conftest.$ac_ext <<_ACEOF
 
22275
/* confdefs.h.  */
 
22276
_ACEOF
 
22277
cat confdefs.h >>conftest.$ac_ext
 
22278
cat >>conftest.$ac_ext <<_ACEOF
 
22279
/* end confdefs.h.  */
 
22280
#include <wchar.h>
 
22281
 
 
22282
   typedef wchar_t ac__type_sizeof_;
 
22283
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22284
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22285
#include <stdio.h>
 
22286
#include <stdlib.h>
 
22287
int
 
22288
main ()
 
22289
{
 
22290
 
 
22291
  FILE *f = fopen ("conftest.val", "w");
 
22292
  if (! f)
 
22293
    return 1;
 
22294
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
22295
    {
 
22296
      long int i = longval ();
 
22297
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22298
        return 1;
 
22299
      fprintf (f, "%ld\n", i);
 
22300
    }
 
22301
  else
 
22302
    {
 
22303
      unsigned long int i = ulongval ();
 
22304
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22305
        return 1;
 
22306
      fprintf (f, "%lu\n", i);
 
22307
    }
 
22308
  return ferror (f) || fclose (f) != 0;
 
22309
 
 
22310
  ;
 
22311
  return 0;
 
22312
}
 
22313
_ACEOF
 
22314
rm -f conftest$ac_exeext
 
22315
if { (ac_try="$ac_link"
 
22316
case "(($ac_try" in
 
22317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22318
  *) ac_try_echo=$ac_try;;
 
22319
esac
 
22320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22321
  (eval "$ac_link") 2>&5
 
22322
  ac_status=$?
 
22323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22324
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22325
  { (case "(($ac_try" in
 
22326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22327
  *) ac_try_echo=$ac_try;;
 
22328
esac
 
22329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22330
  (eval "$ac_try") 2>&5
 
22331
  ac_status=$?
 
22332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22333
  (exit $ac_status); }; }; then
 
22334
  ac_cv_sizeof_wchar_t=`cat conftest.val`
 
22335
else
 
22336
  echo "$as_me: program exited with status $ac_status" >&5
 
22337
echo "$as_me: failed program was:" >&5
 
22338
sed 's/^/| /' conftest.$ac_ext >&5
 
22339
 
 
22340
( exit $ac_status )
 
22341
if test "$ac_cv_type_wchar_t" = yes; then
 
22342
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
 
22343
See \`config.log' for more details." >&5
 
22344
echo "$as_me: error: cannot compute sizeof (wchar_t)
 
22345
See \`config.log' for more details." >&2;}
 
22346
   { (exit 77); exit 77; }; }
 
22347
   else
 
22348
     ac_cv_sizeof_wchar_t=0
 
22349
   fi
 
22350
fi
 
22351
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22352
fi
 
22353
rm -f conftest.val
 
22354
fi
 
22355
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
 
22356
echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
 
22357
 
 
22358
 
 
22359
 
 
22360
cat >>confdefs.h <<_ACEOF
 
22361
#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
 
22362
_ACEOF
 
22363
 
 
22364
 
 
22365
fi
 
22366
 
 
22367
{ echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
 
22368
echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
 
22369
have_ucs4_tcl=no
 
22370
cat >conftest.$ac_ext <<_ACEOF
 
22371
/* confdefs.h.  */
 
22372
_ACEOF
 
22373
cat confdefs.h >>conftest.$ac_ext
 
22374
cat >>conftest.$ac_ext <<_ACEOF
 
22375
/* end confdefs.h.  */
 
22376
 
 
22377
#include <tcl.h>
 
22378
#if TCL_UTF_MAX != 6
 
22379
# error "NOT UCS4_TCL"
 
22380
#endif
 
22381
int
 
22382
main ()
 
22383
{
 
22384
 
 
22385
  ;
 
22386
  return 0;
 
22387
}
 
22388
_ACEOF
 
22389
rm -f conftest.$ac_objext
 
22390
if { (ac_try="$ac_compile"
 
22391
case "(($ac_try" in
 
22392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22393
  *) ac_try_echo=$ac_try;;
 
22394
esac
 
22395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22396
  (eval "$ac_compile") 2>conftest.er1
 
22397
  ac_status=$?
 
22398
  grep -v '^ *+' conftest.er1 >conftest.err
 
22399
  rm -f conftest.er1
 
22400
  cat conftest.err >&5
 
22401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22402
  (exit $ac_status); } && {
 
22403
         test -z "$ac_c_werror_flag" ||
 
22404
         test ! -s conftest.err
 
22405
       } && test -s conftest.$ac_objext; then
 
22406
 
 
22407
 
 
22408
cat >>confdefs.h <<\_ACEOF
 
22409
#define HAVE_UCS4_TCL 1
 
22410
_ACEOF
 
22411
 
 
22412
  have_ucs4_tcl=yes
 
22413
 
 
22414
else
 
22415
  echo "$as_me: failed program was:" >&5
 
22416
sed 's/^/| /' conftest.$ac_ext >&5
 
22417
 
 
22418
 
 
22419
fi
 
22420
 
 
22421
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22422
{ echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
 
22423
echo "${ECHO_T}$have_ucs4_tcl" >&6; }
 
22424
 
 
22425
# check whether wchar_t is signed or not
 
22426
if test "$wchar_h" = yes
 
22427
then
 
22428
  # check whether wchar_t is signed or not
 
22429
  { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
 
22430
echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
 
22431
  if test "${ac_cv_wchar_t_signed+set}" = set; then
 
22432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22433
else
 
22434
 
 
22435
  if test "$cross_compiling" = yes; then
 
22436
  ac_cv_wchar_t_signed=yes
 
22437
else
 
22438
  cat >conftest.$ac_ext <<_ACEOF
 
22439
/* confdefs.h.  */
 
22440
_ACEOF
 
22441
cat confdefs.h >>conftest.$ac_ext
 
22442
cat >>conftest.$ac_ext <<_ACEOF
 
22443
/* end confdefs.h.  */
 
22444
 
 
22445
  #include <wchar.h>
 
22446
  int main()
 
22447
  {
 
22448
        /* Success: exit code 0 */
 
22449
        exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
 
22450
  }
 
22451
 
 
22452
_ACEOF
 
22453
rm -f conftest$ac_exeext
 
22454
if { (ac_try="$ac_link"
 
22455
case "(($ac_try" in
 
22456
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22457
  *) ac_try_echo=$ac_try;;
 
22458
esac
 
22459
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22460
  (eval "$ac_link") 2>&5
 
22461
  ac_status=$?
 
22462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22463
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22464
  { (case "(($ac_try" in
 
22465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22466
  *) ac_try_echo=$ac_try;;
 
22467
esac
 
22468
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22469
  (eval "$ac_try") 2>&5
 
22470
  ac_status=$?
 
22471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22472
  (exit $ac_status); }; }; then
 
22473
  ac_cv_wchar_t_signed=yes
 
22474
else
 
22475
  echo "$as_me: program exited with status $ac_status" >&5
 
22476
echo "$as_me: failed program was:" >&5
 
22477
sed 's/^/| /' conftest.$ac_ext >&5
 
22478
 
 
22479
( exit $ac_status )
 
22480
ac_cv_wchar_t_signed=no
 
22481
fi
 
22482
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22483
fi
 
22484
 
 
22485
 
 
22486
fi
 
22487
 
 
22488
  { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
 
22489
echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
 
22490
fi
 
22491
 
 
22492
{ echo "$as_me:$LINENO: checking what type to use for unicode" >&5
 
22493
echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
 
22494
# Check whether --enable-unicode was given.
 
22495
if test "${enable_unicode+set}" = set; then
 
22496
  enableval=$enable_unicode;
 
22497
else
 
22498
  enable_unicode=yes
 
22499
fi
 
22500
 
 
22501
 
 
22502
if test $enable_unicode = yes
 
22503
then
 
22504
  # Without any arguments, Py_UNICODE defaults to two-byte mode
 
22505
  case "$have_ucs4_tcl" in
 
22506
  yes) enable_unicode="ucs4"
 
22507
       ;;
 
22508
  *)   enable_unicode="ucs2"
 
22509
       ;;
 
22510
  esac
 
22511
fi
 
22512
 
 
22513
 
 
22514
 
 
22515
case "$enable_unicode" in
 
22516
ucs2) unicode_size="2"
 
22517
      cat >>confdefs.h <<\_ACEOF
 
22518
#define Py_UNICODE_SIZE 2
 
22519
_ACEOF
 
22520
 
 
22521
      ;;
 
22522
ucs4) unicode_size="4"
 
22523
      cat >>confdefs.h <<\_ACEOF
 
22524
#define Py_UNICODE_SIZE 4
 
22525
_ACEOF
 
22526
 
 
22527
      ;;
 
22528
esac
 
22529
 
 
22530
 
 
22531
 
 
22532
 
 
22533
 
 
22534
if test "$enable_unicode" = "no"
 
22535
then
 
22536
  UNICODE_OBJS=""
 
22537
  { echo "$as_me:$LINENO: result: not used" >&5
 
22538
echo "${ECHO_T}not used" >&6; }
 
22539
else
 
22540
  UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
 
22541
 
 
22542
cat >>confdefs.h <<\_ACEOF
 
22543
#define Py_USING_UNICODE 1
 
22544
_ACEOF
 
22545
 
 
22546
 
 
22547
  # wchar_t is only usable if it maps to an unsigned type
 
22548
  if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
 
22549
          -a "$ac_cv_wchar_t_signed" = "no"
 
22550
  then
 
22551
    PY_UNICODE_TYPE="wchar_t"
 
22552
 
 
22553
cat >>confdefs.h <<\_ACEOF
 
22554
#define HAVE_USABLE_WCHAR_T 1
 
22555
_ACEOF
 
22556
 
 
22557
    cat >>confdefs.h <<\_ACEOF
 
22558
#define PY_UNICODE_TYPE wchar_t
 
22559
_ACEOF
 
22560
 
 
22561
  elif test "$ac_cv_sizeof_short" = "$unicode_size"
 
22562
  then
 
22563
       PY_UNICODE_TYPE="unsigned short"
 
22564
       cat >>confdefs.h <<\_ACEOF
 
22565
#define PY_UNICODE_TYPE unsigned short
 
22566
_ACEOF
 
22567
 
 
22568
  elif test "$ac_cv_sizeof_long" = "$unicode_size"
 
22569
  then
 
22570
       PY_UNICODE_TYPE="unsigned long"
 
22571
       cat >>confdefs.h <<\_ACEOF
 
22572
#define PY_UNICODE_TYPE unsigned long
 
22573
_ACEOF
 
22574
 
 
22575
  else
 
22576
       PY_UNICODE_TYPE="no type found"
 
22577
  fi
 
22578
  { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
 
22579
echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
 
22580
fi
 
22581
 
 
22582
# check for endianness
 
22583
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
22584
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
22585
if test "${ac_cv_c_bigendian+set}" = set; then
 
22586
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22587
else
 
22588
  # See if sys/param.h defines the BYTE_ORDER macro.
 
22589
cat >conftest.$ac_ext <<_ACEOF
 
22590
/* confdefs.h.  */
 
22591
_ACEOF
 
22592
cat confdefs.h >>conftest.$ac_ext
 
22593
cat >>conftest.$ac_ext <<_ACEOF
 
22594
/* end confdefs.h.  */
 
22595
#include <sys/types.h>
 
22596
#include <sys/param.h>
 
22597
 
 
22598
int
 
22599
main ()
 
22600
{
 
22601
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
22602
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
22603
 bogus endian macros
 
22604
#endif
 
22605
 
 
22606
  ;
 
22607
  return 0;
 
22608
}
 
22609
_ACEOF
 
22610
rm -f conftest.$ac_objext
 
22611
if { (ac_try="$ac_compile"
 
22612
case "(($ac_try" in
 
22613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22614
  *) ac_try_echo=$ac_try;;
 
22615
esac
 
22616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22617
  (eval "$ac_compile") 2>conftest.er1
 
22618
  ac_status=$?
 
22619
  grep -v '^ *+' conftest.er1 >conftest.err
 
22620
  rm -f conftest.er1
 
22621
  cat conftest.err >&5
 
22622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22623
  (exit $ac_status); } && {
 
22624
         test -z "$ac_c_werror_flag" ||
 
22625
         test ! -s conftest.err
 
22626
       } && test -s conftest.$ac_objext; then
 
22627
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
22628
cat >conftest.$ac_ext <<_ACEOF
 
22629
/* confdefs.h.  */
 
22630
_ACEOF
 
22631
cat confdefs.h >>conftest.$ac_ext
 
22632
cat >>conftest.$ac_ext <<_ACEOF
 
22633
/* end confdefs.h.  */
 
22634
#include <sys/types.h>
 
22635
#include <sys/param.h>
 
22636
 
 
22637
int
 
22638
main ()
 
22639
{
 
22640
#if BYTE_ORDER != BIG_ENDIAN
 
22641
 not big endian
 
22642
#endif
 
22643
 
 
22644
  ;
 
22645
  return 0;
 
22646
}
 
22647
_ACEOF
 
22648
rm -f conftest.$ac_objext
 
22649
if { (ac_try="$ac_compile"
 
22650
case "(($ac_try" in
 
22651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22652
  *) ac_try_echo=$ac_try;;
 
22653
esac
 
22654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22655
  (eval "$ac_compile") 2>conftest.er1
 
22656
  ac_status=$?
 
22657
  grep -v '^ *+' conftest.er1 >conftest.err
 
22658
  rm -f conftest.er1
 
22659
  cat conftest.err >&5
 
22660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22661
  (exit $ac_status); } && {
 
22662
         test -z "$ac_c_werror_flag" ||
 
22663
         test ! -s conftest.err
 
22664
       } && test -s conftest.$ac_objext; then
 
22665
  ac_cv_c_bigendian=yes
 
22666
else
 
22667
  echo "$as_me: failed program was:" >&5
 
22668
sed 's/^/| /' conftest.$ac_ext >&5
 
22669
 
 
22670
        ac_cv_c_bigendian=no
 
22671
fi
 
22672
 
 
22673
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22674
else
 
22675
  echo "$as_me: failed program was:" >&5
 
22676
sed 's/^/| /' conftest.$ac_ext >&5
 
22677
 
 
22678
        # It does not; compile a test program.
 
22679
if test "$cross_compiling" = yes; then
 
22680
  # try to guess the endianness by grepping values into an object file
 
22681
  ac_cv_c_bigendian=unknown
 
22682
  cat >conftest.$ac_ext <<_ACEOF
 
22683
/* confdefs.h.  */
 
22684
_ACEOF
 
22685
cat confdefs.h >>conftest.$ac_ext
 
22686
cat >>conftest.$ac_ext <<_ACEOF
 
22687
/* end confdefs.h.  */
 
22688
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
22689
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
22690
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
22691
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
22692
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
22693
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
22694
int
 
22695
main ()
 
22696
{
 
22697
 _ascii (); _ebcdic ();
 
22698
  ;
 
22699
  return 0;
 
22700
}
 
22701
_ACEOF
 
22702
rm -f conftest.$ac_objext
 
22703
if { (ac_try="$ac_compile"
 
22704
case "(($ac_try" in
 
22705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22706
  *) ac_try_echo=$ac_try;;
 
22707
esac
 
22708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22709
  (eval "$ac_compile") 2>conftest.er1
 
22710
  ac_status=$?
 
22711
  grep -v '^ *+' conftest.er1 >conftest.err
 
22712
  rm -f conftest.er1
 
22713
  cat conftest.err >&5
 
22714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22715
  (exit $ac_status); } && {
 
22716
         test -z "$ac_c_werror_flag" ||
 
22717
         test ! -s conftest.err
 
22718
       } && test -s conftest.$ac_objext; then
 
22719
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
22720
  ac_cv_c_bigendian=yes
 
22721
fi
 
22722
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
22723
  if test "$ac_cv_c_bigendian" = unknown; then
 
22724
    ac_cv_c_bigendian=no
 
22725
  else
 
22726
    # finding both strings is unlikely to happen, but who knows?
 
22727
    ac_cv_c_bigendian=unknown
 
22728
  fi
 
22729
fi
 
22730
else
 
22731
  echo "$as_me: failed program was:" >&5
 
22732
sed 's/^/| /' conftest.$ac_ext >&5
 
22733
 
 
22734
 
 
22735
fi
 
22736
 
 
22737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22738
else
 
22739
  cat >conftest.$ac_ext <<_ACEOF
 
22740
/* confdefs.h.  */
 
22741
_ACEOF
 
22742
cat confdefs.h >>conftest.$ac_ext
 
22743
cat >>conftest.$ac_ext <<_ACEOF
 
22744
/* end confdefs.h.  */
 
22745
$ac_includes_default
 
22746
int
 
22747
main ()
 
22748
{
 
22749
 
 
22750
  /* Are we little or big endian?  From Harbison&Steele.  */
 
22751
  union
 
22752
  {
 
22753
    long int l;
 
22754
    char c[sizeof (long int)];
 
22755
  } u;
 
22756
  u.l = 1;
 
22757
  return u.c[sizeof (long int) - 1] == 1;
 
22758
 
 
22759
  ;
 
22760
  return 0;
 
22761
}
 
22762
_ACEOF
 
22763
rm -f conftest$ac_exeext
 
22764
if { (ac_try="$ac_link"
 
22765
case "(($ac_try" in
 
22766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22767
  *) ac_try_echo=$ac_try;;
 
22768
esac
 
22769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22770
  (eval "$ac_link") 2>&5
 
22771
  ac_status=$?
 
22772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22773
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22774
  { (case "(($ac_try" in
 
22775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22776
  *) ac_try_echo=$ac_try;;
 
22777
esac
 
22778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22779
  (eval "$ac_try") 2>&5
 
22780
  ac_status=$?
 
22781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22782
  (exit $ac_status); }; }; then
 
22783
  ac_cv_c_bigendian=no
 
22784
else
 
22785
  echo "$as_me: program exited with status $ac_status" >&5
 
22786
echo "$as_me: failed program was:" >&5
 
22787
sed 's/^/| /' conftest.$ac_ext >&5
 
22788
 
 
22789
( exit $ac_status )
 
22790
ac_cv_c_bigendian=yes
 
22791
fi
 
22792
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22793
fi
 
22794
 
 
22795
 
 
22796
fi
 
22797
 
 
22798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22799
fi
 
22800
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
22801
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
22802
case $ac_cv_c_bigendian in
 
22803
  yes)
 
22804
 
 
22805
cat >>confdefs.h <<\_ACEOF
 
22806
#define WORDS_BIGENDIAN 1
 
22807
_ACEOF
 
22808
 ;;
 
22809
  no)
 
22810
     ;;
 
22811
  *)
 
22812
    { { echo "$as_me:$LINENO: error: unknown endianness
 
22813
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
22814
echo "$as_me: error: unknown endianness
 
22815
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
22816
   { (exit 1); exit 1; }; } ;;
 
22817
esac
 
22818
 
 
22819
 
 
22820
# Check whether right shifting a negative integer extends the sign bit
 
22821
# or fills with zeros (like the Cray J90, according to Tim Peters).
 
22822
{ echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
 
22823
echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
 
22824
if test "${ac_cv_rshift_extends_sign+set}" = set; then
 
22825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22826
else
 
22827
 
 
22828
if test "$cross_compiling" = yes; then
 
22829
  ac_cv_rshift_extends_sign=yes
 
22830
else
 
22831
  cat >conftest.$ac_ext <<_ACEOF
 
22832
/* confdefs.h.  */
 
22833
_ACEOF
 
22834
cat confdefs.h >>conftest.$ac_ext
 
22835
cat >>conftest.$ac_ext <<_ACEOF
 
22836
/* end confdefs.h.  */
 
22837
 
 
22838
int main()
 
22839
{
 
22840
        exit(((-1)>>3 == -1) ? 0 : 1);
 
22841
}
 
22842
 
 
22843
_ACEOF
 
22844
rm -f conftest$ac_exeext
 
22845
if { (ac_try="$ac_link"
 
22846
case "(($ac_try" in
 
22847
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22848
  *) ac_try_echo=$ac_try;;
 
22849
esac
 
22850
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22851
  (eval "$ac_link") 2>&5
 
22852
  ac_status=$?
 
22853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22854
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22855
  { (case "(($ac_try" in
 
22856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22857
  *) ac_try_echo=$ac_try;;
 
22858
esac
 
22859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22860
  (eval "$ac_try") 2>&5
 
22861
  ac_status=$?
 
22862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22863
  (exit $ac_status); }; }; then
 
22864
  ac_cv_rshift_extends_sign=yes
 
22865
else
 
22866
  echo "$as_me: program exited with status $ac_status" >&5
 
22867
echo "$as_me: failed program was:" >&5
 
22868
sed 's/^/| /' conftest.$ac_ext >&5
 
22869
 
 
22870
( exit $ac_status )
 
22871
ac_cv_rshift_extends_sign=no
 
22872
fi
 
22873
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22874
fi
 
22875
 
 
22876
 
 
22877
fi
 
22878
 
 
22879
{ echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
 
22880
echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
 
22881
if test "$ac_cv_rshift_extends_sign" = no
 
22882
then
 
22883
 
 
22884
cat >>confdefs.h <<\_ACEOF
 
22885
#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
 
22886
_ACEOF
 
22887
 
 
22888
fi
 
22889
 
 
22890
# check for getc_unlocked and related locking functions
 
22891
{ echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
 
22892
echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
 
22893
if test "${ac_cv_have_getc_unlocked+set}" = set; then
 
22894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22895
else
 
22896
 
 
22897
cat >conftest.$ac_ext <<_ACEOF
 
22898
/* confdefs.h.  */
 
22899
_ACEOF
 
22900
cat confdefs.h >>conftest.$ac_ext
 
22901
cat >>conftest.$ac_ext <<_ACEOF
 
22902
/* end confdefs.h.  */
 
22903
#include <stdio.h>
 
22904
int
 
22905
main ()
 
22906
{
 
22907
 
 
22908
        FILE *f = fopen("/dev/null", "r");
 
22909
        flockfile(f);
 
22910
        getc_unlocked(f);
 
22911
        funlockfile(f);
 
22912
 
 
22913
  ;
 
22914
  return 0;
 
22915
}
 
22916
_ACEOF
 
22917
rm -f conftest.$ac_objext conftest$ac_exeext
 
22918
if { (ac_try="$ac_link"
 
22919
case "(($ac_try" in
 
22920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22921
  *) ac_try_echo=$ac_try;;
 
22922
esac
 
22923
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22924
  (eval "$ac_link") 2>conftest.er1
 
22925
  ac_status=$?
 
22926
  grep -v '^ *+' conftest.er1 >conftest.err
 
22927
  rm -f conftest.er1
 
22928
  cat conftest.err >&5
 
22929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22930
  (exit $ac_status); } && {
 
22931
         test -z "$ac_c_werror_flag" ||
 
22932
         test ! -s conftest.err
 
22933
       } && test -s conftest$ac_exeext &&
 
22934
       $as_test_x conftest$ac_exeext; then
 
22935
  ac_cv_have_getc_unlocked=yes
 
22936
else
 
22937
  echo "$as_me: failed program was:" >&5
 
22938
sed 's/^/| /' conftest.$ac_ext >&5
 
22939
 
 
22940
        ac_cv_have_getc_unlocked=no
 
22941
fi
 
22942
 
 
22943
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22944
      conftest$ac_exeext conftest.$ac_ext
 
22945
fi
 
22946
 
 
22947
{ echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
 
22948
echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
 
22949
if test "$ac_cv_have_getc_unlocked" = yes
 
22950
then
 
22951
 
 
22952
cat >>confdefs.h <<\_ACEOF
 
22953
#define HAVE_GETC_UNLOCKED 1
 
22954
_ACEOF
 
22955
 
 
22956
fi
 
22957
 
 
22958
# check where readline lives
 
22959
# save the value of LIBS so we don't actually link Python with readline
 
22960
LIBS_no_readline=$LIBS
 
22961
 
 
22962
# On some systems we need to link readline to a termcap compatible
 
22963
# library.  NOTE: Keep the precedence of listed libraries synchronised
 
22964
# with setup.py.
 
22965
py_cv_lib_readline=no
 
22966
{ echo "$as_me:$LINENO: checking how to link readline libs" >&5
 
22967
echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
 
22968
for py_libtermcap in "" ncursesw ncurses curses termcap; do
 
22969
  if test -z "$py_libtermcap"; then
 
22970
    READLINE_LIBS="-lreadline"
 
22971
  else
 
22972
    READLINE_LIBS="-lreadline -l$py_libtermcap"
 
22973
  fi
 
22974
  LIBS="$READLINE_LIBS $LIBS_no_readline"
 
22975
  cat >conftest.$ac_ext <<_ACEOF
 
22976
/* confdefs.h.  */
 
22977
_ACEOF
 
22978
cat confdefs.h >>conftest.$ac_ext
 
22979
cat >>conftest.$ac_ext <<_ACEOF
 
22980
/* end confdefs.h.  */
 
22981
 
 
22982
/* Override any GCC internal prototype to avoid an error.
 
22983
   Use char because int might match the return type of a GCC
 
22984
   builtin and then its argument prototype would still apply.  */
 
22985
#ifdef __cplusplus
 
22986
extern "C"
 
22987
#endif
 
22988
char readline ();
 
22989
int
 
22990
main ()
 
22991
{
 
22992
return readline ();
 
22993
  ;
 
22994
  return 0;
 
22995
}
 
22996
_ACEOF
 
22997
rm -f conftest.$ac_objext conftest$ac_exeext
 
22998
if { (ac_try="$ac_link"
 
22999
case "(($ac_try" in
 
23000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23001
  *) ac_try_echo=$ac_try;;
 
23002
esac
 
23003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23004
  (eval "$ac_link") 2>conftest.er1
 
23005
  ac_status=$?
 
23006
  grep -v '^ *+' conftest.er1 >conftest.err
 
23007
  rm -f conftest.er1
 
23008
  cat conftest.err >&5
 
23009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23010
  (exit $ac_status); } && {
 
23011
         test -z "$ac_c_werror_flag" ||
 
23012
         test ! -s conftest.err
 
23013
       } && test -s conftest$ac_exeext &&
 
23014
       $as_test_x conftest$ac_exeext; then
 
23015
  py_cv_lib_readline=yes
 
23016
else
 
23017
  echo "$as_me: failed program was:" >&5
 
23018
sed 's/^/| /' conftest.$ac_ext >&5
 
23019
 
 
23020
 
 
23021
fi
 
23022
 
 
23023
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23024
      conftest$ac_exeext conftest.$ac_ext
 
23025
  if test $py_cv_lib_readline = yes; then
 
23026
    break
 
23027
  fi
 
23028
done
 
23029
# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
 
23030
#AC_SUBST([READLINE_LIBS])
 
23031
if test $py_cv_lib_readline = no; then
 
23032
  { echo "$as_me:$LINENO: result: none" >&5
 
23033
echo "${ECHO_T}none" >&6; }
 
23034
else
 
23035
  { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
 
23036
echo "${ECHO_T}$READLINE_LIBS" >&6; }
 
23037
 
 
23038
cat >>confdefs.h <<\_ACEOF
 
23039
#define HAVE_LIBREADLINE 1
 
23040
_ACEOF
 
23041
 
 
23042
fi
 
23043
 
 
23044
# check for readline 2.1
 
23045
{ echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
 
23046
echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
 
23047
if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
 
23048
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23049
else
 
23050
  ac_check_lib_save_LIBS=$LIBS
 
23051
LIBS="-lreadline $READLINE_LIBS $LIBS"
 
23052
cat >conftest.$ac_ext <<_ACEOF
 
23053
/* confdefs.h.  */
 
23054
_ACEOF
 
23055
cat confdefs.h >>conftest.$ac_ext
 
23056
cat >>conftest.$ac_ext <<_ACEOF
 
23057
/* end confdefs.h.  */
 
23058
 
 
23059
/* Override any GCC internal prototype to avoid an error.
 
23060
   Use char because int might match the return type of a GCC
 
23061
   builtin and then its argument prototype would still apply.  */
 
23062
#ifdef __cplusplus
 
23063
extern "C"
 
23064
#endif
 
23065
char rl_callback_handler_install ();
 
23066
int
 
23067
main ()
 
23068
{
 
23069
return rl_callback_handler_install ();
 
23070
  ;
 
23071
  return 0;
 
23072
}
 
23073
_ACEOF
 
23074
rm -f conftest.$ac_objext conftest$ac_exeext
 
23075
if { (ac_try="$ac_link"
 
23076
case "(($ac_try" in
 
23077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23078
  *) ac_try_echo=$ac_try;;
 
23079
esac
 
23080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23081
  (eval "$ac_link") 2>conftest.er1
 
23082
  ac_status=$?
 
23083
  grep -v '^ *+' conftest.er1 >conftest.err
 
23084
  rm -f conftest.er1
 
23085
  cat conftest.err >&5
 
23086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23087
  (exit $ac_status); } && {
 
23088
         test -z "$ac_c_werror_flag" ||
 
23089
         test ! -s conftest.err
 
23090
       } && test -s conftest$ac_exeext &&
 
23091
       $as_test_x conftest$ac_exeext; then
 
23092
  ac_cv_lib_readline_rl_callback_handler_install=yes
 
23093
else
 
23094
  echo "$as_me: failed program was:" >&5
 
23095
sed 's/^/| /' conftest.$ac_ext >&5
 
23096
 
 
23097
        ac_cv_lib_readline_rl_callback_handler_install=no
 
23098
fi
 
23099
 
 
23100
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23101
      conftest$ac_exeext conftest.$ac_ext
 
23102
LIBS=$ac_check_lib_save_LIBS
 
23103
fi
 
23104
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
 
23105
echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
 
23106
if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
 
23107
 
 
23108
cat >>confdefs.h <<\_ACEOF
 
23109
#define HAVE_RL_CALLBACK 1
 
23110
_ACEOF
 
23111
 
 
23112
fi
 
23113
 
 
23114
 
 
23115
# check for readline 2.2
 
23116
cat >conftest.$ac_ext <<_ACEOF
 
23117
/* confdefs.h.  */
 
23118
_ACEOF
 
23119
cat confdefs.h >>conftest.$ac_ext
 
23120
cat >>conftest.$ac_ext <<_ACEOF
 
23121
/* end confdefs.h.  */
 
23122
#include <readline/readline.h>
 
23123
_ACEOF
 
23124
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23125
case "(($ac_try" in
 
23126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23127
  *) ac_try_echo=$ac_try;;
 
23128
esac
 
23129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23130
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23131
  ac_status=$?
 
23132
  grep -v '^ *+' conftest.er1 >conftest.err
 
23133
  rm -f conftest.er1
 
23134
  cat conftest.err >&5
 
23135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23136
  (exit $ac_status); } >/dev/null && {
 
23137
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23138
         test ! -s conftest.err
 
23139
       }; then
 
23140
  have_readline=yes
 
23141
else
 
23142
  echo "$as_me: failed program was:" >&5
 
23143
sed 's/^/| /' conftest.$ac_ext >&5
 
23144
 
 
23145
  have_readline=no
 
23146
fi
 
23147
 
 
23148
rm -f conftest.err conftest.$ac_ext
 
23149
if test $have_readline = yes
 
23150
then
 
23151
  cat >conftest.$ac_ext <<_ACEOF
 
23152
/* confdefs.h.  */
 
23153
_ACEOF
 
23154
cat confdefs.h >>conftest.$ac_ext
 
23155
cat >>conftest.$ac_ext <<_ACEOF
 
23156
/* end confdefs.h.  */
 
23157
#include <readline/readline.h>
 
23158
 
 
23159
_ACEOF
 
23160
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
23161
  $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
 
23162
 
 
23163
cat >>confdefs.h <<\_ACEOF
 
23164
#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
 
23165
_ACEOF
 
23166
 
 
23167
fi
 
23168
rm -f conftest*
 
23169
 
 
23170
fi
 
23171
 
 
23172
# check for readline 4.0
 
23173
{ echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
 
23174
echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
 
23175
if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
 
23176
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23177
else
 
23178
  ac_check_lib_save_LIBS=$LIBS
 
23179
LIBS="-lreadline $READLINE_LIBS $LIBS"
 
23180
cat >conftest.$ac_ext <<_ACEOF
 
23181
/* confdefs.h.  */
 
23182
_ACEOF
 
23183
cat confdefs.h >>conftest.$ac_ext
 
23184
cat >>conftest.$ac_ext <<_ACEOF
 
23185
/* end confdefs.h.  */
 
23186
 
 
23187
/* Override any GCC internal prototype to avoid an error.
 
23188
   Use char because int might match the return type of a GCC
 
23189
   builtin and then its argument prototype would still apply.  */
 
23190
#ifdef __cplusplus
 
23191
extern "C"
 
23192
#endif
 
23193
char rl_pre_input_hook ();
 
23194
int
 
23195
main ()
 
23196
{
 
23197
return rl_pre_input_hook ();
 
23198
  ;
 
23199
  return 0;
 
23200
}
 
23201
_ACEOF
 
23202
rm -f conftest.$ac_objext conftest$ac_exeext
 
23203
if { (ac_try="$ac_link"
 
23204
case "(($ac_try" in
 
23205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23206
  *) ac_try_echo=$ac_try;;
 
23207
esac
 
23208
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23209
  (eval "$ac_link") 2>conftest.er1
 
23210
  ac_status=$?
 
23211
  grep -v '^ *+' conftest.er1 >conftest.err
 
23212
  rm -f conftest.er1
 
23213
  cat conftest.err >&5
 
23214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23215
  (exit $ac_status); } && {
 
23216
         test -z "$ac_c_werror_flag" ||
 
23217
         test ! -s conftest.err
 
23218
       } && test -s conftest$ac_exeext &&
 
23219
       $as_test_x conftest$ac_exeext; then
 
23220
  ac_cv_lib_readline_rl_pre_input_hook=yes
 
23221
else
 
23222
  echo "$as_me: failed program was:" >&5
 
23223
sed 's/^/| /' conftest.$ac_ext >&5
 
23224
 
 
23225
        ac_cv_lib_readline_rl_pre_input_hook=no
 
23226
fi
 
23227
 
 
23228
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23229
      conftest$ac_exeext conftest.$ac_ext
 
23230
LIBS=$ac_check_lib_save_LIBS
 
23231
fi
 
23232
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
 
23233
echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
 
23234
if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
 
23235
 
 
23236
cat >>confdefs.h <<\_ACEOF
 
23237
#define HAVE_RL_PRE_INPUT_HOOK 1
 
23238
_ACEOF
 
23239
 
 
23240
fi
 
23241
 
 
23242
 
 
23243
# also in 4.0
 
23244
{ echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
 
23245
echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
 
23246
if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
 
23247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23248
else
 
23249
  ac_check_lib_save_LIBS=$LIBS
 
23250
LIBS="-lreadline $READLINE_LIBS $LIBS"
 
23251
cat >conftest.$ac_ext <<_ACEOF
 
23252
/* confdefs.h.  */
 
23253
_ACEOF
 
23254
cat confdefs.h >>conftest.$ac_ext
 
23255
cat >>conftest.$ac_ext <<_ACEOF
 
23256
/* end confdefs.h.  */
 
23257
 
 
23258
/* Override any GCC internal prototype to avoid an error.
 
23259
   Use char because int might match the return type of a GCC
 
23260
   builtin and then its argument prototype would still apply.  */
 
23261
#ifdef __cplusplus
 
23262
extern "C"
 
23263
#endif
 
23264
char rl_completion_display_matches_hook ();
 
23265
int
 
23266
main ()
 
23267
{
 
23268
return rl_completion_display_matches_hook ();
 
23269
  ;
 
23270
  return 0;
 
23271
}
 
23272
_ACEOF
 
23273
rm -f conftest.$ac_objext conftest$ac_exeext
 
23274
if { (ac_try="$ac_link"
 
23275
case "(($ac_try" in
 
23276
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23277
  *) ac_try_echo=$ac_try;;
 
23278
esac
 
23279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23280
  (eval "$ac_link") 2>conftest.er1
 
23281
  ac_status=$?
 
23282
  grep -v '^ *+' conftest.er1 >conftest.err
 
23283
  rm -f conftest.er1
 
23284
  cat conftest.err >&5
 
23285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23286
  (exit $ac_status); } && {
 
23287
         test -z "$ac_c_werror_flag" ||
 
23288
         test ! -s conftest.err
 
23289
       } && test -s conftest$ac_exeext &&
 
23290
       $as_test_x conftest$ac_exeext; then
 
23291
  ac_cv_lib_readline_rl_completion_display_matches_hook=yes
 
23292
else
 
23293
  echo "$as_me: failed program was:" >&5
 
23294
sed 's/^/| /' conftest.$ac_ext >&5
 
23295
 
 
23296
        ac_cv_lib_readline_rl_completion_display_matches_hook=no
 
23297
fi
 
23298
 
 
23299
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23300
      conftest$ac_exeext conftest.$ac_ext
 
23301
LIBS=$ac_check_lib_save_LIBS
 
23302
fi
 
23303
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
 
23304
echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
 
23305
if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
 
23306
 
 
23307
cat >>confdefs.h <<\_ACEOF
 
23308
#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
 
23309
_ACEOF
 
23310
 
 
23311
fi
 
23312
 
 
23313
 
 
23314
# check for readline 4.2
 
23315
{ echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
 
23316
echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
 
23317
if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
 
23318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23319
else
 
23320
  ac_check_lib_save_LIBS=$LIBS
 
23321
LIBS="-lreadline $READLINE_LIBS $LIBS"
 
23322
cat >conftest.$ac_ext <<_ACEOF
 
23323
/* confdefs.h.  */
 
23324
_ACEOF
 
23325
cat confdefs.h >>conftest.$ac_ext
 
23326
cat >>conftest.$ac_ext <<_ACEOF
 
23327
/* end confdefs.h.  */
 
23328
 
 
23329
/* Override any GCC internal prototype to avoid an error.
 
23330
   Use char because int might match the return type of a GCC
 
23331
   builtin and then its argument prototype would still apply.  */
 
23332
#ifdef __cplusplus
 
23333
extern "C"
 
23334
#endif
 
23335
char rl_completion_matches ();
 
23336
int
 
23337
main ()
 
23338
{
 
23339
return rl_completion_matches ();
 
23340
  ;
 
23341
  return 0;
 
23342
}
 
23343
_ACEOF
 
23344
rm -f conftest.$ac_objext conftest$ac_exeext
 
23345
if { (ac_try="$ac_link"
 
23346
case "(($ac_try" in
 
23347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23348
  *) ac_try_echo=$ac_try;;
 
23349
esac
 
23350
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23351
  (eval "$ac_link") 2>conftest.er1
 
23352
  ac_status=$?
 
23353
  grep -v '^ *+' conftest.er1 >conftest.err
 
23354
  rm -f conftest.er1
 
23355
  cat conftest.err >&5
 
23356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23357
  (exit $ac_status); } && {
 
23358
         test -z "$ac_c_werror_flag" ||
 
23359
         test ! -s conftest.err
 
23360
       } && test -s conftest$ac_exeext &&
 
23361
       $as_test_x conftest$ac_exeext; then
 
23362
  ac_cv_lib_readline_rl_completion_matches=yes
 
23363
else
 
23364
  echo "$as_me: failed program was:" >&5
 
23365
sed 's/^/| /' conftest.$ac_ext >&5
 
23366
 
 
23367
        ac_cv_lib_readline_rl_completion_matches=no
 
23368
fi
 
23369
 
 
23370
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23371
      conftest$ac_exeext conftest.$ac_ext
 
23372
LIBS=$ac_check_lib_save_LIBS
 
23373
fi
 
23374
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
 
23375
echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
 
23376
if test $ac_cv_lib_readline_rl_completion_matches = yes; then
 
23377
 
 
23378
cat >>confdefs.h <<\_ACEOF
 
23379
#define HAVE_RL_COMPLETION_MATCHES 1
 
23380
_ACEOF
 
23381
 
 
23382
fi
 
23383
 
 
23384
 
 
23385
# also in readline 4.2
 
23386
cat >conftest.$ac_ext <<_ACEOF
 
23387
/* confdefs.h.  */
 
23388
_ACEOF
 
23389
cat confdefs.h >>conftest.$ac_ext
 
23390
cat >>conftest.$ac_ext <<_ACEOF
 
23391
/* end confdefs.h.  */
 
23392
#include <readline/readline.h>
 
23393
_ACEOF
 
23394
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23395
case "(($ac_try" in
 
23396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23397
  *) ac_try_echo=$ac_try;;
 
23398
esac
 
23399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23400
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23401
  ac_status=$?
 
23402
  grep -v '^ *+' conftest.er1 >conftest.err
 
23403
  rm -f conftest.er1
 
23404
  cat conftest.err >&5
 
23405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23406
  (exit $ac_status); } >/dev/null && {
 
23407
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23408
         test ! -s conftest.err
 
23409
       }; then
 
23410
  have_readline=yes
 
23411
else
 
23412
  echo "$as_me: failed program was:" >&5
 
23413
sed 's/^/| /' conftest.$ac_ext >&5
 
23414
 
 
23415
  have_readline=no
 
23416
fi
 
23417
 
 
23418
rm -f conftest.err conftest.$ac_ext
 
23419
if test $have_readline = yes
 
23420
then
 
23421
  cat >conftest.$ac_ext <<_ACEOF
 
23422
/* confdefs.h.  */
 
23423
_ACEOF
 
23424
cat confdefs.h >>conftest.$ac_ext
 
23425
cat >>conftest.$ac_ext <<_ACEOF
 
23426
/* end confdefs.h.  */
 
23427
#include <readline/readline.h>
 
23428
 
 
23429
_ACEOF
 
23430
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
23431
  $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
 
23432
 
 
23433
cat >>confdefs.h <<\_ACEOF
 
23434
#define HAVE_RL_CATCH_SIGNAL 1
 
23435
_ACEOF
 
23436
 
 
23437
fi
 
23438
rm -f conftest*
 
23439
 
 
23440
fi
 
23441
 
 
23442
# End of readline checks: restore LIBS
 
23443
LIBS=$LIBS_no_readline
 
23444
 
 
23445
{ echo "$as_me:$LINENO: checking for broken nice()" >&5
 
23446
echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
 
23447
if test "${ac_cv_broken_nice+set}" = set; then
 
23448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23449
else
 
23450
 
 
23451
if test "$cross_compiling" = yes; then
 
23452
  ac_cv_broken_nice=no
 
23453
else
 
23454
  cat >conftest.$ac_ext <<_ACEOF
 
23455
/* confdefs.h.  */
 
23456
_ACEOF
 
23457
cat confdefs.h >>conftest.$ac_ext
 
23458
cat >>conftest.$ac_ext <<_ACEOF
 
23459
/* end confdefs.h.  */
 
23460
 
 
23461
int main()
 
23462
{
 
23463
        int val1 = nice(1);
 
23464
        if (val1 != -1 && val1 == nice(2))
 
23465
                exit(0);
 
23466
        exit(1);
 
23467
}
 
23468
 
 
23469
_ACEOF
 
23470
rm -f conftest$ac_exeext
 
23471
if { (ac_try="$ac_link"
 
23472
case "(($ac_try" in
 
23473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23474
  *) ac_try_echo=$ac_try;;
 
23475
esac
 
23476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23477
  (eval "$ac_link") 2>&5
 
23478
  ac_status=$?
 
23479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23480
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23481
  { (case "(($ac_try" in
 
23482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23483
  *) ac_try_echo=$ac_try;;
 
23484
esac
 
23485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23486
  (eval "$ac_try") 2>&5
 
23487
  ac_status=$?
 
23488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23489
  (exit $ac_status); }; }; then
 
23490
  ac_cv_broken_nice=yes
 
23491
else
 
23492
  echo "$as_me: program exited with status $ac_status" >&5
 
23493
echo "$as_me: failed program was:" >&5
 
23494
sed 's/^/| /' conftest.$ac_ext >&5
 
23495
 
 
23496
( exit $ac_status )
 
23497
ac_cv_broken_nice=no
 
23498
fi
 
23499
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23500
fi
 
23501
 
 
23502
 
 
23503
fi
 
23504
 
 
23505
{ echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
 
23506
echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
 
23507
if test "$ac_cv_broken_nice" = yes
 
23508
then
 
23509
 
 
23510
cat >>confdefs.h <<\_ACEOF
 
23511
#define HAVE_BROKEN_NICE 1
 
23512
_ACEOF
 
23513
 
 
23514
fi
 
23515
 
 
23516
{ echo "$as_me:$LINENO: checking for broken poll()" >&5
 
23517
echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
 
23518
if test "$cross_compiling" = yes; then
 
23519
  ac_cv_broken_poll=no
 
23520
else
 
23521
  cat >conftest.$ac_ext <<_ACEOF
 
23522
/* confdefs.h.  */
 
23523
_ACEOF
 
23524
cat confdefs.h >>conftest.$ac_ext
 
23525
cat >>conftest.$ac_ext <<_ACEOF
 
23526
/* end confdefs.h.  */
 
23527
 
 
23528
#include <poll.h>
 
23529
 
 
23530
int main (void)
 
23531
    {
 
23532
    struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
 
23533
 
 
23534
    close (42);
 
23535
 
 
23536
    int poll_test = poll (&poll_struct, 1, 0);
 
23537
 
 
23538
    if (poll_test < 0)
 
23539
        {
 
23540
        exit(0);
 
23541
        }
 
23542
    else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
 
23543
        {
 
23544
        exit(0);
 
23545
        }
 
23546
    else
 
23547
        {
 
23548
        exit(1);
 
23549
        }
 
23550
    }
 
23551
 
 
23552
_ACEOF
 
23553
rm -f conftest$ac_exeext
 
23554
if { (ac_try="$ac_link"
 
23555
case "(($ac_try" in
 
23556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23557
  *) ac_try_echo=$ac_try;;
 
23558
esac
 
23559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23560
  (eval "$ac_link") 2>&5
 
23561
  ac_status=$?
 
23562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23563
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23564
  { (case "(($ac_try" in
 
23565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23566
  *) ac_try_echo=$ac_try;;
 
23567
esac
 
23568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23569
  (eval "$ac_try") 2>&5
 
23570
  ac_status=$?
 
23571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23572
  (exit $ac_status); }; }; then
 
23573
  ac_cv_broken_poll=yes
 
23574
else
 
23575
  echo "$as_me: program exited with status $ac_status" >&5
 
23576
echo "$as_me: failed program was:" >&5
 
23577
sed 's/^/| /' conftest.$ac_ext >&5
 
23578
 
 
23579
( exit $ac_status )
 
23580
ac_cv_broken_poll=no
 
23581
fi
 
23582
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23583
fi
 
23584
 
 
23585
 
 
23586
{ echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
 
23587
echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
 
23588
if test "$ac_cv_broken_poll" = yes
 
23589
then
 
23590
 
 
23591
cat >>confdefs.h <<\_ACEOF
 
23592
#define HAVE_BROKEN_POLL 1
 
23593
_ACEOF
 
23594
 
 
23595
fi
 
23596
 
 
23597
# Before we can test tzset, we need to check if struct tm has a tm_zone
 
23598
# (which is not required by ISO C or UNIX spec) and/or if we support
 
23599
# tzname[]
 
23600
{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
 
23601
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
 
23602
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
 
23603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23604
else
 
23605
  cat >conftest.$ac_ext <<_ACEOF
 
23606
/* confdefs.h.  */
 
23607
_ACEOF
 
23608
cat confdefs.h >>conftest.$ac_ext
 
23609
cat >>conftest.$ac_ext <<_ACEOF
 
23610
/* end confdefs.h.  */
 
23611
#include <sys/types.h>
 
23612
#include <$ac_cv_struct_tm>
 
23613
 
 
23614
 
 
23615
int
 
23616
main ()
 
23617
{
 
23618
static struct tm ac_aggr;
 
23619
if (ac_aggr.tm_zone)
 
23620
return 0;
 
23621
  ;
 
23622
  return 0;
 
23623
}
 
23624
_ACEOF
 
23625
rm -f conftest.$ac_objext
 
23626
if { (ac_try="$ac_compile"
 
23627
case "(($ac_try" in
 
23628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23629
  *) ac_try_echo=$ac_try;;
 
23630
esac
 
23631
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23632
  (eval "$ac_compile") 2>conftest.er1
 
23633
  ac_status=$?
 
23634
  grep -v '^ *+' conftest.er1 >conftest.err
 
23635
  rm -f conftest.er1
 
23636
  cat conftest.err >&5
 
23637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23638
  (exit $ac_status); } && {
 
23639
         test -z "$ac_c_werror_flag" ||
 
23640
         test ! -s conftest.err
 
23641
       } && test -s conftest.$ac_objext; then
 
23642
  ac_cv_member_struct_tm_tm_zone=yes
 
23643
else
 
23644
  echo "$as_me: failed program was:" >&5
 
23645
sed 's/^/| /' conftest.$ac_ext >&5
 
23646
 
 
23647
        cat >conftest.$ac_ext <<_ACEOF
 
23648
/* confdefs.h.  */
 
23649
_ACEOF
 
23650
cat confdefs.h >>conftest.$ac_ext
 
23651
cat >>conftest.$ac_ext <<_ACEOF
 
23652
/* end confdefs.h.  */
 
23653
#include <sys/types.h>
 
23654
#include <$ac_cv_struct_tm>
 
23655
 
 
23656
 
 
23657
int
 
23658
main ()
 
23659
{
 
23660
static struct tm ac_aggr;
 
23661
if (sizeof ac_aggr.tm_zone)
 
23662
return 0;
 
23663
  ;
 
23664
  return 0;
 
23665
}
 
23666
_ACEOF
 
23667
rm -f conftest.$ac_objext
 
23668
if { (ac_try="$ac_compile"
 
23669
case "(($ac_try" in
 
23670
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23671
  *) ac_try_echo=$ac_try;;
 
23672
esac
 
23673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23674
  (eval "$ac_compile") 2>conftest.er1
 
23675
  ac_status=$?
 
23676
  grep -v '^ *+' conftest.er1 >conftest.err
 
23677
  rm -f conftest.er1
 
23678
  cat conftest.err >&5
 
23679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23680
  (exit $ac_status); } && {
 
23681
         test -z "$ac_c_werror_flag" ||
 
23682
         test ! -s conftest.err
 
23683
       } && test -s conftest.$ac_objext; then
 
23684
  ac_cv_member_struct_tm_tm_zone=yes
 
23685
else
 
23686
  echo "$as_me: failed program was:" >&5
 
23687
sed 's/^/| /' conftest.$ac_ext >&5
 
23688
 
 
23689
        ac_cv_member_struct_tm_tm_zone=no
 
23690
fi
 
23691
 
 
23692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23693
fi
 
23694
 
 
23695
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23696
fi
 
23697
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
 
23698
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
 
23699
if test $ac_cv_member_struct_tm_tm_zone = yes; then
 
23700
 
 
23701
cat >>confdefs.h <<_ACEOF
 
23702
#define HAVE_STRUCT_TM_TM_ZONE 1
 
23703
_ACEOF
 
23704
 
 
23705
 
 
23706
fi
 
23707
 
 
23708
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
 
23709
 
 
23710
cat >>confdefs.h <<\_ACEOF
 
23711
#define HAVE_TM_ZONE 1
 
23712
_ACEOF
 
23713
 
 
23714
else
 
23715
  { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
 
23716
echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
 
23717
if test "${ac_cv_have_decl_tzname+set}" = set; then
 
23718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23719
else
 
23720
  cat >conftest.$ac_ext <<_ACEOF
 
23721
/* confdefs.h.  */
 
23722
_ACEOF
 
23723
cat confdefs.h >>conftest.$ac_ext
 
23724
cat >>conftest.$ac_ext <<_ACEOF
 
23725
/* end confdefs.h.  */
 
23726
#include <time.h>
 
23727
 
 
23728
int
 
23729
main ()
 
23730
{
 
23731
#ifndef tzname
 
23732
  (void) tzname;
 
23733
#endif
 
23734
 
 
23735
  ;
 
23736
  return 0;
 
23737
}
 
23738
_ACEOF
 
23739
rm -f conftest.$ac_objext
 
23740
if { (ac_try="$ac_compile"
 
23741
case "(($ac_try" in
 
23742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23743
  *) ac_try_echo=$ac_try;;
 
23744
esac
 
23745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23746
  (eval "$ac_compile") 2>conftest.er1
 
23747
  ac_status=$?
 
23748
  grep -v '^ *+' conftest.er1 >conftest.err
 
23749
  rm -f conftest.er1
 
23750
  cat conftest.err >&5
 
23751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23752
  (exit $ac_status); } && {
 
23753
         test -z "$ac_c_werror_flag" ||
 
23754
         test ! -s conftest.err
 
23755
       } && test -s conftest.$ac_objext; then
 
23756
  ac_cv_have_decl_tzname=yes
 
23757
else
 
23758
  echo "$as_me: failed program was:" >&5
 
23759
sed 's/^/| /' conftest.$ac_ext >&5
 
23760
 
 
23761
        ac_cv_have_decl_tzname=no
 
23762
fi
 
23763
 
 
23764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23765
fi
 
23766
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
 
23767
echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
 
23768
if test $ac_cv_have_decl_tzname = yes; then
 
23769
 
 
23770
cat >>confdefs.h <<_ACEOF
 
23771
#define HAVE_DECL_TZNAME 1
 
23772
_ACEOF
 
23773
 
 
23774
 
 
23775
else
 
23776
  cat >>confdefs.h <<_ACEOF
 
23777
#define HAVE_DECL_TZNAME 0
 
23778
_ACEOF
 
23779
 
 
23780
 
 
23781
fi
 
23782
 
 
23783
 
 
23784
  { echo "$as_me:$LINENO: checking for tzname" >&5
 
23785
echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
 
23786
if test "${ac_cv_var_tzname+set}" = set; then
 
23787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23788
else
 
23789
  cat >conftest.$ac_ext <<_ACEOF
 
23790
/* confdefs.h.  */
 
23791
_ACEOF
 
23792
cat confdefs.h >>conftest.$ac_ext
 
23793
cat >>conftest.$ac_ext <<_ACEOF
 
23794
/* end confdefs.h.  */
 
23795
#include <time.h>
 
23796
#if !HAVE_DECL_TZNAME
 
23797
extern char *tzname[];
 
23798
#endif
 
23799
 
 
23800
int
 
23801
main ()
 
23802
{
 
23803
return tzname[0][0];
 
23804
  ;
 
23805
  return 0;
 
23806
}
 
23807
_ACEOF
 
23808
rm -f conftest.$ac_objext conftest$ac_exeext
 
23809
if { (ac_try="$ac_link"
 
23810
case "(($ac_try" in
 
23811
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23812
  *) ac_try_echo=$ac_try;;
 
23813
esac
 
23814
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23815
  (eval "$ac_link") 2>conftest.er1
 
23816
  ac_status=$?
 
23817
  grep -v '^ *+' conftest.er1 >conftest.err
 
23818
  rm -f conftest.er1
 
23819
  cat conftest.err >&5
 
23820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23821
  (exit $ac_status); } && {
 
23822
         test -z "$ac_c_werror_flag" ||
 
23823
         test ! -s conftest.err
 
23824
       } && test -s conftest$ac_exeext &&
 
23825
       $as_test_x conftest$ac_exeext; then
 
23826
  ac_cv_var_tzname=yes
 
23827
else
 
23828
  echo "$as_me: failed program was:" >&5
 
23829
sed 's/^/| /' conftest.$ac_ext >&5
 
23830
 
 
23831
        ac_cv_var_tzname=no
 
23832
fi
 
23833
 
 
23834
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23835
      conftest$ac_exeext conftest.$ac_ext
 
23836
fi
 
23837
{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
 
23838
echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
 
23839
  if test $ac_cv_var_tzname = yes; then
 
23840
 
 
23841
cat >>confdefs.h <<\_ACEOF
 
23842
#define HAVE_TZNAME 1
 
23843
_ACEOF
 
23844
 
 
23845
  fi
 
23846
fi
 
23847
 
 
23848
 
 
23849
# check tzset(3) exists and works like we expect it to
 
23850
{ echo "$as_me:$LINENO: checking for working tzset()" >&5
 
23851
echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
 
23852
if test "${ac_cv_working_tzset+set}" = set; then
 
23853
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23854
else
 
23855
 
 
23856
if test "$cross_compiling" = yes; then
 
23857
  ac_cv_working_tzset=no
 
23858
else
 
23859
  cat >conftest.$ac_ext <<_ACEOF
 
23860
/* confdefs.h.  */
 
23861
_ACEOF
 
23862
cat confdefs.h >>conftest.$ac_ext
 
23863
cat >>conftest.$ac_ext <<_ACEOF
 
23864
/* end confdefs.h.  */
 
23865
 
 
23866
#include <stdlib.h>
 
23867
#include <time.h>
 
23868
#include <string.h>
 
23869
 
 
23870
#if HAVE_TZNAME
 
23871
extern char *tzname[];
 
23872
#endif
 
23873
 
 
23874
int main()
 
23875
{
 
23876
        /* Note that we need to ensure that not only does tzset(3)
 
23877
           do 'something' with localtime, but it works as documented
 
23878
           in the library reference and as expected by the test suite.
 
23879
           This includes making sure that tzname is set properly if
 
23880
           tm->tm_zone does not exist since it is the alternative way
 
23881
           of getting timezone info.
 
23882
 
 
23883
           Red Hat 6.2 doesn't understand the southern hemisphere
 
23884
           after New Year's Day.
 
23885
        */
 
23886
 
 
23887
        time_t groundhogday = 1044144000; /* GMT-based */
 
23888
        time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
 
23889
 
 
23890
        putenv("TZ=UTC+0");
 
23891
        tzset();
 
23892
        if (localtime(&groundhogday)->tm_hour != 0)
 
23893
            exit(1);
 
23894
#if HAVE_TZNAME
 
23895
        /* For UTC, tzname[1] is sometimes "", sometimes "   " */
 
23896
        if (strcmp(tzname[0], "UTC") ||
 
23897
                (tzname[1][0] != 0 && tzname[1][0] != ' '))
 
23898
            exit(1);
 
23899
#endif
 
23900
 
 
23901
        putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
 
23902
        tzset();
 
23903
        if (localtime(&groundhogday)->tm_hour != 19)
 
23904
            exit(1);
 
23905
#if HAVE_TZNAME
 
23906
        if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
 
23907
            exit(1);
 
23908
#endif
 
23909
 
 
23910
        putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
 
23911
        tzset();
 
23912
        if (localtime(&groundhogday)->tm_hour != 11)
 
23913
            exit(1);
 
23914
#if HAVE_TZNAME
 
23915
        if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
 
23916
            exit(1);
 
23917
#endif
 
23918
 
 
23919
#if HAVE_STRUCT_TM_TM_ZONE
 
23920
        if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
 
23921
            exit(1);
 
23922
        if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
 
23923
            exit(1);
 
23924
#endif
 
23925
 
 
23926
        exit(0);
 
23927
}
 
23928
 
 
23929
_ACEOF
 
23930
rm -f conftest$ac_exeext
 
23931
if { (ac_try="$ac_link"
 
23932
case "(($ac_try" in
 
23933
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23934
  *) ac_try_echo=$ac_try;;
 
23935
esac
 
23936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23937
  (eval "$ac_link") 2>&5
 
23938
  ac_status=$?
 
23939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23940
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23941
  { (case "(($ac_try" in
 
23942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23943
  *) ac_try_echo=$ac_try;;
 
23944
esac
 
23945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23946
  (eval "$ac_try") 2>&5
 
23947
  ac_status=$?
 
23948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23949
  (exit $ac_status); }; }; then
 
23950
  ac_cv_working_tzset=yes
 
23951
else
 
23952
  echo "$as_me: program exited with status $ac_status" >&5
 
23953
echo "$as_me: failed program was:" >&5
 
23954
sed 's/^/| /' conftest.$ac_ext >&5
 
23955
 
 
23956
( exit $ac_status )
 
23957
ac_cv_working_tzset=no
 
23958
fi
 
23959
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23960
fi
 
23961
 
 
23962
 
 
23963
fi
 
23964
 
 
23965
{ echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
 
23966
echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
 
23967
if test "$ac_cv_working_tzset" = yes
 
23968
then
 
23969
 
 
23970
cat >>confdefs.h <<\_ACEOF
 
23971
#define HAVE_WORKING_TZSET 1
 
23972
_ACEOF
 
23973
 
 
23974
fi
 
23975
 
 
23976
# Look for subsecond timestamps in struct stat
 
23977
{ echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
 
23978
echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
 
23979
if test "${ac_cv_stat_tv_nsec+set}" = set; then
 
23980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23981
else
 
23982
  cat >conftest.$ac_ext <<_ACEOF
 
23983
/* confdefs.h.  */
 
23984
_ACEOF
 
23985
cat confdefs.h >>conftest.$ac_ext
 
23986
cat >>conftest.$ac_ext <<_ACEOF
 
23987
/* end confdefs.h.  */
 
23988
#include <sys/stat.h>
 
23989
int
 
23990
main ()
 
23991
{
 
23992
 
 
23993
struct stat st;
 
23994
st.st_mtim.tv_nsec = 1;
 
23995
 
 
23996
  ;
 
23997
  return 0;
 
23998
}
 
23999
_ACEOF
 
24000
rm -f conftest.$ac_objext
 
24001
if { (ac_try="$ac_compile"
 
24002
case "(($ac_try" in
 
24003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24004
  *) ac_try_echo=$ac_try;;
 
24005
esac
 
24006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24007
  (eval "$ac_compile") 2>conftest.er1
 
24008
  ac_status=$?
 
24009
  grep -v '^ *+' conftest.er1 >conftest.err
 
24010
  rm -f conftest.er1
 
24011
  cat conftest.err >&5
 
24012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24013
  (exit $ac_status); } && {
 
24014
         test -z "$ac_c_werror_flag" ||
 
24015
         test ! -s conftest.err
 
24016
       } && test -s conftest.$ac_objext; then
 
24017
  ac_cv_stat_tv_nsec=yes
 
24018
else
 
24019
  echo "$as_me: failed program was:" >&5
 
24020
sed 's/^/| /' conftest.$ac_ext >&5
 
24021
 
 
24022
        ac_cv_stat_tv_nsec=no
 
24023
fi
 
24024
 
 
24025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24026
fi
 
24027
 
 
24028
{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
 
24029
echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
 
24030
if test "$ac_cv_stat_tv_nsec" = yes
 
24031
then
 
24032
 
 
24033
cat >>confdefs.h <<\_ACEOF
 
24034
#define HAVE_STAT_TV_NSEC 1
 
24035
_ACEOF
 
24036
 
 
24037
fi
 
24038
 
 
24039
# Look for BSD style subsecond timestamps in struct stat
 
24040
{ echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
 
24041
echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
 
24042
if test "${ac_cv_stat_tv_nsec2+set}" = set; then
 
24043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24044
else
 
24045
  cat >conftest.$ac_ext <<_ACEOF
 
24046
/* confdefs.h.  */
 
24047
_ACEOF
 
24048
cat confdefs.h >>conftest.$ac_ext
 
24049
cat >>conftest.$ac_ext <<_ACEOF
 
24050
/* end confdefs.h.  */
 
24051
#include <sys/stat.h>
 
24052
int
 
24053
main ()
 
24054
{
 
24055
 
 
24056
struct stat st;
 
24057
st.st_mtimespec.tv_nsec = 1;
 
24058
 
 
24059
  ;
 
24060
  return 0;
 
24061
}
 
24062
_ACEOF
 
24063
rm -f conftest.$ac_objext
 
24064
if { (ac_try="$ac_compile"
 
24065
case "(($ac_try" in
 
24066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24067
  *) ac_try_echo=$ac_try;;
 
24068
esac
 
24069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24070
  (eval "$ac_compile") 2>conftest.er1
 
24071
  ac_status=$?
 
24072
  grep -v '^ *+' conftest.er1 >conftest.err
 
24073
  rm -f conftest.er1
 
24074
  cat conftest.err >&5
 
24075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24076
  (exit $ac_status); } && {
 
24077
         test -z "$ac_c_werror_flag" ||
 
24078
         test ! -s conftest.err
 
24079
       } && test -s conftest.$ac_objext; then
 
24080
  ac_cv_stat_tv_nsec2=yes
 
24081
else
 
24082
  echo "$as_me: failed program was:" >&5
 
24083
sed 's/^/| /' conftest.$ac_ext >&5
 
24084
 
 
24085
        ac_cv_stat_tv_nsec2=no
 
24086
fi
 
24087
 
 
24088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24089
fi
 
24090
 
 
24091
{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
 
24092
echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
 
24093
if test "$ac_cv_stat_tv_nsec2" = yes
 
24094
then
 
24095
 
 
24096
cat >>confdefs.h <<\_ACEOF
 
24097
#define HAVE_STAT_TV_NSEC2 1
 
24098
_ACEOF
 
24099
 
 
24100
fi
 
24101
 
 
24102
# On HP/UX 11.0, mvwdelch is a block with a return statement
 
24103
{ echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
 
24104
echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
 
24105
if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
 
24106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24107
else
 
24108
  cat >conftest.$ac_ext <<_ACEOF
 
24109
/* confdefs.h.  */
 
24110
_ACEOF
 
24111
cat confdefs.h >>conftest.$ac_ext
 
24112
cat >>conftest.$ac_ext <<_ACEOF
 
24113
/* end confdefs.h.  */
 
24114
#include <curses.h>
 
24115
int
 
24116
main ()
 
24117
{
 
24118
 
 
24119
  int rtn;
 
24120
  rtn = mvwdelch(0,0,0);
 
24121
 
 
24122
  ;
 
24123
  return 0;
 
24124
}
 
24125
_ACEOF
 
24126
rm -f conftest.$ac_objext
 
24127
if { (ac_try="$ac_compile"
 
24128
case "(($ac_try" in
 
24129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24130
  *) ac_try_echo=$ac_try;;
 
24131
esac
 
24132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24133
  (eval "$ac_compile") 2>conftest.er1
 
24134
  ac_status=$?
 
24135
  grep -v '^ *+' conftest.er1 >conftest.err
 
24136
  rm -f conftest.er1
 
24137
  cat conftest.err >&5
 
24138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24139
  (exit $ac_status); } && {
 
24140
         test -z "$ac_c_werror_flag" ||
 
24141
         test ! -s conftest.err
 
24142
       } && test -s conftest.$ac_objext; then
 
24143
  ac_cv_mvwdelch_is_expression=yes
 
24144
else
 
24145
  echo "$as_me: failed program was:" >&5
 
24146
sed 's/^/| /' conftest.$ac_ext >&5
 
24147
 
 
24148
        ac_cv_mvwdelch_is_expression=no
 
24149
fi
 
24150
 
 
24151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24152
fi
 
24153
 
 
24154
{ echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
 
24155
echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
 
24156
 
 
24157
if test "$ac_cv_mvwdelch_is_expression" = yes
 
24158
then
 
24159
 
 
24160
cat >>confdefs.h <<\_ACEOF
 
24161
#define MVWDELCH_IS_EXPRESSION 1
 
24162
_ACEOF
 
24163
 
 
24164
fi
 
24165
 
 
24166
{ echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
 
24167
echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
 
24168
if test "${ac_cv_window_has_flags+set}" = set; then
 
24169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24170
else
 
24171
  cat >conftest.$ac_ext <<_ACEOF
 
24172
/* confdefs.h.  */
 
24173
_ACEOF
 
24174
cat confdefs.h >>conftest.$ac_ext
 
24175
cat >>conftest.$ac_ext <<_ACEOF
 
24176
/* end confdefs.h.  */
 
24177
#include <curses.h>
 
24178
int
 
24179
main ()
 
24180
{
 
24181
 
 
24182
  WINDOW *w;
 
24183
  w->_flags = 0;
 
24184
 
 
24185
  ;
 
24186
  return 0;
 
24187
}
 
24188
_ACEOF
 
24189
rm -f conftest.$ac_objext
 
24190
if { (ac_try="$ac_compile"
 
24191
case "(($ac_try" in
 
24192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24193
  *) ac_try_echo=$ac_try;;
 
24194
esac
 
24195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24196
  (eval "$ac_compile") 2>conftest.er1
 
24197
  ac_status=$?
 
24198
  grep -v '^ *+' conftest.er1 >conftest.err
 
24199
  rm -f conftest.er1
 
24200
  cat conftest.err >&5
 
24201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24202
  (exit $ac_status); } && {
 
24203
         test -z "$ac_c_werror_flag" ||
 
24204
         test ! -s conftest.err
 
24205
       } && test -s conftest.$ac_objext; then
 
24206
  ac_cv_window_has_flags=yes
 
24207
else
 
24208
  echo "$as_me: failed program was:" >&5
 
24209
sed 's/^/| /' conftest.$ac_ext >&5
 
24210
 
 
24211
        ac_cv_window_has_flags=no
 
24212
fi
 
24213
 
 
24214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24215
fi
 
24216
 
 
24217
{ echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
 
24218
echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
 
24219
 
 
24220
 
 
24221
if test "$ac_cv_window_has_flags" = yes
 
24222
then
 
24223
 
 
24224
cat >>confdefs.h <<\_ACEOF
 
24225
#define WINDOW_HAS_FLAGS 1
 
24226
_ACEOF
 
24227
 
 
24228
fi
 
24229
 
 
24230
{ echo "$as_me:$LINENO: checking for is_term_resized" >&5
 
24231
echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
 
24232
cat >conftest.$ac_ext <<_ACEOF
 
24233
/* confdefs.h.  */
 
24234
_ACEOF
 
24235
cat confdefs.h >>conftest.$ac_ext
 
24236
cat >>conftest.$ac_ext <<_ACEOF
 
24237
/* end confdefs.h.  */
 
24238
#include <curses.h>
 
24239
int
 
24240
main ()
 
24241
{
 
24242
void *x=is_term_resized
 
24243
  ;
 
24244
  return 0;
 
24245
}
 
24246
_ACEOF
 
24247
rm -f conftest.$ac_objext
 
24248
if { (ac_try="$ac_compile"
 
24249
case "(($ac_try" in
 
24250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24251
  *) ac_try_echo=$ac_try;;
 
24252
esac
 
24253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24254
  (eval "$ac_compile") 2>conftest.er1
 
24255
  ac_status=$?
 
24256
  grep -v '^ *+' conftest.er1 >conftest.err
 
24257
  rm -f conftest.er1
 
24258
  cat conftest.err >&5
 
24259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24260
  (exit $ac_status); } && {
 
24261
         test -z "$ac_c_werror_flag" ||
 
24262
         test ! -s conftest.err
 
24263
       } && test -s conftest.$ac_objext; then
 
24264
 
 
24265
cat >>confdefs.h <<\_ACEOF
 
24266
#define HAVE_CURSES_IS_TERM_RESIZED 1
 
24267
_ACEOF
 
24268
 
 
24269
  { echo "$as_me:$LINENO: result: yes" >&5
 
24270
echo "${ECHO_T}yes" >&6; }
 
24271
else
 
24272
  echo "$as_me: failed program was:" >&5
 
24273
sed 's/^/| /' conftest.$ac_ext >&5
 
24274
 
 
24275
        { echo "$as_me:$LINENO: result: no" >&5
 
24276
echo "${ECHO_T}no" >&6; }
 
24277
 
 
24278
fi
 
24279
 
 
24280
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24281
 
 
24282
{ echo "$as_me:$LINENO: checking for resize_term" >&5
 
24283
echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
 
24284
cat >conftest.$ac_ext <<_ACEOF
 
24285
/* confdefs.h.  */
 
24286
_ACEOF
 
24287
cat confdefs.h >>conftest.$ac_ext
 
24288
cat >>conftest.$ac_ext <<_ACEOF
 
24289
/* end confdefs.h.  */
 
24290
#include <curses.h>
 
24291
int
 
24292
main ()
 
24293
{
 
24294
void *x=resize_term
 
24295
  ;
 
24296
  return 0;
 
24297
}
 
24298
_ACEOF
 
24299
rm -f conftest.$ac_objext
 
24300
if { (ac_try="$ac_compile"
 
24301
case "(($ac_try" in
 
24302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24303
  *) ac_try_echo=$ac_try;;
 
24304
esac
 
24305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24306
  (eval "$ac_compile") 2>conftest.er1
 
24307
  ac_status=$?
 
24308
  grep -v '^ *+' conftest.er1 >conftest.err
 
24309
  rm -f conftest.er1
 
24310
  cat conftest.err >&5
 
24311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24312
  (exit $ac_status); } && {
 
24313
         test -z "$ac_c_werror_flag" ||
 
24314
         test ! -s conftest.err
 
24315
       } && test -s conftest.$ac_objext; then
 
24316
 
 
24317
cat >>confdefs.h <<\_ACEOF
 
24318
#define HAVE_CURSES_RESIZE_TERM 1
 
24319
_ACEOF
 
24320
 
 
24321
  { echo "$as_me:$LINENO: result: yes" >&5
 
24322
echo "${ECHO_T}yes" >&6; }
 
24323
else
 
24324
  echo "$as_me: failed program was:" >&5
 
24325
sed 's/^/| /' conftest.$ac_ext >&5
 
24326
 
 
24327
        { echo "$as_me:$LINENO: result: no" >&5
 
24328
echo "${ECHO_T}no" >&6; }
 
24329
 
 
24330
fi
 
24331
 
 
24332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24333
 
 
24334
{ echo "$as_me:$LINENO: checking for resizeterm" >&5
 
24335
echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
 
24336
cat >conftest.$ac_ext <<_ACEOF
 
24337
/* confdefs.h.  */
 
24338
_ACEOF
 
24339
cat confdefs.h >>conftest.$ac_ext
 
24340
cat >>conftest.$ac_ext <<_ACEOF
 
24341
/* end confdefs.h.  */
 
24342
#include <curses.h>
 
24343
int
 
24344
main ()
 
24345
{
 
24346
void *x=resizeterm
 
24347
  ;
 
24348
  return 0;
 
24349
}
 
24350
_ACEOF
 
24351
rm -f conftest.$ac_objext
 
24352
if { (ac_try="$ac_compile"
 
24353
case "(($ac_try" in
 
24354
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24355
  *) ac_try_echo=$ac_try;;
 
24356
esac
 
24357
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24358
  (eval "$ac_compile") 2>conftest.er1
 
24359
  ac_status=$?
 
24360
  grep -v '^ *+' conftest.er1 >conftest.err
 
24361
  rm -f conftest.er1
 
24362
  cat conftest.err >&5
 
24363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24364
  (exit $ac_status); } && {
 
24365
         test -z "$ac_c_werror_flag" ||
 
24366
         test ! -s conftest.err
 
24367
       } && test -s conftest.$ac_objext; then
 
24368
 
 
24369
cat >>confdefs.h <<\_ACEOF
 
24370
#define HAVE_CURSES_RESIZETERM 1
 
24371
_ACEOF
 
24372
 
 
24373
  { echo "$as_me:$LINENO: result: yes" >&5
 
24374
echo "${ECHO_T}yes" >&6; }
 
24375
else
 
24376
  echo "$as_me: failed program was:" >&5
 
24377
sed 's/^/| /' conftest.$ac_ext >&5
 
24378
 
 
24379
        { echo "$as_me:$LINENO: result: no" >&5
 
24380
echo "${ECHO_T}no" >&6; }
 
24381
 
 
24382
fi
 
24383
 
 
24384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24385
 
 
24386
{ echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
 
24387
echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
 
24388
 
 
24389
if test -r /dev/ptmx
 
24390
then
 
24391
  { echo "$as_me:$LINENO: result: yes" >&5
 
24392
echo "${ECHO_T}yes" >&6; }
 
24393
 
 
24394
cat >>confdefs.h <<\_ACEOF
 
24395
#define HAVE_DEV_PTMX 1
 
24396
_ACEOF
 
24397
 
 
24398
else
 
24399
  { echo "$as_me:$LINENO: result: no" >&5
 
24400
echo "${ECHO_T}no" >&6; }
 
24401
fi
 
24402
 
 
24403
{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
 
24404
echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
 
24405
 
 
24406
if test -r /dev/ptc
 
24407
then
 
24408
  { echo "$as_me:$LINENO: result: yes" >&5
 
24409
echo "${ECHO_T}yes" >&6; }
 
24410
 
 
24411
cat >>confdefs.h <<\_ACEOF
 
24412
#define HAVE_DEV_PTC 1
 
24413
_ACEOF
 
24414
 
 
24415
else
 
24416
  { echo "$as_me:$LINENO: result: no" >&5
 
24417
echo "${ECHO_T}no" >&6; }
 
24418
fi
 
24419
 
 
24420
{ echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
 
24421
echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
 
24422
if test "$cross_compiling" = yes; then
 
24423
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24424
See \`config.log' for more details." >&5
 
24425
echo "$as_me: error: cannot run test program while cross compiling
 
24426
See \`config.log' for more details." >&2;}
 
24427
   { (exit 1); exit 1; }; }
 
24428
else
 
24429
  cat >conftest.$ac_ext <<_ACEOF
 
24430
/* confdefs.h.  */
 
24431
_ACEOF
 
24432
cat confdefs.h >>conftest.$ac_ext
 
24433
cat >>conftest.$ac_ext <<_ACEOF
 
24434
/* end confdefs.h.  */
 
24435
#include <stdio.h>
 
24436
#include <stddef.h>
 
24437
#include <string.h>
 
24438
 
 
24439
#ifdef HAVE_SYS_TYPES_H
 
24440
#include <sys/types.h>
 
24441
#endif
 
24442
 
 
24443
#ifdef HAVE_SSIZE_T
 
24444
typedef ssize_t Py_ssize_t;
 
24445
#elif SIZEOF_VOID_P == SIZEOF_LONG
 
24446
typedef long Py_ssize_t;
 
24447
#else
 
24448
typedef int Py_ssize_t;
 
24449
#endif
 
24450
 
 
24451
int main()
 
24452
{
 
24453
    char buffer[256];
 
24454
 
 
24455
    if(sprintf(buffer, "%zd", (size_t)123) < 0)
 
24456
        return 1;
 
24457
 
 
24458
    if (strcmp(buffer, "123"))
 
24459
        return 1;
 
24460
 
 
24461
    if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
 
24462
        return 1;
 
24463
 
 
24464
    if (strcmp(buffer, "-123"))
 
24465
        return 1;
 
24466
 
 
24467
    return 0;
 
24468
}
 
24469
_ACEOF
 
24470
rm -f conftest$ac_exeext
 
24471
if { (ac_try="$ac_link"
 
24472
case "(($ac_try" in
 
24473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24474
  *) ac_try_echo=$ac_try;;
 
24475
esac
 
24476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24477
  (eval "$ac_link") 2>&5
 
24478
  ac_status=$?
 
24479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24480
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24481
  { (case "(($ac_try" in
 
24482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24483
  *) ac_try_echo=$ac_try;;
 
24484
esac
 
24485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24486
  (eval "$ac_try") 2>&5
 
24487
  ac_status=$?
 
24488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24489
  (exit $ac_status); }; }; then
 
24490
  { echo "$as_me:$LINENO: result: yes" >&5
 
24491
echo "${ECHO_T}yes" >&6; }
 
24492
 
 
24493
cat >>confdefs.h <<\_ACEOF
 
24494
#define PY_FORMAT_SIZE_T "z"
 
24495
_ACEOF
 
24496
 
 
24497
else
 
24498
  echo "$as_me: program exited with status $ac_status" >&5
 
24499
echo "$as_me: failed program was:" >&5
 
24500
sed 's/^/| /' conftest.$ac_ext >&5
 
24501
 
 
24502
( exit $ac_status )
 
24503
{ echo "$as_me:$LINENO: result: no" >&5
 
24504
echo "${ECHO_T}no" >&6; }
 
24505
fi
 
24506
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24507
fi
 
24508
 
 
24509
 
 
24510
 
 
24511
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
 
24512
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
 
24513
if test "${ac_cv_type_socklen_t+set}" = set; then
 
24514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24515
else
 
24516
  cat >conftest.$ac_ext <<_ACEOF
 
24517
/* confdefs.h.  */
 
24518
_ACEOF
 
24519
cat confdefs.h >>conftest.$ac_ext
 
24520
cat >>conftest.$ac_ext <<_ACEOF
 
24521
/* end confdefs.h.  */
 
24522
 
 
24523
#ifdef HAVE_SYS_TYPES_H
 
24524
#include <sys/types.h>
 
24525
#endif
 
24526
#ifdef HAVE_SYS_SOCKET_H
 
24527
#include <sys/socket.h>
 
24528
#endif
 
24529
 
 
24530
 
 
24531
typedef socklen_t ac__type_new_;
 
24532
int
 
24533
main ()
 
24534
{
 
24535
if ((ac__type_new_ *) 0)
 
24536
  return 0;
 
24537
if (sizeof (ac__type_new_))
 
24538
  return 0;
 
24539
  ;
 
24540
  return 0;
 
24541
}
 
24542
_ACEOF
 
24543
rm -f conftest.$ac_objext
 
24544
if { (ac_try="$ac_compile"
 
24545
case "(($ac_try" in
 
24546
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24547
  *) ac_try_echo=$ac_try;;
 
24548
esac
 
24549
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24550
  (eval "$ac_compile") 2>conftest.er1
 
24551
  ac_status=$?
 
24552
  grep -v '^ *+' conftest.er1 >conftest.err
 
24553
  rm -f conftest.er1
 
24554
  cat conftest.err >&5
 
24555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24556
  (exit $ac_status); } && {
 
24557
         test -z "$ac_c_werror_flag" ||
 
24558
         test ! -s conftest.err
 
24559
       } && test -s conftest.$ac_objext; then
 
24560
  ac_cv_type_socklen_t=yes
 
24561
else
 
24562
  echo "$as_me: failed program was:" >&5
 
24563
sed 's/^/| /' conftest.$ac_ext >&5
 
24564
 
 
24565
        ac_cv_type_socklen_t=no
 
24566
fi
 
24567
 
 
24568
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24569
fi
 
24570
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
 
24571
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
 
24572
if test $ac_cv_type_socklen_t = yes; then
 
24573
  :
 
24574
else
 
24575
 
 
24576
cat >>confdefs.h <<\_ACEOF
 
24577
#define socklen_t int
 
24578
_ACEOF
 
24579
 
 
24580
fi
 
24581
 
 
24582
 
 
24583
 
 
24584
 
 
24585
for h in `(cd $srcdir;echo Python/thread_*.h)`
 
24586
do
 
24587
  THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
 
24588
done
 
24589
 
 
24590
 
 
24591
SRCDIRS="Parser Grammar Objects Python Modules Mac"
 
24592
{ echo "$as_me:$LINENO: checking for build directories" >&5
 
24593
echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
 
24594
for dir in $SRCDIRS; do
 
24595
    if test ! -d $dir; then
 
24596
        mkdir $dir
 
24597
    fi
 
24598
done
 
24599
{ echo "$as_me:$LINENO: result: done" >&5
 
24600
echo "${ECHO_T}done" >&6; }
 
24601
 
 
24602
# generate output files
 
24603
ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
 
24604
 
 
24605
cat >confcache <<\_ACEOF
 
24606
# This file is a shell script that caches the results of configure
 
24607
# tests run on this system so they can be shared between configure
 
24608
# scripts and configure runs, see configure's option --config-cache.
 
24609
# It is not useful on other systems.  If it contains results you don't
 
24610
# want to keep, you may remove or edit it.
 
24611
#
 
24612
# config.status only pays attention to the cache file if you give it
 
24613
# the --recheck option to rerun configure.
 
24614
#
 
24615
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
24616
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
24617
# following values.
 
24618
 
 
24619
_ACEOF
 
24620
 
 
24621
# The following way of writing the cache mishandles newlines in values,
 
24622
# but we know of no workaround that is simple, portable, and efficient.
 
24623
# So, we kill variables containing newlines.
 
24624
# Ultrix sh set writes to stderr and can't be redirected directly,
 
24625
# and sets the high bit in the cache file unless we assign to the vars.
 
24626
(
 
24627
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
24628
    eval ac_val=\$$ac_var
 
24629
    case $ac_val in #(
 
24630
    *${as_nl}*)
 
24631
      case $ac_var in #(
 
24632
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
24633
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
24634
      esac
 
24635
      case $ac_var in #(
 
24636
      _ | IFS | as_nl) ;; #(
 
24637
      *) $as_unset $ac_var ;;
 
24638
      esac ;;
 
24639
    esac
 
24640
  done
 
24641
 
 
24642
  (set) 2>&1 |
 
24643
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
24644
    *${as_nl}ac_space=\ *)
 
24645
      # `set' does not quote correctly, so add quotes (double-quote
 
24646
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24647
      sed -n \
 
24648
        "s/'/'\\\\''/g;
 
24649
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24650
      ;; #(
 
24651
    *)
 
24652
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24653
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
24654
      ;;
 
24655
    esac |
 
24656
    sort
 
24657
) |
 
24658
  sed '
 
24659
     /^ac_cv_env_/b end
 
24660
     t clear
 
24661
     :clear
 
24662
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24663
     t end
 
24664
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24665
     :end' >>confcache
 
24666
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
24667
  if test -w "$cache_file"; then
 
24668
    test "x$cache_file" != "x/dev/null" &&
 
24669
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
24670
echo "$as_me: updating cache $cache_file" >&6;}
 
24671
    cat confcache >$cache_file
 
24672
  else
 
24673
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
24674
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
24675
  fi
 
24676
fi
 
24677
rm -f confcache
 
24678
 
 
24679
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24680
# Let make expand exec_prefix.
 
24681
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24682
 
 
24683
DEFS=-DHAVE_CONFIG_H
 
24684
 
 
24685
ac_libobjs=
 
24686
ac_ltlibobjs=
 
24687
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24688
  # 1. Remove the extension, and $U if already installed.
 
24689
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
24690
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
24691
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
24692
  #    will be set to the directory where LIBOBJS objects are built.
 
24693
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
24694
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
24695
done
 
24696
LIBOBJS=$ac_libobjs
 
24697
 
 
24698
LTLIBOBJS=$ac_ltlibobjs
 
24699
 
 
24700
 
 
24701
 
 
24702
: ${CONFIG_STATUS=./config.status}
 
24703
ac_clean_files_save=$ac_clean_files
 
24704
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
24705
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
24706
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
24707
cat >$CONFIG_STATUS <<_ACEOF
 
24708
#! $SHELL
 
24709
# Generated by $as_me.
 
24710
# Run this file to recreate the current configuration.
 
24711
# Compiler output produced by configure, useful for debugging
 
24712
# configure, is in config.log if it exists.
 
24713
 
 
24714
debug=false
 
24715
ac_cs_recheck=false
 
24716
ac_cs_silent=false
 
24717
SHELL=\${CONFIG_SHELL-$SHELL}
 
24718
_ACEOF
 
24719
 
 
24720
cat >>$CONFIG_STATUS <<\_ACEOF
 
24721
## --------------------- ##
 
24722
## M4sh Initialization.  ##
 
24723
## --------------------- ##
 
24724
 
 
24725
# Be more Bourne compatible
 
24726
DUALCASE=1; export DUALCASE # for MKS sh
 
24727
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
24728
  emulate sh
 
24729
  NULLCMD=:
 
24730
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24731
  # is contrary to our usage.  Disable this feature.
 
24732
  alias -g '${1+"$@"}'='"$@"'
 
24733
  setopt NO_GLOB_SUBST
 
24734
else
 
24735
  case `(set -o) 2>/dev/null` in
 
24736
  *posix*) set -o posix ;;
 
24737
esac
 
24738
 
 
24739
fi
 
24740
 
 
24741
 
 
24742
 
 
24743
 
 
24744
# PATH needs CR
 
24745
# Avoid depending upon Character Ranges.
 
24746
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24747
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24748
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24749
as_cr_digits='0123456789'
 
24750
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24751
 
 
24752
# The user is always right.
 
24753
if test "${PATH_SEPARATOR+set}" != set; then
 
24754
  echo "#! /bin/sh" >conf$$.sh
 
24755
  echo  "exit 0"   >>conf$$.sh
 
24756
  chmod +x conf$$.sh
 
24757
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
24758
    PATH_SEPARATOR=';'
 
24759
  else
 
24760
    PATH_SEPARATOR=:
 
24761
  fi
 
24762
  rm -f conf$$.sh
 
24763
fi
 
24764
 
 
24765
# Support unset when possible.
 
24766
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24767
  as_unset=unset
 
24768
else
 
24769
  as_unset=false
 
24770
fi
 
24771
 
 
24772
 
 
24773
# IFS
 
24774
# We need space, tab and new line, in precisely that order.  Quoting is
 
24775
# there to prevent editors from complaining about space-tab.
 
24776
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
24777
# splitting by setting IFS to empty value.)
 
24778
as_nl='
 
24779
'
 
24780
IFS=" ""        $as_nl"
 
24781
 
 
24782
# Find who we are.  Look in the path if we contain no directory separator.
 
24783
case $0 in
 
24784
  *[\\/]* ) as_myself=$0 ;;
 
24785
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24786
for as_dir in $PATH
 
24787
do
 
24788
  IFS=$as_save_IFS
 
24789
  test -z "$as_dir" && as_dir=.
 
24790
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24791
done
 
24792
IFS=$as_save_IFS
 
24793
 
 
24794
     ;;
 
24795
esac
 
24796
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
24797
# in which case we are not to be found in the path.
 
24798
if test "x$as_myself" = x; then
 
24799
  as_myself=$0
 
24800
fi
 
24801
if test ! -f "$as_myself"; then
 
24802
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
24803
  { (exit 1); exit 1; }
 
24804
fi
 
24805
 
 
24806
# Work around bugs in pre-3.0 UWIN ksh.
 
24807
for as_var in ENV MAIL MAILPATH
 
24808
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24809
done
 
24810
PS1='$ '
 
24811
PS2='> '
 
24812
PS4='+ '
 
24813
 
 
24814
# NLS nuisances.
 
24815
for as_var in \
 
24816
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
24817
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
24818
  LC_TELEPHONE LC_TIME
 
24819
do
 
24820
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
24821
    eval $as_var=C; export $as_var
 
24822
  else
 
24823
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24824
  fi
 
24825
done
 
24826
 
 
24827
# Required to use basename.
 
24828
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24829
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24830
  as_expr=expr
 
24831
else
 
24832
  as_expr=false
 
24833
fi
 
24834
 
 
24835
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
24836
  as_basename=basename
 
24837
else
 
24838
  as_basename=false
 
24839
fi
 
24840
 
 
24841
 
 
24842
# Name of the executable.
 
24843
as_me=`$as_basename -- "$0" ||
 
24844
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
24845
         X"$0" : 'X\(//\)$' \| \
 
24846
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
24847
echo X/"$0" |
 
24848
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
24849
            s//\1/
 
24850
            q
 
24851
          }
 
24852
          /^X\/\(\/\/\)$/{
 
24853
            s//\1/
 
24854
            q
 
24855
          }
 
24856
          /^X\/\(\/\).*/{
 
24857
            s//\1/
 
24858
            q
 
24859
          }
 
24860
          s/.*/./; q'`
 
24861
 
 
24862
# CDPATH.
 
24863
$as_unset CDPATH
 
24864
 
 
24865
 
 
24866
 
 
24867
  as_lineno_1=$LINENO
 
24868
  as_lineno_2=$LINENO
 
24869
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24870
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
24871
 
 
24872
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
24873
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
24874
  # line-number line after each line using $LINENO; the second 'sed'
 
24875
  # does the real work.  The second script uses 'N' to pair each
 
24876
  # line-number line with the line containing $LINENO, and appends
 
24877
  # trailing '-' during substitution so that $LINENO is not a special
 
24878
  # case at line end.
 
24879
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
24880
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
24881
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
24882
  sed -n '
 
24883
    p
 
24884
    /[$]LINENO/=
 
24885
  ' <$as_myself |
 
24886
    sed '
 
24887
      s/[$]LINENO.*/&-/
 
24888
      t lineno
 
24889
      b
 
24890
      :lineno
 
24891
      N
 
24892
      :loop
 
24893
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
24894
      t loop
 
24895
      s/-\n.*//
 
24896
    ' >$as_me.lineno &&
 
24897
  chmod +x "$as_me.lineno" ||
 
24898
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
24899
   { (exit 1); exit 1; }; }
 
24900
 
 
24901
  # Don't try to exec as it changes $[0], causing all sort of problems
 
24902
  # (the dirname of $[0] is not the place where we might find the
 
24903
  # original and so on.  Autoconf is especially sensitive to this).
 
24904
  . "./$as_me.lineno"
 
24905
  # Exit status is that of the last command.
 
24906
  exit
 
24907
}
 
24908
 
 
24909
 
 
24910
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
24911
  as_dirname=dirname
 
24912
else
 
24913
  as_dirname=false
 
24914
fi
 
24915
 
 
24916
ECHO_C= ECHO_N= ECHO_T=
 
24917
case `echo -n x` in
 
24918
-n*)
 
24919
  case `echo 'x\c'` in
 
24920
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
24921
  *)   ECHO_C='\c';;
 
24922
  esac;;
 
24923
*)
 
24924
  ECHO_N='-n';;
 
24925
esac
 
24926
 
 
24927
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24928
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24929
  as_expr=expr
 
24930
else
 
24931
  as_expr=false
 
24932
fi
 
24933
 
 
24934
rm -f conf$$ conf$$.exe conf$$.file
 
24935
if test -d conf$$.dir; then
 
24936
  rm -f conf$$.dir/conf$$.file
 
24937
else
 
24938
  rm -f conf$$.dir
 
24939
  mkdir conf$$.dir
 
24940
fi
 
24941
echo >conf$$.file
 
24942
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
24943
  as_ln_s='ln -s'
 
24944
  # ... but there are two gotchas:
 
24945
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
24946
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
24947
  # In both cases, we have to default to `cp -p'.
 
24948
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
24949
    as_ln_s='cp -p'
 
24950
elif ln conf$$.file conf$$ 2>/dev/null; then
 
24951
  as_ln_s=ln
 
24952
else
 
24953
  as_ln_s='cp -p'
 
24954
fi
 
24955
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
24956
rmdir conf$$.dir 2>/dev/null
 
24957
 
 
24958
if mkdir -p . 2>/dev/null; then
 
24959
  as_mkdir_p=:
 
24960
else
 
24961
  test -d ./-p && rmdir ./-p
 
24962
  as_mkdir_p=false
 
24963
fi
 
24964
 
 
24965
if test -x / >/dev/null 2>&1; then
 
24966
  as_test_x='test -x'
 
24967
else
 
24968
  if ls -dL / >/dev/null 2>&1; then
 
24969
    as_ls_L_option=L
 
24970
  else
 
24971
    as_ls_L_option=
 
24972
  fi
 
24973
  as_test_x='
 
24974
    eval sh -c '\''
 
24975
      if test -d "$1"; then
 
24976
        test -d "$1/.";
 
24977
      else
 
24978
        case $1 in
 
24979
        -*)set "./$1";;
 
24980
        esac;
 
24981
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
24982
        ???[sx]*):;;*)false;;esac;fi
 
24983
    '\'' sh
 
24984
  '
 
24985
fi
 
24986
as_executable_p=$as_test_x
 
24987
 
 
24988
# Sed expression to map a string onto a valid CPP name.
 
24989
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
24990
 
 
24991
# Sed expression to map a string onto a valid variable name.
 
24992
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
24993
 
 
24994
 
 
24995
exec 6>&1
 
24996
 
 
24997
# Save the log message, to keep $[0] and so on meaningful, and to
 
24998
# report actual input values of CONFIG_FILES etc. instead of their
 
24999
# values after options handling.
 
25000
ac_log="
 
25001
This file was extended by python $as_me 2.6, which was
 
25002
generated by GNU Autoconf 2.61.  Invocation command line was
 
25003
 
 
25004
  CONFIG_FILES    = $CONFIG_FILES
 
25005
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
25006
  CONFIG_LINKS    = $CONFIG_LINKS
 
25007
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
25008
  $ $0 $@
 
25009
 
 
25010
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
25011
"
 
25012
 
 
25013
_ACEOF
 
25014
 
 
25015
cat >>$CONFIG_STATUS <<_ACEOF
 
25016
# Files that config.status was made for.
 
25017
config_files="$ac_config_files"
 
25018
config_headers="$ac_config_headers"
 
25019
 
 
25020
_ACEOF
 
25021
 
 
25022
cat >>$CONFIG_STATUS <<\_ACEOF
 
25023
ac_cs_usage="\
 
25024
\`$as_me' instantiates files from templates according to the
 
25025
current configuration.
 
25026
 
 
25027
Usage: $0 [OPTIONS] [FILE]...
 
25028
 
 
25029
  -h, --help       print this help, then exit
 
25030
  -V, --version    print version number and configuration settings, then exit
 
25031
  -q, --quiet      do not print progress messages
 
25032
  -d, --debug      don't remove temporary files
 
25033
      --recheck    update $as_me by reconfiguring in the same conditions
 
25034
  --file=FILE[:TEMPLATE]
 
25035
                   instantiate the configuration file FILE
 
25036
  --header=FILE[:TEMPLATE]
 
25037
                   instantiate the configuration header FILE
 
25038
 
 
25039
Configuration files:
 
25040
$config_files
 
25041
 
 
25042
Configuration headers:
 
25043
$config_headers
 
25044
 
 
25045
Report bugs to <bug-autoconf@gnu.org>."
 
25046
 
 
25047
_ACEOF
 
25048
cat >>$CONFIG_STATUS <<_ACEOF
 
25049
ac_cs_version="\\
 
25050
python config.status 2.6
 
25051
configured by $0, generated by GNU Autoconf 2.61,
 
25052
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
25053
 
 
25054
Copyright (C) 2006 Free Software Foundation, Inc.
 
25055
This config.status script is free software; the Free Software Foundation
 
25056
gives unlimited permission to copy, distribute and modify it."
 
25057
 
 
25058
ac_pwd='$ac_pwd'
 
25059
srcdir='$srcdir'
 
25060
INSTALL='$INSTALL'
 
25061
_ACEOF
 
25062
 
 
25063
cat >>$CONFIG_STATUS <<\_ACEOF
 
25064
# If no file are specified by the user, then we need to provide default
 
25065
# value.  By we need to know if files were specified by the user.
 
25066
ac_need_defaults=:
 
25067
while test $# != 0
 
25068
do
 
25069
  case $1 in
 
25070
  --*=*)
 
25071
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
25072
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
25073
    ac_shift=:
 
25074
    ;;
 
25075
  *)
 
25076
    ac_option=$1
 
25077
    ac_optarg=$2
 
25078
    ac_shift=shift
 
25079
    ;;
 
25080
  esac
 
25081
 
 
25082
  case $ac_option in
 
25083
  # Handling of the options.
 
25084
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
25085
    ac_cs_recheck=: ;;
 
25086
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
25087
    echo "$ac_cs_version"; exit ;;
 
25088
  --debug | --debu | --deb | --de | --d | -d )
 
25089
    debug=: ;;
 
25090
  --file | --fil | --fi | --f )
 
25091
    $ac_shift
 
25092
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
25093
    ac_need_defaults=false;;
 
25094
  --header | --heade | --head | --hea )
 
25095
    $ac_shift
 
25096
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
25097
    ac_need_defaults=false;;
 
25098
  --he | --h)
 
25099
    # Conflict between --help and --header
 
25100
    { echo "$as_me: error: ambiguous option: $1
 
25101
Try \`$0 --help' for more information." >&2
 
25102
   { (exit 1); exit 1; }; };;
 
25103
  --help | --hel | -h )
 
25104
    echo "$ac_cs_usage"; exit ;;
 
25105
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
25106
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
25107
    ac_cs_silent=: ;;
 
25108
 
 
25109
  # This is an error.
 
25110
  -*) { echo "$as_me: error: unrecognized option: $1
 
25111
Try \`$0 --help' for more information." >&2
 
25112
   { (exit 1); exit 1; }; } ;;
 
25113
 
 
25114
  *) ac_config_targets="$ac_config_targets $1"
 
25115
     ac_need_defaults=false ;;
 
25116
 
 
25117
  esac
 
25118
  shift
 
25119
done
 
25120
 
 
25121
ac_configure_extra_args=
 
25122
 
 
25123
if $ac_cs_silent; then
 
25124
  exec 6>/dev/null
 
25125
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25126
fi
 
25127
 
 
25128
_ACEOF
 
25129
cat >>$CONFIG_STATUS <<_ACEOF
 
25130
if \$ac_cs_recheck; then
 
25131
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
25132
  CONFIG_SHELL=$SHELL
 
25133
  export CONFIG_SHELL
 
25134
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25135
fi
 
25136
 
 
25137
_ACEOF
 
25138
cat >>$CONFIG_STATUS <<\_ACEOF
 
25139
exec 5>>config.log
 
25140
{
 
25141
  echo
 
25142
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25143
## Running $as_me. ##
 
25144
_ASBOX
 
25145
  echo "$ac_log"
 
25146
} >&5
 
25147
 
 
25148
_ACEOF
 
25149
cat >>$CONFIG_STATUS <<_ACEOF
 
25150
_ACEOF
 
25151
 
 
25152
cat >>$CONFIG_STATUS <<\_ACEOF
 
25153
 
 
25154
# Handling of arguments.
 
25155
for ac_config_target in $ac_config_targets
 
25156
do
 
25157
  case $ac_config_target in
 
25158
    "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
 
25159
    "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
 
25160
    "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
 
25161
    "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
 
25162
    "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
 
25163
    "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
 
25164
    "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
 
25165
    "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
 
25166
 
 
25167
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
25168
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
25169
   { (exit 1); exit 1; }; };;
 
25170
  esac
 
25171
done
 
25172
 
 
25173
 
 
25174
# If the user did not use the arguments to specify the items to instantiate,
 
25175
# then the envvar interface is used.  Set only those that are not.
 
25176
# We use the long form for the default assignment because of an extremely
 
25177
# bizarre bug on SunOS 4.1.3.
 
25178
if $ac_need_defaults; then
 
25179
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
25180
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
25181
fi
 
25182
 
 
25183
# Have a temporary directory for convenience.  Make it in the build tree
 
25184
# simply because there is no reason against having it here, and in addition,
 
25185
# creating and moving files from /tmp can sometimes cause problems.
 
25186
# Hook for its removal unless debugging.
 
25187
# Note that there is a small window in which the directory will not be cleaned:
 
25188
# after its creation but before its name has been assigned to `$tmp'.
 
25189
$debug ||
 
25190
{
 
25191
  tmp=
 
25192
  trap 'exit_status=$?
 
25193
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
25194
' 0
 
25195
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25196
}
 
25197
# Create a (secure) tmp directory for tmp files.
 
25198
 
 
25199
{
 
25200
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
25201
  test -n "$tmp" && test -d "$tmp"
 
25202
}  ||
 
25203
{
 
25204
  tmp=./conf$$-$RANDOM
 
25205
  (umask 077 && mkdir "$tmp")
 
25206
} ||
 
25207
{
 
25208
   echo "$me: cannot create a temporary directory in ." >&2
 
25209
   { (exit 1); exit 1; }
 
25210
}
 
25211
 
 
25212
#
 
25213
# Set up the sed scripts for CONFIG_FILES section.
 
25214
#
 
25215
 
 
25216
# No need to generate the scripts if there are no CONFIG_FILES.
 
25217
# This happens for instance when ./config.status config.h
 
25218
if test -n "$CONFIG_FILES"; then
 
25219
 
 
25220
_ACEOF
 
25221
 
 
25222
 
 
25223
 
 
25224
ac_delim='%!_!# '
 
25225
for ac_last_try in false false false false false :; do
 
25226
  cat >conf$$subs.sed <<_ACEOF
 
25227
SHELL!$SHELL$ac_delim
 
25228
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
25229
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
25230
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
25231
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
25232
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
25233
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
25234
exec_prefix!$exec_prefix$ac_delim
 
25235
prefix!$prefix$ac_delim
 
25236
program_transform_name!$program_transform_name$ac_delim
 
25237
bindir!$bindir$ac_delim
 
25238
sbindir!$sbindir$ac_delim
 
25239
libexecdir!$libexecdir$ac_delim
 
25240
datarootdir!$datarootdir$ac_delim
 
25241
datadir!$datadir$ac_delim
 
25242
sysconfdir!$sysconfdir$ac_delim
 
25243
sharedstatedir!$sharedstatedir$ac_delim
 
25244
localstatedir!$localstatedir$ac_delim
 
25245
includedir!$includedir$ac_delim
 
25246
oldincludedir!$oldincludedir$ac_delim
 
25247
docdir!$docdir$ac_delim
 
25248
infodir!$infodir$ac_delim
 
25249
htmldir!$htmldir$ac_delim
 
25250
dvidir!$dvidir$ac_delim
 
25251
pdfdir!$pdfdir$ac_delim
 
25252
psdir!$psdir$ac_delim
 
25253
libdir!$libdir$ac_delim
 
25254
localedir!$localedir$ac_delim
 
25255
mandir!$mandir$ac_delim
 
25256
DEFS!$DEFS$ac_delim
 
25257
ECHO_C!$ECHO_C$ac_delim
 
25258
ECHO_N!$ECHO_N$ac_delim
 
25259
ECHO_T!$ECHO_T$ac_delim
 
25260
LIBS!$LIBS$ac_delim
 
25261
build_alias!$build_alias$ac_delim
 
25262
host_alias!$host_alias$ac_delim
 
25263
target_alias!$target_alias$ac_delim
 
25264
VERSION!$VERSION$ac_delim
 
25265
SOVERSION!$SOVERSION$ac_delim
 
25266
CONFIG_ARGS!$CONFIG_ARGS$ac_delim
 
25267
UNIVERSALSDK!$UNIVERSALSDK$ac_delim
 
25268
ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
 
25269
PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
 
25270
PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
 
25271
PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
 
25272
PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
 
25273
PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
 
25274
FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
 
25275
FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
 
25276
FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
 
25277
FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
 
25278
FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
 
25279
MACHDEP!$MACHDEP$ac_delim
 
25280
SGI_ABI!$SGI_ABI$ac_delim
 
25281
EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
 
25282
EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
 
25283
CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
 
25284
EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
 
25285
CC!$CC$ac_delim
 
25286
CFLAGS!$CFLAGS$ac_delim
 
25287
LDFLAGS!$LDFLAGS$ac_delim
 
25288
CPPFLAGS!$CPPFLAGS$ac_delim
 
25289
ac_ct_CC!$ac_ct_CC$ac_delim
 
25290
EXEEXT!$EXEEXT$ac_delim
 
25291
OBJEXT!$OBJEXT$ac_delim
 
25292
CXX!$CXX$ac_delim
 
25293
MAINCC!$MAINCC$ac_delim
 
25294
CPP!$CPP$ac_delim
 
25295
GREP!$GREP$ac_delim
 
25296
EGREP!$EGREP$ac_delim
 
25297
BUILDEXEEXT!$BUILDEXEEXT$ac_delim
 
25298
LIBRARY!$LIBRARY$ac_delim
 
25299
LDLIBRARY!$LDLIBRARY$ac_delim
 
25300
DLLLIBRARY!$DLLLIBRARY$ac_delim
 
25301
BLDLIBRARY!$BLDLIBRARY$ac_delim
 
25302
LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
 
25303
INSTSONAME!$INSTSONAME$ac_delim
 
25304
RUNSHARED!$RUNSHARED$ac_delim
 
25305
LINKCC!$LINKCC$ac_delim
 
25306
RANLIB!$RANLIB$ac_delim
 
25307
AR!$AR$ac_delim
 
25308
SVNVERSION!$SVNVERSION$ac_delim
 
25309
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
25310
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
25311
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
25312
LN!$LN$ac_delim
 
25313
OPT!$OPT$ac_delim
 
25314
BASECFLAGS!$BASECFLAGS$ac_delim
 
25315
UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
 
25316
OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
 
25317
LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
 
25318
SO!$SO$ac_delim
 
25319
LDSHARED!$LDSHARED$ac_delim
 
25320
BLDSHARED!$BLDSHARED$ac_delim
 
25321
CCSHARED!$CCSHARED$ac_delim
 
25322
LINKFORSHARED!$LINKFORSHARED$ac_delim
 
25323
CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
 
25324
_ACEOF
 
25325
 
 
25326
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
25327
    break
 
25328
  elif $ac_last_try; then
 
25329
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25330
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25331
   { (exit 1); exit 1; }; }
 
25332
  else
 
25333
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25334
  fi
 
25335
done
 
25336
 
 
25337
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25338
if test -n "$ac_eof"; then
 
25339
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25340
  ac_eof=`expr $ac_eof + 1`
 
25341
fi
 
25342
 
 
25343
cat >>$CONFIG_STATUS <<_ACEOF
 
25344
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
25345
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25346
_ACEOF
 
25347
sed '
 
25348
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25349
s/^/s,@/; s/!/@,|#_!!_#|/
 
25350
:n
 
25351
t n
 
25352
s/'"$ac_delim"'$/,g/; t
 
25353
s/$/\\/; p
 
25354
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25355
' >>$CONFIG_STATUS <conf$$subs.sed
 
25356
rm -f conf$$subs.sed
 
25357
cat >>$CONFIG_STATUS <<_ACEOF
 
25358
CEOF$ac_eof
 
25359
_ACEOF
 
25360
 
 
25361
 
 
25362
ac_delim='%!_!# '
 
25363
for ac_last_try in false false false false false :; do
 
25364
  cat >conf$$subs.sed <<_ACEOF
 
25365
SHLIBS!$SHLIBS$ac_delim
 
25366
USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
 
25367
SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
 
25368
USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
 
25369
LDLAST!$LDLAST$ac_delim
 
25370
THREADOBJ!$THREADOBJ$ac_delim
 
25371
DLINCLDIR!$DLINCLDIR$ac_delim
 
25372
DYNLOADFILE!$DYNLOADFILE$ac_delim
 
25373
MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
 
25374
TRUE!$TRUE$ac_delim
 
25375
LIBOBJS!$LIBOBJS$ac_delim
 
25376
HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
 
25377
HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
 
25378
HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
 
25379
HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
 
25380
HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
 
25381
LIBM!$LIBM$ac_delim
 
25382
LIBC!$LIBC$ac_delim
 
25383
UNICODE_OBJS!$UNICODE_OBJS$ac_delim
 
25384
THREADHEADERS!$THREADHEADERS$ac_delim
 
25385
SRCDIRS!$SRCDIRS$ac_delim
 
25386
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
25387
_ACEOF
 
25388
 
 
25389
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
 
25390
    break
 
25391
  elif $ac_last_try; then
 
25392
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25393
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25394
   { (exit 1); exit 1; }; }
 
25395
  else
 
25396
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25397
  fi
 
25398
done
 
25399
 
 
25400
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25401
if test -n "$ac_eof"; then
 
25402
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25403
  ac_eof=`expr $ac_eof + 1`
 
25404
fi
 
25405
 
 
25406
cat >>$CONFIG_STATUS <<_ACEOF
 
25407
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
25408
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
25409
_ACEOF
 
25410
sed '
 
25411
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25412
s/^/s,@/; s/!/@,|#_!!_#|/
 
25413
:n
 
25414
t n
 
25415
s/'"$ac_delim"'$/,g/; t
 
25416
s/$/\\/; p
 
25417
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25418
' >>$CONFIG_STATUS <conf$$subs.sed
 
25419
rm -f conf$$subs.sed
 
25420
cat >>$CONFIG_STATUS <<_ACEOF
 
25421
:end
 
25422
s/|#_!!_#|//g
 
25423
CEOF$ac_eof
 
25424
_ACEOF
 
25425
 
 
25426
 
 
25427
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
25428
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
25429
# trailing colons and then remove the whole line if VPATH becomes empty
 
25430
# (actually we leave an empty line to preserve line numbers).
 
25431
if test "x$srcdir" = x.; then
 
25432
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
25433
s/:*\$(srcdir):*/:/
 
25434
s/:*\${srcdir}:*/:/
 
25435
s/:*@srcdir@:*/:/
 
25436
s/^\([^=]*=[     ]*\):*/\1/
 
25437
s/:*$//
 
25438
s/^[^=]*=[       ]*$//
 
25439
}'
 
25440
fi
 
25441
 
 
25442
cat >>$CONFIG_STATUS <<\_ACEOF
 
25443
fi # test -n "$CONFIG_FILES"
 
25444
 
 
25445
 
 
25446
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
 
25447
do
 
25448
  case $ac_tag in
 
25449
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
25450
  esac
 
25451
  case $ac_mode$ac_tag in
 
25452
  :[FHL]*:*);;
 
25453
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
25454
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
25455
   { (exit 1); exit 1; }; };;
 
25456
  :[FH]-) ac_tag=-:-;;
 
25457
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
25458
  esac
 
25459
  ac_save_IFS=$IFS
 
25460
  IFS=:
 
25461
  set x $ac_tag
 
25462
  IFS=$ac_save_IFS
 
25463
  shift
 
25464
  ac_file=$1
 
25465
  shift
 
25466
 
 
25467
  case $ac_mode in
 
25468
  :L) ac_source=$1;;
 
25469
  :[FH])
 
25470
    ac_file_inputs=
 
25471
    for ac_f
 
25472
    do
 
25473
      case $ac_f in
 
25474
      -) ac_f="$tmp/stdin";;
 
25475
      *) # Look for the file first in the build tree, then in the source tree
 
25476
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
25477
         # because $ac_f cannot contain `:'.
 
25478
         test -f "$ac_f" ||
 
25479
           case $ac_f in
 
25480
           [\\/$]*) false;;
 
25481
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
25482
           esac ||
 
25483
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
25484
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
25485
   { (exit 1); exit 1; }; };;
 
25486
      esac
 
25487
      ac_file_inputs="$ac_file_inputs $ac_f"
 
25488
    done
 
25489
 
 
25490
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25491
    # use $as_me), people would be surprised to read:
 
25492
    #    /* config.h.  Generated by config.status.  */
 
25493
    configure_input="Generated from "`IFS=:
 
25494
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
25495
    if test x"$ac_file" != x-; then
 
25496
      configure_input="$ac_file.  $configure_input"
 
25497
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25498
echo "$as_me: creating $ac_file" >&6;}
 
25499
    fi
 
25500
 
 
25501
    case $ac_tag in
 
25502
    *:-:* | *:-) cat >"$tmp/stdin";;
 
25503
    esac
 
25504
    ;;
 
25505
  esac
 
25506
 
 
25507
  ac_dir=`$as_dirname -- "$ac_file" ||
 
25508
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25509
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25510
         X"$ac_file" : 'X\(//\)$' \| \
 
25511
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
25512
echo X"$ac_file" |
 
25513
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25514
            s//\1/
 
25515
            q
 
25516
          }
 
25517
          /^X\(\/\/\)[^/].*/{
 
25518
            s//\1/
 
25519
            q
 
25520
          }
 
25521
          /^X\(\/\/\)$/{
 
25522
            s//\1/
 
25523
            q
 
25524
          }
 
25525
          /^X\(\/\).*/{
 
25526
            s//\1/
 
25527
            q
 
25528
          }
 
25529
          s/.*/./; q'`
 
25530
  { as_dir="$ac_dir"
 
25531
  case $as_dir in #(
 
25532
  -*) as_dir=./$as_dir;;
 
25533
  esac
 
25534
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25535
    as_dirs=
 
25536
    while :; do
 
25537
      case $as_dir in #(
 
25538
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
25539
      *) as_qdir=$as_dir;;
 
25540
      esac
 
25541
      as_dirs="'$as_qdir' $as_dirs"
 
25542
      as_dir=`$as_dirname -- "$as_dir" ||
 
25543
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25544
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25545
         X"$as_dir" : 'X\(//\)$' \| \
 
25546
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25547
echo X"$as_dir" |
 
25548
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25549
            s//\1/
 
25550
            q
 
25551
          }
 
25552
          /^X\(\/\/\)[^/].*/{
 
25553
            s//\1/
 
25554
            q
 
25555
          }
 
25556
          /^X\(\/\/\)$/{
 
25557
            s//\1/
 
25558
            q
 
25559
          }
 
25560
          /^X\(\/\).*/{
 
25561
            s//\1/
 
25562
            q
 
25563
          }
 
25564
          s/.*/./; q'`
 
25565
      test -d "$as_dir" && break
 
25566
    done
 
25567
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25568
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25569
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25570
   { (exit 1); exit 1; }; }; }
 
25571
  ac_builddir=.
 
25572
 
 
25573
case "$ac_dir" in
 
25574
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25575
*)
 
25576
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25577
  # A ".." for each directory in $ac_dir_suffix.
 
25578
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
25579
  case $ac_top_builddir_sub in
 
25580
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25581
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
25582
  esac ;;
 
25583
esac
 
25584
ac_abs_top_builddir=$ac_pwd
 
25585
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
25586
# for backward compatibility:
 
25587
ac_top_builddir=$ac_top_build_prefix
 
25588
 
 
25589
case $srcdir in
 
25590
  .)  # We are building in place.
 
25591
    ac_srcdir=.
 
25592
    ac_top_srcdir=$ac_top_builddir_sub
 
25593
    ac_abs_top_srcdir=$ac_pwd ;;
 
25594
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
25595
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25596
    ac_top_srcdir=$srcdir
 
25597
    ac_abs_top_srcdir=$srcdir ;;
 
25598
  *) # Relative name.
 
25599
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
25600
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
25601
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
25602
esac
 
25603
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
25604
 
 
25605
 
 
25606
  case $ac_mode in
 
25607
  :F)
 
25608
  #
 
25609
  # CONFIG_FILE
 
25610
  #
 
25611
 
 
25612
  case $INSTALL in
 
25613
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25614
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
25615
  esac
 
25616
_ACEOF
 
25617
 
 
25618
cat >>$CONFIG_STATUS <<\_ACEOF
 
25619
# If the template does not know about datarootdir, expand it.
 
25620
# FIXME: This hack should be removed a few years after 2.60.
 
25621
ac_datarootdir_hack=; ac_datarootdir_seen=
 
25622
 
 
25623
case `sed -n '/datarootdir/ {
 
25624
  p
 
25625
  q
 
25626
}
 
25627
/@datadir@/p
 
25628
/@docdir@/p
 
25629
/@infodir@/p
 
25630
/@localedir@/p
 
25631
/@mandir@/p
 
25632
' $ac_file_inputs` in
 
25633
*datarootdir*) ac_datarootdir_seen=yes;;
 
25634
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
25635
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
25636
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
25637
_ACEOF
 
25638
cat >>$CONFIG_STATUS <<_ACEOF
 
25639
  ac_datarootdir_hack='
 
25640
  s&@datadir@&$datadir&g
 
25641
  s&@docdir@&$docdir&g
 
25642
  s&@infodir@&$infodir&g
 
25643
  s&@localedir@&$localedir&g
 
25644
  s&@mandir@&$mandir&g
 
25645
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
25646
esac
 
25647
_ACEOF
 
25648
 
 
25649
# Neutralize VPATH when `$srcdir' = `.'.
 
25650
# Shell code in configure.ac might set extrasub.
 
25651
# FIXME: do we really want to maintain this feature?
 
25652
cat >>$CONFIG_STATUS <<_ACEOF
 
25653
  sed "$ac_vpsub
 
25654
$extrasub
 
25655
_ACEOF
 
25656
cat >>$CONFIG_STATUS <<\_ACEOF
 
25657
:t
 
25658
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25659
s&@configure_input@&$configure_input&;t t
 
25660
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
25661
s&@srcdir@&$ac_srcdir&;t t
 
25662
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
25663
s&@top_srcdir@&$ac_top_srcdir&;t t
 
25664
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
25665
s&@builddir@&$ac_builddir&;t t
 
25666
s&@abs_builddir@&$ac_abs_builddir&;t t
 
25667
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
25668
s&@INSTALL@&$ac_INSTALL&;t t
 
25669
$ac_datarootdir_hack
 
25670
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
25671
 
 
25672
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
25673
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
25674
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
25675
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25676
which seems to be undefined.  Please make sure it is defined." >&5
 
25677
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25678
which seems to be undefined.  Please make sure it is defined." >&2;}
 
25679
 
 
25680
  rm -f "$tmp/stdin"
 
25681
  case $ac_file in
 
25682
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
25683
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
25684
  esac
 
25685
 ;;
 
25686
  :H)
 
25687
  #
 
25688
  # CONFIG_HEADER
 
25689
  #
 
25690
_ACEOF
 
25691
 
 
25692
# Transform confdefs.h into a sed script `conftest.defines', that
 
25693
# substitutes the proper values into config.h.in to produce config.h.
 
25694
rm -f conftest.defines conftest.tail
 
25695
# First, append a space to every undef/define line, to ease matching.
 
25696
echo 's/$/ /' >conftest.defines
 
25697
# Then, protect against being on the right side of a sed subst, or in
 
25698
# an unquoted here document, in config.status.  If some macros were
 
25699
# called several times there might be several #defines for the same
 
25700
# symbol, which is useless.  But do not sort them, since the last
 
25701
# AC_DEFINE must be honored.
 
25702
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
25703
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
25704
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
25705
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
25706
# just an empty string.
 
25707
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
25708
ac_dB='\\)[      (].*,\\1define\\2'
 
25709
ac_dC=' '
 
25710
ac_dD=' ,'
 
25711
 
 
25712
uniq confdefs.h |
 
25713
  sed -n '
 
25714
        t rset
 
25715
        :rset
 
25716
        s/^[     ]*#[    ]*define[       ][      ]*//
 
25717
        t ok
 
25718
        d
 
25719
        :ok
 
25720
        s/[\\&,]/\\&/g
 
25721
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
25722
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
25723
  ' >>conftest.defines
 
25724
 
 
25725
# Remove the space that was appended to ease matching.
 
25726
# Then replace #undef with comments.  This is necessary, for
 
25727
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
25728
# on some systems where configure will not decide to define it.
 
25729
# (The regexp can be short, since the line contains either #define or #undef.)
 
25730
echo 's/ $//
 
25731
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
25732
 
 
25733
# Break up conftest.defines:
 
25734
ac_max_sed_lines=50
 
25735
 
 
25736
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
25737
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
25738
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
25739
# et cetera.
 
25740
ac_in='$ac_file_inputs'
 
25741
ac_out='"$tmp/out1"'
 
25742
ac_nxt='"$tmp/out2"'
 
25743
 
 
25744
while :
 
25745
do
 
25746
  # Write a here document:
 
25747
    cat >>$CONFIG_STATUS <<_ACEOF
 
25748
    # First, check the format of the line:
 
25749
    cat >"\$tmp/defines.sed" <<\\CEOF
 
25750
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
25751
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
25752
b
 
25753
:def
 
25754
_ACEOF
 
25755
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
25756
  echo 'CEOF
 
25757
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
25758
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
25759
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
25760
  grep . conftest.tail >/dev/null || break
 
25761
  rm -f conftest.defines
 
25762
  mv conftest.tail conftest.defines
 
25763
done
 
25764
rm -f conftest.defines conftest.tail
 
25765
 
 
25766
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
25767
cat >>$CONFIG_STATUS <<\_ACEOF
 
25768
  if test x"$ac_file" != x-; then
 
25769
    echo "/* $configure_input  */" >"$tmp/config.h"
 
25770
    cat "$ac_result" >>"$tmp/config.h"
 
25771
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
25772
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
25773
echo "$as_me: $ac_file is unchanged" >&6;}
 
25774
    else
 
25775
      rm -f $ac_file
 
25776
      mv "$tmp/config.h" $ac_file
 
25777
    fi
 
25778
  else
 
25779
    echo "/* $configure_input  */"
 
25780
    cat "$ac_result"
 
25781
  fi
 
25782
  rm -f "$tmp/out12"
 
25783
 ;;
 
25784
 
 
25785
 
 
25786
  esac
 
25787
 
 
25788
done # for ac_tag
 
25789
 
 
25790
 
 
25791
{ (exit 0); exit 0; }
 
25792
_ACEOF
 
25793
chmod +x $CONFIG_STATUS
 
25794
ac_clean_files=$ac_clean_files_save
 
25795
 
 
25796
 
 
25797
# configure is writing to config.log, and then calls config.status.
 
25798
# config.status does its own redirection, appending to config.log.
 
25799
# Unfortunately, on DOS this fails, as config.log is still kept open
 
25800
# by configure, so config.status won't be able to write to it; its
 
25801
# output is simply discarded.  So we exec the FD to /dev/null,
 
25802
# effectively closing config.log, so it can be properly (re)opened and
 
25803
# appended to by config.status.  When coming back to configure, we
 
25804
# need to make the FD available again.
 
25805
if test "$no_create" != yes; then
 
25806
  ac_cs_success=:
 
25807
  ac_config_status_args=
 
25808
  test "$silent" = yes &&
 
25809
    ac_config_status_args="$ac_config_status_args --quiet"
 
25810
  exec 5>/dev/null
 
25811
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
25812
  exec 5>>config.log
 
25813
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
25814
  # would make configure fail if this is the last instruction.
 
25815
  $ac_cs_success || { (exit 1); exit 1; }
 
25816
fi
 
25817
 
 
25818
 
 
25819
echo "creating Modules/Setup"
 
25820
if test ! -f Modules/Setup
 
25821
then
 
25822
        cp $srcdir/Modules/Setup.dist Modules/Setup
 
25823
fi
 
25824
 
 
25825
echo "creating Modules/Setup.local"
 
25826
if test ! -f Modules/Setup.local
 
25827
then
 
25828
        echo "# Edit this file for local setup changes" >Modules/Setup.local
 
25829
fi
 
25830
 
 
25831
echo "creating Makefile"
 
25832
$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
 
25833
                        -s Modules Modules/Setup.config \
 
25834
                        Modules/Setup.local Modules/Setup
 
25835
 
 
25836
case $ac_sys_system in
 
25837
BeOS)
 
25838
        { echo "$as_me:$LINENO: WARNING:
 
25839
 
 
25840
  Support for BeOS is deprecated as of Python 2.6.
 
25841
  See PEP 11 for the gory details.
 
25842
  " >&5
 
25843
echo "$as_me: WARNING:
 
25844
 
 
25845
  Support for BeOS is deprecated as of Python 2.6.
 
25846
  See PEP 11 for the gory details.
 
25847
  " >&2;}
 
25848
  ;;
 
25849
*) ;;
 
25850
esac
 
25851
 
 
25852
mv config.c Modules