~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to trampoline/configure

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.63 for libffcall/trampoline 0x010B.
 
4
#
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
as_nl='
 
41
'
 
42
export as_nl
 
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
48
  as_echo='printf %s\n'
 
49
  as_echo_n='printf %s'
 
50
else
 
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
53
    as_echo_n='/usr/ucb/echo -n'
 
54
  else
 
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
56
    as_echo_n_body='eval
 
57
      arg=$1;
 
58
      case $arg in
 
59
      *"$as_nl"*)
 
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
62
      esac;
 
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
64
    '
 
65
    export as_echo_n_body
 
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
67
  fi
 
68
  export as_echo_body
 
69
  as_echo='sh -c $as_echo_body as_echo'
 
70
fi
 
71
 
 
72
# The user is always right.
 
73
if test "${PATH_SEPARATOR+set}" != set; then
 
74
  PATH_SEPARATOR=:
 
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
77
      PATH_SEPARATOR=';'
 
78
  }
 
79
fi
 
80
 
 
81
# Support unset when possible.
 
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
83
  as_unset=unset
 
84
else
 
85
  as_unset=false
 
86
fi
 
87
 
 
88
 
 
89
# IFS
 
90
# We need space, tab and new line, in precisely that order.  Quoting is
 
91
# there to prevent editors from complaining about space-tab.
 
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
93
# splitting by setting IFS to empty value.)
 
94
IFS=" ""        $as_nl"
 
95
 
 
96
# Find who we are.  Look in the path if we contain no directory separator.
 
97
case $0 in
 
98
  *[\\/]* ) as_myself=$0 ;;
 
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
100
for as_dir in $PATH
 
101
do
 
102
  IFS=$as_save_IFS
 
103
  test -z "$as_dir" && as_dir=.
 
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
105
done
 
106
IFS=$as_save_IFS
 
107
 
 
108
     ;;
 
109
esac
 
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
111
# in which case we are not to be found in the path.
 
112
if test "x$as_myself" = x; then
 
113
  as_myself=$0
 
114
fi
 
115
if test ! -f "$as_myself"; then
 
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
117
  { (exit 1); exit 1; }
 
118
fi
 
119
 
 
120
# Work around bugs in pre-3.0 UWIN ksh.
 
121
for as_var in ENV MAIL MAILPATH
 
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# Required to use basename.
 
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
137
  as_expr=expr
 
138
else
 
139
  as_expr=false
 
140
fi
 
141
 
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
143
  as_basename=basename
 
144
else
 
145
  as_basename=false
 
146
fi
 
147
 
 
148
 
 
149
# Name of the executable.
 
150
as_me=`$as_basename -- "$0" ||
 
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
152
         X"$0" : 'X\(//\)$' \| \
 
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
154
$as_echo X/"$0" |
 
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
156
            s//\1/
 
157
            q
 
158
          }
 
159
          /^X\/\(\/\/\)$/{
 
160
            s//\1/
 
161
            q
 
162
          }
 
163
          /^X\/\(\/\).*/{
 
164
            s//\1/
 
165
            q
 
166
          }
 
167
          s/.*/./; q'`
 
168
 
 
169
# CDPATH.
 
170
$as_unset CDPATH
 
171
 
 
172
 
 
173
if test "x$CONFIG_SHELL" = x; then
 
174
  if (eval ":") 2>/dev/null; then
 
175
  as_have_required=yes
 
176
else
 
177
  as_have_required=no
 
178
fi
 
179
 
 
180
  if test $as_have_required = yes &&     (eval ":
 
181
(as_func_return () {
 
182
  (exit \$1)
 
183
}
 
184
as_func_success () {
 
185
  as_func_return 0
 
186
}
 
187
as_func_failure () {
 
188
  as_func_return 1
 
189
}
 
190
as_func_ret_success () {
 
191
  return 0
 
192
}
 
193
as_func_ret_failure () {
 
194
  return 1
 
195
}
 
196
 
 
197
exitcode=0
 
198
if as_func_success; then
 
199
  :
 
200
else
 
201
  exitcode=1
 
202
  echo as_func_success failed.
 
203
fi
 
204
 
 
205
if as_func_failure; then
 
206
  exitcode=1
 
207
  echo as_func_failure succeeded.
 
208
fi
 
209
 
 
210
if as_func_ret_success; then
 
211
  :
 
212
else
 
213
  exitcode=1
 
214
  echo as_func_ret_success failed.
 
215
fi
 
216
 
 
217
if as_func_ret_failure; then
 
218
  exitcode=1
 
219
  echo as_func_ret_failure succeeded.
 
220
fi
 
221
 
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
223
  :
 
224
else
 
225
  exitcode=1
 
226
  echo positional parameters were not saved.
 
227
fi
 
228
 
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
 
230
 
 
231
(
 
232
  as_lineno_1=\$LINENO
 
233
  as_lineno_2=\$LINENO
 
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
236
") 2> /dev/null; then
 
237
  :
 
238
else
 
239
  as_candidate_shells=
 
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
242
do
 
243
  IFS=$as_save_IFS
 
244
  test -z "$as_dir" && as_dir=.
 
245
  case $as_dir in
 
246
         /*)
 
247
           for as_base in sh bash ksh sh5; do
 
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
249
           done;;
 
250
       esac
 
251
done
 
252
IFS=$as_save_IFS
 
253
 
 
254
 
 
255
      for as_shell in $as_candidate_shells $SHELL; do
 
256
         # Try only shells that exist, to save several forks.
 
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
260
  emulate sh
 
261
  NULLCMD=:
 
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
263
  # is contrary to our usage.  Disable this feature.
 
264
  alias -g '${1+"$@"}'='"$@"'
 
265
  setopt NO_GLOB_SUBST
 
266
else
 
267
  case `(set -o) 2>/dev/null` in
 
268
  *posix*) set -o posix ;;
 
269
esac
 
270
 
 
271
fi
 
272
 
 
273
 
 
274
:
 
275
_ASEOF
 
276
}; then
 
277
  CONFIG_SHELL=$as_shell
 
278
               as_have_required=yes
 
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
281
  emulate sh
 
282
  NULLCMD=:
 
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
284
  # is contrary to our usage.  Disable this feature.
 
285
  alias -g '${1+"$@"}'='"$@"'
 
286
  setopt NO_GLOB_SUBST
 
287
else
 
288
  case `(set -o) 2>/dev/null` in
 
289
  *posix*) set -o posix ;;
 
290
esac
 
291
 
 
292
fi
 
293
 
 
294
 
 
295
:
 
296
(as_func_return () {
 
297
  (exit $1)
 
298
}
 
299
as_func_success () {
 
300
  as_func_return 0
 
301
}
 
302
as_func_failure () {
 
303
  as_func_return 1
 
304
}
 
305
as_func_ret_success () {
 
306
  return 0
 
307
}
 
308
as_func_ret_failure () {
 
309
  return 1
 
310
}
 
311
 
 
312
exitcode=0
 
313
if as_func_success; then
 
314
  :
 
315
else
 
316
  exitcode=1
 
317
  echo as_func_success failed.
 
318
fi
 
319
 
 
320
if as_func_failure; then
 
321
  exitcode=1
 
322
  echo as_func_failure succeeded.
 
323
fi
 
324
 
 
325
if as_func_ret_success; then
 
326
  :
 
327
else
 
328
  exitcode=1
 
329
  echo as_func_ret_success failed.
 
330
fi
 
331
 
 
332
if as_func_ret_failure; then
 
333
  exitcode=1
 
334
  echo as_func_ret_failure succeeded.
 
335
fi
 
336
 
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
338
  :
 
339
else
 
340
  exitcode=1
 
341
  echo positional parameters were not saved.
 
342
fi
 
343
 
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
 
345
 
 
346
(
 
347
  as_lineno_1=$LINENO
 
348
  as_lineno_2=$LINENO
 
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
351
 
 
352
_ASEOF
 
353
}; then
 
354
  break
 
355
fi
 
356
 
 
357
fi
 
358
 
 
359
      done
 
360
 
 
361
      if test "x$CONFIG_SHELL" != x; then
 
362
  for as_var in BASH_ENV ENV
 
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
364
        done
 
365
        export CONFIG_SHELL
 
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
367
fi
 
368
 
 
369
 
 
370
    if test $as_have_required = no; then
 
371
  echo This script requires a shell more modern than all the
 
372
      echo shells that I found on your system.  Please install a
 
373
      echo modern shell, or manually run the script under such a
 
374
      echo shell if you do have one.
 
375
      { (exit 1); exit 1; }
 
376
fi
 
377
 
 
378
 
 
379
fi
 
380
 
 
381
fi
 
382
 
 
383
 
 
384
 
 
385
(eval "as_func_return () {
 
386
  (exit \$1)
 
387
}
 
388
as_func_success () {
 
389
  as_func_return 0
 
390
}
 
391
as_func_failure () {
 
392
  as_func_return 1
 
393
}
 
394
as_func_ret_success () {
 
395
  return 0
 
396
}
 
397
as_func_ret_failure () {
 
398
  return 1
 
399
}
 
400
 
 
401
exitcode=0
 
402
if as_func_success; then
 
403
  :
 
404
else
 
405
  exitcode=1
 
406
  echo as_func_success failed.
 
407
fi
 
408
 
 
409
if as_func_failure; then
 
410
  exitcode=1
 
411
  echo as_func_failure succeeded.
 
412
fi
 
413
 
 
414
if as_func_ret_success; then
 
415
  :
 
416
else
 
417
  exitcode=1
 
418
  echo as_func_ret_success failed.
 
419
fi
 
420
 
 
421
if as_func_ret_failure; then
 
422
  exitcode=1
 
423
  echo as_func_ret_failure succeeded.
 
424
fi
 
425
 
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
427
  :
 
428
else
 
429
  exitcode=1
 
430
  echo positional parameters were not saved.
 
431
fi
 
432
 
 
433
test \$exitcode = 0") || {
 
434
  echo No shell found that supports shell functions.
 
435
  echo Please tell bug-autoconf@gnu.org about your system,
 
436
  echo including any error possibly output before this message.
 
437
  echo This can help us improve future autoconf versions.
 
438
  echo Configuration will now proceed without shell functions.
 
439
}
 
440
 
 
441
 
 
442
 
 
443
  as_lineno_1=$LINENO
 
444
  as_lineno_2=$LINENO
 
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
447
 
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
450
  # line-number line after each line using $LINENO; the second 'sed'
 
451
  # does the real work.  The second script uses 'N' to pair each
 
452
  # line-number line with the line containing $LINENO, and appends
 
453
  # trailing '-' during substitution so that $LINENO is not a special
 
454
  # case at line end.
 
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
458
  sed -n '
 
459
    p
 
460
    /[$]LINENO/=
 
461
  ' <$as_myself |
 
462
    sed '
 
463
      s/[$]LINENO.*/&-/
 
464
      t lineno
 
465
      b
 
466
      :lineno
 
467
      N
 
468
      :loop
 
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
470
      t loop
 
471
      s/-\n.*//
 
472
    ' >$as_me.lineno &&
 
473
  chmod +x "$as_me.lineno" ||
 
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
475
   { (exit 1); exit 1; }; }
 
476
 
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
 
478
  # (the dirname of $[0] is not the place where we might find the
 
479
  # original and so on.  Autoconf is especially sensitive to this).
 
480
  . "./$as_me.lineno"
 
481
  # Exit status is that of the last command.
 
482
  exit
 
483
}
 
484
 
 
485
 
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
487
  as_dirname=dirname
 
488
else
 
489
  as_dirname=false
 
490
fi
 
491
 
 
492
ECHO_C= ECHO_N= ECHO_T=
 
493
case `echo -n x` in
 
494
-n*)
 
495
  case `echo 'x\c'` in
 
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
497
  *)   ECHO_C='\c';;
 
498
  esac;;
 
499
*)
 
500
  ECHO_N='-n';;
 
501
esac
 
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
504
  as_expr=expr
 
505
else
 
506
  as_expr=false
 
507
fi
 
508
 
 
509
rm -f conf$$ conf$$.exe conf$$.file
 
510
if test -d conf$$.dir; then
 
511
  rm -f conf$$.dir/conf$$.file
 
512
else
 
513
  rm -f conf$$.dir
 
514
  mkdir conf$$.dir 2>/dev/null
 
515
fi
 
516
if (echo >conf$$.file) 2>/dev/null; then
 
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
518
    as_ln_s='ln -s'
 
519
    # ... but there are two gotchas:
 
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
522
    # In both cases, we have to default to `cp -p'.
 
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
524
      as_ln_s='cp -p'
 
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
526
    as_ln_s=ln
 
527
  else
 
528
    as_ln_s='cp -p'
 
529
  fi
 
530
else
 
531
  as_ln_s='cp -p'
 
532
fi
 
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
534
rmdir conf$$.dir 2>/dev/null
 
535
 
 
536
if mkdir -p . 2>/dev/null; then
 
537
  as_mkdir_p=:
 
538
else
 
539
  test -d ./-p && rmdir ./-p
 
540
  as_mkdir_p=false
 
541
fi
 
542
 
 
543
if test -x / >/dev/null 2>&1; then
 
544
  as_test_x='test -x'
 
545
else
 
546
  if ls -dL / >/dev/null 2>&1; then
 
547
    as_ls_L_option=L
 
548
  else
 
549
    as_ls_L_option=
 
550
  fi
 
551
  as_test_x='
 
552
    eval sh -c '\''
 
553
      if test -d "$1"; then
 
554
        test -d "$1/.";
 
555
      else
 
556
        case $1 in
 
557
        -*)set "./$1";;
 
558
        esac;
 
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
560
        ???[sx]*):;;*)false;;esac;fi
 
561
    '\'' sh
 
562
  '
 
563
fi
 
564
as_executable_p=$as_test_x
 
565
 
 
566
# Sed expression to map a string onto a valid CPP name.
 
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
568
 
 
569
# Sed expression to map a string onto a valid variable name.
 
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
571
 
 
572
 
 
573
 
 
574
exec 7<&0 </dev/null 6>&1
 
575
 
 
576
# Name of the host.
 
577
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
578
# so uname gets run too.
 
579
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
580
 
 
581
#
 
582
# Initializations.
 
583
#
 
584
ac_default_prefix=/usr/local
 
585
ac_clean_files=
 
586
ac_config_libobj_dir=.
 
587
LIBOBJS=
 
588
cross_compiling=no
 
589
subdirs=
 
590
MFLAGS=
 
591
MAKEFLAGS=
 
592
SHELL=${CONFIG_SHELL-/bin/sh}
 
593
 
 
594
# Identity of this package.
 
595
PACKAGE_NAME='libffcall/trampoline'
 
596
PACKAGE_TARNAME='libffcall-trampoline'
 
597
PACKAGE_VERSION='0x010B'
 
598
PACKAGE_STRING='libffcall/trampoline 0x010B'
 
599
PACKAGE_BUGREPORT=''
 
600
 
 
601
ac_unique_file="trampoline.h.in"
 
602
# Factoring default headers for most tests.
 
603
ac_includes_default="\
 
604
#include <stdio.h>
 
605
#ifdef HAVE_SYS_TYPES_H
 
606
# include <sys/types.h>
 
607
#endif
 
608
#ifdef HAVE_SYS_STAT_H
 
609
# include <sys/stat.h>
 
610
#endif
 
611
#ifdef STDC_HEADERS
 
612
# include <stdlib.h>
 
613
# include <stddef.h>
 
614
#else
 
615
# ifdef HAVE_STDLIB_H
 
616
#  include <stdlib.h>
 
617
# endif
 
618
#endif
 
619
#ifdef HAVE_STRING_H
 
620
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
621
#  include <memory.h>
 
622
# endif
 
623
# include <string.h>
 
624
#endif
 
625
#ifdef HAVE_STRINGS_H
 
626
# include <strings.h>
 
627
#endif
 
628
#ifdef HAVE_INTTYPES_H
 
629
# include <inttypes.h>
 
630
#endif
 
631
#ifdef HAVE_STDINT_H
 
632
# include <stdint.h>
 
633
#endif
 
634
#ifdef HAVE_UNISTD_H
 
635
# include <unistd.h>
 
636
#endif"
 
637
 
 
638
ac_subst_vars='LTLIBOBJS
 
639
LIBOBJS
 
640
CPU_OBJECTS
 
641
host_cpu_abi
 
642
host_os
 
643
host_vendor
 
644
host_cpu
 
645
host
 
646
build_os
 
647
build_vendor
 
648
build_cpu
 
649
build
 
650
LN_S
 
651
LN
 
652
INSTALL_DATA
 
653
INSTALL_SCRIPT
 
654
INSTALL_PROGRAM
 
655
SET_MAKE
 
656
RANLIB
 
657
AS_UNDERSCORE
 
658
GCC_X_NONE
 
659
CC_GCC
 
660
EGREP
 
661
GREP
 
662
CPP
 
663
OBJEXT
 
664
EXEEXT
 
665
ac_ct_CC
 
666
CPPFLAGS
 
667
LDFLAGS
 
668
CFLAGS
 
669
CC
 
670
target_alias
 
671
host_alias
 
672
build_alias
 
673
LIBS
 
674
ECHO_T
 
675
ECHO_N
 
676
ECHO_C
 
677
DEFS
 
678
mandir
 
679
localedir
 
680
libdir
 
681
psdir
 
682
pdfdir
 
683
dvidir
 
684
htmldir
 
685
infodir
 
686
docdir
 
687
oldincludedir
 
688
includedir
 
689
localstatedir
 
690
sharedstatedir
 
691
sysconfdir
 
692
datadir
 
693
datarootdir
 
694
libexecdir
 
695
sbindir
 
696
bindir
 
697
program_transform_name
 
698
prefix
 
699
exec_prefix
 
700
PACKAGE_BUGREPORT
 
701
PACKAGE_STRING
 
702
PACKAGE_VERSION
 
703
PACKAGE_TARNAME
 
704
PACKAGE_NAME
 
705
PATH_SEPARATOR
 
706
SHELL'
 
707
ac_subst_files=''
 
708
ac_user_opts='
 
709
enable_option_checking
 
710
'
 
711
      ac_precious_vars='build_alias
 
712
host_alias
 
713
target_alias
 
714
CC
 
715
CFLAGS
 
716
LDFLAGS
 
717
LIBS
 
718
CPPFLAGS
 
719
CPP'
 
720
 
 
721
 
 
722
# Initialize some variables set by options.
 
723
ac_init_help=
 
724
ac_init_version=false
 
725
ac_unrecognized_opts=
 
726
ac_unrecognized_sep=
 
727
# The variables have the same names as the options, with
 
728
# dashes changed to underlines.
 
729
cache_file=/dev/null
 
730
exec_prefix=NONE
 
731
no_create=
 
732
no_recursion=
 
733
prefix=NONE
 
734
program_prefix=NONE
 
735
program_suffix=NONE
 
736
program_transform_name=s,x,x,
 
737
silent=
 
738
site=
 
739
srcdir=
 
740
verbose=
 
741
x_includes=NONE
 
742
x_libraries=NONE
 
743
 
 
744
# Installation directory options.
 
745
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
746
# and all the variables that are supposed to be based on exec_prefix
 
747
# by default will actually change.
 
748
# Use braces instead of parens because sh, perl, etc. also accept them.
 
749
# (The list follows the same order as the GNU Coding Standards.)
 
750
bindir='${exec_prefix}/bin'
 
751
sbindir='${exec_prefix}/sbin'
 
752
libexecdir='${exec_prefix}/libexec'
 
753
datarootdir='${prefix}/share'
 
754
datadir='${datarootdir}'
 
755
sysconfdir='${prefix}/etc'
 
756
sharedstatedir='${prefix}/com'
 
757
localstatedir='${prefix}/var'
 
758
includedir='${prefix}/include'
 
759
oldincludedir='/usr/include'
 
760
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
761
infodir='${datarootdir}/info'
 
762
htmldir='${docdir}'
 
763
dvidir='${docdir}'
 
764
pdfdir='${docdir}'
 
765
psdir='${docdir}'
 
766
libdir='${exec_prefix}/lib'
 
767
localedir='${datarootdir}/locale'
 
768
mandir='${datarootdir}/man'
 
769
 
 
770
ac_prev=
 
771
ac_dashdash=
 
772
for ac_option
 
773
do
 
774
  # If the previous option needs an argument, assign it.
 
775
  if test -n "$ac_prev"; then
 
776
    eval $ac_prev=\$ac_option
 
777
    ac_prev=
 
778
    continue
 
779
  fi
 
780
 
 
781
  case $ac_option in
 
782
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
783
  *)    ac_optarg=yes ;;
 
784
  esac
 
785
 
 
786
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
787
 
 
788
  case $ac_dashdash$ac_option in
 
789
  --)
 
790
    ac_dashdash=yes ;;
 
791
 
 
792
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
793
    ac_prev=bindir ;;
 
794
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
795
    bindir=$ac_optarg ;;
 
796
 
 
797
  -build | --build | --buil | --bui | --bu)
 
798
    ac_prev=build_alias ;;
 
799
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
800
    build_alias=$ac_optarg ;;
 
801
 
 
802
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
803
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
804
    ac_prev=cache_file ;;
 
805
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
806
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
807
    cache_file=$ac_optarg ;;
 
808
 
 
809
  --config-cache | -C)
 
810
    cache_file=config.cache ;;
 
811
 
 
812
  -datadir | --datadir | --datadi | --datad)
 
813
    ac_prev=datadir ;;
 
814
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
815
    datadir=$ac_optarg ;;
 
816
 
 
817
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
818
  | --dataroo | --dataro | --datar)
 
819
    ac_prev=datarootdir ;;
 
820
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
821
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
822
    datarootdir=$ac_optarg ;;
 
823
 
 
824
  -disable-* | --disable-*)
 
825
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
826
    # Reject names that are not valid shell variable names.
 
827
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
828
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
829
   { (exit 1); exit 1; }; }
 
830
    ac_useropt_orig=$ac_useropt
 
831
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
832
    case $ac_user_opts in
 
833
      *"
 
834
"enable_$ac_useropt"
 
835
"*) ;;
 
836
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
837
         ac_unrecognized_sep=', ';;
 
838
    esac
 
839
    eval enable_$ac_useropt=no ;;
 
840
 
 
841
  -docdir | --docdir | --docdi | --doc | --do)
 
842
    ac_prev=docdir ;;
 
843
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
844
    docdir=$ac_optarg ;;
 
845
 
 
846
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
847
    ac_prev=dvidir ;;
 
848
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
849
    dvidir=$ac_optarg ;;
 
850
 
 
851
  -enable-* | --enable-*)
 
852
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
853
    # Reject names that are not valid shell variable names.
 
854
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
855
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
856
   { (exit 1); exit 1; }; }
 
857
    ac_useropt_orig=$ac_useropt
 
858
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
859
    case $ac_user_opts in
 
860
      *"
 
861
"enable_$ac_useropt"
 
862
"*) ;;
 
863
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
864
         ac_unrecognized_sep=', ';;
 
865
    esac
 
866
    eval enable_$ac_useropt=\$ac_optarg ;;
 
867
 
 
868
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
869
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
870
  | --exec | --exe | --ex)
 
871
    ac_prev=exec_prefix ;;
 
872
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
873
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
874
  | --exec=* | --exe=* | --ex=*)
 
875
    exec_prefix=$ac_optarg ;;
 
876
 
 
877
  -gas | --gas | --ga | --g)
 
878
    # Obsolete; use --with-gas.
 
879
    with_gas=yes ;;
 
880
 
 
881
  -help | --help | --hel | --he | -h)
 
882
    ac_init_help=long ;;
 
883
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
884
    ac_init_help=recursive ;;
 
885
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
886
    ac_init_help=short ;;
 
887
 
 
888
  -host | --host | --hos | --ho)
 
889
    ac_prev=host_alias ;;
 
890
  -host=* | --host=* | --hos=* | --ho=*)
 
891
    host_alias=$ac_optarg ;;
 
892
 
 
893
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
894
    ac_prev=htmldir ;;
 
895
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
896
  | --ht=*)
 
897
    htmldir=$ac_optarg ;;
 
898
 
 
899
  -includedir | --includedir | --includedi | --included | --include \
 
900
  | --includ | --inclu | --incl | --inc)
 
901
    ac_prev=includedir ;;
 
902
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
903
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
904
    includedir=$ac_optarg ;;
 
905
 
 
906
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
907
    ac_prev=infodir ;;
 
908
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
909
    infodir=$ac_optarg ;;
 
910
 
 
911
  -libdir | --libdir | --libdi | --libd)
 
912
    ac_prev=libdir ;;
 
913
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
914
    libdir=$ac_optarg ;;
 
915
 
 
916
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
917
  | --libexe | --libex | --libe)
 
918
    ac_prev=libexecdir ;;
 
919
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
920
  | --libexe=* | --libex=* | --libe=*)
 
921
    libexecdir=$ac_optarg ;;
 
922
 
 
923
  -localedir | --localedir | --localedi | --localed | --locale)
 
924
    ac_prev=localedir ;;
 
925
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
926
    localedir=$ac_optarg ;;
 
927
 
 
928
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
929
  | --localstate | --localstat | --localsta | --localst | --locals)
 
930
    ac_prev=localstatedir ;;
 
931
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
932
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
933
    localstatedir=$ac_optarg ;;
 
934
 
 
935
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
936
    ac_prev=mandir ;;
 
937
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
938
    mandir=$ac_optarg ;;
 
939
 
 
940
  -nfp | --nfp | --nf)
 
941
    # Obsolete; use --without-fp.
 
942
    with_fp=no ;;
 
943
 
 
944
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
945
  | --no-cr | --no-c | -n)
 
946
    no_create=yes ;;
 
947
 
 
948
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
949
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
950
    no_recursion=yes ;;
 
951
 
 
952
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
953
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
954
  | --oldin | --oldi | --old | --ol | --o)
 
955
    ac_prev=oldincludedir ;;
 
956
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
957
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
958
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
959
    oldincludedir=$ac_optarg ;;
 
960
 
 
961
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
962
    ac_prev=prefix ;;
 
963
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
964
    prefix=$ac_optarg ;;
 
965
 
 
966
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
967
  | --program-pre | --program-pr | --program-p)
 
968
    ac_prev=program_prefix ;;
 
969
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
970
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
971
    program_prefix=$ac_optarg ;;
 
972
 
 
973
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
974
  | --program-suf | --program-su | --program-s)
 
975
    ac_prev=program_suffix ;;
 
976
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
977
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
978
    program_suffix=$ac_optarg ;;
 
979
 
 
980
  -program-transform-name | --program-transform-name \
 
981
  | --program-transform-nam | --program-transform-na \
 
982
  | --program-transform-n | --program-transform- \
 
983
  | --program-transform | --program-transfor \
 
984
  | --program-transfo | --program-transf \
 
985
  | --program-trans | --program-tran \
 
986
  | --progr-tra | --program-tr | --program-t)
 
987
    ac_prev=program_transform_name ;;
 
988
  -program-transform-name=* | --program-transform-name=* \
 
989
  | --program-transform-nam=* | --program-transform-na=* \
 
990
  | --program-transform-n=* | --program-transform-=* \
 
991
  | --program-transform=* | --program-transfor=* \
 
992
  | --program-transfo=* | --program-transf=* \
 
993
  | --program-trans=* | --program-tran=* \
 
994
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
995
    program_transform_name=$ac_optarg ;;
 
996
 
 
997
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
998
    ac_prev=pdfdir ;;
 
999
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1000
    pdfdir=$ac_optarg ;;
 
1001
 
 
1002
  -psdir | --psdir | --psdi | --psd | --ps)
 
1003
    ac_prev=psdir ;;
 
1004
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1005
    psdir=$ac_optarg ;;
 
1006
 
 
1007
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1008
  | -silent | --silent | --silen | --sile | --sil)
 
1009
    silent=yes ;;
 
1010
 
 
1011
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1012
    ac_prev=sbindir ;;
 
1013
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1014
  | --sbi=* | --sb=*)
 
1015
    sbindir=$ac_optarg ;;
 
1016
 
 
1017
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1018
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1019
  | --sharedst | --shareds | --shared | --share | --shar \
 
1020
  | --sha | --sh)
 
1021
    ac_prev=sharedstatedir ;;
 
1022
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1023
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1024
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1025
  | --sha=* | --sh=*)
 
1026
    sharedstatedir=$ac_optarg ;;
 
1027
 
 
1028
  -site | --site | --sit)
 
1029
    ac_prev=site ;;
 
1030
  -site=* | --site=* | --sit=*)
 
1031
    site=$ac_optarg ;;
 
1032
 
 
1033
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1034
    ac_prev=srcdir ;;
 
1035
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1036
    srcdir=$ac_optarg ;;
 
1037
 
 
1038
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1039
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1040
    ac_prev=sysconfdir ;;
 
1041
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1042
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1043
    sysconfdir=$ac_optarg ;;
 
1044
 
 
1045
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1046
    ac_prev=target_alias ;;
 
1047
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1048
    target_alias=$ac_optarg ;;
 
1049
 
 
1050
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1051
    verbose=yes ;;
 
1052
 
 
1053
  -version | --version | --versio | --versi | --vers | -V)
 
1054
    ac_init_version=: ;;
 
1055
 
 
1056
  -with-* | --with-*)
 
1057
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1058
    # Reject names that are not valid shell variable names.
 
1059
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1060
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1061
   { (exit 1); exit 1; }; }
 
1062
    ac_useropt_orig=$ac_useropt
 
1063
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1064
    case $ac_user_opts in
 
1065
      *"
 
1066
"with_$ac_useropt"
 
1067
"*) ;;
 
1068
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1069
         ac_unrecognized_sep=', ';;
 
1070
    esac
 
1071
    eval with_$ac_useropt=\$ac_optarg ;;
 
1072
 
 
1073
  -without-* | --without-*)
 
1074
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1075
    # Reject names that are not valid shell variable names.
 
1076
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1077
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1078
   { (exit 1); exit 1; }; }
 
1079
    ac_useropt_orig=$ac_useropt
 
1080
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1081
    case $ac_user_opts in
 
1082
      *"
 
1083
"with_$ac_useropt"
 
1084
"*) ;;
 
1085
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1086
         ac_unrecognized_sep=', ';;
 
1087
    esac
 
1088
    eval with_$ac_useropt=no ;;
 
1089
 
 
1090
  --x)
 
1091
    # Obsolete; use --with-x.
 
1092
    with_x=yes ;;
 
1093
 
 
1094
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1095
  | --x-incl | --x-inc | --x-in | --x-i)
 
1096
    ac_prev=x_includes ;;
 
1097
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1098
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1099
    x_includes=$ac_optarg ;;
 
1100
 
 
1101
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1102
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1103
    ac_prev=x_libraries ;;
 
1104
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1105
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1106
    x_libraries=$ac_optarg ;;
 
1107
 
 
1108
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1109
Try \`$0 --help' for more information." >&2
 
1110
   { (exit 1); exit 1; }; }
 
1111
    ;;
 
1112
 
 
1113
  *=*)
 
1114
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1115
    # Reject names that are not valid shell variable names.
 
1116
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1117
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1118
   { (exit 1); exit 1; }; }
 
1119
    eval $ac_envvar=\$ac_optarg
 
1120
    export $ac_envvar ;;
 
1121
 
 
1122
  *)
 
1123
    # FIXME: should be removed in autoconf 3.0.
 
1124
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1125
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1126
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1127
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1128
    ;;
 
1129
 
 
1130
  esac
 
1131
done
 
1132
 
 
1133
if test -n "$ac_prev"; then
 
1134
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1135
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1136
   { (exit 1); exit 1; }; }
 
1137
fi
 
1138
 
 
1139
if test -n "$ac_unrecognized_opts"; then
 
1140
  case $enable_option_checking in
 
1141
    no) ;;
 
1142
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1143
   { (exit 1); exit 1; }; } ;;
 
1144
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1145
  esac
 
1146
fi
 
1147
 
 
1148
# Check all directory arguments for consistency.
 
1149
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1150
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1151
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1152
                libdir localedir mandir
 
1153
do
 
1154
  eval ac_val=\$$ac_var
 
1155
  # Remove trailing slashes.
 
1156
  case $ac_val in
 
1157
    */ )
 
1158
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1159
      eval $ac_var=\$ac_val;;
 
1160
  esac
 
1161
  # Be sure to have absolute directory names.
 
1162
  case $ac_val in
 
1163
    [\\/$]* | ?:[\\/]* )  continue;;
 
1164
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1165
  esac
 
1166
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1167
   { (exit 1); exit 1; }; }
 
1168
done
 
1169
 
 
1170
# There might be people who depend on the old broken behavior: `$host'
 
1171
# used to hold the argument of --host etc.
 
1172
# FIXME: To remove some day.
 
1173
build=$build_alias
 
1174
host=$host_alias
 
1175
target=$target_alias
 
1176
 
 
1177
# FIXME: To remove some day.
 
1178
if test "x$host_alias" != x; then
 
1179
  if test "x$build_alias" = x; then
 
1180
    cross_compiling=maybe
 
1181
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1182
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1183
  elif test "x$build_alias" != "x$host_alias"; then
 
1184
    cross_compiling=yes
 
1185
  fi
 
1186
fi
 
1187
 
 
1188
ac_tool_prefix=
 
1189
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1190
 
 
1191
test "$silent" = yes && exec 6>/dev/null
 
1192
 
 
1193
 
 
1194
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1195
ac_ls_di=`ls -di .` &&
 
1196
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1197
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1198
   { (exit 1); exit 1; }; }
 
1199
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1200
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1201
   { (exit 1); exit 1; }; }
 
1202
 
 
1203
 
 
1204
# Find the source files, if location was not specified.
 
1205
if test -z "$srcdir"; then
 
1206
  ac_srcdir_defaulted=yes
 
1207
  # Try the directory containing this script, then the parent directory.
 
1208
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1209
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1210
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1211
         X"$as_myself" : 'X\(//\)$' \| \
 
1212
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1213
$as_echo X"$as_myself" |
 
1214
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1215
            s//\1/
 
1216
            q
 
1217
          }
 
1218
          /^X\(\/\/\)[^/].*/{
 
1219
            s//\1/
 
1220
            q
 
1221
          }
 
1222
          /^X\(\/\/\)$/{
 
1223
            s//\1/
 
1224
            q
 
1225
          }
 
1226
          /^X\(\/\).*/{
 
1227
            s//\1/
 
1228
            q
 
1229
          }
 
1230
          s/.*/./; q'`
 
1231
  srcdir=$ac_confdir
 
1232
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1233
    srcdir=..
 
1234
  fi
 
1235
else
 
1236
  ac_srcdir_defaulted=no
 
1237
fi
 
1238
if test ! -r "$srcdir/$ac_unique_file"; then
 
1239
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1240
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1241
   { (exit 1); exit 1; }; }
 
1242
fi
 
1243
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1244
ac_abs_confdir=`(
 
1245
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1246
   { (exit 1); exit 1; }; }
 
1247
        pwd)`
 
1248
# When building in place, set srcdir=.
 
1249
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1250
  srcdir=.
 
1251
fi
 
1252
# Remove unnecessary trailing slashes from srcdir.
 
1253
# Double slashes in file names in object file debugging info
 
1254
# mess up M-x gdb in Emacs.
 
1255
case $srcdir in
 
1256
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1257
esac
 
1258
for ac_var in $ac_precious_vars; do
 
1259
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1260
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1261
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1262
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1263
done
 
1264
 
 
1265
#
 
1266
# Report the --help message.
 
1267
#
 
1268
if test "$ac_init_help" = "long"; then
 
1269
  # Omit some internal or obsolete options to make the list less imposing.
 
1270
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1271
  cat <<_ACEOF
 
1272
\`configure' configures libffcall/trampoline 0x010B to adapt to many kinds of systems.
 
1273
 
 
1274
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1275
 
 
1276
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1277
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1278
 
 
1279
Defaults for the options are specified in brackets.
 
1280
 
 
1281
Configuration:
 
1282
  -h, --help              display this help and exit
 
1283
      --help=short        display options specific to this package
 
1284
      --help=recursive    display the short help of all the included packages
 
1285
  -V, --version           display version information and exit
 
1286
  -q, --quiet, --silent   do not print \`checking...' messages
 
1287
      --cache-file=FILE   cache test results in FILE [disabled]
 
1288
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1289
  -n, --no-create         do not create output files
 
1290
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1291
 
 
1292
Installation directories:
 
1293
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1294
                          [$ac_default_prefix]
 
1295
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1296
                          [PREFIX]
 
1297
 
 
1298
By default, \`make install' will install all the files in
 
1299
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1300
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1301
for instance \`--prefix=\$HOME'.
 
1302
 
 
1303
For better control, use the options below.
 
1304
 
 
1305
Fine tuning of the installation directories:
 
1306
  --bindir=DIR            user executables [EPREFIX/bin]
 
1307
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1308
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1309
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1310
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1311
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1312
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1313
  --includedir=DIR        C header files [PREFIX/include]
 
1314
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1315
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1316
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1317
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1318
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1319
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1320
  --docdir=DIR            documentation root
 
1321
                          [DATAROOTDIR/doc/libffcall-trampoline]
 
1322
  --htmldir=DIR           html documentation [DOCDIR]
 
1323
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1324
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1325
  --psdir=DIR             ps documentation [DOCDIR]
 
1326
_ACEOF
 
1327
 
 
1328
  cat <<\_ACEOF
 
1329
 
 
1330
System types:
 
1331
  --build=BUILD     configure for building on BUILD [guessed]
 
1332
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1333
_ACEOF
 
1334
fi
 
1335
 
 
1336
if test -n "$ac_init_help"; then
 
1337
  case $ac_init_help in
 
1338
     short | recursive ) echo "Configuration of libffcall/trampoline 0x010B:";;
 
1339
   esac
 
1340
  cat <<\_ACEOF
 
1341
 
 
1342
Some influential environment variables:
 
1343
  CC          C compiler command
 
1344
  CFLAGS      C compiler flags
 
1345
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1346
              nonstandard directory <lib dir>
 
1347
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1348
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1349
              you have headers in a nonstandard directory <include dir>
 
1350
  CPP         C preprocessor
 
1351
 
 
1352
Use these variables to override the choices made by `configure' or to help
 
1353
it to find libraries and programs with nonstandard names/locations.
 
1354
 
 
1355
_ACEOF
 
1356
ac_status=$?
 
1357
fi
 
1358
 
 
1359
if test "$ac_init_help" = "recursive"; then
 
1360
  # If there are subdirs, report their specific --help.
 
1361
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1362
    test -d "$ac_dir" ||
 
1363
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1364
      continue
 
1365
    ac_builddir=.
 
1366
 
 
1367
case "$ac_dir" in
 
1368
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1369
*)
 
1370
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1371
  # A ".." for each directory in $ac_dir_suffix.
 
1372
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1373
  case $ac_top_builddir_sub in
 
1374
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1375
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1376
  esac ;;
 
1377
esac
 
1378
ac_abs_top_builddir=$ac_pwd
 
1379
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1380
# for backward compatibility:
 
1381
ac_top_builddir=$ac_top_build_prefix
 
1382
 
 
1383
case $srcdir in
 
1384
  .)  # We are building in place.
 
1385
    ac_srcdir=.
 
1386
    ac_top_srcdir=$ac_top_builddir_sub
 
1387
    ac_abs_top_srcdir=$ac_pwd ;;
 
1388
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1389
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1390
    ac_top_srcdir=$srcdir
 
1391
    ac_abs_top_srcdir=$srcdir ;;
 
1392
  *) # Relative name.
 
1393
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1394
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1395
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1396
esac
 
1397
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1398
 
 
1399
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1400
    # Check for guested configure.
 
1401
    if test -f "$ac_srcdir/configure.gnu"; then
 
1402
      echo &&
 
1403
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1404
    elif test -f "$ac_srcdir/configure"; then
 
1405
      echo &&
 
1406
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1407
    else
 
1408
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1409
    fi || ac_status=$?
 
1410
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1411
  done
 
1412
fi
 
1413
 
 
1414
test -n "$ac_init_help" && exit $ac_status
 
1415
if $ac_init_version; then
 
1416
  cat <<\_ACEOF
 
1417
libffcall/trampoline configure 0x010B
 
1418
generated by GNU Autoconf 2.63
 
1419
 
 
1420
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1421
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1422
This configure script is free software; the Free Software Foundation
 
1423
gives unlimited permission to copy, distribute and modify it.
 
1424
_ACEOF
 
1425
  exit
 
1426
fi
 
1427
cat >config.log <<_ACEOF
 
1428
This file contains any messages produced by compilers while
 
1429
running configure, to aid debugging if configure makes a mistake.
 
1430
 
 
1431
It was created by libffcall/trampoline $as_me 0x010B, which was
 
1432
generated by GNU Autoconf 2.63.  Invocation command line was
 
1433
 
 
1434
  $ $0 $@
 
1435
 
 
1436
_ACEOF
 
1437
exec 5>>config.log
 
1438
{
 
1439
cat <<_ASUNAME
 
1440
## --------- ##
 
1441
## Platform. ##
 
1442
## --------- ##
 
1443
 
 
1444
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1445
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1446
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1447
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1448
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1449
 
 
1450
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1451
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1452
 
 
1453
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1454
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1455
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1456
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1457
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1458
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1459
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1460
 
 
1461
_ASUNAME
 
1462
 
 
1463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1464
for as_dir in $PATH
 
1465
do
 
1466
  IFS=$as_save_IFS
 
1467
  test -z "$as_dir" && as_dir=.
 
1468
  $as_echo "PATH: $as_dir"
 
1469
done
 
1470
IFS=$as_save_IFS
 
1471
 
 
1472
} >&5
 
1473
 
 
1474
cat >&5 <<_ACEOF
 
1475
 
 
1476
 
 
1477
## ----------- ##
 
1478
## Core tests. ##
 
1479
## ----------- ##
 
1480
 
 
1481
_ACEOF
 
1482
 
 
1483
 
 
1484
# Keep a trace of the command line.
 
1485
# Strip out --no-create and --no-recursion so they do not pile up.
 
1486
# Strip out --silent because we don't want to record it for future runs.
 
1487
# Also quote any args containing shell meta-characters.
 
1488
# Make two passes to allow for proper duplicate-argument suppression.
 
1489
ac_configure_args=
 
1490
ac_configure_args0=
 
1491
ac_configure_args1=
 
1492
ac_must_keep_next=false
 
1493
for ac_pass in 1 2
 
1494
do
 
1495
  for ac_arg
 
1496
  do
 
1497
    case $ac_arg in
 
1498
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1499
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1500
    | -silent | --silent | --silen | --sile | --sil)
 
1501
      continue ;;
 
1502
    *\'*)
 
1503
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1504
    esac
 
1505
    case $ac_pass in
 
1506
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1507
    2)
 
1508
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1509
      if test $ac_must_keep_next = true; then
 
1510
        ac_must_keep_next=false # Got value, back to normal.
 
1511
      else
 
1512
        case $ac_arg in
 
1513
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1514
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1515
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1516
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1517
            case "$ac_configure_args0 " in
 
1518
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1519
            esac
 
1520
            ;;
 
1521
          -* ) ac_must_keep_next=true ;;
 
1522
        esac
 
1523
      fi
 
1524
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1525
      ;;
 
1526
    esac
 
1527
  done
 
1528
done
 
1529
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1530
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1531
 
 
1532
# When interrupted or exit'd, cleanup temporary files, and complete
 
1533
# config.log.  We remove comments because anyway the quotes in there
 
1534
# would cause problems or look ugly.
 
1535
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1536
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1537
trap 'exit_status=$?
 
1538
  # Save into config.log some information that might help in debugging.
 
1539
  {
 
1540
    echo
 
1541
 
 
1542
    cat <<\_ASBOX
 
1543
## ---------------- ##
 
1544
## Cache variables. ##
 
1545
## ---------------- ##
 
1546
_ASBOX
 
1547
    echo
 
1548
    # The following way of writing the cache mishandles newlines in values,
 
1549
(
 
1550
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1551
    eval ac_val=\$$ac_var
 
1552
    case $ac_val in #(
 
1553
    *${as_nl}*)
 
1554
      case $ac_var in #(
 
1555
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1556
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1557
      esac
 
1558
      case $ac_var in #(
 
1559
      _ | IFS | as_nl) ;; #(
 
1560
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1561
      *) $as_unset $ac_var ;;
 
1562
      esac ;;
 
1563
    esac
 
1564
  done
 
1565
  (set) 2>&1 |
 
1566
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1567
    *${as_nl}ac_space=\ *)
 
1568
      sed -n \
 
1569
        "s/'\''/'\''\\\\'\'''\''/g;
 
1570
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1571
      ;; #(
 
1572
    *)
 
1573
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1574
      ;;
 
1575
    esac |
 
1576
    sort
 
1577
)
 
1578
    echo
 
1579
 
 
1580
    cat <<\_ASBOX
 
1581
## ----------------- ##
 
1582
## Output variables. ##
 
1583
## ----------------- ##
 
1584
_ASBOX
 
1585
    echo
 
1586
    for ac_var in $ac_subst_vars
 
1587
    do
 
1588
      eval ac_val=\$$ac_var
 
1589
      case $ac_val in
 
1590
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1591
      esac
 
1592
      $as_echo "$ac_var='\''$ac_val'\''"
 
1593
    done | sort
 
1594
    echo
 
1595
 
 
1596
    if test -n "$ac_subst_files"; then
 
1597
      cat <<\_ASBOX
 
1598
## ------------------- ##
 
1599
## File substitutions. ##
 
1600
## ------------------- ##
 
1601
_ASBOX
 
1602
      echo
 
1603
      for ac_var in $ac_subst_files
 
1604
      do
 
1605
        eval ac_val=\$$ac_var
 
1606
        case $ac_val in
 
1607
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1608
        esac
 
1609
        $as_echo "$ac_var='\''$ac_val'\''"
 
1610
      done | sort
 
1611
      echo
 
1612
    fi
 
1613
 
 
1614
    if test -s confdefs.h; then
 
1615
      cat <<\_ASBOX
 
1616
## ----------- ##
 
1617
## confdefs.h. ##
 
1618
## ----------- ##
 
1619
_ASBOX
 
1620
      echo
 
1621
      cat confdefs.h
 
1622
      echo
 
1623
    fi
 
1624
    test "$ac_signal" != 0 &&
 
1625
      $as_echo "$as_me: caught signal $ac_signal"
 
1626
    $as_echo "$as_me: exit $exit_status"
 
1627
  } >&5
 
1628
  rm -f core *.core core.conftest.* &&
 
1629
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1630
    exit $exit_status
 
1631
' 0
 
1632
for ac_signal in 1 2 13 15; do
 
1633
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1634
done
 
1635
ac_signal=0
 
1636
 
 
1637
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1638
rm -f -r conftest* confdefs.h
 
1639
 
 
1640
# Predefined preprocessor variables.
 
1641
 
 
1642
cat >>confdefs.h <<_ACEOF
 
1643
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1644
_ACEOF
 
1645
 
 
1646
 
 
1647
cat >>confdefs.h <<_ACEOF
 
1648
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1649
_ACEOF
 
1650
 
 
1651
 
 
1652
cat >>confdefs.h <<_ACEOF
 
1653
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1654
_ACEOF
 
1655
 
 
1656
 
 
1657
cat >>confdefs.h <<_ACEOF
 
1658
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1659
_ACEOF
 
1660
 
 
1661
 
 
1662
cat >>confdefs.h <<_ACEOF
 
1663
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1664
_ACEOF
 
1665
 
 
1666
 
 
1667
# Let the site file select an alternate cache file if it wants to.
 
1668
# Prefer an explicitly selected file to automatically selected ones.
 
1669
ac_site_file1=NONE
 
1670
ac_site_file2=NONE
 
1671
if test -n "$CONFIG_SITE"; then
 
1672
  ac_site_file1=$CONFIG_SITE
 
1673
elif test "x$prefix" != xNONE; then
 
1674
  ac_site_file1=$prefix/share/config.site
 
1675
  ac_site_file2=$prefix/etc/config.site
 
1676
else
 
1677
  ac_site_file1=$ac_default_prefix/share/config.site
 
1678
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1679
fi
 
1680
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1681
do
 
1682
  test "x$ac_site_file" = xNONE && continue
 
1683
  if test -r "$ac_site_file"; then
 
1684
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1685
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1686
    sed 's/^/| /' "$ac_site_file" >&5
 
1687
    . "$ac_site_file"
 
1688
  fi
 
1689
done
 
1690
 
 
1691
if test -r "$cache_file"; then
 
1692
  # Some versions of bash will fail to source /dev/null (special
 
1693
  # files actually), so we avoid doing that.
 
1694
  if test -f "$cache_file"; then
 
1695
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1696
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
1697
    case $cache_file in
 
1698
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1699
      *)                      . "./$cache_file";;
 
1700
    esac
 
1701
  fi
 
1702
else
 
1703
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1704
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
1705
  >$cache_file
 
1706
fi
 
1707
 
 
1708
# Check that the precious variables saved in the cache have kept the same
 
1709
# value.
 
1710
ac_cache_corrupted=false
 
1711
for ac_var in $ac_precious_vars; do
 
1712
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1713
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1714
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1715
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1716
  case $ac_old_set,$ac_new_set in
 
1717
    set,)
 
1718
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1719
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1720
      ac_cache_corrupted=: ;;
 
1721
    ,set)
 
1722
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1723
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1724
      ac_cache_corrupted=: ;;
 
1725
    ,);;
 
1726
    *)
 
1727
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1728
        # differences in whitespace do not lead to failure.
 
1729
        ac_old_val_w=`echo x $ac_old_val`
 
1730
        ac_new_val_w=`echo x $ac_new_val`
 
1731
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
1732
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1733
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1734
          ac_cache_corrupted=:
 
1735
        else
 
1736
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
1737
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
1738
          eval $ac_var=\$ac_old_val
 
1739
        fi
 
1740
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
1741
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
1742
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
1743
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
1744
      fi;;
 
1745
  esac
 
1746
  # Pass precious variables to config.status.
 
1747
  if test "$ac_new_set" = set; then
 
1748
    case $ac_new_val in
 
1749
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1750
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1751
    esac
 
1752
    case " $ac_configure_args " in
 
1753
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1754
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1755
    esac
 
1756
  fi
 
1757
done
 
1758
if $ac_cache_corrupted; then
 
1759
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
1760
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
1761
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1762
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1763
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1764
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1765
   { (exit 1); exit 1; }; }
 
1766
fi
 
1767
 
 
1768
 
 
1769
 
 
1770
 
 
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
 
 
1776
 
 
1777
 
 
1778
 
 
1779
 
 
1780
 
 
1781
 
 
1782
 
 
1783
 
 
1784
 
 
1785
 
 
1786
 
 
1787
 
 
1788
 
 
1789
 
 
1790
 
 
1791
 
 
1792
ac_ext=c
 
1793
ac_cpp='$CPP $CPPFLAGS'
 
1794
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1795
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1796
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1797
 
 
1798
 
 
1799
 
 
1800
ac_config_headers="$ac_config_headers config.h"
 
1801
 
 
1802
ac_config_headers="$ac_config_headers trampoline.h"
 
1803
 
 
1804
ac_config_files="$ac_config_files Makefile"
 
1805
 
 
1806
ac_ext=c
 
1807
ac_cpp='$CPP $CPPFLAGS'
 
1808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1811
if test -n "$ac_tool_prefix"; then
 
1812
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1813
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1814
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1815
$as_echo_n "checking for $ac_word... " >&6; }
 
1816
if test "${ac_cv_prog_CC+set}" = set; then
 
1817
  $as_echo_n "(cached) " >&6
 
1818
else
 
1819
  if test -n "$CC"; then
 
1820
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1821
else
 
1822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1823
for as_dir in $PATH
 
1824
do
 
1825
  IFS=$as_save_IFS
 
1826
  test -z "$as_dir" && as_dir=.
 
1827
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1828
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1829
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1830
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1831
    break 2
 
1832
  fi
 
1833
done
 
1834
done
 
1835
IFS=$as_save_IFS
 
1836
 
 
1837
fi
 
1838
fi
 
1839
CC=$ac_cv_prog_CC
 
1840
if test -n "$CC"; then
 
1841
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
1842
$as_echo "$CC" >&6; }
 
1843
else
 
1844
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
1845
$as_echo "no" >&6; }
 
1846
fi
 
1847
 
 
1848
 
 
1849
fi
 
1850
if test -z "$ac_cv_prog_CC"; then
 
1851
  ac_ct_CC=$CC
 
1852
  # Extract the first word of "gcc", so it can be a program name with args.
 
1853
set dummy gcc; ac_word=$2
 
1854
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1855
$as_echo_n "checking for $ac_word... " >&6; }
 
1856
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1857
  $as_echo_n "(cached) " >&6
 
1858
else
 
1859
  if test -n "$ac_ct_CC"; then
 
1860
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1861
else
 
1862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1863
for as_dir in $PATH
 
1864
do
 
1865
  IFS=$as_save_IFS
 
1866
  test -z "$as_dir" && as_dir=.
 
1867
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1868
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1869
    ac_cv_prog_ac_ct_CC="gcc"
 
1870
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1871
    break 2
 
1872
  fi
 
1873
done
 
1874
done
 
1875
IFS=$as_save_IFS
 
1876
 
 
1877
fi
 
1878
fi
 
1879
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1880
if test -n "$ac_ct_CC"; then
 
1881
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1882
$as_echo "$ac_ct_CC" >&6; }
 
1883
else
 
1884
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
1885
$as_echo "no" >&6; }
 
1886
fi
 
1887
 
 
1888
  if test "x$ac_ct_CC" = x; then
 
1889
    CC=""
 
1890
  else
 
1891
    case $cross_compiling:$ac_tool_warned in
 
1892
yes:)
 
1893
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
1894
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
1895
ac_tool_warned=yes ;;
 
1896
esac
 
1897
    CC=$ac_ct_CC
 
1898
  fi
 
1899
else
 
1900
  CC="$ac_cv_prog_CC"
 
1901
fi
 
1902
 
 
1903
if test -z "$CC"; then
 
1904
          if test -n "$ac_tool_prefix"; then
 
1905
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1906
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1907
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1908
$as_echo_n "checking for $ac_word... " >&6; }
 
1909
if test "${ac_cv_prog_CC+set}" = set; then
 
1910
  $as_echo_n "(cached) " >&6
 
1911
else
 
1912
  if test -n "$CC"; then
 
1913
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1914
else
 
1915
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1916
for as_dir in $PATH
 
1917
do
 
1918
  IFS=$as_save_IFS
 
1919
  test -z "$as_dir" && as_dir=.
 
1920
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1921
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1922
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1923
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1924
    break 2
 
1925
  fi
 
1926
done
 
1927
done
 
1928
IFS=$as_save_IFS
 
1929
 
 
1930
fi
 
1931
fi
 
1932
CC=$ac_cv_prog_CC
 
1933
if test -n "$CC"; then
 
1934
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
1935
$as_echo "$CC" >&6; }
 
1936
else
 
1937
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
1938
$as_echo "no" >&6; }
 
1939
fi
 
1940
 
 
1941
 
 
1942
  fi
 
1943
fi
 
1944
if test -z "$CC"; then
 
1945
  # Extract the first word of "cc", so it can be a program name with args.
 
1946
set dummy cc; ac_word=$2
 
1947
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1948
$as_echo_n "checking for $ac_word... " >&6; }
 
1949
if test "${ac_cv_prog_CC+set}" = set; then
 
1950
  $as_echo_n "(cached) " >&6
 
1951
else
 
1952
  if test -n "$CC"; then
 
1953
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1954
else
 
1955
  ac_prog_rejected=no
 
1956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1957
for as_dir in $PATH
 
1958
do
 
1959
  IFS=$as_save_IFS
 
1960
  test -z "$as_dir" && as_dir=.
 
1961
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1962
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1963
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1964
       ac_prog_rejected=yes
 
1965
       continue
 
1966
     fi
 
1967
    ac_cv_prog_CC="cc"
 
1968
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1969
    break 2
 
1970
  fi
 
1971
done
 
1972
done
 
1973
IFS=$as_save_IFS
 
1974
 
 
1975
if test $ac_prog_rejected = yes; then
 
1976
  # We found a bogon in the path, so make sure we never use it.
 
1977
  set dummy $ac_cv_prog_CC
 
1978
  shift
 
1979
  if test $# != 0; then
 
1980
    # We chose a different compiler from the bogus one.
 
1981
    # However, it has the same basename, so the bogon will be chosen
 
1982
    # first if we set CC to just the basename; use the full file name.
 
1983
    shift
 
1984
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1985
  fi
 
1986
fi
 
1987
fi
 
1988
fi
 
1989
CC=$ac_cv_prog_CC
 
1990
if test -n "$CC"; then
 
1991
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
1992
$as_echo "$CC" >&6; }
 
1993
else
 
1994
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
1995
$as_echo "no" >&6; }
 
1996
fi
 
1997
 
 
1998
 
 
1999
fi
 
2000
if test -z "$CC"; then
 
2001
  if test -n "$ac_tool_prefix"; then
 
2002
  for ac_prog in cl.exe
 
2003
  do
 
2004
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2005
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2006
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2007
$as_echo_n "checking for $ac_word... " >&6; }
 
2008
if test "${ac_cv_prog_CC+set}" = set; then
 
2009
  $as_echo_n "(cached) " >&6
 
2010
else
 
2011
  if test -n "$CC"; then
 
2012
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2013
else
 
2014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2015
for as_dir in $PATH
 
2016
do
 
2017
  IFS=$as_save_IFS
 
2018
  test -z "$as_dir" && as_dir=.
 
2019
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2020
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2021
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2022
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2023
    break 2
 
2024
  fi
 
2025
done
 
2026
done
 
2027
IFS=$as_save_IFS
 
2028
 
 
2029
fi
 
2030
fi
 
2031
CC=$ac_cv_prog_CC
 
2032
if test -n "$CC"; then
 
2033
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2034
$as_echo "$CC" >&6; }
 
2035
else
 
2036
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2037
$as_echo "no" >&6; }
 
2038
fi
 
2039
 
 
2040
 
 
2041
    test -n "$CC" && break
 
2042
  done
 
2043
fi
 
2044
if test -z "$CC"; then
 
2045
  ac_ct_CC=$CC
 
2046
  for ac_prog in cl.exe
 
2047
do
 
2048
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2049
set dummy $ac_prog; ac_word=$2
 
2050
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2051
$as_echo_n "checking for $ac_word... " >&6; }
 
2052
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2053
  $as_echo_n "(cached) " >&6
 
2054
else
 
2055
  if test -n "$ac_ct_CC"; then
 
2056
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2057
else
 
2058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2059
for as_dir in $PATH
 
2060
do
 
2061
  IFS=$as_save_IFS
 
2062
  test -z "$as_dir" && as_dir=.
 
2063
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2064
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2065
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2066
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2067
    break 2
 
2068
  fi
 
2069
done
 
2070
done
 
2071
IFS=$as_save_IFS
 
2072
 
 
2073
fi
 
2074
fi
 
2075
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2076
if test -n "$ac_ct_CC"; then
 
2077
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2078
$as_echo "$ac_ct_CC" >&6; }
 
2079
else
 
2080
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2081
$as_echo "no" >&6; }
 
2082
fi
 
2083
 
 
2084
 
 
2085
  test -n "$ac_ct_CC" && break
 
2086
done
 
2087
 
 
2088
  if test "x$ac_ct_CC" = x; then
 
2089
    CC=""
 
2090
  else
 
2091
    case $cross_compiling:$ac_tool_warned in
 
2092
yes:)
 
2093
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2094
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2095
ac_tool_warned=yes ;;
 
2096
esac
 
2097
    CC=$ac_ct_CC
 
2098
  fi
 
2099
fi
 
2100
 
 
2101
fi
 
2102
 
 
2103
 
 
2104
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2105
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2106
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2107
See \`config.log' for more details." >&5
 
2108
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2109
See \`config.log' for more details." >&2;}
 
2110
   { (exit 1); exit 1; }; }; }
 
2111
 
 
2112
# Provide some information about the compiler.
 
2113
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2114
set X $ac_compile
 
2115
ac_compiler=$2
 
2116
{ (ac_try="$ac_compiler --version >&5"
 
2117
case "(($ac_try" in
 
2118
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2119
  *) ac_try_echo=$ac_try;;
 
2120
esac
 
2121
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2122
$as_echo "$ac_try_echo") >&5
 
2123
  (eval "$ac_compiler --version >&5") 2>&5
 
2124
  ac_status=$?
 
2125
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2126
  (exit $ac_status); }
 
2127
{ (ac_try="$ac_compiler -v >&5"
 
2128
case "(($ac_try" in
 
2129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2130
  *) ac_try_echo=$ac_try;;
 
2131
esac
 
2132
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2133
$as_echo "$ac_try_echo") >&5
 
2134
  (eval "$ac_compiler -v >&5") 2>&5
 
2135
  ac_status=$?
 
2136
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2137
  (exit $ac_status); }
 
2138
{ (ac_try="$ac_compiler -V >&5"
 
2139
case "(($ac_try" in
 
2140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2141
  *) ac_try_echo=$ac_try;;
 
2142
esac
 
2143
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2144
$as_echo "$ac_try_echo") >&5
 
2145
  (eval "$ac_compiler -V >&5") 2>&5
 
2146
  ac_status=$?
 
2147
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2148
  (exit $ac_status); }
 
2149
 
 
2150
cat >conftest.$ac_ext <<_ACEOF
 
2151
/* confdefs.h.  */
 
2152
_ACEOF
 
2153
cat confdefs.h >>conftest.$ac_ext
 
2154
cat >>conftest.$ac_ext <<_ACEOF
 
2155
/* end confdefs.h.  */
 
2156
 
 
2157
int
 
2158
main ()
 
2159
{
 
2160
 
 
2161
  ;
 
2162
  return 0;
 
2163
}
 
2164
_ACEOF
 
2165
ac_clean_files_save=$ac_clean_files
 
2166
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2167
# Try to create an executable without -o first, disregard a.out.
 
2168
# It will help us diagnose broken compilers, and finding out an intuition
 
2169
# of exeext.
 
2170
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2171
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2172
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2173
 
 
2174
# The possible output files:
 
2175
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2176
 
 
2177
ac_rmfiles=
 
2178
for ac_file in $ac_files
 
2179
do
 
2180
  case $ac_file in
 
2181
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2182
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2183
  esac
 
2184
done
 
2185
rm -f $ac_rmfiles
 
2186
 
 
2187
if { (ac_try="$ac_link_default"
 
2188
case "(($ac_try" in
 
2189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2190
  *) ac_try_echo=$ac_try;;
 
2191
esac
 
2192
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2193
$as_echo "$ac_try_echo") >&5
 
2194
  (eval "$ac_link_default") 2>&5
 
2195
  ac_status=$?
 
2196
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2197
  (exit $ac_status); }; then
 
2198
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2199
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2200
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2201
# so that the user can short-circuit this test for compilers unknown to
 
2202
# Autoconf.
 
2203
for ac_file in $ac_files ''
 
2204
do
 
2205
  test -f "$ac_file" || continue
 
2206
  case $ac_file in
 
2207
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2208
        ;;
 
2209
    [ab].out )
 
2210
        # We found the default executable, but exeext='' is most
 
2211
        # certainly right.
 
2212
        break;;
 
2213
    *.* )
 
2214
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2215
        then :; else
 
2216
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2217
        fi
 
2218
        # We set ac_cv_exeext here because the later test for it is not
 
2219
        # safe: cross compilers may not add the suffix if given an `-o'
 
2220
        # argument, so we may need to know it at that point already.
 
2221
        # Even if this section looks crufty: it has the advantage of
 
2222
        # actually working.
 
2223
        break;;
 
2224
    * )
 
2225
        break;;
 
2226
  esac
 
2227
done
 
2228
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2229
 
 
2230
else
 
2231
  ac_file=''
 
2232
fi
 
2233
 
 
2234
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
2235
$as_echo "$ac_file" >&6; }
 
2236
if test -z "$ac_file"; then
 
2237
  $as_echo "$as_me: failed program was:" >&5
 
2238
sed 's/^/| /' conftest.$ac_ext >&5
 
2239
 
 
2240
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2241
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2242
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2243
See \`config.log' for more details." >&5
 
2244
$as_echo "$as_me: error: C compiler cannot create executables
 
2245
See \`config.log' for more details." >&2;}
 
2246
   { (exit 77); exit 77; }; }; }
 
2247
fi
 
2248
 
 
2249
ac_exeext=$ac_cv_exeext
 
2250
 
 
2251
# Check that the compiler produces executables we can run.  If not, either
 
2252
# the compiler is broken, or we cross compile.
 
2253
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2254
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2255
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2256
# If not cross compiling, check that we can run a simple program.
 
2257
if test "$cross_compiling" != yes; then
 
2258
  if { ac_try='./$ac_file'
 
2259
  { (case "(($ac_try" in
 
2260
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2261
  *) ac_try_echo=$ac_try;;
 
2262
esac
 
2263
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2264
$as_echo "$ac_try_echo") >&5
 
2265
  (eval "$ac_try") 2>&5
 
2266
  ac_status=$?
 
2267
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2268
  (exit $ac_status); }; }; then
 
2269
    cross_compiling=no
 
2270
  else
 
2271
    if test "$cross_compiling" = maybe; then
 
2272
        cross_compiling=yes
 
2273
    else
 
2274
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2275
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2276
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2277
If you meant to cross compile, use \`--host'.
 
2278
See \`config.log' for more details." >&5
 
2279
$as_echo "$as_me: error: cannot run C compiled programs.
 
2280
If you meant to cross compile, use \`--host'.
 
2281
See \`config.log' for more details." >&2;}
 
2282
   { (exit 1); exit 1; }; }; }
 
2283
    fi
 
2284
  fi
 
2285
fi
 
2286
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2287
$as_echo "yes" >&6; }
 
2288
 
 
2289
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
2290
ac_clean_files=$ac_clean_files_save
 
2291
# Check that the compiler produces executables we can run.  If not, either
 
2292
# the compiler is broken, or we cross compile.
 
2293
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2294
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2295
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2296
$as_echo "$cross_compiling" >&6; }
 
2297
 
 
2298
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2299
$as_echo_n "checking for suffix of executables... " >&6; }
 
2300
if { (ac_try="$ac_link"
 
2301
case "(($ac_try" in
 
2302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2303
  *) ac_try_echo=$ac_try;;
 
2304
esac
 
2305
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2306
$as_echo "$ac_try_echo") >&5
 
2307
  (eval "$ac_link") 2>&5
 
2308
  ac_status=$?
 
2309
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2310
  (exit $ac_status); }; then
 
2311
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2312
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2313
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2314
# `rm'.
 
2315
for ac_file in conftest.exe conftest conftest.*; do
 
2316
  test -f "$ac_file" || continue
 
2317
  case $ac_file in
 
2318
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2319
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2320
          break;;
 
2321
    * ) break;;
 
2322
  esac
 
2323
done
 
2324
else
 
2325
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2326
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2327
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2328
See \`config.log' for more details." >&5
 
2329
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2330
See \`config.log' for more details." >&2;}
 
2331
   { (exit 1); exit 1; }; }; }
 
2332
fi
 
2333
 
 
2334
rm -f conftest$ac_cv_exeext
 
2335
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2336
$as_echo "$ac_cv_exeext" >&6; }
 
2337
 
 
2338
rm -f conftest.$ac_ext
 
2339
EXEEXT=$ac_cv_exeext
 
2340
ac_exeext=$EXEEXT
 
2341
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2342
$as_echo_n "checking for suffix of object files... " >&6; }
 
2343
if test "${ac_cv_objext+set}" = set; then
 
2344
  $as_echo_n "(cached) " >&6
 
2345
else
 
2346
  cat >conftest.$ac_ext <<_ACEOF
 
2347
/* confdefs.h.  */
 
2348
_ACEOF
 
2349
cat confdefs.h >>conftest.$ac_ext
 
2350
cat >>conftest.$ac_ext <<_ACEOF
 
2351
/* end confdefs.h.  */
 
2352
 
 
2353
int
 
2354
main ()
 
2355
{
 
2356
 
 
2357
  ;
 
2358
  return 0;
 
2359
}
 
2360
_ACEOF
 
2361
rm -f conftest.o conftest.obj
 
2362
if { (ac_try="$ac_compile"
 
2363
case "(($ac_try" in
 
2364
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2365
  *) ac_try_echo=$ac_try;;
 
2366
esac
 
2367
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2368
$as_echo "$ac_try_echo") >&5
 
2369
  (eval "$ac_compile") 2>&5
 
2370
  ac_status=$?
 
2371
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2372
  (exit $ac_status); }; then
 
2373
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2374
  test -f "$ac_file" || continue;
 
2375
  case $ac_file in
 
2376
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
2377
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2378
       break;;
 
2379
  esac
 
2380
done
 
2381
else
 
2382
  $as_echo "$as_me: failed program was:" >&5
 
2383
sed 's/^/| /' conftest.$ac_ext >&5
 
2384
 
 
2385
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2386
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2387
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2388
See \`config.log' for more details." >&5
 
2389
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2390
See \`config.log' for more details." >&2;}
 
2391
   { (exit 1); exit 1; }; }; }
 
2392
fi
 
2393
 
 
2394
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2395
fi
 
2396
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2397
$as_echo "$ac_cv_objext" >&6; }
 
2398
OBJEXT=$ac_cv_objext
 
2399
ac_objext=$OBJEXT
 
2400
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2401
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
2402
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2403
  $as_echo_n "(cached) " >&6
 
2404
else
 
2405
  cat >conftest.$ac_ext <<_ACEOF
 
2406
/* confdefs.h.  */
 
2407
_ACEOF
 
2408
cat confdefs.h >>conftest.$ac_ext
 
2409
cat >>conftest.$ac_ext <<_ACEOF
 
2410
/* end confdefs.h.  */
 
2411
 
 
2412
int
 
2413
main ()
 
2414
{
 
2415
#ifndef __GNUC__
 
2416
       choke me
 
2417
#endif
 
2418
 
 
2419
  ;
 
2420
  return 0;
 
2421
}
 
2422
_ACEOF
 
2423
rm -f conftest.$ac_objext
 
2424
if { (ac_try="$ac_compile"
 
2425
case "(($ac_try" in
 
2426
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2427
  *) ac_try_echo=$ac_try;;
 
2428
esac
 
2429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2430
$as_echo "$ac_try_echo") >&5
 
2431
  (eval "$ac_compile") 2>conftest.er1
 
2432
  ac_status=$?
 
2433
  grep -v '^ *+' conftest.er1 >conftest.err
 
2434
  rm -f conftest.er1
 
2435
  cat conftest.err >&5
 
2436
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2437
  (exit $ac_status); } && {
 
2438
         test -z "$ac_c_werror_flag" ||
 
2439
         test ! -s conftest.err
 
2440
       } && test -s conftest.$ac_objext; then
 
2441
  ac_compiler_gnu=yes
 
2442
else
 
2443
  $as_echo "$as_me: failed program was:" >&5
 
2444
sed 's/^/| /' conftest.$ac_ext >&5
 
2445
 
 
2446
        ac_compiler_gnu=no
 
2447
fi
 
2448
 
 
2449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2450
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2451
 
 
2452
fi
 
2453
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2454
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
2455
if test $ac_compiler_gnu = yes; then
 
2456
  GCC=yes
 
2457
else
 
2458
  GCC=
 
2459
fi
 
2460
ac_test_CFLAGS=${CFLAGS+set}
 
2461
ac_save_CFLAGS=$CFLAGS
 
2462
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2463
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
2464
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2465
  $as_echo_n "(cached) " >&6
 
2466
else
 
2467
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2468
   ac_c_werror_flag=yes
 
2469
   ac_cv_prog_cc_g=no
 
2470
   CFLAGS="-g"
 
2471
   cat >conftest.$ac_ext <<_ACEOF
 
2472
/* confdefs.h.  */
 
2473
_ACEOF
 
2474
cat confdefs.h >>conftest.$ac_ext
 
2475
cat >>conftest.$ac_ext <<_ACEOF
 
2476
/* end confdefs.h.  */
 
2477
 
 
2478
int
 
2479
main ()
 
2480
{
 
2481
 
 
2482
  ;
 
2483
  return 0;
 
2484
}
 
2485
_ACEOF
 
2486
rm -f conftest.$ac_objext
 
2487
if { (ac_try="$ac_compile"
 
2488
case "(($ac_try" in
 
2489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2490
  *) ac_try_echo=$ac_try;;
 
2491
esac
 
2492
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2493
$as_echo "$ac_try_echo") >&5
 
2494
  (eval "$ac_compile") 2>conftest.er1
 
2495
  ac_status=$?
 
2496
  grep -v '^ *+' conftest.er1 >conftest.err
 
2497
  rm -f conftest.er1
 
2498
  cat conftest.err >&5
 
2499
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2500
  (exit $ac_status); } && {
 
2501
         test -z "$ac_c_werror_flag" ||
 
2502
         test ! -s conftest.err
 
2503
       } && test -s conftest.$ac_objext; then
 
2504
  ac_cv_prog_cc_g=yes
 
2505
else
 
2506
  $as_echo "$as_me: failed program was:" >&5
 
2507
sed 's/^/| /' conftest.$ac_ext >&5
 
2508
 
 
2509
        CFLAGS=""
 
2510
      cat >conftest.$ac_ext <<_ACEOF
 
2511
/* confdefs.h.  */
 
2512
_ACEOF
 
2513
cat confdefs.h >>conftest.$ac_ext
 
2514
cat >>conftest.$ac_ext <<_ACEOF
 
2515
/* end confdefs.h.  */
 
2516
 
 
2517
int
 
2518
main ()
 
2519
{
 
2520
 
 
2521
  ;
 
2522
  return 0;
 
2523
}
 
2524
_ACEOF
 
2525
rm -f conftest.$ac_objext
 
2526
if { (ac_try="$ac_compile"
 
2527
case "(($ac_try" in
 
2528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2529
  *) ac_try_echo=$ac_try;;
 
2530
esac
 
2531
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2532
$as_echo "$ac_try_echo") >&5
 
2533
  (eval "$ac_compile") 2>conftest.er1
 
2534
  ac_status=$?
 
2535
  grep -v '^ *+' conftest.er1 >conftest.err
 
2536
  rm -f conftest.er1
 
2537
  cat conftest.err >&5
 
2538
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2539
  (exit $ac_status); } && {
 
2540
         test -z "$ac_c_werror_flag" ||
 
2541
         test ! -s conftest.err
 
2542
       } && test -s conftest.$ac_objext; then
 
2543
  :
 
2544
else
 
2545
  $as_echo "$as_me: failed program was:" >&5
 
2546
sed 's/^/| /' conftest.$ac_ext >&5
 
2547
 
 
2548
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2549
         CFLAGS="-g"
 
2550
         cat >conftest.$ac_ext <<_ACEOF
 
2551
/* confdefs.h.  */
 
2552
_ACEOF
 
2553
cat confdefs.h >>conftest.$ac_ext
 
2554
cat >>conftest.$ac_ext <<_ACEOF
 
2555
/* end confdefs.h.  */
 
2556
 
 
2557
int
 
2558
main ()
 
2559
{
 
2560
 
 
2561
  ;
 
2562
  return 0;
 
2563
}
 
2564
_ACEOF
 
2565
rm -f conftest.$ac_objext
 
2566
if { (ac_try="$ac_compile"
 
2567
case "(($ac_try" in
 
2568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2569
  *) ac_try_echo=$ac_try;;
 
2570
esac
 
2571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2572
$as_echo "$ac_try_echo") >&5
 
2573
  (eval "$ac_compile") 2>conftest.er1
 
2574
  ac_status=$?
 
2575
  grep -v '^ *+' conftest.er1 >conftest.err
 
2576
  rm -f conftest.er1
 
2577
  cat conftest.err >&5
 
2578
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2579
  (exit $ac_status); } && {
 
2580
         test -z "$ac_c_werror_flag" ||
 
2581
         test ! -s conftest.err
 
2582
       } && test -s conftest.$ac_objext; then
 
2583
  ac_cv_prog_cc_g=yes
 
2584
else
 
2585
  $as_echo "$as_me: failed program was:" >&5
 
2586
sed 's/^/| /' conftest.$ac_ext >&5
 
2587
 
 
2588
 
 
2589
fi
 
2590
 
 
2591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2592
fi
 
2593
 
 
2594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2595
fi
 
2596
 
 
2597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2598
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2599
fi
 
2600
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2601
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
2602
if test "$ac_test_CFLAGS" = set; then
 
2603
  CFLAGS=$ac_save_CFLAGS
 
2604
elif test $ac_cv_prog_cc_g = yes; then
 
2605
  if test "$GCC" = yes; then
 
2606
    CFLAGS="-g -O2"
 
2607
  else
 
2608
    CFLAGS="-g"
 
2609
  fi
 
2610
else
 
2611
  if test "$GCC" = yes; then
 
2612
    CFLAGS="-O2"
 
2613
  else
 
2614
    CFLAGS=
 
2615
  fi
 
2616
fi
 
2617
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
2618
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
2619
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
2620
  $as_echo_n "(cached) " >&6
 
2621
else
 
2622
  ac_cv_prog_cc_c89=no
 
2623
ac_save_CC=$CC
 
2624
cat >conftest.$ac_ext <<_ACEOF
 
2625
/* confdefs.h.  */
 
2626
_ACEOF
 
2627
cat confdefs.h >>conftest.$ac_ext
 
2628
cat >>conftest.$ac_ext <<_ACEOF
 
2629
/* end confdefs.h.  */
 
2630
#include <stdarg.h>
 
2631
#include <stdio.h>
 
2632
#include <sys/types.h>
 
2633
#include <sys/stat.h>
 
2634
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2635
struct buf { int x; };
 
2636
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2637
static char *e (p, i)
 
2638
     char **p;
 
2639
     int i;
 
2640
{
 
2641
  return p[i];
 
2642
}
 
2643
static char *f (char * (*g) (char **, int), char **p, ...)
 
2644
{
 
2645
  char *s;
 
2646
  va_list v;
 
2647
  va_start (v,p);
 
2648
  s = g (p, va_arg (v,int));
 
2649
  va_end (v);
 
2650
  return s;
 
2651
}
 
2652
 
 
2653
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2654
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2655
   These don't provoke an error unfortunately, instead are silently treated
 
2656
   as 'x'.  The following induces an error, until -std is added to get
 
2657
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2658
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2659
   that's true only with -std.  */
 
2660
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2661
 
 
2662
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2663
   inside strings and character constants.  */
 
2664
#define FOO(x) 'x'
 
2665
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2666
 
 
2667
int test (int i, double x);
 
2668
struct s1 {int (*f) (int a);};
 
2669
struct s2 {int (*f) (double a);};
 
2670
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2671
int argc;
 
2672
char **argv;
 
2673
int
 
2674
main ()
 
2675
{
 
2676
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2677
  ;
 
2678
  return 0;
 
2679
}
 
2680
_ACEOF
 
2681
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2682
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2683
do
 
2684
  CC="$ac_save_CC $ac_arg"
 
2685
  rm -f conftest.$ac_objext
 
2686
if { (ac_try="$ac_compile"
 
2687
case "(($ac_try" in
 
2688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2689
  *) ac_try_echo=$ac_try;;
 
2690
esac
 
2691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2692
$as_echo "$ac_try_echo") >&5
 
2693
  (eval "$ac_compile") 2>conftest.er1
 
2694
  ac_status=$?
 
2695
  grep -v '^ *+' conftest.er1 >conftest.err
 
2696
  rm -f conftest.er1
 
2697
  cat conftest.err >&5
 
2698
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2699
  (exit $ac_status); } && {
 
2700
         test -z "$ac_c_werror_flag" ||
 
2701
         test ! -s conftest.err
 
2702
       } && test -s conftest.$ac_objext; then
 
2703
  ac_cv_prog_cc_c89=$ac_arg
 
2704
else
 
2705
  $as_echo "$as_me: failed program was:" >&5
 
2706
sed 's/^/| /' conftest.$ac_ext >&5
 
2707
 
 
2708
 
 
2709
fi
 
2710
 
 
2711
rm -f core conftest.err conftest.$ac_objext
 
2712
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2713
done
 
2714
rm -f conftest.$ac_ext
 
2715
CC=$ac_save_CC
 
2716
 
 
2717
fi
 
2718
# AC_CACHE_VAL
 
2719
case "x$ac_cv_prog_cc_c89" in
 
2720
  x)
 
2721
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
2722
$as_echo "none needed" >&6; } ;;
 
2723
  xno)
 
2724
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
2725
$as_echo "unsupported" >&6; } ;;
 
2726
  *)
 
2727
    CC="$CC $ac_cv_prog_cc_c89"
 
2728
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
2729
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
2730
esac
 
2731
 
 
2732
 
 
2733
ac_ext=c
 
2734
ac_cpp='$CPP $CPPFLAGS'
 
2735
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2736
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2737
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2738
 
 
2739
ac_ext=c
 
2740
ac_cpp='$CPP $CPPFLAGS'
 
2741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2744
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2745
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
2746
# On Suns, sometimes $CPP names a directory.
 
2747
if test -n "$CPP" && test -d "$CPP"; then
 
2748
  CPP=
 
2749
fi
 
2750
if test -z "$CPP"; then
 
2751
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2752
  $as_echo_n "(cached) " >&6
 
2753
else
 
2754
      # Double quotes because CPP needs to be expanded
 
2755
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2756
    do
 
2757
      ac_preproc_ok=false
 
2758
for ac_c_preproc_warn_flag in '' yes
 
2759
do
 
2760
  # Use a header file that comes with gcc, so configuring glibc
 
2761
  # with a fresh cross-compiler works.
 
2762
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2763
  # <limits.h> exists even on freestanding compilers.
 
2764
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2765
  # not just through cpp. "Syntax error" is here to catch this case.
 
2766
  cat >conftest.$ac_ext <<_ACEOF
 
2767
/* confdefs.h.  */
 
2768
_ACEOF
 
2769
cat confdefs.h >>conftest.$ac_ext
 
2770
cat >>conftest.$ac_ext <<_ACEOF
 
2771
/* end confdefs.h.  */
 
2772
#ifdef __STDC__
 
2773
# include <limits.h>
 
2774
#else
 
2775
# include <assert.h>
 
2776
#endif
 
2777
                     Syntax error
 
2778
_ACEOF
 
2779
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
2780
case "(($ac_try" in
 
2781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2782
  *) ac_try_echo=$ac_try;;
 
2783
esac
 
2784
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2785
$as_echo "$ac_try_echo") >&5
 
2786
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
2787
  ac_status=$?
 
2788
  grep -v '^ *+' conftest.er1 >conftest.err
 
2789
  rm -f conftest.er1
 
2790
  cat conftest.err >&5
 
2791
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2792
  (exit $ac_status); } >/dev/null && {
 
2793
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2794
         test ! -s conftest.err
 
2795
       }; then
 
2796
  :
 
2797
else
 
2798
  $as_echo "$as_me: failed program was:" >&5
 
2799
sed 's/^/| /' conftest.$ac_ext >&5
 
2800
 
 
2801
  # Broken: fails on valid input.
 
2802
continue
 
2803
fi
 
2804
 
 
2805
rm -f conftest.err conftest.$ac_ext
 
2806
 
 
2807
  # OK, works on sane cases.  Now check whether nonexistent headers
 
2808
  # can be detected and how.
 
2809
  cat >conftest.$ac_ext <<_ACEOF
 
2810
/* confdefs.h.  */
 
2811
_ACEOF
 
2812
cat confdefs.h >>conftest.$ac_ext
 
2813
cat >>conftest.$ac_ext <<_ACEOF
 
2814
/* end confdefs.h.  */
 
2815
#include <ac_nonexistent.h>
 
2816
_ACEOF
 
2817
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
2818
case "(($ac_try" in
 
2819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2820
  *) ac_try_echo=$ac_try;;
 
2821
esac
 
2822
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2823
$as_echo "$ac_try_echo") >&5
 
2824
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
2825
  ac_status=$?
 
2826
  grep -v '^ *+' conftest.er1 >conftest.err
 
2827
  rm -f conftest.er1
 
2828
  cat conftest.err >&5
 
2829
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2830
  (exit $ac_status); } >/dev/null && {
 
2831
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2832
         test ! -s conftest.err
 
2833
       }; then
 
2834
  # Broken: success on invalid input.
 
2835
continue
 
2836
else
 
2837
  $as_echo "$as_me: failed program was:" >&5
 
2838
sed 's/^/| /' conftest.$ac_ext >&5
 
2839
 
 
2840
  # Passes both tests.
 
2841
ac_preproc_ok=:
 
2842
break
 
2843
fi
 
2844
 
 
2845
rm -f conftest.err conftest.$ac_ext
 
2846
 
 
2847
done
 
2848
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2849
rm -f conftest.err conftest.$ac_ext
 
2850
if $ac_preproc_ok; then
 
2851
  break
 
2852
fi
 
2853
 
 
2854
    done
 
2855
    ac_cv_prog_CPP=$CPP
 
2856
 
 
2857
fi
 
2858
  CPP=$ac_cv_prog_CPP
 
2859
else
 
2860
  ac_cv_prog_CPP=$CPP
 
2861
fi
 
2862
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
2863
$as_echo "$CPP" >&6; }
 
2864
ac_preproc_ok=false
 
2865
for ac_c_preproc_warn_flag in '' yes
 
2866
do
 
2867
  # Use a header file that comes with gcc, so configuring glibc
 
2868
  # with a fresh cross-compiler works.
 
2869
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2870
  # <limits.h> exists even on freestanding compilers.
 
2871
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2872
  # not just through cpp. "Syntax error" is here to catch this case.
 
2873
  cat >conftest.$ac_ext <<_ACEOF
 
2874
/* confdefs.h.  */
 
2875
_ACEOF
 
2876
cat confdefs.h >>conftest.$ac_ext
 
2877
cat >>conftest.$ac_ext <<_ACEOF
 
2878
/* end confdefs.h.  */
 
2879
#ifdef __STDC__
 
2880
# include <limits.h>
 
2881
#else
 
2882
# include <assert.h>
 
2883
#endif
 
2884
                     Syntax error
 
2885
_ACEOF
 
2886
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
2887
case "(($ac_try" in
 
2888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2889
  *) ac_try_echo=$ac_try;;
 
2890
esac
 
2891
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2892
$as_echo "$ac_try_echo") >&5
 
2893
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
2894
  ac_status=$?
 
2895
  grep -v '^ *+' conftest.er1 >conftest.err
 
2896
  rm -f conftest.er1
 
2897
  cat conftest.err >&5
 
2898
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2899
  (exit $ac_status); } >/dev/null && {
 
2900
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2901
         test ! -s conftest.err
 
2902
       }; then
 
2903
  :
 
2904
else
 
2905
  $as_echo "$as_me: failed program was:" >&5
 
2906
sed 's/^/| /' conftest.$ac_ext >&5
 
2907
 
 
2908
  # Broken: fails on valid input.
 
2909
continue
 
2910
fi
 
2911
 
 
2912
rm -f conftest.err conftest.$ac_ext
 
2913
 
 
2914
  # OK, works on sane cases.  Now check whether nonexistent headers
 
2915
  # can be detected and how.
 
2916
  cat >conftest.$ac_ext <<_ACEOF
 
2917
/* confdefs.h.  */
 
2918
_ACEOF
 
2919
cat confdefs.h >>conftest.$ac_ext
 
2920
cat >>conftest.$ac_ext <<_ACEOF
 
2921
/* end confdefs.h.  */
 
2922
#include <ac_nonexistent.h>
 
2923
_ACEOF
 
2924
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
2925
case "(($ac_try" in
 
2926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2927
  *) ac_try_echo=$ac_try;;
 
2928
esac
 
2929
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2930
$as_echo "$ac_try_echo") >&5
 
2931
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
2932
  ac_status=$?
 
2933
  grep -v '^ *+' conftest.er1 >conftest.err
 
2934
  rm -f conftest.er1
 
2935
  cat conftest.err >&5
 
2936
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2937
  (exit $ac_status); } >/dev/null && {
 
2938
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2939
         test ! -s conftest.err
 
2940
       }; then
 
2941
  # Broken: success on invalid input.
 
2942
continue
 
2943
else
 
2944
  $as_echo "$as_me: failed program was:" >&5
 
2945
sed 's/^/| /' conftest.$ac_ext >&5
 
2946
 
 
2947
  # Passes both tests.
 
2948
ac_preproc_ok=:
 
2949
break
 
2950
fi
 
2951
 
 
2952
rm -f conftest.err conftest.$ac_ext
 
2953
 
 
2954
done
 
2955
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2956
rm -f conftest.err conftest.$ac_ext
 
2957
if $ac_preproc_ok; then
 
2958
  :
 
2959
else
 
2960
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2961
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2962
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2963
See \`config.log' for more details." >&5
 
2964
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2965
See \`config.log' for more details." >&2;}
 
2966
   { (exit 1); exit 1; }; }; }
 
2967
fi
 
2968
 
 
2969
ac_ext=c
 
2970
ac_cpp='$CPP $CPPFLAGS'
 
2971
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2972
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2973
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2974
 
 
2975
 
 
2976
 
 
2977
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
2978
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
2979
if test "${ac_cv_path_GREP+set}" = set; then
 
2980
  $as_echo_n "(cached) " >&6
 
2981
else
 
2982
  if test -z "$GREP"; then
 
2983
  ac_path_GREP_found=false
 
2984
  # Loop through the user's path and test for each of PROGNAME-LIST
 
2985
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2986
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
2987
do
 
2988
  IFS=$as_save_IFS
 
2989
  test -z "$as_dir" && as_dir=.
 
2990
  for ac_prog in grep ggrep; do
 
2991
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2992
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
2993
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
2994
# Check for GNU ac_path_GREP and select it if it is found.
 
2995
  # Check for GNU $ac_path_GREP
 
2996
case `"$ac_path_GREP" --version 2>&1` in
 
2997
*GNU*)
 
2998
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
2999
*)
 
3000
  ac_count=0
 
3001
  $as_echo_n 0123456789 >"conftest.in"
 
3002
  while :
 
3003
  do
 
3004
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3005
    mv "conftest.tmp" "conftest.in"
 
3006
    cp "conftest.in" "conftest.nl"
 
3007
    $as_echo 'GREP' >> "conftest.nl"
 
3008
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3009
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3010
    ac_count=`expr $ac_count + 1`
 
3011
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3012
      # Best one so far, save it but keep looking for a better one
 
3013
      ac_cv_path_GREP="$ac_path_GREP"
 
3014
      ac_path_GREP_max=$ac_count
 
3015
    fi
 
3016
    # 10*(2^10) chars as input seems more than enough
 
3017
    test $ac_count -gt 10 && break
 
3018
  done
 
3019
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3020
esac
 
3021
 
 
3022
      $ac_path_GREP_found && break 3
 
3023
    done
 
3024
  done
 
3025
done
 
3026
IFS=$as_save_IFS
 
3027
  if test -z "$ac_cv_path_GREP"; then
 
3028
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3029
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3030
   { (exit 1); exit 1; }; }
 
3031
  fi
 
3032
else
 
3033
  ac_cv_path_GREP=$GREP
 
3034
fi
 
3035
 
 
3036
fi
 
3037
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3038
$as_echo "$ac_cv_path_GREP" >&6; }
 
3039
 GREP="$ac_cv_path_GREP"
 
3040
 
 
3041
 
 
3042
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
3043
$as_echo_n "checking for egrep... " >&6; }
 
3044
if test "${ac_cv_path_EGREP+set}" = set; then
 
3045
  $as_echo_n "(cached) " >&6
 
3046
else
 
3047
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3048
   then ac_cv_path_EGREP="$GREP -E"
 
3049
   else
 
3050
     if test -z "$EGREP"; then
 
3051
  ac_path_EGREP_found=false
 
3052
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3053
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3054
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3055
do
 
3056
  IFS=$as_save_IFS
 
3057
  test -z "$as_dir" && as_dir=.
 
3058
  for ac_prog in egrep; do
 
3059
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3060
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3061
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3062
# Check for GNU ac_path_EGREP and select it if it is found.
 
3063
  # Check for GNU $ac_path_EGREP
 
3064
case `"$ac_path_EGREP" --version 2>&1` in
 
3065
*GNU*)
 
3066
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3067
*)
 
3068
  ac_count=0
 
3069
  $as_echo_n 0123456789 >"conftest.in"
 
3070
  while :
 
3071
  do
 
3072
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3073
    mv "conftest.tmp" "conftest.in"
 
3074
    cp "conftest.in" "conftest.nl"
 
3075
    $as_echo 'EGREP' >> "conftest.nl"
 
3076
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3077
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3078
    ac_count=`expr $ac_count + 1`
 
3079
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3080
      # Best one so far, save it but keep looking for a better one
 
3081
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3082
      ac_path_EGREP_max=$ac_count
 
3083
    fi
 
3084
    # 10*(2^10) chars as input seems more than enough
 
3085
    test $ac_count -gt 10 && break
 
3086
  done
 
3087
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3088
esac
 
3089
 
 
3090
      $ac_path_EGREP_found && break 3
 
3091
    done
 
3092
  done
 
3093
done
 
3094
IFS=$as_save_IFS
 
3095
  if test -z "$ac_cv_path_EGREP"; then
 
3096
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3097
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3098
   { (exit 1); exit 1; }; }
 
3099
  fi
 
3100
else
 
3101
  ac_cv_path_EGREP=$EGREP
 
3102
fi
 
3103
 
 
3104
   fi
 
3105
fi
 
3106
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3107
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3108
 EGREP="$ac_cv_path_EGREP"
 
3109
 
 
3110
 
 
3111
if test $ac_cv_c_compiler_gnu = yes; then
 
3112
    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
3113
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
 
3114
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
3115
  $as_echo_n "(cached) " >&6
 
3116
else
 
3117
    ac_pattern="Autoconf.*'x'"
 
3118
  cat >conftest.$ac_ext <<_ACEOF
 
3119
/* confdefs.h.  */
 
3120
_ACEOF
 
3121
cat confdefs.h >>conftest.$ac_ext
 
3122
cat >>conftest.$ac_ext <<_ACEOF
 
3123
/* end confdefs.h.  */
 
3124
#include <sgtty.h>
 
3125
Autoconf TIOCGETP
 
3126
_ACEOF
 
3127
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3128
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
3129
  ac_cv_prog_gcc_traditional=yes
 
3130
else
 
3131
  ac_cv_prog_gcc_traditional=no
 
3132
fi
 
3133
rm -f conftest*
 
3134
 
 
3135
 
 
3136
  if test $ac_cv_prog_gcc_traditional = no; then
 
3137
    cat >conftest.$ac_ext <<_ACEOF
 
3138
/* confdefs.h.  */
 
3139
_ACEOF
 
3140
cat confdefs.h >>conftest.$ac_ext
 
3141
cat >>conftest.$ac_ext <<_ACEOF
 
3142
/* end confdefs.h.  */
 
3143
#include <termio.h>
 
3144
Autoconf TCGETA
 
3145
_ACEOF
 
3146
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3147
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
3148
  ac_cv_prog_gcc_traditional=yes
 
3149
fi
 
3150
rm -f conftest*
 
3151
 
 
3152
  fi
 
3153
fi
 
3154
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
3155
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
 
3156
  if test $ac_cv_prog_gcc_traditional = yes; then
 
3157
    CC="$CC -traditional"
 
3158
  fi
 
3159
fi
 
3160
 
 
3161
 
 
3162
{ $as_echo "$as_me:$LINENO: checking whether using GNU C" >&5
 
3163
$as_echo_n "checking whether using GNU C... " >&6; }
 
3164
if test "${cl_cv_prog_cc_gcc+set}" = set; then
 
3165
  $as_echo_n "(cached) " >&6
 
3166
else
 
3167
 
 
3168
cat >conftest.$ac_ext <<_ACEOF
 
3169
/* confdefs.h.  */
 
3170
_ACEOF
 
3171
cat confdefs.h >>conftest.$ac_ext
 
3172
cat >>conftest.$ac_ext <<_ACEOF
 
3173
/* end confdefs.h.  */
 
3174
#ifdef __GNUC__
 
3175
  yes
 
3176
#endif
 
3177
 
 
3178
_ACEOF
 
3179
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3180
  $EGREP "yes" >/dev/null 2>&1; then
 
3181
  cl_cv_prog_cc_gcc=yes
 
3182
else
 
3183
  cl_cv_prog_cc_gcc=no
 
3184
fi
 
3185
rm -f conftest*
 
3186
 
 
3187
 
 
3188
fi
 
3189
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_cc_gcc" >&5
 
3190
$as_echo "$cl_cv_prog_cc_gcc" >&6; }
 
3191
if test $cl_cv_prog_cc_gcc = yes; then
 
3192
  CC_GCC=true
 
3193
  GCC_X_NONE='-x none'
 
3194
else
 
3195
  CC_GCC=false
 
3196
  GCC_X_NONE=''
 
3197
fi
 
3198
 
 
3199
 
 
3200
 
 
3201
{ $as_echo "$as_me:$LINENO: checking for underscore in external names" >&5
 
3202
$as_echo_n "checking for underscore in external names... " >&6; }
 
3203
if test "${cl_cv_prog_as_underscore+set}" = set; then
 
3204
  $as_echo_n "(cached) " >&6
 
3205
else
 
3206
 
 
3207
cat > conftest.c <<EOF
 
3208
#ifdef __cplusplus
 
3209
extern "C"
 
3210
#endif
 
3211
int foo() { return 0; }
 
3212
EOF
 
3213
# look for the assembly language name in the .s file
 
3214
{ ac_try='${CC-cc} -S conftest.c'
 
3215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3216
  (eval $ac_try) 2>&5
 
3217
  ac_status=$?
 
3218
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3219
  (exit $ac_status); }; } >/dev/null 2>&1
 
3220
if grep _foo conftest.s >/dev/null ; then
 
3221
  cl_cv_prog_as_underscore=yes
 
3222
else
 
3223
  cl_cv_prog_as_underscore=no
 
3224
fi
 
3225
rm -f conftest*
 
3226
 
 
3227
fi
 
3228
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_as_underscore" >&5
 
3229
$as_echo "$cl_cv_prog_as_underscore" >&6; }
 
3230
if test $cl_cv_prog_as_underscore = yes; then
 
3231
  AS_UNDERSCORE=true
 
3232
 
 
3233
cat >>confdefs.h <<\_ACEOF
 
3234
#define ASM_UNDERSCORE /**/
 
3235
_ACEOF
 
3236
 
 
3237
else
 
3238
  AS_UNDERSCORE=false
 
3239
fi
 
3240
 
 
3241
if test -n "$ac_tool_prefix"; then
 
3242
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3243
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3244
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3245
$as_echo_n "checking for $ac_word... " >&6; }
 
3246
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3247
  $as_echo_n "(cached) " >&6
 
3248
else
 
3249
  if test -n "$RANLIB"; then
 
3250
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3251
else
 
3252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3253
for as_dir in $PATH
 
3254
do
 
3255
  IFS=$as_save_IFS
 
3256
  test -z "$as_dir" && as_dir=.
 
3257
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3258
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3259
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3260
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3261
    break 2
 
3262
  fi
 
3263
done
 
3264
done
 
3265
IFS=$as_save_IFS
 
3266
 
 
3267
fi
 
3268
fi
 
3269
RANLIB=$ac_cv_prog_RANLIB
 
3270
if test -n "$RANLIB"; then
 
3271
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3272
$as_echo "$RANLIB" >&6; }
 
3273
else
 
3274
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3275
$as_echo "no" >&6; }
 
3276
fi
 
3277
 
 
3278
 
 
3279
fi
 
3280
if test -z "$ac_cv_prog_RANLIB"; then
 
3281
  ac_ct_RANLIB=$RANLIB
 
3282
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3283
set dummy ranlib; ac_word=$2
 
3284
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3285
$as_echo_n "checking for $ac_word... " >&6; }
 
3286
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3287
  $as_echo_n "(cached) " >&6
 
3288
else
 
3289
  if test -n "$ac_ct_RANLIB"; then
 
3290
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3291
else
 
3292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3293
for as_dir in $PATH
 
3294
do
 
3295
  IFS=$as_save_IFS
 
3296
  test -z "$as_dir" && as_dir=.
 
3297
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3298
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3299
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3300
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3301
    break 2
 
3302
  fi
 
3303
done
 
3304
done
 
3305
IFS=$as_save_IFS
 
3306
 
 
3307
fi
 
3308
fi
 
3309
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3310
if test -n "$ac_ct_RANLIB"; then
 
3311
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3312
$as_echo "$ac_ct_RANLIB" >&6; }
 
3313
else
 
3314
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3315
$as_echo "no" >&6; }
 
3316
fi
 
3317
 
 
3318
  if test "x$ac_ct_RANLIB" = x; then
 
3319
    RANLIB=":"
 
3320
  else
 
3321
    case $cross_compiling:$ac_tool_warned in
 
3322
yes:)
 
3323
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3324
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3325
ac_tool_warned=yes ;;
 
3326
esac
 
3327
    RANLIB=$ac_ct_RANLIB
 
3328
  fi
 
3329
else
 
3330
  RANLIB="$ac_cv_prog_RANLIB"
 
3331
fi
 
3332
 
 
3333
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3334
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3335
set x ${MAKE-make}
 
3336
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3337
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
3338
  $as_echo_n "(cached) " >&6
 
3339
else
 
3340
  cat >conftest.make <<\_ACEOF
 
3341
SHELL = /bin/sh
 
3342
all:
 
3343
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3344
_ACEOF
 
3345
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3346
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3347
  *@@@%%%=?*=@@@%%%*)
 
3348
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3349
  *)
 
3350
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3351
esac
 
3352
rm -f conftest.make
 
3353
fi
 
3354
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3355
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
3356
$as_echo "yes" >&6; }
 
3357
  SET_MAKE=
 
3358
else
 
3359
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3360
$as_echo "no" >&6; }
 
3361
  SET_MAKE="MAKE=${MAKE-make}"
 
3362
fi
 
3363
 
 
3364
ac_aux_dir=
 
3365
for ac_dir in ../build-aux "$srcdir"/../build-aux; do
 
3366
  if test -f "$ac_dir/install-sh"; then
 
3367
    ac_aux_dir=$ac_dir
 
3368
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
3369
    break
 
3370
  elif test -f "$ac_dir/install.sh"; then
 
3371
    ac_aux_dir=$ac_dir
 
3372
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
3373
    break
 
3374
  elif test -f "$ac_dir/shtool"; then
 
3375
    ac_aux_dir=$ac_dir
 
3376
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
3377
    break
 
3378
  fi
 
3379
done
 
3380
if test -z "$ac_aux_dir"; then
 
3381
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
 
3382
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
 
3383
   { (exit 1); exit 1; }; }
 
3384
fi
 
3385
 
 
3386
# These three variables are undocumented and unsupported,
 
3387
# and are intended to be withdrawn in a future Autoconf release.
 
3388
# They can cause serious problems if a builder's source tree is in a directory
 
3389
# whose full name contains unusual characters.
 
3390
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
3391
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
3392
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
3393
 
 
3394
 
 
3395
# Find a good install program.  We prefer a C program (faster),
 
3396
# so one script is as good as another.  But avoid the broken or
 
3397
# incompatible versions:
 
3398
# SysV /etc/install, /usr/sbin/install
 
3399
# SunOS /usr/etc/install
 
3400
# IRIX /sbin/install
 
3401
# AIX /bin/install
 
3402
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3403
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3404
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3405
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3406
# OS/2's system install, which has a completely different semantic
 
3407
# ./install, which can be erroneously created by make from ./install.sh.
 
3408
# Reject install programs that cannot install multiple files.
 
3409
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3410
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3411
if test -z "$INSTALL"; then
 
3412
if test "${ac_cv_path_install+set}" = set; then
 
3413
  $as_echo_n "(cached) " >&6
 
3414
else
 
3415
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3416
for as_dir in $PATH
 
3417
do
 
3418
  IFS=$as_save_IFS
 
3419
  test -z "$as_dir" && as_dir=.
 
3420
  # Account for people who put trailing slashes in PATH elements.
 
3421
case $as_dir/ in
 
3422
  ./ | .// | /cC/* | \
 
3423
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3424
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3425
  /usr/ucb/* ) ;;
 
3426
  *)
 
3427
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3428
    # Don't use installbsd from OSF since it installs stuff as root
 
3429
    # by default.
 
3430
    for ac_prog in ginstall scoinst install; do
 
3431
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3432
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3433
          if test $ac_prog = install &&
 
3434
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3435
            # AIX install.  It has an incompatible calling convention.
 
3436
            :
 
3437
          elif test $ac_prog = install &&
 
3438
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3439
            # program-specific install script used by HP pwplus--don't use.
 
3440
            :
 
3441
          else
 
3442
            rm -rf conftest.one conftest.two conftest.dir
 
3443
            echo one > conftest.one
 
3444
            echo two > conftest.two
 
3445
            mkdir conftest.dir
 
3446
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3447
              test -s conftest.one && test -s conftest.two &&
 
3448
              test -s conftest.dir/conftest.one &&
 
3449
              test -s conftest.dir/conftest.two
 
3450
            then
 
3451
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3452
              break 3
 
3453
            fi
 
3454
          fi
 
3455
        fi
 
3456
      done
 
3457
    done
 
3458
    ;;
 
3459
esac
 
3460
 
 
3461
done
 
3462
IFS=$as_save_IFS
 
3463
 
 
3464
rm -rf conftest.one conftest.two conftest.dir
 
3465
 
 
3466
fi
 
3467
  if test "${ac_cv_path_install+set}" = set; then
 
3468
    INSTALL=$ac_cv_path_install
 
3469
  else
 
3470
    # As a last resort, use the slow shell script.  Don't cache a
 
3471
    # value for INSTALL within a source directory, because that will
 
3472
    # break other packages using the cache if that directory is
 
3473
    # removed, or if the value is a relative name.
 
3474
    INSTALL=$ac_install_sh
 
3475
  fi
 
3476
fi
 
3477
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3478
$as_echo "$INSTALL" >&6; }
 
3479
 
 
3480
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3481
# It thinks the first close brace ends the variable substitution.
 
3482
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3483
 
 
3484
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3485
 
 
3486
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3487
 
 
3488
{ $as_echo "$as_me:$LINENO: checking how to make hard links" >&5
 
3489
$as_echo_n "checking how to make hard links... " >&6; }
 
3490
if test "${cl_cv_prog_LN+set}" = set; then
 
3491
  $as_echo_n "(cached) " >&6
 
3492
else
 
3493
 
 
3494
rm -f conftestdata conftestfile
 
3495
echo data > conftestfile
 
3496
if ln conftestfile conftestdata 2>/dev/null; then
 
3497
  cl_cv_prog_LN=ln
 
3498
else
 
3499
  cl_cv_prog_LN="cp -p"
 
3500
fi
 
3501
rm -f conftestdata conftestfile
 
3502
 
 
3503
fi
 
3504
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
 
3505
$as_echo "$cl_cv_prog_LN" >&6; }
 
3506
LN="$cl_cv_prog_LN"
 
3507
 
 
3508
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3509
$as_echo_n "checking whether ln -s works... " >&6; }
 
3510
if test "${cl_cv_prog_LN_S_works+set}" = set; then
 
3511
  $as_echo_n "(cached) " >&6
 
3512
else
 
3513
  rm -f conftestdata
 
3514
if ln -s X conftestdata 2>/dev/null; then
 
3515
  cl_cv_prog_LN_S_works=yes
 
3516
else
 
3517
  cl_cv_prog_LN_S_works=no
 
3518
fi
 
3519
rm -f conftestdata
 
3520
 
 
3521
fi
 
3522
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN_S_works" >&5
 
3523
$as_echo "$cl_cv_prog_LN_S_works" >&6; }
 
3524
if test $cl_cv_prog_LN_S_works = yes; then
 
3525
  LN_S="ln -s"
 
3526
else
 
3527
  LN_S="$cl_cv_prog_LN"
 
3528
fi
 
3529
 
 
3530
# Make sure we can run config.sub.
 
3531
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3532
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3533
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3534
   { (exit 1); exit 1; }; }
 
3535
 
 
3536
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
3537
$as_echo_n "checking build system type... " >&6; }
 
3538
if test "${ac_cv_build+set}" = set; then
 
3539
  $as_echo_n "(cached) " >&6
 
3540
else
 
3541
  ac_build_alias=$build_alias
 
3542
test "x$ac_build_alias" = x &&
 
3543
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3544
test "x$ac_build_alias" = x &&
 
3545
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3546
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3547
   { (exit 1); exit 1; }; }
 
3548
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3549
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3550
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3551
   { (exit 1); exit 1; }; }
 
3552
 
 
3553
fi
 
3554
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3555
$as_echo "$ac_cv_build" >&6; }
 
3556
case $ac_cv_build in
 
3557
*-*-*) ;;
 
3558
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3559
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
3560
   { (exit 1); exit 1; }; };;
 
3561
esac
 
3562
build=$ac_cv_build
 
3563
ac_save_IFS=$IFS; IFS='-'
 
3564
set x $ac_cv_build
 
3565
shift
 
3566
build_cpu=$1
 
3567
build_vendor=$2
 
3568
shift; shift
 
3569
# Remember, the first character of IFS is used to create $*,
 
3570
# except with old shells:
 
3571
build_os=$*
 
3572
IFS=$ac_save_IFS
 
3573
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3574
 
 
3575
 
 
3576
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
3577
$as_echo_n "checking host system type... " >&6; }
 
3578
if test "${ac_cv_host+set}" = set; then
 
3579
  $as_echo_n "(cached) " >&6
 
3580
else
 
3581
  if test "x$host_alias" = x; then
 
3582
  ac_cv_host=$ac_cv_build
 
3583
else
 
3584
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3585
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3586
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3587
   { (exit 1); exit 1; }; }
 
3588
fi
 
3589
 
 
3590
fi
 
3591
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3592
$as_echo "$ac_cv_host" >&6; }
 
3593
case $ac_cv_host in
 
3594
*-*-*) ;;
 
3595
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3596
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
3597
   { (exit 1); exit 1; }; };;
 
3598
esac
 
3599
host=$ac_cv_host
 
3600
ac_save_IFS=$IFS; IFS='-'
 
3601
set x $ac_cv_host
 
3602
shift
 
3603
host_cpu=$1
 
3604
host_vendor=$2
 
3605
shift; shift
 
3606
# Remember, the first character of IFS is used to create $*,
 
3607
# except with old shells:
 
3608
host_os=$*
 
3609
IFS=$ac_save_IFS
 
3610
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3611
 
 
3612
 
 
3613
 
 
3614
case "$host_cpu" in
 
3615
  i[4567]86 )
 
3616
    host_cpu_abi=i386
 
3617
    ;;
 
3618
  alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
 
3619
    host_cpu_abi=alpha
 
3620
    ;;
 
3621
  hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
 
3622
    host_cpu_abi=hppa
 
3623
    ;;
 
3624
  rs6000 )
 
3625
    host_cpu_abi=powerpc
 
3626
    ;;
 
3627
  c1 | c2 | c32 | c34 | c38 | c4 )
 
3628
    host_cpu_abi=convex
 
3629
    ;;
 
3630
  arm* )
 
3631
    { $as_echo "$as_me:$LINENO: checking for ARMel" >&5
 
3632
$as_echo_n "checking for ARMel... " >&6; }
 
3633
if test "${ffcall_cv_host_armel+set}" = set; then
 
3634
  $as_echo_n "(cached) " >&6
 
3635
else
 
3636
  cat >conftest.$ac_ext <<_ACEOF
 
3637
/* confdefs.h.  */
 
3638
_ACEOF
 
3639
cat confdefs.h >>conftest.$ac_ext
 
3640
cat >>conftest.$ac_ext <<_ACEOF
 
3641
/* end confdefs.h.  */
 
3642
#if defined(__ARMEL__)
 
3643
  yes
 
3644
#endif
 
3645
 
 
3646
_ACEOF
 
3647
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3648
  $EGREP "yes" >/dev/null 2>&1; then
 
3649
  ffcall_cv_host_armel=yes
 
3650
else
 
3651
  ffcall_cv_host_armel=no
 
3652
fi
 
3653
rm -f conftest*
 
3654
 
 
3655
fi
 
3656
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_armel" >&5
 
3657
$as_echo "$ffcall_cv_host_armel" >&6; }
 
3658
if test $ffcall_cv_host_armel = yes; then
 
3659
  host_cpu_abi=armel
 
3660
else
 
3661
  host_cpu_abi=arm
 
3662
fi
 
3663
    ;;
 
3664
  mips* )
 
3665
    { $as_echo "$as_me:$LINENO: checking for 64-bit MIPS" >&5
 
3666
$as_echo_n "checking for 64-bit MIPS... " >&6; }
 
3667
if test "${ffcall_cv_host_mips64+set}" = set; then
 
3668
  $as_echo_n "(cached) " >&6
 
3669
else
 
3670
  cat >conftest.$ac_ext <<_ACEOF
 
3671
/* confdefs.h.  */
 
3672
_ACEOF
 
3673
cat confdefs.h >>conftest.$ac_ext
 
3674
cat >>conftest.$ac_ext <<_ACEOF
 
3675
/* end confdefs.h.  */
 
3676
#if defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64)
 
3677
  yes
 
3678
#endif
 
3679
 
 
3680
_ACEOF
 
3681
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3682
  $EGREP "yes" >/dev/null 2>&1; then
 
3683
  ffcall_cv_host_mips64=yes
 
3684
else
 
3685
  ffcall_cv_host_mips64=no
 
3686
fi
 
3687
rm -f conftest*
 
3688
 
 
3689
fi
 
3690
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mips64" >&5
 
3691
$as_echo "$ffcall_cv_host_mips64" >&6; }
 
3692
    if test $ffcall_cv_host_mips64 = yes; then
 
3693
      host_cpu_abi=mips64
 
3694
    else
 
3695
      { $as_echo "$as_me:$LINENO: checking for MIPS with n32 ABI" >&5
 
3696
$as_echo_n "checking for MIPS with n32 ABI... " >&6; }
 
3697
if test "${ffcall_cv_host_mipsn32+set}" = set; then
 
3698
  $as_echo_n "(cached) " >&6
 
3699
else
 
3700
  cat >conftest.$ac_ext <<_ACEOF
 
3701
/* confdefs.h.  */
 
3702
_ACEOF
 
3703
cat confdefs.h >>conftest.$ac_ext
 
3704
cat >>conftest.$ac_ext <<_ACEOF
 
3705
/* end confdefs.h.  */
 
3706
#if __mips >= 3
 
3707
  yes
 
3708
#endif
 
3709
 
 
3710
_ACEOF
 
3711
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3712
  $EGREP "yes" >/dev/null 2>&1; then
 
3713
  ffcall_cv_host_mipsn32=yes
 
3714
else
 
3715
  ffcall_cv_host_mipsn32=no
 
3716
fi
 
3717
rm -f conftest*
 
3718
 
 
3719
fi
 
3720
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mipsn32" >&5
 
3721
$as_echo "$ffcall_cv_host_mipsn32" >&6; }
 
3722
if test $ffcall_cv_host_mipsn32 = yes; then
 
3723
  host_cpu_abi=mipsn32
 
3724
else
 
3725
  host_cpu_abi=mips
 
3726
fi
 
3727
    fi
 
3728
    ;;
 
3729
  powerpc64 )
 
3730
    { $as_echo "$as_me:$LINENO: checking for 64-bit PowerPC" >&5
 
3731
$as_echo_n "checking for 64-bit PowerPC... " >&6; }
 
3732
if test "${ffcall_cv_host_powerpc64+set}" = set; then
 
3733
  $as_echo_n "(cached) " >&6
 
3734
else
 
3735
  cat >conftest.$ac_ext <<_ACEOF
 
3736
/* confdefs.h.  */
 
3737
_ACEOF
 
3738
cat confdefs.h >>conftest.$ac_ext
 
3739
cat >>conftest.$ac_ext <<_ACEOF
 
3740
/* end confdefs.h.  */
 
3741
#if defined(__powerpc64__) || defined(_ARCH_PPC64)
 
3742
  yes
 
3743
#endif
 
3744
 
 
3745
_ACEOF
 
3746
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3747
  $EGREP "yes" >/dev/null 2>&1; then
 
3748
  ffcall_cv_host_powerpc64=yes
 
3749
else
 
3750
  ffcall_cv_host_powerpc64=no
 
3751
fi
 
3752
rm -f conftest*
 
3753
 
 
3754
fi
 
3755
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_powerpc64" >&5
 
3756
$as_echo "$ffcall_cv_host_powerpc64" >&6; }
 
3757
if test $ffcall_cv_host_powerpc64 = yes; then
 
3758
  host_cpu_abi=powerpc64
 
3759
else
 
3760
  host_cpu_abi=powerpc
 
3761
fi
 
3762
    ;;
 
3763
  sparc | sparc64 )
 
3764
    { $as_echo "$as_me:$LINENO: checking for 64-bit SPARC" >&5
 
3765
$as_echo_n "checking for 64-bit SPARC... " >&6; }
 
3766
if test "${ffcall_cv_host_sparc64+set}" = set; then
 
3767
  $as_echo_n "(cached) " >&6
 
3768
else
 
3769
  cat >conftest.$ac_ext <<_ACEOF
 
3770
/* confdefs.h.  */
 
3771
_ACEOF
 
3772
cat confdefs.h >>conftest.$ac_ext
 
3773
cat >>conftest.$ac_ext <<_ACEOF
 
3774
/* end confdefs.h.  */
 
3775
#if defined(__sparcv9) || defined(__arch64__)
 
3776
  yes
 
3777
#endif
 
3778
 
 
3779
_ACEOF
 
3780
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3781
  $EGREP "yes" >/dev/null 2>&1; then
 
3782
  ffcall_cv_host_sparc64=yes
 
3783
else
 
3784
  ffcall_cv_host_sparc64=no
 
3785
fi
 
3786
rm -f conftest*
 
3787
 
 
3788
fi
 
3789
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_sparc64" >&5
 
3790
$as_echo "$ffcall_cv_host_sparc64" >&6; }
 
3791
if test $ffcall_cv_host_sparc64 = yes; then
 
3792
  host_cpu_abi=sparc64
 
3793
else
 
3794
  host_cpu_abi=sparc
 
3795
fi
 
3796
    ;;
 
3797
  x86_64 )
 
3798
    { $as_echo "$as_me:$LINENO: checking for 64-bit x86_64" >&5
 
3799
$as_echo_n "checking for 64-bit x86_64... " >&6; }
 
3800
if test "${ffcall_cv_host_x86_64+set}" = set; then
 
3801
  $as_echo_n "(cached) " >&6
 
3802
else
 
3803
  cat >conftest.$ac_ext <<_ACEOF
 
3804
/* confdefs.h.  */
 
3805
_ACEOF
 
3806
cat confdefs.h >>conftest.$ac_ext
 
3807
cat >>conftest.$ac_ext <<_ACEOF
 
3808
/* end confdefs.h.  */
 
3809
#if defined(__LP64__) || defined(__x86_64__) || defined(__amd64__)
 
3810
  yes
 
3811
#endif
 
3812
 
 
3813
_ACEOF
 
3814
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3815
  $EGREP "yes" >/dev/null 2>&1; then
 
3816
  ffcall_cv_host_x86_64=yes
 
3817
else
 
3818
  ffcall_cv_host_x86_64=no
 
3819
fi
 
3820
rm -f conftest*
 
3821
 
 
3822
fi
 
3823
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_x86_64" >&5
 
3824
$as_echo "$ffcall_cv_host_x86_64" >&6; }
 
3825
if test $ffcall_cv_host_x86_64 = yes; then
 
3826
  host_cpu_abi=x86_64
 
3827
else
 
3828
  host_cpu_abi=i386
 
3829
fi
 
3830
    ;;
 
3831
  *)
 
3832
    host_cpu_abi=$host_cpu
 
3833
    ;;
 
3834
esac
 
3835
 
 
3836
cat >> confdefs.h <<EOF
 
3837
#ifndef __${host_cpu_abi}__
 
3838
#define __${host_cpu_abi}__ 1
 
3839
#endif
 
3840
EOF
 
3841
 
 
3842
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3843
$as_echo_n "checking for ANSI C header files... " >&6; }
 
3844
if test "${ac_cv_header_stdc+set}" = set; then
 
3845
  $as_echo_n "(cached) " >&6
 
3846
else
 
3847
  cat >conftest.$ac_ext <<_ACEOF
 
3848
/* confdefs.h.  */
 
3849
_ACEOF
 
3850
cat confdefs.h >>conftest.$ac_ext
 
3851
cat >>conftest.$ac_ext <<_ACEOF
 
3852
/* end confdefs.h.  */
 
3853
#include <stdlib.h>
 
3854
#include <stdarg.h>
 
3855
#include <string.h>
 
3856
#include <float.h>
 
3857
 
 
3858
int
 
3859
main ()
 
3860
{
 
3861
 
 
3862
  ;
 
3863
  return 0;
 
3864
}
 
3865
_ACEOF
 
3866
rm -f conftest.$ac_objext
 
3867
if { (ac_try="$ac_compile"
 
3868
case "(($ac_try" in
 
3869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3870
  *) ac_try_echo=$ac_try;;
 
3871
esac
 
3872
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3873
$as_echo "$ac_try_echo") >&5
 
3874
  (eval "$ac_compile") 2>conftest.er1
 
3875
  ac_status=$?
 
3876
  grep -v '^ *+' conftest.er1 >conftest.err
 
3877
  rm -f conftest.er1
 
3878
  cat conftest.err >&5
 
3879
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3880
  (exit $ac_status); } && {
 
3881
         test -z "$ac_c_werror_flag" ||
 
3882
         test ! -s conftest.err
 
3883
       } && test -s conftest.$ac_objext; then
 
3884
  ac_cv_header_stdc=yes
 
3885
else
 
3886
  $as_echo "$as_me: failed program was:" >&5
 
3887
sed 's/^/| /' conftest.$ac_ext >&5
 
3888
 
 
3889
        ac_cv_header_stdc=no
 
3890
fi
 
3891
 
 
3892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3893
 
 
3894
if test $ac_cv_header_stdc = yes; then
 
3895
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3896
  cat >conftest.$ac_ext <<_ACEOF
 
3897
/* confdefs.h.  */
 
3898
_ACEOF
 
3899
cat confdefs.h >>conftest.$ac_ext
 
3900
cat >>conftest.$ac_ext <<_ACEOF
 
3901
/* end confdefs.h.  */
 
3902
#include <string.h>
 
3903
 
 
3904
_ACEOF
 
3905
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3906
  $EGREP "memchr" >/dev/null 2>&1; then
 
3907
  :
 
3908
else
 
3909
  ac_cv_header_stdc=no
 
3910
fi
 
3911
rm -f conftest*
 
3912
 
 
3913
fi
 
3914
 
 
3915
if test $ac_cv_header_stdc = yes; then
 
3916
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3917
  cat >conftest.$ac_ext <<_ACEOF
 
3918
/* confdefs.h.  */
 
3919
_ACEOF
 
3920
cat confdefs.h >>conftest.$ac_ext
 
3921
cat >>conftest.$ac_ext <<_ACEOF
 
3922
/* end confdefs.h.  */
 
3923
#include <stdlib.h>
 
3924
 
 
3925
_ACEOF
 
3926
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3927
  $EGREP "free" >/dev/null 2>&1; then
 
3928
  :
 
3929
else
 
3930
  ac_cv_header_stdc=no
 
3931
fi
 
3932
rm -f conftest*
 
3933
 
 
3934
fi
 
3935
 
 
3936
if test $ac_cv_header_stdc = yes; then
 
3937
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3938
  if test "$cross_compiling" = yes; then
 
3939
  :
 
3940
else
 
3941
  cat >conftest.$ac_ext <<_ACEOF
 
3942
/* confdefs.h.  */
 
3943
_ACEOF
 
3944
cat confdefs.h >>conftest.$ac_ext
 
3945
cat >>conftest.$ac_ext <<_ACEOF
 
3946
/* end confdefs.h.  */
 
3947
#include <ctype.h>
 
3948
#include <stdlib.h>
 
3949
#if ((' ' & 0x0FF) == 0x020)
 
3950
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3951
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3952
#else
 
3953
# define ISLOWER(c) \
 
3954
                   (('a' <= (c) && (c) <= 'i') \
 
3955
                     || ('j' <= (c) && (c) <= 'r') \
 
3956
                     || ('s' <= (c) && (c) <= 'z'))
 
3957
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3958
#endif
 
3959
 
 
3960
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3961
int
 
3962
main ()
 
3963
{
 
3964
  int i;
 
3965
  for (i = 0; i < 256; i++)
 
3966
    if (XOR (islower (i), ISLOWER (i))
 
3967
        || toupper (i) != TOUPPER (i))
 
3968
      return 2;
 
3969
  return 0;
 
3970
}
 
3971
_ACEOF
 
3972
rm -f conftest$ac_exeext
 
3973
if { (ac_try="$ac_link"
 
3974
case "(($ac_try" in
 
3975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3976
  *) ac_try_echo=$ac_try;;
 
3977
esac
 
3978
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3979
$as_echo "$ac_try_echo") >&5
 
3980
  (eval "$ac_link") 2>&5
 
3981
  ac_status=$?
 
3982
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3983
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3984
  { (case "(($ac_try" in
 
3985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3986
  *) ac_try_echo=$ac_try;;
 
3987
esac
 
3988
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3989
$as_echo "$ac_try_echo") >&5
 
3990
  (eval "$ac_try") 2>&5
 
3991
  ac_status=$?
 
3992
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3993
  (exit $ac_status); }; }; then
 
3994
  :
 
3995
else
 
3996
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
3997
$as_echo "$as_me: failed program was:" >&5
 
3998
sed 's/^/| /' conftest.$ac_ext >&5
 
3999
 
 
4000
( exit $ac_status )
 
4001
ac_cv_header_stdc=no
 
4002
fi
 
4003
rm -rf conftest.dSYM
 
4004
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4005
fi
 
4006
 
 
4007
 
 
4008
fi
 
4009
fi
 
4010
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4011
$as_echo "$ac_cv_header_stdc" >&6; }
 
4012
if test $ac_cv_header_stdc = yes; then
 
4013
 
 
4014
cat >>confdefs.h <<\_ACEOF
 
4015
#define STDC_HEADERS 1
 
4016
_ACEOF
 
4017
 
 
4018
fi
 
4019
 
 
4020
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4021
 
 
4022
 
 
4023
 
 
4024
 
 
4025
 
 
4026
 
 
4027
 
 
4028
 
 
4029
 
 
4030
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4031
                  inttypes.h stdint.h unistd.h
 
4032
do
 
4033
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4034
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4035
$as_echo_n "checking for $ac_header... " >&6; }
 
4036
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4037
  $as_echo_n "(cached) " >&6
 
4038
else
 
4039
  cat >conftest.$ac_ext <<_ACEOF
 
4040
/* confdefs.h.  */
 
4041
_ACEOF
 
4042
cat confdefs.h >>conftest.$ac_ext
 
4043
cat >>conftest.$ac_ext <<_ACEOF
 
4044
/* end confdefs.h.  */
 
4045
$ac_includes_default
 
4046
 
 
4047
#include <$ac_header>
 
4048
_ACEOF
 
4049
rm -f conftest.$ac_objext
 
4050
if { (ac_try="$ac_compile"
 
4051
case "(($ac_try" in
 
4052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4053
  *) ac_try_echo=$ac_try;;
 
4054
esac
 
4055
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4056
$as_echo "$ac_try_echo") >&5
 
4057
  (eval "$ac_compile") 2>conftest.er1
 
4058
  ac_status=$?
 
4059
  grep -v '^ *+' conftest.er1 >conftest.err
 
4060
  rm -f conftest.er1
 
4061
  cat conftest.err >&5
 
4062
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4063
  (exit $ac_status); } && {
 
4064
         test -z "$ac_c_werror_flag" ||
 
4065
         test ! -s conftest.err
 
4066
       } && test -s conftest.$ac_objext; then
 
4067
  eval "$as_ac_Header=yes"
 
4068
else
 
4069
  $as_echo "$as_me: failed program was:" >&5
 
4070
sed 's/^/| /' conftest.$ac_ext >&5
 
4071
 
 
4072
        eval "$as_ac_Header=no"
 
4073
fi
 
4074
 
 
4075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4076
fi
 
4077
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4078
                 $as_echo "$as_val"'`
 
4079
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4080
$as_echo "$ac_res" >&6; }
 
4081
as_val=`eval 'as_val=${'$as_ac_Header'}
 
4082
                 $as_echo "$as_val"'`
 
4083
   if test "x$as_val" = x""yes; then
 
4084
  cat >>confdefs.h <<_ACEOF
 
4085
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4086
_ACEOF
 
4087
 
 
4088
fi
 
4089
 
 
4090
done
 
4091
 
 
4092
 
 
4093
 
 
4094
for ac_header in unistd_h
 
4095
do
 
4096
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4097
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4098
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4099
$as_echo_n "checking for $ac_header... " >&6; }
 
4100
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4101
  $as_echo_n "(cached) " >&6
 
4102
fi
 
4103
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4104
                 $as_echo "$as_val"'`
 
4105
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4106
$as_echo "$ac_res" >&6; }
 
4107
else
 
4108
  # Is the header compilable?
 
4109
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4110
$as_echo_n "checking $ac_header usability... " >&6; }
 
4111
cat >conftest.$ac_ext <<_ACEOF
 
4112
/* confdefs.h.  */
 
4113
_ACEOF
 
4114
cat confdefs.h >>conftest.$ac_ext
 
4115
cat >>conftest.$ac_ext <<_ACEOF
 
4116
/* end confdefs.h.  */
 
4117
$ac_includes_default
 
4118
#include <$ac_header>
 
4119
_ACEOF
 
4120
rm -f conftest.$ac_objext
 
4121
if { (ac_try="$ac_compile"
 
4122
case "(($ac_try" in
 
4123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4124
  *) ac_try_echo=$ac_try;;
 
4125
esac
 
4126
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4127
$as_echo "$ac_try_echo") >&5
 
4128
  (eval "$ac_compile") 2>conftest.er1
 
4129
  ac_status=$?
 
4130
  grep -v '^ *+' conftest.er1 >conftest.err
 
4131
  rm -f conftest.er1
 
4132
  cat conftest.err >&5
 
4133
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4134
  (exit $ac_status); } && {
 
4135
         test -z "$ac_c_werror_flag" ||
 
4136
         test ! -s conftest.err
 
4137
       } && test -s conftest.$ac_objext; then
 
4138
  ac_header_compiler=yes
 
4139
else
 
4140
  $as_echo "$as_me: failed program was:" >&5
 
4141
sed 's/^/| /' conftest.$ac_ext >&5
 
4142
 
 
4143
        ac_header_compiler=no
 
4144
fi
 
4145
 
 
4146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4147
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4148
$as_echo "$ac_header_compiler" >&6; }
 
4149
 
 
4150
# Is the header present?
 
4151
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4152
$as_echo_n "checking $ac_header presence... " >&6; }
 
4153
cat >conftest.$ac_ext <<_ACEOF
 
4154
/* confdefs.h.  */
 
4155
_ACEOF
 
4156
cat confdefs.h >>conftest.$ac_ext
 
4157
cat >>conftest.$ac_ext <<_ACEOF
 
4158
/* end confdefs.h.  */
 
4159
#include <$ac_header>
 
4160
_ACEOF
 
4161
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4162
case "(($ac_try" in
 
4163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4164
  *) ac_try_echo=$ac_try;;
 
4165
esac
 
4166
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4167
$as_echo "$ac_try_echo") >&5
 
4168
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4169
  ac_status=$?
 
4170
  grep -v '^ *+' conftest.er1 >conftest.err
 
4171
  rm -f conftest.er1
 
4172
  cat conftest.err >&5
 
4173
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4174
  (exit $ac_status); } >/dev/null && {
 
4175
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4176
         test ! -s conftest.err
 
4177
       }; then
 
4178
  ac_header_preproc=yes
 
4179
else
 
4180
  $as_echo "$as_me: failed program was:" >&5
 
4181
sed 's/^/| /' conftest.$ac_ext >&5
 
4182
 
 
4183
  ac_header_preproc=no
 
4184
fi
 
4185
 
 
4186
rm -f conftest.err conftest.$ac_ext
 
4187
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4188
$as_echo "$ac_header_preproc" >&6; }
 
4189
 
 
4190
# So?  What about this header?
 
4191
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4192
  yes:no: )
 
4193
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4194
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4195
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4196
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4197
    ac_header_preproc=yes
 
4198
    ;;
 
4199
  no:yes:* )
 
4200
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4201
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4202
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4203
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4204
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4205
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4206
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4207
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4208
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4209
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4210
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4211
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4212
 
 
4213
    ;;
 
4214
esac
 
4215
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4216
$as_echo_n "checking for $ac_header... " >&6; }
 
4217
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4218
  $as_echo_n "(cached) " >&6
 
4219
else
 
4220
  eval "$as_ac_Header=\$ac_header_preproc"
 
4221
fi
 
4222
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4223
                 $as_echo "$as_val"'`
 
4224
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4225
$as_echo "$ac_res" >&6; }
 
4226
 
 
4227
fi
 
4228
as_val=`eval 'as_val=${'$as_ac_Header'}
 
4229
                 $as_echo "$as_val"'`
 
4230
   if test "x$as_val" = x""yes; then
 
4231
  cat >>confdefs.h <<_ACEOF
 
4232
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4233
_ACEOF
 
4234
 
 
4235
fi
 
4236
 
 
4237
done
 
4238
 
 
4239
 
 
4240
  { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
 
4241
$as_echo_n "checking for getpagesize... " >&6; }
 
4242
if test "${cl_cv_func_getpagesize+set}" = set; then
 
4243
  $as_echo_n "(cached) " >&6
 
4244
else
 
4245
  cat >conftest.$ac_ext <<_ACEOF
 
4246
/* confdefs.h.  */
 
4247
_ACEOF
 
4248
cat confdefs.h >>conftest.$ac_ext
 
4249
cat >>conftest.$ac_ext <<_ACEOF
 
4250
/* end confdefs.h.  */
 
4251
 
 
4252
#ifdef HAVE_UNISTD_H
 
4253
#include <sys/types.h>
 
4254
#include <unistd.h>
 
4255
#endif
 
4256
 
 
4257
int
 
4258
main ()
 
4259
{
 
4260
getpagesize();
 
4261
  ;
 
4262
  return 0;
 
4263
}
 
4264
_ACEOF
 
4265
rm -f conftest.$ac_objext conftest$ac_exeext
 
4266
if { (ac_try="$ac_link"
 
4267
case "(($ac_try" in
 
4268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4269
  *) ac_try_echo=$ac_try;;
 
4270
esac
 
4271
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4272
$as_echo "$ac_try_echo") >&5
 
4273
  (eval "$ac_link") 2>conftest.er1
 
4274
  ac_status=$?
 
4275
  grep -v '^ *+' conftest.er1 >conftest.err
 
4276
  rm -f conftest.er1
 
4277
  cat conftest.err >&5
 
4278
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4279
  (exit $ac_status); } && {
 
4280
         test -z "$ac_c_werror_flag" ||
 
4281
         test ! -s conftest.err
 
4282
       } && test -s conftest$ac_exeext && {
 
4283
         test "$cross_compiling" = yes ||
 
4284
         $as_test_x conftest$ac_exeext
 
4285
       }; then
 
4286
  cl_cv_func_getpagesize=yes
 
4287
else
 
4288
  $as_echo "$as_me: failed program was:" >&5
 
4289
sed 's/^/| /' conftest.$ac_ext >&5
 
4290
 
 
4291
        cl_cv_func_getpagesize=no
 
4292
fi
 
4293
 
 
4294
rm -rf conftest.dSYM
 
4295
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4296
      conftest$ac_exeext conftest.$ac_ext
 
4297
fi
 
4298
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_getpagesize" >&5
 
4299
$as_echo "$cl_cv_func_getpagesize" >&6; }
 
4300
  if test $cl_cv_func_getpagesize = yes; then
 
4301
 
 
4302
cat >>confdefs.h <<\_ACEOF
 
4303
#define HAVE_GETPAGESIZE /**/
 
4304
_ACEOF
 
4305
 
 
4306
have_getpagesize=1
 
4307
fi
 
4308
 
 
4309
if test -n "$have_getpagesize"; then
 
4310
{ $as_echo "$as_me:$LINENO: checking for getpagesize declaration" >&5
 
4311
$as_echo_n "checking for getpagesize declaration... " >&6; }
 
4312
if test "${cl_cv_proto_getpagesize+set}" = set; then
 
4313
  $as_echo_n "(cached) " >&6
 
4314
else
 
4315
 
 
4316
cat >conftest.$ac_ext <<_ACEOF
 
4317
/* confdefs.h.  */
 
4318
_ACEOF
 
4319
cat confdefs.h >>conftest.$ac_ext
 
4320
cat >>conftest.$ac_ext <<_ACEOF
 
4321
/* end confdefs.h.  */
 
4322
 
 
4323
#include <stdlib.h>
 
4324
#ifdef HAVE_UNISTD_H
 
4325
#include <unistd.h>
 
4326
#endif
 
4327
 
 
4328
extern
 
4329
#ifdef __cplusplus
 
4330
"C"
 
4331
#endif
 
4332
 
 
4333
int getpagesize();
 
4334
 
 
4335
int
 
4336
main ()
 
4337
{
 
4338
 
 
4339
  ;
 
4340
  return 0;
 
4341
}
 
4342
_ACEOF
 
4343
rm -f conftest.$ac_objext
 
4344
if { (ac_try="$ac_compile"
 
4345
case "(($ac_try" in
 
4346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4347
  *) ac_try_echo=$ac_try;;
 
4348
esac
 
4349
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4350
$as_echo "$ac_try_echo") >&5
 
4351
  (eval "$ac_compile") 2>conftest.er1
 
4352
  ac_status=$?
 
4353
  grep -v '^ *+' conftest.er1 >conftest.err
 
4354
  rm -f conftest.er1
 
4355
  cat conftest.err >&5
 
4356
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4357
  (exit $ac_status); } && {
 
4358
         test -z "$ac_c_werror_flag" ||
 
4359
         test ! -s conftest.err
 
4360
       } && test -s conftest.$ac_objext; then
 
4361
  cl_cv_proto_getpagesize_ret="int"
 
4362
else
 
4363
  $as_echo "$as_me: failed program was:" >&5
 
4364
sed 's/^/| /' conftest.$ac_ext >&5
 
4365
 
 
4366
        cl_cv_proto_getpagesize_ret="size_t"
 
4367
fi
 
4368
 
 
4369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4370
 
 
4371
 
 
4372
cl_cv_proto_getpagesize="extern $cl_cv_proto_getpagesize_ret getpagesize (void);"
 
4373
fi
 
4374
 
 
4375
cl_cv_proto_getpagesize=`echo "$cl_cv_proto_getpagesize" | tr -s ' ' | sed -e 's/( /(/'`
 
4376
{ $as_echo "$as_me:$LINENO: result: ${ac_t:-
 
4377
         }$cl_cv_proto_getpagesize" >&5
 
4378
$as_echo "${ac_t:-
 
4379
         }$cl_cv_proto_getpagesize" >&6; }
 
4380
 
 
4381
 
 
4382
cat >>confdefs.h <<_ACEOF
 
4383
#define RETGETPAGESIZETYPE $cl_cv_proto_getpagesize_ret
 
4384
_ACEOF
 
4385
 
 
4386
else
 
4387
 
 
4388
for ac_header in sys/param.h
 
4389
do
 
4390
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4391
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4392
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4393
$as_echo_n "checking for $ac_header... " >&6; }
 
4394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4395
  $as_echo_n "(cached) " >&6
 
4396
fi
 
4397
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4398
                 $as_echo "$as_val"'`
 
4399
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4400
$as_echo "$ac_res" >&6; }
 
4401
else
 
4402
  # Is the header compilable?
 
4403
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4404
$as_echo_n "checking $ac_header usability... " >&6; }
 
4405
cat >conftest.$ac_ext <<_ACEOF
 
4406
/* confdefs.h.  */
 
4407
_ACEOF
 
4408
cat confdefs.h >>conftest.$ac_ext
 
4409
cat >>conftest.$ac_ext <<_ACEOF
 
4410
/* end confdefs.h.  */
 
4411
$ac_includes_default
 
4412
#include <$ac_header>
 
4413
_ACEOF
 
4414
rm -f conftest.$ac_objext
 
4415
if { (ac_try="$ac_compile"
 
4416
case "(($ac_try" in
 
4417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4418
  *) ac_try_echo=$ac_try;;
 
4419
esac
 
4420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4421
$as_echo "$ac_try_echo") >&5
 
4422
  (eval "$ac_compile") 2>conftest.er1
 
4423
  ac_status=$?
 
4424
  grep -v '^ *+' conftest.er1 >conftest.err
 
4425
  rm -f conftest.er1
 
4426
  cat conftest.err >&5
 
4427
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4428
  (exit $ac_status); } && {
 
4429
         test -z "$ac_c_werror_flag" ||
 
4430
         test ! -s conftest.err
 
4431
       } && test -s conftest.$ac_objext; then
 
4432
  ac_header_compiler=yes
 
4433
else
 
4434
  $as_echo "$as_me: failed program was:" >&5
 
4435
sed 's/^/| /' conftest.$ac_ext >&5
 
4436
 
 
4437
        ac_header_compiler=no
 
4438
fi
 
4439
 
 
4440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4441
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4442
$as_echo "$ac_header_compiler" >&6; }
 
4443
 
 
4444
# Is the header present?
 
4445
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4446
$as_echo_n "checking $ac_header presence... " >&6; }
 
4447
cat >conftest.$ac_ext <<_ACEOF
 
4448
/* confdefs.h.  */
 
4449
_ACEOF
 
4450
cat confdefs.h >>conftest.$ac_ext
 
4451
cat >>conftest.$ac_ext <<_ACEOF
 
4452
/* end confdefs.h.  */
 
4453
#include <$ac_header>
 
4454
_ACEOF
 
4455
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4456
case "(($ac_try" in
 
4457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4458
  *) ac_try_echo=$ac_try;;
 
4459
esac
 
4460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4461
$as_echo "$ac_try_echo") >&5
 
4462
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4463
  ac_status=$?
 
4464
  grep -v '^ *+' conftest.er1 >conftest.err
 
4465
  rm -f conftest.er1
 
4466
  cat conftest.err >&5
 
4467
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4468
  (exit $ac_status); } >/dev/null && {
 
4469
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4470
         test ! -s conftest.err
 
4471
       }; then
 
4472
  ac_header_preproc=yes
 
4473
else
 
4474
  $as_echo "$as_me: failed program was:" >&5
 
4475
sed 's/^/| /' conftest.$ac_ext >&5
 
4476
 
 
4477
  ac_header_preproc=no
 
4478
fi
 
4479
 
 
4480
rm -f conftest.err conftest.$ac_ext
 
4481
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4482
$as_echo "$ac_header_preproc" >&6; }
 
4483
 
 
4484
# So?  What about this header?
 
4485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4486
  yes:no: )
 
4487
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4488
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4489
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4490
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4491
    ac_header_preproc=yes
 
4492
    ;;
 
4493
  no:yes:* )
 
4494
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4495
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4496
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4497
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4498
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4499
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4500
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4501
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4502
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4503
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4504
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4505
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4506
 
 
4507
    ;;
 
4508
esac
 
4509
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4510
$as_echo_n "checking for $ac_header... " >&6; }
 
4511
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4512
  $as_echo_n "(cached) " >&6
 
4513
else
 
4514
  eval "$as_ac_Header=\$ac_header_preproc"
 
4515
fi
 
4516
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4517
                 $as_echo "$as_val"'`
 
4518
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4519
$as_echo "$ac_res" >&6; }
 
4520
 
 
4521
fi
 
4522
as_val=`eval 'as_val=${'$as_ac_Header'}
 
4523
                 $as_echo "$as_val"'`
 
4524
   if test "x$as_val" = x""yes; then
 
4525
  cat >>confdefs.h <<_ACEOF
 
4526
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4527
_ACEOF
 
4528
 
 
4529
fi
 
4530
 
 
4531
done
 
4532
 
 
4533
fi
 
4534
 
 
4535
  { $as_echo "$as_me:$LINENO: checking for vm_allocate" >&5
 
4536
$as_echo_n "checking for vm_allocate... " >&6; }
 
4537
if test "${cl_cv_func_vm+set}" = set; then
 
4538
  $as_echo_n "(cached) " >&6
 
4539
else
 
4540
  cat >conftest.$ac_ext <<_ACEOF
 
4541
/* confdefs.h.  */
 
4542
_ACEOF
 
4543
cat confdefs.h >>conftest.$ac_ext
 
4544
cat >>conftest.$ac_ext <<_ACEOF
 
4545
/* end confdefs.h.  */
 
4546
 
 
4547
int
 
4548
main ()
 
4549
{
 
4550
vm_allocate(); task_self();
 
4551
  ;
 
4552
  return 0;
 
4553
}
 
4554
_ACEOF
 
4555
rm -f conftest.$ac_objext conftest$ac_exeext
 
4556
if { (ac_try="$ac_link"
 
4557
case "(($ac_try" in
 
4558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4559
  *) ac_try_echo=$ac_try;;
 
4560
esac
 
4561
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4562
$as_echo "$ac_try_echo") >&5
 
4563
  (eval "$ac_link") 2>conftest.er1
 
4564
  ac_status=$?
 
4565
  grep -v '^ *+' conftest.er1 >conftest.err
 
4566
  rm -f conftest.er1
 
4567
  cat conftest.err >&5
 
4568
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4569
  (exit $ac_status); } && {
 
4570
         test -z "$ac_c_werror_flag" ||
 
4571
         test ! -s conftest.err
 
4572
       } && test -s conftest$ac_exeext && {
 
4573
         test "$cross_compiling" = yes ||
 
4574
         $as_test_x conftest$ac_exeext
 
4575
       }; then
 
4576
  cl_cv_func_vm=yes
 
4577
else
 
4578
  $as_echo "$as_me: failed program was:" >&5
 
4579
sed 's/^/| /' conftest.$ac_ext >&5
 
4580
 
 
4581
        cl_cv_func_vm=no
 
4582
fi
 
4583
 
 
4584
rm -rf conftest.dSYM
 
4585
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4586
      conftest$ac_exeext conftest.$ac_ext
 
4587
fi
 
4588
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_vm" >&5
 
4589
$as_echo "$cl_cv_func_vm" >&6; }
 
4590
  if test $cl_cv_func_vm = yes; then
 
4591
 
 
4592
cat >>confdefs.h <<\_ACEOF
 
4593
#define HAVE_MACH_VM /**/
 
4594
_ACEOF
 
4595
 
 
4596
fi
 
4597
 
 
4598
 
 
4599
 
 
4600
if test "${ac_cv_header_sys_mman_h+set}" = set; then
 
4601
  { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
 
4602
$as_echo_n "checking for sys/mman.h... " >&6; }
 
4603
if test "${ac_cv_header_sys_mman_h+set}" = set; then
 
4604
  $as_echo_n "(cached) " >&6
 
4605
fi
 
4606
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
 
4607
$as_echo "$ac_cv_header_sys_mman_h" >&6; }
 
4608
else
 
4609
  # Is the header compilable?
 
4610
{ $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
 
4611
$as_echo_n "checking sys/mman.h usability... " >&6; }
 
4612
cat >conftest.$ac_ext <<_ACEOF
 
4613
/* confdefs.h.  */
 
4614
_ACEOF
 
4615
cat confdefs.h >>conftest.$ac_ext
 
4616
cat >>conftest.$ac_ext <<_ACEOF
 
4617
/* end confdefs.h.  */
 
4618
$ac_includes_default
 
4619
#include <sys/mman.h>
 
4620
_ACEOF
 
4621
rm -f conftest.$ac_objext
 
4622
if { (ac_try="$ac_compile"
 
4623
case "(($ac_try" in
 
4624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4625
  *) ac_try_echo=$ac_try;;
 
4626
esac
 
4627
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4628
$as_echo "$ac_try_echo") >&5
 
4629
  (eval "$ac_compile") 2>conftest.er1
 
4630
  ac_status=$?
 
4631
  grep -v '^ *+' conftest.er1 >conftest.err
 
4632
  rm -f conftest.er1
 
4633
  cat conftest.err >&5
 
4634
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4635
  (exit $ac_status); } && {
 
4636
         test -z "$ac_c_werror_flag" ||
 
4637
         test ! -s conftest.err
 
4638
       } && test -s conftest.$ac_objext; then
 
4639
  ac_header_compiler=yes
 
4640
else
 
4641
  $as_echo "$as_me: failed program was:" >&5
 
4642
sed 's/^/| /' conftest.$ac_ext >&5
 
4643
 
 
4644
        ac_header_compiler=no
 
4645
fi
 
4646
 
 
4647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4648
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4649
$as_echo "$ac_header_compiler" >&6; }
 
4650
 
 
4651
# Is the header present?
 
4652
{ $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
 
4653
$as_echo_n "checking sys/mman.h presence... " >&6; }
 
4654
cat >conftest.$ac_ext <<_ACEOF
 
4655
/* confdefs.h.  */
 
4656
_ACEOF
 
4657
cat confdefs.h >>conftest.$ac_ext
 
4658
cat >>conftest.$ac_ext <<_ACEOF
 
4659
/* end confdefs.h.  */
 
4660
#include <sys/mman.h>
 
4661
_ACEOF
 
4662
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4663
case "(($ac_try" in
 
4664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4665
  *) ac_try_echo=$ac_try;;
 
4666
esac
 
4667
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4668
$as_echo "$ac_try_echo") >&5
 
4669
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4670
  ac_status=$?
 
4671
  grep -v '^ *+' conftest.er1 >conftest.err
 
4672
  rm -f conftest.er1
 
4673
  cat conftest.err >&5
 
4674
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4675
  (exit $ac_status); } >/dev/null && {
 
4676
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4677
         test ! -s conftest.err
 
4678
       }; then
 
4679
  ac_header_preproc=yes
 
4680
else
 
4681
  $as_echo "$as_me: failed program was:" >&5
 
4682
sed 's/^/| /' conftest.$ac_ext >&5
 
4683
 
 
4684
  ac_header_preproc=no
 
4685
fi
 
4686
 
 
4687
rm -f conftest.err conftest.$ac_ext
 
4688
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4689
$as_echo "$ac_header_preproc" >&6; }
 
4690
 
 
4691
# So?  What about this header?
 
4692
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4693
  yes:no: )
 
4694
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4695
$as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4696
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
 
4697
$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
 
4698
    ac_header_preproc=yes
 
4699
    ;;
 
4700
  no:yes:* )
 
4701
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
 
4702
$as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
 
4703
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
 
4704
$as_echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
 
4705
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
 
4706
$as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
 
4707
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4708
$as_echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4709
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
 
4710
$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
 
4711
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
 
4712
$as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
 
4713
 
 
4714
    ;;
 
4715
esac
 
4716
{ $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
 
4717
$as_echo_n "checking for sys/mman.h... " >&6; }
 
4718
if test "${ac_cv_header_sys_mman_h+set}" = set; then
 
4719
  $as_echo_n "(cached) " >&6
 
4720
else
 
4721
  ac_cv_header_sys_mman_h=$ac_header_preproc
 
4722
fi
 
4723
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
 
4724
$as_echo "$ac_cv_header_sys_mman_h" >&6; }
 
4725
 
 
4726
fi
 
4727
if test "x$ac_cv_header_sys_mman_h" = x""yes; then
 
4728
  :
 
4729
else
 
4730
  no_mmap=1
 
4731
fi
 
4732
 
 
4733
if test -z "$no_mmap"; then
 
4734
{ $as_echo "$as_me:$LINENO: checking for mmap" >&5
 
4735
$as_echo_n "checking for mmap... " >&6; }
 
4736
if test "${ac_cv_func_mmap+set}" = set; then
 
4737
  $as_echo_n "(cached) " >&6
 
4738
else
 
4739
  cat >conftest.$ac_ext <<_ACEOF
 
4740
/* confdefs.h.  */
 
4741
_ACEOF
 
4742
cat confdefs.h >>conftest.$ac_ext
 
4743
cat >>conftest.$ac_ext <<_ACEOF
 
4744
/* end confdefs.h.  */
 
4745
/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
 
4746
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4747
#define mmap innocuous_mmap
 
4748
 
 
4749
/* System header to define __stub macros and hopefully few prototypes,
 
4750
    which can conflict with char mmap (); below.
 
4751
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4752
    <limits.h> exists even on freestanding compilers.  */
 
4753
 
 
4754
#ifdef __STDC__
 
4755
# include <limits.h>
 
4756
#else
 
4757
# include <assert.h>
 
4758
#endif
 
4759
 
 
4760
#undef mmap
 
4761
 
 
4762
/* Override any GCC internal prototype to avoid an error.
 
4763
   Use char because int might match the return type of a GCC
 
4764
   builtin and then its argument prototype would still apply.  */
 
4765
#ifdef __cplusplus
 
4766
extern "C"
 
4767
#endif
 
4768
char mmap ();
 
4769
/* The GNU C library defines this for functions which it implements
 
4770
    to always fail with ENOSYS.  Some functions are actually named
 
4771
    something starting with __ and the normal name is an alias.  */
 
4772
#if defined __stub_mmap || defined __stub___mmap
 
4773
choke me
 
4774
#endif
 
4775
 
 
4776
int
 
4777
main ()
 
4778
{
 
4779
return mmap ();
 
4780
  ;
 
4781
  return 0;
 
4782
}
 
4783
_ACEOF
 
4784
rm -f conftest.$ac_objext conftest$ac_exeext
 
4785
if { (ac_try="$ac_link"
 
4786
case "(($ac_try" in
 
4787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4788
  *) ac_try_echo=$ac_try;;
 
4789
esac
 
4790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4791
$as_echo "$ac_try_echo") >&5
 
4792
  (eval "$ac_link") 2>conftest.er1
 
4793
  ac_status=$?
 
4794
  grep -v '^ *+' conftest.er1 >conftest.err
 
4795
  rm -f conftest.er1
 
4796
  cat conftest.err >&5
 
4797
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4798
  (exit $ac_status); } && {
 
4799
         test -z "$ac_c_werror_flag" ||
 
4800
         test ! -s conftest.err
 
4801
       } && test -s conftest$ac_exeext && {
 
4802
         test "$cross_compiling" = yes ||
 
4803
         $as_test_x conftest$ac_exeext
 
4804
       }; then
 
4805
  ac_cv_func_mmap=yes
 
4806
else
 
4807
  $as_echo "$as_me: failed program was:" >&5
 
4808
sed 's/^/| /' conftest.$ac_ext >&5
 
4809
 
 
4810
        ac_cv_func_mmap=no
 
4811
fi
 
4812
 
 
4813
rm -rf conftest.dSYM
 
4814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4815
      conftest$ac_exeext conftest.$ac_ext
 
4816
fi
 
4817
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
 
4818
$as_echo "$ac_cv_func_mmap" >&6; }
 
4819
if test "x$ac_cv_func_mmap" = x""yes; then
 
4820
  :
 
4821
else
 
4822
  no_mmap=1
 
4823
fi
 
4824
if test -z "$no_mmap"; then
 
4825
 
 
4826
cat >>confdefs.h <<\_ACEOF
 
4827
#define HAVE_MMAP /**/
 
4828
_ACEOF
 
4829
 
 
4830
{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
 
4831
$as_echo_n "checking for working mmap... " >&6; }
 
4832
if test "${cl_cv_func_mmap_works+set}" = set; then
 
4833
  $as_echo_n "(cached) " >&6
 
4834
else
 
4835
 
 
4836
case "$host" in
 
4837
  i3456786-*-sysv4*)
 
4838
    # UNIX_SYSV_UHC_1
 
4839
    avoid=0x08000000 ;;
 
4840
  mips-sgi-irix* | mips-dec-ultrix*)
 
4841
    # UNIX_IRIX, UNIX_DEC_ULTRIX
 
4842
    avoid=0x10000000 ;;
 
4843
  rs6000-ibm-aix*)
 
4844
    # UNIX_AIX
 
4845
    avoid=0x20000000 ;;
 
4846
  *)
 
4847
    avoid=0 ;;
 
4848
esac
 
4849
mmap_prog_1='
 
4850
#include <stdlib.h>
 
4851
#ifdef HAVE_UNISTD_H
 
4852
#include <unistd.h>
 
4853
#endif
 
4854
#include <fcntl.h>
 
4855
#include <sys/types.h>
 
4856
#include <sys/mman.h>
 
4857
int main () {
 
4858
'
 
4859
mmap_prog_2="#define bits_to_avoid $avoid"'
 
4860
#define my_shift 24
 
4861
#define my_low   1
 
4862
#ifdef FOR_SUN4_29
 
4863
#define my_high  31
 
4864
#define my_size  32768 /* hope that 32768 is a multiple of the page size */
 
4865
/* i*32 KB for i=1..31 gives a total of 15.5 MB, which is close to what we need */
 
4866
#else
 
4867
#define my_high  64
 
4868
#define my_size  8192 /* hope that 8192 is a multiple of the page size */
 
4869
/* i*8 KB for i=1..64 gives a total of 16.25 MB, which is close to what we need */
 
4870
#endif
 
4871
 {long i;
 
4872
#define i_ok(i)  ((i) & (bits_to_avoid >> my_shift) == 0)
 
4873
  for (i=my_low; i<=my_high; i++)
 
4874
    if (i_ok(i))
 
4875
      { caddr_t addr = (caddr_t)(i << my_shift);
 
4876
/* Check for 8 MB, not 16 MB. This is more likely to work on Solaris 2. */
 
4877
#if bits_to_avoid
 
4878
        long size = i*my_size;
 
4879
#else
 
4880
        long size = ((i+1)/2)*my_size;
 
4881
#endif
 
4882
        if (mmap(addr,size,PROT_READ|PROT_WRITE,flags|MAP_FIXED,fd,0) == (void*)-1) exit(1);
 
4883
    }
 
4884
#define x(i)  *(unsigned char *) ((i<<my_shift) + (i*i))
 
4885
#define y(i)  (unsigned char)((3*i-4)*(7*i+3))
 
4886
  for (i=my_low; i<=my_high; i++) if (i_ok(i)) { x(i) = y(i); }
 
4887
  for (i=my_high; i>=my_low; i--) if (i_ok(i)) { if (x(i) != y(i)) exit(1); }
 
4888
  exit(0);
 
4889
}}
 
4890
'
 
4891
if test "$cross_compiling" = yes; then
 
4892
  : # When cross-compiling, don't assume anything.
 
4893
 
 
4894
else
 
4895
  cat >conftest.$ac_ext <<_ACEOF
 
4896
/* confdefs.h.  */
 
4897
_ACEOF
 
4898
cat confdefs.h >>conftest.$ac_ext
 
4899
cat >>conftest.$ac_ext <<_ACEOF
 
4900
/* end confdefs.h.  */
 
4901
 
 
4902
#include <stdlib.h>
 
4903
#if defined __MACH__ && defined __APPLE__
 
4904
/* Avoid a crash on MacOS X.  */
 
4905
#include <mach/mach.h>
 
4906
#include <mach/mach_error.h>
 
4907
#include <mach/thread_status.h>
 
4908
#include <mach/exception.h>
 
4909
#include <mach/task.h>
 
4910
#include <pthread.h>
 
4911
/* The exception port on which our thread listens.  */
 
4912
static mach_port_t our_exception_port;
 
4913
/* The main function of the thread listening for exceptions of type
 
4914
   EXC_BAD_ACCESS.  */
 
4915
static void *
 
4916
mach_exception_thread (void *arg)
 
4917
{
 
4918
  /* Buffer for a message to be received.  */
 
4919
  struct {
 
4920
    mach_msg_header_t head;
 
4921
    mach_msg_body_t msgh_body;
 
4922
    char data[1024];
 
4923
  } msg;
 
4924
  mach_msg_return_t retval;
 
4925
  /* Wait for a message on the exception port.  */
 
4926
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
4927
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
4928
  if (retval != MACH_MSG_SUCCESS)
 
4929
    abort ();
 
4930
  exit (1);
 
4931
}
 
4932
static void
 
4933
nocrash_init (void)
 
4934
{
 
4935
  mach_port_t self = mach_task_self ();
 
4936
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
4937
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
4938
      == KERN_SUCCESS) {
 
4939
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
4940
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
4941
                                MACH_MSG_TYPE_MAKE_SEND)
 
4942
        == KERN_SUCCESS) {
 
4943
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
4944
         for us.  */
 
4945
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
4946
      /* Create the thread listening on the exception port.  */
 
4947
      pthread_attr_t attr;
 
4948
      pthread_t thread;
 
4949
      if (pthread_attr_init (&attr) == 0
 
4950
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
4951
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
4952
        pthread_attr_destroy (&attr);
 
4953
        /* Replace the exception port info for these exceptions with our own.
 
4954
           Note that we replace the exception port for the entire task, not only
 
4955
           for a particular thread.  This has the effect that when our exception
 
4956
           port gets the message, the thread specific exception port has already
 
4957
           been asked, and we don't need to bother about it.
 
4958
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
4959
        task_set_exception_ports (self, mask, our_exception_port,
 
4960
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
4961
      }
 
4962
    }
 
4963
  }
 
4964
}
 
4965
#else
 
4966
/* Avoid a crash on POSIX systems.  */
 
4967
#include <signal.h>
 
4968
/* A POSIX signal handler.  */
 
4969
static void
 
4970
exception_handler (int sig)
 
4971
{
 
4972
  exit (1);
 
4973
}
 
4974
static void
 
4975
nocrash_init (void)
 
4976
{
 
4977
#ifdef SIGSEGV
 
4978
  signal (SIGSEGV, exception_handler);
 
4979
#endif
 
4980
#ifdef SIGBUS
 
4981
  signal (SIGBUS, exception_handler);
 
4982
#endif
 
4983
}
 
4984
#endif
 
4985
$mmap_prog_1
 
4986
  int flags = MAP_ANON | MAP_PRIVATE;
 
4987
  int fd = -1;
 
4988
  nocrash_init();
 
4989
$mmap_prog_2
 
4990
 
 
4991
_ACEOF
 
4992
rm -f conftest$ac_exeext
 
4993
if { (ac_try="$ac_link"
 
4994
case "(($ac_try" in
 
4995
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4996
  *) ac_try_echo=$ac_try;;
 
4997
esac
 
4998
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4999
$as_echo "$ac_try_echo") >&5
 
5000
  (eval "$ac_link") 2>&5
 
5001
  ac_status=$?
 
5002
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5003
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5004
  { (case "(($ac_try" in
 
5005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5006
  *) ac_try_echo=$ac_try;;
 
5007
esac
 
5008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5009
$as_echo "$ac_try_echo") >&5
 
5010
  (eval "$ac_try") 2>&5
 
5011
  ac_status=$?
 
5012
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5013
  (exit $ac_status); }; }; then
 
5014
  have_mmap_anon=1
 
5015
cl_cv_func_mmap_anon=yes
 
5016
else
 
5017
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5018
$as_echo "$as_me: failed program was:" >&5
 
5019
sed 's/^/| /' conftest.$ac_ext >&5
 
5020
 
 
5021
fi
 
5022
rm -rf conftest.dSYM
 
5023
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5024
fi
 
5025
 
 
5026
 
 
5027
if test "$cross_compiling" = yes; then
 
5028
  : # When cross-compiling, don't assume anything.
 
5029
 
 
5030
else
 
5031
  cat >conftest.$ac_ext <<_ACEOF
 
5032
/* confdefs.h.  */
 
5033
_ACEOF
 
5034
cat confdefs.h >>conftest.$ac_ext
 
5035
cat >>conftest.$ac_ext <<_ACEOF
 
5036
/* end confdefs.h.  */
 
5037
 
 
5038
#include <stdlib.h>
 
5039
#if defined __MACH__ && defined __APPLE__
 
5040
/* Avoid a crash on MacOS X.  */
 
5041
#include <mach/mach.h>
 
5042
#include <mach/mach_error.h>
 
5043
#include <mach/thread_status.h>
 
5044
#include <mach/exception.h>
 
5045
#include <mach/task.h>
 
5046
#include <pthread.h>
 
5047
/* The exception port on which our thread listens.  */
 
5048
static mach_port_t our_exception_port;
 
5049
/* The main function of the thread listening for exceptions of type
 
5050
   EXC_BAD_ACCESS.  */
 
5051
static void *
 
5052
mach_exception_thread (void *arg)
 
5053
{
 
5054
  /* Buffer for a message to be received.  */
 
5055
  struct {
 
5056
    mach_msg_header_t head;
 
5057
    mach_msg_body_t msgh_body;
 
5058
    char data[1024];
 
5059
  } msg;
 
5060
  mach_msg_return_t retval;
 
5061
  /* Wait for a message on the exception port.  */
 
5062
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
5063
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
5064
  if (retval != MACH_MSG_SUCCESS)
 
5065
    abort ();
 
5066
  exit (1);
 
5067
}
 
5068
static void
 
5069
nocrash_init (void)
 
5070
{
 
5071
  mach_port_t self = mach_task_self ();
 
5072
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
5073
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
5074
      == KERN_SUCCESS) {
 
5075
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
5076
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
5077
                                MACH_MSG_TYPE_MAKE_SEND)
 
5078
        == KERN_SUCCESS) {
 
5079
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
5080
         for us.  */
 
5081
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
5082
      /* Create the thread listening on the exception port.  */
 
5083
      pthread_attr_t attr;
 
5084
      pthread_t thread;
 
5085
      if (pthread_attr_init (&attr) == 0
 
5086
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
5087
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
5088
        pthread_attr_destroy (&attr);
 
5089
        /* Replace the exception port info for these exceptions with our own.
 
5090
           Note that we replace the exception port for the entire task, not only
 
5091
           for a particular thread.  This has the effect that when our exception
 
5092
           port gets the message, the thread specific exception port has already
 
5093
           been asked, and we don't need to bother about it.
 
5094
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
5095
        task_set_exception_ports (self, mask, our_exception_port,
 
5096
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
5097
      }
 
5098
    }
 
5099
  }
 
5100
}
 
5101
#else
 
5102
/* Avoid a crash on POSIX systems.  */
 
5103
#include <signal.h>
 
5104
/* A POSIX signal handler.  */
 
5105
static void
 
5106
exception_handler (int sig)
 
5107
{
 
5108
  exit (1);
 
5109
}
 
5110
static void
 
5111
nocrash_init (void)
 
5112
{
 
5113
#ifdef SIGSEGV
 
5114
  signal (SIGSEGV, exception_handler);
 
5115
#endif
 
5116
#ifdef SIGBUS
 
5117
  signal (SIGBUS, exception_handler);
 
5118
#endif
 
5119
}
 
5120
#endif
 
5121
$mmap_prog_1
 
5122
  int flags = MAP_ANONYMOUS | MAP_PRIVATE;
 
5123
  int fd = -1;
 
5124
  nocrash_init();
 
5125
$mmap_prog_2
 
5126
 
 
5127
_ACEOF
 
5128
rm -f conftest$ac_exeext
 
5129
if { (ac_try="$ac_link"
 
5130
case "(($ac_try" in
 
5131
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5132
  *) ac_try_echo=$ac_try;;
 
5133
esac
 
5134
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5135
$as_echo "$ac_try_echo") >&5
 
5136
  (eval "$ac_link") 2>&5
 
5137
  ac_status=$?
 
5138
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5139
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5140
  { (case "(($ac_try" in
 
5141
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5142
  *) ac_try_echo=$ac_try;;
 
5143
esac
 
5144
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5145
$as_echo "$ac_try_echo") >&5
 
5146
  (eval "$ac_try") 2>&5
 
5147
  ac_status=$?
 
5148
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5149
  (exit $ac_status); }; }; then
 
5150
  have_mmap_anon=1
 
5151
cl_cv_func_mmap_anonymous=yes
 
5152
else
 
5153
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5154
$as_echo "$as_me: failed program was:" >&5
 
5155
sed 's/^/| /' conftest.$ac_ext >&5
 
5156
 
 
5157
fi
 
5158
rm -rf conftest.dSYM
 
5159
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5160
fi
 
5161
 
 
5162
 
 
5163
if test "$cross_compiling" = yes; then
 
5164
  : # When cross-compiling, don't assume anything.
 
5165
 
 
5166
else
 
5167
  cat >conftest.$ac_ext <<_ACEOF
 
5168
/* confdefs.h.  */
 
5169
_ACEOF
 
5170
cat confdefs.h >>conftest.$ac_ext
 
5171
cat >>conftest.$ac_ext <<_ACEOF
 
5172
/* end confdefs.h.  */
 
5173
 
 
5174
#include <stdlib.h>
 
5175
#if defined __MACH__ && defined __APPLE__
 
5176
/* Avoid a crash on MacOS X.  */
 
5177
#include <mach/mach.h>
 
5178
#include <mach/mach_error.h>
 
5179
#include <mach/thread_status.h>
 
5180
#include <mach/exception.h>
 
5181
#include <mach/task.h>
 
5182
#include <pthread.h>
 
5183
/* The exception port on which our thread listens.  */
 
5184
static mach_port_t our_exception_port;
 
5185
/* The main function of the thread listening for exceptions of type
 
5186
   EXC_BAD_ACCESS.  */
 
5187
static void *
 
5188
mach_exception_thread (void *arg)
 
5189
{
 
5190
  /* Buffer for a message to be received.  */
 
5191
  struct {
 
5192
    mach_msg_header_t head;
 
5193
    mach_msg_body_t msgh_body;
 
5194
    char data[1024];
 
5195
  } msg;
 
5196
  mach_msg_return_t retval;
 
5197
  /* Wait for a message on the exception port.  */
 
5198
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
5199
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
5200
  if (retval != MACH_MSG_SUCCESS)
 
5201
    abort ();
 
5202
  exit (1);
 
5203
}
 
5204
static void
 
5205
nocrash_init (void)
 
5206
{
 
5207
  mach_port_t self = mach_task_self ();
 
5208
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
5209
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
5210
      == KERN_SUCCESS) {
 
5211
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
5212
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
5213
                                MACH_MSG_TYPE_MAKE_SEND)
 
5214
        == KERN_SUCCESS) {
 
5215
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
5216
         for us.  */
 
5217
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
5218
      /* Create the thread listening on the exception port.  */
 
5219
      pthread_attr_t attr;
 
5220
      pthread_t thread;
 
5221
      if (pthread_attr_init (&attr) == 0
 
5222
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
5223
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
5224
        pthread_attr_destroy (&attr);
 
5225
        /* Replace the exception port info for these exceptions with our own.
 
5226
           Note that we replace the exception port for the entire task, not only
 
5227
           for a particular thread.  This has the effect that when our exception
 
5228
           port gets the message, the thread specific exception port has already
 
5229
           been asked, and we don't need to bother about it.
 
5230
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
5231
        task_set_exception_ports (self, mask, our_exception_port,
 
5232
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
5233
      }
 
5234
    }
 
5235
  }
 
5236
}
 
5237
#else
 
5238
/* Avoid a crash on POSIX systems.  */
 
5239
#include <signal.h>
 
5240
/* A POSIX signal handler.  */
 
5241
static void
 
5242
exception_handler (int sig)
 
5243
{
 
5244
  exit (1);
 
5245
}
 
5246
static void
 
5247
nocrash_init (void)
 
5248
{
 
5249
#ifdef SIGSEGV
 
5250
  signal (SIGSEGV, exception_handler);
 
5251
#endif
 
5252
#ifdef SIGBUS
 
5253
  signal (SIGBUS, exception_handler);
 
5254
#endif
 
5255
}
 
5256
#endif
 
5257
$mmap_prog_1
 
5258
#ifndef MAP_FILE
 
5259
#define MAP_FILE 0
 
5260
#endif
 
5261
  int flags = MAP_FILE | MAP_PRIVATE;
 
5262
  int fd = open("/dev/zero",O_RDONLY,0666);
 
5263
  if (fd<0) exit(1);
 
5264
  nocrash_init();
 
5265
$mmap_prog_2
 
5266
 
 
5267
_ACEOF
 
5268
rm -f conftest$ac_exeext
 
5269
if { (ac_try="$ac_link"
 
5270
case "(($ac_try" in
 
5271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5272
  *) ac_try_echo=$ac_try;;
 
5273
esac
 
5274
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5275
$as_echo "$ac_try_echo") >&5
 
5276
  (eval "$ac_link") 2>&5
 
5277
  ac_status=$?
 
5278
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5279
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5280
  { (case "(($ac_try" in
 
5281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5282
  *) ac_try_echo=$ac_try;;
 
5283
esac
 
5284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5285
$as_echo "$ac_try_echo") >&5
 
5286
  (eval "$ac_try") 2>&5
 
5287
  ac_status=$?
 
5288
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5289
  (exit $ac_status); }; }; then
 
5290
  have_mmap_devzero=1
 
5291
cl_cv_func_mmap_devzero=yes
 
5292
else
 
5293
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5294
$as_echo "$as_me: failed program was:" >&5
 
5295
sed 's/^/| /' conftest.$ac_ext >&5
 
5296
 
 
5297
( exit $ac_status )
 
5298
retry_mmap=1
 
5299
fi
 
5300
rm -rf conftest.dSYM
 
5301
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5302
fi
 
5303
 
 
5304
 
 
5305
if test -n "$retry_mmap"; then
 
5306
if test "$cross_compiling" = yes; then
 
5307
  : # When cross-compiling, don't assume anything.
 
5308
 
 
5309
else
 
5310
  cat >conftest.$ac_ext <<_ACEOF
 
5311
/* confdefs.h.  */
 
5312
_ACEOF
 
5313
cat confdefs.h >>conftest.$ac_ext
 
5314
cat >>conftest.$ac_ext <<_ACEOF
 
5315
/* end confdefs.h.  */
 
5316
 
 
5317
#include <stdlib.h>
 
5318
#if defined __MACH__ && defined __APPLE__
 
5319
/* Avoid a crash on MacOS X.  */
 
5320
#include <mach/mach.h>
 
5321
#include <mach/mach_error.h>
 
5322
#include <mach/thread_status.h>
 
5323
#include <mach/exception.h>
 
5324
#include <mach/task.h>
 
5325
#include <pthread.h>
 
5326
/* The exception port on which our thread listens.  */
 
5327
static mach_port_t our_exception_port;
 
5328
/* The main function of the thread listening for exceptions of type
 
5329
   EXC_BAD_ACCESS.  */
 
5330
static void *
 
5331
mach_exception_thread (void *arg)
 
5332
{
 
5333
  /* Buffer for a message to be received.  */
 
5334
  struct {
 
5335
    mach_msg_header_t head;
 
5336
    mach_msg_body_t msgh_body;
 
5337
    char data[1024];
 
5338
  } msg;
 
5339
  mach_msg_return_t retval;
 
5340
  /* Wait for a message on the exception port.  */
 
5341
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
5342
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
5343
  if (retval != MACH_MSG_SUCCESS)
 
5344
    abort ();
 
5345
  exit (1);
 
5346
}
 
5347
static void
 
5348
nocrash_init (void)
 
5349
{
 
5350
  mach_port_t self = mach_task_self ();
 
5351
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
5352
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
5353
      == KERN_SUCCESS) {
 
5354
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
5355
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
5356
                                MACH_MSG_TYPE_MAKE_SEND)
 
5357
        == KERN_SUCCESS) {
 
5358
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
5359
         for us.  */
 
5360
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
5361
      /* Create the thread listening on the exception port.  */
 
5362
      pthread_attr_t attr;
 
5363
      pthread_t thread;
 
5364
      if (pthread_attr_init (&attr) == 0
 
5365
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
5366
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
5367
        pthread_attr_destroy (&attr);
 
5368
        /* Replace the exception port info for these exceptions with our own.
 
5369
           Note that we replace the exception port for the entire task, not only
 
5370
           for a particular thread.  This has the effect that when our exception
 
5371
           port gets the message, the thread specific exception port has already
 
5372
           been asked, and we don't need to bother about it.
 
5373
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
5374
        task_set_exception_ports (self, mask, our_exception_port,
 
5375
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
5376
      }
 
5377
    }
 
5378
  }
 
5379
}
 
5380
#else
 
5381
/* Avoid a crash on POSIX systems.  */
 
5382
#include <signal.h>
 
5383
/* A POSIX signal handler.  */
 
5384
static void
 
5385
exception_handler (int sig)
 
5386
{
 
5387
  exit (1);
 
5388
}
 
5389
static void
 
5390
nocrash_init (void)
 
5391
{
 
5392
#ifdef SIGSEGV
 
5393
  signal (SIGSEGV, exception_handler);
 
5394
#endif
 
5395
#ifdef SIGBUS
 
5396
  signal (SIGBUS, exception_handler);
 
5397
#endif
 
5398
}
 
5399
#endif
 
5400
#define FOR_SUN4_29
 
5401
$mmap_prog_1
 
5402
#ifndef MAP_FILE
 
5403
#define MAP_FILE 0
 
5404
#endif
 
5405
  int flags = MAP_FILE | MAP_PRIVATE;
 
5406
  int fd = open("/dev/zero",O_RDONLY,0666);
 
5407
  if (fd<0) exit(1);
 
5408
  nocrash_init();
 
5409
$mmap_prog_2
 
5410
 
 
5411
_ACEOF
 
5412
rm -f conftest$ac_exeext
 
5413
if { (ac_try="$ac_link"
 
5414
case "(($ac_try" in
 
5415
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5416
  *) ac_try_echo=$ac_try;;
 
5417
esac
 
5418
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5419
$as_echo "$ac_try_echo") >&5
 
5420
  (eval "$ac_link") 2>&5
 
5421
  ac_status=$?
 
5422
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5423
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5424
  { (case "(($ac_try" in
 
5425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5426
  *) ac_try_echo=$ac_try;;
 
5427
esac
 
5428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5429
$as_echo "$ac_try_echo") >&5
 
5430
  (eval "$ac_try") 2>&5
 
5431
  ac_status=$?
 
5432
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5433
  (exit $ac_status); }; }; then
 
5434
  have_mmap_devzero=1
 
5435
cl_cv_func_mmap_devzero_sun4_29=yes
 
5436
else
 
5437
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5438
$as_echo "$as_me: failed program was:" >&5
 
5439
sed 's/^/| /' conftest.$ac_ext >&5
 
5440
 
 
5441
fi
 
5442
rm -rf conftest.dSYM
 
5443
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5444
fi
 
5445
 
 
5446
 
 
5447
fi
 
5448
if test -n "$have_mmap_anon" -o -n "$have_mmap_devzero"; then
 
5449
cl_cv_func_mmap_works=yes
 
5450
else
 
5451
cl_cv_func_mmap_works=no
 
5452
fi
 
5453
 
 
5454
fi
 
5455
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_mmap_works" >&5
 
5456
$as_echo "$cl_cv_func_mmap_works" >&6; }
 
5457
if test "$cl_cv_func_mmap_anon" = yes; then
 
5458
 
 
5459
cat >>confdefs.h <<\_ACEOF
 
5460
#define HAVE_MMAP_ANON /**/
 
5461
_ACEOF
 
5462
 
 
5463
fi
 
5464
if test "$cl_cv_func_mmap_anonymous" = yes; then
 
5465
 
 
5466
cat >>confdefs.h <<\_ACEOF
 
5467
#define HAVE_MMAP_ANONYMOUS /**/
 
5468
_ACEOF
 
5469
 
 
5470
fi
 
5471
if test "$cl_cv_func_mmap_devzero" = yes; then
 
5472
 
 
5473
cat >>confdefs.h <<\_ACEOF
 
5474
#define HAVE_MMAP_DEVZERO /**/
 
5475
_ACEOF
 
5476
 
 
5477
fi
 
5478
if test "$cl_cv_func_mmap_devzero_sun4_29" = yes; then
 
5479
 
 
5480
cat >>confdefs.h <<\_ACEOF
 
5481
#define HAVE_MMAP_DEVZERO_SUN4_29 /**/
 
5482
_ACEOF
 
5483
 
 
5484
fi
 
5485
fi
 
5486
fi
 
5487
 
 
5488
 
 
5489
for ac_func in mprotect
 
5490
do
 
5491
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5492
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5493
$as_echo_n "checking for $ac_func... " >&6; }
 
5494
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
5495
  $as_echo_n "(cached) " >&6
 
5496
else
 
5497
  cat >conftest.$ac_ext <<_ACEOF
 
5498
/* confdefs.h.  */
 
5499
_ACEOF
 
5500
cat confdefs.h >>conftest.$ac_ext
 
5501
cat >>conftest.$ac_ext <<_ACEOF
 
5502
/* end confdefs.h.  */
 
5503
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5504
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5505
#define $ac_func innocuous_$ac_func
 
5506
 
 
5507
/* System header to define __stub macros and hopefully few prototypes,
 
5508
    which can conflict with char $ac_func (); below.
 
5509
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5510
    <limits.h> exists even on freestanding compilers.  */
 
5511
 
 
5512
#ifdef __STDC__
 
5513
# include <limits.h>
 
5514
#else
 
5515
# include <assert.h>
 
5516
#endif
 
5517
 
 
5518
#undef $ac_func
 
5519
 
 
5520
/* Override any GCC internal prototype to avoid an error.
 
5521
   Use char because int might match the return type of a GCC
 
5522
   builtin and then its argument prototype would still apply.  */
 
5523
#ifdef __cplusplus
 
5524
extern "C"
 
5525
#endif
 
5526
char $ac_func ();
 
5527
/* The GNU C library defines this for functions which it implements
 
5528
    to always fail with ENOSYS.  Some functions are actually named
 
5529
    something starting with __ and the normal name is an alias.  */
 
5530
#if defined __stub_$ac_func || defined __stub___$ac_func
 
5531
choke me
 
5532
#endif
 
5533
 
 
5534
int
 
5535
main ()
 
5536
{
 
5537
return $ac_func ();
 
5538
  ;
 
5539
  return 0;
 
5540
}
 
5541
_ACEOF
 
5542
rm -f conftest.$ac_objext conftest$ac_exeext
 
5543
if { (ac_try="$ac_link"
 
5544
case "(($ac_try" in
 
5545
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5546
  *) ac_try_echo=$ac_try;;
 
5547
esac
 
5548
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5549
$as_echo "$ac_try_echo") >&5
 
5550
  (eval "$ac_link") 2>conftest.er1
 
5551
  ac_status=$?
 
5552
  grep -v '^ *+' conftest.er1 >conftest.err
 
5553
  rm -f conftest.er1
 
5554
  cat conftest.err >&5
 
5555
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5556
  (exit $ac_status); } && {
 
5557
         test -z "$ac_c_werror_flag" ||
 
5558
         test ! -s conftest.err
 
5559
       } && test -s conftest$ac_exeext && {
 
5560
         test "$cross_compiling" = yes ||
 
5561
         $as_test_x conftest$ac_exeext
 
5562
       }; then
 
5563
  eval "$as_ac_var=yes"
 
5564
else
 
5565
  $as_echo "$as_me: failed program was:" >&5
 
5566
sed 's/^/| /' conftest.$ac_ext >&5
 
5567
 
 
5568
        eval "$as_ac_var=no"
 
5569
fi
 
5570
 
 
5571
rm -rf conftest.dSYM
 
5572
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5573
      conftest$ac_exeext conftest.$ac_ext
 
5574
fi
 
5575
ac_res=`eval 'as_val=${'$as_ac_var'}
 
5576
                 $as_echo "$as_val"'`
 
5577
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5578
$as_echo "$ac_res" >&6; }
 
5579
as_val=`eval 'as_val=${'$as_ac_var'}
 
5580
                 $as_echo "$as_val"'`
 
5581
   if test "x$as_val" = x""yes; then
 
5582
  cat >>confdefs.h <<_ACEOF
 
5583
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5584
_ACEOF
 
5585
 
 
5586
fi
 
5587
done
 
5588
if test $ac_cv_func_mprotect = yes; then
 
5589
{ $as_echo "$as_me:$LINENO: checking for working mprotect" >&5
 
5590
$as_echo_n "checking for working mprotect... " >&6; }
 
5591
if test "${cl_cv_func_mprotect_works+set}" = set; then
 
5592
  $as_echo_n "(cached) " >&6
 
5593
else
 
5594
 
 
5595
mprotect_prog='
 
5596
#include <sys/types.h>
 
5597
/* declare malloc() */
 
5598
#include <stdlib.h>
 
5599
#ifdef HAVE_UNISTD_H
 
5600
#include <unistd.h>
 
5601
#endif
 
5602
/* declare getpagesize() and mprotect() */
 
5603
#include <sys/mman.h>
 
5604
#ifndef HAVE_GETPAGESIZE
 
5605
#include <sys/param.h>
 
5606
#define getpagesize() PAGESIZE
 
5607
#else
 
5608
extern
 
5609
#ifdef __cplusplus
 
5610
"C"
 
5611
#endif
 
5612
 
 
5613
RETGETPAGESIZETYPE getpagesize (void);
 
5614
#endif
 
5615
char foo;
 
5616
int main () {
 
5617
  unsigned long pagesize = getpagesize();
 
5618
#define page_align(address)  (char*)((unsigned long)(address) & -pagesize)
 
5619
'
 
5620
if test "$cross_compiling" = yes; then
 
5621
  # When cross-compiling, don't assume anything.
 
5622
no_mprotect=1
 
5623
else
 
5624
  cat >conftest.$ac_ext <<_ACEOF
 
5625
/* confdefs.h.  */
 
5626
_ACEOF
 
5627
cat confdefs.h >>conftest.$ac_ext
 
5628
cat >>conftest.$ac_ext <<_ACEOF
 
5629
/* end confdefs.h.  */
 
5630
$mprotect_prog
 
5631
  if ((pagesize-1) & pagesize) exit(1);
 
5632
  exit(0); }
 
5633
_ACEOF
 
5634
rm -f conftest$ac_exeext
 
5635
if { (ac_try="$ac_link"
 
5636
case "(($ac_try" in
 
5637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5638
  *) ac_try_echo=$ac_try;;
 
5639
esac
 
5640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5641
$as_echo "$ac_try_echo") >&5
 
5642
  (eval "$ac_link") 2>&5
 
5643
  ac_status=$?
 
5644
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5645
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5646
  { (case "(($ac_try" in
 
5647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5648
  *) ac_try_echo=$ac_try;;
 
5649
esac
 
5650
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5651
$as_echo "$ac_try_echo") >&5
 
5652
  (eval "$ac_try") 2>&5
 
5653
  ac_status=$?
 
5654
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5655
  (exit $ac_status); }; }; then
 
5656
  :
 
5657
else
 
5658
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5659
$as_echo "$as_me: failed program was:" >&5
 
5660
sed 's/^/| /' conftest.$ac_ext >&5
 
5661
 
 
5662
( exit $ac_status )
 
5663
no_mprotect=1
 
5664
fi
 
5665
rm -rf conftest.dSYM
 
5666
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5667
fi
 
5668
 
 
5669
 
 
5670
mprotect_prog="$mprotect_prog"'
 
5671
  char* area = (char*) malloc(6*pagesize);
 
5672
  char* fault_address = area + pagesize*7/2;
 
5673
'
 
5674
if test -z "$no_mprotect"; then
 
5675
if test "$cross_compiling" = yes; then
 
5676
  : # When cross-compiling, don't assume anything.
 
5677
 
 
5678
else
 
5679
  cat >conftest.$ac_ext <<_ACEOF
 
5680
/* confdefs.h.  */
 
5681
_ACEOF
 
5682
cat confdefs.h >>conftest.$ac_ext
 
5683
cat >>conftest.$ac_ext <<_ACEOF
 
5684
/* end confdefs.h.  */
 
5685
 
 
5686
#include <stdlib.h>
 
5687
#if defined __MACH__ && defined __APPLE__
 
5688
/* Avoid a crash on MacOS X.  */
 
5689
#include <mach/mach.h>
 
5690
#include <mach/mach_error.h>
 
5691
#include <mach/thread_status.h>
 
5692
#include <mach/exception.h>
 
5693
#include <mach/task.h>
 
5694
#include <pthread.h>
 
5695
/* The exception port on which our thread listens.  */
 
5696
static mach_port_t our_exception_port;
 
5697
/* The main function of the thread listening for exceptions of type
 
5698
   EXC_BAD_ACCESS.  */
 
5699
static void *
 
5700
mach_exception_thread (void *arg)
 
5701
{
 
5702
  /* Buffer for a message to be received.  */
 
5703
  struct {
 
5704
    mach_msg_header_t head;
 
5705
    mach_msg_body_t msgh_body;
 
5706
    char data[1024];
 
5707
  } msg;
 
5708
  mach_msg_return_t retval;
 
5709
  /* Wait for a message on the exception port.  */
 
5710
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
5711
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
5712
  if (retval != MACH_MSG_SUCCESS)
 
5713
    abort ();
 
5714
  exit (1);
 
5715
}
 
5716
static void
 
5717
nocrash_init (void)
 
5718
{
 
5719
  mach_port_t self = mach_task_self ();
 
5720
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
5721
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
5722
      == KERN_SUCCESS) {
 
5723
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
5724
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
5725
                                MACH_MSG_TYPE_MAKE_SEND)
 
5726
        == KERN_SUCCESS) {
 
5727
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
5728
         for us.  */
 
5729
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
5730
      /* Create the thread listening on the exception port.  */
 
5731
      pthread_attr_t attr;
 
5732
      pthread_t thread;
 
5733
      if (pthread_attr_init (&attr) == 0
 
5734
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
5735
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
5736
        pthread_attr_destroy (&attr);
 
5737
        /* Replace the exception port info for these exceptions with our own.
 
5738
           Note that we replace the exception port for the entire task, not only
 
5739
           for a particular thread.  This has the effect that when our exception
 
5740
           port gets the message, the thread specific exception port has already
 
5741
           been asked, and we don't need to bother about it.
 
5742
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
5743
        task_set_exception_ports (self, mask, our_exception_port,
 
5744
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
5745
      }
 
5746
    }
 
5747
  }
 
5748
}
 
5749
#else
 
5750
/* Avoid a crash on POSIX systems.  */
 
5751
#include <signal.h>
 
5752
/* A POSIX signal handler.  */
 
5753
static void
 
5754
exception_handler (int sig)
 
5755
{
 
5756
  exit (1);
 
5757
}
 
5758
static void
 
5759
nocrash_init (void)
 
5760
{
 
5761
#ifdef SIGSEGV
 
5762
  signal (SIGSEGV, exception_handler);
 
5763
#endif
 
5764
#ifdef SIGBUS
 
5765
  signal (SIGBUS, exception_handler);
 
5766
#endif
 
5767
}
 
5768
#endif
 
5769
$mprotect_prog
 
5770
  nocrash_init();
 
5771
  if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0);
 
5772
  foo = *fault_address; /* this should cause an exception or signal */
 
5773
  exit(0); }
 
5774
_ACEOF
 
5775
rm -f conftest$ac_exeext
 
5776
if { (ac_try="$ac_link"
 
5777
case "(($ac_try" in
 
5778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5779
  *) ac_try_echo=$ac_try;;
 
5780
esac
 
5781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5782
$as_echo "$ac_try_echo") >&5
 
5783
  (eval "$ac_link") 2>&5
 
5784
  ac_status=$?
 
5785
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5786
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5787
  { (case "(($ac_try" in
 
5788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5789
  *) ac_try_echo=$ac_try;;
 
5790
esac
 
5791
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5792
$as_echo "$ac_try_echo") >&5
 
5793
  (eval "$ac_try") 2>&5
 
5794
  ac_status=$?
 
5795
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5796
  (exit $ac_status); }; }; then
 
5797
  no_mprotect=1
 
5798
else
 
5799
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5800
$as_echo "$as_me: failed program was:" >&5
 
5801
sed 's/^/| /' conftest.$ac_ext >&5
 
5802
 
 
5803
fi
 
5804
rm -rf conftest.dSYM
 
5805
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5806
fi
 
5807
 
 
5808
 
 
5809
fi
 
5810
if test -z "$no_mprotect"; then
 
5811
if test "$cross_compiling" = yes; then
 
5812
  : # When cross-compiling, don't assume anything.
 
5813
 
 
5814
else
 
5815
  cat >conftest.$ac_ext <<_ACEOF
 
5816
/* confdefs.h.  */
 
5817
_ACEOF
 
5818
cat confdefs.h >>conftest.$ac_ext
 
5819
cat >>conftest.$ac_ext <<_ACEOF
 
5820
/* end confdefs.h.  */
 
5821
 
 
5822
#include <stdlib.h>
 
5823
#if defined __MACH__ && defined __APPLE__
 
5824
/* Avoid a crash on MacOS X.  */
 
5825
#include <mach/mach.h>
 
5826
#include <mach/mach_error.h>
 
5827
#include <mach/thread_status.h>
 
5828
#include <mach/exception.h>
 
5829
#include <mach/task.h>
 
5830
#include <pthread.h>
 
5831
/* The exception port on which our thread listens.  */
 
5832
static mach_port_t our_exception_port;
 
5833
/* The main function of the thread listening for exceptions of type
 
5834
   EXC_BAD_ACCESS.  */
 
5835
static void *
 
5836
mach_exception_thread (void *arg)
 
5837
{
 
5838
  /* Buffer for a message to be received.  */
 
5839
  struct {
 
5840
    mach_msg_header_t head;
 
5841
    mach_msg_body_t msgh_body;
 
5842
    char data[1024];
 
5843
  } msg;
 
5844
  mach_msg_return_t retval;
 
5845
  /* Wait for a message on the exception port.  */
 
5846
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
5847
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
5848
  if (retval != MACH_MSG_SUCCESS)
 
5849
    abort ();
 
5850
  exit (1);
 
5851
}
 
5852
static void
 
5853
nocrash_init (void)
 
5854
{
 
5855
  mach_port_t self = mach_task_self ();
 
5856
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
5857
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
5858
      == KERN_SUCCESS) {
 
5859
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
5860
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
5861
                                MACH_MSG_TYPE_MAKE_SEND)
 
5862
        == KERN_SUCCESS) {
 
5863
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
5864
         for us.  */
 
5865
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
5866
      /* Create the thread listening on the exception port.  */
 
5867
      pthread_attr_t attr;
 
5868
      pthread_t thread;
 
5869
      if (pthread_attr_init (&attr) == 0
 
5870
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
5871
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
5872
        pthread_attr_destroy (&attr);
 
5873
        /* Replace the exception port info for these exceptions with our own.
 
5874
           Note that we replace the exception port for the entire task, not only
 
5875
           for a particular thread.  This has the effect that when our exception
 
5876
           port gets the message, the thread specific exception port has already
 
5877
           been asked, and we don't need to bother about it.
 
5878
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
5879
        task_set_exception_ports (self, mask, our_exception_port,
 
5880
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
5881
      }
 
5882
    }
 
5883
  }
 
5884
}
 
5885
#else
 
5886
/* Avoid a crash on POSIX systems.  */
 
5887
#include <signal.h>
 
5888
/* A POSIX signal handler.  */
 
5889
static void
 
5890
exception_handler (int sig)
 
5891
{
 
5892
  exit (1);
 
5893
}
 
5894
static void
 
5895
nocrash_init (void)
 
5896
{
 
5897
#ifdef SIGSEGV
 
5898
  signal (SIGSEGV, exception_handler);
 
5899
#endif
 
5900
#ifdef SIGBUS
 
5901
  signal (SIGBUS, exception_handler);
 
5902
#endif
 
5903
}
 
5904
#endif
 
5905
$mprotect_prog
 
5906
  nocrash_init();
 
5907
  if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0);
 
5908
  *fault_address = 'z'; /* this should cause an exception or signal */
 
5909
  exit(0); }
 
5910
_ACEOF
 
5911
rm -f conftest$ac_exeext
 
5912
if { (ac_try="$ac_link"
 
5913
case "(($ac_try" in
 
5914
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5915
  *) ac_try_echo=$ac_try;;
 
5916
esac
 
5917
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5918
$as_echo "$ac_try_echo") >&5
 
5919
  (eval "$ac_link") 2>&5
 
5920
  ac_status=$?
 
5921
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5922
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5923
  { (case "(($ac_try" in
 
5924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5925
  *) ac_try_echo=$ac_try;;
 
5926
esac
 
5927
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5928
$as_echo "$ac_try_echo") >&5
 
5929
  (eval "$ac_try") 2>&5
 
5930
  ac_status=$?
 
5931
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5932
  (exit $ac_status); }; }; then
 
5933
  no_mprotect=1
 
5934
else
 
5935
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5936
$as_echo "$as_me: failed program was:" >&5
 
5937
sed 's/^/| /' conftest.$ac_ext >&5
 
5938
 
 
5939
fi
 
5940
rm -rf conftest.dSYM
 
5941
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5942
fi
 
5943
 
 
5944
 
 
5945
fi
 
5946
if test -z "$no_mprotect"; then
 
5947
if test "$cross_compiling" = yes; then
 
5948
  : # When cross-compiling, don't assume anything.
 
5949
 
 
5950
else
 
5951
  cat >conftest.$ac_ext <<_ACEOF
 
5952
/* confdefs.h.  */
 
5953
_ACEOF
 
5954
cat confdefs.h >>conftest.$ac_ext
 
5955
cat >>conftest.$ac_ext <<_ACEOF
 
5956
/* end confdefs.h.  */
 
5957
 
 
5958
#include <stdlib.h>
 
5959
#if defined __MACH__ && defined __APPLE__
 
5960
/* Avoid a crash on MacOS X.  */
 
5961
#include <mach/mach.h>
 
5962
#include <mach/mach_error.h>
 
5963
#include <mach/thread_status.h>
 
5964
#include <mach/exception.h>
 
5965
#include <mach/task.h>
 
5966
#include <pthread.h>
 
5967
/* The exception port on which our thread listens.  */
 
5968
static mach_port_t our_exception_port;
 
5969
/* The main function of the thread listening for exceptions of type
 
5970
   EXC_BAD_ACCESS.  */
 
5971
static void *
 
5972
mach_exception_thread (void *arg)
 
5973
{
 
5974
  /* Buffer for a message to be received.  */
 
5975
  struct {
 
5976
    mach_msg_header_t head;
 
5977
    mach_msg_body_t msgh_body;
 
5978
    char data[1024];
 
5979
  } msg;
 
5980
  mach_msg_return_t retval;
 
5981
  /* Wait for a message on the exception port.  */
 
5982
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
5983
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
5984
  if (retval != MACH_MSG_SUCCESS)
 
5985
    abort ();
 
5986
  exit (1);
 
5987
}
 
5988
static void
 
5989
nocrash_init (void)
 
5990
{
 
5991
  mach_port_t self = mach_task_self ();
 
5992
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
5993
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
5994
      == KERN_SUCCESS) {
 
5995
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
5996
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
5997
                                MACH_MSG_TYPE_MAKE_SEND)
 
5998
        == KERN_SUCCESS) {
 
5999
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
6000
         for us.  */
 
6001
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
6002
      /* Create the thread listening on the exception port.  */
 
6003
      pthread_attr_t attr;
 
6004
      pthread_t thread;
 
6005
      if (pthread_attr_init (&attr) == 0
 
6006
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
6007
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
6008
        pthread_attr_destroy (&attr);
 
6009
        /* Replace the exception port info for these exceptions with our own.
 
6010
           Note that we replace the exception port for the entire task, not only
 
6011
           for a particular thread.  This has the effect that when our exception
 
6012
           port gets the message, the thread specific exception port has already
 
6013
           been asked, and we don't need to bother about it.
 
6014
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
6015
        task_set_exception_ports (self, mask, our_exception_port,
 
6016
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
6017
      }
 
6018
    }
 
6019
  }
 
6020
}
 
6021
#else
 
6022
/* Avoid a crash on POSIX systems.  */
 
6023
#include <signal.h>
 
6024
/* A POSIX signal handler.  */
 
6025
static void
 
6026
exception_handler (int sig)
 
6027
{
 
6028
  exit (1);
 
6029
}
 
6030
static void
 
6031
nocrash_init (void)
 
6032
{
 
6033
#ifdef SIGSEGV
 
6034
  signal (SIGSEGV, exception_handler);
 
6035
#endif
 
6036
#ifdef SIGBUS
 
6037
  signal (SIGBUS, exception_handler);
 
6038
#endif
 
6039
}
 
6040
#endif
 
6041
$mprotect_prog
 
6042
  nocrash_init();
 
6043
  if (mprotect(page_align(fault_address),pagesize,PROT_READ) < 0) exit(0);
 
6044
  *fault_address = 'z'; /* this should cause an exception or signal */
 
6045
  exit(0); }
 
6046
_ACEOF
 
6047
rm -f conftest$ac_exeext
 
6048
if { (ac_try="$ac_link"
 
6049
case "(($ac_try" in
 
6050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6051
  *) ac_try_echo=$ac_try;;
 
6052
esac
 
6053
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6054
$as_echo "$ac_try_echo") >&5
 
6055
  (eval "$ac_link") 2>&5
 
6056
  ac_status=$?
 
6057
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6058
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6059
  { (case "(($ac_try" in
 
6060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6061
  *) ac_try_echo=$ac_try;;
 
6062
esac
 
6063
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6064
$as_echo "$ac_try_echo") >&5
 
6065
  (eval "$ac_try") 2>&5
 
6066
  ac_status=$?
 
6067
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6068
  (exit $ac_status); }; }; then
 
6069
  no_mprotect=1
 
6070
else
 
6071
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6072
$as_echo "$as_me: failed program was:" >&5
 
6073
sed 's/^/| /' conftest.$ac_ext >&5
 
6074
 
 
6075
fi
 
6076
rm -rf conftest.dSYM
 
6077
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6078
fi
 
6079
 
 
6080
 
 
6081
fi
 
6082
if test -z "$no_mprotect"; then
 
6083
if test "$cross_compiling" = yes; then
 
6084
  : # When cross-compiling, don't assume anything.
 
6085
 
 
6086
else
 
6087
  cat >conftest.$ac_ext <<_ACEOF
 
6088
/* confdefs.h.  */
 
6089
_ACEOF
 
6090
cat confdefs.h >>conftest.$ac_ext
 
6091
cat >>conftest.$ac_ext <<_ACEOF
 
6092
/* end confdefs.h.  */
 
6093
 
 
6094
#include <stdlib.h>
 
6095
#if defined __MACH__ && defined __APPLE__
 
6096
/* Avoid a crash on MacOS X.  */
 
6097
#include <mach/mach.h>
 
6098
#include <mach/mach_error.h>
 
6099
#include <mach/thread_status.h>
 
6100
#include <mach/exception.h>
 
6101
#include <mach/task.h>
 
6102
#include <pthread.h>
 
6103
/* The exception port on which our thread listens.  */
 
6104
static mach_port_t our_exception_port;
 
6105
/* The main function of the thread listening for exceptions of type
 
6106
   EXC_BAD_ACCESS.  */
 
6107
static void *
 
6108
mach_exception_thread (void *arg)
 
6109
{
 
6110
  /* Buffer for a message to be received.  */
 
6111
  struct {
 
6112
    mach_msg_header_t head;
 
6113
    mach_msg_body_t msgh_body;
 
6114
    char data[1024];
 
6115
  } msg;
 
6116
  mach_msg_return_t retval;
 
6117
  /* Wait for a message on the exception port.  */
 
6118
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
6119
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
6120
  if (retval != MACH_MSG_SUCCESS)
 
6121
    abort ();
 
6122
  exit (1);
 
6123
}
 
6124
static void
 
6125
nocrash_init (void)
 
6126
{
 
6127
  mach_port_t self = mach_task_self ();
 
6128
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
6129
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
6130
      == KERN_SUCCESS) {
 
6131
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
6132
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
6133
                                MACH_MSG_TYPE_MAKE_SEND)
 
6134
        == KERN_SUCCESS) {
 
6135
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
6136
         for us.  */
 
6137
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
6138
      /* Create the thread listening on the exception port.  */
 
6139
      pthread_attr_t attr;
 
6140
      pthread_t thread;
 
6141
      if (pthread_attr_init (&attr) == 0
 
6142
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
6143
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
6144
        pthread_attr_destroy (&attr);
 
6145
        /* Replace the exception port info for these exceptions with our own.
 
6146
           Note that we replace the exception port for the entire task, not only
 
6147
           for a particular thread.  This has the effect that when our exception
 
6148
           port gets the message, the thread specific exception port has already
 
6149
           been asked, and we don't need to bother about it.
 
6150
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
6151
        task_set_exception_ports (self, mask, our_exception_port,
 
6152
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
6153
      }
 
6154
    }
 
6155
  }
 
6156
}
 
6157
#else
 
6158
/* Avoid a crash on POSIX systems.  */
 
6159
#include <signal.h>
 
6160
/* A POSIX signal handler.  */
 
6161
static void
 
6162
exception_handler (int sig)
 
6163
{
 
6164
  exit (1);
 
6165
}
 
6166
static void
 
6167
nocrash_init (void)
 
6168
{
 
6169
#ifdef SIGSEGV
 
6170
  signal (SIGSEGV, exception_handler);
 
6171
#endif
 
6172
#ifdef SIGBUS
 
6173
  signal (SIGBUS, exception_handler);
 
6174
#endif
 
6175
}
 
6176
#endif
 
6177
$mprotect_prog
 
6178
  nocrash_init();
 
6179
  if (mprotect(page_align(fault_address),pagesize,PROT_READ) < 0) exit(1);
 
6180
  if (mprotect(page_align(fault_address),pagesize,PROT_READ|PROT_WRITE) < 0) exit(1);
 
6181
  *fault_address = 'z'; /* this should not cause an exception or signal */
 
6182
  exit(0); }
 
6183
_ACEOF
 
6184
rm -f conftest$ac_exeext
 
6185
if { (ac_try="$ac_link"
 
6186
case "(($ac_try" in
 
6187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6188
  *) ac_try_echo=$ac_try;;
 
6189
esac
 
6190
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6191
$as_echo "$ac_try_echo") >&5
 
6192
  (eval "$ac_link") 2>&5
 
6193
  ac_status=$?
 
6194
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6195
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6196
  { (case "(($ac_try" in
 
6197
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6198
  *) ac_try_echo=$ac_try;;
 
6199
esac
 
6200
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6201
$as_echo "$ac_try_echo") >&5
 
6202
  (eval "$ac_try") 2>&5
 
6203
  ac_status=$?
 
6204
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6205
  (exit $ac_status); }; }; then
 
6206
  :
 
6207
else
 
6208
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6209
$as_echo "$as_me: failed program was:" >&5
 
6210
sed 's/^/| /' conftest.$ac_ext >&5
 
6211
 
 
6212
( exit $ac_status )
 
6213
no_mprotect=1
 
6214
fi
 
6215
rm -rf conftest.dSYM
 
6216
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6217
fi
 
6218
 
 
6219
 
 
6220
fi
 
6221
if test -z "$no_mprotect"; then
 
6222
  cl_cv_func_mprotect_works=yes
 
6223
else
 
6224
  cl_cv_func_mprotect_works=no
 
6225
fi
 
6226
 
 
6227
fi
 
6228
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_mprotect_works" >&5
 
6229
$as_echo "$cl_cv_func_mprotect_works" >&6; }
 
6230
if test $cl_cv_func_mprotect_works = yes; then
 
6231
 
 
6232
cat >>confdefs.h <<\_ACEOF
 
6233
#define HAVE_WORKING_MPROTECT /**/
 
6234
_ACEOF
 
6235
 
 
6236
fi
 
6237
fi
 
6238
 
 
6239
 
 
6240
for ac_header in sys/shm.h
 
6241
do
 
6242
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6243
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6244
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6245
$as_echo_n "checking for $ac_header... " >&6; }
 
6246
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6247
  $as_echo_n "(cached) " >&6
 
6248
fi
 
6249
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6250
                 $as_echo "$as_val"'`
 
6251
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6252
$as_echo "$ac_res" >&6; }
 
6253
else
 
6254
  # Is the header compilable?
 
6255
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6256
$as_echo_n "checking $ac_header usability... " >&6; }
 
6257
cat >conftest.$ac_ext <<_ACEOF
 
6258
/* confdefs.h.  */
 
6259
_ACEOF
 
6260
cat confdefs.h >>conftest.$ac_ext
 
6261
cat >>conftest.$ac_ext <<_ACEOF
 
6262
/* end confdefs.h.  */
 
6263
$ac_includes_default
 
6264
#include <$ac_header>
 
6265
_ACEOF
 
6266
rm -f conftest.$ac_objext
 
6267
if { (ac_try="$ac_compile"
 
6268
case "(($ac_try" in
 
6269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6270
  *) ac_try_echo=$ac_try;;
 
6271
esac
 
6272
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6273
$as_echo "$ac_try_echo") >&5
 
6274
  (eval "$ac_compile") 2>conftest.er1
 
6275
  ac_status=$?
 
6276
  grep -v '^ *+' conftest.er1 >conftest.err
 
6277
  rm -f conftest.er1
 
6278
  cat conftest.err >&5
 
6279
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6280
  (exit $ac_status); } && {
 
6281
         test -z "$ac_c_werror_flag" ||
 
6282
         test ! -s conftest.err
 
6283
       } && test -s conftest.$ac_objext; then
 
6284
  ac_header_compiler=yes
 
6285
else
 
6286
  $as_echo "$as_me: failed program was:" >&5
 
6287
sed 's/^/| /' conftest.$ac_ext >&5
 
6288
 
 
6289
        ac_header_compiler=no
 
6290
fi
 
6291
 
 
6292
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6293
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6294
$as_echo "$ac_header_compiler" >&6; }
 
6295
 
 
6296
# Is the header present?
 
6297
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6298
$as_echo_n "checking $ac_header presence... " >&6; }
 
6299
cat >conftest.$ac_ext <<_ACEOF
 
6300
/* confdefs.h.  */
 
6301
_ACEOF
 
6302
cat confdefs.h >>conftest.$ac_ext
 
6303
cat >>conftest.$ac_ext <<_ACEOF
 
6304
/* end confdefs.h.  */
 
6305
#include <$ac_header>
 
6306
_ACEOF
 
6307
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6308
case "(($ac_try" in
 
6309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6310
  *) ac_try_echo=$ac_try;;
 
6311
esac
 
6312
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6313
$as_echo "$ac_try_echo") >&5
 
6314
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6315
  ac_status=$?
 
6316
  grep -v '^ *+' conftest.er1 >conftest.err
 
6317
  rm -f conftest.er1
 
6318
  cat conftest.err >&5
 
6319
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6320
  (exit $ac_status); } >/dev/null && {
 
6321
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6322
         test ! -s conftest.err
 
6323
       }; then
 
6324
  ac_header_preproc=yes
 
6325
else
 
6326
  $as_echo "$as_me: failed program was:" >&5
 
6327
sed 's/^/| /' conftest.$ac_ext >&5
 
6328
 
 
6329
  ac_header_preproc=no
 
6330
fi
 
6331
 
 
6332
rm -f conftest.err conftest.$ac_ext
 
6333
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6334
$as_echo "$ac_header_preproc" >&6; }
 
6335
 
 
6336
# So?  What about this header?
 
6337
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6338
  yes:no: )
 
6339
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6340
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6341
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6342
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6343
    ac_header_preproc=yes
 
6344
    ;;
 
6345
  no:yes:* )
 
6346
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6347
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6348
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6349
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6350
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6351
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6352
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6353
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6354
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6355
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6356
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6357
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6358
 
 
6359
    ;;
 
6360
esac
 
6361
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6362
$as_echo_n "checking for $ac_header... " >&6; }
 
6363
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6364
  $as_echo_n "(cached) " >&6
 
6365
else
 
6366
  eval "$as_ac_Header=\$ac_header_preproc"
 
6367
fi
 
6368
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6369
                 $as_echo "$as_val"'`
 
6370
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6371
$as_echo "$ac_res" >&6; }
 
6372
 
 
6373
fi
 
6374
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6375
                 $as_echo "$as_val"'`
 
6376
   if test "x$as_val" = x""yes; then
 
6377
  cat >>confdefs.h <<_ACEOF
 
6378
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6379
_ACEOF
 
6380
 
 
6381
fi
 
6382
 
 
6383
done
 
6384
 
 
6385
if test $ac_cv_header_sys_shm_h = yes; then
 
6386
 
 
6387
for ac_header in sys/ipc.h
 
6388
do
 
6389
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6390
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6391
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6392
$as_echo_n "checking for $ac_header... " >&6; }
 
6393
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6394
  $as_echo_n "(cached) " >&6
 
6395
fi
 
6396
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6397
                 $as_echo "$as_val"'`
 
6398
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6399
$as_echo "$ac_res" >&6; }
 
6400
else
 
6401
  # Is the header compilable?
 
6402
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6403
$as_echo_n "checking $ac_header usability... " >&6; }
 
6404
cat >conftest.$ac_ext <<_ACEOF
 
6405
/* confdefs.h.  */
 
6406
_ACEOF
 
6407
cat confdefs.h >>conftest.$ac_ext
 
6408
cat >>conftest.$ac_ext <<_ACEOF
 
6409
/* end confdefs.h.  */
 
6410
$ac_includes_default
 
6411
#include <$ac_header>
 
6412
_ACEOF
 
6413
rm -f conftest.$ac_objext
 
6414
if { (ac_try="$ac_compile"
 
6415
case "(($ac_try" in
 
6416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6417
  *) ac_try_echo=$ac_try;;
 
6418
esac
 
6419
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6420
$as_echo "$ac_try_echo") >&5
 
6421
  (eval "$ac_compile") 2>conftest.er1
 
6422
  ac_status=$?
 
6423
  grep -v '^ *+' conftest.er1 >conftest.err
 
6424
  rm -f conftest.er1
 
6425
  cat conftest.err >&5
 
6426
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6427
  (exit $ac_status); } && {
 
6428
         test -z "$ac_c_werror_flag" ||
 
6429
         test ! -s conftest.err
 
6430
       } && test -s conftest.$ac_objext; then
 
6431
  ac_header_compiler=yes
 
6432
else
 
6433
  $as_echo "$as_me: failed program was:" >&5
 
6434
sed 's/^/| /' conftest.$ac_ext >&5
 
6435
 
 
6436
        ac_header_compiler=no
 
6437
fi
 
6438
 
 
6439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6440
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6441
$as_echo "$ac_header_compiler" >&6; }
 
6442
 
 
6443
# Is the header present?
 
6444
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6445
$as_echo_n "checking $ac_header presence... " >&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 <$ac_header>
 
6453
_ACEOF
 
6454
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6455
case "(($ac_try" in
 
6456
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6457
  *) ac_try_echo=$ac_try;;
 
6458
esac
 
6459
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6460
$as_echo "$ac_try_echo") >&5
 
6461
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6462
  ac_status=$?
 
6463
  grep -v '^ *+' conftest.er1 >conftest.err
 
6464
  rm -f conftest.er1
 
6465
  cat conftest.err >&5
 
6466
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6467
  (exit $ac_status); } >/dev/null && {
 
6468
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6469
         test ! -s conftest.err
 
6470
       }; then
 
6471
  ac_header_preproc=yes
 
6472
else
 
6473
  $as_echo "$as_me: failed program was:" >&5
 
6474
sed 's/^/| /' conftest.$ac_ext >&5
 
6475
 
 
6476
  ac_header_preproc=no
 
6477
fi
 
6478
 
 
6479
rm -f conftest.err conftest.$ac_ext
 
6480
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6481
$as_echo "$ac_header_preproc" >&6; }
 
6482
 
 
6483
# So?  What about this header?
 
6484
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6485
  yes:no: )
 
6486
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6487
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6488
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6489
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6490
    ac_header_preproc=yes
 
6491
    ;;
 
6492
  no:yes:* )
 
6493
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6494
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6495
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6496
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6497
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6498
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6499
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6500
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6501
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6502
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6503
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6504
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6505
 
 
6506
    ;;
 
6507
esac
 
6508
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6509
$as_echo_n "checking for $ac_header... " >&6; }
 
6510
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6511
  $as_echo_n "(cached) " >&6
 
6512
else
 
6513
  eval "$as_ac_Header=\$ac_header_preproc"
 
6514
fi
 
6515
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6516
                 $as_echo "$as_val"'`
 
6517
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6518
$as_echo "$ac_res" >&6; }
 
6519
 
 
6520
fi
 
6521
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6522
                 $as_echo "$as_val"'`
 
6523
   if test "x$as_val" = x""yes; then
 
6524
  cat >>confdefs.h <<_ACEOF
 
6525
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6526
_ACEOF
 
6527
 
 
6528
fi
 
6529
 
 
6530
done
 
6531
 
 
6532
fi
 
6533
 
 
6534
if test "$ac_cv_header_sys_shm_h" = yes -a "$ac_cv_header_sys_ipc_h" = yes; then
 
6535
# This test is from Marcus Daniels
 
6536
{ $as_echo "$as_me:$LINENO: checking for working shared memory" >&5
 
6537
$as_echo_n "checking for working shared memory... " >&6; }
 
6538
if test "${cl_cv_sys_shm_works+set}" = set; then
 
6539
  $as_echo_n "(cached) " >&6
 
6540
else
 
6541
 
 
6542
if test "$cross_compiling" = yes; then
 
6543
  cl_cv_sys_shm_works="guessing no"
 
6544
else
 
6545
  cat >conftest.$ac_ext <<_ACEOF
 
6546
/* confdefs.h.  */
 
6547
_ACEOF
 
6548
cat confdefs.h >>conftest.$ac_ext
 
6549
cat >>conftest.$ac_ext <<_ACEOF
 
6550
/* end confdefs.h.  */
 
6551
#include <sys/types.h>
 
6552
#include <sys/ipc.h>
 
6553
#include <sys/shm.h>
 
6554
/* try attaching a single segment to multiple addresses */
 
6555
#define segsize 0x10000
 
6556
#define attaches 128
 
6557
#define base_addr 0x01000000
 
6558
int main ()
 
6559
{ int shmid, i; char* addr; char* result;
 
6560
  if ((shmid = shmget(IPC_PRIVATE,segsize,0400)) < 0) exit(1);
 
6561
  for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
 
6562
    if ((result = (char*)shmat(shmid,addr,SHM_RDONLY)) == (char*)(-1)) break;
 
6563
  for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
 
6564
    shmdt(addr);
 
6565
  shmctl(shmid,IPC_RMID,0);
 
6566
  exit(result == (char*)(-1));
 
6567
}
 
6568
_ACEOF
 
6569
rm -f conftest$ac_exeext
 
6570
if { (ac_try="$ac_link"
 
6571
case "(($ac_try" in
 
6572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6573
  *) ac_try_echo=$ac_try;;
 
6574
esac
 
6575
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6576
$as_echo "$ac_try_echo") >&5
 
6577
  (eval "$ac_link") 2>&5
 
6578
  ac_status=$?
 
6579
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6580
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6581
  { (case "(($ac_try" in
 
6582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6583
  *) ac_try_echo=$ac_try;;
 
6584
esac
 
6585
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6586
$as_echo "$ac_try_echo") >&5
 
6587
  (eval "$ac_try") 2>&5
 
6588
  ac_status=$?
 
6589
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6590
  (exit $ac_status); }; }; then
 
6591
  cl_cv_sys_shm_works=yes
 
6592
else
 
6593
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6594
$as_echo "$as_me: failed program was:" >&5
 
6595
sed 's/^/| /' conftest.$ac_ext >&5
 
6596
 
 
6597
( exit $ac_status )
 
6598
cl_cv_sys_shm_works=no
 
6599
fi
 
6600
rm -rf conftest.dSYM
 
6601
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6602
fi
 
6603
 
 
6604
 
 
6605
 
 
6606
fi
 
6607
{ $as_echo "$as_me:$LINENO: result: $cl_cv_sys_shm_works" >&5
 
6608
$as_echo "$cl_cv_sys_shm_works" >&6; }
 
6609
fi
 
6610
case "$cl_cv_sys_shm_works" in
 
6611
  *yes) have_shm=1
 
6612
 
 
6613
cat >>confdefs.h <<\_ACEOF
 
6614
#define HAVE_SHM /**/
 
6615
_ACEOF
 
6616
 
 
6617
 
 
6618
for ac_header in sys/sysmacros.h
 
6619
do
 
6620
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6621
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6622
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6623
$as_echo_n "checking for $ac_header... " >&6; }
 
6624
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6625
  $as_echo_n "(cached) " >&6
 
6626
fi
 
6627
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6628
                 $as_echo "$as_val"'`
 
6629
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6630
$as_echo "$ac_res" >&6; }
 
6631
else
 
6632
  # Is the header compilable?
 
6633
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6634
$as_echo_n "checking $ac_header usability... " >&6; }
 
6635
cat >conftest.$ac_ext <<_ACEOF
 
6636
/* confdefs.h.  */
 
6637
_ACEOF
 
6638
cat confdefs.h >>conftest.$ac_ext
 
6639
cat >>conftest.$ac_ext <<_ACEOF
 
6640
/* end confdefs.h.  */
 
6641
$ac_includes_default
 
6642
#include <$ac_header>
 
6643
_ACEOF
 
6644
rm -f conftest.$ac_objext
 
6645
if { (ac_try="$ac_compile"
 
6646
case "(($ac_try" in
 
6647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6648
  *) ac_try_echo=$ac_try;;
 
6649
esac
 
6650
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6651
$as_echo "$ac_try_echo") >&5
 
6652
  (eval "$ac_compile") 2>conftest.er1
 
6653
  ac_status=$?
 
6654
  grep -v '^ *+' conftest.er1 >conftest.err
 
6655
  rm -f conftest.er1
 
6656
  cat conftest.err >&5
 
6657
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6658
  (exit $ac_status); } && {
 
6659
         test -z "$ac_c_werror_flag" ||
 
6660
         test ! -s conftest.err
 
6661
       } && test -s conftest.$ac_objext; then
 
6662
  ac_header_compiler=yes
 
6663
else
 
6664
  $as_echo "$as_me: failed program was:" >&5
 
6665
sed 's/^/| /' conftest.$ac_ext >&5
 
6666
 
 
6667
        ac_header_compiler=no
 
6668
fi
 
6669
 
 
6670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6671
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6672
$as_echo "$ac_header_compiler" >&6; }
 
6673
 
 
6674
# Is the header present?
 
6675
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6676
$as_echo_n "checking $ac_header presence... " >&6; }
 
6677
cat >conftest.$ac_ext <<_ACEOF
 
6678
/* confdefs.h.  */
 
6679
_ACEOF
 
6680
cat confdefs.h >>conftest.$ac_ext
 
6681
cat >>conftest.$ac_ext <<_ACEOF
 
6682
/* end confdefs.h.  */
 
6683
#include <$ac_header>
 
6684
_ACEOF
 
6685
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6686
case "(($ac_try" in
 
6687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6688
  *) ac_try_echo=$ac_try;;
 
6689
esac
 
6690
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6691
$as_echo "$ac_try_echo") >&5
 
6692
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6693
  ac_status=$?
 
6694
  grep -v '^ *+' conftest.er1 >conftest.err
 
6695
  rm -f conftest.er1
 
6696
  cat conftest.err >&5
 
6697
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6698
  (exit $ac_status); } >/dev/null && {
 
6699
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6700
         test ! -s conftest.err
 
6701
       }; then
 
6702
  ac_header_preproc=yes
 
6703
else
 
6704
  $as_echo "$as_me: failed program was:" >&5
 
6705
sed 's/^/| /' conftest.$ac_ext >&5
 
6706
 
 
6707
  ac_header_preproc=no
 
6708
fi
 
6709
 
 
6710
rm -f conftest.err conftest.$ac_ext
 
6711
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6712
$as_echo "$ac_header_preproc" >&6; }
 
6713
 
 
6714
# So?  What about this header?
 
6715
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6716
  yes:no: )
 
6717
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6718
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6719
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6720
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6721
    ac_header_preproc=yes
 
6722
    ;;
 
6723
  no:yes:* )
 
6724
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6725
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6726
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6727
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6728
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6729
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6730
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6731
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6732
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6733
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6734
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6735
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6736
 
 
6737
    ;;
 
6738
esac
 
6739
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6740
$as_echo_n "checking for $ac_header... " >&6; }
 
6741
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6742
  $as_echo_n "(cached) " >&6
 
6743
else
 
6744
  eval "$as_ac_Header=\$ac_header_preproc"
 
6745
fi
 
6746
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6747
                 $as_echo "$as_val"'`
 
6748
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6749
$as_echo "$ac_res" >&6; }
 
6750
 
 
6751
fi
 
6752
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6753
                 $as_echo "$as_val"'`
 
6754
   if test "x$as_val" = x""yes; then
 
6755
  cat >>confdefs.h <<_ACEOF
 
6756
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6757
_ACEOF
 
6758
 
 
6759
fi
 
6760
 
 
6761
done
 
6762
 
 
6763
        ;;
 
6764
  *) ;;
 
6765
esac
 
6766
 
 
6767
{ $as_echo "$as_me:$LINENO: checking whether code in malloc()ed memory is executable" >&5
 
6768
$as_echo_n "checking whether code in malloc()ed memory is executable... " >&6; }
 
6769
if test "${ffcall_cv_codeexec+set}" = set; then
 
6770
  $as_echo_n "(cached) " >&6
 
6771
else
 
6772
  case "$host_os" in
 
6773
  hpux*) ffcall_cv_codeexec="guessing yes" ;;
 
6774
  *)
 
6775
case "$host_cpu_abi"-"$host_os" in
 
6776
  # On host=rs6000-*-aix3.2.5 malloc'ed memory is indeed not executable.
 
6777
  powerpc-aix*) ffcall_cv_codeexec="guessing no" ;;
 
6778
  *)
 
6779
if test "$cross_compiling" = yes; then
 
6780
  ffcall_cv_codeexec="guessing yes"
 
6781
else
 
6782
  cat >conftest.$ac_ext <<_ACEOF
 
6783
/* confdefs.h.  */
 
6784
_ACEOF
 
6785
cat confdefs.h >>conftest.$ac_ext
 
6786
cat >>conftest.$ac_ext <<_ACEOF
 
6787
/* end confdefs.h.  */
 
6788
 
 
6789
#include <stdlib.h>
 
6790
#if defined __MACH__ && defined __APPLE__
 
6791
/* Avoid a crash on MacOS X.  */
 
6792
#include <mach/mach.h>
 
6793
#include <mach/mach_error.h>
 
6794
#include <mach/thread_status.h>
 
6795
#include <mach/exception.h>
 
6796
#include <mach/task.h>
 
6797
#include <pthread.h>
 
6798
/* The exception port on which our thread listens.  */
 
6799
static mach_port_t our_exception_port;
 
6800
/* The main function of the thread listening for exceptions of type
 
6801
   EXC_BAD_ACCESS.  */
 
6802
static void *
 
6803
mach_exception_thread (void *arg)
 
6804
{
 
6805
  /* Buffer for a message to be received.  */
 
6806
  struct {
 
6807
    mach_msg_header_t head;
 
6808
    mach_msg_body_t msgh_body;
 
6809
    char data[1024];
 
6810
  } msg;
 
6811
  mach_msg_return_t retval;
 
6812
  /* Wait for a message on the exception port.  */
 
6813
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
6814
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
6815
  if (retval != MACH_MSG_SUCCESS)
 
6816
    abort ();
 
6817
  exit (1);
 
6818
}
 
6819
static void
 
6820
nocrash_init (void)
 
6821
{
 
6822
  mach_port_t self = mach_task_self ();
 
6823
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
6824
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
6825
      == KERN_SUCCESS) {
 
6826
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
6827
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
6828
                                MACH_MSG_TYPE_MAKE_SEND)
 
6829
        == KERN_SUCCESS) {
 
6830
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
6831
         for us.  */
 
6832
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
6833
      /* Create the thread listening on the exception port.  */
 
6834
      pthread_attr_t attr;
 
6835
      pthread_t thread;
 
6836
      if (pthread_attr_init (&attr) == 0
 
6837
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
6838
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
6839
        pthread_attr_destroy (&attr);
 
6840
        /* Replace the exception port info for these exceptions with our own.
 
6841
           Note that we replace the exception port for the entire task, not only
 
6842
           for a particular thread.  This has the effect that when our exception
 
6843
           port gets the message, the thread specific exception port has already
 
6844
           been asked, and we don't need to bother about it.
 
6845
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
6846
        task_set_exception_ports (self, mask, our_exception_port,
 
6847
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
6848
      }
 
6849
    }
 
6850
  }
 
6851
}
 
6852
#else
 
6853
/* Avoid a crash on POSIX systems.  */
 
6854
#include <signal.h>
 
6855
/* A POSIX signal handler.  */
 
6856
static void
 
6857
exception_handler (int sig)
 
6858
{
 
6859
  exit (1);
 
6860
}
 
6861
static void
 
6862
nocrash_init (void)
 
6863
{
 
6864
#ifdef SIGSEGV
 
6865
  signal (SIGSEGV, exception_handler);
 
6866
#endif
 
6867
#ifdef SIGBUS
 
6868
  signal (SIGBUS, exception_handler);
 
6869
#endif
 
6870
}
 
6871
#endif
 
6872
 
 
6873
#include <sys/types.h>
 
6874
/* declare malloc() */
 
6875
#include <stdlib.h>
 
6876
int fun () { return 31415926; }
 
6877
int main ()
 
6878
{ nocrash_init();
 
6879
 {long size = (char*)&main - (char*)&fun;
 
6880
  char* funcopy = (char*) malloc(size);
 
6881
  int i;
 
6882
  for (i = 0; i < size; i++) { funcopy[i] = ((char*)&fun)[i]; }
 
6883
  return !((*(int(*)())funcopy)() == 31415926);
 
6884
}}
 
6885
_ACEOF
 
6886
rm -f conftest$ac_exeext
 
6887
if { (ac_try="$ac_link"
 
6888
case "(($ac_try" in
 
6889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6890
  *) ac_try_echo=$ac_try;;
 
6891
esac
 
6892
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6893
$as_echo "$ac_try_echo") >&5
 
6894
  (eval "$ac_link") 2>&5
 
6895
  ac_status=$?
 
6896
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6897
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6898
  { (case "(($ac_try" in
 
6899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6900
  *) ac_try_echo=$ac_try;;
 
6901
esac
 
6902
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6903
$as_echo "$ac_try_echo") >&5
 
6904
  (eval "$ac_try") 2>&5
 
6905
  ac_status=$?
 
6906
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6907
  (exit $ac_status); }; }; then
 
6908
  ffcall_cv_codeexec=yes
 
6909
else
 
6910
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6911
$as_echo "$as_me: failed program was:" >&5
 
6912
sed 's/^/| /' conftest.$ac_ext >&5
 
6913
 
 
6914
( exit $ac_status )
 
6915
ffcall_cv_codeexec=no
 
6916
fi
 
6917
rm -rf conftest.dSYM
 
6918
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6919
fi
 
6920
 
 
6921
 
 
6922
  ;;
 
6923
esac
 
6924
  ;;
 
6925
esac
 
6926
 
 
6927
fi
 
6928
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_codeexec" >&5
 
6929
$as_echo "$ffcall_cv_codeexec" >&6; }
 
6930
case "$ffcall_cv_codeexec" in
 
6931
  *yes)
 
6932
cat >>confdefs.h <<\_ACEOF
 
6933
#define CODE_EXECUTABLE /**/
 
6934
_ACEOF
 
6935
 ;;
 
6936
  *no)  ;;
 
6937
esac
 
6938
 
 
6939
 
 
6940
CPU_OBJECTS=''
 
6941
if test ${host_cpu_abi} = hppa -o ${host_cpu_abi} = powerpc64 -o ${host_cpu_abi} = ia64; then
 
6942
  CPU_OBJECTS="$CPU_OBJECTS "'tramp-$(CPU).o'
 
6943
fi
 
6944
if test ${host_cpu_abi} = powerpc; then
 
6945
  case "${host_os}" in
 
6946
    aix*) CPU_OBJECTS="$CPU_OBJECTS "'tramp-$(CPU).o' ;;
 
6947
    *) ;;
 
6948
  esac
 
6949
fi
 
6950
if test ${host_cpu_abi} = sparc -o ${host_cpu_abi} = sparc64 -o ${host_cpu_abi} = alpha -o ${host_cpu_abi} = hppa -o ${host_cpu_abi} = convex -o ${host_cpu_abi} = arm -o ${host_cpu_abi} = armel; then
 
6951
  CPU_OBJECTS="$CPU_OBJECTS "'cache-$(CPU).o'
 
6952
fi
 
6953
if test ${host_cpu_abi} = powerpc; then
 
6954
  case "${host_os}" in
 
6955
    aix*) ;;
 
6956
    *) CPU_OBJECTS="$CPU_OBJECTS "'cache-$(CPU).o' ;;
 
6957
  esac
 
6958
fi
 
6959
 
 
6960
if test ${host_cpu_abi} = mips -o ${host_cpu_abi} = mipsn32 -o ${host_cpu_abi} = mips64; then
 
6961
 
 
6962
for ac_header in sys/cachectl.h
 
6963
do
 
6964
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6965
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6966
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6967
$as_echo_n "checking for $ac_header... " >&6; }
 
6968
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6969
  $as_echo_n "(cached) " >&6
 
6970
fi
 
6971
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6972
                 $as_echo "$as_val"'`
 
6973
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6974
$as_echo "$ac_res" >&6; }
 
6975
else
 
6976
  # Is the header compilable?
 
6977
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6978
$as_echo_n "checking $ac_header usability... " >&6; }
 
6979
cat >conftest.$ac_ext <<_ACEOF
 
6980
/* confdefs.h.  */
 
6981
_ACEOF
 
6982
cat confdefs.h >>conftest.$ac_ext
 
6983
cat >>conftest.$ac_ext <<_ACEOF
 
6984
/* end confdefs.h.  */
 
6985
$ac_includes_default
 
6986
#include <$ac_header>
 
6987
_ACEOF
 
6988
rm -f conftest.$ac_objext
 
6989
if { (ac_try="$ac_compile"
 
6990
case "(($ac_try" in
 
6991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6992
  *) ac_try_echo=$ac_try;;
 
6993
esac
 
6994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6995
$as_echo "$ac_try_echo") >&5
 
6996
  (eval "$ac_compile") 2>conftest.er1
 
6997
  ac_status=$?
 
6998
  grep -v '^ *+' conftest.er1 >conftest.err
 
6999
  rm -f conftest.er1
 
7000
  cat conftest.err >&5
 
7001
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7002
  (exit $ac_status); } && {
 
7003
         test -z "$ac_c_werror_flag" ||
 
7004
         test ! -s conftest.err
 
7005
       } && test -s conftest.$ac_objext; then
 
7006
  ac_header_compiler=yes
 
7007
else
 
7008
  $as_echo "$as_me: failed program was:" >&5
 
7009
sed 's/^/| /' conftest.$ac_ext >&5
 
7010
 
 
7011
        ac_header_compiler=no
 
7012
fi
 
7013
 
 
7014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7015
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7016
$as_echo "$ac_header_compiler" >&6; }
 
7017
 
 
7018
# Is the header present?
 
7019
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7020
$as_echo_n "checking $ac_header presence... " >&6; }
 
7021
cat >conftest.$ac_ext <<_ACEOF
 
7022
/* confdefs.h.  */
 
7023
_ACEOF
 
7024
cat confdefs.h >>conftest.$ac_ext
 
7025
cat >>conftest.$ac_ext <<_ACEOF
 
7026
/* end confdefs.h.  */
 
7027
#include <$ac_header>
 
7028
_ACEOF
 
7029
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7030
case "(($ac_try" in
 
7031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7032
  *) ac_try_echo=$ac_try;;
 
7033
esac
 
7034
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7035
$as_echo "$ac_try_echo") >&5
 
7036
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7037
  ac_status=$?
 
7038
  grep -v '^ *+' conftest.er1 >conftest.err
 
7039
  rm -f conftest.er1
 
7040
  cat conftest.err >&5
 
7041
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7042
  (exit $ac_status); } >/dev/null && {
 
7043
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7044
         test ! -s conftest.err
 
7045
       }; then
 
7046
  ac_header_preproc=yes
 
7047
else
 
7048
  $as_echo "$as_me: failed program was:" >&5
 
7049
sed 's/^/| /' conftest.$ac_ext >&5
 
7050
 
 
7051
  ac_header_preproc=no
 
7052
fi
 
7053
 
 
7054
rm -f conftest.err conftest.$ac_ext
 
7055
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7056
$as_echo "$ac_header_preproc" >&6; }
 
7057
 
 
7058
# So?  What about this header?
 
7059
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7060
  yes:no: )
 
7061
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7062
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7063
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7064
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7065
    ac_header_preproc=yes
 
7066
    ;;
 
7067
  no:yes:* )
 
7068
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7069
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7070
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7071
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7072
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7073
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7074
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7075
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7076
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7077
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7078
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7079
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7080
 
 
7081
    ;;
 
7082
esac
 
7083
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7084
$as_echo_n "checking for $ac_header... " >&6; }
 
7085
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7086
  $as_echo_n "(cached) " >&6
 
7087
else
 
7088
  eval "$as_ac_Header=\$ac_header_preproc"
 
7089
fi
 
7090
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7091
                 $as_echo "$as_val"'`
 
7092
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7093
$as_echo "$ac_res" >&6; }
 
7094
 
 
7095
fi
 
7096
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7097
                 $as_echo "$as_val"'`
 
7098
   if test "x$as_val" = x""yes; then
 
7099
  cat >>confdefs.h <<_ACEOF
 
7100
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7101
_ACEOF
 
7102
 
 
7103
fi
 
7104
 
 
7105
done
 
7106
 
 
7107
fi
 
7108
if test ${host_cpu_abi} = m88k; then
 
7109
 
 
7110
for ac_header in sys/m88kbcs.h
 
7111
do
 
7112
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7113
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7114
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7115
$as_echo_n "checking for $ac_header... " >&6; }
 
7116
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7117
  $as_echo_n "(cached) " >&6
 
7118
fi
 
7119
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7120
                 $as_echo "$as_val"'`
 
7121
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7122
$as_echo "$ac_res" >&6; }
 
7123
else
 
7124
  # Is the header compilable?
 
7125
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7126
$as_echo_n "checking $ac_header usability... " >&6; }
 
7127
cat >conftest.$ac_ext <<_ACEOF
 
7128
/* confdefs.h.  */
 
7129
_ACEOF
 
7130
cat confdefs.h >>conftest.$ac_ext
 
7131
cat >>conftest.$ac_ext <<_ACEOF
 
7132
/* end confdefs.h.  */
 
7133
$ac_includes_default
 
7134
#include <$ac_header>
 
7135
_ACEOF
 
7136
rm -f conftest.$ac_objext
 
7137
if { (ac_try="$ac_compile"
 
7138
case "(($ac_try" in
 
7139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7140
  *) ac_try_echo=$ac_try;;
 
7141
esac
 
7142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7143
$as_echo "$ac_try_echo") >&5
 
7144
  (eval "$ac_compile") 2>conftest.er1
 
7145
  ac_status=$?
 
7146
  grep -v '^ *+' conftest.er1 >conftest.err
 
7147
  rm -f conftest.er1
 
7148
  cat conftest.err >&5
 
7149
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7150
  (exit $ac_status); } && {
 
7151
         test -z "$ac_c_werror_flag" ||
 
7152
         test ! -s conftest.err
 
7153
       } && test -s conftest.$ac_objext; then
 
7154
  ac_header_compiler=yes
 
7155
else
 
7156
  $as_echo "$as_me: failed program was:" >&5
 
7157
sed 's/^/| /' conftest.$ac_ext >&5
 
7158
 
 
7159
        ac_header_compiler=no
 
7160
fi
 
7161
 
 
7162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7163
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7164
$as_echo "$ac_header_compiler" >&6; }
 
7165
 
 
7166
# Is the header present?
 
7167
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7168
$as_echo_n "checking $ac_header presence... " >&6; }
 
7169
cat >conftest.$ac_ext <<_ACEOF
 
7170
/* confdefs.h.  */
 
7171
_ACEOF
 
7172
cat confdefs.h >>conftest.$ac_ext
 
7173
cat >>conftest.$ac_ext <<_ACEOF
 
7174
/* end confdefs.h.  */
 
7175
#include <$ac_header>
 
7176
_ACEOF
 
7177
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7178
case "(($ac_try" in
 
7179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7180
  *) ac_try_echo=$ac_try;;
 
7181
esac
 
7182
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7183
$as_echo "$ac_try_echo") >&5
 
7184
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7185
  ac_status=$?
 
7186
  grep -v '^ *+' conftest.er1 >conftest.err
 
7187
  rm -f conftest.er1
 
7188
  cat conftest.err >&5
 
7189
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7190
  (exit $ac_status); } >/dev/null && {
 
7191
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7192
         test ! -s conftest.err
 
7193
       }; then
 
7194
  ac_header_preproc=yes
 
7195
else
 
7196
  $as_echo "$as_me: failed program was:" >&5
 
7197
sed 's/^/| /' conftest.$ac_ext >&5
 
7198
 
 
7199
  ac_header_preproc=no
 
7200
fi
 
7201
 
 
7202
rm -f conftest.err conftest.$ac_ext
 
7203
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7204
$as_echo "$ac_header_preproc" >&6; }
 
7205
 
 
7206
# So?  What about this header?
 
7207
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7208
  yes:no: )
 
7209
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7210
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7211
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7212
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7213
    ac_header_preproc=yes
 
7214
    ;;
 
7215
  no:yes:* )
 
7216
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7217
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7218
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7219
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7220
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7221
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7222
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7223
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7224
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7225
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7226
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7227
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7228
 
 
7229
    ;;
 
7230
esac
 
7231
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7232
$as_echo_n "checking for $ac_header... " >&6; }
 
7233
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7234
  $as_echo_n "(cached) " >&6
 
7235
else
 
7236
  eval "$as_ac_Header=\$ac_header_preproc"
 
7237
fi
 
7238
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7239
                 $as_echo "$as_val"'`
 
7240
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7241
$as_echo "$ac_res" >&6; }
 
7242
 
 
7243
fi
 
7244
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7245
                 $as_echo "$as_val"'`
 
7246
   if test "x$as_val" = x""yes; then
 
7247
  cat >>confdefs.h <<_ACEOF
 
7248
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7249
_ACEOF
 
7250
 
 
7251
fi
 
7252
 
 
7253
done
 
7254
 
 
7255
fi
 
7256
cat >confcache <<\_ACEOF
 
7257
# This file is a shell script that caches the results of configure
 
7258
# tests run on this system so they can be shared between configure
 
7259
# scripts and configure runs, see configure's option --config-cache.
 
7260
# It is not useful on other systems.  If it contains results you don't
 
7261
# want to keep, you may remove or edit it.
 
7262
#
 
7263
# config.status only pays attention to the cache file if you give it
 
7264
# the --recheck option to rerun configure.
 
7265
#
 
7266
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
7267
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
7268
# following values.
 
7269
 
 
7270
_ACEOF
 
7271
 
 
7272
# The following way of writing the cache mishandles newlines in values,
 
7273
# but we know of no workaround that is simple, portable, and efficient.
 
7274
# So, we kill variables containing newlines.
 
7275
# Ultrix sh set writes to stderr and can't be redirected directly,
 
7276
# and sets the high bit in the cache file unless we assign to the vars.
 
7277
(
 
7278
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
7279
    eval ac_val=\$$ac_var
 
7280
    case $ac_val in #(
 
7281
    *${as_nl}*)
 
7282
      case $ac_var in #(
 
7283
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
7284
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
7285
      esac
 
7286
      case $ac_var in #(
 
7287
      _ | IFS | as_nl) ;; #(
 
7288
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
7289
      *) $as_unset $ac_var ;;
 
7290
      esac ;;
 
7291
    esac
 
7292
  done
 
7293
 
 
7294
  (set) 2>&1 |
 
7295
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
7296
    *${as_nl}ac_space=\ *)
 
7297
      # `set' does not quote correctly, so add quotes (double-quote
 
7298
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
7299
      sed -n \
 
7300
        "s/'/'\\\\''/g;
 
7301
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
7302
      ;; #(
 
7303
    *)
 
7304
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
7305
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
7306
      ;;
 
7307
    esac |
 
7308
    sort
 
7309
) |
 
7310
  sed '
 
7311
     /^ac_cv_env_/b end
 
7312
     t clear
 
7313
     :clear
 
7314
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
7315
     t end
 
7316
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
7317
     :end' >>confcache
 
7318
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
7319
  if test -w "$cache_file"; then
 
7320
    test "x$cache_file" != "x/dev/null" &&
 
7321
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
7322
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
7323
    cat confcache >$cache_file
 
7324
  else
 
7325
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
7326
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
7327
  fi
 
7328
fi
 
7329
rm -f confcache
 
7330
 
 
7331
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
7332
# Let make expand exec_prefix.
 
7333
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
7334
 
 
7335
DEFS=-DHAVE_CONFIG_H
 
7336
 
 
7337
ac_libobjs=
 
7338
ac_ltlibobjs=
 
7339
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
7340
  # 1. Remove the extension, and $U if already installed.
 
7341
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
7342
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
7343
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
7344
  #    will be set to the directory where LIBOBJS objects are built.
 
7345
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
7346
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
7347
done
 
7348
LIBOBJS=$ac_libobjs
 
7349
 
 
7350
LTLIBOBJS=$ac_ltlibobjs
 
7351
 
 
7352
 
 
7353
 
 
7354
: ${CONFIG_STATUS=./config.status}
 
7355
ac_write_fail=0
 
7356
ac_clean_files_save=$ac_clean_files
 
7357
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
7358
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
7359
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
7360
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7361
#! $SHELL
 
7362
# Generated by $as_me.
 
7363
# Run this file to recreate the current configuration.
 
7364
# Compiler output produced by configure, useful for debugging
 
7365
# configure, is in config.log if it exists.
 
7366
 
 
7367
debug=false
 
7368
ac_cs_recheck=false
 
7369
ac_cs_silent=false
 
7370
SHELL=\${CONFIG_SHELL-$SHELL}
 
7371
_ACEOF
 
7372
 
 
7373
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7374
## --------------------- ##
 
7375
## M4sh Initialization.  ##
 
7376
## --------------------- ##
 
7377
 
 
7378
# Be more Bourne compatible
 
7379
DUALCASE=1; export DUALCASE # for MKS sh
 
7380
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
7381
  emulate sh
 
7382
  NULLCMD=:
 
7383
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
7384
  # is contrary to our usage.  Disable this feature.
 
7385
  alias -g '${1+"$@"}'='"$@"'
 
7386
  setopt NO_GLOB_SUBST
 
7387
else
 
7388
  case `(set -o) 2>/dev/null` in
 
7389
  *posix*) set -o posix ;;
 
7390
esac
 
7391
 
 
7392
fi
 
7393
 
 
7394
 
 
7395
 
 
7396
 
 
7397
# PATH needs CR
 
7398
# Avoid depending upon Character Ranges.
 
7399
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
7400
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
7401
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
7402
as_cr_digits='0123456789'
 
7403
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
7404
 
 
7405
as_nl='
 
7406
'
 
7407
export as_nl
 
7408
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
7409
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
7410
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
7411
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
7412
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
7413
  as_echo='printf %s\n'
 
7414
  as_echo_n='printf %s'
 
7415
else
 
7416
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
7417
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
7418
    as_echo_n='/usr/ucb/echo -n'
 
7419
  else
 
7420
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
7421
    as_echo_n_body='eval
 
7422
      arg=$1;
 
7423
      case $arg in
 
7424
      *"$as_nl"*)
 
7425
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
7426
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
7427
      esac;
 
7428
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
7429
    '
 
7430
    export as_echo_n_body
 
7431
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
7432
  fi
 
7433
  export as_echo_body
 
7434
  as_echo='sh -c $as_echo_body as_echo'
 
7435
fi
 
7436
 
 
7437
# The user is always right.
 
7438
if test "${PATH_SEPARATOR+set}" != set; then
 
7439
  PATH_SEPARATOR=:
 
7440
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
7441
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
7442
      PATH_SEPARATOR=';'
 
7443
  }
 
7444
fi
 
7445
 
 
7446
# Support unset when possible.
 
7447
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7448
  as_unset=unset
 
7449
else
 
7450
  as_unset=false
 
7451
fi
 
7452
 
 
7453
 
 
7454
# IFS
 
7455
# We need space, tab and new line, in precisely that order.  Quoting is
 
7456
# there to prevent editors from complaining about space-tab.
 
7457
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
7458
# splitting by setting IFS to empty value.)
 
7459
IFS=" ""        $as_nl"
 
7460
 
 
7461
# Find who we are.  Look in the path if we contain no directory separator.
 
7462
case $0 in
 
7463
  *[\\/]* ) as_myself=$0 ;;
 
7464
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7465
for as_dir in $PATH
 
7466
do
 
7467
  IFS=$as_save_IFS
 
7468
  test -z "$as_dir" && as_dir=.
 
7469
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
7470
done
 
7471
IFS=$as_save_IFS
 
7472
 
 
7473
     ;;
 
7474
esac
 
7475
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
7476
# in which case we are not to be found in the path.
 
7477
if test "x$as_myself" = x; then
 
7478
  as_myself=$0
 
7479
fi
 
7480
if test ! -f "$as_myself"; then
 
7481
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
7482
  { (exit 1); exit 1; }
 
7483
fi
 
7484
 
 
7485
# Work around bugs in pre-3.0 UWIN ksh.
 
7486
for as_var in ENV MAIL MAILPATH
 
7487
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
7488
done
 
7489
PS1='$ '
 
7490
PS2='> '
 
7491
PS4='+ '
 
7492
 
 
7493
# NLS nuisances.
 
7494
LC_ALL=C
 
7495
export LC_ALL
 
7496
LANGUAGE=C
 
7497
export LANGUAGE
 
7498
 
 
7499
# Required to use basename.
 
7500
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
7501
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
7502
  as_expr=expr
 
7503
else
 
7504
  as_expr=false
 
7505
fi
 
7506
 
 
7507
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
7508
  as_basename=basename
 
7509
else
 
7510
  as_basename=false
 
7511
fi
 
7512
 
 
7513
 
 
7514
# Name of the executable.
 
7515
as_me=`$as_basename -- "$0" ||
 
7516
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
7517
         X"$0" : 'X\(//\)$' \| \
 
7518
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
7519
$as_echo X/"$0" |
 
7520
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
7521
            s//\1/
 
7522
            q
 
7523
          }
 
7524
          /^X\/\(\/\/\)$/{
 
7525
            s//\1/
 
7526
            q
 
7527
          }
 
7528
          /^X\/\(\/\).*/{
 
7529
            s//\1/
 
7530
            q
 
7531
          }
 
7532
          s/.*/./; q'`
 
7533
 
 
7534
# CDPATH.
 
7535
$as_unset CDPATH
 
7536
 
 
7537
 
 
7538
 
 
7539
  as_lineno_1=$LINENO
 
7540
  as_lineno_2=$LINENO
 
7541
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
7542
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
7543
 
 
7544
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
7545
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
7546
  # line-number line after each line using $LINENO; the second 'sed'
 
7547
  # does the real work.  The second script uses 'N' to pair each
 
7548
  # line-number line with the line containing $LINENO, and appends
 
7549
  # trailing '-' during substitution so that $LINENO is not a special
 
7550
  # case at line end.
 
7551
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
7552
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
7553
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
7554
  sed -n '
 
7555
    p
 
7556
    /[$]LINENO/=
 
7557
  ' <$as_myself |
 
7558
    sed '
 
7559
      s/[$]LINENO.*/&-/
 
7560
      t lineno
 
7561
      b
 
7562
      :lineno
 
7563
      N
 
7564
      :loop
 
7565
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
7566
      t loop
 
7567
      s/-\n.*//
 
7568
    ' >$as_me.lineno &&
 
7569
  chmod +x "$as_me.lineno" ||
 
7570
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
7571
   { (exit 1); exit 1; }; }
 
7572
 
 
7573
  # Don't try to exec as it changes $[0], causing all sort of problems
 
7574
  # (the dirname of $[0] is not the place where we might find the
 
7575
  # original and so on.  Autoconf is especially sensitive to this).
 
7576
  . "./$as_me.lineno"
 
7577
  # Exit status is that of the last command.
 
7578
  exit
 
7579
}
 
7580
 
 
7581
 
 
7582
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
7583
  as_dirname=dirname
 
7584
else
 
7585
  as_dirname=false
 
7586
fi
 
7587
 
 
7588
ECHO_C= ECHO_N= ECHO_T=
 
7589
case `echo -n x` in
 
7590
-n*)
 
7591
  case `echo 'x\c'` in
 
7592
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
7593
  *)   ECHO_C='\c';;
 
7594
  esac;;
 
7595
*)
 
7596
  ECHO_N='-n';;
 
7597
esac
 
7598
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
7599
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
7600
  as_expr=expr
 
7601
else
 
7602
  as_expr=false
 
7603
fi
 
7604
 
 
7605
rm -f conf$$ conf$$.exe conf$$.file
 
7606
if test -d conf$$.dir; then
 
7607
  rm -f conf$$.dir/conf$$.file
 
7608
else
 
7609
  rm -f conf$$.dir
 
7610
  mkdir conf$$.dir 2>/dev/null
 
7611
fi
 
7612
if (echo >conf$$.file) 2>/dev/null; then
 
7613
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
7614
    as_ln_s='ln -s'
 
7615
    # ... but there are two gotchas:
 
7616
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
7617
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
7618
    # In both cases, we have to default to `cp -p'.
 
7619
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
7620
      as_ln_s='cp -p'
 
7621
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
7622
    as_ln_s=ln
 
7623
  else
 
7624
    as_ln_s='cp -p'
 
7625
  fi
 
7626
else
 
7627
  as_ln_s='cp -p'
 
7628
fi
 
7629
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
7630
rmdir conf$$.dir 2>/dev/null
 
7631
 
 
7632
if mkdir -p . 2>/dev/null; then
 
7633
  as_mkdir_p=:
 
7634
else
 
7635
  test -d ./-p && rmdir ./-p
 
7636
  as_mkdir_p=false
 
7637
fi
 
7638
 
 
7639
if test -x / >/dev/null 2>&1; then
 
7640
  as_test_x='test -x'
 
7641
else
 
7642
  if ls -dL / >/dev/null 2>&1; then
 
7643
    as_ls_L_option=L
 
7644
  else
 
7645
    as_ls_L_option=
 
7646
  fi
 
7647
  as_test_x='
 
7648
    eval sh -c '\''
 
7649
      if test -d "$1"; then
 
7650
        test -d "$1/.";
 
7651
      else
 
7652
        case $1 in
 
7653
        -*)set "./$1";;
 
7654
        esac;
 
7655
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
7656
        ???[sx]*):;;*)false;;esac;fi
 
7657
    '\'' sh
 
7658
  '
 
7659
fi
 
7660
as_executable_p=$as_test_x
 
7661
 
 
7662
# Sed expression to map a string onto a valid CPP name.
 
7663
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
7664
 
 
7665
# Sed expression to map a string onto a valid variable name.
 
7666
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
7667
 
 
7668
 
 
7669
exec 6>&1
 
7670
 
 
7671
# Save the log message, to keep $[0] and so on meaningful, and to
 
7672
# report actual input values of CONFIG_FILES etc. instead of their
 
7673
# values after options handling.
 
7674
ac_log="
 
7675
This file was extended by libffcall/trampoline $as_me 0x010B, which was
 
7676
generated by GNU Autoconf 2.63.  Invocation command line was
 
7677
 
 
7678
  CONFIG_FILES    = $CONFIG_FILES
 
7679
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
7680
  CONFIG_LINKS    = $CONFIG_LINKS
 
7681
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
7682
  $ $0 $@
 
7683
 
 
7684
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
7685
"
 
7686
 
 
7687
_ACEOF
 
7688
 
 
7689
case $ac_config_files in *"
 
7690
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
7691
esac
 
7692
 
 
7693
case $ac_config_headers in *"
 
7694
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
7695
esac
 
7696
 
 
7697
 
 
7698
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7699
# Files that config.status was made for.
 
7700
config_files="$ac_config_files"
 
7701
config_headers="$ac_config_headers"
 
7702
 
 
7703
_ACEOF
 
7704
 
 
7705
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7706
ac_cs_usage="\
 
7707
\`$as_me' instantiates files from templates according to the
 
7708
current configuration.
 
7709
 
 
7710
Usage: $0 [OPTION]... [FILE]...
 
7711
 
 
7712
  -h, --help       print this help, then exit
 
7713
  -V, --version    print version number and configuration settings, then exit
 
7714
  -q, --quiet, --silent
 
7715
                   do not print progress messages
 
7716
  -d, --debug      don't remove temporary files
 
7717
      --recheck    update $as_me by reconfiguring in the same conditions
 
7718
      --file=FILE[:TEMPLATE]
 
7719
                   instantiate the configuration file FILE
 
7720
      --header=FILE[:TEMPLATE]
 
7721
                   instantiate the configuration header FILE
 
7722
 
 
7723
Configuration files:
 
7724
$config_files
 
7725
 
 
7726
Configuration headers:
 
7727
$config_headers
 
7728
 
 
7729
Report bugs to <bug-autoconf@gnu.org>."
 
7730
 
 
7731
_ACEOF
 
7732
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7733
ac_cs_version="\\
 
7734
libffcall/trampoline config.status 0x010B
 
7735
configured by $0, generated by GNU Autoconf 2.63,
 
7736
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
7737
 
 
7738
Copyright (C) 2008 Free Software Foundation, Inc.
 
7739
This config.status script is free software; the Free Software Foundation
 
7740
gives unlimited permission to copy, distribute and modify it."
 
7741
 
 
7742
ac_pwd='$ac_pwd'
 
7743
srcdir='$srcdir'
 
7744
INSTALL='$INSTALL'
 
7745
test -n "\$AWK" || AWK=awk
 
7746
_ACEOF
 
7747
 
 
7748
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7749
# The default lists apply if the user does not specify any file.
 
7750
ac_need_defaults=:
 
7751
while test $# != 0
 
7752
do
 
7753
  case $1 in
 
7754
  --*=*)
 
7755
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
7756
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
7757
    ac_shift=:
 
7758
    ;;
 
7759
  *)
 
7760
    ac_option=$1
 
7761
    ac_optarg=$2
 
7762
    ac_shift=shift
 
7763
    ;;
 
7764
  esac
 
7765
 
 
7766
  case $ac_option in
 
7767
  # Handling of the options.
 
7768
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
7769
    ac_cs_recheck=: ;;
 
7770
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
7771
    $as_echo "$ac_cs_version"; exit ;;
 
7772
  --debug | --debu | --deb | --de | --d | -d )
 
7773
    debug=: ;;
 
7774
  --file | --fil | --fi | --f )
 
7775
    $ac_shift
 
7776
    case $ac_optarg in
 
7777
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
7778
    esac
 
7779
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
7780
    ac_need_defaults=false;;
 
7781
  --header | --heade | --head | --hea )
 
7782
    $ac_shift
 
7783
    case $ac_optarg in
 
7784
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
7785
    esac
 
7786
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
7787
    ac_need_defaults=false;;
 
7788
  --he | --h)
 
7789
    # Conflict between --help and --header
 
7790
    { $as_echo "$as_me: error: ambiguous option: $1
 
7791
Try \`$0 --help' for more information." >&2
 
7792
   { (exit 1); exit 1; }; };;
 
7793
  --help | --hel | -h )
 
7794
    $as_echo "$ac_cs_usage"; exit ;;
 
7795
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
7796
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
7797
    ac_cs_silent=: ;;
 
7798
 
 
7799
  # This is an error.
 
7800
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
7801
Try \`$0 --help' for more information." >&2
 
7802
   { (exit 1); exit 1; }; } ;;
 
7803
 
 
7804
  *) ac_config_targets="$ac_config_targets $1"
 
7805
     ac_need_defaults=false ;;
 
7806
 
 
7807
  esac
 
7808
  shift
 
7809
done
 
7810
 
 
7811
ac_configure_extra_args=
 
7812
 
 
7813
if $ac_cs_silent; then
 
7814
  exec 6>/dev/null
 
7815
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
7816
fi
 
7817
 
 
7818
_ACEOF
 
7819
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7820
if \$ac_cs_recheck; then
 
7821
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
7822
  shift
 
7823
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
7824
  CONFIG_SHELL='$SHELL'
 
7825
  export CONFIG_SHELL
 
7826
  exec "\$@"
 
7827
fi
 
7828
 
 
7829
_ACEOF
 
7830
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7831
exec 5>>config.log
 
7832
{
 
7833
  echo
 
7834
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
7835
## Running $as_me. ##
 
7836
_ASBOX
 
7837
  $as_echo "$ac_log"
 
7838
} >&5
 
7839
 
 
7840
_ACEOF
 
7841
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7842
#
 
7843
# INIT-COMMANDS
 
7844
#
 
7845
LIBFFCALL_VERSION=$PACKAGE_VERSION
 
7846
 
 
7847
_ACEOF
 
7848
 
 
7849
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7850
 
 
7851
# Handling of arguments.
 
7852
for ac_config_target in $ac_config_targets
 
7853
do
 
7854
  case $ac_config_target in
 
7855
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
7856
    "trampoline.h") CONFIG_HEADERS="$CONFIG_HEADERS trampoline.h" ;;
 
7857
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
7858
 
 
7859
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
7860
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
7861
   { (exit 1); exit 1; }; };;
 
7862
  esac
 
7863
done
 
7864
 
 
7865
 
 
7866
# If the user did not use the arguments to specify the items to instantiate,
 
7867
# then the envvar interface is used.  Set only those that are not.
 
7868
# We use the long form for the default assignment because of an extremely
 
7869
# bizarre bug on SunOS 4.1.3.
 
7870
if $ac_need_defaults; then
 
7871
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
7872
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
7873
fi
 
7874
 
 
7875
# Have a temporary directory for convenience.  Make it in the build tree
 
7876
# simply because there is no reason against having it here, and in addition,
 
7877
# creating and moving files from /tmp can sometimes cause problems.
 
7878
# Hook for its removal unless debugging.
 
7879
# Note that there is a small window in which the directory will not be cleaned:
 
7880
# after its creation but before its name has been assigned to `$tmp'.
 
7881
$debug ||
 
7882
{
 
7883
  tmp=
 
7884
  trap 'exit_status=$?
 
7885
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
7886
' 0
 
7887
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
7888
}
 
7889
# Create a (secure) tmp directory for tmp files.
 
7890
 
 
7891
{
 
7892
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
7893
  test -n "$tmp" && test -d "$tmp"
 
7894
}  ||
 
7895
{
 
7896
  tmp=./conf$$-$RANDOM
 
7897
  (umask 077 && mkdir "$tmp")
 
7898
} ||
 
7899
{
 
7900
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
7901
   { (exit 1); exit 1; }
 
7902
}
 
7903
 
 
7904
# Set up the scripts for CONFIG_FILES section.
 
7905
# No need to generate them if there are no CONFIG_FILES.
 
7906
# This happens for instance with `./config.status config.h'.
 
7907
if test -n "$CONFIG_FILES"; then
 
7908
 
 
7909
 
 
7910
ac_cr='
 
 
b"'"
 
7911
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
7912
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
7913
  ac_cs_awk_cr='\\r'
 
7914
else
 
7915
  ac_cs_awk_cr=$ac_cr
 
7916
fi
 
7917
 
 
7918
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
7919
_ACEOF
 
7920
 
 
7921
 
 
7922
{
 
7923
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
7924
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
7925
  echo "_ACEOF"
 
7926
} >conf$$subs.sh ||
 
7927
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
7928
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
7929
   { (exit 1); exit 1; }; }
 
7930
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
7931
ac_delim='%!_!# '
 
7932
for ac_last_try in false false false false false :; do
 
7933
  . ./conf$$subs.sh ||
 
7934
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
7935
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
7936
   { (exit 1); exit 1; }; }
 
7937
 
 
7938
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
7939
  if test $ac_delim_n = $ac_delim_num; then
 
7940
    break
 
7941
  elif $ac_last_try; then
 
7942
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
7943
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
7944
   { (exit 1); exit 1; }; }
 
7945
  else
 
7946
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
7947
  fi
 
7948
done
 
7949
rm -f conf$$subs.sh
 
7950
 
 
7951
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7952
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
7953
_ACEOF
 
7954
sed -n '
 
7955
h
 
7956
s/^/S["/; s/!.*/"]=/
 
7957
p
 
7958
g
 
7959
s/^[^!]*!//
 
7960
:repl
 
7961
t repl
 
7962
s/'"$ac_delim"'$//
 
7963
t delim
 
7964
:nl
 
7965
h
 
7966
s/\(.\{148\}\).*/\1/
 
7967
t more1
 
7968
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
7969
p
 
7970
n
 
7971
b repl
 
7972
:more1
 
7973
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
7974
p
 
7975
g
 
7976
s/.\{148\}//
 
7977
t nl
 
7978
:delim
 
7979
h
 
7980
s/\(.\{148\}\).*/\1/
 
7981
t more2
 
7982
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
7983
p
 
7984
b
 
7985
:more2
 
7986
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
7987
p
 
7988
g
 
7989
s/.\{148\}//
 
7990
t delim
 
7991
' <conf$$subs.awk | sed '
 
7992
/^[^""]/{
 
7993
  N
 
7994
  s/\n//
 
7995
}
 
7996
' >>$CONFIG_STATUS || ac_write_fail=1
 
7997
rm -f conf$$subs.awk
 
7998
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7999
_ACAWK
 
8000
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
8001
  for (key in S) S_is_set[key] = 1
 
8002
  FS = ""
 
8003
 
 
8004
}
 
8005
{
 
8006
  line = $ 0
 
8007
  nfields = split(line, field, "@")
 
8008
  substed = 0
 
8009
  len = length(field[1])
 
8010
  for (i = 2; i < nfields; i++) {
 
8011
    key = field[i]
 
8012
    keylen = length(key)
 
8013
    if (S_is_set[key]) {
 
8014
      value = S[key]
 
8015
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
8016
      len += length(value) + length(field[++i])
 
8017
      substed = 1
 
8018
    } else
 
8019
      len += 1 + keylen
 
8020
  }
 
8021
 
 
8022
  print line
 
8023
}
 
8024
 
 
8025
_ACAWK
 
8026
_ACEOF
 
8027
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8028
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
8029
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
8030
else
 
8031
  cat
 
8032
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
8033
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
8034
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
8035
   { (exit 1); exit 1; }; }
 
8036
_ACEOF
 
8037
 
 
8038
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
8039
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
8040
# trailing colons and then remove the whole line if VPATH becomes empty
 
8041
# (actually we leave an empty line to preserve line numbers).
 
8042
if test "x$srcdir" = x.; then
 
8043
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
8044
s/:*\$(srcdir):*/:/
 
8045
s/:*\${srcdir}:*/:/
 
8046
s/:*@srcdir@:*/:/
 
8047
s/^\([^=]*=[     ]*\):*/\1/
 
8048
s/:*$//
 
8049
s/^[^=]*=[       ]*$//
 
8050
}'
 
8051
fi
 
8052
 
 
8053
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8054
fi # test -n "$CONFIG_FILES"
 
8055
 
 
8056
# Set up the scripts for CONFIG_HEADERS section.
 
8057
# No need to generate them if there are no CONFIG_HEADERS.
 
8058
# This happens for instance with `./config.status Makefile'.
 
8059
if test -n "$CONFIG_HEADERS"; then
 
8060
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
8061
BEGIN {
 
8062
_ACEOF
 
8063
 
 
8064
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
8065
# here-document in config.status, that substitutes the proper values into
 
8066
# config.h.in to produce config.h.
 
8067
 
 
8068
# Create a delimiter string that does not exist in confdefs.h, to ease
 
8069
# handling of long lines.
 
8070
ac_delim='%!_!# '
 
8071
for ac_last_try in false false :; do
 
8072
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
8073
  if test -z "$ac_t"; then
 
8074
    break
 
8075
  elif $ac_last_try; then
 
8076
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
8077
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
8078
   { (exit 1); exit 1; }; }
 
8079
  else
 
8080
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
8081
  fi
 
8082
done
 
8083
 
 
8084
# For the awk script, D is an array of macro values keyed by name,
 
8085
# likewise P contains macro parameters if any.  Preserve backslash
 
8086
# newline sequences.
 
8087
 
 
8088
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
8089
sed -n '
 
8090
s/.\{148\}/&'"$ac_delim"'/g
 
8091
t rset
 
8092
:rset
 
8093
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
8094
t def
 
8095
d
 
8096
:def
 
8097
s/\\$//
 
8098
t bsnl
 
8099
s/["\\]/\\&/g
 
8100
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
8101
D["\1"]=" \3"/p
 
8102
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
8103
d
 
8104
:bsnl
 
8105
s/["\\]/\\&/g
 
8106
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
8107
D["\1"]=" \3\\\\\\n"\\/p
 
8108
t cont
 
8109
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
8110
t cont
 
8111
d
 
8112
:cont
 
8113
n
 
8114
s/.\{148\}/&'"$ac_delim"'/g
 
8115
t clear
 
8116
:clear
 
8117
s/\\$//
 
8118
t bsnlc
 
8119
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
8120
d
 
8121
:bsnlc
 
8122
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
8123
b cont
 
8124
' <confdefs.h | sed '
 
8125
s/'"$ac_delim"'/"\\\
 
8126
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
8127
 
 
8128
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8129
  for (key in D) D_is_set[key] = 1
 
8130
  FS = ""
 
8131
}
 
8132
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
8133
  line = \$ 0
 
8134
  split(line, arg, " ")
 
8135
  if (arg[1] == "#") {
 
8136
    defundef = arg[2]
 
8137
    mac1 = arg[3]
 
8138
  } else {
 
8139
    defundef = substr(arg[1], 2)
 
8140
    mac1 = arg[2]
 
8141
  }
 
8142
  split(mac1, mac2, "(") #)
 
8143
  macro = mac2[1]
 
8144
  prefix = substr(line, 1, index(line, defundef) - 1)
 
8145
  if (D_is_set[macro]) {
 
8146
    # Preserve the white space surrounding the "#".
 
8147
    print prefix "define", macro P[macro] D[macro]
 
8148
    next
 
8149
  } else {
 
8150
    # Replace #undef with comments.  This is necessary, for example,
 
8151
    # in the case of _POSIX_SOURCE, which is predefined and required
 
8152
    # on some systems where configure will not decide to define it.
 
8153
    if (defundef == "undef") {
 
8154
      print "/*", prefix defundef, macro, "*/"
 
8155
      next
 
8156
    }
 
8157
  }
 
8158
}
 
8159
{ print }
 
8160
_ACAWK
 
8161
_ACEOF
 
8162
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8163
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
8164
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
8165
   { (exit 1); exit 1; }; }
 
8166
fi # test -n "$CONFIG_HEADERS"
 
8167
 
 
8168
 
 
8169
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
 
8170
shift
 
8171
for ac_tag
 
8172
do
 
8173
  case $ac_tag in
 
8174
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
8175
  esac
 
8176
  case $ac_mode$ac_tag in
 
8177
  :[FHL]*:*);;
 
8178
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
8179
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
8180
   { (exit 1); exit 1; }; };;
 
8181
  :[FH]-) ac_tag=-:-;;
 
8182
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
8183
  esac
 
8184
  ac_save_IFS=$IFS
 
8185
  IFS=:
 
8186
  set x $ac_tag
 
8187
  IFS=$ac_save_IFS
 
8188
  shift
 
8189
  ac_file=$1
 
8190
  shift
 
8191
 
 
8192
  case $ac_mode in
 
8193
  :L) ac_source=$1;;
 
8194
  :[FH])
 
8195
    ac_file_inputs=
 
8196
    for ac_f
 
8197
    do
 
8198
      case $ac_f in
 
8199
      -) ac_f="$tmp/stdin";;
 
8200
      *) # Look for the file first in the build tree, then in the source tree
 
8201
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
8202
         # because $ac_f cannot contain `:'.
 
8203
         test -f "$ac_f" ||
 
8204
           case $ac_f in
 
8205
           [\\/$]*) false;;
 
8206
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
8207
           esac ||
 
8208
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
8209
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
8210
   { (exit 1); exit 1; }; };;
 
8211
      esac
 
8212
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
8213
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
8214
    done
 
8215
 
 
8216
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
8217
    # use $as_me), people would be surprised to read:
 
8218
    #    /* config.h.  Generated by config.status.  */
 
8219
    configure_input='Generated from '`
 
8220
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
8221
        `' by configure.'
 
8222
    if test x"$ac_file" != x-; then
 
8223
      configure_input="$ac_file.  $configure_input"
 
8224
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
8225
$as_echo "$as_me: creating $ac_file" >&6;}
 
8226
    fi
 
8227
    # Neutralize special characters interpreted by sed in replacement strings.
 
8228
    case $configure_input in #(
 
8229
    *\&* | *\|* | *\\* )
 
8230
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
8231
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
8232
    *) ac_sed_conf_input=$configure_input;;
 
8233
    esac
 
8234
 
 
8235
    case $ac_tag in
 
8236
    *:-:* | *:-) cat >"$tmp/stdin" \
 
8237
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
8238
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
8239
   { (exit 1); exit 1; }; } ;;
 
8240
    esac
 
8241
    ;;
 
8242
  esac
 
8243
 
 
8244
  ac_dir=`$as_dirname -- "$ac_file" ||
 
8245
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8246
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
8247
         X"$ac_file" : 'X\(//\)$' \| \
 
8248
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
8249
$as_echo X"$ac_file" |
 
8250
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8251
            s//\1/
 
8252
            q
 
8253
          }
 
8254
          /^X\(\/\/\)[^/].*/{
 
8255
            s//\1/
 
8256
            q
 
8257
          }
 
8258
          /^X\(\/\/\)$/{
 
8259
            s//\1/
 
8260
            q
 
8261
          }
 
8262
          /^X\(\/\).*/{
 
8263
            s//\1/
 
8264
            q
 
8265
          }
 
8266
          s/.*/./; q'`
 
8267
  { as_dir="$ac_dir"
 
8268
  case $as_dir in #(
 
8269
  -*) as_dir=./$as_dir;;
 
8270
  esac
 
8271
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
8272
    as_dirs=
 
8273
    while :; do
 
8274
      case $as_dir in #(
 
8275
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
8276
      *) as_qdir=$as_dir;;
 
8277
      esac
 
8278
      as_dirs="'$as_qdir' $as_dirs"
 
8279
      as_dir=`$as_dirname -- "$as_dir" ||
 
8280
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8281
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
8282
         X"$as_dir" : 'X\(//\)$' \| \
 
8283
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
8284
$as_echo X"$as_dir" |
 
8285
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8286
            s//\1/
 
8287
            q
 
8288
          }
 
8289
          /^X\(\/\/\)[^/].*/{
 
8290
            s//\1/
 
8291
            q
 
8292
          }
 
8293
          /^X\(\/\/\)$/{
 
8294
            s//\1/
 
8295
            q
 
8296
          }
 
8297
          /^X\(\/\).*/{
 
8298
            s//\1/
 
8299
            q
 
8300
          }
 
8301
          s/.*/./; q'`
 
8302
      test -d "$as_dir" && break
 
8303
    done
 
8304
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
8305
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
8306
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
8307
   { (exit 1); exit 1; }; }; }
 
8308
  ac_builddir=.
 
8309
 
 
8310
case "$ac_dir" in
 
8311
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
8312
*)
 
8313
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
8314
  # A ".." for each directory in $ac_dir_suffix.
 
8315
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
8316
  case $ac_top_builddir_sub in
 
8317
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
8318
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
8319
  esac ;;
 
8320
esac
 
8321
ac_abs_top_builddir=$ac_pwd
 
8322
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
8323
# for backward compatibility:
 
8324
ac_top_builddir=$ac_top_build_prefix
 
8325
 
 
8326
case $srcdir in
 
8327
  .)  # We are building in place.
 
8328
    ac_srcdir=.
 
8329
    ac_top_srcdir=$ac_top_builddir_sub
 
8330
    ac_abs_top_srcdir=$ac_pwd ;;
 
8331
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
8332
    ac_srcdir=$srcdir$ac_dir_suffix;
 
8333
    ac_top_srcdir=$srcdir
 
8334
    ac_abs_top_srcdir=$srcdir ;;
 
8335
  *) # Relative name.
 
8336
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
8337
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
8338
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
8339
esac
 
8340
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
8341
 
 
8342
 
 
8343
  case $ac_mode in
 
8344
  :F)
 
8345
  #
 
8346
  # CONFIG_FILE
 
8347
  #
 
8348
 
 
8349
  case $INSTALL in
 
8350
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
8351
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
8352
  esac
 
8353
_ACEOF
 
8354
 
 
8355
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8356
# If the template does not know about datarootdir, expand it.
 
8357
# FIXME: This hack should be removed a few years after 2.60.
 
8358
ac_datarootdir_hack=; ac_datarootdir_seen=
 
8359
 
 
8360
ac_sed_dataroot='
 
8361
/datarootdir/ {
 
8362
  p
 
8363
  q
 
8364
}
 
8365
/@datadir@/p
 
8366
/@docdir@/p
 
8367
/@infodir@/p
 
8368
/@localedir@/p
 
8369
/@mandir@/p
 
8370
'
 
8371
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
8372
*datarootdir*) ac_datarootdir_seen=yes;;
 
8373
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
8374
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
8375
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
8376
_ACEOF
 
8377
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8378
  ac_datarootdir_hack='
 
8379
  s&@datadir@&$datadir&g
 
8380
  s&@docdir@&$docdir&g
 
8381
  s&@infodir@&$infodir&g
 
8382
  s&@localedir@&$localedir&g
 
8383
  s&@mandir@&$mandir&g
 
8384
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
8385
esac
 
8386
_ACEOF
 
8387
 
 
8388
# Neutralize VPATH when `$srcdir' = `.'.
 
8389
# Shell code in configure.ac might set extrasub.
 
8390
# FIXME: do we really want to maintain this feature?
 
8391
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8392
ac_sed_extra="$ac_vpsub
 
8393
$extrasub
 
8394
_ACEOF
 
8395
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8396
:t
 
8397
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
8398
s|@configure_input@|$ac_sed_conf_input|;t t
 
8399
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
8400
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
8401
s&@srcdir@&$ac_srcdir&;t t
 
8402
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
8403
s&@top_srcdir@&$ac_top_srcdir&;t t
 
8404
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
8405
s&@builddir@&$ac_builddir&;t t
 
8406
s&@abs_builddir@&$ac_abs_builddir&;t t
 
8407
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
8408
s&@INSTALL@&$ac_INSTALL&;t t
 
8409
$ac_datarootdir_hack
 
8410
"
 
8411
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
8412
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
8413
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
8414
   { (exit 1); exit 1; }; }
 
8415
 
 
8416
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
8417
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
8418
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
8419
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8420
which seems to be undefined.  Please make sure it is defined." >&5
 
8421
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8422
which seems to be undefined.  Please make sure it is defined." >&2;}
 
8423
 
 
8424
  rm -f "$tmp/stdin"
 
8425
  case $ac_file in
 
8426
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
8427
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
8428
  esac \
 
8429
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
8430
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
8431
   { (exit 1); exit 1; }; }
 
8432
 ;;
 
8433
  :H)
 
8434
  #
 
8435
  # CONFIG_HEADER
 
8436
  #
 
8437
  if test x"$ac_file" != x-; then
 
8438
    {
 
8439
      $as_echo "/* $configure_input  */" \
 
8440
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
8441
    } >"$tmp/config.h" \
 
8442
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
8443
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
8444
   { (exit 1); exit 1; }; }
 
8445
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
8446
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
8447
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
8448
    else
 
8449
      rm -f "$ac_file"
 
8450
      mv "$tmp/config.h" "$ac_file" \
 
8451
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
8452
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
8453
   { (exit 1); exit 1; }; }
 
8454
    fi
 
8455
  else
 
8456
    $as_echo "/* $configure_input  */" \
 
8457
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
8458
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
8459
$as_echo "$as_me: error: could not create -" >&2;}
 
8460
   { (exit 1); exit 1; }; }
 
8461
  fi
 
8462
 ;;
 
8463
 
 
8464
 
 
8465
  esac
 
8466
 
 
8467
 
 
8468
  case $ac_file$ac_mode in
 
8469
    "trampoline.h":H) sed "s/@LIBFFCALL_VERSION@/${LIBFFCALL_VERSION}/" trampoline.h > tmp
 
8470
mv -f tmp trampoline.h ;;
 
8471
 
 
8472
  esac
 
8473
done # for ac_tag
 
8474
 
 
8475
 
 
8476
{ (exit 0); exit 0; }
 
8477
_ACEOF
 
8478
chmod +x $CONFIG_STATUS
 
8479
ac_clean_files=$ac_clean_files_save
 
8480
 
 
8481
test $ac_write_fail = 0 ||
 
8482
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
8483
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
8484
   { (exit 1); exit 1; }; }
 
8485
 
 
8486
 
 
8487
# configure is writing to config.log, and then calls config.status.
 
8488
# config.status does its own redirection, appending to config.log.
 
8489
# Unfortunately, on DOS this fails, as config.log is still kept open
 
8490
# by configure, so config.status won't be able to write to it; its
 
8491
# output is simply discarded.  So we exec the FD to /dev/null,
 
8492
# effectively closing config.log, so it can be properly (re)opened and
 
8493
# appended to by config.status.  When coming back to configure, we
 
8494
# need to make the FD available again.
 
8495
if test "$no_create" != yes; then
 
8496
  ac_cs_success=:
 
8497
  ac_config_status_args=
 
8498
  test "$silent" = yes &&
 
8499
    ac_config_status_args="$ac_config_status_args --quiet"
 
8500
  exec 5>/dev/null
 
8501
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
8502
  exec 5>>config.log
 
8503
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
8504
  # would make configure fail if this is the last instruction.
 
8505
  $ac_cs_success || { (exit 1); exit 1; }
 
8506
fi
 
8507
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
8508
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
8509
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
8510
fi
 
8511