OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [configure] - Blame information for rev 387

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (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
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1"
173
  if (eval "$as_required") 2>/dev/null; then :
174
  as_have_required=yes
175
else
176
  as_have_required=no
177
fi
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
 
180
else
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
as_found=false
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184
do
185
  IFS=$as_save_IFS
186
  test -z "$as_dir" && as_dir=.
187
  as_found=:
188
  case $as_dir in #(
189
         /*)
190
           for as_base in sh bash ksh sh5; do
191
             # Try only shells that exist, to save several forks.
192
             as_shell=$as_dir/$as_base
193
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195
  CONFIG_SHELL=$as_shell as_have_required=yes
196
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  break 2
198
fi
199
fi
200
           done;;
201
       esac
202
  as_found=false
203
done
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206
  CONFIG_SHELL=$SHELL as_have_required=yes
207
fi; }
208
IFS=$as_save_IFS
209
 
210
 
211
      if test "x$CONFIG_SHELL" != x; then :
212
  # We cannot yet assume a decent shell, so we have to provide a
213
        # neutralization value for shells without unset; and this also
214
        # works around shells that cannot unset nonexistent variables.
215
        BASH_ENV=/dev/null
216
        ENV=/dev/null
217
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218
        export CONFIG_SHELL
219
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220
fi
221
 
222
    if test x$as_have_required = xno; then :
223
  $as_echo "$0: This script requires a shell more modern than all"
224
  $as_echo "$0: the shells that I found on your system."
225
  if test x${ZSH_VERSION+set} = xset ; then
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228
  else
229
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230
$0: including any error possibly output before this
231
$0: message. Then install a modern shell, or manually run
232
$0: the script under such a shell if you do have one."
233
  fi
234
  exit 1
235
fi
236
fi
237
fi
238
SHELL=${CONFIG_SHELL-/bin/sh}
239
export SHELL
240
# Unset more variables known to interfere with behavior of common tools.
241
CLICOLOR_FORCE= GREP_OPTIONS=
242
unset CLICOLOR_FORCE GREP_OPTIONS
243
 
244
## --------------------- ##
245
## M4sh Shell Functions. ##
246
## --------------------- ##
247
# as_fn_unset VAR
248
# ---------------
249
# Portably unset VAR.
250
as_fn_unset ()
251
{
252
  { eval $1=; unset $1;}
253
}
254
as_unset=as_fn_unset
255
 
256
# as_fn_set_status STATUS
257
# -----------------------
258
# Set $? to STATUS, without forking.
259
as_fn_set_status ()
260
{
261
  return $1
262
} # as_fn_set_status
263
 
264
# as_fn_exit STATUS
265
# -----------------
266
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267
as_fn_exit ()
268
{
269
  set +e
270
  as_fn_set_status $1
271
  exit $1
272
} # as_fn_exit
273
 
274
# as_fn_mkdir_p
275
# -------------
276
# Create "$as_dir" as a directory, including parents if necessary.
277
as_fn_mkdir_p ()
278
{
279
 
280
  case $as_dir in #(
281
  -*) as_dir=./$as_dir;;
282
  esac
283
  test -d "$as_dir" || eval $as_mkdir_p || {
284
    as_dirs=
285
    while :; do
286
      case $as_dir in #(
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288
      *) as_qdir=$as_dir;;
289
      esac
290
      as_dirs="'$as_qdir' $as_dirs"
291
      as_dir=`$as_dirname -- "$as_dir" ||
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293
         X"$as_dir" : 'X\(//\)[^/]' \| \
294
         X"$as_dir" : 'X\(//\)$' \| \
295
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296
$as_echo X"$as_dir" |
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298
            s//\1/
299
            q
300
          }
301
          /^X\(\/\/\)[^/].*/{
302
            s//\1/
303
            q
304
          }
305
          /^X\(\/\/\)$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\).*/{
310
            s//\1/
311
            q
312
          }
313
          s/.*/./; q'`
314
      test -d "$as_dir" && break
315
    done
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
 
319
 
320
} # as_fn_mkdir_p
321
# as_fn_append VAR VALUE
322
# ----------------------
323
# Append the text in VALUE to the end of the definition contained in VAR. Take
324
# advantage of any shell optimizations that allow amortized linear growth over
325
# repeated appends, instead of the typical quadratic growth present in naive
326
# implementations.
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328
  eval 'as_fn_append ()
329
  {
330
    eval $1+=\$2
331
  }'
332
else
333
  as_fn_append ()
334
  {
335
    eval $1=\$$1\$2
336
  }
337
fi # as_fn_append
338
 
339
# as_fn_arith ARG...
340
# ------------------
341
# Perform arithmetic evaluation on the ARGs, and store the result in the
342
# global $as_val. Take advantage of shells that can avoid forks. The arguments
343
# must be portable across $(()) and expr.
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345
  eval 'as_fn_arith ()
346
  {
347
    as_val=$(( $* ))
348
  }'
349
else
350
  as_fn_arith ()
351
  {
352
    as_val=`expr "$@" || test $? -eq 1`
353
  }
354
fi # as_fn_arith
355
 
356
 
357
# as_fn_error ERROR [LINENO LOG_FD]
358
# ---------------------------------
359
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
# script with status $?, using 1 if that was 0.
362
as_fn_error ()
363
{
364
  as_status=$?; test $as_status -eq 0 && as_status=1
365
  if test "$3"; then
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368
  fi
369
  $as_echo "$as_me: error: $1" >&2
370
  as_fn_exit $as_status
371
} # as_fn_error
372
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375
  as_expr=expr
376
else
377
  as_expr=false
378
fi
379
 
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381
  as_basename=basename
382
else
383
  as_basename=false
384
fi
385
 
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387
  as_dirname=dirname
388
else
389
  as_dirname=false
390
fi
391
 
392
as_me=`$as_basename -- "$0" ||
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394
         X"$0" : 'X\(//\)$' \| \
395
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396
$as_echo X/"$0" |
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
398
            s//\1/
399
            q
400
          }
401
          /^X\/\(\/\/\)$/{
402
            s//\1/
403
            q
404
          }
405
          /^X\/\(\/\).*/{
406
            s//\1/
407
            q
408
          }
409
          s/.*/./; q'`
410
 
411
# Avoid depending upon Character Ranges.
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415
as_cr_digits='0123456789'
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
417
 
418
 
419
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424
  sed -n '
425
    p
426
    /[$]LINENO/=
427
  ' <$as_myself |
428
    sed '
429
      s/[$]LINENO.*/&-/
430
      t lineno
431
      b
432
      :lineno
433
      N
434
      :loop
435
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436
      t loop
437
      s/-\n.*//
438
    ' >$as_me.lineno &&
439
  chmod +x "$as_me.lineno" ||
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
 
442
  # Don't try to exec as it changes $[0], causing all sort of problems
443
  # (the dirname of $[0] is not the place where we might find the
444
  # original and so on.  Autoconf is especially sensitive to this).
445
  . "./$as_me.lineno"
446
  # Exit status is that of the last command.
447
  exit
448
}
449
 
450
ECHO_C= ECHO_N= ECHO_T=
451
case `echo -n x` in #(((((
452
-n*)
453
  case `echo 'xy\c'` in
454
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455
  xy)  ECHO_C='\c';;
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457
       ECHO_T=' ';;
458
  esac;;
459
*)
460
  ECHO_N='-n';;
461
esac
462
 
463
rm -f conf$$ conf$$.exe conf$$.file
464
if test -d conf$$.dir; then
465
  rm -f conf$$.dir/conf$$.file
466
else
467
  rm -f conf$$.dir
468
  mkdir conf$$.dir 2>/dev/null
469
fi
470
if (echo >conf$$.file) 2>/dev/null; then
471
  if ln -s conf$$.file conf$$ 2>/dev/null; then
472
    as_ln_s='ln -s'
473
    # ... but there are two gotchas:
474
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476
    # In both cases, we have to default to `cp -p'.
477
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478
      as_ln_s='cp -p'
479
  elif ln conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s=ln
481
  else
482
    as_ln_s='cp -p'
483
  fi
484
else
485
  as_ln_s='cp -p'
486
fi
487
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488
rmdir conf$$.dir 2>/dev/null
489
 
490
if mkdir -p . 2>/dev/null; then
491
  as_mkdir_p='mkdir -p "$as_dir"'
492
else
493
  test -d ./-p && rmdir ./-p
494
  as_mkdir_p=false
495
fi
496
 
497
if test -x / >/dev/null 2>&1; then
498
  as_test_x='test -x'
499
else
500
  if ls -dL / >/dev/null 2>&1; then
501
    as_ls_L_option=L
502
  else
503
    as_ls_L_option=
504
  fi
505
  as_test_x='
506
    eval sh -c '\''
507
      if test -d "$1"; then
508
        test -d "$1/.";
509
      else
510
        case $1 in #(
511
        -*)set "./$1";;
512
        esac;
513
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514
        ???[sx]*):;;*)false;;esac;fi
515
    '\'' sh
516
  '
517
fi
518
as_executable_p=$as_test_x
519
 
520
# Sed expression to map a string onto a valid CPP name.
521
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
 
523
# Sed expression to map a string onto a valid variable name.
524
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
 
527
exec 7<&0 &1
528
 
529
# Name of the host.
530
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531
# so uname gets run too.
532
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
 
534
#
535
# Initializations.
536
#
537
ac_default_prefix=/usr/local
538
ac_clean_files=
539
ac_config_libobj_dir=.
540
LIBOBJS=
541
cross_compiling=no
542
subdirs=
543
MFLAGS=
544
MAKEFLAGS=
545
 
546
# Identity of this package.
547
PACKAGE_NAME=
548
PACKAGE_TARNAME=
549
PACKAGE_VERSION=
550
PACKAGE_STRING=
551
PACKAGE_BUGREPORT=
552
PACKAGE_URL=
553
 
554
ac_unique_file="main.c"
555
# Factoring default headers for most tests.
556
ac_includes_default="\
557
#include 
558
#ifdef HAVE_SYS_TYPES_H
559
# include 
560
#endif
561
#ifdef HAVE_SYS_STAT_H
562
# include 
563
#endif
564
#ifdef STDC_HEADERS
565
# include 
566
# include 
567
#else
568
# ifdef HAVE_STDLIB_H
569
#  include 
570
# endif
571
#endif
572
#ifdef HAVE_STRING_H
573
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574
#  include 
575
# endif
576
# include 
577
#endif
578
#ifdef HAVE_STRINGS_H
579
# include 
580
#endif
581
#ifdef HAVE_INTTYPES_H
582
# include 
583
#endif
584
#ifdef HAVE_STDINT_H
585
# include 
586
#endif
587
#ifdef HAVE_UNISTD_H
588
# include 
589
#endif"
590
 
591
gl_header_list=
592
enable_option_checking=no
593
ac_subst_vars='am__EXEEXT_FALSE
594
am__EXEEXT_TRUE
595
gltests_LTLIBOBJS
596
gltests_LIBOBJS
597
gl_LTLIBOBJS
598
gl_LIBOBJS
599
LTLIBOBJS
600
LIBOBJS
601
GDB_NM_FILE
602
frags
603
target_subdir
604
CONFIG_UNINSTALL
605
CONFIG_INSTALL
606
CONFIG_CLEAN
607
CONFIG_ALL
608
CONFIG_SRCS
609
CONFIG_DEPS
610
CONFIG_OBS
611
PROFILE_CFLAGS
612
ENABLE_CFLAGS
613
SIM_OBS
614
SIM
615
XMKMF
616
GDBTK_SRC_DIR
617
GDBTK_CFLAGS
618
GDBTKLIBS
619
X_LIBS
620
X_LDFLAGS
621
X_CFLAGS
622
TK_XINCLUDES
623
TK_DEPS
624
TK_LIBRARY
625
TK_INCLUDE
626
TK_STUB_LIB_SPEC
627
TK_STUB_LIB_FLAG
628
TK_STUB_LIB_FILE
629
TK_LIB_SPEC
630
TK_LIB_FLAG
631
TK_LIB_FILE
632
TK_SRC_DIR
633
TK_BIN_DIR
634
TK_VERSION
635
TCL_DEPS
636
TCL_LIBRARY
637
TCL_INCLUDE
638
TCL_STUB_LIB_SPEC
639
TCL_STUB_LIB_FLAG
640
TCL_STUB_LIB_FILE
641
TCL_LIB_SPEC
642
TCL_LIB_FLAG
643
TCL_LIB_FILE
644
TCL_SRC_DIR
645
TCL_BIN_DIR
646
TCL_PATCH_LEVEL
647
TCL_VERSION
648
WIN32LDAPP
649
GUI_CFLAGS_X
650
LIBGUI
651
WIN32LIBS
652
SER_HARDWIRE
653
WERROR_CFLAGS
654
WARN_CFLAGS
655
SYSTEM_GDBINIT
656
TARGET_SYSTEM_ROOT_DEFINE
657
TARGET_SYSTEM_ROOT
658
CONFIG_LDFLAGS
659
ALLOCA
660
PYTHON_CFLAGS
661
LTLIBEXPAT
662
LIBEXPAT
663
HAVE_LIBEXPAT
664
READLINE_CFLAGS
665
READLINE_DEPS
666
READLINE
667
MIG
668
WINDRES
669
DLLTOOL
670
AR
671
YFLAGS
672
YACC
673
LN_S
674
REPORT_BUGS_TEXI
675
REPORT_BUGS_TO
676
PKGVERSION
677
TARGET_OBS
678
subdirs
679
GDB_DATADIR
680
DEBUGDIR
681
am__fastdepCC_FALSE
682
am__fastdepCC_TRUE
683
AMDEPBACKSLASH
684
AMDEP_FALSE
685
AMDEP_TRUE
686
am__quote
687
am__include
688
am__untar
689
am__tar
690
AMTAR
691
AWK
692
mkdir_p
693
MKDIR_P
694
INSTALL_STRIP_PROGRAM
695
STRIP
696
install_sh
697
MAKEINFO
698
AUTOHEADER
699
AUTOMAKE
700
AUTOCONF
701
ACLOCAL
702
VERSION
703
CYGPATH_W
704
am__isrc
705
INSTALL_DATA
706
INSTALL_SCRIPT
707
INSTALL_PROGRAM
708
PACKAGE
709
GNULIB_STDINT_H
710
LIBGNU_LTLIBDEPS
711
LIBGNU_LIBDEPS
712
NEXT_WCHAR_H
713
HAVE_WCHAR_H
714
WCHAR_H
715
REPLACE_WCWIDTH
716
HAVE_DECL_WCWIDTH
717
GNULIB_WCWIDTH
718
NEXT_STRING_H
719
STDINT_H
720
WINT_T_SUFFIX
721
WCHAR_T_SUFFIX
722
SIZE_T_SUFFIX
723
SIG_ATOMIC_T_SUFFIX
724
PTRDIFF_T_SUFFIX
725
HAVE_SIGNED_WINT_T
726
HAVE_SIGNED_WCHAR_T
727
HAVE_SIGNED_SIG_ATOMIC_T
728
BITSIZEOF_WINT_T
729
BITSIZEOF_WCHAR_T
730
BITSIZEOF_SIZE_T
731
BITSIZEOF_SIG_ATOMIC_T
732
BITSIZEOF_PTRDIFF_T
733
HAVE_SYS_BITYPES_H
734
HAVE_SYS_INTTYPES_H
735
HAVE_STDINT_H
736
NEXT_STDINT_H
737
INCLUDE_NEXT
738
HAVE_SYS_TYPES_H
739
HAVE_INTTYPES_H
740
HAVE_UNSIGNED_LONG_LONG_INT
741
HAVE_LONG_LONG_INT
742
REPLACE_STRSTR
743
REPLACE_STRCASESTR
744
REPLACE_MEMMEM
745
REPLACE_STRSIGNAL
746
REPLACE_STRERROR
747
HAVE_DECL_STRSIGNAL
748
HAVE_DECL_STRERROR
749
HAVE_DECL_STRTOK_R
750
HAVE_STRCASESTR
751
HAVE_STRSEP
752
HAVE_STRPBRK
753
HAVE_DECL_STRNLEN
754
HAVE_DECL_STRNDUP
755
HAVE_STRNDUP
756
HAVE_DECL_STRDUP
757
HAVE_STRCHRNUL
758
HAVE_STPNCPY
759
HAVE_STPCPY
760
HAVE_DECL_MEMRCHR
761
HAVE_MEMPCPY
762
HAVE_DECL_MEMMEM
763
GNULIB_STRSIGNAL
764
GNULIB_STRERROR
765
GNULIB_MBSTOK_R
766
GNULIB_MBSSEP
767
GNULIB_MBSSPN
768
GNULIB_MBSPBRK
769
GNULIB_MBSCSPN
770
GNULIB_MBSCASESTR
771
GNULIB_MBSPCASECMP
772
GNULIB_MBSNCASECMP
773
GNULIB_MBSCASECMP
774
GNULIB_MBSSTR
775
GNULIB_MBSRCHR
776
GNULIB_MBSCHR
777
GNULIB_MBSNLEN
778
GNULIB_MBSLEN
779
GNULIB_STRTOK_R
780
GNULIB_STRCASESTR
781
GNULIB_STRSTR
782
GNULIB_STRSEP
783
GNULIB_STRPBRK
784
GNULIB_STRNLEN
785
GNULIB_STRNDUP
786
GNULIB_STRDUP
787
GNULIB_STRCHRNUL
788
GNULIB_STPNCPY
789
GNULIB_STPCPY
790
GNULIB_MEMRCHR
791
GNULIB_MEMPCPY
792
GNULIB_MEMMEM
793
GL_COND_LIBTOOL_FALSE
794
GL_COND_LIBTOOL_TRUE
795
CATOBJEXT
796
GENCAT
797
INSTOBJEXT
798
DATADIRNAME
799
CATALOGS
800
POSUB
801
GMSGFMT
802
XGETTEXT
803
INCINTL
804
LIBINTL_DEP
805
LIBINTL
806
USE_NLS
807
SET_MAKE
808
GMAKE_FALSE
809
GMAKE_TRUE
810
MAKE
811
CCDEPMODE
812
DEPDIR
813
am__leading_dot
814
target_os
815
target_vendor
816
target_cpu
817
target
818
host_os
819
host_vendor
820
host_cpu
821
host
822
build_os
823
build_vendor
824
build_cpu
825
build
826
RANLIB
827
EGREP
828
GREP
829
CPP
830
OBJEXT
831
EXEEXT
832
ac_ct_CC
833
CPPFLAGS
834
LDFLAGS
835
CFLAGS
836
CC
837
MAINT
838
MAINTAINER_MODE_FALSE
839
MAINTAINER_MODE_TRUE
840
target_alias
841
host_alias
842
build_alias
843
LIBS
844
ECHO_T
845
ECHO_N
846
ECHO_C
847
DEFS
848
mandir
849
localedir
850
libdir
851
psdir
852
pdfdir
853
dvidir
854
htmldir
855
infodir
856
docdir
857
oldincludedir
858
includedir
859
localstatedir
860
sharedstatedir
861
sysconfdir
862
datadir
863
datarootdir
864
libexecdir
865
sbindir
866
bindir
867
program_transform_name
868
prefix
869
exec_prefix
870
PACKAGE_URL
871
PACKAGE_BUGREPORT
872
PACKAGE_STRING
873
PACKAGE_VERSION
874
PACKAGE_TARNAME
875
PACKAGE_NAME
876
PATH_SEPARATOR
877
SHELL'
878
ac_subst_files='host_makefile_frag'
879
ac_user_opts='
880
enable_option_checking
881
enable_maintainer_mode
882
enable_plugins
883
enable_largefile
884
enable_dependency_tracking
885
with_separate_debug_dir
886
with_gdb_datadir
887
with_relocated_sources
888
enable_targets
889
enable_64_bit_bfd
890
enable_gdbcli
891
enable_gdbmi
892
enable_tui
893
enable_gdbtk
894
with_libunwind
895
with_curses
896
enable_profiling
897
with_pkgversion
898
with_bugurl
899
with_zlib
900
with_libiconv_prefix
901
with_system_readline
902
with_expat
903
with_gnu_ld
904
enable_rpath
905
with_libexpat_prefix
906
with_python
907
with_included_regex
908
with_sysroot
909
with_system_gdbinit
910
enable_werror
911
enable_build_warnings
912
enable_gdb_build_warnings
913
with_tcl
914
with_tk
915
with_x
916
enable_sim
917
with_or1ksim
918
enable_multi_ice
919
'
920
      ac_precious_vars='build_alias
921
host_alias
922
target_alias
923
CC
924
CFLAGS
925
LDFLAGS
926
LIBS
927
CPPFLAGS
928
CPP
929
YACC
930
YFLAGS
931
XMKMF'
932
ac_subdirs_all='doc testsuite
933
gdbtk
934
multi-ice
935
gdbserver'
936
 
937
# Initialize some variables set by options.
938
ac_init_help=
939
ac_init_version=false
940
ac_unrecognized_opts=
941
ac_unrecognized_sep=
942
# The variables have the same names as the options, with
943
# dashes changed to underlines.
944
cache_file=/dev/null
945
exec_prefix=NONE
946
no_create=
947
no_recursion=
948
prefix=NONE
949
program_prefix=NONE
950
program_suffix=NONE
951
program_transform_name=s,x,x,
952
silent=
953
site=
954
srcdir=
955
verbose=
956
x_includes=NONE
957
x_libraries=NONE
958
 
959
# Installation directory options.
960
# These are left unexpanded so users can "make install exec_prefix=/foo"
961
# and all the variables that are supposed to be based on exec_prefix
962
# by default will actually change.
963
# Use braces instead of parens because sh, perl, etc. also accept them.
964
# (The list follows the same order as the GNU Coding Standards.)
965
bindir='${exec_prefix}/bin'
966
sbindir='${exec_prefix}/sbin'
967
libexecdir='${exec_prefix}/libexec'
968
datarootdir='${prefix}/share'
969
datadir='${datarootdir}'
970
sysconfdir='${prefix}/etc'
971
sharedstatedir='${prefix}/com'
972
localstatedir='${prefix}/var'
973
includedir='${prefix}/include'
974
oldincludedir='/usr/include'
975
docdir='${datarootdir}/doc/${PACKAGE}'
976
infodir='${datarootdir}/info'
977
htmldir='${docdir}'
978
dvidir='${docdir}'
979
pdfdir='${docdir}'
980
psdir='${docdir}'
981
libdir='${exec_prefix}/lib'
982
localedir='${datarootdir}/locale'
983
mandir='${datarootdir}/man'
984
 
985
ac_prev=
986
ac_dashdash=
987
for ac_option
988
do
989
  # If the previous option needs an argument, assign it.
990
  if test -n "$ac_prev"; then
991
    eval $ac_prev=\$ac_option
992
    ac_prev=
993
    continue
994
  fi
995
 
996
  case $ac_option in
997
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998
  *)    ac_optarg=yes ;;
999
  esac
1000
 
1001
  # Accept the important Cygnus configure options, so we can diagnose typos.
1002
 
1003
  case $ac_dashdash$ac_option in
1004
  --)
1005
    ac_dashdash=yes ;;
1006
 
1007
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008
    ac_prev=bindir ;;
1009
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010
    bindir=$ac_optarg ;;
1011
 
1012
  -build | --build | --buil | --bui | --bu)
1013
    ac_prev=build_alias ;;
1014
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015
    build_alias=$ac_optarg ;;
1016
 
1017
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1018
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019
    ac_prev=cache_file ;;
1020
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022
    cache_file=$ac_optarg ;;
1023
 
1024
  --config-cache | -C)
1025
    cache_file=config.cache ;;
1026
 
1027
  -datadir | --datadir | --datadi | --datad)
1028
    ac_prev=datadir ;;
1029
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030
    datadir=$ac_optarg ;;
1031
 
1032
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033
  | --dataroo | --dataro | --datar)
1034
    ac_prev=datarootdir ;;
1035
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037
    datarootdir=$ac_optarg ;;
1038
 
1039
  -disable-* | --disable-*)
1040
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041
    # Reject names that are not valid shell variable names.
1042
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043
      as_fn_error "invalid feature name: $ac_useropt"
1044
    ac_useropt_orig=$ac_useropt
1045
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046
    case $ac_user_opts in
1047
      *"
1048
"enable_$ac_useropt"
1049
"*) ;;
1050
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051
         ac_unrecognized_sep=', ';;
1052
    esac
1053
    eval enable_$ac_useropt=no ;;
1054
 
1055
  -docdir | --docdir | --docdi | --doc | --do)
1056
    ac_prev=docdir ;;
1057
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058
    docdir=$ac_optarg ;;
1059
 
1060
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061
    ac_prev=dvidir ;;
1062
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063
    dvidir=$ac_optarg ;;
1064
 
1065
  -enable-* | --enable-*)
1066
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067
    # Reject names that are not valid shell variable names.
1068
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069
      as_fn_error "invalid feature name: $ac_useropt"
1070
    ac_useropt_orig=$ac_useropt
1071
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072
    case $ac_user_opts in
1073
      *"
1074
"enable_$ac_useropt"
1075
"*) ;;
1076
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077
         ac_unrecognized_sep=', ';;
1078
    esac
1079
    eval enable_$ac_useropt=\$ac_optarg ;;
1080
 
1081
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083
  | --exec | --exe | --ex)
1084
    ac_prev=exec_prefix ;;
1085
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087
  | --exec=* | --exe=* | --ex=*)
1088
    exec_prefix=$ac_optarg ;;
1089
 
1090
  -gas | --gas | --ga | --g)
1091
    # Obsolete; use --with-gas.
1092
    with_gas=yes ;;
1093
 
1094
  -help | --help | --hel | --he | -h)
1095
    ac_init_help=long ;;
1096
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097
    ac_init_help=recursive ;;
1098
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099
    ac_init_help=short ;;
1100
 
1101
  -host | --host | --hos | --ho)
1102
    ac_prev=host_alias ;;
1103
  -host=* | --host=* | --hos=* | --ho=*)
1104
    host_alias=$ac_optarg ;;
1105
 
1106
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107
    ac_prev=htmldir ;;
1108
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109
  | --ht=*)
1110
    htmldir=$ac_optarg ;;
1111
 
1112
  -includedir | --includedir | --includedi | --included | --include \
1113
  | --includ | --inclu | --incl | --inc)
1114
    ac_prev=includedir ;;
1115
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1117
    includedir=$ac_optarg ;;
1118
 
1119
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1120
    ac_prev=infodir ;;
1121
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122
    infodir=$ac_optarg ;;
1123
 
1124
  -libdir | --libdir | --libdi | --libd)
1125
    ac_prev=libdir ;;
1126
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127
    libdir=$ac_optarg ;;
1128
 
1129
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130
  | --libexe | --libex | --libe)
1131
    ac_prev=libexecdir ;;
1132
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133
  | --libexe=* | --libex=* | --libe=*)
1134
    libexecdir=$ac_optarg ;;
1135
 
1136
  -localedir | --localedir | --localedi | --localed | --locale)
1137
    ac_prev=localedir ;;
1138
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139
    localedir=$ac_optarg ;;
1140
 
1141
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1142
  | --localstate | --localstat | --localsta | --localst | --locals)
1143
    ac_prev=localstatedir ;;
1144
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146
    localstatedir=$ac_optarg ;;
1147
 
1148
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149
    ac_prev=mandir ;;
1150
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151
    mandir=$ac_optarg ;;
1152
 
1153
  -nfp | --nfp | --nf)
1154
    # Obsolete; use --without-fp.
1155
    with_fp=no ;;
1156
 
1157
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158
  | --no-cr | --no-c | -n)
1159
    no_create=yes ;;
1160
 
1161
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163
    no_recursion=yes ;;
1164
 
1165
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167
  | --oldin | --oldi | --old | --ol | --o)
1168
    ac_prev=oldincludedir ;;
1169
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172
    oldincludedir=$ac_optarg ;;
1173
 
1174
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175
    ac_prev=prefix ;;
1176
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177
    prefix=$ac_optarg ;;
1178
 
1179
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180
  | --program-pre | --program-pr | --program-p)
1181
    ac_prev=program_prefix ;;
1182
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184
    program_prefix=$ac_optarg ;;
1185
 
1186
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187
  | --program-suf | --program-su | --program-s)
1188
    ac_prev=program_suffix ;;
1189
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191
    program_suffix=$ac_optarg ;;
1192
 
1193
  -program-transform-name | --program-transform-name \
1194
  | --program-transform-nam | --program-transform-na \
1195
  | --program-transform-n | --program-transform- \
1196
  | --program-transform | --program-transfor \
1197
  | --program-transfo | --program-transf \
1198
  | --program-trans | --program-tran \
1199
  | --progr-tra | --program-tr | --program-t)
1200
    ac_prev=program_transform_name ;;
1201
  -program-transform-name=* | --program-transform-name=* \
1202
  | --program-transform-nam=* | --program-transform-na=* \
1203
  | --program-transform-n=* | --program-transform-=* \
1204
  | --program-transform=* | --program-transfor=* \
1205
  | --program-transfo=* | --program-transf=* \
1206
  | --program-trans=* | --program-tran=* \
1207
  | --progr-tra=* | --program-tr=* | --program-t=*)
1208
    program_transform_name=$ac_optarg ;;
1209
 
1210
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211
    ac_prev=pdfdir ;;
1212
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213
    pdfdir=$ac_optarg ;;
1214
 
1215
  -psdir | --psdir | --psdi | --psd | --ps)
1216
    ac_prev=psdir ;;
1217
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218
    psdir=$ac_optarg ;;
1219
 
1220
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221
  | -silent | --silent | --silen | --sile | --sil)
1222
    silent=yes ;;
1223
 
1224
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225
    ac_prev=sbindir ;;
1226
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227
  | --sbi=* | --sb=*)
1228
    sbindir=$ac_optarg ;;
1229
 
1230
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232
  | --sharedst | --shareds | --shared | --share | --shar \
1233
  | --sha | --sh)
1234
    ac_prev=sharedstatedir ;;
1235
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238
  | --sha=* | --sh=*)
1239
    sharedstatedir=$ac_optarg ;;
1240
 
1241
  -site | --site | --sit)
1242
    ac_prev=site ;;
1243
  -site=* | --site=* | --sit=*)
1244
    site=$ac_optarg ;;
1245
 
1246
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247
    ac_prev=srcdir ;;
1248
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249
    srcdir=$ac_optarg ;;
1250
 
1251
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252
  | --syscon | --sysco | --sysc | --sys | --sy)
1253
    ac_prev=sysconfdir ;;
1254
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256
    sysconfdir=$ac_optarg ;;
1257
 
1258
  -target | --target | --targe | --targ | --tar | --ta | --t)
1259
    ac_prev=target_alias ;;
1260
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261
    target_alias=$ac_optarg ;;
1262
 
1263
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264
    verbose=yes ;;
1265
 
1266
  -version | --version | --versio | --versi | --vers | -V)
1267
    ac_init_version=: ;;
1268
 
1269
  -with-* | --with-*)
1270
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271
    # Reject names that are not valid shell variable names.
1272
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273
      as_fn_error "invalid package name: $ac_useropt"
1274
    ac_useropt_orig=$ac_useropt
1275
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276
    case $ac_user_opts in
1277
      *"
1278
"with_$ac_useropt"
1279
"*) ;;
1280
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281
         ac_unrecognized_sep=', ';;
1282
    esac
1283
    eval with_$ac_useropt=\$ac_optarg ;;
1284
 
1285
  -without-* | --without-*)
1286
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287
    # Reject names that are not valid shell variable names.
1288
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289
      as_fn_error "invalid package name: $ac_useropt"
1290
    ac_useropt_orig=$ac_useropt
1291
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292
    case $ac_user_opts in
1293
      *"
1294
"with_$ac_useropt"
1295
"*) ;;
1296
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297
         ac_unrecognized_sep=', ';;
1298
    esac
1299
    eval with_$ac_useropt=no ;;
1300
 
1301
  --x)
1302
    # Obsolete; use --with-x.
1303
    with_x=yes ;;
1304
 
1305
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306
  | --x-incl | --x-inc | --x-in | --x-i)
1307
    ac_prev=x_includes ;;
1308
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310
    x_includes=$ac_optarg ;;
1311
 
1312
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314
    ac_prev=x_libraries ;;
1315
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317
    x_libraries=$ac_optarg ;;
1318
 
1319
  -*) as_fn_error "unrecognized option: \`$ac_option'
1320
Try \`$0 --help' for more information."
1321
    ;;
1322
 
1323
  *=*)
1324
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325
    # Reject names that are not valid shell variable names.
1326
    case $ac_envvar in #(
1327
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1328
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329
    esac
1330
    eval $ac_envvar=\$ac_optarg
1331
    export $ac_envvar ;;
1332
 
1333
  *)
1334
    # FIXME: should be removed in autoconf 3.0.
1335
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339
    ;;
1340
 
1341
  esac
1342
done
1343
 
1344
if test -n "$ac_prev"; then
1345
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346
  as_fn_error "missing argument to $ac_option"
1347
fi
1348
 
1349
if test -n "$ac_unrecognized_opts"; then
1350
  case $enable_option_checking in
1351
    no) ;;
1352
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354
  esac
1355
fi
1356
 
1357
# Check all directory arguments for consistency.
1358
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359
                datadir sysconfdir sharedstatedir localstatedir includedir \
1360
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361
                libdir localedir mandir
1362
do
1363
  eval ac_val=\$$ac_var
1364
  # Remove trailing slashes.
1365
  case $ac_val in
1366
    */ )
1367
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368
      eval $ac_var=\$ac_val;;
1369
  esac
1370
  # Be sure to have absolute directory names.
1371
  case $ac_val in
1372
    [\\/$]* | ?:[\\/]* )  continue;;
1373
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374
  esac
1375
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376
done
1377
 
1378
# There might be people who depend on the old broken behavior: `$host'
1379
# used to hold the argument of --host etc.
1380
# FIXME: To remove some day.
1381
build=$build_alias
1382
host=$host_alias
1383
target=$target_alias
1384
 
1385
# FIXME: To remove some day.
1386
if test "x$host_alias" != x; then
1387
  if test "x$build_alias" = x; then
1388
    cross_compiling=maybe
1389
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390
    If a cross compiler is detected then cross compile mode will be used." >&2
1391
  elif test "x$build_alias" != "x$host_alias"; then
1392
    cross_compiling=yes
1393
  fi
1394
fi
1395
 
1396
ac_tool_prefix=
1397
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
 
1399
test "$silent" = yes && exec 6>/dev/null
1400
 
1401
 
1402
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403
ac_ls_di=`ls -di .` &&
1404
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405
  as_fn_error "working directory cannot be determined"
1406
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407
  as_fn_error "pwd does not report name of working directory"
1408
 
1409
 
1410
# Find the source files, if location was not specified.
1411
if test -z "$srcdir"; then
1412
  ac_srcdir_defaulted=yes
1413
  # Try the directory containing this script, then the parent directory.
1414
  ac_confdir=`$as_dirname -- "$as_myself" ||
1415
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416
         X"$as_myself" : 'X\(//\)[^/]' \| \
1417
         X"$as_myself" : 'X\(//\)$' \| \
1418
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419
$as_echo X"$as_myself" |
1420
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421
            s//\1/
1422
            q
1423
          }
1424
          /^X\(\/\/\)[^/].*/{
1425
            s//\1/
1426
            q
1427
          }
1428
          /^X\(\/\/\)$/{
1429
            s//\1/
1430
            q
1431
          }
1432
          /^X\(\/\).*/{
1433
            s//\1/
1434
            q
1435
          }
1436
          s/.*/./; q'`
1437
  srcdir=$ac_confdir
1438
  if test ! -r "$srcdir/$ac_unique_file"; then
1439
    srcdir=..
1440
  fi
1441
else
1442
  ac_srcdir_defaulted=no
1443
fi
1444
if test ! -r "$srcdir/$ac_unique_file"; then
1445
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447
fi
1448
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449
ac_abs_confdir=`(
1450
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451
        pwd)`
1452
# When building in place, set srcdir=.
1453
if test "$ac_abs_confdir" = "$ac_pwd"; then
1454
  srcdir=.
1455
fi
1456
# Remove unnecessary trailing slashes from srcdir.
1457
# Double slashes in file names in object file debugging info
1458
# mess up M-x gdb in Emacs.
1459
case $srcdir in
1460
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461
esac
1462
for ac_var in $ac_precious_vars; do
1463
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464
  eval ac_env_${ac_var}_value=\$${ac_var}
1465
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467
done
1468
 
1469
#
1470
# Report the --help message.
1471
#
1472
if test "$ac_init_help" = "long"; then
1473
  # Omit some internal or obsolete options to make the list less imposing.
1474
  # This message is too long to be a string in the A/UX 3.1 sh.
1475
  cat <<_ACEOF
1476
\`configure' configures this package to adapt to many kinds of systems.
1477
 
1478
Usage: $0 [OPTION]... [VAR=VALUE]...
1479
 
1480
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481
VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
 
1483
Defaults for the options are specified in brackets.
1484
 
1485
Configuration:
1486
  -h, --help              display this help and exit
1487
      --help=short        display options specific to this package
1488
      --help=recursive    display the short help of all the included packages
1489
  -V, --version           display version information and exit
1490
  -q, --quiet, --silent   do not print \`checking...' messages
1491
      --cache-file=FILE   cache test results in FILE [disabled]
1492
  -C, --config-cache      alias for \`--cache-file=config.cache'
1493
  -n, --no-create         do not create output files
1494
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
 
1496
Installation directories:
1497
  --prefix=PREFIX         install architecture-independent files in PREFIX
1498
                          [$ac_default_prefix]
1499
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500
                          [PREFIX]
1501
 
1502
By default, \`make install' will install all the files in
1503
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505
for instance \`--prefix=\$HOME'.
1506
 
1507
For better control, use the options below.
1508
 
1509
Fine tuning of the installation directories:
1510
  --bindir=DIR            user executables [EPREFIX/bin]
1511
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1513
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516
  --libdir=DIR            object code libraries [EPREFIX/lib]
1517
  --includedir=DIR        C header files [PREFIX/include]
1518
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1522
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1524
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1525
  --htmldir=DIR           html documentation [DOCDIR]
1526
  --dvidir=DIR            dvi documentation [DOCDIR]
1527
  --pdfdir=DIR            pdf documentation [DOCDIR]
1528
  --psdir=DIR             ps documentation [DOCDIR]
1529
_ACEOF
1530
 
1531
  cat <<\_ACEOF
1532
 
1533
Program names:
1534
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1535
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1536
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
 
1538
X features:
1539
  --x-includes=DIR    X include files are in DIR
1540
  --x-libraries=DIR   X library files are in DIR
1541
 
1542
System types:
1543
  --build=BUILD     configure for building on BUILD [guessed]
1544
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545
  --target=TARGET   configure for building compilers for TARGET [HOST]
1546
_ACEOF
1547
fi
1548
 
1549
if test -n "$ac_init_help"; then
1550
 
1551
  cat <<\_ACEOF
1552
 
1553
Optional Features:
1554
  --disable-option-checking  ignore unrecognized --enable/--with options
1555
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557
  --enable-maintainer-mode  enable make rules and dependencies not useful
1558
                          (and sometimes confusing) to the casual installer
1559
  --enable-plugins        Enable support for plugins (defaults no)
1560
  --disable-largefile     omit support for large files
1561
  --disable-dependency-tracking  speeds up one-time build
1562
  --enable-dependency-tracking   do not reject slow dependency extractors
1563
  --enable-targets=TARGETS
1564
                          alternative target configurations
1565
  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1566
  --disable-gdbcli        disable command-line interface (CLI)
1567
  --disable-gdbmi         disable machine-interface (MI)
1568
  --enable-tui            enable full-screen terminal user interface (TUI)
1569
  --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1570
  --enable-profiling      enable profiling of GDB
1571
  --disable-rpath         do not hardcode runtime library paths
1572
  --enable-werror         treat compile warnings as errors
1573
  --enable-build-warnings enable build-time compiler warnings if gcc is used
1574
  --enable-gdb-build-warnings
1575
                          enable GDB specific build-time compiler warnings if
1576
                          gcc is used
1577
  --enable-sim            link gdb with simulator
1578
  --enable-multi-ice      build the multi-ice-gdb-server
1579
 
1580
Optional Packages:
1581
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1582
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1583
  --with-separate-debug-dir=PATH
1584
                          look for global separate debug info in this path
1585
                          [LIBDIR/debug]
1586
  --with-gdb-datadir=PATH look for global separate data files in this path
1587
                          [DATADIR/gdb]
1588
  --with-relocated-sources=PATH
1589
                          automatically relocate this path for source files
1590
  --with-libunwind        use libunwind frame unwinding support
1591
  --with-curses           use the curses library instead of the termcap
1592
                          library
1593
  --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1594
  --with-bugurl=URL       Direct users to URL to report a bug
1595
  --with-zlib             include zlib support (auto/yes/no) default=auto
1596
  --with-libiconv-prefix=DIR
1597
                          search for libiconv in DIR/include and DIR/lib
1598
  --with-system-readline  use installed readline library
1599
  --with-expat            include expat support (auto/yes/no)
1600
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1601
  --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1602
  --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1603
  --with-python           include python support (auto/yes/no/)
1604
  --without-included-regex
1605
                          don't use included regex; this is the default on
1606
                          systems with version 2 of the GNU C library (use
1607
                          with caution on other system)
1608
  --with-sysroot[=DIR]    search for usr/lib et al within DIR
1609
  --with-system-gdbinit=PATH
1610
                          automatically load a system-wide gdbinit file
1611
  --with-tcl              directory containing tcl configuration (tclConfig.sh)
1612
  --with-tk               directory containing tk configuration (tkConfig.sh)
1613
  --with-x                use the X Window System
1614
  --with-or1ksim=ARG      specify the Or1ksim installation directory
1615
                          explicitly (otherwise use default search paths)
1616
 
1617
Some influential environment variables:
1618
  CC          C compiler command
1619
  CFLAGS      C compiler flags
1620
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1621
              nonstandard directory 
1622
  LIBS        libraries to pass to the linker, e.g. -l
1623
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1624
              you have headers in a nonstandard directory 
1625
  CPP         C preprocessor
1626
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1627
              the first program found out of: `bison -y', `byacc', `yacc'.
1628
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1629
              This script will default YFLAGS to the empty string to avoid a
1630
              default value of `-d' given by some make applications.
1631
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1632
 
1633
Use these variables to override the choices made by `configure' or to help
1634
it to find libraries and programs with nonstandard names/locations.
1635
 
1636
Report bugs to the package provider.
1637
_ACEOF
1638
ac_status=$?
1639
fi
1640
 
1641
if test "$ac_init_help" = "recursive"; then
1642
  # If there are subdirs, report their specific --help.
1643
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644
    test -d "$ac_dir" ||
1645
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646
      continue
1647
    ac_builddir=.
1648
 
1649
case "$ac_dir" in
1650
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651
*)
1652
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653
  # A ".." for each directory in $ac_dir_suffix.
1654
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655
  case $ac_top_builddir_sub in
1656
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658
  esac ;;
1659
esac
1660
ac_abs_top_builddir=$ac_pwd
1661
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662
# for backward compatibility:
1663
ac_top_builddir=$ac_top_build_prefix
1664
 
1665
case $srcdir in
1666
  .)  # We are building in place.
1667
    ac_srcdir=.
1668
    ac_top_srcdir=$ac_top_builddir_sub
1669
    ac_abs_top_srcdir=$ac_pwd ;;
1670
  [\\/]* | ?:[\\/]* )  # Absolute name.
1671
    ac_srcdir=$srcdir$ac_dir_suffix;
1672
    ac_top_srcdir=$srcdir
1673
    ac_abs_top_srcdir=$srcdir ;;
1674
  *) # Relative name.
1675
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1677
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678
esac
1679
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
 
1681
    cd "$ac_dir" || { ac_status=$?; continue; }
1682
    # Check for guested configure.
1683
    if test -f "$ac_srcdir/configure.gnu"; then
1684
      echo &&
1685
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686
    elif test -f "$ac_srcdir/configure"; then
1687
      echo &&
1688
      $SHELL "$ac_srcdir/configure" --help=recursive
1689
    else
1690
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691
    fi || ac_status=$?
1692
    cd "$ac_pwd" || { ac_status=$?; break; }
1693
  done
1694
fi
1695
 
1696
test -n "$ac_init_help" && exit $ac_status
1697
if $ac_init_version; then
1698
  cat <<\_ACEOF
1699
configure
1700
generated by GNU Autoconf 2.64
1701
 
1702
Copyright (C) 2009 Free Software Foundation, Inc.
1703
This configure script is free software; the Free Software Foundation
1704
gives unlimited permission to copy, distribute and modify it.
1705
_ACEOF
1706
  exit
1707
fi
1708
 
1709
## ------------------------ ##
1710
## Autoconf initialization. ##
1711
## ------------------------ ##
1712
 
1713
# ac_fn_c_try_compile LINENO
1714
# --------------------------
1715
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1716
ac_fn_c_try_compile ()
1717
{
1718
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719
  rm -f conftest.$ac_objext
1720
  if { { ac_try="$ac_compile"
1721
case "(($ac_try" in
1722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723
  *) ac_try_echo=$ac_try;;
1724
esac
1725
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726
$as_echo "$ac_try_echo"; } >&5
1727
  (eval "$ac_compile") 2>conftest.err
1728
  ac_status=$?
1729
  if test -s conftest.err; then
1730
    grep -v '^ *+' conftest.err >conftest.er1
1731
    cat conftest.er1 >&5
1732
    mv -f conftest.er1 conftest.err
1733
  fi
1734
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735
  test $ac_status = 0; } && {
1736
         test -z "$ac_c_werror_flag" ||
1737
         test ! -s conftest.err
1738
       } && test -s conftest.$ac_objext; then :
1739
  ac_retval=0
1740
else
1741
  $as_echo "$as_me: failed program was:" >&5
1742
sed 's/^/| /' conftest.$ac_ext >&5
1743
 
1744
        ac_retval=1
1745
fi
1746
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747
  return $ac_retval
1748
 
1749
} # ac_fn_c_try_compile
1750
 
1751
# ac_fn_c_try_cpp LINENO
1752
# ----------------------
1753
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754
ac_fn_c_try_cpp ()
1755
{
1756
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1758
case "(($ac_try" in
1759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760
  *) ac_try_echo=$ac_try;;
1761
esac
1762
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763
$as_echo "$ac_try_echo"; } >&5
1764
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765
  ac_status=$?
1766
  if test -s conftest.err; then
1767
    grep -v '^ *+' conftest.err >conftest.er1
1768
    cat conftest.er1 >&5
1769
    mv -f conftest.er1 conftest.err
1770
  fi
1771
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772
  test $ac_status = 0; } >/dev/null && {
1773
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774
         test ! -s conftest.err
1775
       }; then :
1776
  ac_retval=0
1777
else
1778
  $as_echo "$as_me: failed program was:" >&5
1779
sed 's/^/| /' conftest.$ac_ext >&5
1780
 
1781
    ac_retval=1
1782
fi
1783
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784
  return $ac_retval
1785
 
1786
} # ac_fn_c_try_cpp
1787
 
1788
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789
# -------------------------------------------------------
1790
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791
# the include files in INCLUDES and setting the cache variable VAR
1792
# accordingly.
1793
ac_fn_c_check_header_mongrel ()
1794
{
1795
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798
$as_echo_n "checking for $2... " >&6; }
1799
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800
  $as_echo_n "(cached) " >&6
1801
fi
1802
eval ac_res=\$$3
1803
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804
$as_echo "$ac_res" >&6; }
1805
else
1806
  # Is the header compilable?
1807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808
$as_echo_n "checking $2 usability... " >&6; }
1809
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810
/* end confdefs.h.  */
1811
$4
1812
#include <$2>
1813
_ACEOF
1814
if ac_fn_c_try_compile "$LINENO"; then :
1815
  ac_header_compiler=yes
1816
else
1817
  ac_header_compiler=no
1818
fi
1819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821
$as_echo "$ac_header_compiler" >&6; }
1822
 
1823
# Is the header present?
1824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825
$as_echo_n "checking $2 presence... " >&6; }
1826
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827
/* end confdefs.h.  */
1828
#include <$2>
1829
_ACEOF
1830
if ac_fn_c_try_cpp "$LINENO"; then :
1831
  ac_header_preproc=yes
1832
else
1833
  ac_header_preproc=no
1834
fi
1835
rm -f conftest.err conftest.$ac_ext
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837
$as_echo "$ac_header_preproc" >&6; }
1838
 
1839
# So?  What about this header?
1840
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841
  yes:no: )
1842
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846
    ;;
1847
  no:yes:* )
1848
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1851
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1852
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1855
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1856
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858
    ;;
1859
esac
1860
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861
$as_echo_n "checking for $2... " >&6; }
1862
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1863
  $as_echo_n "(cached) " >&6
1864
else
1865
  eval "$3=\$ac_header_compiler"
1866
fi
1867
eval ac_res=\$$3
1868
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869
$as_echo "$ac_res" >&6; }
1870
fi
1871
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872
 
1873
} # ac_fn_c_check_header_mongrel
1874
 
1875
# ac_fn_c_try_run LINENO
1876
# ----------------------
1877
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878
# that executables *can* be run.
1879
ac_fn_c_try_run ()
1880
{
1881
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882
  if { { ac_try="$ac_link"
1883
case "(($ac_try" in
1884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885
  *) ac_try_echo=$ac_try;;
1886
esac
1887
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888
$as_echo "$ac_try_echo"; } >&5
1889
  (eval "$ac_link") 2>&5
1890
  ac_status=$?
1891
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893
  { { case "(($ac_try" in
1894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895
  *) ac_try_echo=$ac_try;;
1896
esac
1897
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898
$as_echo "$ac_try_echo"; } >&5
1899
  (eval "$ac_try") 2>&5
1900
  ac_status=$?
1901
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902
  test $ac_status = 0; }; }; then :
1903
  ac_retval=0
1904
else
1905
  $as_echo "$as_me: program exited with status $ac_status" >&5
1906
       $as_echo "$as_me: failed program was:" >&5
1907
sed 's/^/| /' conftest.$ac_ext >&5
1908
 
1909
       ac_retval=$ac_status
1910
fi
1911
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913
  return $ac_retval
1914
 
1915
} # ac_fn_c_try_run
1916
 
1917
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918
# -------------------------------------------------------
1919
# Tests whether HEADER exists and can be compiled using the include files in
1920
# INCLUDES, setting the cache variable VAR accordingly.
1921
ac_fn_c_check_header_compile ()
1922
{
1923
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925
$as_echo_n "checking for $2... " >&6; }
1926
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927
  $as_echo_n "(cached) " >&6
1928
else
1929
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930
/* end confdefs.h.  */
1931
$4
1932
#include <$2>
1933
_ACEOF
1934
if ac_fn_c_try_compile "$LINENO"; then :
1935
  eval "$3=yes"
1936
else
1937
  eval "$3=no"
1938
fi
1939
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940
fi
1941
eval ac_res=\$$3
1942
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943
$as_echo "$ac_res" >&6; }
1944
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
 
1946
} # ac_fn_c_check_header_compile
1947
 
1948
# ac_fn_c_try_link LINENO
1949
# -----------------------
1950
# Try to link conftest.$ac_ext, and return whether this succeeded.
1951
ac_fn_c_try_link ()
1952
{
1953
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954
  rm -f conftest.$ac_objext conftest$ac_exeext
1955
  if { { ac_try="$ac_link"
1956
case "(($ac_try" in
1957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958
  *) ac_try_echo=$ac_try;;
1959
esac
1960
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961
$as_echo "$ac_try_echo"; } >&5
1962
  (eval "$ac_link") 2>conftest.err
1963
  ac_status=$?
1964
  if test -s conftest.err; then
1965
    grep -v '^ *+' conftest.err >conftest.er1
1966
    cat conftest.er1 >&5
1967
    mv -f conftest.er1 conftest.err
1968
  fi
1969
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970
  test $ac_status = 0; } && {
1971
         test -z "$ac_c_werror_flag" ||
1972
         test ! -s conftest.err
1973
       } && test -s conftest$ac_exeext && {
1974
         test "$cross_compiling" = yes ||
1975
         $as_test_x conftest$ac_exeext
1976
       }; then :
1977
  ac_retval=0
1978
else
1979
  $as_echo "$as_me: failed program was:" >&5
1980
sed 's/^/| /' conftest.$ac_ext >&5
1981
 
1982
        ac_retval=1
1983
fi
1984
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986
  # interfere with the next link command; also delete a directory that is
1987
  # left behind by Apple's compiler.  We do this before executing the actions.
1988
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990
  return $ac_retval
1991
 
1992
} # ac_fn_c_try_link
1993
 
1994
# ac_fn_c_check_func LINENO FUNC VAR
1995
# ----------------------------------
1996
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1997
ac_fn_c_check_func ()
1998
{
1999
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001
$as_echo_n "checking for $2... " >&6; }
2002
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003
  $as_echo_n "(cached) " >&6
2004
else
2005
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006
/* end confdefs.h.  */
2007
/* Define $2 to an innocuous variant, in case  declares $2.
2008
   For example, HP-UX 11i  declares gettimeofday.  */
2009
#define $2 innocuous_$2
2010
 
2011
/* System header to define __stub macros and hopefully few prototypes,
2012
    which can conflict with char $2 (); below.
2013
    Prefer  to  if __STDC__ is defined, since
2014
     exists even on freestanding compilers.  */
2015
 
2016
#ifdef __STDC__
2017
# include 
2018
#else
2019
# include 
2020
#endif
2021
 
2022
#undef $2
2023
 
2024
/* Override any GCC internal prototype to avoid an error.
2025
   Use char because int might match the return type of a GCC
2026
   builtin and then its argument prototype would still apply.  */
2027
#ifdef __cplusplus
2028
extern "C"
2029
#endif
2030
char $2 ();
2031
/* The GNU C library defines this for functions which it implements
2032
    to always fail with ENOSYS.  Some functions are actually named
2033
    something starting with __ and the normal name is an alias.  */
2034
#if defined __stub_$2 || defined __stub___$2
2035
choke me
2036
#endif
2037
 
2038
int
2039
main ()
2040
{
2041
return $2 ();
2042
  ;
2043
  return 0;
2044
}
2045
_ACEOF
2046
if ac_fn_c_try_link "$LINENO"; then :
2047
  eval "$3=yes"
2048
else
2049
  eval "$3=no"
2050
fi
2051
rm -f core conftest.err conftest.$ac_objext \
2052
    conftest$ac_exeext conftest.$ac_ext
2053
fi
2054
eval ac_res=\$$3
2055
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056
$as_echo "$ac_res" >&6; }
2057
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058
 
2059
} # ac_fn_c_check_func
2060
 
2061
# ac_fn_c_check_decl LINENO SYMBOL VAR
2062
# ------------------------------------
2063
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2064
ac_fn_c_check_decl ()
2065
{
2066
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2068
$as_echo_n "checking whether $2 is declared... " >&6; }
2069
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2070
  $as_echo_n "(cached) " >&6
2071
else
2072
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073
/* end confdefs.h.  */
2074
$4
2075
int
2076
main ()
2077
{
2078
#ifndef $2
2079
  (void) $2;
2080
#endif
2081
 
2082
  ;
2083
  return 0;
2084
}
2085
_ACEOF
2086
if ac_fn_c_try_compile "$LINENO"; then :
2087
  eval "$3=yes"
2088
else
2089
  eval "$3=no"
2090
fi
2091
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092
fi
2093
eval ac_res=\$$3
2094
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095
$as_echo "$ac_res" >&6; }
2096
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097
 
2098
} # ac_fn_c_check_decl
2099
 
2100
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2101
# --------------------------------------------
2102
# Tries to find the compile-time value of EXPR in a program that includes
2103
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2104
# computed
2105
ac_fn_c_compute_int ()
2106
{
2107
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108
  if test "$cross_compiling" = yes; then
2109
    # Depending upon the size, compute the lo and hi bounds.
2110
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111
/* end confdefs.h.  */
2112
$4
2113
int
2114
main ()
2115
{
2116
static int test_array [1 - 2 * !(($2) >= 0)];
2117
test_array [0] = 0
2118
 
2119
  ;
2120
  return 0;
2121
}
2122
_ACEOF
2123
if ac_fn_c_try_compile "$LINENO"; then :
2124
  ac_lo=0 ac_mid=0
2125
  while :; do
2126
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127
/* end confdefs.h.  */
2128
$4
2129
int
2130
main ()
2131
{
2132
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2133
test_array [0] = 0
2134
 
2135
  ;
2136
  return 0;
2137
}
2138
_ACEOF
2139
if ac_fn_c_try_compile "$LINENO"; then :
2140
  ac_hi=$ac_mid; break
2141
else
2142
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2143
                        if test $ac_lo -le $ac_mid; then
2144
                          ac_lo= ac_hi=
2145
                          break
2146
                        fi
2147
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2148
fi
2149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150
  done
2151
else
2152
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153
/* end confdefs.h.  */
2154
$4
2155
int
2156
main ()
2157
{
2158
static int test_array [1 - 2 * !(($2) < 0)];
2159
test_array [0] = 0
2160
 
2161
  ;
2162
  return 0;
2163
}
2164
_ACEOF
2165
if ac_fn_c_try_compile "$LINENO"; then :
2166
  ac_hi=-1 ac_mid=-1
2167
  while :; do
2168
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169
/* end confdefs.h.  */
2170
$4
2171
int
2172
main ()
2173
{
2174
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2175
test_array [0] = 0
2176
 
2177
  ;
2178
  return 0;
2179
}
2180
_ACEOF
2181
if ac_fn_c_try_compile "$LINENO"; then :
2182
  ac_lo=$ac_mid; break
2183
else
2184
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2185
                        if test $ac_mid -le $ac_hi; then
2186
                          ac_lo= ac_hi=
2187
                          break
2188
                        fi
2189
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2190
fi
2191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192
  done
2193
else
2194
  ac_lo= ac_hi=
2195
fi
2196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197
fi
2198
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199
# Binary search between lo and hi bounds.
2200
while test "x$ac_lo" != "x$ac_hi"; do
2201
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2202
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203
/* end confdefs.h.  */
2204
$4
2205
int
2206
main ()
2207
{
2208
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2209
test_array [0] = 0
2210
 
2211
  ;
2212
  return 0;
2213
}
2214
_ACEOF
2215
if ac_fn_c_try_compile "$LINENO"; then :
2216
  ac_hi=$ac_mid
2217
else
2218
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2219
fi
2220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221
done
2222
case $ac_lo in #((
2223
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2224
'') ac_retval=1 ;;
2225
esac
2226
  else
2227
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228
/* end confdefs.h.  */
2229
$4
2230
static long int longval () { return $2; }
2231
static unsigned long int ulongval () { return $2; }
2232
#include 
2233
#include 
2234
int
2235
main ()
2236
{
2237
 
2238
  FILE *f = fopen ("conftest.val", "w");
2239
  if (! f)
2240
    return 1;
2241
  if (($2) < 0)
2242
    {
2243
      long int i = longval ();
2244
      if (i != ($2))
2245
        return 1;
2246
      fprintf (f, "%ld", i);
2247
    }
2248
  else
2249
    {
2250
      unsigned long int i = ulongval ();
2251
      if (i != ($2))
2252
        return 1;
2253
      fprintf (f, "%lu", i);
2254
    }
2255
  /* Do not output a trailing newline, as this causes \r\n confusion
2256
     on some platforms.  */
2257
  return ferror (f) || fclose (f) != 0;
2258
 
2259
  ;
2260
  return 0;
2261
}
2262
_ACEOF
2263
if ac_fn_c_try_run "$LINENO"; then :
2264
  echo >>conftest.val; read $3 
2265
else
2266
  ac_retval=1
2267
fi
2268
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2269
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2270
rm -f conftest.val
2271
 
2272
  fi
2273
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
  return $ac_retval
2275
 
2276
} # ac_fn_c_compute_int
2277
 
2278
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2279
# ----------------------------------------------------
2280
# Tries to find if the field MEMBER exists in type AGGR, after including
2281
# INCLUDES, setting cache variable VAR accordingly.
2282
ac_fn_c_check_member ()
2283
{
2284
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2286
$as_echo_n "checking for $2.$3... " >&6; }
2287
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2288
  $as_echo_n "(cached) " >&6
2289
else
2290
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291
/* end confdefs.h.  */
2292
$5
2293
int
2294
main ()
2295
{
2296
static $2 ac_aggr;
2297
if (ac_aggr.$3)
2298
return 0;
2299
  ;
2300
  return 0;
2301
}
2302
_ACEOF
2303
if ac_fn_c_try_compile "$LINENO"; then :
2304
  eval "$4=yes"
2305
else
2306
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307
/* end confdefs.h.  */
2308
$5
2309
int
2310
main ()
2311
{
2312
static $2 ac_aggr;
2313
if (sizeof ac_aggr.$3)
2314
return 0;
2315
  ;
2316
  return 0;
2317
}
2318
_ACEOF
2319
if ac_fn_c_try_compile "$LINENO"; then :
2320
  eval "$4=yes"
2321
else
2322
  eval "$4=no"
2323
fi
2324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325
fi
2326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327
fi
2328
eval ac_res=\$$4
2329
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330
$as_echo "$ac_res" >&6; }
2331
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332
 
2333
} # ac_fn_c_check_member
2334
 
2335
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2336
# -------------------------------------------
2337
# Tests whether TYPE exists after having included INCLUDES, setting cache
2338
# variable VAR accordingly.
2339
ac_fn_c_check_type ()
2340
{
2341
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343
$as_echo_n "checking for $2... " >&6; }
2344
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345
  $as_echo_n "(cached) " >&6
2346
else
2347
  eval "$3=no"
2348
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349
/* end confdefs.h.  */
2350
$4
2351
int
2352
main ()
2353
{
2354
if (sizeof ($2))
2355
         return 0;
2356
  ;
2357
  return 0;
2358
}
2359
_ACEOF
2360
if ac_fn_c_try_compile "$LINENO"; then :
2361
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362
/* end confdefs.h.  */
2363
$4
2364
int
2365
main ()
2366
{
2367
if (sizeof (($2)))
2368
            return 0;
2369
  ;
2370
  return 0;
2371
}
2372
_ACEOF
2373
if ac_fn_c_try_compile "$LINENO"; then :
2374
 
2375
else
2376
  eval "$3=yes"
2377
fi
2378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379
fi
2380
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381
fi
2382
eval ac_res=\$$3
2383
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384
$as_echo "$ac_res" >&6; }
2385
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386
 
2387
} # ac_fn_c_check_type
2388
cat >config.log <<_ACEOF
2389
This file contains any messages produced by compilers while
2390
running configure, to aid debugging if configure makes a mistake.
2391
 
2392
It was created by $as_me, which was
2393
generated by GNU Autoconf 2.64.  Invocation command line was
2394
 
2395
  $ $0 $@
2396
 
2397
_ACEOF
2398
exec 5>>config.log
2399
{
2400
cat <<_ASUNAME
2401
## --------- ##
2402
## Platform. ##
2403
## --------- ##
2404
 
2405
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2406
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2407
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2408
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2409
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2410
 
2411
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2412
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2413
 
2414
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2415
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2416
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2417
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2418
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2419
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2420
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2421
 
2422
_ASUNAME
2423
 
2424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425
for as_dir in $PATH
2426
do
2427
  IFS=$as_save_IFS
2428
  test -z "$as_dir" && as_dir=.
2429
    $as_echo "PATH: $as_dir"
2430
  done
2431
IFS=$as_save_IFS
2432
 
2433
} >&5
2434
 
2435
cat >&5 <<_ACEOF
2436
 
2437
 
2438
## ----------- ##
2439
## Core tests. ##
2440
## ----------- ##
2441
 
2442
_ACEOF
2443
 
2444
 
2445
# Keep a trace of the command line.
2446
# Strip out --no-create and --no-recursion so they do not pile up.
2447
# Strip out --silent because we don't want to record it for future runs.
2448
# Also quote any args containing shell meta-characters.
2449
# Make two passes to allow for proper duplicate-argument suppression.
2450
ac_configure_args=
2451
ac_configure_args0=
2452
ac_configure_args1=
2453
ac_must_keep_next=false
2454
for ac_pass in 1 2
2455
do
2456
  for ac_arg
2457
  do
2458
    case $ac_arg in
2459
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2460
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2461
    | -silent | --silent | --silen | --sile | --sil)
2462
      continue ;;
2463
    *\'*)
2464
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2465
    esac
2466
    case $ac_pass in
2467
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2468
    2)
2469
      as_fn_append ac_configure_args1 " '$ac_arg'"
2470
      if test $ac_must_keep_next = true; then
2471
        ac_must_keep_next=false # Got value, back to normal.
2472
      else
2473
        case $ac_arg in
2474
          *=* | --config-cache | -C | -disable-* | --disable-* \
2475
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2476
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2477
          | -with-* | --with-* | -without-* | --without-* | --x)
2478
            case "$ac_configure_args0 " in
2479
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2480
            esac
2481
            ;;
2482
          -* ) ac_must_keep_next=true ;;
2483
        esac
2484
      fi
2485
      as_fn_append ac_configure_args " '$ac_arg'"
2486
      ;;
2487
    esac
2488
  done
2489
done
2490
{ ac_configure_args0=; unset ac_configure_args0;}
2491
{ ac_configure_args1=; unset ac_configure_args1;}
2492
 
2493
# When interrupted or exit'd, cleanup temporary files, and complete
2494
# config.log.  We remove comments because anyway the quotes in there
2495
# would cause problems or look ugly.
2496
# WARNING: Use '\'' to represent an apostrophe within the trap.
2497
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2498
trap 'exit_status=$?
2499
  # Save into config.log some information that might help in debugging.
2500
  {
2501
    echo
2502
 
2503
    cat <<\_ASBOX
2504
## ---------------- ##
2505
## Cache variables. ##
2506
## ---------------- ##
2507
_ASBOX
2508
    echo
2509
    # The following way of writing the cache mishandles newlines in values,
2510
(
2511
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2512
    eval ac_val=\$$ac_var
2513
    case $ac_val in #(
2514
    *${as_nl}*)
2515
      case $ac_var in #(
2516
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2517
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2518
      esac
2519
      case $ac_var in #(
2520
      _ | IFS | as_nl) ;; #(
2521
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2522
      *) { eval $ac_var=; unset $ac_var;} ;;
2523
      esac ;;
2524
    esac
2525
  done
2526
  (set) 2>&1 |
2527
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2528
    *${as_nl}ac_space=\ *)
2529
      sed -n \
2530
        "s/'\''/'\''\\\\'\'''\''/g;
2531
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2532
      ;; #(
2533
    *)
2534
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2535
      ;;
2536
    esac |
2537
    sort
2538
)
2539
    echo
2540
 
2541
    cat <<\_ASBOX
2542
## ----------------- ##
2543
## Output variables. ##
2544
## ----------------- ##
2545
_ASBOX
2546
    echo
2547
    for ac_var in $ac_subst_vars
2548
    do
2549
      eval ac_val=\$$ac_var
2550
      case $ac_val in
2551
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2552
      esac
2553
      $as_echo "$ac_var='\''$ac_val'\''"
2554
    done | sort
2555
    echo
2556
 
2557
    if test -n "$ac_subst_files"; then
2558
      cat <<\_ASBOX
2559
## ------------------- ##
2560
## File substitutions. ##
2561
## ------------------- ##
2562
_ASBOX
2563
      echo
2564
      for ac_var in $ac_subst_files
2565
      do
2566
        eval ac_val=\$$ac_var
2567
        case $ac_val in
2568
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569
        esac
2570
        $as_echo "$ac_var='\''$ac_val'\''"
2571
      done | sort
2572
      echo
2573
    fi
2574
 
2575
    if test -s confdefs.h; then
2576
      cat <<\_ASBOX
2577
## ----------- ##
2578
## confdefs.h. ##
2579
## ----------- ##
2580
_ASBOX
2581
      echo
2582
      cat confdefs.h
2583
      echo
2584
    fi
2585
    test "$ac_signal" != 0 &&
2586
      $as_echo "$as_me: caught signal $ac_signal"
2587
    $as_echo "$as_me: exit $exit_status"
2588
  } >&5
2589
  rm -f core *.core core.conftest.* &&
2590
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2591
    exit $exit_status
2592
' 0
2593
for ac_signal in 1 2 13 15; do
2594
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2595
done
2596
ac_signal=0
2597
 
2598
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2599
rm -f -r conftest* confdefs.h
2600
 
2601
$as_echo "/* confdefs.h */" > confdefs.h
2602
 
2603
# Predefined preprocessor variables.
2604
 
2605
cat >>confdefs.h <<_ACEOF
2606
#define PACKAGE_NAME "$PACKAGE_NAME"
2607
_ACEOF
2608
 
2609
cat >>confdefs.h <<_ACEOF
2610
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2611
_ACEOF
2612
 
2613
cat >>confdefs.h <<_ACEOF
2614
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2615
_ACEOF
2616
 
2617
cat >>confdefs.h <<_ACEOF
2618
#define PACKAGE_STRING "$PACKAGE_STRING"
2619
_ACEOF
2620
 
2621
cat >>confdefs.h <<_ACEOF
2622
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2623
_ACEOF
2624
 
2625
cat >>confdefs.h <<_ACEOF
2626
#define PACKAGE_URL "$PACKAGE_URL"
2627
_ACEOF
2628
 
2629
 
2630
# Let the site file select an alternate cache file if it wants to.
2631
# Prefer an explicitly selected file to automatically selected ones.
2632
ac_site_file1=NONE
2633
ac_site_file2=NONE
2634
if test -n "$CONFIG_SITE"; then
2635
  ac_site_file1=$CONFIG_SITE
2636
elif test "x$prefix" != xNONE; then
2637
  ac_site_file1=$prefix/share/config.site
2638
  ac_site_file2=$prefix/etc/config.site
2639
else
2640
  ac_site_file1=$ac_default_prefix/share/config.site
2641
  ac_site_file2=$ac_default_prefix/etc/config.site
2642
fi
2643
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2644
do
2645
  test "x$ac_site_file" = xNONE && continue
2646
  if test -r "$ac_site_file"; then
2647
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2648
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2649
    sed 's/^/| /' "$ac_site_file" >&5
2650
    . "$ac_site_file"
2651
  fi
2652
done
2653
 
2654
if test -r "$cache_file"; then
2655
  # Some versions of bash will fail to source /dev/null (special
2656
  # files actually), so we avoid doing that.
2657
  if test -f "$cache_file"; then
2658
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2659
$as_echo "$as_me: loading cache $cache_file" >&6;}
2660
    case $cache_file in
2661
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2662
      *)                      . "./$cache_file";;
2663
    esac
2664
  fi
2665
else
2666
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2667
$as_echo "$as_me: creating cache $cache_file" >&6;}
2668
  >$cache_file
2669
fi
2670
 
2671
gl_header_list="$gl_header_list stdint.h"
2672
gl_header_list="$gl_header_list wchar.h"
2673
gl_header_list="$gl_header_list string.h"
2674
# Check that the precious variables saved in the cache have kept the same
2675
# value.
2676
ac_cache_corrupted=false
2677
for ac_var in $ac_precious_vars; do
2678
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2679
  eval ac_new_set=\$ac_env_${ac_var}_set
2680
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2681
  eval ac_new_val=\$ac_env_${ac_var}_value
2682
  case $ac_old_set,$ac_new_set in
2683
    set,)
2684
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2685
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2686
      ac_cache_corrupted=: ;;
2687
    ,set)
2688
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2689
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2690
      ac_cache_corrupted=: ;;
2691
    ,);;
2692
    *)
2693
      if test "x$ac_old_val" != "x$ac_new_val"; then
2694
        # differences in whitespace do not lead to failure.
2695
        ac_old_val_w=`echo x $ac_old_val`
2696
        ac_new_val_w=`echo x $ac_new_val`
2697
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2698
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2699
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2700
          ac_cache_corrupted=:
2701
        else
2702
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2703
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2704
          eval $ac_var=\$ac_old_val
2705
        fi
2706
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2707
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2708
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2709
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2710
      fi;;
2711
  esac
2712
  # Pass precious variables to config.status.
2713
  if test "$ac_new_set" = set; then
2714
    case $ac_new_val in
2715
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2716
    *) ac_arg=$ac_var=$ac_new_val ;;
2717
    esac
2718
    case " $ac_configure_args " in
2719
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2720
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2721
    esac
2722
  fi
2723
done
2724
if $ac_cache_corrupted; then
2725
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2726
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2727
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2728
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2729
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2730
fi
2731
## -------------------- ##
2732
## Main body of script. ##
2733
## -------------------- ##
2734
 
2735
ac_ext=c
2736
ac_cpp='$CPP $CPPFLAGS'
2737
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
 
2741
 
2742
 
2743
 
2744
 
2745
ac_config_headers="$ac_config_headers config.h:config.in"
2746
 
2747
 
2748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2749
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2750
    # Check whether --enable-maintainer-mode was given.
2751
if test "${enable_maintainer_mode+set}" = set; then :
2752
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2753
else
2754
  USE_MAINTAINER_MODE=no
2755
fi
2756
 
2757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2758
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2759
   if test $USE_MAINTAINER_MODE = yes; then
2760
  MAINTAINER_MODE_TRUE=
2761
  MAINTAINER_MODE_FALSE='#'
2762
else
2763
  MAINTAINER_MODE_TRUE='#'
2764
  MAINTAINER_MODE_FALSE=
2765
fi
2766
 
2767
  MAINT=$MAINTAINER_MODE_TRUE
2768
 
2769
 
2770
 
2771
ac_ext=c
2772
ac_cpp='$CPP $CPPFLAGS'
2773
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
if test -n "$ac_tool_prefix"; then
2777
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2778
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780
$as_echo_n "checking for $ac_word... " >&6; }
2781
if test "${ac_cv_prog_CC+set}" = set; then :
2782
  $as_echo_n "(cached) " >&6
2783
else
2784
  if test -n "$CC"; then
2785
  ac_cv_prog_CC="$CC" # Let the user override the test.
2786
else
2787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788
for as_dir in $PATH
2789
do
2790
  IFS=$as_save_IFS
2791
  test -z "$as_dir" && as_dir=.
2792
    for ac_exec_ext in '' $ac_executable_extensions; do
2793
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2795
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796
    break 2
2797
  fi
2798
done
2799
  done
2800
IFS=$as_save_IFS
2801
 
2802
fi
2803
fi
2804
CC=$ac_cv_prog_CC
2805
if test -n "$CC"; then
2806
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807
$as_echo "$CC" >&6; }
2808
else
2809
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810
$as_echo "no" >&6; }
2811
fi
2812
 
2813
 
2814
fi
2815
if test -z "$ac_cv_prog_CC"; then
2816
  ac_ct_CC=$CC
2817
  # Extract the first word of "gcc", so it can be a program name with args.
2818
set dummy gcc; ac_word=$2
2819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820
$as_echo_n "checking for $ac_word... " >&6; }
2821
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2822
  $as_echo_n "(cached) " >&6
2823
else
2824
  if test -n "$ac_ct_CC"; then
2825
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2826
else
2827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828
for as_dir in $PATH
2829
do
2830
  IFS=$as_save_IFS
2831
  test -z "$as_dir" && as_dir=.
2832
    for ac_exec_ext in '' $ac_executable_extensions; do
2833
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834
    ac_cv_prog_ac_ct_CC="gcc"
2835
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836
    break 2
2837
  fi
2838
done
2839
  done
2840
IFS=$as_save_IFS
2841
 
2842
fi
2843
fi
2844
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845
if test -n "$ac_ct_CC"; then
2846
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2847
$as_echo "$ac_ct_CC" >&6; }
2848
else
2849
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850
$as_echo "no" >&6; }
2851
fi
2852
 
2853
  if test "x$ac_ct_CC" = x; then
2854
    CC=""
2855
  else
2856
    case $cross_compiling:$ac_tool_warned in
2857
yes:)
2858
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860
ac_tool_warned=yes ;;
2861
esac
2862
    CC=$ac_ct_CC
2863
  fi
2864
else
2865
  CC="$ac_cv_prog_CC"
2866
fi
2867
 
2868
if test -z "$CC"; then
2869
          if test -n "$ac_tool_prefix"; then
2870
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2871
set dummy ${ac_tool_prefix}cc; ac_word=$2
2872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873
$as_echo_n "checking for $ac_word... " >&6; }
2874
if test "${ac_cv_prog_CC+set}" = set; then :
2875
  $as_echo_n "(cached) " >&6
2876
else
2877
  if test -n "$CC"; then
2878
  ac_cv_prog_CC="$CC" # Let the user override the test.
2879
else
2880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881
for as_dir in $PATH
2882
do
2883
  IFS=$as_save_IFS
2884
  test -z "$as_dir" && as_dir=.
2885
    for ac_exec_ext in '' $ac_executable_extensions; do
2886
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2888
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889
    break 2
2890
  fi
2891
done
2892
  done
2893
IFS=$as_save_IFS
2894
 
2895
fi
2896
fi
2897
CC=$ac_cv_prog_CC
2898
if test -n "$CC"; then
2899
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900
$as_echo "$CC" >&6; }
2901
else
2902
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903
$as_echo "no" >&6; }
2904
fi
2905
 
2906
 
2907
  fi
2908
fi
2909
if test -z "$CC"; then
2910
  # Extract the first word of "cc", so it can be a program name with args.
2911
set dummy cc; ac_word=$2
2912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913
$as_echo_n "checking for $ac_word... " >&6; }
2914
if test "${ac_cv_prog_CC+set}" = set; then :
2915
  $as_echo_n "(cached) " >&6
2916
else
2917
  if test -n "$CC"; then
2918
  ac_cv_prog_CC="$CC" # Let the user override the test.
2919
else
2920
  ac_prog_rejected=no
2921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922
for as_dir in $PATH
2923
do
2924
  IFS=$as_save_IFS
2925
  test -z "$as_dir" && as_dir=.
2926
    for ac_exec_ext in '' $ac_executable_extensions; do
2927
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2929
       ac_prog_rejected=yes
2930
       continue
2931
     fi
2932
    ac_cv_prog_CC="cc"
2933
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934
    break 2
2935
  fi
2936
done
2937
  done
2938
IFS=$as_save_IFS
2939
 
2940
if test $ac_prog_rejected = yes; then
2941
  # We found a bogon in the path, so make sure we never use it.
2942
  set dummy $ac_cv_prog_CC
2943
  shift
2944
  if test $# != 0; then
2945
    # We chose a different compiler from the bogus one.
2946
    # However, it has the same basename, so the bogon will be chosen
2947
    # first if we set CC to just the basename; use the full file name.
2948
    shift
2949
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2950
  fi
2951
fi
2952
fi
2953
fi
2954
CC=$ac_cv_prog_CC
2955
if test -n "$CC"; then
2956
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957
$as_echo "$CC" >&6; }
2958
else
2959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960
$as_echo "no" >&6; }
2961
fi
2962
 
2963
 
2964
fi
2965
if test -z "$CC"; then
2966
  if test -n "$ac_tool_prefix"; then
2967
  for ac_prog in cl.exe
2968
  do
2969
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2970
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972
$as_echo_n "checking for $ac_word... " >&6; }
2973
if test "${ac_cv_prog_CC+set}" = set; then :
2974
  $as_echo_n "(cached) " >&6
2975
else
2976
  if test -n "$CC"; then
2977
  ac_cv_prog_CC="$CC" # Let the user override the test.
2978
else
2979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980
for as_dir in $PATH
2981
do
2982
  IFS=$as_save_IFS
2983
  test -z "$as_dir" && as_dir=.
2984
    for ac_exec_ext in '' $ac_executable_extensions; do
2985
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2987
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988
    break 2
2989
  fi
2990
done
2991
  done
2992
IFS=$as_save_IFS
2993
 
2994
fi
2995
fi
2996
CC=$ac_cv_prog_CC
2997
if test -n "$CC"; then
2998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999
$as_echo "$CC" >&6; }
3000
else
3001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002
$as_echo "no" >&6; }
3003
fi
3004
 
3005
 
3006
    test -n "$CC" && break
3007
  done
3008
fi
3009
if test -z "$CC"; then
3010
  ac_ct_CC=$CC
3011
  for ac_prog in cl.exe
3012
do
3013
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3014
set dummy $ac_prog; ac_word=$2
3015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016
$as_echo_n "checking for $ac_word... " >&6; }
3017
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3018
  $as_echo_n "(cached) " >&6
3019
else
3020
  if test -n "$ac_ct_CC"; then
3021
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022
else
3023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024
for as_dir in $PATH
3025
do
3026
  IFS=$as_save_IFS
3027
  test -z "$as_dir" && as_dir=.
3028
    for ac_exec_ext in '' $ac_executable_extensions; do
3029
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030
    ac_cv_prog_ac_ct_CC="$ac_prog"
3031
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032
    break 2
3033
  fi
3034
done
3035
  done
3036
IFS=$as_save_IFS
3037
 
3038
fi
3039
fi
3040
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041
if test -n "$ac_ct_CC"; then
3042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3043
$as_echo "$ac_ct_CC" >&6; }
3044
else
3045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046
$as_echo "no" >&6; }
3047
fi
3048
 
3049
 
3050
  test -n "$ac_ct_CC" && break
3051
done
3052
 
3053
  if test "x$ac_ct_CC" = x; then
3054
    CC=""
3055
  else
3056
    case $cross_compiling:$ac_tool_warned in
3057
yes:)
3058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3059
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3060
ac_tool_warned=yes ;;
3061
esac
3062
    CC=$ac_ct_CC
3063
  fi
3064
fi
3065
 
3066
fi
3067
 
3068
 
3069
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071
as_fn_error "no acceptable C compiler found in \$PATH
3072
See \`config.log' for more details." "$LINENO" 5; }
3073
 
3074
# Provide some information about the compiler.
3075
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3076
set X $ac_compile
3077
ac_compiler=$2
3078
for ac_option in --version -v -V -qversion; do
3079
  { { ac_try="$ac_compiler $ac_option >&5"
3080
case "(($ac_try" in
3081
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082
  *) ac_try_echo=$ac_try;;
3083
esac
3084
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085
$as_echo "$ac_try_echo"; } >&5
3086
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3087
  ac_status=$?
3088
  if test -s conftest.err; then
3089
    sed '10a\
3090
... rest of stderr output deleted ...
3091
         10q' conftest.err >conftest.er1
3092
    cat conftest.er1 >&5
3093
    rm -f conftest.er1 conftest.err
3094
  fi
3095
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096
  test $ac_status = 0; }
3097
done
3098
 
3099
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100
/* end confdefs.h.  */
3101
 
3102
int
3103
main ()
3104
{
3105
 
3106
  ;
3107
  return 0;
3108
}
3109
_ACEOF
3110
ac_clean_files_save=$ac_clean_files
3111
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3112
# Try to create an executable without -o first, disregard a.out.
3113
# It will help us diagnose broken compilers, and finding out an intuition
3114
# of exeext.
3115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3116
$as_echo_n "checking for C compiler default output file name... " >&6; }
3117
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3118
 
3119
# The possible output files:
3120
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3121
 
3122
ac_rmfiles=
3123
for ac_file in $ac_files
3124
do
3125
  case $ac_file in
3126
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3127
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3128
  esac
3129
done
3130
rm -f $ac_rmfiles
3131
 
3132
if { { ac_try="$ac_link_default"
3133
case "(($ac_try" in
3134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135
  *) ac_try_echo=$ac_try;;
3136
esac
3137
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138
$as_echo "$ac_try_echo"; } >&5
3139
  (eval "$ac_link_default") 2>&5
3140
  ac_status=$?
3141
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142
  test $ac_status = 0; }; then :
3143
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3144
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3145
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3146
# so that the user can short-circuit this test for compilers unknown to
3147
# Autoconf.
3148
for ac_file in $ac_files ''
3149
do
3150
  test -f "$ac_file" || continue
3151
  case $ac_file in
3152
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3153
        ;;
3154
    [ab].out )
3155
        # We found the default executable, but exeext='' is most
3156
        # certainly right.
3157
        break;;
3158
    *.* )
3159
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3160
        then :; else
3161
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3162
        fi
3163
        # We set ac_cv_exeext here because the later test for it is not
3164
        # safe: cross compilers may not add the suffix if given an `-o'
3165
        # argument, so we may need to know it at that point already.
3166
        # Even if this section looks crufty: it has the advantage of
3167
        # actually working.
3168
        break;;
3169
    * )
3170
        break;;
3171
  esac
3172
done
3173
test "$ac_cv_exeext" = no && ac_cv_exeext=
3174
 
3175
else
3176
  ac_file=''
3177
fi
3178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3179
$as_echo "$ac_file" >&6; }
3180
if test -z "$ac_file"; then :
3181
  $as_echo "$as_me: failed program was:" >&5
3182
sed 's/^/| /' conftest.$ac_ext >&5
3183
 
3184
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186
{ as_fn_set_status 77
3187
as_fn_error "C compiler cannot create executables
3188
See \`config.log' for more details." "$LINENO" 5; }; }
3189
fi
3190
ac_exeext=$ac_cv_exeext
3191
 
3192
# Check that the compiler produces executables we can run.  If not, either
3193
# the compiler is broken, or we cross compile.
3194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3195
$as_echo_n "checking whether the C compiler works... " >&6; }
3196
# If not cross compiling, check that we can run a simple program.
3197
if test "$cross_compiling" != yes; then
3198
  if { ac_try='./$ac_file'
3199
  { { case "(($ac_try" in
3200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201
  *) ac_try_echo=$ac_try;;
3202
esac
3203
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204
$as_echo "$ac_try_echo"; } >&5
3205
  (eval "$ac_try") 2>&5
3206
  ac_status=$?
3207
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208
  test $ac_status = 0; }; }; then
3209
    cross_compiling=no
3210
  else
3211
    if test "$cross_compiling" = maybe; then
3212
        cross_compiling=yes
3213
    else
3214
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216
as_fn_error "cannot run C compiled programs.
3217
If you meant to cross compile, use \`--host'.
3218
See \`config.log' for more details." "$LINENO" 5; }
3219
    fi
3220
  fi
3221
fi
3222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223
$as_echo "yes" >&6; }
3224
 
3225
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3226
ac_clean_files=$ac_clean_files_save
3227
# Check that the compiler produces executables we can run.  If not, either
3228
# the compiler is broken, or we cross compile.
3229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3230
$as_echo_n "checking whether we are cross compiling... " >&6; }
3231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3232
$as_echo "$cross_compiling" >&6; }
3233
 
3234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3235
$as_echo_n "checking for suffix of executables... " >&6; }
3236
if { { ac_try="$ac_link"
3237
case "(($ac_try" in
3238
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239
  *) ac_try_echo=$ac_try;;
3240
esac
3241
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242
$as_echo "$ac_try_echo"; } >&5
3243
  (eval "$ac_link") 2>&5
3244
  ac_status=$?
3245
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246
  test $ac_status = 0; }; then :
3247
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3248
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3249
# work properly (i.e., refer to `conftest.exe'), while it won't with
3250
# `rm'.
3251
for ac_file in conftest.exe conftest conftest.*; do
3252
  test -f "$ac_file" || continue
3253
  case $ac_file in
3254
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3255
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3256
          break;;
3257
    * ) break;;
3258
  esac
3259
done
3260
else
3261
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263
as_fn_error "cannot compute suffix of executables: cannot compile and link
3264
See \`config.log' for more details." "$LINENO" 5; }
3265
fi
3266
rm -f conftest$ac_cv_exeext
3267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3268
$as_echo "$ac_cv_exeext" >&6; }
3269
 
3270
rm -f conftest.$ac_ext
3271
EXEEXT=$ac_cv_exeext
3272
ac_exeext=$EXEEXT
3273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3274
$as_echo_n "checking for suffix of object files... " >&6; }
3275
if test "${ac_cv_objext+set}" = set; then :
3276
  $as_echo_n "(cached) " >&6
3277
else
3278
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279
/* end confdefs.h.  */
3280
 
3281
int
3282
main ()
3283
{
3284
 
3285
  ;
3286
  return 0;
3287
}
3288
_ACEOF
3289
rm -f conftest.o conftest.obj
3290
if { { ac_try="$ac_compile"
3291
case "(($ac_try" in
3292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293
  *) ac_try_echo=$ac_try;;
3294
esac
3295
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296
$as_echo "$ac_try_echo"; } >&5
3297
  (eval "$ac_compile") 2>&5
3298
  ac_status=$?
3299
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300
  test $ac_status = 0; }; then :
3301
  for ac_file in conftest.o conftest.obj conftest.*; do
3302
  test -f "$ac_file" || continue;
3303
  case $ac_file in
3304
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3305
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306
       break;;
3307
  esac
3308
done
3309
else
3310
  $as_echo "$as_me: failed program was:" >&5
3311
sed 's/^/| /' conftest.$ac_ext >&5
3312
 
3313
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315
as_fn_error "cannot compute suffix of object files: cannot compile
3316
See \`config.log' for more details." "$LINENO" 5; }
3317
fi
3318
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3319
fi
3320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3321
$as_echo "$ac_cv_objext" >&6; }
3322
OBJEXT=$ac_cv_objext
3323
ac_objext=$OBJEXT
3324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3325
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3326
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3327
  $as_echo_n "(cached) " >&6
3328
else
3329
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330
/* end confdefs.h.  */
3331
 
3332
int
3333
main ()
3334
{
3335
#ifndef __GNUC__
3336
       choke me
3337
#endif
3338
 
3339
  ;
3340
  return 0;
3341
}
3342
_ACEOF
3343
if ac_fn_c_try_compile "$LINENO"; then :
3344
  ac_compiler_gnu=yes
3345
else
3346
  ac_compiler_gnu=no
3347
fi
3348
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350
 
3351
fi
3352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3353
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3354
if test $ac_compiler_gnu = yes; then
3355
  GCC=yes
3356
else
3357
  GCC=
3358
fi
3359
ac_test_CFLAGS=${CFLAGS+set}
3360
ac_save_CFLAGS=$CFLAGS
3361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3362
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3363
if test "${ac_cv_prog_cc_g+set}" = set; then :
3364
  $as_echo_n "(cached) " >&6
3365
else
3366
  ac_save_c_werror_flag=$ac_c_werror_flag
3367
   ac_c_werror_flag=yes
3368
   ac_cv_prog_cc_g=no
3369
   CFLAGS="-g"
3370
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371
/* end confdefs.h.  */
3372
 
3373
int
3374
main ()
3375
{
3376
 
3377
  ;
3378
  return 0;
3379
}
3380
_ACEOF
3381
if ac_fn_c_try_compile "$LINENO"; then :
3382
  ac_cv_prog_cc_g=yes
3383
else
3384
  CFLAGS=""
3385
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386
/* end confdefs.h.  */
3387
 
3388
int
3389
main ()
3390
{
3391
 
3392
  ;
3393
  return 0;
3394
}
3395
_ACEOF
3396
if ac_fn_c_try_compile "$LINENO"; then :
3397
 
3398
else
3399
  ac_c_werror_flag=$ac_save_c_werror_flag
3400
         CFLAGS="-g"
3401
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402
/* end confdefs.h.  */
3403
 
3404
int
3405
main ()
3406
{
3407
 
3408
  ;
3409
  return 0;
3410
}
3411
_ACEOF
3412
if ac_fn_c_try_compile "$LINENO"; then :
3413
  ac_cv_prog_cc_g=yes
3414
fi
3415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416
fi
3417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418
fi
3419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420
   ac_c_werror_flag=$ac_save_c_werror_flag
3421
fi
3422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3423
$as_echo "$ac_cv_prog_cc_g" >&6; }
3424
if test "$ac_test_CFLAGS" = set; then
3425
  CFLAGS=$ac_save_CFLAGS
3426
elif test $ac_cv_prog_cc_g = yes; then
3427
  if test "$GCC" = yes; then
3428
    CFLAGS="-g -O2"
3429
  else
3430
    CFLAGS="-g"
3431
  fi
3432
else
3433
  if test "$GCC" = yes; then
3434
    CFLAGS="-O2"
3435
  else
3436
    CFLAGS=
3437
  fi
3438
fi
3439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3440
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3441
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3442
  $as_echo_n "(cached) " >&6
3443
else
3444
  ac_cv_prog_cc_c89=no
3445
ac_save_CC=$CC
3446
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447
/* end confdefs.h.  */
3448
#include 
3449
#include 
3450
#include 
3451
#include 
3452
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3453
struct buf { int x; };
3454
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3455
static char *e (p, i)
3456
     char **p;
3457
     int i;
3458
{
3459
  return p[i];
3460
}
3461
static char *f (char * (*g) (char **, int), char **p, ...)
3462
{
3463
  char *s;
3464
  va_list v;
3465
  va_start (v,p);
3466
  s = g (p, va_arg (v,int));
3467
  va_end (v);
3468
  return s;
3469
}
3470
 
3471
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3472
   function prototypes and stuff, but not '\xHH' hex character constants.
3473
   These don't provoke an error unfortunately, instead are silently treated
3474
   as 'x'.  The following induces an error, until -std is added to get
3475
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3476
   array size at least.  It's necessary to write '\x00'==0 to get something
3477
   that's true only with -std.  */
3478
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3479
 
3480
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3481
   inside strings and character constants.  */
3482
#define FOO(x) 'x'
3483
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3484
 
3485
int test (int i, double x);
3486
struct s1 {int (*f) (int a);};
3487
struct s2 {int (*f) (double a);};
3488
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3489
int argc;
3490
char **argv;
3491
int
3492
main ()
3493
{
3494
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3495
  ;
3496
  return 0;
3497
}
3498
_ACEOF
3499
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3500
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3501
do
3502
  CC="$ac_save_CC $ac_arg"
3503
  if ac_fn_c_try_compile "$LINENO"; then :
3504
  ac_cv_prog_cc_c89=$ac_arg
3505
fi
3506
rm -f core conftest.err conftest.$ac_objext
3507
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3508
done
3509
rm -f conftest.$ac_ext
3510
CC=$ac_save_CC
3511
 
3512
fi
3513
# AC_CACHE_VAL
3514
case "x$ac_cv_prog_cc_c89" in
3515
  x)
3516
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3517
$as_echo "none needed" >&6; } ;;
3518
  xno)
3519
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3520
$as_echo "unsupported" >&6; } ;;
3521
  *)
3522
    CC="$CC $ac_cv_prog_cc_c89"
3523
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3524
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3525
esac
3526
if test "x$ac_cv_prog_cc_c89" != xno; then :
3527
 
3528
fi
3529
 
3530
ac_ext=c
3531
ac_cpp='$CPP $CPPFLAGS'
3532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535
 
3536
 
3537
ac_ext=c
3538
ac_cpp='$CPP $CPPFLAGS'
3539
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3543
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3544
# On Suns, sometimes $CPP names a directory.
3545
if test -n "$CPP" && test -d "$CPP"; then
3546
  CPP=
3547
fi
3548
if test -z "$CPP"; then
3549
  if test "${ac_cv_prog_CPP+set}" = set; then :
3550
  $as_echo_n "(cached) " >&6
3551
else
3552
      # Double quotes because CPP needs to be expanded
3553
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3554
    do
3555
      ac_preproc_ok=false
3556
for ac_c_preproc_warn_flag in '' yes
3557
do
3558
  # Use a header file that comes with gcc, so configuring glibc
3559
  # with a fresh cross-compiler works.
3560
  # Prefer  to  if __STDC__ is defined, since
3561
  #  exists even on freestanding compilers.
3562
  # On the NeXT, cc -E runs the code through the compiler's parser,
3563
  # not just through cpp. "Syntax error" is here to catch this case.
3564
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565
/* end confdefs.h.  */
3566
#ifdef __STDC__
3567
# include 
3568
#else
3569
# include 
3570
#endif
3571
                     Syntax error
3572
_ACEOF
3573
if ac_fn_c_try_cpp "$LINENO"; then :
3574
 
3575
else
3576
  # Broken: fails on valid input.
3577
continue
3578
fi
3579
rm -f conftest.err conftest.$ac_ext
3580
 
3581
  # OK, works on sane cases.  Now check whether nonexistent headers
3582
  # can be detected and how.
3583
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584
/* end confdefs.h.  */
3585
#include 
3586
_ACEOF
3587
if ac_fn_c_try_cpp "$LINENO"; then :
3588
  # Broken: success on invalid input.
3589
continue
3590
else
3591
  # Passes both tests.
3592
ac_preproc_ok=:
3593
break
3594
fi
3595
rm -f conftest.err conftest.$ac_ext
3596
 
3597
done
3598
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599
rm -f conftest.err conftest.$ac_ext
3600
if $ac_preproc_ok; then :
3601
  break
3602
fi
3603
 
3604
    done
3605
    ac_cv_prog_CPP=$CPP
3606
 
3607
fi
3608
  CPP=$ac_cv_prog_CPP
3609
else
3610
  ac_cv_prog_CPP=$CPP
3611
fi
3612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3613
$as_echo "$CPP" >&6; }
3614
ac_preproc_ok=false
3615
for ac_c_preproc_warn_flag in '' yes
3616
do
3617
  # Use a header file that comes with gcc, so configuring glibc
3618
  # with a fresh cross-compiler works.
3619
  # Prefer  to  if __STDC__ is defined, since
3620
  #  exists even on freestanding compilers.
3621
  # On the NeXT, cc -E runs the code through the compiler's parser,
3622
  # not just through cpp. "Syntax error" is here to catch this case.
3623
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624
/* end confdefs.h.  */
3625
#ifdef __STDC__
3626
# include 
3627
#else
3628
# include 
3629
#endif
3630
                     Syntax error
3631
_ACEOF
3632
if ac_fn_c_try_cpp "$LINENO"; then :
3633
 
3634
else
3635
  # Broken: fails on valid input.
3636
continue
3637
fi
3638
rm -f conftest.err conftest.$ac_ext
3639
 
3640
  # OK, works on sane cases.  Now check whether nonexistent headers
3641
  # can be detected and how.
3642
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643
/* end confdefs.h.  */
3644
#include 
3645
_ACEOF
3646
if ac_fn_c_try_cpp "$LINENO"; then :
3647
  # Broken: success on invalid input.
3648
continue
3649
else
3650
  # Passes both tests.
3651
ac_preproc_ok=:
3652
break
3653
fi
3654
rm -f conftest.err conftest.$ac_ext
3655
 
3656
done
3657
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658
rm -f conftest.err conftest.$ac_ext
3659
if $ac_preproc_ok; then :
3660
 
3661
else
3662
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3665
See \`config.log' for more details." "$LINENO" 5; }
3666
fi
3667
 
3668
ac_ext=c
3669
ac_cpp='$CPP $CPPFLAGS'
3670
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
 
3674
 
3675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3676
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3677
if test "${ac_cv_path_GREP+set}" = set; then :
3678
  $as_echo_n "(cached) " >&6
3679
else
3680
  if test -z "$GREP"; then
3681
  ac_path_GREP_found=false
3682
  # Loop through the user's path and test for each of PROGNAME-LIST
3683
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3685
do
3686
  IFS=$as_save_IFS
3687
  test -z "$as_dir" && as_dir=.
3688
    for ac_prog in grep ggrep; do
3689
    for ac_exec_ext in '' $ac_executable_extensions; do
3690
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3691
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3692
# Check for GNU ac_path_GREP and select it if it is found.
3693
  # Check for GNU $ac_path_GREP
3694
case `"$ac_path_GREP" --version 2>&1` in
3695
*GNU*)
3696
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3697
*)
3698
  ac_count=0
3699
  $as_echo_n 0123456789 >"conftest.in"
3700
  while :
3701
  do
3702
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3703
    mv "conftest.tmp" "conftest.in"
3704
    cp "conftest.in" "conftest.nl"
3705
    $as_echo 'GREP' >> "conftest.nl"
3706
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3709
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710
      # Best one so far, save it but keep looking for a better one
3711
      ac_cv_path_GREP="$ac_path_GREP"
3712
      ac_path_GREP_max=$ac_count
3713
    fi
3714
    # 10*(2^10) chars as input seems more than enough
3715
    test $ac_count -gt 10 && break
3716
  done
3717
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718
esac
3719
 
3720
      $ac_path_GREP_found && break 3
3721
    done
3722
  done
3723
  done
3724
IFS=$as_save_IFS
3725
  if test -z "$ac_cv_path_GREP"; then
3726
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3727
  fi
3728
else
3729
  ac_cv_path_GREP=$GREP
3730
fi
3731
 
3732
fi
3733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3734
$as_echo "$ac_cv_path_GREP" >&6; }
3735
 GREP="$ac_cv_path_GREP"
3736
 
3737
 
3738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3739
$as_echo_n "checking for egrep... " >&6; }
3740
if test "${ac_cv_path_EGREP+set}" = set; then :
3741
  $as_echo_n "(cached) " >&6
3742
else
3743
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3744
   then ac_cv_path_EGREP="$GREP -E"
3745
   else
3746
     if test -z "$EGREP"; then
3747
  ac_path_EGREP_found=false
3748
  # Loop through the user's path and test for each of PROGNAME-LIST
3749
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3751
do
3752
  IFS=$as_save_IFS
3753
  test -z "$as_dir" && as_dir=.
3754
    for ac_prog in egrep; do
3755
    for ac_exec_ext in '' $ac_executable_extensions; do
3756
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3757
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3758
# Check for GNU ac_path_EGREP and select it if it is found.
3759
  # Check for GNU $ac_path_EGREP
3760
case `"$ac_path_EGREP" --version 2>&1` in
3761
*GNU*)
3762
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3763
*)
3764
  ac_count=0
3765
  $as_echo_n 0123456789 >"conftest.in"
3766
  while :
3767
  do
3768
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3769
    mv "conftest.tmp" "conftest.in"
3770
    cp "conftest.in" "conftest.nl"
3771
    $as_echo 'EGREP' >> "conftest.nl"
3772
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3773
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3774
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3775
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3776
      # Best one so far, save it but keep looking for a better one
3777
      ac_cv_path_EGREP="$ac_path_EGREP"
3778
      ac_path_EGREP_max=$ac_count
3779
    fi
3780
    # 10*(2^10) chars as input seems more than enough
3781
    test $ac_count -gt 10 && break
3782
  done
3783
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3784
esac
3785
 
3786
      $ac_path_EGREP_found && break 3
3787
    done
3788
  done
3789
  done
3790
IFS=$as_save_IFS
3791
  if test -z "$ac_cv_path_EGREP"; then
3792
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3793
  fi
3794
else
3795
  ac_cv_path_EGREP=$EGREP
3796
fi
3797
 
3798
   fi
3799
fi
3800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3801
$as_echo "$ac_cv_path_EGREP" >&6; }
3802
 EGREP="$ac_cv_path_EGREP"
3803
 
3804
 
3805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3806
$as_echo_n "checking for ANSI C header files... " >&6; }
3807
if test "${ac_cv_header_stdc+set}" = set; then :
3808
  $as_echo_n "(cached) " >&6
3809
else
3810
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811
/* end confdefs.h.  */
3812
#include 
3813
#include 
3814
#include 
3815
#include 
3816
 
3817
int
3818
main ()
3819
{
3820
 
3821
  ;
3822
  return 0;
3823
}
3824
_ACEOF
3825
if ac_fn_c_try_compile "$LINENO"; then :
3826
  ac_cv_header_stdc=yes
3827
else
3828
  ac_cv_header_stdc=no
3829
fi
3830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831
 
3832
if test $ac_cv_header_stdc = yes; then
3833
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3834
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835
/* end confdefs.h.  */
3836
#include 
3837
 
3838
_ACEOF
3839
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3840
  $EGREP "memchr" >/dev/null 2>&1; then :
3841
 
3842
else
3843
  ac_cv_header_stdc=no
3844
fi
3845
rm -f conftest*
3846
 
3847
fi
3848
 
3849
if test $ac_cv_header_stdc = yes; then
3850
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3851
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852
/* end confdefs.h.  */
3853
#include 
3854
 
3855
_ACEOF
3856
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857
  $EGREP "free" >/dev/null 2>&1; then :
3858
 
3859
else
3860
  ac_cv_header_stdc=no
3861
fi
3862
rm -f conftest*
3863
 
3864
fi
3865
 
3866
if test $ac_cv_header_stdc = yes; then
3867
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3868
  if test "$cross_compiling" = yes; then :
3869
  :
3870
else
3871
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872
/* end confdefs.h.  */
3873
#include 
3874
#include 
3875
#if ((' ' & 0x0FF) == 0x020)
3876
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3877
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3878
#else
3879
# define ISLOWER(c) \
3880
                   (('a' <= (c) && (c) <= 'i') \
3881
                     || ('j' <= (c) && (c) <= 'r') \
3882
                     || ('s' <= (c) && (c) <= 'z'))
3883
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3884
#endif
3885
 
3886
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3887
int
3888
main ()
3889
{
3890
  int i;
3891
  for (i = 0; i < 256; i++)
3892
    if (XOR (islower (i), ISLOWER (i))
3893
        || toupper (i) != TOUPPER (i))
3894
      return 2;
3895
  return 0;
3896
}
3897
_ACEOF
3898
if ac_fn_c_try_run "$LINENO"; then :
3899
 
3900
else
3901
  ac_cv_header_stdc=no
3902
fi
3903
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3904
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3905
fi
3906
 
3907
fi
3908
fi
3909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3910
$as_echo "$ac_cv_header_stdc" >&6; }
3911
if test $ac_cv_header_stdc = yes; then
3912
 
3913
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3914
 
3915
fi
3916
 
3917
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3918
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3919
                  inttypes.h stdint.h unistd.h
3920
do :
3921
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3922
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3923
"
3924
eval as_val=\$$as_ac_Header
3925
   if test "x$as_val" = x""yes; then :
3926
  cat >>confdefs.h <<_ACEOF
3927
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3928
_ACEOF
3929
 
3930
fi
3931
 
3932
done
3933
 
3934
 
3935
 
3936
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3937
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3938
  MINIX=yes
3939
else
3940
  MINIX=
3941
fi
3942
 
3943
 
3944
  if test "$MINIX" = yes; then
3945
 
3946
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3947
 
3948
 
3949
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3950
 
3951
 
3952
$as_echo "#define _MINIX 1" >>confdefs.h
3953
 
3954
  fi
3955
 
3956
 
3957
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3958
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3959
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3960
  $as_echo_n "(cached) " >&6
3961
else
3962
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963
/* end confdefs.h.  */
3964
 
3965
#         define __EXTENSIONS__ 1
3966
          $ac_includes_default
3967
int
3968
main ()
3969
{
3970
 
3971
  ;
3972
  return 0;
3973
}
3974
_ACEOF
3975
if ac_fn_c_try_compile "$LINENO"; then :
3976
  ac_cv_safe_to_define___extensions__=yes
3977
else
3978
  ac_cv_safe_to_define___extensions__=no
3979
fi
3980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981
fi
3982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3983
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3984
  test $ac_cv_safe_to_define___extensions__ = yes &&
3985
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3986
 
3987
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3988
 
3989
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3990
 
3991
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3992
 
3993
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3994
 
3995
 
3996
if test -n "$ac_tool_prefix"; then
3997
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3998
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000
$as_echo_n "checking for $ac_word... " >&6; }
4001
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4002
  $as_echo_n "(cached) " >&6
4003
else
4004
  if test -n "$RANLIB"; then
4005
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4006
else
4007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008
for as_dir in $PATH
4009
do
4010
  IFS=$as_save_IFS
4011
  test -z "$as_dir" && as_dir=.
4012
    for ac_exec_ext in '' $ac_executable_extensions; do
4013
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4015
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016
    break 2
4017
  fi
4018
done
4019
  done
4020
IFS=$as_save_IFS
4021
 
4022
fi
4023
fi
4024
RANLIB=$ac_cv_prog_RANLIB
4025
if test -n "$RANLIB"; then
4026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4027
$as_echo "$RANLIB" >&6; }
4028
else
4029
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030
$as_echo "no" >&6; }
4031
fi
4032
 
4033
 
4034
fi
4035
if test -z "$ac_cv_prog_RANLIB"; then
4036
  ac_ct_RANLIB=$RANLIB
4037
  # Extract the first word of "ranlib", so it can be a program name with args.
4038
set dummy ranlib; ac_word=$2
4039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040
$as_echo_n "checking for $ac_word... " >&6; }
4041
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4042
  $as_echo_n "(cached) " >&6
4043
else
4044
  if test -n "$ac_ct_RANLIB"; then
4045
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4046
else
4047
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048
for as_dir in $PATH
4049
do
4050
  IFS=$as_save_IFS
4051
  test -z "$as_dir" && as_dir=.
4052
    for ac_exec_ext in '' $ac_executable_extensions; do
4053
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4054
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4055
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056
    break 2
4057
  fi
4058
done
4059
  done
4060
IFS=$as_save_IFS
4061
 
4062
fi
4063
fi
4064
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4065
if test -n "$ac_ct_RANLIB"; then
4066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4067
$as_echo "$ac_ct_RANLIB" >&6; }
4068
else
4069
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070
$as_echo "no" >&6; }
4071
fi
4072
 
4073
  if test "x$ac_ct_RANLIB" = x; then
4074
    RANLIB=":"
4075
  else
4076
    case $cross_compiling:$ac_tool_warned in
4077
yes:)
4078
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080
ac_tool_warned=yes ;;
4081
esac
4082
    RANLIB=$ac_ct_RANLIB
4083
  fi
4084
else
4085
  RANLIB="$ac_cv_prog_RANLIB"
4086
fi
4087
 
4088
 
4089
 
4090
 
4091
 
4092
 
4093
ac_aux_dir=
4094
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4095
  for ac_t in install-sh install.sh shtool; do
4096
    if test -f "$ac_dir/$ac_t"; then
4097
      ac_aux_dir=$ac_dir
4098
      ac_install_sh="$ac_aux_dir/$ac_t -c"
4099
      break 2
4100
    fi
4101
  done
4102
done
4103
if test -z "$ac_aux_dir"; then
4104
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4105
fi
4106
 
4107
# These three variables are undocumented and unsupported,
4108
# and are intended to be withdrawn in a future Autoconf release.
4109
# They can cause serious problems if a builder's source tree is in a directory
4110
# whose full name contains unusual characters.
4111
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4112
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4113
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4114
 
4115
 
4116
# Make sure we can run config.sub.
4117
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4118
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4119
 
4120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4121
$as_echo_n "checking build system type... " >&6; }
4122
if test "${ac_cv_build+set}" = set; then :
4123
  $as_echo_n "(cached) " >&6
4124
else
4125
  ac_build_alias=$build_alias
4126
test "x$ac_build_alias" = x &&
4127
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4128
test "x$ac_build_alias" = x &&
4129
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4130
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4131
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4132
 
4133
fi
4134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4135
$as_echo "$ac_cv_build" >&6; }
4136
case $ac_cv_build in
4137
*-*-*) ;;
4138
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4139
esac
4140
build=$ac_cv_build
4141
ac_save_IFS=$IFS; IFS='-'
4142
set x $ac_cv_build
4143
shift
4144
build_cpu=$1
4145
build_vendor=$2
4146
shift; shift
4147
# Remember, the first character of IFS is used to create $*,
4148
# except with old shells:
4149
build_os=$*
4150
IFS=$ac_save_IFS
4151
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4152
 
4153
 
4154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4155
$as_echo_n "checking host system type... " >&6; }
4156
if test "${ac_cv_host+set}" = set; then :
4157
  $as_echo_n "(cached) " >&6
4158
else
4159
  if test "x$host_alias" = x; then
4160
  ac_cv_host=$ac_cv_build
4161
else
4162
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4163
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4164
fi
4165
 
4166
fi
4167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4168
$as_echo "$ac_cv_host" >&6; }
4169
case $ac_cv_host in
4170
*-*-*) ;;
4171
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4172
esac
4173
host=$ac_cv_host
4174
ac_save_IFS=$IFS; IFS='-'
4175
set x $ac_cv_host
4176
shift
4177
host_cpu=$1
4178
host_vendor=$2
4179
shift; shift
4180
# Remember, the first character of IFS is used to create $*,
4181
# except with old shells:
4182
host_os=$*
4183
IFS=$ac_save_IFS
4184
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4185
 
4186
 
4187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4188
$as_echo_n "checking target system type... " >&6; }
4189
if test "${ac_cv_target+set}" = set; then :
4190
  $as_echo_n "(cached) " >&6
4191
else
4192
  if test "x$target_alias" = x; then
4193
  ac_cv_target=$ac_cv_host
4194
else
4195
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4196
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4197
fi
4198
 
4199
fi
4200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4201
$as_echo "$ac_cv_target" >&6; }
4202
case $ac_cv_target in
4203
*-*-*) ;;
4204
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4205
esac
4206
target=$ac_cv_target
4207
ac_save_IFS=$IFS; IFS='-'
4208
set x $ac_cv_target
4209
shift
4210
target_cpu=$1
4211
target_vendor=$2
4212
shift; shift
4213
# Remember, the first character of IFS is used to create $*,
4214
# except with old shells:
4215
target_os=$*
4216
IFS=$ac_save_IFS
4217
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4218
 
4219
 
4220
# The aliases save the names the user supplied, while $host etc.
4221
# will get canonicalized.
4222
test -n "$target_alias" &&
4223
  test "$program_prefix$program_suffix$program_transform_name" = \
4224
    NONENONEs,x,x, &&
4225
  program_prefix=${target_alias}-
4226
 
4227
# The tests for host and target for $enable_largefile require
4228
# canonical names.
4229
 
4230
 
4231
 
4232
# As the $enable_largefile decision depends on --enable-plugins we must set it
4233
# even in directories otherwise not depending on the $plugins option.
4234
 
4235
 
4236
# Check whether --enable-plugins was given.
4237
if test "${enable_plugins+set}" = set; then :
4238
  enableval=$enable_plugins; case "${enableval}" in
4239
  yes | "") plugins=yes ;;
4240
  no) plugins=no ;;
4241
  *) plugins=yes ;;
4242
 esac
4243
else
4244
  plugins=no
4245
fi
4246
 
4247
 
4248
 
4249
case "${host}" in
4250
  sparc-*-solaris*|i[3-7]86-*-solaris*)
4251
    # On native 32bit sparc and ia32 solaris, large-file and procfs support
4252
    # are mutually exclusive; and without procfs support, the bfd/ elf module
4253
    # cannot provide certain routines such as elfcore_write_prpsinfo
4254
    # or elfcore_write_prstatus.  So unless the user explicitly requested
4255
    # large-file support through the --enable-largefile switch, disable
4256
    # large-file support in favor of procfs support.
4257
    test "${target}" = "${host}" -a "x$plugins" = xno \
4258
      && : ${enable_largefile="no"}
4259
    ;;
4260
esac
4261
 
4262
# Check whether --enable-largefile was given.
4263
if test "${enable_largefile+set}" = set; then :
4264
  enableval=$enable_largefile;
4265
fi
4266
 
4267
if test "$enable_largefile" != no; then
4268
 
4269
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4270
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4271
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4272
  $as_echo_n "(cached) " >&6
4273
else
4274
  ac_cv_sys_largefile_CC=no
4275
     if test "$GCC" != yes; then
4276
       ac_save_CC=$CC
4277
       while :; do
4278
         # IRIX 6.2 and later do not support large files by default,
4279
         # so use the C compiler's -n32 option if that helps.
4280
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281
/* end confdefs.h.  */
4282
#include 
4283
 /* Check that off_t can represent 2**63 - 1 correctly.
4284
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4285
    since some C++ compilers masquerading as C compilers
4286
    incorrectly reject 9223372036854775807.  */
4287
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4288
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4289
                       && LARGE_OFF_T % 2147483647 == 1)
4290
                      ? 1 : -1];
4291
int
4292
main ()
4293
{
4294
 
4295
  ;
4296
  return 0;
4297
}
4298
_ACEOF
4299
         if ac_fn_c_try_compile "$LINENO"; then :
4300
  break
4301
fi
4302
rm -f core conftest.err conftest.$ac_objext
4303
         CC="$CC -n32"
4304
         if ac_fn_c_try_compile "$LINENO"; then :
4305
  ac_cv_sys_largefile_CC=' -n32'; break
4306
fi
4307
rm -f core conftest.err conftest.$ac_objext
4308
         break
4309
       done
4310
       CC=$ac_save_CC
4311
       rm -f conftest.$ac_ext
4312
    fi
4313
fi
4314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4315
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4316
  if test "$ac_cv_sys_largefile_CC" != no; then
4317
    CC=$CC$ac_cv_sys_largefile_CC
4318
  fi
4319
 
4320
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4321
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4322
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4323
  $as_echo_n "(cached) " >&6
4324
else
4325
  while :; do
4326
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327
/* end confdefs.h.  */
4328
#include 
4329
 /* Check that off_t can represent 2**63 - 1 correctly.
4330
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4331
    since some C++ compilers masquerading as C compilers
4332
    incorrectly reject 9223372036854775807.  */
4333
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4334
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4335
                       && LARGE_OFF_T % 2147483647 == 1)
4336
                      ? 1 : -1];
4337
int
4338
main ()
4339
{
4340
 
4341
  ;
4342
  return 0;
4343
}
4344
_ACEOF
4345
if ac_fn_c_try_compile "$LINENO"; then :
4346
  ac_cv_sys_file_offset_bits=no; break
4347
fi
4348
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350
/* end confdefs.h.  */
4351
#define _FILE_OFFSET_BITS 64
4352
#include 
4353
 /* Check that off_t can represent 2**63 - 1 correctly.
4354
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4355
    since some C++ compilers masquerading as C compilers
4356
    incorrectly reject 9223372036854775807.  */
4357
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4358
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4359
                       && LARGE_OFF_T % 2147483647 == 1)
4360
                      ? 1 : -1];
4361
int
4362
main ()
4363
{
4364
 
4365
  ;
4366
  return 0;
4367
}
4368
_ACEOF
4369
if ac_fn_c_try_compile "$LINENO"; then :
4370
  ac_cv_sys_file_offset_bits=64; break
4371
fi
4372
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373
  ac_cv_sys_file_offset_bits=unknown
4374
  break
4375
done
4376
fi
4377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4378
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4379
case $ac_cv_sys_file_offset_bits in #(
4380
  no | unknown) ;;
4381
  *)
4382
cat >>confdefs.h <<_ACEOF
4383
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4384
_ACEOF
4385
;;
4386
esac
4387
rm -rf conftest*
4388
  if test $ac_cv_sys_file_offset_bits = unknown; then
4389
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4390
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4391
if test "${ac_cv_sys_large_files+set}" = set; then :
4392
  $as_echo_n "(cached) " >&6
4393
else
4394
  while :; do
4395
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396
/* end confdefs.h.  */
4397
#include 
4398
 /* Check that off_t can represent 2**63 - 1 correctly.
4399
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4400
    since some C++ compilers masquerading as C compilers
4401
    incorrectly reject 9223372036854775807.  */
4402
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4403
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4404
                       && LARGE_OFF_T % 2147483647 == 1)
4405
                      ? 1 : -1];
4406
int
4407
main ()
4408
{
4409
 
4410
  ;
4411
  return 0;
4412
}
4413
_ACEOF
4414
if ac_fn_c_try_compile "$LINENO"; then :
4415
  ac_cv_sys_large_files=no; break
4416
fi
4417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419
/* end confdefs.h.  */
4420
#define _LARGE_FILES 1
4421
#include 
4422
 /* Check that off_t can represent 2**63 - 1 correctly.
4423
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4424
    since some C++ compilers masquerading as C compilers
4425
    incorrectly reject 9223372036854775807.  */
4426
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4427
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4428
                       && LARGE_OFF_T % 2147483647 == 1)
4429
                      ? 1 : -1];
4430
int
4431
main ()
4432
{
4433
 
4434
  ;
4435
  return 0;
4436
}
4437
_ACEOF
4438
if ac_fn_c_try_compile "$LINENO"; then :
4439
  ac_cv_sys_large_files=1; break
4440
fi
4441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442
  ac_cv_sys_large_files=unknown
4443
  break
4444
done
4445
fi
4446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4447
$as_echo "$ac_cv_sys_large_files" >&6; }
4448
case $ac_cv_sys_large_files in #(
4449
  no | unknown) ;;
4450
  *)
4451
cat >>confdefs.h <<_ACEOF
4452
#define _LARGE_FILES $ac_cv_sys_large_files
4453
_ACEOF
4454
;;
4455
esac
4456
rm -rf conftest*
4457
  fi
4458
fi
4459
 
4460
 
4461
 
4462
 
4463
 
4464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4465
$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4466
if test "${am_cv_prog_cc_stdc+set}" = set; then :
4467
  $as_echo_n "(cached) " >&6
4468
else
4469
  am_cv_prog_cc_stdc=no
4470
ac_save_CC="$CC"
4471
# Don't try gcc -ansi; that turns off useful extensions and
4472
# breaks some systems' header files.
4473
# AIX                   -qlanglvl=ansi
4474
# Ultrix and OSF/1      -std1
4475
# HP-UX 10.20 and later -Ae
4476
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4477
# SVR4                  -Xc -D__EXTENSIONS__
4478
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479
do
4480
  CC="$ac_save_CC $ac_arg"
4481
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482
/* end confdefs.h.  */
4483
#include 
4484
#include 
4485
#include 
4486
#include 
4487
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4488
struct buf { int x; };
4489
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4490
static char *e (p, i)
4491
     char **p;
4492
     int i;
4493
{
4494
  return p[i];
4495
}
4496
static char *f (char * (*g) (char **, int), char **p, ...)
4497
{
4498
  char *s;
4499
  va_list v;
4500
  va_start (v,p);
4501
  s = g (p, va_arg (v,int));
4502
  va_end (v);
4503
  return s;
4504
}
4505
int test (int i, double x);
4506
struct s1 {int (*f) (int a);};
4507
struct s2 {int (*f) (double a);};
4508
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4509
int argc;
4510
char **argv;
4511
 
4512
int
4513
main ()
4514
{
4515
 
4516
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4517
 
4518
  ;
4519
  return 0;
4520
}
4521
_ACEOF
4522
if ac_fn_c_try_compile "$LINENO"; then :
4523
  am_cv_prog_cc_stdc="$ac_arg"; break
4524
fi
4525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526
done
4527
CC="$ac_save_CC"
4528
 
4529
fi
4530
 
4531
if test -z "$am_cv_prog_cc_stdc"; then
4532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4533
$as_echo "none needed" >&6; }
4534
else
4535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4536
$as_echo "$am_cv_prog_cc_stdc" >&6; }
4537
fi
4538
case "x$am_cv_prog_cc_stdc" in
4539
  x|xno) ;;
4540
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
4541
esac
4542
 
4543
 
4544
ac_aux_dir=
4545
for ac_dir in .. "$srcdir"/..; do
4546
  for ac_t in install-sh install.sh shtool; do
4547
    if test -f "$ac_dir/$ac_t"; then
4548
      ac_aux_dir=$ac_dir
4549
      ac_install_sh="$ac_aux_dir/$ac_t -c"
4550
      break 2
4551
    fi
4552
  done
4553
done
4554
if test -z "$ac_aux_dir"; then
4555
  as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4556
fi
4557
 
4558
# These three variables are undocumented and unsupported,
4559
# and are intended to be withdrawn in a future Autoconf release.
4560
# They can cause serious problems if a builder's source tree is in a directory
4561
# whose full name contains unusual characters.
4562
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4563
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4564
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4565
 
4566
 
4567
 
4568
 
4569
# Dependency checking.
4570
rm -rf .tst 2>/dev/null
4571
mkdir .tst 2>/dev/null
4572
if test -d .tst; then
4573
  am__leading_dot=.
4574
else
4575
  am__leading_dot=_
4576
fi
4577
rmdir .tst 2>/dev/null
4578
 
4579
DEPDIR="${am__leading_dot}deps"
4580
 
4581
ac_config_commands="$ac_config_commands depdir"
4582
 
4583
 
4584
depcc="$CC"   am_compiler_list=
4585
 
4586
am_depcomp=$ac_aux_dir/depcomp
4587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4588
$as_echo_n "checking dependency style of $depcc... " >&6; }
4589
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4590
  $as_echo_n "(cached) " >&6
4591
else
4592
  if test -f "$am_depcomp"; then
4593
  # We make a subdir and do the tests there.  Otherwise we can end up
4594
  # making bogus files that we don't know about and never remove.  For
4595
  # instance it was reported that on HP-UX the gcc test will end up
4596
  # making a dummy file named `D' -- because `-MD' means `put the output
4597
  # in D'.
4598
  mkdir conftest.dir
4599
  # Copy depcomp to subdir because otherwise we won't find it if we're
4600
  # using a relative directory.
4601
  cp "$am_depcomp" conftest.dir
4602
  cd conftest.dir
4603
  # We will build objects and dependencies in a subdirectory because
4604
  # it helps to detect inapplicable dependency modes.  For instance
4605
  # both Tru64's cc and ICC support -MD to output dependencies as a
4606
  # side effect of compilation, but ICC will put the dependencies in
4607
  # the current directory while Tru64 will put them in the object
4608
  # directory.
4609
  mkdir sub
4610
 
4611
  am_cv_CC_dependencies_compiler_type=none
4612
  if test "$am_compiler_list" = ""; then
4613
     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4614
  fi
4615
  for depmode in $am_compiler_list; do
4616
    if test $depmode = none; then break; fi
4617
 
4618
    $as_echo "$as_me:$LINENO: trying $depmode" >&5
4619
    # Setup a source with many dependencies, because some compilers
4620
    # like to wrap large dependency lists on column 80 (with \), and
4621
    # we should not choose a depcomp mode which is confused by this.
4622
    #
4623
    # We need to recreate these files for each test, as the compiler may
4624
    # overwrite some of them when testing with obscure command lines.
4625
    # This happens at least with the AIX C compiler.
4626
    : > sub/conftest.c
4627
    for i in 1 2 3 4 5 6; do
4628
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4630
      # Solaris 8's {/usr,}/bin/sh.
4631
      touch sub/conftst$i.h
4632
    done
4633
    echo "include sub/conftest.Po" > confmf
4634
 
4635
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4636
    # mode.  It turns out that the SunPro C++ compiler does not properly
4637
    # handle `-M -o', and we need to detect this.
4638
    depcmd="depmode=$depmode \
4639
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4640
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4641
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4642
    echo "| $depcmd" | sed -e 's/  */ /g' >&5
4643
    if env $depcmd > conftest.err 2>&1 &&
4644
       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4645
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4646
       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4647
      # icc doesn't choke on unknown options, it will just issue warnings
4648
      # or remarks (even with -Werror).  So we grep stderr for any message
4649
      # that says an option was ignored or not supported.
4650
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4651
      #   icc: Command line warning: ignoring option '-M'; no argument required
4652
      # The diagnosis changed in icc 8.0:
4653
      #   icc: Command line remark: option '-MP' not supported
4654
      if (grep 'ignoring option' conftest.err ||
4655
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4656
        am_cv_CC_dependencies_compiler_type=$depmode
4657
        $as_echo "$as_me:$LINENO: success" >&5
4658
        break
4659
      fi
4660
    fi
4661
    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4662
    sed -e 's/^/| /' < conftest.err >&5
4663
  done
4664
 
4665
  cd ..
4666
  rm -rf conftest.dir
4667
else
4668
  am_cv_CC_dependencies_compiler_type=none
4669
fi
4670
 
4671
fi
4672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4673
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4674
if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4675
then as_fn_error "no usable dependency style found" "$LINENO" 5
4676
else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4677
 
4678
fi
4679
 
4680
 
4681
# Check for the 'make' the user wants to use.
4682
for ac_prog in make
4683
do
4684
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4685
set dummy $ac_prog; ac_word=$2
4686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687
$as_echo_n "checking for $ac_word... " >&6; }
4688
if test "${ac_cv_prog_MAKE+set}" = set; then :
4689
  $as_echo_n "(cached) " >&6
4690
else
4691
  if test -n "$MAKE"; then
4692
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4693
else
4694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695
for as_dir in $PATH
4696
do
4697
  IFS=$as_save_IFS
4698
  test -z "$as_dir" && as_dir=.
4699
    for ac_exec_ext in '' $ac_executable_extensions; do
4700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701
    ac_cv_prog_MAKE="$ac_prog"
4702
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703
    break 2
4704
  fi
4705
done
4706
  done
4707
IFS=$as_save_IFS
4708
 
4709
fi
4710
fi
4711
MAKE=$ac_cv_prog_MAKE
4712
if test -n "$MAKE"; then
4713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4714
$as_echo "$MAKE" >&6; }
4715
else
4716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717
$as_echo "no" >&6; }
4718
fi
4719
 
4720
 
4721
  test -n "$MAKE" && break
4722
done
4723
 
4724
MAKE_IS_GNU=
4725
case "`$MAKE --version 2>&1 | sed 1q`" in
4726
  *GNU*)
4727
    MAKE_IS_GNU=yes
4728
    ;;
4729
esac
4730
 if test "$MAKE_IS_GNU" = yes; then
4731
  GMAKE_TRUE=
4732
  GMAKE_FALSE='#'
4733
else
4734
  GMAKE_TRUE='#'
4735
  GMAKE_FALSE=
4736
fi
4737
 
4738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4739
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4740
set x ${MAKE-make}
4741
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4742
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4743
  $as_echo_n "(cached) " >&6
4744
else
4745
  cat >conftest.make <<\_ACEOF
4746
SHELL = /bin/sh
4747
all:
4748
        @echo '@@@%%%=$(MAKE)=@@@%%%'
4749
_ACEOF
4750
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4751
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4752
  *@@@%%%=?*=@@@%%%*)
4753
    eval ac_cv_prog_make_${ac_make}_set=yes;;
4754
  *)
4755
    eval ac_cv_prog_make_${ac_make}_set=no;;
4756
esac
4757
rm -f conftest.make
4758
fi
4759
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4760
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4761
$as_echo "yes" >&6; }
4762
  SET_MAKE=
4763
else
4764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765
$as_echo "no" >&6; }
4766
  SET_MAKE="MAKE=${MAKE-make}"
4767
fi
4768
 
4769
 
4770
 
4771
CONFIG_OBS=
4772
CONFIG_DEPS=
4773
CONFIG_SRCS=
4774
ENABLE_CFLAGS=
4775
 
4776
CONFIG_ALL=
4777
CONFIG_CLEAN=
4778
CONFIG_INSTALL=
4779
CONFIG_UNINSTALL=
4780
 
4781
# If we haven't got the data from the intl directory,
4782
# assume NLS is disabled.
4783
USE_NLS=no
4784
LIBINTL=
4785
LIBINTL_DEP=
4786
INCINTL=
4787
XGETTEXT=
4788
GMSGFMT=
4789
POSUB=
4790
 
4791
if test -f  ../intl/config.intl; then
4792
  .  ../intl/config.intl
4793
fi
4794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4795
$as_echo_n "checking whether NLS is requested... " >&6; }
4796
if test x"$USE_NLS" != xyes; then
4797
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798
$as_echo "no" >&6; }
4799
else
4800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4801
$as_echo "yes" >&6; }
4802
 
4803
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
4804
 
4805
 
4806
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4807
$as_echo_n "checking for catalogs to be installed... " >&6; }
4808
  # Look for .po and .gmo files in the source directory.
4809
  CATALOGS=
4810
  XLINGUAS=
4811
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4812
    # If there aren't any .gmo files the shell will give us the
4813
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
4814
    # weeded out.
4815
    case "$cat" in *\**)
4816
      continue;;
4817
    esac
4818
    # The quadruple backslash is collapsed to a double backslash
4819
    # by the backticks, then collapsed again by the double quotes,
4820
    # leaving us with one backslash in the sed expression (right
4821
    # before the dot that mustn't act as a wildcard).
4822
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4823
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4824
    # The user is allowed to set LINGUAS to a list of languages to
4825
    # install catalogs for.  If it's empty that means "all of them."
4826
    if test "x$LINGUAS" = x; then
4827
      CATALOGS="$CATALOGS $cat"
4828
      XLINGUAS="$XLINGUAS $lang"
4829
    else
4830
      case "$LINGUAS" in *$lang*)
4831
        CATALOGS="$CATALOGS $cat"
4832
        XLINGUAS="$XLINGUAS $lang"
4833
        ;;
4834
      esac
4835
    fi
4836
  done
4837
  LINGUAS="$XLINGUAS"
4838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4839
$as_echo "$LINGUAS" >&6; }
4840
 
4841
 
4842
    DATADIRNAME=share
4843
 
4844
  INSTOBJEXT=.mo
4845
 
4846
  GENCAT=gencat
4847
 
4848
  CATOBJEXT=.gmo
4849
 
4850
fi
4851
 
4852
localedir='${datadir}/locale'
4853
 
4854
 
4855
if test x"$USE_NLS" = xyes; then
4856
   CONFIG_ALL="$CONFIG_ALL all-po"
4857
   CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4858
   CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4859
   CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4860
fi
4861
 
4862
 
4863
  GNULIB_MEMMEM=0;
4864
  GNULIB_MEMPCPY=0;
4865
  GNULIB_MEMRCHR=0;
4866
  GNULIB_STPCPY=0;
4867
  GNULIB_STPNCPY=0;
4868
  GNULIB_STRCHRNUL=0;
4869
  GNULIB_STRDUP=0;
4870
  GNULIB_STRNDUP=0;
4871
  GNULIB_STRNLEN=0;
4872
  GNULIB_STRPBRK=0;
4873
  GNULIB_STRSEP=0;
4874
  GNULIB_STRSTR=0;
4875
  GNULIB_STRCASESTR=0;
4876
  GNULIB_STRTOK_R=0;
4877
  GNULIB_MBSLEN=0;
4878
  GNULIB_MBSNLEN=0;
4879
  GNULIB_MBSCHR=0;
4880
  GNULIB_MBSRCHR=0;
4881
  GNULIB_MBSSTR=0;
4882
  GNULIB_MBSCASECMP=0;
4883
  GNULIB_MBSNCASECMP=0;
4884
  GNULIB_MBSPCASECMP=0;
4885
  GNULIB_MBSCASESTR=0;
4886
  GNULIB_MBSCSPN=0;
4887
  GNULIB_MBSPBRK=0;
4888
  GNULIB_MBSSPN=0;
4889
  GNULIB_MBSSEP=0;
4890
  GNULIB_MBSTOK_R=0;
4891
  GNULIB_STRERROR=0;
4892
  GNULIB_STRSIGNAL=0;
4893
    HAVE_DECL_MEMMEM=1;
4894
  HAVE_MEMPCPY=1;
4895
  HAVE_DECL_MEMRCHR=1;
4896
  HAVE_STPCPY=1;
4897
  HAVE_STPNCPY=1;
4898
  HAVE_STRCHRNUL=1;
4899
  HAVE_DECL_STRDUP=1;
4900
  HAVE_STRNDUP=1;
4901
  HAVE_DECL_STRNDUP=1;
4902
  HAVE_DECL_STRNLEN=1;
4903
  HAVE_STRPBRK=1;
4904
  HAVE_STRSEP=1;
4905
  HAVE_STRCASESTR=1;
4906
  HAVE_DECL_STRTOK_R=1;
4907
  HAVE_DECL_STRERROR=1;
4908
  HAVE_DECL_STRSIGNAL=1;
4909
  REPLACE_STRERROR=0;
4910
  REPLACE_STRSIGNAL=0;
4911
  REPLACE_MEMMEM=0;
4912
  REPLACE_STRCASESTR=0;
4913
  REPLACE_STRSTR=0;
4914
 
4915
 
4916
      ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4917
if test "x$ac_cv_have_decl_memmem" = x""yes; then :
4918
  ac_have_decl=1
4919
else
4920
  ac_have_decl=0
4921
fi
4922
 
4923
cat >>confdefs.h <<_ACEOF
4924
#define HAVE_DECL_MEMMEM $ac_have_decl
4925
_ACEOF
4926
 
4927
 
4928
 
4929
 
4930
 
4931
 
4932
 
4933
 
4934
 
4935
 
4936
 
4937
 
4938
 
4939
  for ac_func in memmem
4940
do :
4941
  ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
4942
if test "x$ac_cv_func_memmem" = x""yes; then :
4943
  cat >>confdefs.h <<_ACEOF
4944
#define HAVE_MEMMEM 1
4945
_ACEOF
4946
 
4947
else
4948
 
4949
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4950
 
4951
fi
4952
done
4953
 
4954
 
4955
 
4956
  :
4957
 
4958
 
4959
 
4960
 
4961
 
4962
  if test $ac_cv_have_decl_memmem = no; then
4963
    HAVE_DECL_MEMMEM=0
4964
  fi
4965
  :
4966
 
4967
 
4968
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4969
$as_echo_n "checking for long long int... " >&6; }
4970
if test "${ac_cv_type_long_long_int+set}" = set; then :
4971
  $as_echo_n "(cached) " >&6
4972
else
4973
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974
/* end confdefs.h.  */
4975
 
4976
  /* For now, do not test the preprocessor; as of 2007 there are too many
4977
         implementations with broken preprocessors.  Perhaps this can
4978
         be revisited in 2012.  In the meantime, code should not expect
4979
         #if to work with literals wider than 32 bits.  */
4980
      /* Test literals.  */
4981
      long long int ll = 9223372036854775807ll;
4982
      long long int nll = -9223372036854775807LL;
4983
      unsigned long long int ull = 18446744073709551615ULL;
4984
      /* Test constant expressions.   */
4985
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4986
                     ? 1 : -1)];
4987
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4988
                     ? 1 : -1)];
4989
      int i = 63;
4990
int
4991
main ()
4992
{
4993
/* Test availability of runtime routines for shift and division.  */
4994
      long long int llmax = 9223372036854775807ll;
4995
      unsigned long long int ullmax = 18446744073709551615ull;
4996
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4997
              | (llmax / ll) | (llmax % ll)
4998
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4999
              | (ullmax / ull) | (ullmax % ull));
5000
  ;
5001
  return 0;
5002
}
5003
 
5004
_ACEOF
5005
if ac_fn_c_try_link "$LINENO"; then :
5006
                        if test "$cross_compiling" = yes; then :
5007
  ac_cv_type_long_long_int=yes
5008
else
5009
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010
/* end confdefs.h.  */
5011
#include 
5012
               #ifndef LLONG_MAX
5013
               # define HALF \
5014
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5015
               # define LLONG_MAX (HALF - 1 + HALF)
5016
               #endif
5017
int
5018
main ()
5019
{
5020
long long int n = 1;
5021
               int i;
5022
               for (i = 0; ; i++)
5023
                 {
5024
                   long long int m = n << i;
5025
                   if (m >> i != n)
5026
                     return 1;
5027
                   if (LLONG_MAX / 2 < m)
5028
                     break;
5029
                 }
5030
               return 0;
5031
  ;
5032
  return 0;
5033
}
5034
_ACEOF
5035
if ac_fn_c_try_run "$LINENO"; then :
5036
  ac_cv_type_long_long_int=yes
5037
else
5038
  ac_cv_type_long_long_int=no
5039
fi
5040
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5041
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5042
fi
5043
 
5044
else
5045
  ac_cv_type_long_long_int=no
5046
fi
5047
rm -f core conftest.err conftest.$ac_objext \
5048
    conftest$ac_exeext conftest.$ac_ext
5049
fi
5050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5051
$as_echo "$ac_cv_type_long_long_int" >&6; }
5052
  if test $ac_cv_type_long_long_int = yes; then
5053
 
5054
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5055
 
5056
  fi
5057
 
5058
 
5059
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5060
$as_echo_n "checking for unsigned long long int... " >&6; }
5061
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5062
  $as_echo_n "(cached) " >&6
5063
else
5064
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065
/* end confdefs.h.  */
5066
 
5067
  /* For now, do not test the preprocessor; as of 2007 there are too many
5068
         implementations with broken preprocessors.  Perhaps this can
5069
         be revisited in 2012.  In the meantime, code should not expect
5070
         #if to work with literals wider than 32 bits.  */
5071
      /* Test literals.  */
5072
      long long int ll = 9223372036854775807ll;
5073
      long long int nll = -9223372036854775807LL;
5074
      unsigned long long int ull = 18446744073709551615ULL;
5075
      /* Test constant expressions.   */
5076
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5077
                     ? 1 : -1)];
5078
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5079
                     ? 1 : -1)];
5080
      int i = 63;
5081
int
5082
main ()
5083
{
5084
/* Test availability of runtime routines for shift and division.  */
5085
      long long int llmax = 9223372036854775807ll;
5086
      unsigned long long int ullmax = 18446744073709551615ull;
5087
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5088
              | (llmax / ll) | (llmax % ll)
5089
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5090
              | (ullmax / ull) | (ullmax % ull));
5091
  ;
5092
  return 0;
5093
}
5094
 
5095
_ACEOF
5096
if ac_fn_c_try_link "$LINENO"; then :
5097
  ac_cv_type_unsigned_long_long_int=yes
5098
else
5099
  ac_cv_type_unsigned_long_long_int=no
5100
fi
5101
rm -f core conftest.err conftest.$ac_objext \
5102
    conftest$ac_exeext conftest.$ac_ext
5103
fi
5104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5105
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5106
  if test $ac_cv_type_unsigned_long_long_int = yes; then
5107
 
5108
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5109
 
5110
  fi
5111
 
5112
 
5113
 
5114
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5115
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5116
if test "${gl_cv_have_include_next+set}" = set; then :
5117
  $as_echo_n "(cached) " >&6
5118
else
5119
  rm -rf conftestd1 conftestd2
5120
     mkdir conftestd1 conftestd2
5121
     cat < conftestd1/conftest.h
5122
#define DEFINED_IN_CONFTESTD1
5123
#include_next 
5124
#ifdef DEFINED_IN_CONFTESTD2
5125
int foo;
5126
#else
5127
#error "include_next doesn't work"
5128
#endif
5129
EOF
5130
     cat < conftestd2/conftest.h
5131
#ifndef DEFINED_IN_CONFTESTD1
5132
#error "include_next test doesn't work"
5133
#endif
5134
#define DEFINED_IN_CONFTESTD2
5135
EOF
5136
     save_CPPFLAGS="$CPPFLAGS"
5137
     CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
5138
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139
/* end confdefs.h.  */
5140
#include 
5141
_ACEOF
5142
if ac_fn_c_try_compile "$LINENO"; then :
5143
  gl_cv_have_include_next=yes
5144
else
5145
  gl_cv_have_include_next=no
5146
fi
5147
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148
     CPPFLAGS="$save_CPPFLAGS"
5149
     rm -rf conftestd1 conftestd2
5150
 
5151
fi
5152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5153
$as_echo "$gl_cv_have_include_next" >&6; }
5154
  if test $gl_cv_have_include_next = yes; then
5155
 
5156
 
5157
$as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h
5158
 
5159
 
5160
    INCLUDE_NEXT=include_next
5161
  else
5162
    INCLUDE_NEXT=include
5163
  fi
5164
 
5165
 
5166
 
5167
 
5168
 
5169
 
5170
  for ac_header in $gl_header_list
5171
do :
5172
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5173
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5174
eval as_val=\$$as_ac_Header
5175
   if test "x$as_val" = x""yes; then :
5176
  cat >>confdefs.h <<_ACEOF
5177
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5178
_ACEOF
5179
 
5180
fi
5181
 
5182
done
5183
 
5184
 
5185
 
5186
 
5187
 
5188
 
5189
 
5190
 
5191
 
5192
 
5193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5194
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5195
if test "${ac_cv_c_restrict+set}" = set; then :
5196
  $as_echo_n "(cached) " >&6
5197
else
5198
  ac_cv_c_restrict=no
5199
   # The order here caters to the fact that C++ does not require restrict.
5200
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
5201
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202
/* end confdefs.h.  */
5203
typedef int * int_ptr;
5204
        int foo (int_ptr $ac_kw ip) {
5205
        return ip[0];
5206
       }
5207
int
5208
main ()
5209
{
5210
int s[1];
5211
        int * $ac_kw t = s;
5212
        t[0] = 0;
5213
        return foo(t)
5214
  ;
5215
  return 0;
5216
}
5217
_ACEOF
5218
if ac_fn_c_try_compile "$LINENO"; then :
5219
  ac_cv_c_restrict=$ac_kw
5220
fi
5221
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222
     test "$ac_cv_c_restrict" != no && break
5223
   done
5224
 
5225
fi
5226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5227
$as_echo "$ac_cv_c_restrict" >&6; }
5228
 
5229
 case $ac_cv_c_restrict in
5230
   restrict) ;;
5231
   no) $as_echo "#define restrict /**/" >>confdefs.h
5232
 ;;
5233
   *)  cat >>confdefs.h <<_ACEOF
5234
#define restrict $ac_cv_c_restrict
5235
_ACEOF
5236
 ;;
5237
 esac
5238
 
5239
 
5240
 
5241
 
5242
 
5243
 
5244
 
5245
 
5246
 
5247
 
5248
 
5249
 
5250
  :
5251
 
5252
 
5253
 
5254
 
5255
 
5256
 
5257
 
5258
     if test $gl_cv_have_include_next = yes; then
5259
       gl_cv_next_string_h='<'string.h'>'
5260
     else
5261
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5
5262
$as_echo_n "checking absolute name of ... " >&6; }
5263
if test "${gl_cv_next_string_h+set}" = set; then :
5264
  $as_echo_n "(cached) " >&6
5265
else
5266
 
5267
          if test $ac_cv_header_string_h = yes; then
5268
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269
/* end confdefs.h.  */
5270
#include 
5271
 
5272
_ACEOF
5273
                                    gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274
               sed -n '\#/string.h#{
5275
                 s#.*"\(.*/string.h\)".*#\1#
5276
                 s#^/[^/]#//&#
5277
                 p
5278
                 q
5279
               }'`'"'
5280
          else
5281
            gl_cv_next_string_h='<'string.h'>'
5282
          fi
5283
 
5284
fi
5285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5286
$as_echo "$gl_cv_next_string_h" >&6; }
5287
     fi
5288
     NEXT_STRING_H=$gl_cv_next_string_h
5289
 
5290
 
5291
 
5292
 
5293
 
5294
  GNULIB_WCWIDTH=0;
5295
    HAVE_DECL_WCWIDTH=1;
5296
  REPLACE_WCWIDTH=0;
5297
  WCHAR_H=
5298
 
5299
 
5300
 
5301
   if false; then
5302
  GL_COND_LIBTOOL_TRUE=
5303
  GL_COND_LIBTOOL_FALSE='#'
5304
else
5305
  GL_COND_LIBTOOL_TRUE='#'
5306
  GL_COND_LIBTOOL_FALSE=
5307
fi
5308
 
5309
  gl_cond_libtool=false
5310
  gl_libdeps=
5311
  gl_ltlibdeps=
5312
 
5313
 
5314
 
5315
  gl_source_base='gnulib'
5316
 
5317
 
5318
 
5319
 
5320
 
5321
 
5322
 
5323
 
5324
  for ac_func in memchr
5325
do :
5326
  ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
5327
if test "x$ac_cv_func_memchr" = x""yes; then :
5328
  cat >>confdefs.h <<_ACEOF
5329
#define HAVE_MEMCHR 1
5330
_ACEOF
5331
 
5332
else
5333
 
5334
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5335
 
5336
fi
5337
done
5338
 
5339
 
5340
  if test $ac_cv_func_memchr = no; then
5341
 
5342
  for ac_header in bp-sym.h
5343
do :
5344
  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5345
if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5346
  cat >>confdefs.h <<_ACEOF
5347
#define HAVE_BP_SYM_H 1
5348
_ACEOF
5349
 
5350
fi
5351
 
5352
done
5353
 
5354
 
5355
  fi
5356
 
5357
 
5358
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5359
$as_echo_n "checking for working memcmp... " >&6; }
5360
if test "${ac_cv_func_memcmp_working+set}" = set; then :
5361
  $as_echo_n "(cached) " >&6
5362
else
5363
  if test "$cross_compiling" = yes; then :
5364
  ac_cv_func_memcmp_working=no
5365
else
5366
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367
/* end confdefs.h.  */
5368
$ac_includes_default
5369
int
5370
main ()
5371
{
5372
 
5373
  /* Some versions of memcmp are not 8-bit clean.  */
5374
  char c0 = '\100', c1 = '\200', c2 = '\201';
5375
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5376
    return 1;
5377
 
5378
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5379
     or more and with at least one buffer not starting on a 4-byte boundary.
5380
     William Lewis provided this test program.   */
5381
  {
5382
    char foo[21];
5383
    char bar[21];
5384
    int i;
5385
    for (i = 0; i < 4; i++)
5386
      {
5387
        char *a = foo + i;
5388
        char *b = bar + i;
5389
        strcpy (a, "--------01111111");
5390
        strcpy (b, "--------10000000");
5391
        if (memcmp (a, b, 16) >= 0)
5392
          return 1;
5393
      }
5394
    return 0;
5395
  }
5396
 
5397
  ;
5398
  return 0;
5399
}
5400
_ACEOF
5401
if ac_fn_c_try_run "$LINENO"; then :
5402
  ac_cv_func_memcmp_working=yes
5403
else
5404
  ac_cv_func_memcmp_working=no
5405
fi
5406
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5407
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5408
fi
5409
 
5410
fi
5411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5412
$as_echo "$ac_cv_func_memcmp_working" >&6; }
5413
test $ac_cv_func_memcmp_working = no &&
5414
 
5415
 
5416
 
5417
 
5418
 
5419
 
5420
  gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5421
 
5422
 
5423
    if test $ac_cv_func_memcmp_working = no; then
5424
 
5425
$as_echo "#define memcmp rpl_memcmp" >>confdefs.h
5426
 
5427
    :
5428
  fi
5429
 
5430
 
5431
 
5432
  if test $ac_cv_have_decl_memmem = yes; then
5433
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5434
$as_echo_n "checking whether memmem works in linear time... " >&6; }
5435
if test "${gl_cv_func_memmem_works+set}" = set; then :
5436
  $as_echo_n "(cached) " >&6
5437
else
5438
  if test "$cross_compiling" = yes; then :
5439
                 gl_cv_func_memmem_works="guessing no"
5440
else
5441
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442
/* end confdefs.h.  */
5443
 
5444
#include  /* for memmem */
5445
#include  /* for malloc */
5446
#include  /* for alarm */
5447
 
5448
int
5449
main ()
5450
{
5451
size_t m = 1000000;
5452
    char *haystack = (char *) malloc (2 * m + 1);
5453
    char *needle = (char *) malloc (m + 1);
5454
    void *result = 0;
5455
    /* Failure to compile this test due to missing alarm is okay,
5456
       since all such platforms (mingw) also lack memmem.  */
5457
    alarm (5);
5458
    /* Check for quadratic performance.  */
5459
    if (haystack && needle)
5460
      {
5461
        memset (haystack, 'A', 2 * m);
5462
        haystack[2 * m] = 'B';
5463
        memset (needle, 'A', m);
5464
        needle[m] = 'B';
5465
        result = memmem (haystack, 2 * m + 1, needle, m + 1);
5466
      }
5467
    /* Check for empty needle behavior.  */
5468
    return !result || !memmem ("a", 1, 0, 0);
5469
  ;
5470
  return 0;
5471
}
5472
_ACEOF
5473
if ac_fn_c_try_run "$LINENO"; then :
5474
  gl_cv_func_memmem_works=yes
5475
else
5476
  gl_cv_func_memmem_works=no
5477
fi
5478
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5479
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5480
fi
5481
 
5482
fi
5483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
5484
$as_echo "$gl_cv_func_memmem_works" >&6; }
5485
    if test "$gl_cv_func_memmem_works" != yes; then
5486
      REPLACE_MEMMEM=1
5487
 
5488
 
5489
 
5490
 
5491
 
5492
 
5493
 
5494
  gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5495
 
5496
    fi
5497
  fi
5498
 
5499
 
5500
 
5501
 
5502
 
5503
 
5504
 
5505
 
5506
 
5507
 
5508
 
5509
 
5510
  for ac_func in memmem
5511
do :
5512
  ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5513
if test "x$ac_cv_func_memmem" = x""yes; then :
5514
  cat >>confdefs.h <<_ACEOF
5515
#define HAVE_MEMMEM 1
5516
_ACEOF
5517
 
5518
else
5519
 
5520
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5521
 
5522
fi
5523
done
5524
 
5525
 
5526
 
5527
  :
5528
 
5529
 
5530
 
5531
 
5532
 
5533
  if test $ac_cv_have_decl_memmem = no; then
5534
    HAVE_DECL_MEMMEM=0
5535
  fi
5536
  :
5537
 
5538
 
5539
 
5540
  GNULIB_MEMMEM=1
5541
 
5542
 
5543
 
5544
 
5545
  if test $ac_cv_type_long_long_int = yes; then
5546
    HAVE_LONG_LONG_INT=1
5547
  else
5548
    HAVE_LONG_LONG_INT=0
5549
  fi
5550
 
5551
 
5552
  if test $ac_cv_type_unsigned_long_long_int = yes; then
5553
    HAVE_UNSIGNED_LONG_LONG_INT=1
5554
  else
5555
    HAVE_UNSIGNED_LONG_LONG_INT=0
5556
  fi
5557
 
5558
 
5559
      if test $ac_cv_header_inttypes_h = yes; then
5560
    HAVE_INTTYPES_H=1
5561
  else
5562
    HAVE_INTTYPES_H=0
5563
  fi
5564
 
5565
 
5566
      if test $ac_cv_header_sys_types_h = yes; then
5567
    HAVE_SYS_TYPES_H=1
5568
  else
5569
    HAVE_SYS_TYPES_H=0
5570
  fi
5571
 
5572
 
5573
 
5574
 
5575
 
5576
  :
5577
 
5578
 
5579
 
5580
 
5581
 
5582
 
5583
 
5584
     if test $gl_cv_have_include_next = yes; then
5585
       gl_cv_next_stdint_h='<'stdint.h'>'
5586
     else
5587
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5
5588
$as_echo_n "checking absolute name of ... " >&6; }
5589
if test "${gl_cv_next_stdint_h+set}" = set; then :
5590
  $as_echo_n "(cached) " >&6
5591
else
5592
 
5593
          if test $ac_cv_header_stdint_h = yes; then
5594
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595
/* end confdefs.h.  */
5596
#include 
5597
 
5598
_ACEOF
5599
                                    gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5600
               sed -n '\#/stdint.h#{
5601
                 s#.*"\(.*/stdint.h\)".*#\1#
5602
                 s#^/[^/]#//&#
5603
                 p
5604
                 q
5605
               }'`'"'
5606
          else
5607
            gl_cv_next_stdint_h='<'stdint.h'>'
5608
          fi
5609
 
5610
fi
5611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5612
$as_echo "$gl_cv_next_stdint_h" >&6; }
5613
     fi
5614
     NEXT_STDINT_H=$gl_cv_next_stdint_h
5615
 
5616
 
5617
 
5618
  if test $ac_cv_header_stdint_h = yes; then
5619
    HAVE_STDINT_H=1
5620
  else
5621
    HAVE_STDINT_H=0
5622
  fi
5623
 
5624
 
5625
    if test $ac_cv_header_stdint_h = yes; then
5626
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5627
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5628
if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5629
  $as_echo_n "(cached) " >&6
5630
else
5631
  gl_cv_header_working_stdint_h=no
5632
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633
/* end confdefs.h.  */
5634
 
5635
 
5636
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5637
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5638
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5639
#include 
5640
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in .  */
5641
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5642
#error "WCHAR_MIN, WCHAR_MAX not defined in "
5643
#endif
5644
 
5645
 
5646
  /* BSD/OS 4.0.1 has a bug: ,  and  must be
5647
     included before .  */
5648
  #include 
5649
  #include 
5650
  #if HAVE_WCHAR_H
5651
  # include 
5652
  # include 
5653
  # include 
5654
  #endif
5655
 
5656
 
5657
#ifdef INT8_MAX
5658
int8_t a1 = INT8_MAX;
5659
int8_t a1min = INT8_MIN;
5660
#endif
5661
#ifdef INT16_MAX
5662
int16_t a2 = INT16_MAX;
5663
int16_t a2min = INT16_MIN;
5664
#endif
5665
#ifdef INT32_MAX
5666
int32_t a3 = INT32_MAX;
5667
int32_t a3min = INT32_MIN;
5668
#endif
5669
#ifdef INT64_MAX
5670
int64_t a4 = INT64_MAX;
5671
int64_t a4min = INT64_MIN;
5672
#endif
5673
#ifdef UINT8_MAX
5674
uint8_t b1 = UINT8_MAX;
5675
#else
5676
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5677
#endif
5678
#ifdef UINT16_MAX
5679
uint16_t b2 = UINT16_MAX;
5680
#endif
5681
#ifdef UINT32_MAX
5682
uint32_t b3 = UINT32_MAX;
5683
#endif
5684
#ifdef UINT64_MAX
5685
uint64_t b4 = UINT64_MAX;
5686
#endif
5687
int_least8_t c1 = INT8_C (0x7f);
5688
int_least8_t c1max = INT_LEAST8_MAX;
5689
int_least8_t c1min = INT_LEAST8_MIN;
5690
int_least16_t c2 = INT16_C (0x7fff);
5691
int_least16_t c2max = INT_LEAST16_MAX;
5692
int_least16_t c2min = INT_LEAST16_MIN;
5693
int_least32_t c3 = INT32_C (0x7fffffff);
5694
int_least32_t c3max = INT_LEAST32_MAX;
5695
int_least32_t c3min = INT_LEAST32_MIN;
5696
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5697
int_least64_t c4max = INT_LEAST64_MAX;
5698
int_least64_t c4min = INT_LEAST64_MIN;
5699
uint_least8_t d1 = UINT8_C (0xff);
5700
uint_least8_t d1max = UINT_LEAST8_MAX;
5701
uint_least16_t d2 = UINT16_C (0xffff);
5702
uint_least16_t d2max = UINT_LEAST16_MAX;
5703
uint_least32_t d3 = UINT32_C (0xffffffff);
5704
uint_least32_t d3max = UINT_LEAST32_MAX;
5705
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5706
uint_least64_t d4max = UINT_LEAST64_MAX;
5707
int_fast8_t e1 = INT_FAST8_MAX;
5708
int_fast8_t e1min = INT_FAST8_MIN;
5709
int_fast16_t e2 = INT_FAST16_MAX;
5710
int_fast16_t e2min = INT_FAST16_MIN;
5711
int_fast32_t e3 = INT_FAST32_MAX;
5712
int_fast32_t e3min = INT_FAST32_MIN;
5713
int_fast64_t e4 = INT_FAST64_MAX;
5714
int_fast64_t e4min = INT_FAST64_MIN;
5715
uint_fast8_t f1 = UINT_FAST8_MAX;
5716
uint_fast16_t f2 = UINT_FAST16_MAX;
5717
uint_fast32_t f3 = UINT_FAST32_MAX;
5718
uint_fast64_t f4 = UINT_FAST64_MAX;
5719
#ifdef INTPTR_MAX
5720
intptr_t g = INTPTR_MAX;
5721
intptr_t gmin = INTPTR_MIN;
5722
#endif
5723
#ifdef UINTPTR_MAX
5724
uintptr_t h = UINTPTR_MAX;
5725
#endif
5726
intmax_t i = INTMAX_MAX;
5727
uintmax_t j = UINTMAX_MAX;
5728
 
5729
#include  /* for CHAR_BIT */
5730
#define TYPE_MINIMUM(t) \
5731
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5732
#define TYPE_MAXIMUM(t) \
5733
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5734
struct s {
5735
  int check_PTRDIFF:
5736
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5737
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5738
      ? 1 : -1;
5739
  /* Detect bug in FreeBSD 6.0 / ia64.  */
5740
  int check_SIG_ATOMIC:
5741
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5742
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5743
      ? 1 : -1;
5744
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5745
  int check_WCHAR:
5746
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5747
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5748
      ? 1 : -1;
5749
  /* Detect bug in mingw.  */
5750
  int check_WINT:
5751
      WINT_MIN == TYPE_MINIMUM (wint_t)
5752
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
5753
      ? 1 : -1;
5754
 
5755
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
5756
  int check_UINT8_C:
5757
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5758
  int check_UINT16_C:
5759
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5760
 
5761
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
5762
#ifdef UINT8_MAX
5763
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5764
#endif
5765
#ifdef UINT16_MAX
5766
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5767
#endif
5768
#ifdef UINT32_MAX
5769
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5770
#endif
5771
#ifdef UINT64_MAX
5772
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5773
#endif
5774
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5775
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5776
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5777
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5778
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5779
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5780
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5781
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5782
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5783
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5784
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5785
};
5786
 
5787
int
5788
main ()
5789
{
5790
 
5791
  ;
5792
  return 0;
5793
}
5794
_ACEOF
5795
if ac_fn_c_try_compile "$LINENO"; then :
5796
  gl_cv_header_working_stdint_h=yes
5797
fi
5798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799
fi
5800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5801
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
5802
  fi
5803
  if test "$gl_cv_header_working_stdint_h" = yes; then
5804
    STDINT_H=
5805
  else
5806
            for ac_header in sys/inttypes.h sys/bitypes.h
5807
do :
5808
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5809
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5810
eval as_val=\$$as_ac_Header
5811
   if test "x$as_val" = x""yes; then :
5812
  cat >>confdefs.h <<_ACEOF
5813
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5814
_ACEOF
5815
 
5816
fi
5817
 
5818
done
5819
 
5820
    if test $ac_cv_header_sys_inttypes_h = yes; then
5821
      HAVE_SYS_INTTYPES_H=1
5822
    else
5823
      HAVE_SYS_INTTYPES_H=0
5824
    fi
5825
 
5826
    if test $ac_cv_header_sys_bitypes_h = yes; then
5827
      HAVE_SYS_BITYPES_H=1
5828
    else
5829
      HAVE_SYS_BITYPES_H=0
5830
    fi
5831
 
5832
 
5833
 
5834
  :
5835
 
5836
 
5837
 
5838
 
5839
 
5840
 
5841
 
5842
 
5843
 
5844
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5845
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5846
$as_echo_n "checking for bit size of $gltype... " >&6; }
5847
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5848
  $as_echo_n "(cached) " >&6
5849
else
5850
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
5851
  /* BSD/OS 4.0.1 has a bug: ,  and  must be
5852
     included before .  */
5853
  #include 
5854
  #include 
5855
  #if HAVE_WCHAR_H
5856
  # include 
5857
  # include 
5858
  # include 
5859
  #endif
5860
 
5861
#include "; then :
5862
 
5863
else
5864
  result=unknown
5865
fi
5866
 
5867
       eval gl_cv_bitsizeof_${gltype}=\$result
5868
 
5869
fi
5870
eval ac_res=\$gl_cv_bitsizeof_${gltype}
5871
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5872
$as_echo "$ac_res" >&6; }
5873
    eval result=\$gl_cv_bitsizeof_${gltype}
5874
    if test $result = unknown; then
5875
                                                result=0
5876
    fi
5877
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5878
    cat >>confdefs.h <<_ACEOF
5879
#define BITSIZEOF_${GLTYPE} $result
5880
_ACEOF
5881
 
5882
    eval BITSIZEOF_${GLTYPE}=\$result
5883
  done
5884
 
5885
 
5886
 
5887
 
5888
  for gltype in sig_atomic_t wchar_t wint_t ; do
5889
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5890
$as_echo_n "checking whether $gltype is signed... " >&6; }
5891
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5892
  $as_echo_n "(cached) " >&6
5893
else
5894
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895
/* end confdefs.h.  */
5896
 
5897
  /* BSD/OS 4.0.1 has a bug: ,  and  must be
5898
     included before .  */
5899
  #include 
5900
  #include 
5901
  #if HAVE_WCHAR_H
5902
  # include 
5903
  # include 
5904
  # include 
5905
  #endif
5906
 
5907
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5908
int
5909
main ()
5910
{
5911
 
5912
  ;
5913
  return 0;
5914
}
5915
_ACEOF
5916
if ac_fn_c_try_compile "$LINENO"; then :
5917
  result=yes
5918
else
5919
  result=no
5920
fi
5921
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922
       eval gl_cv_type_${gltype}_signed=\$result
5923
 
5924
fi
5925
eval ac_res=\$gl_cv_type_${gltype}_signed
5926
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5927
$as_echo "$ac_res" >&6; }
5928
    eval result=\$gl_cv_type_${gltype}_signed
5929
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5930
    if test "$result" = yes; then
5931
      cat >>confdefs.h <<_ACEOF
5932
#define HAVE_SIGNED_${GLTYPE} 1
5933
_ACEOF
5934
 
5935
      eval HAVE_SIGNED_${GLTYPE}=1
5936
    else
5937
      eval HAVE_SIGNED_${GLTYPE}=0
5938
    fi
5939
  done
5940
 
5941
 
5942
  gl_cv_type_ptrdiff_t_signed=yes
5943
  gl_cv_type_size_t_signed=no
5944
 
5945
 
5946
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5947
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5948
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5949
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5950
  $as_echo_n "(cached) " >&6
5951
else
5952
  eval gl_cv_type_${gltype}_suffix=no
5953
       eval result=\$gl_cv_type_${gltype}_signed
5954
       if test "$result" = yes; then
5955
         glsufu=
5956
       else
5957
         glsufu=u
5958
       fi
5959
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5960
         case $glsuf in
5961
           '')  gltype1='int';;
5962
           l)   gltype1='long int';;
5963
           ll)  gltype1='long long int';;
5964
           i64) gltype1='__int64';;
5965
           u)   gltype1='unsigned int';;
5966
           ul)  gltype1='unsigned long int';;
5967
           ull) gltype1='unsigned long long int';;
5968
           ui64)gltype1='unsigned __int64';;
5969
         esac
5970
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971
/* end confdefs.h.  */
5972
 
5973
  /* BSD/OS 4.0.1 has a bug: ,  and  must be
5974
     included before .  */
5975
  #include 
5976
  #include 
5977
  #if HAVE_WCHAR_H
5978
  # include 
5979
  # include 
5980
  # include 
5981
  #endif
5982
 
5983
              extern $gltype foo;
5984
              extern $gltype1 foo;
5985
int
5986
main ()
5987
{
5988
 
5989
  ;
5990
  return 0;
5991
}
5992
_ACEOF
5993
if ac_fn_c_try_compile "$LINENO"; then :
5994
  eval gl_cv_type_${gltype}_suffix=\$glsuf
5995
fi
5996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997
         eval result=\$gl_cv_type_${gltype}_suffix
5998
         test "$result" != no && break
5999
       done
6000
fi
6001
eval ac_res=\$gl_cv_type_${gltype}_suffix
6002
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6003
$as_echo "$ac_res" >&6; }
6004
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6005
    eval result=\$gl_cv_type_${gltype}_suffix
6006
    test "$result" = no && result=
6007
    eval ${GLTYPE}_SUFFIX=\$result
6008
    cat >>confdefs.h <<_ACEOF
6009
#define ${GLTYPE}_SUFFIX $result
6010
_ACEOF
6011
 
6012
  done
6013
 
6014
 
6015
 
6016
    STDINT_H=stdint.h
6017
  fi
6018
 
6019
 
6020
 
6021
 
6022
 
6023
 
6024
 
6025
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether  is standalone" >&5
6026
$as_echo_n "checking whether  is standalone... " >&6; }
6027
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
6028
  $as_echo_n "(cached) " >&6
6029
else
6030
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031
/* end confdefs.h.  */
6032
#include 
6033
wchar_t w;
6034
_ACEOF
6035
if ac_fn_c_try_compile "$LINENO"; then :
6036
  gl_cv_header_wchar_h_standalone=yes
6037
else
6038
  gl_cv_header_wchar_h_standalone=no
6039
fi
6040
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041
fi
6042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
6043
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
6044
  if test $gl_cv_header_wchar_h_standalone != yes; then
6045
    WCHAR_H=wchar.h
6046
  fi
6047
 
6048
 
6049
  :
6050
 
6051
 
6052
 
6053
 
6054
 
6055
  if test $ac_cv_header_wchar_h = yes; then
6056
    HAVE_WCHAR_H=1
6057
  else
6058
    HAVE_WCHAR_H=0
6059
  fi
6060
 
6061
 
6062
 
6063
 
6064
  :
6065
 
6066
 
6067
 
6068
 
6069
 
6070
 
6071
 
6072
     if test $gl_cv_have_include_next = yes; then
6073
       gl_cv_next_wchar_h='<'wchar.h'>'
6074
     else
6075
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5
6076
$as_echo_n "checking absolute name of ... " >&6; }
6077
if test "${gl_cv_next_wchar_h+set}" = set; then :
6078
  $as_echo_n "(cached) " >&6
6079
else
6080
 
6081
          if test $ac_cv_header_wchar_h = yes; then
6082
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083
/* end confdefs.h.  */
6084
#include 
6085
 
6086
_ACEOF
6087
                                    gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088
               sed -n '\#/wchar.h#{
6089
                 s#.*"\(.*/wchar.h\)".*#\1#
6090
                 s#^/[^/]#//&#
6091
                 p
6092
                 q
6093
               }'`'"'
6094
          else
6095
            gl_cv_next_wchar_h='<'wchar.h'>'
6096
          fi
6097
 
6098
fi
6099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
6100
$as_echo "$gl_cv_next_wchar_h" >&6; }
6101
     fi
6102
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
6103
 
6104
 
6105
 
6106
 
6107
 
6108
 
6109
 
6110
 
6111
  gltests_libdeps=
6112
  gltests_ltlibdeps=
6113
 
6114
 
6115
 
6116
  gl_source_base='tests'
6117
 
6118
 
6119
 
6120
 
6121
  LIBGNU_LIBDEPS="$gl_libdeps"
6122
 
6123
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6124
 
6125
 
6126
 
6127
# For Makefile dependencies.
6128
GNULIB_STDINT_H=
6129
if test x"$STDINT_H" != x; then
6130
  GNULIB_STDINT_H=gnulib/$STDINT_H
6131
fi
6132
 
6133
 
6134
PACKAGE=gdb
6135
 
6136
cat >>confdefs.h <<_ACEOF
6137
#define PACKAGE "$PACKAGE"
6138
_ACEOF
6139
 
6140
 
6141
 
6142
# GDB does not use automake, but gnulib does.  This line lets us
6143
# generate its Makefile.in.
6144
am__api_version='1.11'
6145
 
6146
# Find a good install program.  We prefer a C program (faster),
6147
# so one script is as good as another.  But avoid the broken or
6148
# incompatible versions:
6149
# SysV /etc/install, /usr/sbin/install
6150
# SunOS /usr/etc/install
6151
# IRIX /sbin/install
6152
# AIX /bin/install
6153
# AmigaOS /C/install, which installs bootblocks on floppy discs
6154
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6155
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6156
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6157
# OS/2's system install, which has a completely different semantic
6158
# ./install, which can be erroneously created by make from ./install.sh.
6159
# Reject install programs that cannot install multiple files.
6160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6161
$as_echo_n "checking for a BSD-compatible install... " >&6; }
6162
if test -z "$INSTALL"; then
6163
if test "${ac_cv_path_install+set}" = set; then :
6164
  $as_echo_n "(cached) " >&6
6165
else
6166
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167
for as_dir in $PATH
6168
do
6169
  IFS=$as_save_IFS
6170
  test -z "$as_dir" && as_dir=.
6171
    # Account for people who put trailing slashes in PATH elements.
6172
case $as_dir/ in #((
6173
  ./ | .// | /[cC]/* | \
6174
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6175
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6176
  /usr/ucb/* ) ;;
6177
  *)
6178
    # OSF1 and SCO ODT 3.0 have their own names for install.
6179
    # Don't use installbsd from OSF since it installs stuff as root
6180
    # by default.
6181
    for ac_prog in ginstall scoinst install; do
6182
      for ac_exec_ext in '' $ac_executable_extensions; do
6183
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6184
          if test $ac_prog = install &&
6185
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6186
            # AIX install.  It has an incompatible calling convention.
6187
            :
6188
          elif test $ac_prog = install &&
6189
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6190
            # program-specific install script used by HP pwplus--don't use.
6191
            :
6192
          else
6193
            rm -rf conftest.one conftest.two conftest.dir
6194
            echo one > conftest.one
6195
            echo two > conftest.two
6196
            mkdir conftest.dir
6197
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6198
              test -s conftest.one && test -s conftest.two &&
6199
              test -s conftest.dir/conftest.one &&
6200
              test -s conftest.dir/conftest.two
6201
            then
6202
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6203
              break 3
6204
            fi
6205
          fi
6206
        fi
6207
      done
6208
    done
6209
    ;;
6210
esac
6211
 
6212
  done
6213
IFS=$as_save_IFS
6214
 
6215
rm -rf conftest.one conftest.two conftest.dir
6216
 
6217
fi
6218
  if test "${ac_cv_path_install+set}" = set; then
6219
    INSTALL=$ac_cv_path_install
6220
  else
6221
    # As a last resort, use the slow shell script.  Don't cache a
6222
    # value for INSTALL within a source directory, because that will
6223
    # break other packages using the cache if that directory is
6224
    # removed, or if the value is a relative name.
6225
    INSTALL=$ac_install_sh
6226
  fi
6227
fi
6228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6229
$as_echo "$INSTALL" >&6; }
6230
 
6231
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6232
# It thinks the first close brace ends the variable substitution.
6233
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6234
 
6235
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6236
 
6237
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6238
 
6239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6240
$as_echo_n "checking whether build environment is sane... " >&6; }
6241
# Just in case
6242
sleep 1
6243
echo timestamp > conftest.file
6244
# Reject unsafe characters in $srcdir or the absolute working directory
6245
# name.  Accept space and tab only in the latter.
6246
am_lf='
6247
'
6248
case `pwd` in
6249
  *[\\\"\#\$\&\'\`$am_lf]*)
6250
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
6251
esac
6252
case $srcdir in
6253
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6254
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
6255
esac
6256
 
6257
# Do `set' in a subshell so we don't clobber the current shell's
6258
# arguments.  Must try -L first in case configure is actually a
6259
# symlink; some systems play weird games with the mod time of symlinks
6260
# (eg FreeBSD returns the mod time of the symlink's containing
6261
# directory).
6262
if (
6263
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6264
   if test "$*" = "X"; then
6265
      # -L didn't work.
6266
      set X `ls -t "$srcdir/configure" conftest.file`
6267
   fi
6268
   rm -f conftest.file
6269
   if test "$*" != "X $srcdir/configure conftest.file" \
6270
      && test "$*" != "X conftest.file $srcdir/configure"; then
6271
 
6272
      # If neither matched, then we have a broken ls.  This can happen
6273
      # if, for instance, CONFIG_SHELL is bash and it inherits a
6274
      # broken ls alias from the environment.  This has actually
6275
      # happened.  Such a system could not be considered "sane".
6276
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
6277
alias in your environment" "$LINENO" 5
6278
   fi
6279
 
6280
   test "$2" = conftest.file
6281
   )
6282
then
6283
   # Ok.
6284
   :
6285
else
6286
   as_fn_error "newly created file is older than distributed files!
6287
Check your system clock" "$LINENO" 5
6288
fi
6289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6290
$as_echo "yes" >&6; }
6291
test "$program_prefix" != NONE &&
6292
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
6293
# Use a double $ so make ignores it.
6294
test "$program_suffix" != NONE &&
6295
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6296
# Double any \ or $.
6297
# By default was `s,x,x', remove it if useless.
6298
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6299
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6300
 
6301
# expand $ac_aux_dir to an absolute path
6302
am_aux_dir=`cd $ac_aux_dir && pwd`
6303
 
6304
if test x"${MISSING+set}" != xset; then
6305
  case $am_aux_dir in
6306
  *\ * | *\     *)
6307
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
6308
  *)
6309
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
6310
  esac
6311
fi
6312
# Use eval to expand $SHELL
6313
if eval "$MISSING --run true"; then
6314
  am_missing_run="$MISSING --run "
6315
else
6316
  am_missing_run=
6317
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6318
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6319
fi
6320
 
6321
if test x"${install_sh}" != xset; then
6322
  case $am_aux_dir in
6323
  *\ * | *\     *)
6324
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6325
  *)
6326
    install_sh="\${SHELL} $am_aux_dir/install-sh"
6327
  esac
6328
fi
6329
 
6330
# Installed binaries are usually stripped using `strip' when the user
6331
# run `make install-strip'.  However `strip' might not be the right
6332
# tool to use in cross-compilation environments, therefore Automake
6333
# will honor the `STRIP' environment variable to overrule this program.
6334
if test "$cross_compiling" != no; then
6335
  if test -n "$ac_tool_prefix"; then
6336
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6337
set dummy ${ac_tool_prefix}strip; ac_word=$2
6338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339
$as_echo_n "checking for $ac_word... " >&6; }
6340
if test "${ac_cv_prog_STRIP+set}" = set; then :
6341
  $as_echo_n "(cached) " >&6
6342
else
6343
  if test -n "$STRIP"; then
6344
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6345
else
6346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347
for as_dir in $PATH
6348
do
6349
  IFS=$as_save_IFS
6350
  test -z "$as_dir" && as_dir=.
6351
    for ac_exec_ext in '' $ac_executable_extensions; do
6352
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6354
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355
    break 2
6356
  fi
6357
done
6358
  done
6359
IFS=$as_save_IFS
6360
 
6361
fi
6362
fi
6363
STRIP=$ac_cv_prog_STRIP
6364
if test -n "$STRIP"; then
6365
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6366
$as_echo "$STRIP" >&6; }
6367
else
6368
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369
$as_echo "no" >&6; }
6370
fi
6371
 
6372
 
6373
fi
6374
if test -z "$ac_cv_prog_STRIP"; then
6375
  ac_ct_STRIP=$STRIP
6376
  # Extract the first word of "strip", so it can be a program name with args.
6377
set dummy strip; ac_word=$2
6378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379
$as_echo_n "checking for $ac_word... " >&6; }
6380
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6381
  $as_echo_n "(cached) " >&6
6382
else
6383
  if test -n "$ac_ct_STRIP"; then
6384
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6385
else
6386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387
for as_dir in $PATH
6388
do
6389
  IFS=$as_save_IFS
6390
  test -z "$as_dir" && as_dir=.
6391
    for ac_exec_ext in '' $ac_executable_extensions; do
6392
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393
    ac_cv_prog_ac_ct_STRIP="strip"
6394
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395
    break 2
6396
  fi
6397
done
6398
  done
6399
IFS=$as_save_IFS
6400
 
6401
fi
6402
fi
6403
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6404
if test -n "$ac_ct_STRIP"; then
6405
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6406
$as_echo "$ac_ct_STRIP" >&6; }
6407
else
6408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409
$as_echo "no" >&6; }
6410
fi
6411
 
6412
  if test "x$ac_ct_STRIP" = x; then
6413
    STRIP=":"
6414
  else
6415
    case $cross_compiling:$ac_tool_warned in
6416
yes:)
6417
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419
ac_tool_warned=yes ;;
6420
esac
6421
    STRIP=$ac_ct_STRIP
6422
  fi
6423
else
6424
  STRIP="$ac_cv_prog_STRIP"
6425
fi
6426
 
6427
fi
6428
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6429
 
6430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6431
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6432
if test -z "$MKDIR_P"; then
6433
  if test "${ac_cv_path_mkdir+set}" = set; then :
6434
  $as_echo_n "(cached) " >&6
6435
else
6436
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6438
do
6439
  IFS=$as_save_IFS
6440
  test -z "$as_dir" && as_dir=.
6441
    for ac_prog in mkdir gmkdir; do
6442
         for ac_exec_ext in '' $ac_executable_extensions; do
6443
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6444
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6445
             'mkdir (GNU coreutils) '* | \
6446
             'mkdir (coreutils) '* | \
6447
             'mkdir (fileutils) '4.1*)
6448
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6449
               break 3;;
6450
           esac
6451
         done
6452
       done
6453
  done
6454
IFS=$as_save_IFS
6455
 
6456
fi
6457
 
6458
  if test "${ac_cv_path_mkdir+set}" = set; then
6459
    MKDIR_P="$ac_cv_path_mkdir -p"
6460
  else
6461
    # As a last resort, use the slow shell script.  Don't cache a
6462
    # value for MKDIR_P within a source directory, because that will
6463
    # break other packages using the cache if that directory is
6464
    # removed, or if the value is a relative name.
6465
    test -d ./--version && rmdir ./--version
6466
    MKDIR_P="$ac_install_sh -d"
6467
  fi
6468
fi
6469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6470
$as_echo "$MKDIR_P" >&6; }
6471
 
6472
mkdir_p="$MKDIR_P"
6473
case $mkdir_p in
6474
  [\\/$]* | ?:[\\/]*) ;;
6475
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
6476
esac
6477
 
6478
for ac_prog in gawk mawk nawk awk
6479
do
6480
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6481
set dummy $ac_prog; ac_word=$2
6482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483
$as_echo_n "checking for $ac_word... " >&6; }
6484
if test "${ac_cv_prog_AWK+set}" = set; then :
6485
  $as_echo_n "(cached) " >&6
6486
else
6487
  if test -n "$AWK"; then
6488
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6489
else
6490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491
for as_dir in $PATH
6492
do
6493
  IFS=$as_save_IFS
6494
  test -z "$as_dir" && as_dir=.
6495
    for ac_exec_ext in '' $ac_executable_extensions; do
6496
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497
    ac_cv_prog_AWK="$ac_prog"
6498
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499
    break 2
6500
  fi
6501
done
6502
  done
6503
IFS=$as_save_IFS
6504
 
6505
fi
6506
fi
6507
AWK=$ac_cv_prog_AWK
6508
if test -n "$AWK"; then
6509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6510
$as_echo "$AWK" >&6; }
6511
else
6512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513
$as_echo "no" >&6; }
6514
fi
6515
 
6516
 
6517
  test -n "$AWK" && break
6518
done
6519
 
6520
ac_config_commands="$ac_config_commands depfiles"
6521
 
6522
 
6523
am_make=${MAKE-make}
6524
cat > confinc << 'END'
6525
am__doit:
6526
        @echo this is the am__doit target
6527
.PHONY: am__doit
6528
END
6529
# If we don't find an include directive, just comment out the code.
6530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6531
$as_echo_n "checking for style of include used by $am_make... " >&6; }
6532
am__include="#"
6533
am__quote=
6534
_am_result=none
6535
# First try GNU make style include.
6536
echo "include confinc" > confmf
6537
# Ignore all kinds of additional output from `make'.
6538
case `$am_make -s -f confmf 2> /dev/null` in #(
6539
*the\ am__doit\ target*)
6540
  am__include=include
6541
  am__quote=
6542
  _am_result=GNU
6543
  ;;
6544
esac
6545
# Now try BSD make style include.
6546
if test "$am__include" = "#"; then
6547
   echo '.include "confinc"' > confmf
6548
   case `$am_make -s -f confmf 2> /dev/null` in #(
6549
   *the\ am__doit\ target*)
6550
     am__include=.include
6551
     am__quote="\""
6552
     _am_result=BSD
6553
     ;;
6554
   esac
6555
fi
6556
 
6557
 
6558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6559
$as_echo "$_am_result" >&6; }
6560
rm -f confinc confmf
6561
 
6562
# Check whether --enable-dependency-tracking was given.
6563
if test "${enable_dependency_tracking+set}" = set; then :
6564
  enableval=$enable_dependency_tracking;
6565
fi
6566
 
6567
if test "x$enable_dependency_tracking" != xno; then
6568
  am_depcomp="$ac_aux_dir/depcomp"
6569
  AMDEPBACKSLASH='\'
6570
fi
6571
 if test "x$enable_dependency_tracking" != xno; then
6572
  AMDEP_TRUE=
6573
  AMDEP_FALSE='#'
6574
else
6575
  AMDEP_TRUE='#'
6576
  AMDEP_FALSE=
6577
fi
6578
 
6579
 
6580
if test "`cd $srcdir && pwd`" != "`pwd`"; then
6581
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6582
  # is not polluted with repeated "-I."
6583
  am__isrc=' -I$(srcdir)'
6584
  # test to see if srcdir already configured
6585
  if test -f $srcdir/config.status; then
6586
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6587
  fi
6588
fi
6589
 
6590
# test whether we have cygpath
6591
if test -z "$CYGPATH_W"; then
6592
  if (cygpath --version) >/dev/null 2>/dev/null; then
6593
    CYGPATH_W='cygpath -w'
6594
  else
6595
    CYGPATH_W=echo
6596
  fi
6597
fi
6598
 
6599
 
6600
# Define the identity of the package.
6601
 PACKAGE=gdb
6602
 VERSION=UNUSED-VERSION
6603
 
6604
 
6605
# Some tools Automake needs.
6606
 
6607
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6608
 
6609
 
6610
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6611
 
6612
 
6613
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6614
 
6615
 
6616
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6617
 
6618
 
6619
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6620
 
6621
# We need awk for the "check" target.  The system "awk" is bad on
6622
# some platforms.
6623
# Always define AMTAR for backward compatibility.
6624
 
6625
AMTAR=${AMTAR-"${am_missing_run}tar"}
6626
 
6627
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6628
 
6629
 
6630
 
6631
 
6632
depcc="$CC"   am_compiler_list=
6633
 
6634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6635
$as_echo_n "checking dependency style of $depcc... " >&6; }
6636
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6637
  $as_echo_n "(cached) " >&6
6638
else
6639
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6640
  # We make a subdir and do the tests there.  Otherwise we can end up
6641
  # making bogus files that we don't know about and never remove.  For
6642
  # instance it was reported that on HP-UX the gcc test will end up
6643
  # making a dummy file named `D' -- because `-MD' means `put the output
6644
  # in D'.
6645
  mkdir conftest.dir
6646
  # Copy depcomp to subdir because otherwise we won't find it if we're
6647
  # using a relative directory.
6648
  cp "$am_depcomp" conftest.dir
6649
  cd conftest.dir
6650
  # We will build objects and dependencies in a subdirectory because
6651
  # it helps to detect inapplicable dependency modes.  For instance
6652
  # both Tru64's cc and ICC support -MD to output dependencies as a
6653
  # side effect of compilation, but ICC will put the dependencies in
6654
  # the current directory while Tru64 will put them in the object
6655
  # directory.
6656
  mkdir sub
6657
 
6658
  am_cv_CC_dependencies_compiler_type=none
6659
  if test "$am_compiler_list" = ""; then
6660
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6661
  fi
6662
  am__universal=false
6663
  case " $depcc " in #(
6664
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6665
     esac
6666
 
6667
  for depmode in $am_compiler_list; do
6668
    # Setup a source with many dependencies, because some compilers
6669
    # like to wrap large dependency lists on column 80 (with \), and
6670
    # we should not choose a depcomp mode which is confused by this.
6671
    #
6672
    # We need to recreate these files for each test, as the compiler may
6673
    # overwrite some of them when testing with obscure command lines.
6674
    # This happens at least with the AIX C compiler.
6675
    : > sub/conftest.c
6676
    for i in 1 2 3 4 5 6; do
6677
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6678
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6679
      # Solaris 8's {/usr,}/bin/sh.
6680
      touch sub/conftst$i.h
6681
    done
6682
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6683
 
6684
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6685
    # mode.  It turns out that the SunPro C++ compiler does not properly
6686
    # handle `-M -o', and we need to detect this.  Also, some Intel
6687
    # versions had trouble with output in subdirs
6688
    am__obj=sub/conftest.${OBJEXT-o}
6689
    am__minus_obj="-o $am__obj"
6690
    case $depmode in
6691
    gcc)
6692
      # This depmode causes a compiler race in universal mode.
6693
      test "$am__universal" = false || continue
6694
      ;;
6695
    nosideeffect)
6696
      # after this tag, mechanisms are not by side-effect, so they'll
6697
      # only be used when explicitly requested
6698
      if test "x$enable_dependency_tracking" = xyes; then
6699
        continue
6700
      else
6701
        break
6702
      fi
6703
      ;;
6704
    msvisualcpp | msvcmsys)
6705
      # This compiler won't grok `-c -o', but also, the minuso test has
6706
      # not run yet.  These depmodes are late enough in the game, and
6707
      # so weak that their functioning should not be impacted.
6708
      am__obj=conftest.${OBJEXT-o}
6709
      am__minus_obj=
6710
      ;;
6711
    none) break ;;
6712
    esac
6713
    if depmode=$depmode \
6714
       source=sub/conftest.c object=$am__obj \
6715
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6716
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6717
         >/dev/null 2>conftest.err &&
6718
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6719
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6720
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6721
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6722
      # icc doesn't choke on unknown options, it will just issue warnings
6723
      # or remarks (even with -Werror).  So we grep stderr for any message
6724
      # that says an option was ignored or not supported.
6725
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6726
      #   icc: Command line warning: ignoring option '-M'; no argument required
6727
      # The diagnosis changed in icc 8.0:
6728
      #   icc: Command line remark: option '-MP' not supported
6729
      if (grep 'ignoring option' conftest.err ||
6730
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6731
        am_cv_CC_dependencies_compiler_type=$depmode
6732
        break
6733
      fi
6734
    fi
6735
  done
6736
 
6737
  cd ..
6738
  rm -rf conftest.dir
6739
else
6740
  am_cv_CC_dependencies_compiler_type=none
6741
fi
6742
 
6743
fi
6744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6745
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6746
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6747
 
6748
 if
6749
  test "x$enable_dependency_tracking" != xno \
6750
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6751
  am__fastdepCC_TRUE=
6752
  am__fastdepCC_FALSE='#'
6753
else
6754
  am__fastdepCC_TRUE='#'
6755
  am__fastdepCC_FALSE=
6756
fi
6757
 
6758
 
6759
 
6760
 
6761
 
6762
 
6763
# Check whether --with-separate-debug-dir was given.
6764
if test "${with_separate_debug_dir+set}" = set; then :
6765
  withval=$with_separate_debug_dir;
6766
    DEBUGDIR=$withval
6767
else
6768
  DEBUGDIR=${libdir}/debug
6769
fi
6770
 
6771
 
6772
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6773
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6774
  ac_define_dir=`eval echo $DEBUGDIR`
6775
  ac_define_dir=`eval echo $ac_define_dir`
6776
 
6777
cat >>confdefs.h <<_ACEOF
6778
#define DEBUGDIR "$ac_define_dir"
6779
_ACEOF
6780
 
6781
 
6782
 
6783
  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6784
     if test "x$prefix" = xNONE; then
6785
        test_prefix=/usr/local
6786
     else
6787
        test_prefix=$prefix
6788
     fi
6789
  else
6790
     test_prefix=$exec_prefix
6791
  fi
6792
  value=0
6793
  case ${ac_define_dir} in
6794
     "${test_prefix}"|"${test_prefix}/"*|\
6795
        '${exec_prefix}'|'${exec_prefix}/'*)
6796
     value=1
6797
     ;;
6798
  esac
6799
 
6800
cat >>confdefs.h <<_ACEOF
6801
#define DEBUGDIR_RELOCATABLE $value
6802
_ACEOF
6803
 
6804
 
6805
 
6806
# GDB's datadir relocation
6807
 
6808
 
6809
 
6810
# Check whether --with-gdb-datadir was given.
6811
if test "${with_gdb_datadir+set}" = set; then :
6812
  withval=$with_gdb_datadir;
6813
    GDB_DATADIR=$withval
6814
else
6815
  GDB_DATADIR=${datadir}/gdb
6816
fi
6817
 
6818
 
6819
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6820
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6821
  ac_define_dir=`eval echo $GDB_DATADIR`
6822
  ac_define_dir=`eval echo $ac_define_dir`
6823
 
6824
cat >>confdefs.h <<_ACEOF
6825
#define GDB_DATADIR "$ac_define_dir"
6826
_ACEOF
6827
 
6828
 
6829
 
6830
  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6831
     if test "x$prefix" = xNONE; then
6832
        test_prefix=/usr/local
6833
     else
6834
        test_prefix=$prefix
6835
     fi
6836
  else
6837
     test_prefix=$exec_prefix
6838
  fi
6839
  value=0
6840
  case ${ac_define_dir} in
6841
     "${test_prefix}"|"${test_prefix}/"*|\
6842
        '${exec_prefix}'|'${exec_prefix}/'*)
6843
     value=1
6844
     ;;
6845
  esac
6846
 
6847
cat >>confdefs.h <<_ACEOF
6848
#define GDB_DATADIR_RELOCATABLE $value
6849
_ACEOF
6850
 
6851
 
6852
 
6853
 
6854
# Check whether --with-relocated-sources was given.
6855
if test "${with_relocated_sources+set}" = set; then :
6856
  withval=$with_relocated_sources; reloc_srcdir="${withval}"
6857
 
6858
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6859
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6860
  ac_define_dir=`eval echo $reloc_srcdir`
6861
  ac_define_dir=`eval echo $ac_define_dir`
6862
 
6863
cat >>confdefs.h <<_ACEOF
6864
#define RELOC_SRCDIR "$ac_define_dir"
6865
_ACEOF
6866
 
6867
 
6868
 
6869
fi
6870
 
6871
 
6872
 
6873
 
6874
subdirs="$subdirs doc testsuite"
6875
 
6876
 
6877
# Check whether to support alternative target configurations
6878
# Check whether --enable-targets was given.
6879
if test "${enable_targets+set}" = set; then :
6880
  enableval=$enable_targets; case "${enableval}" in
6881
  yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
6882
            ;;
6883
  no)       enable_targets= ;;
6884
  *)        enable_targets=$enableval ;;
6885
esac
6886
fi
6887
 
6888
 
6889
# Check whether to enable 64-bit support on 32-bit hosts
6890
# Check whether --enable-64-bit-bfd was given.
6891
if test "${enable_64_bit_bfd+set}" = set; then :
6892
  enableval=$enable_64_bit_bfd; case "${enableval}" in
6893
  yes)  want64=true  ;;
6894
  no)   want64=false ;;
6895
  *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6896
esac
6897
else
6898
  want64=false
6899
fi
6900
 
6901
# Provide defaults for some variables set by the per-host and per-target
6902
# configuration.
6903
gdb_host_obs=posix-hdep.o
6904
 
6905
if test "${target}" = "${host}"; then
6906
  gdb_native=yes
6907
else
6908
  gdb_native=no
6909
fi
6910
 
6911
. $srcdir/configure.host
6912
 
6913
# Accumulate some settings from configure.tgt over all enabled targets
6914
 
6915
TARGET_OBS=
6916
all_targets=
6917
 
6918
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6919
do
6920
  if test "$targ_alias" = "all"; then
6921
    all_targets=true
6922
  else
6923
    # Canonicalize the secondary target names.
6924
    result=`$ac_config_sub $targ_alias 2>/dev/null`
6925
    if test -n "$result"; then
6926
        targ=$result
6927
    else
6928
        targ=$targ_alias
6929
    fi
6930
 
6931
    . ${srcdir}/configure.tgt
6932
 
6933
    if test -z "${gdb_target_obs}"; then :
6934
  as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
6935
fi
6936
 
6937
    # Target-specific object files
6938
    for i in ${gdb_target_obs}; do
6939
        case " $TARGET_OBS " in
6940
        *" ${i} "*) ;;
6941
        *)
6942
          TARGET_OBS="$TARGET_OBS ${i}"
6943
          ;;
6944
        esac
6945
    done
6946
 
6947
    # Check whether this target needs 64-bit CORE_ADDR
6948
    if test x${want64} = xfalse; then
6949
      . ${srcdir}/../bfd/config.bfd
6950
    fi
6951
  fi
6952
done
6953
 
6954
if test x${all_targets} = xtrue; then
6955
 
6956
  # We want all 64-bit targets if we either:
6957
  #  - run on a 64-bit host  or
6958
  #  - already require 64-bit support for some other target  or
6959
  #  - the --enable-64-bit-bfd option was supplied
6960
  # Otherwise we only support all 32-bit targets.
6961
  #
6962
  # NOTE: This test must be in sync with the corresponding
6963
  #       tests in BFD!
6964
 
6965
  if test x${want64} = xfalse; then
6966
    # The cast to long int works around a bug in the HP C Compiler
6967
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6968
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6969
# This bug is HP SR number 8606223364.
6970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6971
$as_echo_n "checking size of long... " >&6; }
6972
if test "${ac_cv_sizeof_long+set}" = set; then :
6973
  $as_echo_n "(cached) " >&6
6974
else
6975
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6976
 
6977
else
6978
  if test "$ac_cv_type_long" = yes; then
6979
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6980
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6981
{ as_fn_set_status 77
6982
as_fn_error "cannot compute sizeof (long)
6983
See \`config.log' for more details." "$LINENO" 5; }; }
6984
   else
6985
     ac_cv_sizeof_long=0
6986
   fi
6987
fi
6988
 
6989
fi
6990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6991
$as_echo "$ac_cv_sizeof_long" >&6; }
6992
 
6993
 
6994
 
6995
cat >>confdefs.h <<_ACEOF
6996
#define SIZEOF_LONG $ac_cv_sizeof_long
6997
_ACEOF
6998
 
6999
 
7000
    if test "x${ac_cv_sizeof_long}" = "x8"; then
7001
      want64=true
7002
    fi
7003
  fi
7004
  if test x${want64} = xtrue; then
7005
    TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7006
  else
7007
    TARGET_OBS='$(ALL_TARGET_OBS)'
7008
  fi
7009
fi
7010
 
7011
 
7012
 
7013
# For other settings, only the main target counts.
7014
gdb_sim=
7015
gdb_osabi=
7016
build_gdbserver=
7017
targ=$target; . ${srcdir}/configure.tgt
7018
 
7019
# Fetch the default architecture and default target vector from BFD.
7020
targ=$target; . $srcdir/../bfd/config.bfd
7021
 
7022
# We only want the first architecture, so strip off the others if
7023
# there is more than one.
7024
targ_archs=`echo $targ_archs | sed 's/ .*//'`
7025
 
7026
if test "x$targ_archs" != x; then
7027
 
7028
cat >>confdefs.h <<_ACEOF
7029
#define DEFAULT_BFD_ARCH $targ_archs
7030
_ACEOF
7031
 
7032
fi
7033
if test "x$targ_defvec" != x; then
7034
 
7035
cat >>confdefs.h <<_ACEOF
7036
#define DEFAULT_BFD_VEC $targ_defvec
7037
_ACEOF
7038
 
7039
fi
7040
 
7041
# The CLI cannot be disabled yet, but may be in the future.
7042
 
7043
# Enable CLI.
7044
# Check whether --enable-gdbcli was given.
7045
if test "${enable_gdbcli+set}" = set; then :
7046
  enableval=$enable_gdbcli; case $enableval in
7047
    yes)
7048
      ;;
7049
    no)
7050
      as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
7051
    *)
7052
      as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
7053
  esac
7054
else
7055
  enable_gdbcli=yes
7056
fi
7057
 
7058
if test x"$enable_gdbcli" = xyes; then
7059
  if test -d $srcdir/cli; then
7060
    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7061
    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7062
    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7063
    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7064
  fi
7065
fi
7066
 
7067
# Enable MI.
7068
# Check whether --enable-gdbmi was given.
7069
if test "${enable_gdbmi+set}" = set; then :
7070
  enableval=$enable_gdbmi; case $enableval in
7071
    yes | no)
7072
      ;;
7073
    *)
7074
      as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
7075
  esac
7076
else
7077
  enable_gdbmi=yes
7078
fi
7079
 
7080
if test x"$enable_gdbmi" = xyes; then
7081
  if test -d $srcdir/mi; then
7082
    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7083
    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7084
    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7085
    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7086
  fi
7087
fi
7088
 
7089
# Enable TUI.
7090
# Check whether --enable-tui was given.
7091
if test "${enable_tui+set}" = set; then :
7092
  enableval=$enable_tui; case $enableval in
7093
    yes | no | auto)
7094
      ;;
7095
    *)
7096
      as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
7097
  esac
7098
else
7099
  enable_tui=auto
7100
fi
7101
 
7102
 
7103
# Enable gdbtk.
7104
# Check whether --enable-gdbtk was given.
7105
if test "${enable_gdbtk+set}" = set; then :
7106
  enableval=$enable_gdbtk; case $enableval in
7107
    yes | no)
7108
      ;;
7109
    *)
7110
      as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
7111
  esac
7112
else
7113
  if test -d $srcdir/gdbtk; then
7114
    enable_gdbtk=yes
7115
  else
7116
    enable_gdbtk=no
7117
  fi
7118
fi
7119
 
7120
# We unconditionally disable gdbtk tests on selected platforms.
7121
case $host_os in
7122
  go32* | windows*)
7123
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
7124
$as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7125
    enable_gdbtk=no ;;
7126
esac
7127
 
7128
# Libunwind support.
7129
 
7130
# Check whether --with-libunwind was given.
7131
if test "${with_libunwind+set}" = set; then :
7132
  withval=$with_libunwind; case "${withval}" in
7133
  yes)  enable_libunwind=yes ;;
7134
  no)   enable_libunwind=no ;;
7135
  *)    as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
7136
esac
7137
else
7138
 
7139
  for ac_header in libunwind.h libunwind-ia64.h
7140
do :
7141
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7143
eval as_val=\$$as_ac_Header
7144
   if test "x$as_val" = x""yes; then :
7145
  cat >>confdefs.h <<_ACEOF
7146
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7147
_ACEOF
7148
 
7149
fi
7150
 
7151
done
7152
 
7153
  if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7154
    enable_libunwind=yes;
7155
  fi
7156
 
7157
fi
7158
 
7159
 
7160
if test x"$enable_libunwind" = xyes; then
7161
  for ac_header in libunwind.h libunwind-ia64.h
7162
do :
7163
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7164
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7165
eval as_val=\$$as_ac_Header
7166
   if test "x$as_val" = x""yes; then :
7167
  cat >>confdefs.h <<_ACEOF
7168
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7169
_ACEOF
7170
 
7171
fi
7172
 
7173
done
7174
 
7175
 
7176
$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
7177
 
7178
  CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
7179
  CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
7180
  CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
7181
fi
7182
 
7183
opt_curses=no
7184
 
7185
# Check whether --with-curses was given.
7186
if test "${with_curses+set}" = set; then :
7187
  withval=$with_curses; opt_curses=$withval
7188
fi
7189
 
7190
 
7191
prefer_curses=no
7192
if test "$opt_curses" = "yes"; then
7193
  prefer_curses=yes
7194
fi
7195
 
7196
# Profiling support.
7197
# Check whether --enable-profiling was given.
7198
if test "${enable_profiling+set}" = set; then :
7199
  enableval=$enable_profiling; case $enableval in
7200
    yes | no)
7201
      ;;
7202
    *)
7203
      as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7204
  esac
7205
else
7206
  enable_profiling=no
7207
fi
7208
 
7209
 
7210
for ac_func in monstartup _mcleanup
7211
do :
7212
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7213
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7214
eval as_val=\$$as_ac_var
7215
   if test "x$as_val" = x""yes; then :
7216
  cat >>confdefs.h <<_ACEOF
7217
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7218
_ACEOF
7219
 
7220
fi
7221
done
7222
 
7223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7224
$as_echo_n "checking for _etext... " >&6; }
7225
if test "${ac_cv_var__etext+set}" = set; then :
7226
  $as_echo_n "(cached) " >&6
7227
else
7228
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229
/* end confdefs.h.  */
7230
#include 
7231
extern char _etext;
7232
 
7233
int
7234
main ()
7235
{
7236
free (&_etext);
7237
  ;
7238
  return 0;
7239
}
7240
_ACEOF
7241
if ac_fn_c_try_link "$LINENO"; then :
7242
  ac_cv_var__etext=yes
7243
else
7244
  ac_cv_var__etext=no
7245
fi
7246
rm -f core conftest.err conftest.$ac_objext \
7247
    conftest$ac_exeext conftest.$ac_ext
7248
fi
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7250
$as_echo "$ac_cv_var__etext" >&6; }
7251
if test $ac_cv_var__etext = yes; then
7252
 
7253
$as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7254
 
7255
fi
7256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7257
$as_echo_n "checking for etext... " >&6; }
7258
if test "${ac_cv_var_etext+set}" = set; then :
7259
  $as_echo_n "(cached) " >&6
7260
else
7261
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262
/* end confdefs.h.  */
7263
#include 
7264
extern char etext;
7265
 
7266
int
7267
main ()
7268
{
7269
free (&etext);
7270
  ;
7271
  return 0;
7272
}
7273
_ACEOF
7274
if ac_fn_c_try_link "$LINENO"; then :
7275
  ac_cv_var_etext=yes
7276
else
7277
  ac_cv_var_etext=no
7278
fi
7279
rm -f core conftest.err conftest.$ac_objext \
7280
    conftest$ac_exeext conftest.$ac_ext
7281
fi
7282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7283
$as_echo "$ac_cv_var_etext" >&6; }
7284
if test $ac_cv_var_etext = yes; then
7285
 
7286
$as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7287
 
7288
fi
7289
if test "$enable_profiling" = yes ; then
7290
  if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7291
    as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7292
  fi
7293
  PROFILE_CFLAGS=-pg
7294
  OLD_CFLAGS="$CFLAGS"
7295
  CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7296
 
7297
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7298
$as_echo_n "checking whether $CC supports -pg... " >&6; }
7299
if test "${ac_cv_cc_supports_pg+set}" = set; then :
7300
  $as_echo_n "(cached) " >&6
7301
else
7302
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303
/* end confdefs.h.  */
7304
 
7305
int
7306
main ()
7307
{
7308
int x;
7309
  ;
7310
  return 0;
7311
}
7312
_ACEOF
7313
if ac_fn_c_try_compile "$LINENO"; then :
7314
  ac_cv_cc_supports_pg=yes
7315
else
7316
  ac_cv_cc_supports_pg=no
7317
fi
7318
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319
fi
7320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7321
$as_echo "$ac_cv_cc_supports_pg" >&6; }
7322
 
7323
  if test $ac_cv_cc_supports_pg = no; then
7324
    as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7325
  fi
7326
 
7327
  CFLAGS="$OLD_CFLAGS"
7328
fi
7329
 
7330
 
7331
 
7332
# Check whether --with-pkgversion was given.
7333
if test "${with_pkgversion+set}" = set; then :
7334
  withval=$with_pkgversion; case "$withval" in
7335
      yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7336
      no)  PKGVERSION= ;;
7337
      *)   PKGVERSION="($withval) " ;;
7338
     esac
7339
else
7340
  PKGVERSION="(GDB) "
7341
 
7342
fi
7343
 
7344
 
7345
 
7346
 
7347
 
7348
# Check whether --with-bugurl was given.
7349
if test "${with_bugurl+set}" = set; then :
7350
  withval=$with_bugurl; case "$withval" in
7351
      yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7352
      no)  BUGURL=
7353
           ;;
7354
      *)   BUGURL="$withval"
7355
           ;;
7356
     esac
7357
else
7358
  BUGURL="http://www.gnu.org/software/gdb/bugs/"
7359
 
7360
fi
7361
 
7362
  case ${BUGURL} in
7363
  "")
7364
    REPORT_BUGS_TO=
7365
    REPORT_BUGS_TEXI=
7366
    ;;
7367
  *)
7368
    REPORT_BUGS_TO="<$BUGURL>"
7369
    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7370
    ;;
7371
  esac;
7372
 
7373
 
7374
 
7375
 
7376
cat >>confdefs.h <<_ACEOF
7377
#define PKGVERSION "$PKGVERSION"
7378
_ACEOF
7379
 
7380
 
7381
cat >>confdefs.h <<_ACEOF
7382
#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7383
_ACEOF
7384
 
7385
 
7386
# --------------------- #
7387
# Checks for programs.  #
7388
# --------------------- #
7389
 
7390
for ac_prog in gawk mawk nawk awk
7391
do
7392
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7393
set dummy $ac_prog; ac_word=$2
7394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395
$as_echo_n "checking for $ac_word... " >&6; }
7396
if test "${ac_cv_prog_AWK+set}" = set; then :
7397
  $as_echo_n "(cached) " >&6
7398
else
7399
  if test -n "$AWK"; then
7400
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7401
else
7402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403
for as_dir in $PATH
7404
do
7405
  IFS=$as_save_IFS
7406
  test -z "$as_dir" && as_dir=.
7407
    for ac_exec_ext in '' $ac_executable_extensions; do
7408
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409
    ac_cv_prog_AWK="$ac_prog"
7410
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411
    break 2
7412
  fi
7413
done
7414
  done
7415
IFS=$as_save_IFS
7416
 
7417
fi
7418
fi
7419
AWK=$ac_cv_prog_AWK
7420
if test -n "$AWK"; then
7421
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7422
$as_echo "$AWK" >&6; }
7423
else
7424
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425
$as_echo "no" >&6; }
7426
fi
7427
 
7428
 
7429
  test -n "$AWK" && break
7430
done
7431
 
7432
 
7433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7434
$as_echo_n "checking whether ln -s works... " >&6; }
7435
LN_S=$as_ln_s
7436
if test "$LN_S" = "ln -s"; then
7437
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7438
$as_echo "yes" >&6; }
7439
else
7440
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7441
$as_echo "no, using $LN_S" >&6; }
7442
fi
7443
 
7444
if test -n "$ac_tool_prefix"; then
7445
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7446
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448
$as_echo_n "checking for $ac_word... " >&6; }
7449
if test "${ac_cv_prog_RANLIB+set}" = set; then :
7450
  $as_echo_n "(cached) " >&6
7451
else
7452
  if test -n "$RANLIB"; then
7453
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7454
else
7455
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456
for as_dir in $PATH
7457
do
7458
  IFS=$as_save_IFS
7459
  test -z "$as_dir" && as_dir=.
7460
    for ac_exec_ext in '' $ac_executable_extensions; do
7461
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7463
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464
    break 2
7465
  fi
7466
done
7467
  done
7468
IFS=$as_save_IFS
7469
 
7470
fi
7471
fi
7472
RANLIB=$ac_cv_prog_RANLIB
7473
if test -n "$RANLIB"; then
7474
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7475
$as_echo "$RANLIB" >&6; }
7476
else
7477
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478
$as_echo "no" >&6; }
7479
fi
7480
 
7481
 
7482
fi
7483
if test -z "$ac_cv_prog_RANLIB"; then
7484
  ac_ct_RANLIB=$RANLIB
7485
  # Extract the first word of "ranlib", so it can be a program name with args.
7486
set dummy ranlib; ac_word=$2
7487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488
$as_echo_n "checking for $ac_word... " >&6; }
7489
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7490
  $as_echo_n "(cached) " >&6
7491
else
7492
  if test -n "$ac_ct_RANLIB"; then
7493
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7494
else
7495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496
for as_dir in $PATH
7497
do
7498
  IFS=$as_save_IFS
7499
  test -z "$as_dir" && as_dir=.
7500
    for ac_exec_ext in '' $ac_executable_extensions; do
7501
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7503
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504
    break 2
7505
  fi
7506
done
7507
  done
7508
IFS=$as_save_IFS
7509
 
7510
fi
7511
fi
7512
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7513
if test -n "$ac_ct_RANLIB"; then
7514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7515
$as_echo "$ac_ct_RANLIB" >&6; }
7516
else
7517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518
$as_echo "no" >&6; }
7519
fi
7520
 
7521
  if test "x$ac_ct_RANLIB" = x; then
7522
    RANLIB=":"
7523
  else
7524
    case $cross_compiling:$ac_tool_warned in
7525
yes:)
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528
ac_tool_warned=yes ;;
7529
esac
7530
    RANLIB=$ac_ct_RANLIB
7531
  fi
7532
else
7533
  RANLIB="$ac_cv_prog_RANLIB"
7534
fi
7535
 
7536
for ac_prog in 'bison -y' byacc
7537
do
7538
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7539
set dummy $ac_prog; ac_word=$2
7540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541
$as_echo_n "checking for $ac_word... " >&6; }
7542
if test "${ac_cv_prog_YACC+set}" = set; then :
7543
  $as_echo_n "(cached) " >&6
7544
else
7545
  if test -n "$YACC"; then
7546
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7547
else
7548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549
for as_dir in $PATH
7550
do
7551
  IFS=$as_save_IFS
7552
  test -z "$as_dir" && as_dir=.
7553
    for ac_exec_ext in '' $ac_executable_extensions; do
7554
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555
    ac_cv_prog_YACC="$ac_prog"
7556
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557
    break 2
7558
  fi
7559
done
7560
  done
7561
IFS=$as_save_IFS
7562
 
7563
fi
7564
fi
7565
YACC=$ac_cv_prog_YACC
7566
if test -n "$YACC"; then
7567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7568
$as_echo "$YACC" >&6; }
7569
else
7570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571
$as_echo "no" >&6; }
7572
fi
7573
 
7574
 
7575
  test -n "$YACC" && break
7576
done
7577
test -n "$YACC" || YACC="yacc"
7578
 
7579
 
7580
if test -n "$ac_tool_prefix"; then
7581
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7582
set dummy ${ac_tool_prefix}ar; ac_word=$2
7583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584
$as_echo_n "checking for $ac_word... " >&6; }
7585
if test "${ac_cv_prog_AR+set}" = set; then :
7586
  $as_echo_n "(cached) " >&6
7587
else
7588
  if test -n "$AR"; then
7589
  ac_cv_prog_AR="$AR" # Let the user override the test.
7590
else
7591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592
for as_dir in $PATH
7593
do
7594
  IFS=$as_save_IFS
7595
  test -z "$as_dir" && as_dir=.
7596
    for ac_exec_ext in '' $ac_executable_extensions; do
7597
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598
    ac_cv_prog_AR="${ac_tool_prefix}ar"
7599
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600
    break 2
7601
  fi
7602
done
7603
  done
7604
IFS=$as_save_IFS
7605
 
7606
fi
7607
fi
7608
AR=$ac_cv_prog_AR
7609
if test -n "$AR"; then
7610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7611
$as_echo "$AR" >&6; }
7612
else
7613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614
$as_echo "no" >&6; }
7615
fi
7616
 
7617
 
7618
fi
7619
if test -z "$ac_cv_prog_AR"; then
7620
  ac_ct_AR=$AR
7621
  # Extract the first word of "ar", so it can be a program name with args.
7622
set dummy ar; ac_word=$2
7623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624
$as_echo_n "checking for $ac_word... " >&6; }
7625
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7626
  $as_echo_n "(cached) " >&6
7627
else
7628
  if test -n "$ac_ct_AR"; then
7629
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7630
else
7631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632
for as_dir in $PATH
7633
do
7634
  IFS=$as_save_IFS
7635
  test -z "$as_dir" && as_dir=.
7636
    for ac_exec_ext in '' $ac_executable_extensions; do
7637
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638
    ac_cv_prog_ac_ct_AR="ar"
7639
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640
    break 2
7641
  fi
7642
done
7643
  done
7644
IFS=$as_save_IFS
7645
 
7646
fi
7647
fi
7648
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7649
if test -n "$ac_ct_AR"; then
7650
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7651
$as_echo "$ac_ct_AR" >&6; }
7652
else
7653
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654
$as_echo "no" >&6; }
7655
fi
7656
 
7657
  if test "x$ac_ct_AR" = x; then
7658
    AR=""
7659
  else
7660
    case $cross_compiling:$ac_tool_warned in
7661
yes:)
7662
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664
ac_tool_warned=yes ;;
7665
esac
7666
    AR=$ac_ct_AR
7667
  fi
7668
else
7669
  AR="$ac_cv_prog_AR"
7670
fi
7671
 
7672
if test -n "$ac_tool_prefix"; then
7673
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7674
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676
$as_echo_n "checking for $ac_word... " >&6; }
7677
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7678
  $as_echo_n "(cached) " >&6
7679
else
7680
  if test -n "$DLLTOOL"; then
7681
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7682
else
7683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684
for as_dir in $PATH
7685
do
7686
  IFS=$as_save_IFS
7687
  test -z "$as_dir" && as_dir=.
7688
    for ac_exec_ext in '' $ac_executable_extensions; do
7689
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7691
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692
    break 2
7693
  fi
7694
done
7695
  done
7696
IFS=$as_save_IFS
7697
 
7698
fi
7699
fi
7700
DLLTOOL=$ac_cv_prog_DLLTOOL
7701
if test -n "$DLLTOOL"; then
7702
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7703
$as_echo "$DLLTOOL" >&6; }
7704
else
7705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706
$as_echo "no" >&6; }
7707
fi
7708
 
7709
 
7710
fi
7711
if test -z "$ac_cv_prog_DLLTOOL"; then
7712
  ac_ct_DLLTOOL=$DLLTOOL
7713
  # Extract the first word of "dlltool", so it can be a program name with args.
7714
set dummy dlltool; ac_word=$2
7715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716
$as_echo_n "checking for $ac_word... " >&6; }
7717
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7718
  $as_echo_n "(cached) " >&6
7719
else
7720
  if test -n "$ac_ct_DLLTOOL"; then
7721
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7722
else
7723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724
for as_dir in $PATH
7725
do
7726
  IFS=$as_save_IFS
7727
  test -z "$as_dir" && as_dir=.
7728
    for ac_exec_ext in '' $ac_executable_extensions; do
7729
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7731
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732
    break 2
7733
  fi
7734
done
7735
  done
7736
IFS=$as_save_IFS
7737
 
7738
fi
7739
fi
7740
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7741
if test -n "$ac_ct_DLLTOOL"; then
7742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7743
$as_echo "$ac_ct_DLLTOOL" >&6; }
7744
else
7745
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746
$as_echo "no" >&6; }
7747
fi
7748
 
7749
  if test "x$ac_ct_DLLTOOL" = x; then
7750
    DLLTOOL=""
7751
  else
7752
    case $cross_compiling:$ac_tool_warned in
7753
yes:)
7754
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756
ac_tool_warned=yes ;;
7757
esac
7758
    DLLTOOL=$ac_ct_DLLTOOL
7759
  fi
7760
else
7761
  DLLTOOL="$ac_cv_prog_DLLTOOL"
7762
fi
7763
 
7764
if test -n "$ac_tool_prefix"; then
7765
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7766
set dummy ${ac_tool_prefix}windres; ac_word=$2
7767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768
$as_echo_n "checking for $ac_word... " >&6; }
7769
if test "${ac_cv_prog_WINDRES+set}" = set; then :
7770
  $as_echo_n "(cached) " >&6
7771
else
7772
  if test -n "$WINDRES"; then
7773
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7774
else
7775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776
for as_dir in $PATH
7777
do
7778
  IFS=$as_save_IFS
7779
  test -z "$as_dir" && as_dir=.
7780
    for ac_exec_ext in '' $ac_executable_extensions; do
7781
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7783
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784
    break 2
7785
  fi
7786
done
7787
  done
7788
IFS=$as_save_IFS
7789
 
7790
fi
7791
fi
7792
WINDRES=$ac_cv_prog_WINDRES
7793
if test -n "$WINDRES"; then
7794
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7795
$as_echo "$WINDRES" >&6; }
7796
else
7797
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798
$as_echo "no" >&6; }
7799
fi
7800
 
7801
 
7802
fi
7803
if test -z "$ac_cv_prog_WINDRES"; then
7804
  ac_ct_WINDRES=$WINDRES
7805
  # Extract the first word of "windres", so it can be a program name with args.
7806
set dummy windres; ac_word=$2
7807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808
$as_echo_n "checking for $ac_word... " >&6; }
7809
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7810
  $as_echo_n "(cached) " >&6
7811
else
7812
  if test -n "$ac_ct_WINDRES"; then
7813
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7814
else
7815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816
for as_dir in $PATH
7817
do
7818
  IFS=$as_save_IFS
7819
  test -z "$as_dir" && as_dir=.
7820
    for ac_exec_ext in '' $ac_executable_extensions; do
7821
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822
    ac_cv_prog_ac_ct_WINDRES="windres"
7823
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824
    break 2
7825
  fi
7826
done
7827
  done
7828
IFS=$as_save_IFS
7829
 
7830
fi
7831
fi
7832
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7833
if test -n "$ac_ct_WINDRES"; then
7834
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7835
$as_echo "$ac_ct_WINDRES" >&6; }
7836
else
7837
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838
$as_echo "no" >&6; }
7839
fi
7840
 
7841
  if test "x$ac_ct_WINDRES" = x; then
7842
    WINDRES=""
7843
  else
7844
    case $cross_compiling:$ac_tool_warned in
7845
yes:)
7846
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7847
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848
ac_tool_warned=yes ;;
7849
esac
7850
    WINDRES=$ac_ct_WINDRES
7851
  fi
7852
else
7853
  WINDRES="$ac_cv_prog_WINDRES"
7854
fi
7855
 
7856
 
7857
# Needed for GNU/Hurd.
7858
if test -n "$ac_tool_prefix"; then
7859
  # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7860
set dummy ${ac_tool_prefix}mig; ac_word=$2
7861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862
$as_echo_n "checking for $ac_word... " >&6; }
7863
if test "${ac_cv_prog_MIG+set}" = set; then :
7864
  $as_echo_n "(cached) " >&6
7865
else
7866
  if test -n "$MIG"; then
7867
  ac_cv_prog_MIG="$MIG" # Let the user override the test.
7868
else
7869
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870
for as_dir in $PATH
7871
do
7872
  IFS=$as_save_IFS
7873
  test -z "$as_dir" && as_dir=.
7874
    for ac_exec_ext in '' $ac_executable_extensions; do
7875
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876
    ac_cv_prog_MIG="${ac_tool_prefix}mig"
7877
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878
    break 2
7879
  fi
7880
done
7881
  done
7882
IFS=$as_save_IFS
7883
 
7884
fi
7885
fi
7886
MIG=$ac_cv_prog_MIG
7887
if test -n "$MIG"; then
7888
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7889
$as_echo "$MIG" >&6; }
7890
else
7891
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892
$as_echo "no" >&6; }
7893
fi
7894
 
7895
 
7896
fi
7897
if test -z "$ac_cv_prog_MIG"; then
7898
  ac_ct_MIG=$MIG
7899
  # Extract the first word of "mig", so it can be a program name with args.
7900
set dummy mig; ac_word=$2
7901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902
$as_echo_n "checking for $ac_word... " >&6; }
7903
if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7904
  $as_echo_n "(cached) " >&6
7905
else
7906
  if test -n "$ac_ct_MIG"; then
7907
  ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7908
else
7909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910
for as_dir in $PATH
7911
do
7912
  IFS=$as_save_IFS
7913
  test -z "$as_dir" && as_dir=.
7914
    for ac_exec_ext in '' $ac_executable_extensions; do
7915
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916
    ac_cv_prog_ac_ct_MIG="mig"
7917
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918
    break 2
7919
  fi
7920
done
7921
  done
7922
IFS=$as_save_IFS
7923
 
7924
fi
7925
fi
7926
ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7927
if test -n "$ac_ct_MIG"; then
7928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7929
$as_echo "$ac_ct_MIG" >&6; }
7930
else
7931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932
$as_echo "no" >&6; }
7933
fi
7934
 
7935
  if test "x$ac_ct_MIG" = x; then
7936
    MIG=""
7937
  else
7938
    case $cross_compiling:$ac_tool_warned in
7939
yes:)
7940
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7941
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7942
ac_tool_warned=yes ;;
7943
esac
7944
    MIG=$ac_ct_MIG
7945
  fi
7946
else
7947
  MIG="$ac_cv_prog_MIG"
7948
fi
7949
 
7950
 
7951
# ---------------------- #
7952
# Checks for libraries.  #
7953
# ---------------------- #
7954
 
7955
# We might need to link with -lm; most simulators need it.
7956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7957
$as_echo_n "checking for main in -lm... " >&6; }
7958
if test "${ac_cv_lib_m_main+set}" = set; then :
7959
  $as_echo_n "(cached) " >&6
7960
else
7961
  ac_check_lib_save_LIBS=$LIBS
7962
LIBS="-lm  $LIBS"
7963
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964
/* end confdefs.h.  */
7965
 
7966
 
7967
int
7968
main ()
7969
{
7970
return main ();
7971
  ;
7972
  return 0;
7973
}
7974
_ACEOF
7975
if ac_fn_c_try_link "$LINENO"; then :
7976
  ac_cv_lib_m_main=yes
7977
else
7978
  ac_cv_lib_m_main=no
7979
fi
7980
rm -f core conftest.err conftest.$ac_objext \
7981
    conftest$ac_exeext conftest.$ac_ext
7982
LIBS=$ac_check_lib_save_LIBS
7983
fi
7984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7985
$as_echo "$ac_cv_lib_m_main" >&6; }
7986
if test "x$ac_cv_lib_m_main" = x""yes; then :
7987
  cat >>confdefs.h <<_ACEOF
7988
#define HAVE_LIBM 1
7989
_ACEOF
7990
 
7991
  LIBS="-lm $LIBS"
7992
 
7993
fi
7994
 
7995
 
7996
# We need to link with -lw to get `wctype' on Solaris before Solaris
7997
# 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
7998
# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7999
# is known to have this problem).  Therefore we avoid libw if we can.
8000
ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
8001
if test "x$ac_cv_func_wctype" = x""yes; then :
8002
 
8003
else
8004
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
8005
$as_echo_n "checking for wctype in -lw... " >&6; }
8006
if test "${ac_cv_lib_w_wctype+set}" = set; then :
8007
  $as_echo_n "(cached) " >&6
8008
else
8009
  ac_check_lib_save_LIBS=$LIBS
8010
LIBS="-lw  $LIBS"
8011
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012
/* end confdefs.h.  */
8013
 
8014
/* Override any GCC internal prototype to avoid an error.
8015
   Use char because int might match the return type of a GCC
8016
   builtin and then its argument prototype would still apply.  */
8017
#ifdef __cplusplus
8018
extern "C"
8019
#endif
8020
char wctype ();
8021
int
8022
main ()
8023
{
8024
return wctype ();
8025
  ;
8026
  return 0;
8027
}
8028
_ACEOF
8029
if ac_fn_c_try_link "$LINENO"; then :
8030
  ac_cv_lib_w_wctype=yes
8031
else
8032
  ac_cv_lib_w_wctype=no
8033
fi
8034
rm -f core conftest.err conftest.$ac_objext \
8035
    conftest$ac_exeext conftest.$ac_ext
8036
LIBS=$ac_check_lib_save_LIBS
8037
fi
8038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
8039
$as_echo "$ac_cv_lib_w_wctype" >&6; }
8040
if test "x$ac_cv_lib_w_wctype" = x""yes; then :
8041
  cat >>confdefs.h <<_ACEOF
8042
#define HAVE_LIBW 1
8043
_ACEOF
8044
 
8045
  LIBS="-lw $LIBS"
8046
 
8047
fi
8048
 
8049
fi
8050
 
8051
 
8052
# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8054
$as_echo_n "checking for library containing gethostbyname... " >&6; }
8055
if test "${ac_cv_search_gethostbyname+set}" = set; then :
8056
  $as_echo_n "(cached) " >&6
8057
else
8058
  ac_func_search_save_LIBS=$LIBS
8059
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060
/* end confdefs.h.  */
8061
 
8062
/* Override any GCC internal prototype to avoid an error.
8063
   Use char because int might match the return type of a GCC
8064
   builtin and then its argument prototype would still apply.  */
8065
#ifdef __cplusplus
8066
extern "C"
8067
#endif
8068
char gethostbyname ();
8069
int
8070
main ()
8071
{
8072
return gethostbyname ();
8073
  ;
8074
  return 0;
8075
}
8076
_ACEOF
8077
for ac_lib in '' nsl; do
8078
  if test -z "$ac_lib"; then
8079
    ac_res="none required"
8080
  else
8081
    ac_res=-l$ac_lib
8082
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8083
  fi
8084
  if ac_fn_c_try_link "$LINENO"; then :
8085
  ac_cv_search_gethostbyname=$ac_res
8086
fi
8087
rm -f core conftest.err conftest.$ac_objext \
8088
    conftest$ac_exeext
8089
  if test "${ac_cv_search_gethostbyname+set}" = set; then :
8090
  break
8091
fi
8092
done
8093
if test "${ac_cv_search_gethostbyname+set}" = set; then :
8094
 
8095
else
8096
  ac_cv_search_gethostbyname=no
8097
fi
8098
rm conftest.$ac_ext
8099
LIBS=$ac_func_search_save_LIBS
8100
fi
8101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8102
$as_echo "$ac_cv_search_gethostbyname" >&6; }
8103
ac_res=$ac_cv_search_gethostbyname
8104
if test "$ac_res" != no; then :
8105
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8106
 
8107
fi
8108
 
8109
 
8110
# Some systems (e.g. Solaris) have `socketpair' in libsocket.
8111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8112
$as_echo_n "checking for library containing socketpair... " >&6; }
8113
if test "${ac_cv_search_socketpair+set}" = set; then :
8114
  $as_echo_n "(cached) " >&6
8115
else
8116
  ac_func_search_save_LIBS=$LIBS
8117
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118
/* end confdefs.h.  */
8119
 
8120
/* Override any GCC internal prototype to avoid an error.
8121
   Use char because int might match the return type of a GCC
8122
   builtin and then its argument prototype would still apply.  */
8123
#ifdef __cplusplus
8124
extern "C"
8125
#endif
8126
char socketpair ();
8127
int
8128
main ()
8129
{
8130
return socketpair ();
8131
  ;
8132
  return 0;
8133
}
8134
_ACEOF
8135
for ac_lib in '' socket; do
8136
  if test -z "$ac_lib"; then
8137
    ac_res="none required"
8138
  else
8139
    ac_res=-l$ac_lib
8140
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8141
  fi
8142
  if ac_fn_c_try_link "$LINENO"; then :
8143
  ac_cv_search_socketpair=$ac_res
8144
fi
8145
rm -f core conftest.err conftest.$ac_objext \
8146
    conftest$ac_exeext
8147
  if test "${ac_cv_search_socketpair+set}" = set; then :
8148
  break
8149
fi
8150
done
8151
if test "${ac_cv_search_socketpair+set}" = set; then :
8152
 
8153
else
8154
  ac_cv_search_socketpair=no
8155
fi
8156
rm conftest.$ac_ext
8157
LIBS=$ac_func_search_save_LIBS
8158
fi
8159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8160
$as_echo "$ac_cv_search_socketpair" >&6; }
8161
ac_res=$ac_cv_search_socketpair
8162
if test "$ac_res" != no; then :
8163
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8164
 
8165
fi
8166
 
8167
 
8168
# Link in zlib if we can.  This allows us to read compressed debug sections.
8169
 
8170
  # See if the user specified whether he wants zlib support or not.
8171
 
8172
# Check whether --with-zlib was given.
8173
if test "${with_zlib+set}" = set; then :
8174
  withval=$with_zlib;
8175
else
8176
  with_zlib=auto
8177
fi
8178
 
8179
 
8180
  if test "$with_zlib" != "no"; then
8181
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
8182
$as_echo_n "checking for library containing zlibVersion... " >&6; }
8183
if test "${ac_cv_search_zlibVersion+set}" = set; then :
8184
  $as_echo_n "(cached) " >&6
8185
else
8186
  ac_func_search_save_LIBS=$LIBS
8187
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188
/* end confdefs.h.  */
8189
 
8190
/* Override any GCC internal prototype to avoid an error.
8191
   Use char because int might match the return type of a GCC
8192
   builtin and then its argument prototype would still apply.  */
8193
#ifdef __cplusplus
8194
extern "C"
8195
#endif
8196
char zlibVersion ();
8197
int
8198
main ()
8199
{
8200
return zlibVersion ();
8201
  ;
8202
  return 0;
8203
}
8204
_ACEOF
8205
for ac_lib in '' z; do
8206
  if test -z "$ac_lib"; then
8207
    ac_res="none required"
8208
  else
8209
    ac_res=-l$ac_lib
8210
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8211
  fi
8212
  if ac_fn_c_try_link "$LINENO"; then :
8213
  ac_cv_search_zlibVersion=$ac_res
8214
fi
8215
rm -f core conftest.err conftest.$ac_objext \
8216
    conftest$ac_exeext
8217
  if test "${ac_cv_search_zlibVersion+set}" = set; then :
8218
  break
8219
fi
8220
done
8221
if test "${ac_cv_search_zlibVersion+set}" = set; then :
8222
 
8223
else
8224
  ac_cv_search_zlibVersion=no
8225
fi
8226
rm conftest.$ac_ext
8227
LIBS=$ac_func_search_save_LIBS
8228
fi
8229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
8230
$as_echo "$ac_cv_search_zlibVersion" >&6; }
8231
ac_res=$ac_cv_search_zlibVersion
8232
if test "$ac_res" != no; then :
8233
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8234
  for ac_header in zlib.h
8235
do :
8236
  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8237
if test "x$ac_cv_header_zlib_h" = x""yes; then :
8238
  cat >>confdefs.h <<_ACEOF
8239
#define HAVE_ZLIB_H 1
8240
_ACEOF
8241
 
8242
fi
8243
 
8244
done
8245
 
8246
fi
8247
 
8248
    if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
8249
      as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
8250
    fi
8251
  fi
8252
 
8253
 
8254
# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
8255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
8256
$as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
8257
if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8258
  $as_echo_n "(cached) " >&6
8259
else
8260
  ac_func_search_save_LIBS=$LIBS
8261
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262
/* end confdefs.h.  */
8263
 
8264
/* Override any GCC internal prototype to avoid an error.
8265
   Use char because int might match the return type of a GCC
8266
   builtin and then its argument prototype would still apply.  */
8267
#ifdef __cplusplus
8268
extern "C"
8269
#endif
8270
char dlgetmodinfo ();
8271
int
8272
main ()
8273
{
8274
return dlgetmodinfo ();
8275
  ;
8276
  return 0;
8277
}
8278
_ACEOF
8279
for ac_lib in '' dl xpdl; do
8280
  if test -z "$ac_lib"; then
8281
    ac_res="none required"
8282
  else
8283
    ac_res=-l$ac_lib
8284
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8285
  fi
8286
  if ac_fn_c_try_link "$LINENO"; then :
8287
  ac_cv_search_dlgetmodinfo=$ac_res
8288
fi
8289
rm -f core conftest.err conftest.$ac_objext \
8290
    conftest$ac_exeext
8291
  if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8292
  break
8293
fi
8294
done
8295
if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8296
 
8297
else
8298
  ac_cv_search_dlgetmodinfo=no
8299
fi
8300
rm conftest.$ac_ext
8301
LIBS=$ac_func_search_save_LIBS
8302
fi
8303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
8304
$as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
8305
ac_res=$ac_cv_search_dlgetmodinfo
8306
if test "$ac_res" != no; then :
8307
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8308
 
8309
fi
8310
 
8311
 
8312
 
8313
 
8314
 
8315
# Check whether --with-libiconv-prefix was given.
8316
if test "${with_libiconv_prefix+set}" = set; then :
8317
  withval=$with_libiconv_prefix;
8318
    for dir in `echo "$withval" | tr : ' '`; do
8319
      if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
8320
      if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
8321
    done
8322
 
8323
fi
8324
 
8325
 
8326
  BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
8327
  BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
8328
 
8329
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8330
$as_echo_n "checking for iconv... " >&6; }
8331
if test "${am_cv_func_iconv+set}" = set; then :
8332
  $as_echo_n "(cached) " >&6
8333
else
8334
 
8335
    am_cv_func_iconv="no, consider installing GNU libiconv"
8336
    am_cv_lib_iconv=no
8337
    am_cv_use_build_libiconv=no
8338
    am_cv_build_libiconv_path=
8339
 
8340
    # If libiconv is part of the build tree, then try using it over
8341
    # any system iconv.
8342
    if test -d ../libiconv; then
8343
      for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
8344
        am_save_LIBS="$LIBS"
8345
        am_save_CPPFLAGS="$CPPFLAGS"
8346
        LIBS="$LIBS $lib_dir/libiconv.a"
8347
        CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
8348
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349
/* end confdefs.h.  */
8350
#include 
8351
#include 
8352
int
8353
main ()
8354
{
8355
iconv_t cd = iconv_open("","");
8356
           iconv(cd,NULL,NULL,NULL,NULL);
8357
           iconv_close(cd);
8358
  ;
8359
  return 0;
8360
}
8361
_ACEOF
8362
if ac_fn_c_try_link "$LINENO"; then :
8363
  am_cv_use_build_libiconv=yes
8364
          am_cv_build_libiconv_path=$lib_dir/libiconv.a
8365
          am_cv_lib_iconv=yes
8366
          am_cv_func_iconv=yes
8367
fi
8368
rm -f core conftest.err conftest.$ac_objext \
8369
    conftest$ac_exeext conftest.$ac_ext
8370
        LIBS="$am_save_LIBS"
8371
        CPPFLAGS="$am_save_CPPFLAGS"
8372
        if test "$am_cv_use_build_libiconv" = "yes"; then
8373
          break
8374
        fi
8375
      done
8376
    fi
8377
 
8378
    # Next, try to find iconv in libc.
8379
    if test "$am_cv_func_iconv" != yes; then
8380
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381
/* end confdefs.h.  */
8382
#include 
8383
#include 
8384
int
8385
main ()
8386
{
8387
iconv_t cd = iconv_open("","");
8388
         iconv(cd,NULL,NULL,NULL,NULL);
8389
         iconv_close(cd);
8390
  ;
8391
  return 0;
8392
}
8393
_ACEOF
8394
if ac_fn_c_try_link "$LINENO"; then :
8395
  am_cv_func_iconv=yes
8396
fi
8397
rm -f core conftest.err conftest.$ac_objext \
8398
    conftest$ac_exeext conftest.$ac_ext
8399
    fi
8400
 
8401
    # If iconv was not in libc, try -liconv.  In this case, arrange to
8402
    # look in the libiconv prefix, if it was specified by the user.
8403
    if test "$am_cv_func_iconv" != yes; then
8404
      am_save_CPPFLAGS="$CPPFLAGS"
8405
      am_save_LIBS="$LIBS"
8406
      if test -n "$LIBICONV_INCLUDE"; then
8407
        CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
8408
        LIBS="$LIBS $LIBICONV_LIBDIR"
8409
      fi
8410
      LIBS="$LIBS -liconv"
8411
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412
/* end confdefs.h.  */
8413
#include 
8414
#include 
8415
int
8416
main ()
8417
{
8418
iconv_t cd = iconv_open("","");
8419
         iconv(cd,NULL,NULL,NULL,NULL);
8420
         iconv_close(cd);
8421
  ;
8422
  return 0;
8423
}
8424
_ACEOF
8425
if ac_fn_c_try_link "$LINENO"; then :
8426
  am_cv_lib_iconv=yes
8427
        am_cv_func_iconv=yes
8428
fi
8429
rm -f core conftest.err conftest.$ac_objext \
8430
    conftest$ac_exeext conftest.$ac_ext
8431
      LIBS="$am_save_LIBS"
8432
      CPPFLAGS="$am_save_CPPFLAGS"
8433
    fi
8434
 
8435
fi
8436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8437
$as_echo "$am_cv_func_iconv" >&6; }
8438
 
8439
  # Set the various flags based on the cache variables.  We can't rely
8440
  # on the flags to remain set from the above code, due to caching.
8441
  LIBICONV=
8442
  if test "$am_cv_lib_iconv" = yes; then
8443
    LIBICONV="-liconv"
8444
  else
8445
    LIBICONV_LIBDIR=
8446
    LIBICONV_INCLUDE=
8447
  fi
8448
  if test "$am_cv_use_build_libiconv" = yes; then
8449
    LIBICONV="$am_cv_build_libiconv_path"
8450
    LIBICONV_LIBDIR=""
8451
    LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
8452
  fi
8453
  CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
8454
  LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
8455
 
8456
  if test "$am_cv_func_iconv" = yes; then
8457
 
8458
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8459
 
8460
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8461
$as_echo_n "checking for iconv declaration... " >&6; }
8462
    if test "${am_cv_proto_iconv+set}" = set; then :
8463
  $as_echo_n "(cached) " >&6
8464
else
8465
 
8466
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467
/* end confdefs.h.  */
8468
 
8469
#include 
8470
#include 
8471
extern
8472
#ifdef __cplusplus
8473
"C"
8474
#endif
8475
#if defined(__STDC__) || defined(__cplusplus)
8476
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8477
#else
8478
size_t iconv();
8479
#endif
8480
 
8481
int
8482
main ()
8483
{
8484
 
8485
  ;
8486
  return 0;
8487
}
8488
_ACEOF
8489
if ac_fn_c_try_compile "$LINENO"; then :
8490
  am_cv_proto_iconv_arg1=""
8491
else
8492
  am_cv_proto_iconv_arg1="const"
8493
fi
8494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8496
fi
8497
 
8498
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8499
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8500
         }$am_cv_proto_iconv" >&5
8501
$as_echo "${ac_t:-
8502
         }$am_cv_proto_iconv" >&6; }
8503
 
8504
cat >>confdefs.h <<_ACEOF
8505
#define ICONV_CONST $am_cv_proto_iconv_arg1
8506
_ACEOF
8507
 
8508
  fi
8509
 
8510
 
8511
# On alpha-osf, it appears that libtermcap and libcurses are not compatible.
8512
# There is a very specific comment in /usr/include/curses.h explaining that
8513
# termcap routines built into libcurses must not be used.
8514
#
8515
# The symptoms we observed so far is GDB unexpectedly changing
8516
# the terminal settings when tgetent is called - this is particularly
8517
# visible as the output is missing carriage returns, and so rapidly
8518
# becomes very hard to read.
8519
#
8520
# The readline configure script has already decided that libtermcap
8521
# was enough for its purposes, and so decided to build readline using
8522
# libtermcap.  Since the TUI mode requires curses, building GDB with
8523
# TUI enabled results in both libraries to be used at the same time,
8524
# which is not allowed.  This basically means that GDB with TUI is
8525
# broken on alpha-osf.
8526
 
8527
case $host_os in
8528
  osf* )
8529
    if test x"$enable_tui" = xyes; then
8530
      as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
8531
    fi
8532
    if test x"$enable_tui" = xauto; then
8533
      enable_tui=no
8534
    fi
8535
    ;;
8536
esac
8537
 
8538
# For the TUI, we need enhanced curses functionality.
8539
if test x"$enable_tui" != xno; then
8540
  prefer_curses=yes
8541
fi
8542
 
8543
curses_found=no
8544
if test x"$prefer_curses" = xyes; then
8545
  # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8546
  # curses library because the latter might not provide all the
8547
  # functionality we need.  However, this leads to problems on systems
8548
  # where the linker searches /usr/local/lib, but the compiler doesn't
8549
  # search /usr/local/include, if ncurses is installed in /usr/local.  A
8550
  # default installation of ncurses on alpha*-dec-osf* will lead to such
8551
  # a situation.
8552
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8553
$as_echo_n "checking for library containing waddstr... " >&6; }
8554
if test "${ac_cv_search_waddstr+set}" = set; then :
8555
  $as_echo_n "(cached) " >&6
8556
else
8557
  ac_func_search_save_LIBS=$LIBS
8558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559
/* end confdefs.h.  */
8560
 
8561
/* Override any GCC internal prototype to avoid an error.
8562
   Use char because int might match the return type of a GCC
8563
   builtin and then its argument prototype would still apply.  */
8564
#ifdef __cplusplus
8565
extern "C"
8566
#endif
8567
char waddstr ();
8568
int
8569
main ()
8570
{
8571
return waddstr ();
8572
  ;
8573
  return 0;
8574
}
8575
_ACEOF
8576
for ac_lib in '' ncurses cursesX curses; do
8577
  if test -z "$ac_lib"; then
8578
    ac_res="none required"
8579
  else
8580
    ac_res=-l$ac_lib
8581
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8582
  fi
8583
  if ac_fn_c_try_link "$LINENO"; then :
8584
  ac_cv_search_waddstr=$ac_res
8585
fi
8586
rm -f core conftest.err conftest.$ac_objext \
8587
    conftest$ac_exeext
8588
  if test "${ac_cv_search_waddstr+set}" = set; then :
8589
  break
8590
fi
8591
done
8592
if test "${ac_cv_search_waddstr+set}" = set; then :
8593
 
8594
else
8595
  ac_cv_search_waddstr=no
8596
fi
8597
rm conftest.$ac_ext
8598
LIBS=$ac_func_search_save_LIBS
8599
fi
8600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8601
$as_echo "$ac_cv_search_waddstr" >&6; }
8602
ac_res=$ac_cv_search_waddstr
8603
if test "$ac_res" != no; then :
8604
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8605
 
8606
fi
8607
 
8608
 
8609
  if test "$ac_cv_search_waddstr" != no; then
8610
    curses_found=yes
8611
  fi
8612
fi
8613
 
8614
# Check whether we should enable the TUI, but only do so if we really
8615
# can.
8616
if test x"$enable_tui" != xno; then
8617
  if test -d $srcdir/tui; then
8618
    if test "$curses_found" != no; then
8619
      CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8620
      CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8621
      CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8622
      ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8623
      CONFIG_ALL="${CONFIG_ALL} all-tui"
8624
      CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
8625
      CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
8626
      CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
8627
    else
8628
      if test x"$enable_tui" = xyes; then
8629
        as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
8630
      else
8631
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8632
$as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8633
      fi
8634
    fi
8635
  fi
8636
fi
8637
 
8638
# Since GDB uses Readline, we need termcap functionality.  In many
8639
# cases this will be provided by the curses library, but some systems
8640
# have a seperate termcap library, or no curses library at all.
8641
 
8642
case $host_os in
8643
  cygwin*)
8644
    if test -d $srcdir/libtermcap; then
8645
      LIBS="../libtermcap/libtermcap.a $LIBS"
8646
      ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8647
    fi ;;
8648
  go32* | *djgpp*)
8649
    ac_cv_search_tgetent="none required"
8650
    ;;
8651
  *mingw32*)
8652
    ac_cv_search_tgetent="none required"
8653
    CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
8654
    ;;
8655
esac
8656
 
8657
# These are the libraries checked by Readline.
8658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8659
$as_echo_n "checking for library containing tgetent... " >&6; }
8660
if test "${ac_cv_search_tgetent+set}" = set; then :
8661
  $as_echo_n "(cached) " >&6
8662
else
8663
  ac_func_search_save_LIBS=$LIBS
8664
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665
/* end confdefs.h.  */
8666
 
8667
/* Override any GCC internal prototype to avoid an error.
8668
   Use char because int might match the return type of a GCC
8669
   builtin and then its argument prototype would still apply.  */
8670
#ifdef __cplusplus
8671
extern "C"
8672
#endif
8673
char tgetent ();
8674
int
8675
main ()
8676
{
8677
return tgetent ();
8678
  ;
8679
  return 0;
8680
}
8681
_ACEOF
8682
for ac_lib in '' termcap tinfo curses ncurses; do
8683
  if test -z "$ac_lib"; then
8684
    ac_res="none required"
8685
  else
8686
    ac_res=-l$ac_lib
8687
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8688
  fi
8689
  if ac_fn_c_try_link "$LINENO"; then :
8690
  ac_cv_search_tgetent=$ac_res
8691
fi
8692
rm -f core conftest.err conftest.$ac_objext \
8693
    conftest$ac_exeext
8694
  if test "${ac_cv_search_tgetent+set}" = set; then :
8695
  break
8696
fi
8697
done
8698
if test "${ac_cv_search_tgetent+set}" = set; then :
8699
 
8700
else
8701
  ac_cv_search_tgetent=no
8702
fi
8703
rm conftest.$ac_ext
8704
LIBS=$ac_func_search_save_LIBS
8705
fi
8706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8707
$as_echo "$ac_cv_search_tgetent" >&6; }
8708
ac_res=$ac_cv_search_tgetent
8709
if test "$ac_res" != no; then :
8710
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8711
 
8712
fi
8713
 
8714
 
8715
if test "$ac_cv_search_tgetent" = no; then
8716
  as_fn_error "no termcap library found" "$LINENO" 5
8717
fi
8718
 
8719
 
8720
# Check whether --with-system-readline was given.
8721
if test "${with_system_readline+set}" = set; then :
8722
  withval=$with_system_readline;
8723
fi
8724
 
8725
 
8726
if test "$with_system_readline" = yes; then
8727
  READLINE=-lreadline
8728
  READLINE_DEPS=
8729
  READLINE_CFLAGS=
8730
 
8731
  # readline-6.0 started to use the name `_rl_echoing_p'.
8732
  # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
8733
 
8734
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
8735
$as_echo_n "checking for readline_echoing_p... " >&6; }
8736
  save_LIBS=$LIBS
8737
  LIBS="$LIBS $READLINE"
8738
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739
/* end confdefs.h.  */
8740
 
8741
int
8742
main ()
8743
{
8744
extern int readline_echoing_p;
8745
                                    return readline_echoing_p;
8746
  ;
8747
  return 0;
8748
}
8749
_ACEOF
8750
if ac_fn_c_try_link "$LINENO"; then :
8751
  READLINE_ECHOING_P=yes
8752
else
8753
  READLINE_ECHOING_P=no
8754
 
8755
$as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
8756
 
8757
fi
8758
rm -f core conftest.err conftest.$ac_objext \
8759
    conftest$ac_exeext conftest.$ac_ext
8760
  LIBS="$save_LIBS"
8761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
8762
$as_echo "$READLINE_ECHOING_P" >&6; }
8763
else
8764
  READLINE='$(READLINE_DIR)/libreadline.a'
8765
  READLINE_DEPS='$(READLINE)'
8766
  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8767
fi
8768
 
8769
 
8770
 
8771
 
8772
 
8773
# Check whether --with-expat was given.
8774
if test "${with_expat+set}" = set; then :
8775
  withval=$with_expat;
8776
else
8777
  with_expat=auto
8778
fi
8779
 
8780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8781
$as_echo_n "checking whether to use expat... " >&6; }
8782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8783
$as_echo "$with_expat" >&6; }
8784
 
8785
if test "${with_expat}" = no; then
8786
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8787
$as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8788
  HAVE_LIBEXPAT=no
8789
else
8790
 
8791
      if test "X$prefix" = "XNONE"; then
8792
    acl_final_prefix="$ac_default_prefix"
8793
  else
8794
    acl_final_prefix="$prefix"
8795
  fi
8796
  if test "X$exec_prefix" = "XNONE"; then
8797
    acl_final_exec_prefix='${prefix}'
8798
  else
8799
    acl_final_exec_prefix="$exec_prefix"
8800
  fi
8801
  acl_save_prefix="$prefix"
8802
  prefix="$acl_final_prefix"
8803
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8804
  prefix="$acl_save_prefix"
8805
 
8806
 
8807
# Check whether --with-gnu-ld was given.
8808
if test "${with_gnu_ld+set}" = set; then :
8809
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8810
else
8811
  with_gnu_ld=no
8812
fi
8813
 
8814
# Prepare PATH_SEPARATOR.
8815
# The user is always right.
8816
if test "${PATH_SEPARATOR+set}" != set; then
8817
  echo "#! /bin/sh" >conf$$.sh
8818
  echo  "exit 0"   >>conf$$.sh
8819
  chmod +x conf$$.sh
8820
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8821
    PATH_SEPARATOR=';'
8822
  else
8823
    PATH_SEPARATOR=:
8824
  fi
8825
  rm -f conf$$.sh
8826
fi
8827
ac_prog=ld
8828
if test "$GCC" = yes; then
8829
  # Check if gcc -print-prog-name=ld gives a path.
8830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8831
$as_echo_n "checking for ld used by GCC... " >&6; }
8832
  case $host in
8833
  *-*-mingw*)
8834
    # gcc leaves a trailing carriage return which upsets mingw
8835
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8836
  *)
8837
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8838
  esac
8839
  case $ac_prog in
8840
    # Accept absolute paths.
8841
    [\\/]* | [A-Za-z]:[\\/]*)
8842
      re_direlt='/[^/][^/]*/\.\./'
8843
      # Canonicalize the path of ld
8844
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8845
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8846
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8847
      done
8848
      test -z "$LD" && LD="$ac_prog"
8849
      ;;
8850
  "")
8851
    # If it fails, then pretend we aren't using GCC.
8852
    ac_prog=ld
8853
    ;;
8854
  *)
8855
    # If it is relative, then search for the first ld in PATH.
8856
    with_gnu_ld=unknown
8857
    ;;
8858
  esac
8859
elif test "$with_gnu_ld" = yes; then
8860
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8861
$as_echo_n "checking for GNU ld... " >&6; }
8862
else
8863
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8864
$as_echo_n "checking for non-GNU ld... " >&6; }
8865
fi
8866
if test "${acl_cv_path_LD+set}" = set; then :
8867
  $as_echo_n "(cached) " >&6
8868
else
8869
  if test -z "$LD"; then
8870
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8871
  for ac_dir in $PATH; do
8872
    test -z "$ac_dir" && ac_dir=.
8873
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8874
      acl_cv_path_LD="$ac_dir/$ac_prog"
8875
      # Check to see if the program is GNU ld.  I'd rather use --version,
8876
      # but apparently some GNU ld's only accept -v.
8877
      # Break only if it was the GNU/non-GNU ld that we prefer.
8878
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8879
        test "$with_gnu_ld" != no && break
8880
      else
8881
        test "$with_gnu_ld" != yes && break
8882
      fi
8883
    fi
8884
  done
8885
  IFS="$ac_save_ifs"
8886
else
8887
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
8888
fi
8889
fi
8890
 
8891
LD="$acl_cv_path_LD"
8892
if test -n "$LD"; then
8893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8894
$as_echo "$LD" >&6; }
8895
else
8896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897
$as_echo "no" >&6; }
8898
fi
8899
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8901
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8902
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8903
  $as_echo_n "(cached) " >&6
8904
else
8905
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8906
if $LD -v 2>&1 &5; then
8907
  acl_cv_prog_gnu_ld=yes
8908
else
8909
  acl_cv_prog_gnu_ld=no
8910
fi
8911
fi
8912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8913
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
8914
with_gnu_ld=$acl_cv_prog_gnu_ld
8915
 
8916
 
8917
 
8918
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8919
$as_echo_n "checking for shared library run path origin... " >&6; }
8920
if test "${acl_cv_rpath+set}" = set; then :
8921
  $as_echo_n "(cached) " >&6
8922
else
8923
 
8924
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8925
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8926
    . ./conftest.sh
8927
    rm -f ./conftest.sh
8928
    acl_cv_rpath=done
8929
 
8930
fi
8931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8932
$as_echo "$acl_cv_rpath" >&6; }
8933
  wl="$acl_cv_wl"
8934
  libext="$acl_cv_libext"
8935
  shlibext="$acl_cv_shlibext"
8936
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8937
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8938
  hardcode_direct="$acl_cv_hardcode_direct"
8939
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
8940
    # Check whether --enable-rpath was given.
8941
if test "${enable_rpath+set}" = set; then :
8942
  enableval=$enable_rpath; :
8943
else
8944
  enable_rpath=yes
8945
fi
8946
 
8947
 
8948
 
8949
 
8950
 
8951
 
8952
 
8953
 
8954
 
8955
 
8956
    use_additional=yes
8957
 
8958
  acl_save_prefix="$prefix"
8959
  prefix="$acl_final_prefix"
8960
  acl_save_exec_prefix="$exec_prefix"
8961
  exec_prefix="$acl_final_exec_prefix"
8962
 
8963
    eval additional_includedir=\"$includedir\"
8964
    eval additional_libdir=\"$libdir\"
8965
 
8966
  exec_prefix="$acl_save_exec_prefix"
8967
  prefix="$acl_save_prefix"
8968
 
8969
 
8970
# Check whether --with-libexpat-prefix was given.
8971
if test "${with_libexpat_prefix+set}" = set; then :
8972
  withval=$with_libexpat_prefix;
8973
    if test "X$withval" = "Xno"; then
8974
      use_additional=no
8975
    else
8976
      if test "X$withval" = "X"; then
8977
 
8978
  acl_save_prefix="$prefix"
8979
  prefix="$acl_final_prefix"
8980
  acl_save_exec_prefix="$exec_prefix"
8981
  exec_prefix="$acl_final_exec_prefix"
8982
 
8983
          eval additional_includedir=\"$includedir\"
8984
          eval additional_libdir=\"$libdir\"
8985
 
8986
  exec_prefix="$acl_save_exec_prefix"
8987
  prefix="$acl_save_prefix"
8988
 
8989
      else
8990
        additional_includedir="$withval/include"
8991
        additional_libdir="$withval/lib"
8992
      fi
8993
    fi
8994
 
8995
fi
8996
 
8997
      LIBEXPAT=
8998
  LTLIBEXPAT=
8999
  INCEXPAT=
9000
  rpathdirs=
9001
  ltrpathdirs=
9002
  names_already_handled=
9003
  names_next_round='expat '
9004
  while test -n "$names_next_round"; do
9005
    names_this_round="$names_next_round"
9006
    names_next_round=
9007
    for name in $names_this_round; do
9008
      already_handled=
9009
      for n in $names_already_handled; do
9010
        if test "$n" = "$name"; then
9011
          already_handled=yes
9012
          break
9013
        fi
9014
      done
9015
      if test -z "$already_handled"; then
9016
        names_already_handled="$names_already_handled $name"
9017
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9018
        eval value=\"\$HAVE_LIB$uppername\"
9019
        if test -n "$value"; then
9020
          if test "$value" = yes; then
9021
            eval value=\"\$LIB$uppername\"
9022
            test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9023
            eval value=\"\$LTLIB$uppername\"
9024
            test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9025
          else
9026
                                    :
9027
          fi
9028
        else
9029
                              found_dir=
9030
          found_la=
9031
          found_so=
9032
          found_a=
9033
          if test $use_additional = yes; then
9034
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9035
              found_dir="$additional_libdir"
9036
              found_so="$additional_libdir/lib$name.$shlibext"
9037
              if test -f "$additional_libdir/lib$name.la"; then
9038
                found_la="$additional_libdir/lib$name.la"
9039
              fi
9040
            else
9041
              if test -f "$additional_libdir/lib$name.$libext"; then
9042
                found_dir="$additional_libdir"
9043
                found_a="$additional_libdir/lib$name.$libext"
9044
                if test -f "$additional_libdir/lib$name.la"; then
9045
                  found_la="$additional_libdir/lib$name.la"
9046
                fi
9047
              fi
9048
            fi
9049
          fi
9050
          if test "X$found_dir" = "X"; then
9051
            for x in $LDFLAGS $LTLIBEXPAT; do
9052
 
9053
  acl_save_prefix="$prefix"
9054
  prefix="$acl_final_prefix"
9055
  acl_save_exec_prefix="$exec_prefix"
9056
  exec_prefix="$acl_final_exec_prefix"
9057
  eval x=\"$x\"
9058
  exec_prefix="$acl_save_exec_prefix"
9059
  prefix="$acl_save_prefix"
9060
 
9061
              case "$x" in
9062
                -L*)
9063
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9064
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9065
                    found_dir="$dir"
9066
                    found_so="$dir/lib$name.$shlibext"
9067
                    if test -f "$dir/lib$name.la"; then
9068
                      found_la="$dir/lib$name.la"
9069
                    fi
9070
                  else
9071
                    if test -f "$dir/lib$name.$libext"; then
9072
                      found_dir="$dir"
9073
                      found_a="$dir/lib$name.$libext"
9074
                      if test -f "$dir/lib$name.la"; then
9075
                        found_la="$dir/lib$name.la"
9076
                      fi
9077
                    fi
9078
                  fi
9079
                  ;;
9080
              esac
9081
              if test "X$found_dir" != "X"; then
9082
                break
9083
              fi
9084
            done
9085
          fi
9086
          if test "X$found_dir" != "X"; then
9087
                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9088
            if test "X$found_so" != "X"; then
9089
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9090
                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9091
              else
9092
                                                                                haveit=
9093
                for x in $ltrpathdirs; do
9094
                  if test "X$x" = "X$found_dir"; then
9095
                    haveit=yes
9096
                    break
9097
                  fi
9098
                done
9099
                if test -z "$haveit"; then
9100
                  ltrpathdirs="$ltrpathdirs $found_dir"
9101
                fi
9102
                                if test "$hardcode_direct" = yes; then
9103
                                                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9104
                else
9105
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9106
                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9107
                                                            haveit=
9108
                    for x in $rpathdirs; do
9109
                      if test "X$x" = "X$found_dir"; then
9110
                        haveit=yes
9111
                        break
9112
                      fi
9113
                    done
9114
                    if test -z "$haveit"; then
9115
                      rpathdirs="$rpathdirs $found_dir"
9116
                    fi
9117
                  else
9118
                                                                                haveit=
9119
                    for x in $LDFLAGS $LIBEXPAT; do
9120
 
9121
  acl_save_prefix="$prefix"
9122
  prefix="$acl_final_prefix"
9123
  acl_save_exec_prefix="$exec_prefix"
9124
  exec_prefix="$acl_final_exec_prefix"
9125
  eval x=\"$x\"
9126
  exec_prefix="$acl_save_exec_prefix"
9127
  prefix="$acl_save_prefix"
9128
 
9129
                      if test "X$x" = "X-L$found_dir"; then
9130
                        haveit=yes
9131
                        break
9132
                      fi
9133
                    done
9134
                    if test -z "$haveit"; then
9135
                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9136
                    fi
9137
                    if test "$hardcode_minus_L" != no; then
9138
                                                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9139
                    else
9140
                                                                                                                                                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9141
                    fi
9142
                  fi
9143
                fi
9144
              fi
9145
            else
9146
              if test "X$found_a" != "X"; then
9147
                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9148
              else
9149
                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9150
              fi
9151
            fi
9152
                        additional_includedir=
9153
            case "$found_dir" in
9154
              */lib | */lib/)
9155
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9156
                additional_includedir="$basedir/include"
9157
                ;;
9158
            esac
9159
            if test "X$additional_includedir" != "X"; then
9160
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9161
                haveit=
9162
                if test "X$additional_includedir" = "X/usr/local/include"; then
9163
                  if test -n "$GCC"; then
9164
                    case $host_os in
9165
                      linux*) haveit=yes;;
9166
                    esac
9167
                  fi
9168
                fi
9169
                if test -z "$haveit"; then
9170
                  for x in $CPPFLAGS $INCEXPAT; do
9171
 
9172
  acl_save_prefix="$prefix"
9173
  prefix="$acl_final_prefix"
9174
  acl_save_exec_prefix="$exec_prefix"
9175
  exec_prefix="$acl_final_exec_prefix"
9176
  eval x=\"$x\"
9177
  exec_prefix="$acl_save_exec_prefix"
9178
  prefix="$acl_save_prefix"
9179
 
9180
                    if test "X$x" = "X-I$additional_includedir"; then
9181
                      haveit=yes
9182
                      break
9183
                    fi
9184
                  done
9185
                  if test -z "$haveit"; then
9186
                    if test -d "$additional_includedir"; then
9187
                                            INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9188
                    fi
9189
                  fi
9190
                fi
9191
              fi
9192
            fi
9193
                        if test -n "$found_la"; then
9194
                                                        save_libdir="$libdir"
9195
              case "$found_la" in
9196
                */* | *\\*) . "$found_la" ;;
9197
                *) . "./$found_la" ;;
9198
              esac
9199
              libdir="$save_libdir"
9200
                            for dep in $dependency_libs; do
9201
                case "$dep" in
9202
                  -L*)
9203
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9204
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
9205
                      haveit=
9206
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
9207
                        if test -n "$GCC"; then
9208
                          case $host_os in
9209
                            linux*) haveit=yes;;
9210
                          esac
9211
                        fi
9212
                      fi
9213
                      if test -z "$haveit"; then
9214
                        haveit=
9215
                        for x in $LDFLAGS $LIBEXPAT; do
9216
 
9217
  acl_save_prefix="$prefix"
9218
  prefix="$acl_final_prefix"
9219
  acl_save_exec_prefix="$exec_prefix"
9220
  exec_prefix="$acl_final_exec_prefix"
9221
  eval x=\"$x\"
9222
  exec_prefix="$acl_save_exec_prefix"
9223
  prefix="$acl_save_prefix"
9224
 
9225
                          if test "X$x" = "X-L$additional_libdir"; then
9226
                            haveit=yes
9227
                            break
9228
                          fi
9229
                        done
9230
                        if test -z "$haveit"; then
9231
                          if test -d "$additional_libdir"; then
9232
                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9233
                          fi
9234
                        fi
9235
                        haveit=
9236
                        for x in $LDFLAGS $LTLIBEXPAT; do
9237
 
9238
  acl_save_prefix="$prefix"
9239
  prefix="$acl_final_prefix"
9240
  acl_save_exec_prefix="$exec_prefix"
9241
  exec_prefix="$acl_final_exec_prefix"
9242
  eval x=\"$x\"
9243
  exec_prefix="$acl_save_exec_prefix"
9244
  prefix="$acl_save_prefix"
9245
 
9246
                          if test "X$x" = "X-L$additional_libdir"; then
9247
                            haveit=yes
9248
                            break
9249
                          fi
9250
                        done
9251
                        if test -z "$haveit"; then
9252
                          if test -d "$additional_libdir"; then
9253
                                                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9254
                          fi
9255
                        fi
9256
                      fi
9257
                    fi
9258
                    ;;
9259
                  -R*)
9260
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9261
                    if test "$enable_rpath" != no; then
9262
                                                                  haveit=
9263
                      for x in $rpathdirs; do
9264
                        if test "X$x" = "X$dir"; then
9265
                          haveit=yes
9266
                          break
9267
                        fi
9268
                      done
9269
                      if test -z "$haveit"; then
9270
                        rpathdirs="$rpathdirs $dir"
9271
                      fi
9272
                                                                  haveit=
9273
                      for x in $ltrpathdirs; do
9274
                        if test "X$x" = "X$dir"; then
9275
                          haveit=yes
9276
                          break
9277
                        fi
9278
                      done
9279
                      if test -z "$haveit"; then
9280
                        ltrpathdirs="$ltrpathdirs $dir"
9281
                      fi
9282
                    fi
9283
                    ;;
9284
                  -l*)
9285
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9286
                    ;;
9287
                  *.la)
9288
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9289
                    ;;
9290
                  *)
9291
                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9292
                    LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9293
                    ;;
9294
                esac
9295
              done
9296
            fi
9297
          else
9298
                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9299
            LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9300
          fi
9301
        fi
9302
      fi
9303
    done
9304
  done
9305
  if test "X$rpathdirs" != "X"; then
9306
    if test -n "$hardcode_libdir_separator"; then
9307
                        alldirs=
9308
      for found_dir in $rpathdirs; do
9309
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9310
      done
9311
            acl_save_libdir="$libdir"
9312
      libdir="$alldirs"
9313
      eval flag=\"$hardcode_libdir_flag_spec\"
9314
      libdir="$acl_save_libdir"
9315
      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9316
    else
9317
            for found_dir in $rpathdirs; do
9318
        acl_save_libdir="$libdir"
9319
        libdir="$found_dir"
9320
        eval flag=\"$hardcode_libdir_flag_spec\"
9321
        libdir="$acl_save_libdir"
9322
        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9323
      done
9324
    fi
9325
  fi
9326
  if test "X$ltrpathdirs" != "X"; then
9327
            for found_dir in $ltrpathdirs; do
9328
      LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9329
    done
9330
  fi
9331
 
9332
 
9333
        ac_save_CPPFLAGS="$CPPFLAGS"
9334
 
9335
  for element in $INCEXPAT; do
9336
    haveit=
9337
    for x in $CPPFLAGS; do
9338
 
9339
  acl_save_prefix="$prefix"
9340
  prefix="$acl_final_prefix"
9341
  acl_save_exec_prefix="$exec_prefix"
9342
  exec_prefix="$acl_final_exec_prefix"
9343
  eval x=\"$x\"
9344
  exec_prefix="$acl_save_exec_prefix"
9345
  prefix="$acl_save_prefix"
9346
 
9347
      if test "X$x" = "X$element"; then
9348
        haveit=yes
9349
        break
9350
      fi
9351
    done
9352
    if test -z "$haveit"; then
9353
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9354
    fi
9355
  done
9356
 
9357
 
9358
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9359
$as_echo_n "checking for libexpat... " >&6; }
9360
if test "${ac_cv_libexpat+set}" = set; then :
9361
  $as_echo_n "(cached) " >&6
9362
else
9363
 
9364
    ac_save_LIBS="$LIBS"
9365
    LIBS="$LIBS $LIBEXPAT"
9366
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367
/* end confdefs.h.  */
9368
#include "expat.h"
9369
int
9370
main ()
9371
{
9372
XML_Parser p = XML_ParserCreate (0);
9373
  ;
9374
  return 0;
9375
}
9376
_ACEOF
9377
if ac_fn_c_try_link "$LINENO"; then :
9378
  ac_cv_libexpat=yes
9379
else
9380
  ac_cv_libexpat=no
9381
fi
9382
rm -f core conftest.err conftest.$ac_objext \
9383
    conftest$ac_exeext conftest.$ac_ext
9384
    LIBS="$ac_save_LIBS"
9385
 
9386
fi
9387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9388
$as_echo "$ac_cv_libexpat" >&6; }
9389
  if test "$ac_cv_libexpat" = yes; then
9390
    HAVE_LIBEXPAT=yes
9391
 
9392
$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9393
 
9394
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9395
$as_echo_n "checking how to link with libexpat... " >&6; }
9396
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9397
$as_echo "$LIBEXPAT" >&6; }
9398
  else
9399
    HAVE_LIBEXPAT=no
9400
            CPPFLAGS="$ac_save_CPPFLAGS"
9401
    LIBEXPAT=
9402
    LTLIBEXPAT=
9403
  fi
9404
 
9405
 
9406
 
9407
 
9408
 
9409
 
9410
  if test "$HAVE_LIBEXPAT" != yes; then
9411
    if test "$with_expat" = yes; then
9412
      as_fn_error "expat is missing or unusable" "$LINENO" 5
9413
    else
9414
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9415
$as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9416
    fi
9417
  else
9418
    save_LIBS=$LIBS
9419
    LIBS="$LIBS $LIBEXPAT"
9420
    for ac_func in XML_StopParser
9421
do :
9422
  ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9423
if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
9424
  cat >>confdefs.h <<_ACEOF
9425
#define HAVE_XML_STOPPARSER 1
9426
_ACEOF
9427
 
9428
fi
9429
done
9430
 
9431
    LIBS=$save_LIBS
9432
  fi
9433
fi
9434
 
9435
 
9436
 
9437
 
9438
# Check whether --with-python was given.
9439
if test "${with_python+set}" = set; then :
9440
  withval=$with_python;
9441
else
9442
  with_python=auto
9443
fi
9444
 
9445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9446
$as_echo_n "checking whether to use python... " >&6; }
9447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9448
$as_echo "$with_python" >&6; }
9449
 
9450
if test "${with_python}" = no; then
9451
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9452
$as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9453
  have_libpython=no
9454
else
9455
  case "${with_python}" in
9456
  yes | auto)
9457
    # Leave as empty, use defaults.
9458
    python_includes=
9459
    python_libs=
9460
    ;;
9461
  /*)
9462
    python_includes="-I${with_python}/include"
9463
    python_libs="-L${with_python}/lib"
9464
    ;;
9465
  *)
9466
    as_fn_error "invalid value for --with-python" "$LINENO" 5
9467
    ;;
9468
  esac
9469
 
9470
  save_CPPFLAGS=$CPPFLAGS
9471
  CPPFLAGS="$CPPFLAGS ${python_includes}"
9472
  save_LIBS=$LIBS
9473
  LIBS="$LIBS ${python_libs}"
9474
  have_libpython=no
9475
  if test "${have_libpython}" = no; then
9476
 
9477
  version=python2.6
9478
 
9479
 
9480
  HAVE_LIBPYTHON2_6=no
9481
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9482
$as_echo_n "checking for ${version}... " >&6; }
9483
  save_LIBS=$LIBS
9484
  LIBS="$LIBS -l${version}"
9485
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486
/* end confdefs.h.  */
9487
#include "${version}/Python.h"
9488
int
9489
main ()
9490
{
9491
Py_Initialize ();
9492
  ;
9493
  return 0;
9494
}
9495
_ACEOF
9496
if ac_fn_c_try_link "$LINENO"; then :
9497
  HAVE_LIBPYTHON2_6=yes
9498
                  have_libpython=yes
9499
else
9500
  LIBS=$save_LIBS
9501
fi
9502
rm -f core conftest.err conftest.$ac_objext \
9503
    conftest$ac_exeext conftest.$ac_ext
9504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
9505
$as_echo "$HAVE_LIBPYTHON2_6" >&6; }
9506
 
9507
    if test "${HAVE_LIBPYTHON2_6}" = yes; then
9508
 
9509
$as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9510
 
9511
    fi
9512
  fi
9513
  if test ${have_libpython} = no; then
9514
 
9515
  version=python2.5
9516
 
9517
 
9518
  HAVE_LIBPYTHON2_5=no
9519
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9520
$as_echo_n "checking for ${version}... " >&6; }
9521
  save_LIBS=$LIBS
9522
  LIBS="$LIBS -l${version}"
9523
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524
/* end confdefs.h.  */
9525
#include "${version}/Python.h"
9526
int
9527
main ()
9528
{
9529
Py_Initialize ();
9530
  ;
9531
  return 0;
9532
}
9533
_ACEOF
9534
if ac_fn_c_try_link "$LINENO"; then :
9535
  HAVE_LIBPYTHON2_5=yes
9536
                  have_libpython=yes
9537
else
9538
  LIBS=$save_LIBS
9539
fi
9540
rm -f core conftest.err conftest.$ac_objext \
9541
    conftest$ac_exeext conftest.$ac_ext
9542
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
9543
$as_echo "$HAVE_LIBPYTHON2_5" >&6; }
9544
 
9545
    if test "${HAVE_LIBPYTHON2_5}" = yes; then
9546
 
9547
$as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9548
 
9549
    fi
9550
  fi
9551
  if test ${have_libpython} = no; then
9552
 
9553
  version=python2.4
9554
 
9555
 
9556
  HAVE_LIBPYTHON2_4=no
9557
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9558
$as_echo_n "checking for ${version}... " >&6; }
9559
  save_LIBS=$LIBS
9560
  LIBS="$LIBS -l${version}"
9561
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562
/* end confdefs.h.  */
9563
#include "${version}/Python.h"
9564
int
9565
main ()
9566
{
9567
Py_Initialize ();
9568
  ;
9569
  return 0;
9570
}
9571
_ACEOF
9572
if ac_fn_c_try_link "$LINENO"; then :
9573
  HAVE_LIBPYTHON2_4=yes
9574
                  have_libpython=yes
9575
else
9576
  LIBS=$save_LIBS
9577
fi
9578
rm -f core conftest.err conftest.$ac_objext \
9579
    conftest$ac_exeext conftest.$ac_ext
9580
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
9581
$as_echo "$HAVE_LIBPYTHON2_4" >&6; }
9582
 
9583
    if test "${HAVE_LIBPYTHON2_4}" = yes; then
9584
 
9585
$as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9586
 
9587
    fi
9588
  fi
9589
  if test ${have_libpython} = no; then
9590
    case "${with_python}" in
9591
    yes)
9592
      as_fn_error "python is missing or unusable" "$LINENO" 5
9593
      ;;
9594
    auto)
9595
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9596
$as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9597
      ;;
9598
    *)
9599
      as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
9600
      ;;
9601
    esac
9602
    CPPFLAGS=$save_CPPFLAGS
9603
    LIBS=$save_LIBS
9604
  fi
9605
fi
9606
 
9607
if test "${have_libpython}" = yes; then
9608
 
9609
$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9610
 
9611
  CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9612
  CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9613
  CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9614
  ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9615
 
9616
  # Flags needed to compile Python code (taken from python-config --cflags).
9617
  # We cannot call python-config directly because it will output whatever was
9618
  # used when compiling the Python interpreter itself, including flags which
9619
  # would make the python-related objects be compiled differently from the
9620
  # rest of GDB (e.g., -O2 and -fPIC).
9621
  if test "${GCC}" = yes; then
9622
    tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9623
  fi
9624
 
9625
  if test "x${tentative_python_cflags}" != x; then
9626
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9627
$as_echo_n "checking compiler flags for python code... " >&6; }
9628
    for flag in ${tentative_python_cflags}; do
9629
      # Check that the compiler accepts it
9630
      saved_CFLAGS="$CFLAGS"
9631
      CFLAGS="$CFLAGS $flag"
9632
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633
/* end confdefs.h.  */
9634
 
9635
int
9636
main ()
9637
{
9638
 
9639
  ;
9640
  return 0;
9641
}
9642
_ACEOF
9643
if ac_fn_c_try_compile "$LINENO"; then :
9644
  PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9645
fi
9646
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647
      CFLAGS="$saved_CFLAGS"
9648
    done
9649
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9650
$as_echo "${PYTHON_CFLAGS}" >&6; }
9651
  fi
9652
else
9653
  # Even if Python support is not compiled in, we need to have these files
9654
  # included in order to recognize the GDB command "python".
9655
  CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o"
9656
  CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c python/py-prettyprint.c"
9657
fi
9658
 
9659
 
9660
# ------------------------- #
9661
# Checks for header files.  #
9662
# ------------------------- #
9663
 
9664
ac_header_dirent=no
9665
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9666
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9668
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9669
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9670
  $as_echo_n "(cached) " >&6
9671
else
9672
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673
/* end confdefs.h.  */
9674
#include 
9675
#include <$ac_hdr>
9676
 
9677
int
9678
main ()
9679
{
9680
if ((DIR *) 0)
9681
return 0;
9682
  ;
9683
  return 0;
9684
}
9685
_ACEOF
9686
if ac_fn_c_try_compile "$LINENO"; then :
9687
  eval "$as_ac_Header=yes"
9688
else
9689
  eval "$as_ac_Header=no"
9690
fi
9691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692
fi
9693
eval ac_res=\$$as_ac_Header
9694
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9695
$as_echo "$ac_res" >&6; }
9696
eval as_val=\$$as_ac_Header
9697
   if test "x$as_val" = x""yes; then :
9698
  cat >>confdefs.h <<_ACEOF
9699
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9700
_ACEOF
9701
 
9702
ac_header_dirent=$ac_hdr; break
9703
fi
9704
 
9705
done
9706
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9707
if test $ac_header_dirent = dirent.h; then
9708
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9709
$as_echo_n "checking for library containing opendir... " >&6; }
9710
if test "${ac_cv_search_opendir+set}" = set; then :
9711
  $as_echo_n "(cached) " >&6
9712
else
9713
  ac_func_search_save_LIBS=$LIBS
9714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715
/* end confdefs.h.  */
9716
 
9717
/* Override any GCC internal prototype to avoid an error.
9718
   Use char because int might match the return type of a GCC
9719
   builtin and then its argument prototype would still apply.  */
9720
#ifdef __cplusplus
9721
extern "C"
9722
#endif
9723
char opendir ();
9724
int
9725
main ()
9726
{
9727
return opendir ();
9728
  ;
9729
  return 0;
9730
}
9731
_ACEOF
9732
for ac_lib in '' dir; do
9733
  if test -z "$ac_lib"; then
9734
    ac_res="none required"
9735
  else
9736
    ac_res=-l$ac_lib
9737
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9738
  fi
9739
  if ac_fn_c_try_link "$LINENO"; then :
9740
  ac_cv_search_opendir=$ac_res
9741
fi
9742
rm -f core conftest.err conftest.$ac_objext \
9743
    conftest$ac_exeext
9744
  if test "${ac_cv_search_opendir+set}" = set; then :
9745
  break
9746
fi
9747
done
9748
if test "${ac_cv_search_opendir+set}" = set; then :
9749
 
9750
else
9751
  ac_cv_search_opendir=no
9752
fi
9753
rm conftest.$ac_ext
9754
LIBS=$ac_func_search_save_LIBS
9755
fi
9756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9757
$as_echo "$ac_cv_search_opendir" >&6; }
9758
ac_res=$ac_cv_search_opendir
9759
if test "$ac_res" != no; then :
9760
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9761
 
9762
fi
9763
 
9764
else
9765
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9766
$as_echo_n "checking for library containing opendir... " >&6; }
9767
if test "${ac_cv_search_opendir+set}" = set; then :
9768
  $as_echo_n "(cached) " >&6
9769
else
9770
  ac_func_search_save_LIBS=$LIBS
9771
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772
/* end confdefs.h.  */
9773
 
9774
/* Override any GCC internal prototype to avoid an error.
9775
   Use char because int might match the return type of a GCC
9776
   builtin and then its argument prototype would still apply.  */
9777
#ifdef __cplusplus
9778
extern "C"
9779
#endif
9780
char opendir ();
9781
int
9782
main ()
9783
{
9784
return opendir ();
9785
  ;
9786
  return 0;
9787
}
9788
_ACEOF
9789
for ac_lib in '' x; do
9790
  if test -z "$ac_lib"; then
9791
    ac_res="none required"
9792
  else
9793
    ac_res=-l$ac_lib
9794
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9795
  fi
9796
  if ac_fn_c_try_link "$LINENO"; then :
9797
  ac_cv_search_opendir=$ac_res
9798
fi
9799
rm -f core conftest.err conftest.$ac_objext \
9800
    conftest$ac_exeext
9801
  if test "${ac_cv_search_opendir+set}" = set; then :
9802
  break
9803
fi
9804
done
9805
if test "${ac_cv_search_opendir+set}" = set; then :
9806
 
9807
else
9808
  ac_cv_search_opendir=no
9809
fi
9810
rm conftest.$ac_ext
9811
LIBS=$ac_func_search_save_LIBS
9812
fi
9813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9814
$as_echo "$ac_cv_search_opendir" >&6; }
9815
ac_res=$ac_cv_search_opendir
9816
if test "$ac_res" != no; then :
9817
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9818
 
9819
fi
9820
 
9821
fi
9822
 
9823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9824
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9825
if test "${ac_cv_header_stat_broken+set}" = set; then :
9826
  $as_echo_n "(cached) " >&6
9827
else
9828
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829
/* end confdefs.h.  */
9830
#include 
9831
#include 
9832
 
9833
#if defined S_ISBLK && defined S_IFDIR
9834
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9835
#endif
9836
 
9837
#if defined S_ISBLK && defined S_IFCHR
9838
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9839
#endif
9840
 
9841
#if defined S_ISLNK && defined S_IFREG
9842
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9843
#endif
9844
 
9845
#if defined S_ISSOCK && defined S_IFREG
9846
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9847
#endif
9848
 
9849
_ACEOF
9850
if ac_fn_c_try_compile "$LINENO"; then :
9851
  ac_cv_header_stat_broken=no
9852
else
9853
  ac_cv_header_stat_broken=yes
9854
fi
9855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856
fi
9857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9858
$as_echo "$ac_cv_header_stat_broken" >&6; }
9859
if test $ac_cv_header_stat_broken = yes; then
9860
 
9861
$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9862
 
9863
fi
9864
 
9865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9866
$as_echo_n "checking for ANSI C header files... " >&6; }
9867
if test "${ac_cv_header_stdc+set}" = set; then :
9868
  $as_echo_n "(cached) " >&6
9869
else
9870
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871
/* end confdefs.h.  */
9872
#include 
9873
#include 
9874
#include 
9875
#include 
9876
 
9877
int
9878
main ()
9879
{
9880
 
9881
  ;
9882
  return 0;
9883
}
9884
_ACEOF
9885
if ac_fn_c_try_compile "$LINENO"; then :
9886
  ac_cv_header_stdc=yes
9887
else
9888
  ac_cv_header_stdc=no
9889
fi
9890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891
 
9892
if test $ac_cv_header_stdc = yes; then
9893
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9894
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895
/* end confdefs.h.  */
9896
#include 
9897
 
9898
_ACEOF
9899
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9900
  $EGREP "memchr" >/dev/null 2>&1; then :
9901
 
9902
else
9903
  ac_cv_header_stdc=no
9904
fi
9905
rm -f conftest*
9906
 
9907
fi
9908
 
9909
if test $ac_cv_header_stdc = yes; then
9910
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9911
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912
/* end confdefs.h.  */
9913
#include 
9914
 
9915
_ACEOF
9916
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9917
  $EGREP "free" >/dev/null 2>&1; then :
9918
 
9919
else
9920
  ac_cv_header_stdc=no
9921
fi
9922
rm -f conftest*
9923
 
9924
fi
9925
 
9926
if test $ac_cv_header_stdc = yes; then
9927
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9928
  if test "$cross_compiling" = yes; then :
9929
  :
9930
else
9931
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932
/* end confdefs.h.  */
9933
#include 
9934
#include 
9935
#if ((' ' & 0x0FF) == 0x020)
9936
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9937
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9938
#else
9939
# define ISLOWER(c) \
9940
                   (('a' <= (c) && (c) <= 'i') \
9941
                     || ('j' <= (c) && (c) <= 'r') \
9942
                     || ('s' <= (c) && (c) <= 'z'))
9943
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9944
#endif
9945
 
9946
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9947
int
9948
main ()
9949
{
9950
  int i;
9951
  for (i = 0; i < 256; i++)
9952
    if (XOR (islower (i), ISLOWER (i))
9953
        || toupper (i) != TOUPPER (i))
9954
      return 2;
9955
  return 0;
9956
}
9957
_ACEOF
9958
if ac_fn_c_try_run "$LINENO"; then :
9959
 
9960
else
9961
  ac_cv_header_stdc=no
9962
fi
9963
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9964
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9965
fi
9966
 
9967
fi
9968
fi
9969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9970
$as_echo "$ac_cv_header_stdc" >&6; }
9971
if test $ac_cv_header_stdc = yes; then
9972
 
9973
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9974
 
9975
fi
9976
 
9977
# elf_hp.h is for HP/UX 64-bit shared library support.
9978
# FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
9979
# unconditionally, so what's the point in checking these?
9980
for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
9981
                  thread_db.h gnu/libc-version.h signal.h stddef.h \
9982
                  stdlib.h string.h memory.h strings.h sys/fault.h \
9983
                  sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
9984
                  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
9985
                  sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
9986
                  sys/types.h sys/wait.h wait.h termios.h termio.h \
9987
                  sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
9988
do :
9989
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9990
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9991
eval as_val=\$$as_ac_Header
9992
   if test "x$as_val" = x""yes; then :
9993
  cat >>confdefs.h <<_ACEOF
9994
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9995
_ACEOF
9996
 
9997
fi
9998
 
9999
done
10000
 
10001
for ac_header in link.h
10002
do :
10003
  ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
10004
# include 
10005
#endif
10006
#if HAVE_NLIST_H
10007
# include 
10008
#endif
10009
 
10010
"
10011
if test "x$ac_cv_header_link_h" = x""yes; then :
10012
  cat >>confdefs.h <<_ACEOF
10013
#define HAVE_LINK_H 1
10014
_ACEOF
10015
 
10016
fi
10017
 
10018
done
10019
 
10020
for ac_header in sys/proc.h
10021
do :
10022
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10023
# include 
10024
#endif
10025
 
10026
"
10027
if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
10028
  cat >>confdefs.h <<_ACEOF
10029
#define HAVE_SYS_PROC_H 1
10030
_ACEOF
10031
 
10032
fi
10033
 
10034
done
10035
 
10036
for ac_header in sys/user.h
10037
do :
10038
  ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10039
# include 
10040
#endif
10041
 
10042
"
10043
if test "x$ac_cv_header_sys_user_h" = x""yes; then :
10044
  cat >>confdefs.h <<_ACEOF
10045
#define HAVE_SYS_USER_H 1
10046
_ACEOF
10047
 
10048
fi
10049
 
10050
done
10051
 
10052
 
10053
# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10054
# between  and  that would cause AC_CHECK_HEADERS to
10055
# think that we don't have  if we're using GCC.
10056
case $host_os in
10057
  solaris2.[789])
10058
    if test "$GCC" = yes; then
10059
 
10060
$as_echo "#define _MSE_INT_H 1" >>confdefs.h
10061
 
10062
    fi ;;
10063
esac
10064
for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
10065
do :
10066
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10067
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10068
eval as_val=\$$as_ac_Header
10069
   if test "x$as_val" = x""yes; then :
10070
  cat >>confdefs.h <<_ACEOF
10071
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10072
_ACEOF
10073
 
10074
fi
10075
 
10076
done
10077
 
10078
for ac_header in term.h
10079
do :
10080
  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10081
# include 
10082
#endif
10083
 
10084
"
10085
if test "x$ac_cv_header_term_h" = x""yes; then :
10086
  cat >>confdefs.h <<_ACEOF
10087
#define HAVE_TERM_H 1
10088
_ACEOF
10089
 
10090
fi
10091
 
10092
done
10093
 
10094
 
10095
# ------------------------- #
10096
# Checks for declarations.  #
10097
# ------------------------- #
10098
 
10099
ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10100
if test "x$ac_cv_have_decl_free" = x""yes; then :
10101
  ac_have_decl=1
10102
else
10103
  ac_have_decl=0
10104
fi
10105
 
10106
cat >>confdefs.h <<_ACEOF
10107
#define HAVE_DECL_FREE $ac_have_decl
10108
_ACEOF
10109
ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10110
if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10111
  ac_have_decl=1
10112
else
10113
  ac_have_decl=0
10114
fi
10115
 
10116
cat >>confdefs.h <<_ACEOF
10117
#define HAVE_DECL_MALLOC $ac_have_decl
10118
_ACEOF
10119
ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10120
if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10121
  ac_have_decl=1
10122
else
10123
  ac_have_decl=0
10124
fi
10125
 
10126
cat >>confdefs.h <<_ACEOF
10127
#define HAVE_DECL_REALLOC $ac_have_decl
10128
_ACEOF
10129
ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10130
if test "x$ac_cv_have_decl_strerror" = x""yes; then :
10131
  ac_have_decl=1
10132
else
10133
  ac_have_decl=0
10134
fi
10135
 
10136
cat >>confdefs.h <<_ACEOF
10137
#define HAVE_DECL_STRERROR $ac_have_decl
10138
_ACEOF
10139
ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10140
if test "x$ac_cv_have_decl_strstr" = x""yes; then :
10141
  ac_have_decl=1
10142
else
10143
  ac_have_decl=0
10144
fi
10145
 
10146
cat >>confdefs.h <<_ACEOF
10147
#define HAVE_DECL_STRSTR $ac_have_decl
10148
_ACEOF
10149
ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
10150
if test "x$ac_cv_have_decl_getopt" = x""yes; then :
10151
  ac_have_decl=1
10152
else
10153
  ac_have_decl=0
10154
fi
10155
 
10156
cat >>confdefs.h <<_ACEOF
10157
#define HAVE_DECL_GETOPT $ac_have_decl
10158
_ACEOF
10159
ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10160
if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10161
  ac_have_decl=1
10162
else
10163
  ac_have_decl=0
10164
fi
10165
 
10166
cat >>confdefs.h <<_ACEOF
10167
#define HAVE_DECL_SNPRINTF $ac_have_decl
10168
_ACEOF
10169
ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10170
if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10171
  ac_have_decl=1
10172
else
10173
  ac_have_decl=0
10174
fi
10175
 
10176
cat >>confdefs.h <<_ACEOF
10177
#define HAVE_DECL_VSNPRINTF $ac_have_decl
10178
_ACEOF
10179
 
10180
 
10181
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10182
$as_echo_n "checking for LC_MESSAGES... " >&6; }
10183
if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10184
  $as_echo_n "(cached) " >&6
10185
else
10186
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187
/* end confdefs.h.  */
10188
#include 
10189
int
10190
main ()
10191
{
10192
return LC_MESSAGES
10193
  ;
10194
  return 0;
10195
}
10196
_ACEOF
10197
if ac_fn_c_try_link "$LINENO"; then :
10198
  am_cv_val_LC_MESSAGES=yes
10199
else
10200
  am_cv_val_LC_MESSAGES=no
10201
fi
10202
rm -f core conftest.err conftest.$ac_objext \
10203
    conftest$ac_exeext conftest.$ac_ext
10204
fi
10205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10206
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10207
  if test $am_cv_val_LC_MESSAGES = yes; then
10208
 
10209
$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10210
 
10211
  fi
10212
 
10213
 
10214
# ----------------------- #
10215
# Checks for structures.  #
10216
# ----------------------- #
10217
 
10218
ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10219
if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
10220
 
10221
cat >>confdefs.h <<_ACEOF
10222
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
10223
_ACEOF
10224
 
10225
 
10226
fi
10227
ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10228
if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
10229
 
10230
cat >>confdefs.h <<_ACEOF
10231
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10232
_ACEOF
10233
 
10234
 
10235
fi
10236
 
10237
 
10238
# ------------------ #
10239
# Checks for types.  #
10240
# ------------------ #
10241
 
10242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10243
$as_echo_n "checking return type of signal handlers... " >&6; }
10244
if test "${ac_cv_type_signal+set}" = set; then :
10245
  $as_echo_n "(cached) " >&6
10246
else
10247
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248
/* end confdefs.h.  */
10249
#include 
10250
#include 
10251
 
10252
int
10253
main ()
10254
{
10255
return *(signal (0, 0)) (0) == 1;
10256
  ;
10257
  return 0;
10258
}
10259
_ACEOF
10260
if ac_fn_c_try_compile "$LINENO"; then :
10261
  ac_cv_type_signal=int
10262
else
10263
  ac_cv_type_signal=void
10264
fi
10265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10266
fi
10267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10268
$as_echo "$ac_cv_type_signal" >&6; }
10269
 
10270
cat >>confdefs.h <<_ACEOF
10271
#define RETSIGTYPE $ac_cv_type_signal
10272
_ACEOF
10273
 
10274
 
10275
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include 
10276
#include 
10277
 
10278
"
10279
if test "x$ac_cv_type_socklen_t" = x""yes; then :
10280
 
10281
cat >>confdefs.h <<_ACEOF
10282
#define HAVE_SOCKLEN_T 1
10283
_ACEOF
10284
 
10285
 
10286
fi
10287
 
10288
 
10289
# ------------------------------------- #
10290
# Checks for compiler characteristics.  #
10291
# ------------------------------------- #
10292
 
10293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10294
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10295
if test "${ac_cv_c_const+set}" = set; then :
10296
  $as_echo_n "(cached) " >&6
10297
else
10298
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299
/* end confdefs.h.  */
10300
 
10301
int
10302
main ()
10303
{
10304
/* FIXME: Include the comments suggested by Paul. */
10305
#ifndef __cplusplus
10306
  /* Ultrix mips cc rejects this.  */
10307
  typedef int charset[2];
10308
  const charset cs;
10309
  /* SunOS 4.1.1 cc rejects this.  */
10310
  char const *const *pcpcc;
10311
  char **ppc;
10312
  /* NEC SVR4.0.2 mips cc rejects this.  */
10313
  struct point {int x, y;};
10314
  static struct point const zero = {0,0};
10315
  /* AIX XL C 1.02.0.0 rejects this.
10316
     It does not let you subtract one const X* pointer from another in
10317
     an arm of an if-expression whose if-part is not a constant
10318
     expression */
10319
  const char *g = "string";
10320
  pcpcc = &g + (g ? g-g : 0);
10321
  /* HPUX 7.0 cc rejects these. */
10322
  ++pcpcc;
10323
  ppc = (char**) pcpcc;
10324
  pcpcc = (char const *const *) ppc;
10325
  { /* SCO 3.2v4 cc rejects this.  */
10326
    char *t;
10327
    char const *s = 0 ? (char *) 0 : (char const *) 0;
10328
 
10329
    *t++ = 0;
10330
    if (s) return 0;
10331
  }
10332
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10333
    int x[] = {25, 17};
10334
    const int *foo = &x[0];
10335
    ++foo;
10336
  }
10337
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10338
    typedef const int *iptr;
10339
    iptr p = 0;
10340
    ++p;
10341
  }
10342
  { /* AIX XL C 1.02.0.0 rejects this saying
10343
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10344
    struct s { int j; const int *ap[3]; };
10345
    struct s *b; b->j = 5;
10346
  }
10347
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10348
    const int foo = 10;
10349
    if (!foo) return 0;
10350
  }
10351
  return !cs[0] && !zero.x;
10352
#endif
10353
 
10354
  ;
10355
  return 0;
10356
}
10357
_ACEOF
10358
if ac_fn_c_try_compile "$LINENO"; then :
10359
  ac_cv_c_const=yes
10360
else
10361
  ac_cv_c_const=no
10362
fi
10363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364
fi
10365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10366
$as_echo "$ac_cv_c_const" >&6; }
10367
if test $ac_cv_c_const = no; then
10368
 
10369
$as_echo "#define const /**/" >>confdefs.h
10370
 
10371
fi
10372
 
10373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10374
$as_echo_n "checking for inline... " >&6; }
10375
if test "${ac_cv_c_inline+set}" = set; then :
10376
  $as_echo_n "(cached) " >&6
10377
else
10378
  ac_cv_c_inline=no
10379
for ac_kw in inline __inline__ __inline; do
10380
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381
/* end confdefs.h.  */
10382
#ifndef __cplusplus
10383
typedef int foo_t;
10384
static $ac_kw foo_t static_foo () {return 0; }
10385
$ac_kw foo_t foo () {return 0; }
10386
#endif
10387
 
10388
_ACEOF
10389
if ac_fn_c_try_compile "$LINENO"; then :
10390
  ac_cv_c_inline=$ac_kw
10391
fi
10392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10393
  test "$ac_cv_c_inline" != no && break
10394
done
10395
 
10396
fi
10397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10398
$as_echo "$ac_cv_c_inline" >&6; }
10399
 
10400
case $ac_cv_c_inline in
10401
  inline | yes) ;;
10402
  *)
10403
    case $ac_cv_c_inline in
10404
      no) ac_val=;;
10405
      *) ac_val=$ac_cv_c_inline;;
10406
    esac
10407
    cat >>confdefs.h <<_ACEOF
10408
#ifndef __cplusplus
10409
#define inline $ac_val
10410
#endif
10411
_ACEOF
10412
    ;;
10413
esac
10414
 
10415
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10416
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10417
if test "${ac_cv_c_bigendian+set}" = set; then :
10418
  $as_echo_n "(cached) " >&6
10419
else
10420
  ac_cv_c_bigendian=unknown
10421
    # See if we're dealing with a universal compiler.
10422
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423
/* end confdefs.h.  */
10424
#ifndef __APPLE_CC__
10425
               not a universal capable compiler
10426
             #endif
10427
             typedef int dummy;
10428
 
10429
_ACEOF
10430
if ac_fn_c_try_compile "$LINENO"; then :
10431
 
10432
        # Check for potential -arch flags.  It is not universal unless
10433
        # there are at least two -arch flags with different values.
10434
        ac_arch=
10435
        ac_prev=
10436
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10437
         if test -n "$ac_prev"; then
10438
           case $ac_word in
10439
             i?86 | x86_64 | ppc | ppc64)
10440
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10441
                 ac_arch=$ac_word
10442
               else
10443
                 ac_cv_c_bigendian=universal
10444
                 break
10445
               fi
10446
               ;;
10447
           esac
10448
           ac_prev=
10449
         elif test "x$ac_word" = "x-arch"; then
10450
           ac_prev=arch
10451
         fi
10452
       done
10453
fi
10454
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455
    if test $ac_cv_c_bigendian = unknown; then
10456
      # See if sys/param.h defines the BYTE_ORDER macro.
10457
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458
/* end confdefs.h.  */
10459
#include 
10460
             #include 
10461
 
10462
int
10463
main ()
10464
{
10465
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10466
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10467
                     && LITTLE_ENDIAN)
10468
              bogus endian macros
10469
             #endif
10470
 
10471
  ;
10472
  return 0;
10473
}
10474
_ACEOF
10475
if ac_fn_c_try_compile "$LINENO"; then :
10476
  # It does; now see whether it defined to BIG_ENDIAN or not.
10477
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478
/* end confdefs.h.  */
10479
#include 
10480
                #include 
10481
 
10482
int
10483
main ()
10484
{
10485
#if BYTE_ORDER != BIG_ENDIAN
10486
                 not big endian
10487
                #endif
10488
 
10489
  ;
10490
  return 0;
10491
}
10492
_ACEOF
10493
if ac_fn_c_try_compile "$LINENO"; then :
10494
  ac_cv_c_bigendian=yes
10495
else
10496
  ac_cv_c_bigendian=no
10497
fi
10498
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499
fi
10500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501
    fi
10502
    if test $ac_cv_c_bigendian = unknown; then
10503
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10504
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505
/* end confdefs.h.  */
10506
#include 
10507
 
10508
int
10509
main ()
10510
{
10511
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10512
              bogus endian macros
10513
             #endif
10514
 
10515
  ;
10516
  return 0;
10517
}
10518
_ACEOF
10519
if ac_fn_c_try_compile "$LINENO"; then :
10520
  # It does; now see whether it defined to _BIG_ENDIAN or not.
10521
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522
/* end confdefs.h.  */
10523
#include 
10524
 
10525
int
10526
main ()
10527
{
10528
#ifndef _BIG_ENDIAN
10529
                 not big endian
10530
                #endif
10531
 
10532
  ;
10533
  return 0;
10534
}
10535
_ACEOF
10536
if ac_fn_c_try_compile "$LINENO"; then :
10537
  ac_cv_c_bigendian=yes
10538
else
10539
  ac_cv_c_bigendian=no
10540
fi
10541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542
fi
10543
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544
    fi
10545
    if test $ac_cv_c_bigendian = unknown; then
10546
      # Compile a test program.
10547
      if test "$cross_compiling" = yes; then :
10548
  # Try to guess by grepping values from an object file.
10549
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550
/* end confdefs.h.  */
10551
short int ascii_mm[] =
10552
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10553
                short int ascii_ii[] =
10554
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10555
                int use_ascii (int i) {
10556
                  return ascii_mm[i] + ascii_ii[i];
10557
                }
10558
                short int ebcdic_ii[] =
10559
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10560
                short int ebcdic_mm[] =
10561
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10562
                int use_ebcdic (int i) {
10563
                  return ebcdic_mm[i] + ebcdic_ii[i];
10564
                }
10565
                extern int foo;
10566
 
10567
int
10568
main ()
10569
{
10570
return use_ascii (foo) == use_ebcdic (foo);
10571
  ;
10572
  return 0;
10573
}
10574
_ACEOF
10575
if ac_fn_c_try_compile "$LINENO"; then :
10576
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10577
              ac_cv_c_bigendian=yes
10578
            fi
10579
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10580
              if test "$ac_cv_c_bigendian" = unknown; then
10581
                ac_cv_c_bigendian=no
10582
              else
10583
                # finding both strings is unlikely to happen, but who knows?
10584
                ac_cv_c_bigendian=unknown
10585
              fi
10586
            fi
10587
fi
10588
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589
else
10590
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591
/* end confdefs.h.  */
10592
$ac_includes_default
10593
int
10594
main ()
10595
{
10596
 
10597
             /* Are we little or big endian?  From Harbison&Steele.  */
10598
             union
10599
             {
10600
               long int l;
10601
               char c[sizeof (long int)];
10602
             } u;
10603
             u.l = 1;
10604
             return u.c[sizeof (long int) - 1] == 1;
10605
 
10606
  ;
10607
  return 0;
10608
}
10609
_ACEOF
10610
if ac_fn_c_try_run "$LINENO"; then :
10611
  ac_cv_c_bigendian=no
10612
else
10613
  ac_cv_c_bigendian=yes
10614
fi
10615
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10616
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10617
fi
10618
 
10619
    fi
10620
fi
10621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10622
$as_echo "$ac_cv_c_bigendian" >&6; }
10623
 case $ac_cv_c_bigendian in #(
10624
   yes)
10625
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10626
;; #(
10627
   no)
10628
      ;; #(
10629
   universal)
10630
 
10631
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10632
 
10633
     ;; #(
10634
   *)
10635
     as_fn_error "unknown endianness
10636
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10637
 esac
10638
 
10639
 
10640
# ------------------------------ #
10641
# Checks for library functions.  #
10642
# ------------------------------ #
10643
 
10644
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10645
# for constant arguments.  Useless!
10646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10647
$as_echo_n "checking for working alloca.h... " >&6; }
10648
if test "${ac_cv_working_alloca_h+set}" = set; then :
10649
  $as_echo_n "(cached) " >&6
10650
else
10651
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652
/* end confdefs.h.  */
10653
#include 
10654
int
10655
main ()
10656
{
10657
char *p = (char *) alloca (2 * sizeof (int));
10658
                          if (p) return 0;
10659
  ;
10660
  return 0;
10661
}
10662
_ACEOF
10663
if ac_fn_c_try_link "$LINENO"; then :
10664
  ac_cv_working_alloca_h=yes
10665
else
10666
  ac_cv_working_alloca_h=no
10667
fi
10668
rm -f core conftest.err conftest.$ac_objext \
10669
    conftest$ac_exeext conftest.$ac_ext
10670
fi
10671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10672
$as_echo "$ac_cv_working_alloca_h" >&6; }
10673
if test $ac_cv_working_alloca_h = yes; then
10674
 
10675
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10676
 
10677
fi
10678
 
10679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10680
$as_echo_n "checking for alloca... " >&6; }
10681
if test "${ac_cv_func_alloca_works+set}" = set; then :
10682
  $as_echo_n "(cached) " >&6
10683
else
10684
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685
/* end confdefs.h.  */
10686
#ifdef __GNUC__
10687
# define alloca __builtin_alloca
10688
#else
10689
# ifdef _MSC_VER
10690
#  include 
10691
#  define alloca _alloca
10692
# else
10693
#  ifdef HAVE_ALLOCA_H
10694
#   include 
10695
#  else
10696
#   ifdef _AIX
10697
 #pragma alloca
10698
#   else
10699
#    ifndef alloca /* predefined by HP cc +Olibcalls */
10700
char *alloca ();
10701
#    endif
10702
#   endif
10703
#  endif
10704
# endif
10705
#endif
10706
 
10707
int
10708
main ()
10709
{
10710
char *p = (char *) alloca (1);
10711
                                    if (p) return 0;
10712
  ;
10713
  return 0;
10714
}
10715
_ACEOF
10716
if ac_fn_c_try_link "$LINENO"; then :
10717
  ac_cv_func_alloca_works=yes
10718
else
10719
  ac_cv_func_alloca_works=no
10720
fi
10721
rm -f core conftest.err conftest.$ac_objext \
10722
    conftest$ac_exeext conftest.$ac_ext
10723
fi
10724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10725
$as_echo "$ac_cv_func_alloca_works" >&6; }
10726
 
10727
if test $ac_cv_func_alloca_works = yes; then
10728
 
10729
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10730
 
10731
else
10732
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10733
# that cause trouble.  Some versions do not even contain alloca or
10734
# contain a buggy version.  If you still want to use their alloca,
10735
# use ar to extract alloca.o from them instead of compiling alloca.c.
10736
 
10737
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10738
 
10739
$as_echo "#define C_ALLOCA 1" >>confdefs.h
10740
 
10741
 
10742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10743
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10744
if test "${ac_cv_os_cray+set}" = set; then :
10745
  $as_echo_n "(cached) " >&6
10746
else
10747
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748
/* end confdefs.h.  */
10749
#if defined CRAY && ! defined CRAY2
10750
webecray
10751
#else
10752
wenotbecray
10753
#endif
10754
 
10755
_ACEOF
10756
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10757
  $EGREP "webecray" >/dev/null 2>&1; then :
10758
  ac_cv_os_cray=yes
10759
else
10760
  ac_cv_os_cray=no
10761
fi
10762
rm -f conftest*
10763
 
10764
fi
10765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10766
$as_echo "$ac_cv_os_cray" >&6; }
10767
if test $ac_cv_os_cray = yes; then
10768
  for ac_func in _getb67 GETB67 getb67; do
10769
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10770
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10771
eval as_val=\$$as_ac_var
10772
   if test "x$as_val" = x""yes; then :
10773
 
10774
cat >>confdefs.h <<_ACEOF
10775
#define CRAY_STACKSEG_END $ac_func
10776
_ACEOF
10777
 
10778
    break
10779
fi
10780
 
10781
  done
10782
fi
10783
 
10784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10785
$as_echo_n "checking stack direction for C alloca... " >&6; }
10786
if test "${ac_cv_c_stack_direction+set}" = set; then :
10787
  $as_echo_n "(cached) " >&6
10788
else
10789
  if test "$cross_compiling" = yes; then :
10790
  ac_cv_c_stack_direction=0
10791
else
10792
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793
/* end confdefs.h.  */
10794
$ac_includes_default
10795
int
10796
find_stack_direction ()
10797
{
10798
  static char *addr = 0;
10799
  auto char dummy;
10800
  if (addr == 0)
10801
    {
10802
      addr = &dummy;
10803
      return find_stack_direction ();
10804
    }
10805
  else
10806
    return (&dummy > addr) ? 1 : -1;
10807
}
10808
 
10809
int
10810
main ()
10811
{
10812
  return find_stack_direction () < 0;
10813
}
10814
_ACEOF
10815
if ac_fn_c_try_run "$LINENO"; then :
10816
  ac_cv_c_stack_direction=1
10817
else
10818
  ac_cv_c_stack_direction=-1
10819
fi
10820
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10821
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10822
fi
10823
 
10824
fi
10825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10826
$as_echo "$ac_cv_c_stack_direction" >&6; }
10827
cat >>confdefs.h <<_ACEOF
10828
#define STACK_DIRECTION $ac_cv_c_stack_direction
10829
_ACEOF
10830
 
10831
 
10832
fi
10833
 
10834
for ac_header in stdlib.h unistd.h
10835
do :
10836
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10837
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10838
eval as_val=\$$as_ac_Header
10839
   if test "x$as_val" = x""yes; then :
10840
  cat >>confdefs.h <<_ACEOF
10841
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10842
_ACEOF
10843
 
10844
fi
10845
 
10846
done
10847
 
10848
for ac_func in getpagesize
10849
do :
10850
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10851
if test "x$ac_cv_func_getpagesize" = x""yes; then :
10852
  cat >>confdefs.h <<_ACEOF
10853
#define HAVE_GETPAGESIZE 1
10854
_ACEOF
10855
 
10856
fi
10857
done
10858
 
10859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10860
$as_echo_n "checking for working mmap... " >&6; }
10861
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10862
  $as_echo_n "(cached) " >&6
10863
else
10864
  if test "$cross_compiling" = yes; then :
10865
  ac_cv_func_mmap_fixed_mapped=no
10866
else
10867
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868
/* end confdefs.h.  */
10869
$ac_includes_default
10870
/* malloc might have been renamed as rpl_malloc. */
10871
#undef malloc
10872
 
10873
/* Thanks to Mike Haertel and Jim Avera for this test.
10874
   Here is a matrix of mmap possibilities:
10875
        mmap private not fixed
10876
        mmap private fixed at somewhere currently unmapped
10877
        mmap private fixed at somewhere already mapped
10878
        mmap shared not fixed
10879
        mmap shared fixed at somewhere currently unmapped
10880
        mmap shared fixed at somewhere already mapped
10881
   For private mappings, we should verify that changes cannot be read()
10882
   back from the file, nor mmap's back from the file at a different
10883
   address.  (There have been systems where private was not correctly
10884
   implemented like the infamous i386 svr4.0, and systems where the
10885
   VM page cache was not coherent with the file system buffer cache
10886
   like early versions of FreeBSD and possibly contemporary NetBSD.)
10887
   For shared mappings, we should conversely verify that changes get
10888
   propagated back to all the places they're supposed to be.
10889
 
10890
   Grep wants private fixed already mapped.
10891
   The main things grep needs to know about mmap are:
10892
   * does it exist and is it safe to write into the mmap'd area
10893
   * how to use it (BSD variants)  */
10894
 
10895
#include 
10896
#include 
10897
 
10898
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10899
char *malloc ();
10900
#endif
10901
 
10902
/* This mess was copied from the GNU getpagesize.h.  */
10903
#ifndef HAVE_GETPAGESIZE
10904
/* Assume that all systems that can run configure have sys/param.h.  */
10905
# ifndef HAVE_SYS_PARAM_H
10906
#  define HAVE_SYS_PARAM_H 1
10907
# endif
10908
 
10909
# ifdef _SC_PAGESIZE
10910
#  define getpagesize() sysconf(_SC_PAGESIZE)
10911
# else /* no _SC_PAGESIZE */
10912
#  ifdef HAVE_SYS_PARAM_H
10913
#   include 
10914
#   ifdef EXEC_PAGESIZE
10915
#    define getpagesize() EXEC_PAGESIZE
10916
#   else /* no EXEC_PAGESIZE */
10917
#    ifdef NBPG
10918
#     define getpagesize() NBPG * CLSIZE
10919
#     ifndef CLSIZE
10920
#      define CLSIZE 1
10921
#     endif /* no CLSIZE */
10922
#    else /* no NBPG */
10923
#     ifdef NBPC
10924
#      define getpagesize() NBPC
10925
#     else /* no NBPC */
10926
#      ifdef PAGESIZE
10927
#       define getpagesize() PAGESIZE
10928
#      endif /* PAGESIZE */
10929
#     endif /* no NBPC */
10930
#    endif /* no NBPG */
10931
#   endif /* no EXEC_PAGESIZE */
10932
#  else /* no HAVE_SYS_PARAM_H */
10933
#   define getpagesize() 8192   /* punt totally */
10934
#  endif /* no HAVE_SYS_PARAM_H */
10935
# endif /* no _SC_PAGESIZE */
10936
 
10937
#endif /* no HAVE_GETPAGESIZE */
10938
 
10939
int
10940
main ()
10941
{
10942
  char *data, *data2, *data3;
10943
  int i, pagesize;
10944
  int fd;
10945
 
10946
  pagesize = getpagesize ();
10947
 
10948
  /* First, make a file with some known garbage in it. */
10949
  data = (char *) malloc (pagesize);
10950
  if (!data)
10951
    return 1;
10952
  for (i = 0; i < pagesize; ++i)
10953
    *(data + i) = rand ();
10954
  umask (0);
10955
  fd = creat ("conftest.mmap", 0600);
10956
  if (fd < 0)
10957
    return 1;
10958
  if (write (fd, data, pagesize) != pagesize)
10959
    return 1;
10960
  close (fd);
10961
 
10962
  /* Next, try to mmap the file at a fixed address which already has
10963
     something else allocated at it.  If we can, also make sure that
10964
     we see the same garbage.  */
10965
  fd = open ("conftest.mmap", O_RDWR);
10966
  if (fd < 0)
10967
    return 1;
10968
  data2 = (char *) malloc (2 * pagesize);
10969
  if (!data2)
10970
    return 1;
10971
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10972
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10973
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
10974
    return 1;
10975
  for (i = 0; i < pagesize; ++i)
10976
    if (*(data + i) != *(data2 + i))
10977
      return 1;
10978
 
10979
  /* Finally, make sure that changes to the mapped area do not
10980
     percolate back to the file as seen by read().  (This is a bug on
10981
     some variants of i386 svr4.0.)  */
10982
  for (i = 0; i < pagesize; ++i)
10983
    *(data2 + i) = *(data2 + i) + 1;
10984
  data3 = (char *) malloc (pagesize);
10985
  if (!data3)
10986
    return 1;
10987
  if (read (fd, data3, pagesize) != pagesize)
10988
    return 1;
10989
  for (i = 0; i < pagesize; ++i)
10990
    if (*(data + i) != *(data3 + i))
10991
      return 1;
10992
  close (fd);
10993
  return 0;
10994
}
10995
_ACEOF
10996
if ac_fn_c_try_run "$LINENO"; then :
10997
  ac_cv_func_mmap_fixed_mapped=yes
10998
else
10999
  ac_cv_func_mmap_fixed_mapped=no
11000
fi
11001
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11002
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11003
fi
11004
 
11005
fi
11006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11007
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11008
if test $ac_cv_func_mmap_fixed_mapped = yes; then
11009
 
11010
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
11011
 
11012
fi
11013
rm -f conftest.mmap
11014
 
11015
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11016
if test "x$ac_cv_type_pid_t" = x""yes; then :
11017
 
11018
else
11019
 
11020
cat >>confdefs.h <<_ACEOF
11021
#define pid_t int
11022
_ACEOF
11023
 
11024
fi
11025
 
11026
for ac_header in vfork.h
11027
do :
11028
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11029
if test "x$ac_cv_header_vfork_h" = x""yes; then :
11030
  cat >>confdefs.h <<_ACEOF
11031
#define HAVE_VFORK_H 1
11032
_ACEOF
11033
 
11034
fi
11035
 
11036
done
11037
 
11038
for ac_func in fork vfork
11039
do :
11040
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11041
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11042
eval as_val=\$$as_ac_var
11043
   if test "x$as_val" = x""yes; then :
11044
  cat >>confdefs.h <<_ACEOF
11045
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11046
_ACEOF
11047
 
11048
fi
11049
done
11050
 
11051
if test "x$ac_cv_func_fork" = xyes; then
11052
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11053
$as_echo_n "checking for working fork... " >&6; }
11054
if test "${ac_cv_func_fork_works+set}" = set; then :
11055
  $as_echo_n "(cached) " >&6
11056
else
11057
  if test "$cross_compiling" = yes; then :
11058
  ac_cv_func_fork_works=cross
11059
else
11060
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061
/* end confdefs.h.  */
11062
$ac_includes_default
11063
int
11064
main ()
11065
{
11066
 
11067
          /* By Ruediger Kuhlmann. */
11068
          return fork () < 0;
11069
 
11070
  ;
11071
  return 0;
11072
}
11073
_ACEOF
11074
if ac_fn_c_try_run "$LINENO"; then :
11075
  ac_cv_func_fork_works=yes
11076
else
11077
  ac_cv_func_fork_works=no
11078
fi
11079
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11080
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11081
fi
11082
 
11083
fi
11084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11085
$as_echo "$ac_cv_func_fork_works" >&6; }
11086
 
11087
else
11088
  ac_cv_func_fork_works=$ac_cv_func_fork
11089
fi
11090
if test "x$ac_cv_func_fork_works" = xcross; then
11091
  case $host in
11092
    *-*-amigaos* | *-*-msdosdjgpp*)
11093
      # Override, as these systems have only a dummy fork() stub
11094
      ac_cv_func_fork_works=no
11095
      ;;
11096
    *)
11097
      ac_cv_func_fork_works=yes
11098
      ;;
11099
  esac
11100
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11101
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11102
fi
11103
ac_cv_func_vfork_works=$ac_cv_func_vfork
11104
if test "x$ac_cv_func_vfork" = xyes; then
11105
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11106
$as_echo_n "checking for working vfork... " >&6; }
11107
if test "${ac_cv_func_vfork_works+set}" = set; then :
11108
  $as_echo_n "(cached) " >&6
11109
else
11110
  if test "$cross_compiling" = yes; then :
11111
  ac_cv_func_vfork_works=cross
11112
else
11113
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114
/* end confdefs.h.  */
11115
/* Thanks to Paul Eggert for this test.  */
11116
$ac_includes_default
11117
#include 
11118
#ifdef HAVE_VFORK_H
11119
# include 
11120
#endif
11121
/* On some sparc systems, changes by the child to local and incoming
11122
   argument registers are propagated back to the parent.  The compiler
11123
   is told about this with #include , but some compilers
11124
   (e.g. gcc -O) don't grok .  Test for this by using a
11125
   static variable whose address is put into a register that is
11126
   clobbered by the vfork.  */
11127
static void
11128
#ifdef __cplusplus
11129
sparc_address_test (int arg)
11130
# else
11131
sparc_address_test (arg) int arg;
11132
#endif
11133
{
11134
  static pid_t child;
11135
  if (!child) {
11136
    child = vfork ();
11137
    if (child < 0) {
11138
      perror ("vfork");
11139
      _exit(2);
11140
    }
11141
    if (!child) {
11142
      arg = getpid();
11143
      write(-1, "", 0);
11144
      _exit (arg);
11145
    }
11146
  }
11147
}
11148
 
11149
int
11150
main ()
11151
{
11152
  pid_t parent = getpid ();
11153
  pid_t child;
11154
 
11155
  sparc_address_test (0);
11156
 
11157
  child = vfork ();
11158
 
11159
  if (child == 0) {
11160
    /* Here is another test for sparc vfork register problems.  This
11161
       test uses lots of local variables, at least as many local
11162
       variables as main has allocated so far including compiler
11163
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
11164
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
11165
       reuse the register of parent for one of the local variables,
11166
       since it will think that parent can't possibly be used any more
11167
       in this routine.  Assigning to the local variable will thus
11168
       munge parent in the parent process.  */
11169
    pid_t
11170
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11171
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11172
    /* Convince the compiler that p..p7 are live; otherwise, it might
11173
       use the same hardware register for all 8 local variables.  */
11174
    if (p != p1 || p != p2 || p != p3 || p != p4
11175
        || p != p5 || p != p6 || p != p7)
11176
      _exit(1);
11177
 
11178
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11179
       from child file descriptors.  If the child closes a descriptor
11180
       before it execs or exits, this munges the parent's descriptor
11181
       as well.  Test for this by closing stdout in the child.  */
11182
    _exit(close(fileno(stdout)) != 0);
11183
  } else {
11184
    int status;
11185
    struct stat st;
11186
 
11187
    while (wait(&status) != child)
11188
      ;
11189
    return (
11190
         /* Was there some problem with vforking?  */
11191
         child < 0
11192
 
11193
         /* Did the child fail?  (This shouldn't happen.)  */
11194
         || status
11195
 
11196
         /* Did the vfork/compiler bug occur?  */
11197
         || parent != getpid()
11198
 
11199
         /* Did the file descriptor bug occur?  */
11200
         || fstat(fileno(stdout), &st) != 0
11201
         );
11202
  }
11203
}
11204
_ACEOF
11205
if ac_fn_c_try_run "$LINENO"; then :
11206
  ac_cv_func_vfork_works=yes
11207
else
11208
  ac_cv_func_vfork_works=no
11209
fi
11210
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11211
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11212
fi
11213
 
11214
fi
11215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11216
$as_echo "$ac_cv_func_vfork_works" >&6; }
11217
 
11218
fi;
11219
if test "x$ac_cv_func_fork_works" = xcross; then
11220
  ac_cv_func_vfork_works=$ac_cv_func_vfork
11221
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11222
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11223
fi
11224
 
11225
if test "x$ac_cv_func_vfork_works" = xyes; then
11226
 
11227
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11228
 
11229
else
11230
 
11231
$as_echo "#define vfork fork" >>confdefs.h
11232
 
11233
fi
11234
if test "x$ac_cv_func_fork_works" = xyes; then
11235
 
11236
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11237
 
11238
fi
11239
 
11240
for ac_func in canonicalize_file_name realpath getrusage getuid \
11241
                getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
11242
                sigaction sigprocmask sigsetmask socketpair syscall \
11243
                ttrace wborder setlocale iconvlist libiconvlist btowc \
11244
                setrlimit getrlimit
11245
do :
11246
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11247
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11248
eval as_val=\$$as_ac_var
11249
   if test "x$as_val" = x""yes; then :
11250
  cat >>confdefs.h <<_ACEOF
11251
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11252
_ACEOF
11253
 
11254
fi
11255
done
11256
 
11257
 
11258
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11259
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11260
if test "${am_cv_langinfo_codeset+set}" = set; then :
11261
  $as_echo_n "(cached) " >&6
11262
else
11263
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264
/* end confdefs.h.  */
11265
#include 
11266
int
11267
main ()
11268
{
11269
char* cs = nl_langinfo(CODESET);
11270
  ;
11271
  return 0;
11272
}
11273
_ACEOF
11274
if ac_fn_c_try_link "$LINENO"; then :
11275
  am_cv_langinfo_codeset=yes
11276
else
11277
  am_cv_langinfo_codeset=no
11278
fi
11279
rm -f core conftest.err conftest.$ac_objext \
11280
    conftest$ac_exeext conftest.$ac_ext
11281
 
11282
fi
11283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11284
$as_echo "$am_cv_langinfo_codeset" >&6; }
11285
  if test $am_cv_langinfo_codeset = yes; then
11286
 
11287
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11288
 
11289
  fi
11290
 
11291
 
11292
# Check the return and argument types of ptrace.  No canned test for
11293
# this, so roll our own.
11294
gdb_ptrace_headers='
11295
#if HAVE_SYS_TYPES_H
11296
# include 
11297
#endif
11298
#if HAVE_SYS_PTRACE_H
11299
# include 
11300
#endif
11301
#if HAVE_UNISTD_H
11302
# include 
11303
#endif
11304
'
11305
# There is no point in checking if we don't have a prototype.
11306
ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11307
"
11308
if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
11309
  ac_have_decl=1
11310
else
11311
  ac_have_decl=0
11312
fi
11313
 
11314
cat >>confdefs.h <<_ACEOF
11315
#define HAVE_DECL_PTRACE $ac_have_decl
11316
_ACEOF
11317
if test $ac_have_decl = 1; then :
11318
 
11319
else
11320
 
11321
  : ${gdb_cv_func_ptrace_ret='int'}
11322
  : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11323
 
11324
fi
11325
 
11326
# Check return type.  Varargs (used on GNU/Linux) conflict with the
11327
# empty argument list, so check for that explicitly.
11328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11329
$as_echo_n "checking return type of ptrace... " >&6; }
11330
if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11331
  $as_echo_n "(cached) " >&6
11332
else
11333
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334
/* end confdefs.h.  */
11335
$gdb_ptrace_headers
11336
int
11337
main ()
11338
{
11339
extern long ptrace (enum __ptrace_request, ...);
11340
  ;
11341
  return 0;
11342
}
11343
_ACEOF
11344
if ac_fn_c_try_compile "$LINENO"; then :
11345
  gdb_cv_func_ptrace_ret='long'
11346
else
11347
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348
/* end confdefs.h.  */
11349
$gdb_ptrace_headers
11350
int
11351
main ()
11352
{
11353
extern int ptrace ();
11354
  ;
11355
  return 0;
11356
}
11357
_ACEOF
11358
if ac_fn_c_try_compile "$LINENO"; then :
11359
  gdb_cv_func_ptrace_ret='int'
11360
else
11361
  gdb_cv_func_ptrace_ret='long'
11362
fi
11363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364
fi
11365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366
fi
11367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11368
$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11369
 
11370
cat >>confdefs.h <<_ACEOF
11371
#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11372
_ACEOF
11373
 
11374
# Check argument types.
11375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11376
$as_echo_n "checking types of arguments for ptrace... " >&6; }
11377
if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11378
  $as_echo_n "(cached) " >&6
11379
else
11380
 
11381
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382
/* end confdefs.h.  */
11383
$gdb_ptrace_headers
11384
int
11385
main ()
11386
{
11387
extern long ptrace (enum __ptrace_request, ...);
11388
  ;
11389
  return 0;
11390
}
11391
_ACEOF
11392
if ac_fn_c_try_compile "$LINENO"; then :
11393
  gdb_cv_func_ptrace_args='int,int,long,long'
11394
else
11395
 
11396
for gdb_arg1 in 'int' 'long'; do
11397
 for gdb_arg2 in 'pid_t' 'int' 'long'; do
11398
  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11399
   for gdb_arg4 in 'int' 'long'; do
11400
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401
/* end confdefs.h.  */
11402
$gdb_ptrace_headers
11403
int
11404
main ()
11405
{
11406
 
11407
extern $gdb_cv_func_ptrace_ret
11408
  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11409
 
11410
  ;
11411
  return 0;
11412
}
11413
_ACEOF
11414
if ac_fn_c_try_compile "$LINENO"; then :
11415
  gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11416
    break 4;
11417
fi
11418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419
    for gdb_arg5 in 'int *' 'int' 'long'; do
11420
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421
/* end confdefs.h.  */
11422
$gdb_ptrace_headers
11423
int
11424
main ()
11425
{
11426
 
11427
extern $gdb_cv_func_ptrace_ret
11428
  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11429
 
11430
  ;
11431
  return 0;
11432
}
11433
_ACEOF
11434
if ac_fn_c_try_compile "$LINENO"; then :
11435
 
11436
gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11437
    break 5;
11438
fi
11439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440
    done
11441
   done
11442
  done
11443
 done
11444
done
11445
# Provide a safe default value.
11446
: ${gdb_cv_func_ptrace_args='int,int,long,long'}
11447
 
11448
fi
11449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450
fi
11451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11452
$as_echo "$gdb_cv_func_ptrace_args" >&6; }
11453
ac_save_IFS=$IFS; IFS=','
11454
set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11455
IFS=$ac_save_IFS
11456
shift
11457
 
11458
cat >>confdefs.h <<_ACEOF
11459
#define PTRACE_TYPE_ARG3 $3
11460
_ACEOF
11461
 
11462
if test -n "$5"; then
11463
 
11464
cat >>confdefs.h <<_ACEOF
11465
#define PTRACE_TYPE_ARG5 $5
11466
_ACEOF
11467
 
11468
fi
11469
 
11470
if test "$cross_compiling" = no; then
11471
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11472
$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11473
if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11474
  $as_echo_n "(cached) " >&6
11475
else
11476
  if test "$cross_compiling" = yes; then :
11477
  as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
11478
else
11479
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480
/* end confdefs.h.  */
11481
$ac_includes_default
11482
int
11483
main ()
11484
{
11485
/* If this system has a BSD-style setpgrp which takes arguments,
11486
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11487
  exit successfully. */
11488
  return setpgrp (1,1) != -1;
11489
  ;
11490
  return 0;
11491
}
11492
_ACEOF
11493
if ac_fn_c_try_run "$LINENO"; then :
11494
  ac_cv_func_setpgrp_void=no
11495
else
11496
  ac_cv_func_setpgrp_void=yes
11497
fi
11498
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11499
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11500
fi
11501
 
11502
fi
11503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11504
$as_echo "$ac_cv_func_setpgrp_void" >&6; }
11505
if test $ac_cv_func_setpgrp_void = yes; then
11506
 
11507
$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11508
 
11509
fi
11510
 
11511
else
11512
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11513
$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11514
if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11515
  $as_echo_n "(cached) " >&6
11516
else
11517
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518
/* end confdefs.h.  */
11519
 
11520
#include 
11521
 
11522
int
11523
main ()
11524
{
11525
 
11526
  if (setpgrp(1,1) == -1)
11527
    exit (0);
11528
  else
11529
    exit (1);
11530
 
11531
  ;
11532
  return 0;
11533
}
11534
_ACEOF
11535
if ac_fn_c_try_compile "$LINENO"; then :
11536
  ac_cv_func_setpgrp_void=no
11537
else
11538
  ac_cv_func_setpgrp_void=yes
11539
fi
11540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11541
fi
11542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11543
$as_echo "$ac_cv_func_setpgrp_void" >&6; }
11544
if test $ac_cv_func_setpgrp_void = yes; then
11545
  $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11546
 
11547
fi
11548
fi
11549
 
11550
# Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
11551
# since sigsetjmp might only be defined as a macro.
11552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11553
$as_echo_n "checking for sigsetjmp... " >&6; }
11554
if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11555
  $as_echo_n "(cached) " >&6
11556
else
11557
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558
/* end confdefs.h.  */
11559
 
11560
#include 
11561
 
11562
int
11563
main ()
11564
{
11565
sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11566
  ;
11567
  return 0;
11568
}
11569
_ACEOF
11570
if ac_fn_c_try_compile "$LINENO"; then :
11571
  gdb_cv_func_sigsetjmp=yes
11572
else
11573
  gdb_cv_func_sigsetjmp=no
11574
fi
11575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576
fi
11577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11578
$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11579
if test $gdb_cv_func_sigsetjmp = yes; then
11580
 
11581
$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11582
 
11583
fi
11584
 
11585
# Assume we'll default to using the included libiberty regex.
11586
gdb_use_included_regex=yes
11587
 
11588
# However, if the system regex is GNU regex, then default to *not*
11589
# using the included regex.
11590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11591
$as_echo_n "checking for GNU regex... " >&6; }
11592
if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11593
  $as_echo_n "(cached) " >&6
11594
else
11595
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596
/* end confdefs.h.  */
11597
#include 
11598
int
11599
main ()
11600
{
11601
#define REGEX_INTERFACE_VERSION 1
11602
#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11603
# error "Version mismatch"
11604
#endif
11605
  ;
11606
  return 0;
11607
}
11608
_ACEOF
11609
if ac_fn_c_try_compile "$LINENO"; then :
11610
  gdb_cv_have_gnu_regex=yes
11611
else
11612
  gdb_cv_have_gnu_regex=no
11613
fi
11614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615
fi
11616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11617
$as_echo "$gdb_cv_have_gnu_regex" >&6; }
11618
if test $gdb_cv_have_gnu_regex = yes; then
11619
  gdb_use_included_regex=no
11620
fi
11621
 
11622
 
11623
# Check whether --with-included-regex was given.
11624
if test "${with_included_regex+set}" = set; then :
11625
  withval=$with_included_regex; gdb_with_regex=$withval
11626
else
11627
  gdb_with_regex=$gdb_use_included_regex
11628
fi
11629
 
11630
if test "$gdb_with_regex" = yes; then
11631
 
11632
$as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11633
 
11634
fi
11635
 
11636
# Check if  defines `struct thread' with a td_pcb member.
11637
ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include 
11638
#include 
11639
 
11640
"
11641
if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
11642
 
11643
cat >>confdefs.h <<_ACEOF
11644
#define HAVE_STRUCT_THREAD_TD_PCB 1
11645
_ACEOF
11646
 
11647
 
11648
fi
11649
 
11650
 
11651
# See if  defines `struct lwp`.
11652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11653
$as_echo_n "checking for struct lwp... " >&6; }
11654
if test "${gdb_cv_struct_lwp+set}" = set; then :
11655
  $as_echo_n "(cached) " >&6
11656
else
11657
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658
/* end confdefs.h.  */
11659
#include 
11660
#include 
11661
int
11662
main ()
11663
{
11664
struct lwp l;
11665
  ;
11666
  return 0;
11667
}
11668
_ACEOF
11669
if ac_fn_c_try_compile "$LINENO"; then :
11670
  gdb_cv_struct_lwp=yes
11671
else
11672
  gdb_cv_struct_lwp=no
11673
fi
11674
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675
fi
11676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11677
$as_echo "$gdb_cv_struct_lwp" >&6; }
11678
if test $gdb_cv_struct_lwp = yes; then
11679
 
11680
$as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11681
 
11682
fi
11683
 
11684
# See if  degines `struct reg'.
11685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11686
$as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11687
if test "${gdb_cv_struct_reg+set}" = set; then :
11688
  $as_echo_n "(cached) " >&6
11689
else
11690
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691
/* end confdefs.h.  */
11692
#include 
11693
#include 
11694
int
11695
main ()
11696
{
11697
struct reg r;
11698
  ;
11699
  return 0;
11700
}
11701
_ACEOF
11702
if ac_fn_c_try_compile "$LINENO"; then :
11703
  gdb_cv_struct_reg=yes
11704
else
11705
  gdb_cv_struct_reg=no
11706
fi
11707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708
fi
11709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11710
$as_echo "$gdb_cv_struct_reg" >&6; }
11711
if test $gdb_cv_struct_reg = yes; then
11712
 
11713
$as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11714
 
11715
fi
11716
 
11717
# See if  supports the %fs and %gs i386 segment registers.
11718
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11719
ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include 
11720
"
11721
if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
11722
 
11723
cat >>confdefs.h <<_ACEOF
11724
#define HAVE_STRUCT_REG_R_FS 1
11725
_ACEOF
11726
 
11727
 
11728
fi
11729
ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include 
11730
"
11731
if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
11732
 
11733
cat >>confdefs.h <<_ACEOF
11734
#define HAVE_STRUCT_REG_R_GS 1
11735
_ACEOF
11736
 
11737
 
11738
fi
11739
 
11740
 
11741
# See if  provides the PTRACE_GETREGS request.
11742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11743
$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11744
if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11745
  $as_echo_n "(cached) " >&6
11746
else
11747
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748
/* end confdefs.h.  */
11749
#include 
11750
int
11751
main ()
11752
{
11753
PTRACE_GETREGS;
11754
  ;
11755
  return 0;
11756
}
11757
_ACEOF
11758
if ac_fn_c_try_compile "$LINENO"; then :
11759
  gdb_cv_have_ptrace_getregs=yes
11760
else
11761
  gdb_cv_have_ptrace_getregs=no
11762
fi
11763
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11764
fi
11765
 
11766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11767
$as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11768
if test $gdb_cv_have_ptrace_getregs = yes; then
11769
 
11770
$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11771
 
11772
fi
11773
 
11774
# See if  provides the PTRACE_GETFPXREGS request.
11775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11776
$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11777
if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11778
  $as_echo_n "(cached) " >&6
11779
else
11780
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781
/* end confdefs.h.  */
11782
#include 
11783
int
11784
main ()
11785
{
11786
PTRACE_GETFPXREGS;
11787
  ;
11788
  return 0;
11789
}
11790
_ACEOF
11791
if ac_fn_c_try_compile "$LINENO"; then :
11792
  gdb_cv_have_ptrace_getfpxregs=yes
11793
else
11794
  gdb_cv_have_ptrace_getfpxregs=no
11795
fi
11796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11797
fi
11798
 
11799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11800
$as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11801
if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11802
 
11803
$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11804
 
11805
fi
11806
 
11807
# See if  provides the PT_GETDBREGS request.
11808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11809
$as_echo_n "checking for PT_GETDBREGS... " >&6; }
11810
if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11811
  $as_echo_n "(cached) " >&6
11812
else
11813
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814
/* end confdefs.h.  */
11815
#include 
11816
#include 
11817
int
11818
main ()
11819
{
11820
PT_GETDBREGS;
11821
  ;
11822
  return 0;
11823
}
11824
_ACEOF
11825
if ac_fn_c_try_compile "$LINENO"; then :
11826
  gdb_cv_have_pt_getdbregs=yes
11827
else
11828
  gdb_cv_have_pt_getdbregs=no
11829
fi
11830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831
fi
11832
 
11833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11834
$as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11835
if test $gdb_cv_have_pt_getdbregs = yes; then
11836
 
11837
$as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11838
 
11839
fi
11840
 
11841
# See if  provides the PT_GETXMMREGS request.
11842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11843
$as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11844
if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11845
  $as_echo_n "(cached) " >&6
11846
else
11847
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848
/* end confdefs.h.  */
11849
#include 
11850
#include 
11851
int
11852
main ()
11853
{
11854
PT_GETXMMREGS;
11855
  ;
11856
  return 0;
11857
}
11858
_ACEOF
11859
if ac_fn_c_try_compile "$LINENO"; then :
11860
  gdb_cv_have_pt_getxmmregs=yes
11861
else
11862
  gdb_cv_have_pt_getxmmregs=no
11863
fi
11864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865
fi
11866
 
11867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11868
$as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11869
if test $gdb_cv_have_pt_getxmmregs = yes; then
11870
 
11871
$as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11872
 
11873
fi
11874
 
11875
# Detect which type of /proc is in use, such as for Unixware or Solaris.
11876
 
11877
if test "${target}" = "${host}"; then
11878
  case "${host}" in
11879
  *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
11880
 
11881
$as_echo "#define NEW_PROC_API 1" >>confdefs.h
11882
 
11883
      ;;
11884
  *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
11885
 
11886
$as_echo "#define NEW_PROC_API 1" >>confdefs.h
11887
 
11888
      ;;
11889
  mips-sgi-irix5*)
11890
      # Work around  needing _KMEMUSER problem on IRIX 5.
11891
 
11892
$as_echo "#define _KMEMUSER 1" >>confdefs.h
11893
 
11894
      ;;
11895
  esac
11896
fi
11897
 
11898
if test "$ac_cv_header_sys_procfs_h" = yes; then
11899
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
11900
$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
11901
 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
11902
  $as_echo_n "(cached) " >&6
11903
else
11904
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905
/* end confdefs.h.  */
11906
 
11907
#define _SYSCALL32
11908
#include 
11909
int
11910
main ()
11911
{
11912
pstatus_t avar
11913
  ;
11914
  return 0;
11915
}
11916
_ACEOF
11917
if ac_fn_c_try_compile "$LINENO"; then :
11918
  bfd_cv_have_sys_procfs_type_pstatus_t=yes
11919
else
11920
  bfd_cv_have_sys_procfs_type_pstatus_t=no
11921
 
11922
fi
11923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11924
fi
11925
 
11926
 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11927
 
11928
$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
11929
 
11930
 fi
11931
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11932
$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
11933
 
11934
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
11935
$as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
11936
 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
11937
  $as_echo_n "(cached) " >&6
11938
else
11939
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940
/* end confdefs.h.  */
11941
 
11942
#define _SYSCALL32
11943
#include 
11944
int
11945
main ()
11946
{
11947
prrun_t avar
11948
  ;
11949
  return 0;
11950
}
11951
_ACEOF
11952
if ac_fn_c_try_compile "$LINENO"; then :
11953
  bfd_cv_have_sys_procfs_type_prrun_t=yes
11954
else
11955
  bfd_cv_have_sys_procfs_type_prrun_t=no
11956
 
11957
fi
11958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959
fi
11960
 
11961
 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
11962
 
11963
$as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
11964
 
11965
 fi
11966
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
11967
$as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
11968
 
11969
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11970
$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11971
 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11972
  $as_echo_n "(cached) " >&6
11973
else
11974
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975
/* end confdefs.h.  */
11976
 
11977
#define _SYSCALL32
11978
#include 
11979
int
11980
main ()
11981
{
11982
gregset_t avar
11983
  ;
11984
  return 0;
11985
}
11986
_ACEOF
11987
if ac_fn_c_try_compile "$LINENO"; then :
11988
  bfd_cv_have_sys_procfs_type_gregset_t=yes
11989
else
11990
  bfd_cv_have_sys_procfs_type_gregset_t=no
11991
 
11992
fi
11993
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11994
fi
11995
 
11996
 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11997
 
11998
$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11999
 
12000
 fi
12001
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12002
$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12003
 
12004
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12005
$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12006
 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12007
  $as_echo_n "(cached) " >&6
12008
else
12009
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010
/* end confdefs.h.  */
12011
 
12012
#define _SYSCALL32
12013
#include 
12014
int
12015
main ()
12016
{
12017
fpregset_t avar
12018
  ;
12019
  return 0;
12020
}
12021
_ACEOF
12022
if ac_fn_c_try_compile "$LINENO"; then :
12023
  bfd_cv_have_sys_procfs_type_fpregset_t=yes
12024
else
12025
  bfd_cv_have_sys_procfs_type_fpregset_t=no
12026
 
12027
fi
12028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029
fi
12030
 
12031
 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12032
 
12033
$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12034
 
12035
 fi
12036
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12037
$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12038
 
12039
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12040
$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12041
 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12042
  $as_echo_n "(cached) " >&6
12043
else
12044
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045
/* end confdefs.h.  */
12046
 
12047
#define _SYSCALL32
12048
#include 
12049
int
12050
main ()
12051
{
12052
prgregset_t avar
12053
  ;
12054
  return 0;
12055
}
12056
_ACEOF
12057
if ac_fn_c_try_compile "$LINENO"; then :
12058
  bfd_cv_have_sys_procfs_type_prgregset_t=yes
12059
else
12060
  bfd_cv_have_sys_procfs_type_prgregset_t=no
12061
 
12062
fi
12063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064
fi
12065
 
12066
 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12067
 
12068
$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12069
 
12070
 fi
12071
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12072
$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12073
 
12074
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12075
$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12076
 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12077
  $as_echo_n "(cached) " >&6
12078
else
12079
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080
/* end confdefs.h.  */
12081
 
12082
#define _SYSCALL32
12083
#include 
12084
int
12085
main ()
12086
{
12087
prfpregset_t avar
12088
  ;
12089
  return 0;
12090
}
12091
_ACEOF
12092
if ac_fn_c_try_compile "$LINENO"; then :
12093
  bfd_cv_have_sys_procfs_type_prfpregset_t=yes
12094
else
12095
  bfd_cv_have_sys_procfs_type_prfpregset_t=no
12096
 
12097
fi
12098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099
fi
12100
 
12101
 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12102
 
12103
$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12104
 
12105
 fi
12106
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12107
$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12108
 
12109
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12110
$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12111
 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12112
  $as_echo_n "(cached) " >&6
12113
else
12114
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115
/* end confdefs.h.  */
12116
 
12117
#define _SYSCALL32
12118
#include 
12119
int
12120
main ()
12121
{
12122
prgregset32_t avar
12123
  ;
12124
  return 0;
12125
}
12126
_ACEOF
12127
if ac_fn_c_try_compile "$LINENO"; then :
12128
  bfd_cv_have_sys_procfs_type_prgregset32_t=yes
12129
else
12130
  bfd_cv_have_sys_procfs_type_prgregset32_t=no
12131
 
12132
fi
12133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134
fi
12135
 
12136
 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12137
 
12138
$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12139
 
12140
 fi
12141
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12142
$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12143
 
12144
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
12145
$as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
12146
 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
12147
  $as_echo_n "(cached) " >&6
12148
else
12149
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150
/* end confdefs.h.  */
12151
 
12152
#define _SYSCALL32
12153
#include 
12154
int
12155
main ()
12156
{
12157
prfpregset32_t avar
12158
  ;
12159
  return 0;
12160
}
12161
_ACEOF
12162
if ac_fn_c_try_compile "$LINENO"; then :
12163
  bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
12164
else
12165
  bfd_cv_have_sys_procfs_type_prfpregset32_t=no
12166
 
12167
fi
12168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12169
fi
12170
 
12171
 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
12172
 
12173
$as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
12174
 
12175
 fi
12176
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
12177
$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
12178
 
12179
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12180
$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12181
 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12182
  $as_echo_n "(cached) " >&6
12183
else
12184
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185
/* end confdefs.h.  */
12186
 
12187
#define _SYSCALL32
12188
#include 
12189
int
12190
main ()
12191
{
12192
lwpid_t avar
12193
  ;
12194
  return 0;
12195
}
12196
_ACEOF
12197
if ac_fn_c_try_compile "$LINENO"; then :
12198
  bfd_cv_have_sys_procfs_type_lwpid_t=yes
12199
else
12200
  bfd_cv_have_sys_procfs_type_lwpid_t=no
12201
 
12202
fi
12203
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204
fi
12205
 
12206
 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12207
 
12208
$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12209
 
12210
 fi
12211
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12212
$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12213
 
12214
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12215
$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12216
 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12217
  $as_echo_n "(cached) " >&6
12218
else
12219
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220
/* end confdefs.h.  */
12221
 
12222
#define _SYSCALL32
12223
#include 
12224
int
12225
main ()
12226
{
12227
psaddr_t avar
12228
  ;
12229
  return 0;
12230
}
12231
_ACEOF
12232
if ac_fn_c_try_compile "$LINENO"; then :
12233
  bfd_cv_have_sys_procfs_type_psaddr_t=yes
12234
else
12235
  bfd_cv_have_sys_procfs_type_psaddr_t=no
12236
 
12237
fi
12238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12239
fi
12240
 
12241
 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12242
 
12243
$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12244
 
12245
 fi
12246
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12247
$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12248
 
12249
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12250
$as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12251
 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12252
  $as_echo_n "(cached) " >&6
12253
else
12254
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255
/* end confdefs.h.  */
12256
 
12257
#define _SYSCALL32
12258
#include 
12259
int
12260
main ()
12261
{
12262
prsysent_t avar
12263
  ;
12264
  return 0;
12265
}
12266
_ACEOF
12267
if ac_fn_c_try_compile "$LINENO"; then :
12268
  bfd_cv_have_sys_procfs_type_prsysent_t=yes
12269
else
12270
  bfd_cv_have_sys_procfs_type_prsysent_t=no
12271
 
12272
fi
12273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274
fi
12275
 
12276
 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12277
 
12278
$as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12279
 
12280
 fi
12281
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12282
$as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12283
 
12284
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12285
$as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12286
 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12287
  $as_echo_n "(cached) " >&6
12288
else
12289
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290
/* end confdefs.h.  */
12291
 
12292
#define _SYSCALL32
12293
#include 
12294
int
12295
main ()
12296
{
12297
pr_sigset_t avar
12298
  ;
12299
  return 0;
12300
}
12301
_ACEOF
12302
if ac_fn_c_try_compile "$LINENO"; then :
12303
  bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
12304
else
12305
  bfd_cv_have_sys_procfs_type_pr_sigset_t=no
12306
 
12307
fi
12308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309
fi
12310
 
12311
 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12312
 
12313
$as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12314
 
12315
 fi
12316
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12317
$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12318
 
12319
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12320
$as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12321
 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12322
  $as_echo_n "(cached) " >&6
12323
else
12324
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325
/* end confdefs.h.  */
12326
 
12327
#define _SYSCALL32
12328
#include 
12329
int
12330
main ()
12331
{
12332
pr_sigaction64_t avar
12333
  ;
12334
  return 0;
12335
}
12336
_ACEOF
12337
if ac_fn_c_try_compile "$LINENO"; then :
12338
  bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
12339
else
12340
  bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
12341
 
12342
fi
12343
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344
fi
12345
 
12346
 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12347
 
12348
$as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12349
 
12350
 fi
12351
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12352
$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12353
 
12354
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12355
$as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12356
 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12357
  $as_echo_n "(cached) " >&6
12358
else
12359
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360
/* end confdefs.h.  */
12361
 
12362
#define _SYSCALL32
12363
#include 
12364
int
12365
main ()
12366
{
12367
pr_siginfo64_t avar
12368
  ;
12369
  return 0;
12370
}
12371
_ACEOF
12372
if ac_fn_c_try_compile "$LINENO"; then :
12373
  bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
12374
else
12375
  bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
12376
 
12377
fi
12378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379
fi
12380
 
12381
 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12382
 
12383
$as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12384
 
12385
 fi
12386
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12387
$as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12388
 
12389
 
12390
 
12391
 
12392
 
12393
  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12394
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12395
$as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12396
    if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12397
  $as_echo_n "(cached) " >&6
12398
else
12399
  if test "$cross_compiling" = yes; then :
12400
  gdb_cv_prfpregset_t_broken=yes
12401
else
12402
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403
/* end confdefs.h.  */
12404
#include 
12405
       int main ()
12406
       {
12407
         if (sizeof (prfpregset_t) == sizeof (void *))
12408
           return 1;
12409
         return 0;
12410
       }
12411
_ACEOF
12412
if ac_fn_c_try_run "$LINENO"; then :
12413
  gdb_cv_prfpregset_t_broken=no
12414
else
12415
  gdb_cv_prfpregset_t_broken=yes
12416
fi
12417
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12418
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12419
fi
12420
 
12421
fi
12422
 
12423
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12424
$as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12425
    if test $gdb_cv_prfpregset_t_broken = yes; then
12426
 
12427
$as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12428
 
12429
    fi
12430
  fi
12431
 
12432
 
12433
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
12434
$as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
12435
  if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
12436
  $as_echo_n "(cached) " >&6
12437
else
12438
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439
/* end confdefs.h.  */
12440
#include 
12441
#include 
12442
#include 
12443
 
12444
int
12445
main ()
12446
{
12447
 
12448
    int dummy;;
12449
    dummy = ioctl(0, PIOCSET, &dummy);
12450
 
12451
  ;
12452
  return 0;
12453
}
12454
_ACEOF
12455
if ac_fn_c_try_compile "$LINENO"; then :
12456
  gdb_cv_have_procfs_piocset=yes
12457
else
12458
  gdb_cv_have_procfs_piocset=no
12459
fi
12460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461
fi
12462
 
12463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
12464
$as_echo "$gdb_cv_have_procfs_piocset" >&6; }
12465
  if test $gdb_cv_have_procfs_piocset = yes; then
12466
 
12467
$as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
12468
 
12469
  fi
12470
fi
12471
 
12472
if test ${host} = ${target} ; then
12473
 
12474
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
12475
$as_echo_n "checking for member l_addr in struct link_map... " >&6; }
12476
  if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
12477
  $as_echo_n "(cached) " >&6
12478
else
12479
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480
/* end confdefs.h.  */
12481
#include 
12482
int
12483
main ()
12484
{
12485
struct link_map lm; (void) lm.l_addr;
12486
  ;
12487
  return 0;
12488
}
12489
_ACEOF
12490
if ac_fn_c_try_compile "$LINENO"; then :
12491
  gdb_cv_have_struct_link_map_with_l_members=yes
12492
else
12493
  gdb_cv_have_struct_link_map_with_l_members=no
12494
fi
12495
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496
fi
12497
 
12498
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
12499
$as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
12500
  if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
12501
 
12502
$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
12503
 
12504
  fi
12505
 
12506
 
12507
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
12508
$as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
12509
  if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
12510
  $as_echo_n "(cached) " >&6
12511
else
12512
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513
/* end confdefs.h.  */
12514
#include 
12515
#include 
12516
int
12517
main ()
12518
{
12519
struct link_map lm; (void) lm.lm_addr;
12520
  ;
12521
  return 0;
12522
}
12523
_ACEOF
12524
if ac_fn_c_try_compile "$LINENO"; then :
12525
  gdb_cv_have_struct_link_map_with_lm_members=yes
12526
else
12527
  gdb_cv_have_struct_link_map_with_lm_members=no
12528
fi
12529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530
fi
12531
 
12532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
12533
$as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
12534
  if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
12535
 
12536
$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
12537
 
12538
  fi
12539
 
12540
 
12541
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
12542
$as_echo_n "checking for member som_addr in struct so_map... " >&6; }
12543
  if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
12544
  $as_echo_n "(cached) " >&6
12545
else
12546
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547
/* end confdefs.h.  */
12548
#include 
12549
#ifdef HAVE_NLIST_H
12550
#include 
12551
#endif
12552
#include 
12553
int
12554
main ()
12555
{
12556
struct so_map lm; (void) lm.som_addr;
12557
  ;
12558
  return 0;
12559
}
12560
_ACEOF
12561
if ac_fn_c_try_compile "$LINENO"; then :
12562
  gdb_cv_have_struct_so_map_with_som_members=yes
12563
else
12564
  gdb_cv_have_struct_so_map_with_som_members=no
12565
fi
12566
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567
fi
12568
 
12569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
12570
$as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
12571
  if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
12572
 
12573
$as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
12574
 
12575
  fi
12576
 
12577
 
12578
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
12579
$as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
12580
  if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
12581
  $as_echo_n "(cached) " >&6
12582
else
12583
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584
/* end confdefs.h.  */
12585
#define _SYSCALL32
12586
#include 
12587
int
12588
main ()
12589
{
12590
struct link_map32 l;
12591
  ;
12592
  return 0;
12593
}
12594
_ACEOF
12595
if ac_fn_c_try_compile "$LINENO"; then :
12596
  gdb_cv_have_struct_link_map32=yes
12597
else
12598
  gdb_cv_have_struct_link_map32=no
12599
fi
12600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12601
fi
12602
 
12603
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
12604
$as_echo "$gdb_cv_have_struct_link_map32" >&6; }
12605
  if test $gdb_cv_have_struct_link_map32 = yes; then
12606
 
12607
$as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
12608
 
12609
 
12610
$as_echo "#define _SYSCALL32 1" >>confdefs.h
12611
 
12612
  fi
12613
fi
12614
 
12615
# Check if the compiler supports the `long long' type.
12616
 
12617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12618
$as_echo_n "checking for long long support in compiler... " >&6; }
12619
if test "${gdb_cv_c_long_long+set}" = set; then :
12620
  $as_echo_n "(cached) " >&6
12621
else
12622
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623
/* end confdefs.h.  */
12624
extern long long foo;
12625
int
12626
main ()
12627
{
12628
switch (foo & 2) { case 0: return 1; }
12629
  ;
12630
  return 0;
12631
}
12632
_ACEOF
12633
if ac_fn_c_try_compile "$LINENO"; then :
12634
  gdb_cv_c_long_long=yes
12635
else
12636
  gdb_cv_c_long_long=no
12637
fi
12638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639
fi
12640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12641
$as_echo "$gdb_cv_c_long_long" >&6; }
12642
if test $gdb_cv_c_long_long = yes; then
12643
 
12644
$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12645
 
12646
fi
12647
 
12648
# Check if the compiler and runtime support printing long longs.
12649
 
12650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12651
$as_echo_n "checking for long long support in printf... " >&6; }
12652
if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12653
  $as_echo_n "(cached) " >&6
12654
else
12655
  if test "$cross_compiling" = yes; then :
12656
  gdb_cv_printf_has_long_long=no
12657
else
12658
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659
/* end confdefs.h.  */
12660
$ac_includes_default
12661
int
12662
main ()
12663
{
12664
char buf[32];
12665
  long long l = 0;
12666
  l = (l << 16) + 0x0123;
12667
  l = (l << 16) + 0x4567;
12668
  l = (l << 16) + 0x89ab;
12669
  l = (l << 16) + 0xcdef;
12670
  sprintf (buf, "0x%016llx", l);
12671
  return (strcmp ("0x0123456789abcdef", buf));
12672
  ;
12673
  return 0;
12674
}
12675
_ACEOF
12676
if ac_fn_c_try_run "$LINENO"; then :
12677
  gdb_cv_printf_has_long_long=yes
12678
else
12679
  gdb_cv_printf_has_long_long=no
12680
fi
12681
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12682
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12683
fi
12684
 
12685
fi
12686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12687
$as_echo "$gdb_cv_printf_has_long_long" >&6; }
12688
if test $gdb_cv_printf_has_long_long = yes; then
12689
 
12690
$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12691
 
12692
fi
12693
 
12694
# Check if the compiler and runtime support printing decfloats.
12695
 
12696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12697
$as_echo_n "checking for decfloat support in printf... " >&6; }
12698
if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12699
  $as_echo_n "(cached) " >&6
12700
else
12701
  if test "$cross_compiling" = yes; then :
12702
  gdb_cv_printf_has_decfloat=no
12703
else
12704
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705
/* end confdefs.h.  */
12706
$ac_includes_default
12707
int
12708
main ()
12709
{
12710
char buf[64];
12711
  _Decimal32 d32 = 1.2345df;
12712
  _Decimal64 d64 = 1.2345dd;
12713
  _Decimal128 d128 = 1.2345dl;
12714
  sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12715
  return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12716
  ;
12717
  return 0;
12718
}
12719
_ACEOF
12720
if ac_fn_c_try_run "$LINENO"; then :
12721
  gdb_cv_printf_has_decfloat=yes
12722
else
12723
  gdb_cv_printf_has_decfloat=no
12724
fi
12725
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12726
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12727
fi
12728
 
12729
fi
12730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12731
$as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12732
if test $gdb_cv_printf_has_decfloat = yes; then
12733
 
12734
$as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12735
 
12736
fi
12737
 
12738
# Check if the compiler supports the `long double' type.  We can't use
12739
# AC_C_LONG_DOUBLE because that one does additional checks on the
12740
# constants defined in  that fail on some systems,
12741
# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12742
 
12743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12744
$as_echo_n "checking for long double support in compiler... " >&6; }
12745
if test "${gdb_cv_c_long_double+set}" = set; then :
12746
  $as_echo_n "(cached) " >&6
12747
else
12748
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749
/* end confdefs.h.  */
12750
long double foo;
12751
_ACEOF
12752
if ac_fn_c_try_compile "$LINENO"; then :
12753
  gdb_cv_c_long_double=yes
12754
else
12755
  gdb_cv_c_long_double=no
12756
fi
12757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758
fi
12759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12760
$as_echo "$gdb_cv_c_long_double" >&6; }
12761
if test $gdb_cv_c_long_double = yes; then
12762
 
12763
$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12764
 
12765
fi
12766
 
12767
# Check if the compiler and runtime support printing long doubles.
12768
 
12769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12770
$as_echo_n "checking for long double support in printf... " >&6; }
12771
if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12772
  $as_echo_n "(cached) " >&6
12773
else
12774
  if test "$cross_compiling" = yes; then :
12775
  gdb_cv_printf_has_long_double=no
12776
else
12777
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778
/* end confdefs.h.  */
12779
$ac_includes_default
12780
int
12781
main ()
12782
{
12783
char buf[16];
12784
  long double f = 3.141592653;
12785
  sprintf (buf, "%Lg", f);
12786
  return (strncmp ("3.14159", buf, 7));
12787
  ;
12788
  return 0;
12789
}
12790
_ACEOF
12791
if ac_fn_c_try_run "$LINENO"; then :
12792
  gdb_cv_printf_has_long_double=yes
12793
else
12794
  gdb_cv_printf_has_long_double=no
12795
fi
12796
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12797
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12798
fi
12799
 
12800
fi
12801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12802
$as_echo "$gdb_cv_printf_has_long_double" >&6; }
12803
if test $gdb_cv_printf_has_long_double = yes; then
12804
 
12805
$as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12806
 
12807
fi
12808
 
12809
# Check if the compiler and runtime support scanning long doubles.
12810
 
12811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12812
$as_echo_n "checking for long double support in scanf... " >&6; }
12813
if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12814
  $as_echo_n "(cached) " >&6
12815
else
12816
  if test "$cross_compiling" = yes; then :
12817
  gdb_cv_scanf_has_long_double=no
12818
else
12819
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820
/* end confdefs.h.  */
12821
#include 
12822
int
12823
main ()
12824
{
12825
char *buf = "3.141592653";
12826
  long double f = 0;
12827
  sscanf (buf, "%Lg", &f);
12828
  return !(f > 3.14159 && f < 3.14160);
12829
  ;
12830
  return 0;
12831
}
12832
_ACEOF
12833
if ac_fn_c_try_run "$LINENO"; then :
12834
  gdb_cv_scanf_has_long_double=yes
12835
else
12836
  gdb_cv_scanf_has_long_double=no
12837
fi
12838
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12839
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12840
fi
12841
 
12842
fi
12843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12844
$as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12845
if test $gdb_cv_scanf_has_long_double = yes; then
12846
 
12847
$as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12848
 
12849
fi
12850
 
12851
case ${host_os} in
12852
aix*)
12853
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12854
$as_echo_n "checking for -bbigtoc option... " >&6; }
12855
if test "${gdb_cv_bigtoc+set}" = set; then :
12856
  $as_echo_n "(cached) " >&6
12857
else
12858
 
12859
    SAVE_LDFLAGS=$LDFLAGS
12860
 
12861
    case $GCC in
12862
    yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12863
    *) gdb_cv_bigtoc=-bbigtoc ;;
12864
    esac
12865
 
12866
    LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12867
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868
/* end confdefs.h.  */
12869
 
12870
int
12871
main ()
12872
{
12873
int i;
12874
  ;
12875
  return 0;
12876
}
12877
_ACEOF
12878
if ac_fn_c_try_link "$LINENO"; then :
12879
 
12880
else
12881
  gdb_cv_bigtoc=
12882
fi
12883
rm -f core conftest.err conftest.$ac_objext \
12884
    conftest$ac_exeext conftest.$ac_ext
12885
    LDFLAGS="${SAVE_LDFLAGS}"
12886
 
12887
fi
12888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12889
$as_echo "$gdb_cv_bigtoc" >&6; }
12890
  CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12891
  ;;
12892
esac
12893
 
12894
 
12895
 
12896
if test ${build} = ${host} -a ${host} = ${target} ; then
12897
   case ${host_os} in
12898
   hpux*)
12899
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
12900
$as_echo_n "checking for HPUX/OSF thread support... " >&6; }
12901
      if test -f /usr/include/dce/cma_config.h ; then
12902
         if test "$GCC" = "yes" ; then
12903
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12904
$as_echo "yes" >&6; }
12905
 
12906
$as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
12907
 
12908
            CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
12909
            CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
12910
         else
12911
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
12912
$as_echo "no (suppressed because you are not using GCC)" >&6; }
12913
         fi
12914
      else
12915
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916
$as_echo "no" >&6; }
12917
      fi
12918
      ;;
12919
   solaris*)
12920
      # See if thread_db library is around for Solaris thread debugging.
12921
      # Note that we must explicitly test for version 1 of the library
12922
      # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12923
      # the same API.
12924
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12925
$as_echo_n "checking for Solaris thread debugging library... " >&6; }
12926
      if test -f /usr/lib/libthread_db.so.1 ; then
12927
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12928
$as_echo "yes" >&6; }
12929
 
12930
$as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12931
 
12932
         CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
12933
         CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
12934
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12935
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12936
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12937
  $as_echo_n "(cached) " >&6
12938
else
12939
  ac_check_lib_save_LIBS=$LIBS
12940
LIBS="-ldl  $LIBS"
12941
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942
/* end confdefs.h.  */
12943
 
12944
/* Override any GCC internal prototype to avoid an error.
12945
   Use char because int might match the return type of a GCC
12946
   builtin and then its argument prototype would still apply.  */
12947
#ifdef __cplusplus
12948
extern "C"
12949
#endif
12950
char dlopen ();
12951
int
12952
main ()
12953
{
12954
return dlopen ();
12955
  ;
12956
  return 0;
12957
}
12958
_ACEOF
12959
if ac_fn_c_try_link "$LINENO"; then :
12960
  ac_cv_lib_dl_dlopen=yes
12961
else
12962
  ac_cv_lib_dl_dlopen=no
12963
fi
12964
rm -f core conftest.err conftest.$ac_objext \
12965
    conftest$ac_exeext conftest.$ac_ext
12966
LIBS=$ac_check_lib_save_LIBS
12967
fi
12968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12969
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12970
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12971
  cat >>confdefs.h <<_ACEOF
12972
#define HAVE_LIBDL 1
12973
_ACEOF
12974
 
12975
  LIBS="-ldl $LIBS"
12976
 
12977
fi
12978
 
12979
         if test "$GCC" = "yes" ; then
12980
            # The GNU linker requires the -export-dynamic option to make
12981
            # all symbols visible in the dynamic symbol table.
12982
            hold_ldflags=$LDFLAGS
12983
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
12984
$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
12985
            LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
12986
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987
/* end confdefs.h.  */
12988
 
12989
int
12990
main ()
12991
{
12992
int i;
12993
  ;
12994
  return 0;
12995
}
12996
_ACEOF
12997
if ac_fn_c_try_link "$LINENO"; then :
12998
  found=yes
12999
else
13000
  found=no
13001
fi
13002
rm -f core conftest.err conftest.$ac_objext \
13003
    conftest$ac_exeext conftest.$ac_ext
13004
            LDFLAGS=$hold_ldflags
13005
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13006
$as_echo "$found" >&6; }
13007
            if test $found = yes; then
13008
               CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
13009
            fi
13010
         fi
13011
         # Sun randomly tweaked the prototypes in 
13012
         # at one point.
13013
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if  is old" >&5
13014
$as_echo_n "checking if  is old... " >&6; }
13015
         if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13016
  $as_echo_n "(cached) " >&6
13017
else
13018
 
13019
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020
/* end confdefs.h.  */
13021
 
13022
                #include 
13023
                ps_err_e ps_pdwrite
13024
                    (struct ps_prochandle*, psaddr_t, const void*, size_t);
13025
 
13026
int
13027
main ()
13028
{
13029
 
13030
  ;
13031
  return 0;
13032
}
13033
_ACEOF
13034
if ac_fn_c_try_compile "$LINENO"; then :
13035
  gdb_cv_proc_service_is_old=no
13036
else
13037
  gdb_cv_proc_service_is_old=yes
13038
fi
13039
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13040
 
13041
fi
13042
 
13043
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13044
$as_echo "$gdb_cv_proc_service_is_old" >&6; }
13045
         if test $gdb_cv_proc_service_is_old = yes; then
13046
 
13047
$as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13048
 
13049
         fi
13050
      else
13051
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052
$as_echo "no" >&6; }
13053
      fi
13054
      ;;
13055
   aix*)
13056
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13057
$as_echo_n "checking for AiX thread debugging library... " >&6; }
13058
      if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13059
  $as_echo_n "(cached) " >&6
13060
else
13061
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062
/* end confdefs.h.  */
13063
#include 
13064
int
13065
main ()
13066
{
13067
#ifndef PTHDB_VERSION_3
13068
                                    #error
13069
                                    #endif
13070
  ;
13071
  return 0;
13072
}
13073
_ACEOF
13074
if ac_fn_c_try_compile "$LINENO"; then :
13075
  gdb_cv_have_aix_thread_debug=yes
13076
else
13077
  gdb_cv_have_aix_thread_debug=no
13078
fi
13079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080
fi
13081
 
13082
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13083
$as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13084
      if test $gdb_cv_have_aix_thread_debug = yes; then
13085
         CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13086
         CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13087
         CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
13088
      fi
13089
      ;;
13090
   esac
13091
 
13092
fi
13093
 
13094
if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13095
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether  has TD_NOTALLOC" >&5
13096
$as_echo_n "checking whether  has TD_NOTALLOC... " >&6; }
13097
if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13098
  $as_echo_n "(cached) " >&6
13099
else
13100
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101
/* end confdefs.h.  */
13102
#include 
13103
int
13104
main ()
13105
{
13106
int i = TD_NOTALLOC;
13107
  ;
13108
  return 0;
13109
}
13110
_ACEOF
13111
if ac_fn_c_try_compile "$LINENO"; then :
13112
  gdb_cv_thread_db_h_has_td_notalloc=yes
13113
else
13114
  gdb_cv_thread_db_h_has_td_notalloc=no
13115
 
13116
fi
13117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118
 
13119
fi
13120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13121
$as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13122
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether  has TD_VERSION" >&5
13123
$as_echo_n "checking whether  has TD_VERSION... " >&6; }
13124
if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13125
  $as_echo_n "(cached) " >&6
13126
else
13127
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128
/* end confdefs.h.  */
13129
#include 
13130
int
13131
main ()
13132
{
13133
int i = TD_VERSION;
13134
  ;
13135
  return 0;
13136
}
13137
_ACEOF
13138
if ac_fn_c_try_compile "$LINENO"; then :
13139
  gdb_cv_thread_db_h_has_td_version=yes
13140
else
13141
  gdb_cv_thread_db_h_has_td_version=no
13142
 
13143
fi
13144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145
 
13146
fi
13147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13148
$as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13149
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether  has TD_NOTLS" >&5
13150
$as_echo_n "checking whether  has TD_NOTLS... " >&6; }
13151
if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13152
  $as_echo_n "(cached) " >&6
13153
else
13154
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155
/* end confdefs.h.  */
13156
#include 
13157
int
13158
main ()
13159
{
13160
int i = TD_NOTLS;
13161
  ;
13162
  return 0;
13163
}
13164
_ACEOF
13165
if ac_fn_c_try_compile "$LINENO"; then :
13166
  gdb_cv_thread_db_h_has_td_notls=yes
13167
else
13168
  gdb_cv_thread_db_h_has_td_notls=no
13169
 
13170
fi
13171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13172
 
13173
fi
13174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13175
$as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13176
fi
13177
if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13178
 
13179
$as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13180
 
13181
fi
13182
if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13183
 
13184
$as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13185
 
13186
fi
13187
if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13188
 
13189
$as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13190
 
13191
fi
13192
 
13193
if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13194
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether  has __NR_tkill" >&5
13195
$as_echo_n "checking whether  has __NR_tkill... " >&6; }
13196
if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13197
  $as_echo_n "(cached) " >&6
13198
else
13199
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200
/* end confdefs.h.  */
13201
#include 
13202
int
13203
main ()
13204
{
13205
int i = __NR_tkill;
13206
  ;
13207
  return 0;
13208
}
13209
_ACEOF
13210
if ac_fn_c_try_compile "$LINENO"; then :
13211
  gdb_cv_sys_syscall_h_has_tkill=yes
13212
else
13213
  gdb_cv_sys_syscall_h_has_tkill=no
13214
 
13215
fi
13216
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13217
 
13218
fi
13219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13220
$as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13221
fi
13222
if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
13223
 
13224
$as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13225
 
13226
fi
13227
 
13228
ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include 
13229
"
13230
if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
13231
  ac_have_decl=1
13232
else
13233
  ac_have_decl=0
13234
fi
13235
 
13236
cat >>confdefs.h <<_ACEOF
13237
#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13238
_ACEOF
13239
 
13240
 
13241
if test "$cross_compiling" = yes; then :
13242
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243
/* end confdefs.h.  */
13244
#include 
13245
int
13246
main ()
13247
{
13248
 
13249
#      if !HAVE_DECL_ADDR_NO_RANDOMIZE
13250
#       define ADDR_NO_RANDOMIZE 0x0040000
13251
#      endif
13252
       /* Test the flag could be set and stays set.  */
13253
       personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13254
       if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13255
           return 1
13256
  ;
13257
  return 0;
13258
}
13259
_ACEOF
13260
if ac_fn_c_try_link "$LINENO"; then :
13261
  have_personality=true
13262
else
13263
  have_personality=false
13264
fi
13265
rm -f core conftest.err conftest.$ac_objext \
13266
    conftest$ac_exeext conftest.$ac_ext
13267
else
13268
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269
/* end confdefs.h.  */
13270
#include 
13271
int
13272
main ()
13273
{
13274
 
13275
#      if !HAVE_DECL_ADDR_NO_RANDOMIZE
13276
#       define ADDR_NO_RANDOMIZE 0x0040000
13277
#      endif
13278
       /* Test the flag could be set and stays set.  */
13279
       personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13280
       if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13281
           return 1
13282
  ;
13283
  return 0;
13284
}
13285
_ACEOF
13286
if ac_fn_c_try_run "$LINENO"; then :
13287
  have_personality=true
13288
else
13289
  have_personality=false
13290
fi
13291
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13292
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13293
fi
13294
 
13295
if $have_personality
13296
then
13297
 
13298
$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13299
 
13300
fi
13301
 
13302
 
13303
target_sysroot_reloc=0
13304
 
13305
# Check whether --with-sysroot was given.
13306
if test "${with_sysroot+set}" = set; then :
13307
  withval=$with_sysroot;
13308
 case ${with_sysroot} in
13309
 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
13310
 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
13311
 esac
13312
 
13313
 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
13314
 
13315
 if test "x$prefix" = xNONE; then
13316
  test_prefix=/usr/local
13317
 else
13318
  test_prefix=$prefix
13319
 fi
13320
 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13321
  test_exec_prefix=$test_prefix
13322
 else
13323
  test_exec_prefix=$exec_prefix
13324
 fi
13325
 case ${TARGET_SYSTEM_ROOT} in
13326
 "${test_prefix}"|"${test_prefix}/"*|\
13327
 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
13328
 '${prefix}'|'${prefix}/'*|\
13329
 '${exec_prefix}'|'${exec_prefix}/'*)
13330
   target_sysroot_reloc=1
13331
   ;;
13332
 esac
13333
 
13334
else
13335
 
13336
 TARGET_SYSTEM_ROOT=
13337
 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
13338
 
13339
fi
13340
 
13341
TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
13342
 
13343
 
13344
 
13345
 
13346
 
13347
# Check whether --with-system-gdbinit was given.
13348
if test "${with_system_gdbinit+set}" = set; then :
13349
  withval=$with_system_gdbinit;
13350
    SYSTEM_GDBINIT=$withval
13351
else
13352
  SYSTEM_GDBINIT=
13353
fi
13354
 
13355
 
13356
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13357
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13358
  ac_define_dir=`eval echo $SYSTEM_GDBINIT`
13359
  ac_define_dir=`eval echo $ac_define_dir`
13360
 
13361
cat >>confdefs.h <<_ACEOF
13362
#define SYSTEM_GDBINIT "$ac_define_dir"
13363
_ACEOF
13364
 
13365
 
13366
 
13367
  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13368
     if test "x$prefix" = xNONE; then
13369
        test_prefix=/usr/local
13370
     else
13371
        test_prefix=$prefix
13372
     fi
13373
  else
13374
     test_prefix=$exec_prefix
13375
  fi
13376
  value=0
13377
  case ${ac_define_dir} in
13378
     "${test_prefix}"|"${test_prefix}/"*|\
13379
        '${exec_prefix}'|'${exec_prefix}/'*)
13380
     value=1
13381
     ;;
13382
  esac
13383
 
13384
cat >>confdefs.h <<_ACEOF
13385
#define SYSTEM_GDBINIT_RELOCATABLE $value
13386
_ACEOF
13387
 
13388
 
13389
 
13390
# Check whether --enable-werror was given.
13391
if test "${enable_werror+set}" = set; then :
13392
  enableval=$enable_werror; case "${enableval}" in
13393
     yes | y) ERROR_ON_WARNING="yes" ;;
13394
     no | n)  ERROR_ON_WARNING="no" ;;
13395
     *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13396
   esac
13397
fi
13398
 
13399
 
13400
WERROR_CFLAGS=""
13401
if test "${ERROR_ON_WARNING}" = yes ; then
13402
    WERROR_CFLAGS="-Werror"
13403
fi
13404
 
13405
# The entries after -Wno-pointer-sign are disabled warnings which may
13406
# be enabled in the future, which can not currently be used to build
13407
# GDB.
13408
# NOTE: If you change this list, remember to update
13409
# gdb/doc/gdbint.texinfo.
13410
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13411
-Wformat-nonliteral -Wno-pointer-sign \
13412
-Wno-unused -Wunused-value -Wunused-function \
13413
-Wno-switch -Wno-char-subscripts"
13414
 
13415
# Enable -Wno-format by default when using gcc on mingw since many
13416
# GCC versions complain about %I64.
13417
case "${host}" in
13418
  *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13419
esac
13420
 
13421
# Check whether --enable-build-warnings was given.
13422
if test "${enable_build_warnings+set}" = set; then :
13423
  enableval=$enable_build_warnings; case "${enableval}" in
13424
  yes)  ;;
13425
  no)   build_warnings="-w";;
13426
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13427
        build_warnings="${build_warnings} ${t}";;
13428
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13429
        build_warnings="${t} ${build_warnings}";;
13430
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13431
esac
13432
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13433
  echo "Setting compiler warning flags = $build_warnings" 6>&1
13434
fi
13435
fi
13436
# Check whether --enable-gdb-build-warnings was given.
13437
if test "${enable_gdb_build_warnings+set}" = set; then :
13438
  enableval=$enable_gdb_build_warnings; case "${enableval}" in
13439
  yes)  ;;
13440
  no)   build_warnings="-w";;
13441
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13442
        build_warnings="${build_warnings} ${t}";;
13443
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13444
        build_warnings="${t} ${build_warnings}";;
13445
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13446
esac
13447
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13448
  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13449
fi
13450
fi
13451
WARN_CFLAGS=""
13452
if test "x${build_warnings}" != x -a "x$GCC" = xyes
13453
then
13454
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13455
$as_echo_n "checking compiler warning flags... " >&6; }
13456
    # Separate out the -Werror flag as some files just cannot be
13457
    # compiled with it enabled.
13458
    for w in ${build_warnings}; do
13459
        case $w in
13460
        -Werr*) WERROR_CFLAGS=-Werror ;;
13461
        *) # Check that GCC accepts it
13462
            saved_CFLAGS="$CFLAGS"
13463
            CFLAGS="$CFLAGS $w"
13464
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465
/* end confdefs.h.  */
13466
 
13467
int
13468
main ()
13469
{
13470
 
13471
  ;
13472
  return 0;
13473
}
13474
_ACEOF
13475
if ac_fn_c_try_compile "$LINENO"; then :
13476
  WARN_CFLAGS="${WARN_CFLAGS} $w"
13477
fi
13478
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479
            CFLAGS="$saved_CFLAGS"
13480
        esac
13481
    done
13482
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13483
$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13484
fi
13485
 
13486
 
13487
 
13488
# In the Cygwin environment, we need some additional flags.
13489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13490
$as_echo_n "checking for cygwin... " >&6; }
13491
if test "${gdb_cv_os_cygwin+set}" = set; then :
13492
  $as_echo_n "(cached) " >&6
13493
else
13494
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495
/* end confdefs.h.  */
13496
 
13497
#if defined (__CYGWIN__) || defined (__CYGWIN32__)
13498
lose
13499
#endif
13500
_ACEOF
13501
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13502
  $EGREP "lose" >/dev/null 2>&1; then :
13503
  gdb_cv_os_cygwin=yes
13504
else
13505
  gdb_cv_os_cygwin=no
13506
fi
13507
rm -f conftest*
13508
 
13509
fi
13510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
13511
$as_echo "$gdb_cv_os_cygwin" >&6; }
13512
 
13513
 
13514
SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
13515
case ${host} in
13516
  *go32* ) SER_HARDWIRE=ser-go32.o ;;
13517
  *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13518
  *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
13519
esac
13520
 
13521
 
13522
# libreadline needs libuser32.a in a cygwin environment
13523
WIN32LIBS=
13524
if test x$gdb_cv_os_cygwin = xyes; then
13525
    WIN32LIBS="-luser32"
13526
    case "${target}" in
13527
        *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13528
        ;;
13529
    esac
13530
fi
13531
 
13532
# The ser-tcp.c module requires sockets.
13533
case ${host} in
13534
  *mingw32*)
13535
 
13536
$as_echo "#define USE_WIN32API 1" >>confdefs.h
13537
 
13538
    WIN32LIBS="$WIN32LIBS -lws2_32"
13539
    ;;
13540
esac
13541
 
13542
 
13543
# Add ELF support to GDB, but only if BFD includes ELF support.
13544
OLD_CFLAGS=$CFLAGS
13545
OLD_LDFLAGS=$LDFLAGS
13546
OLD_LIBS=$LIBS
13547
CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
13548
LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
13549
intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13550
LIBS="-lbfd -liberty $intl $LIBS"
13551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13552
$as_echo_n "checking for ELF support in BFD... " >&6; }
13553
if test "${gdb_cv_var_elf+set}" = set; then :
13554
  $as_echo_n "(cached) " >&6
13555
else
13556
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557
/* end confdefs.h.  */
13558
#include 
13559
#include "bfd.h"
13560
#include "elf-bfd.h"
13561
 
13562
int
13563
main ()
13564
{
13565
bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
13566
  ;
13567
  return 0;
13568
}
13569
_ACEOF
13570
if ac_fn_c_try_link "$LINENO"; then :
13571
  gdb_cv_var_elf=yes
13572
else
13573
  gdb_cv_var_elf=no
13574
fi
13575
rm -f core conftest.err conftest.$ac_objext \
13576
    conftest$ac_exeext conftest.$ac_ext
13577
fi
13578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13579
$as_echo "$gdb_cv_var_elf" >&6; }
13580
if test $gdb_cv_var_elf = yes; then
13581
  CONFIG_OBS="$CONFIG_OBS elfread.o"
13582
 
13583
$as_echo "#define HAVE_ELF 1" >>confdefs.h
13584
 
13585
fi
13586
CFLAGS=$OLD_CFLAGS
13587
LDFLAGS=$OLD_LDFLAGS
13588
LIBS=$OLD_LIBS
13589
 
13590
# Add any host-specific objects to GDB.
13591
CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
13592
 
13593
LIBGUI="../libgui/src/libgui.a"
13594
GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13595
 
13596
 
13597
 
13598
WIN32LDAPP=
13599
 
13600
 
13601
 
13602
case "${host}" in
13603
*-*-cygwin* | *-*-mingw* )
13604
    configdir="win"
13605
    ;;
13606
*)
13607
    configdir="unix"
13608
    ;;
13609
esac
13610
 
13611
GDBTKLIBS=
13612
if test "${enable_gdbtk}" = "yes"; then
13613
 
13614
    # Gdbtk must have an absolute path to srcdir in order to run
13615
    # properly when not installed.
13616
    here=`pwd`
13617
    cd ${srcdir}
13618
    GDBTK_SRC_DIR=`pwd`
13619
    cd $here
13620
 
13621
 
13622
    #
13623
    # Ok, lets find the tcl configuration
13624
    # First, look for one uninstalled.
13625
    # the alternative search directory is invoked by --with-tcl
13626
    #
13627
 
13628
    if test x"${no_tcl}" = x ; then
13629
        # we reset no_tcl in case something fails here
13630
        no_tcl=true
13631
 
13632
# Check whether --with-tcl was given.
13633
if test "${with_tcl+set}" = set; then :
13634
  withval=$with_tcl; with_tclconfig=${withval}
13635
fi
13636
 
13637
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13638
$as_echo_n "checking for Tcl configuration... " >&6; }
13639
        if test "${ac_cv_c_tclconfig+set}" = set; then :
13640
  $as_echo_n "(cached) " >&6
13641
else
13642
 
13643
 
13644
            # First check to see if --with-tcl was specified.
13645
            case "${host}" in
13646
                *-*-cygwin*) platDir="win" ;;
13647
                *) platDir="unix" ;;
13648
            esac
13649
            if test x"${with_tclconfig}" != x ; then
13650
                if test -f "${with_tclconfig}/tclConfig.sh" ; then
13651
                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13652
                else
13653
                    as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13654
                fi
13655
            fi
13656
 
13657
            # then check for a private Tcl installation
13658
            if test x"${ac_cv_c_tclconfig}" = x ; then
13659
                for i in \
13660
                        ../tcl \
13661
                        `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13662
                        `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13663
                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13664
                        ../../tcl \
13665
                        `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13666
                        `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13667
                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13668
                        ../../../tcl \
13669
                        `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13670
                        `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13671
                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13672
                    if test -f "$i/$platDir/tclConfig.sh" ; then
13673
                        ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13674
                        break
13675
                    fi
13676
                done
13677
            fi
13678
 
13679
            # on Darwin, check in Framework installation locations
13680
            if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13681
                for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13682
                        `ls -d /Library/Frameworks 2>/dev/null` \
13683
                        `ls -d /Network/Library/Frameworks 2>/dev/null` \
13684
                        `ls -d /System/Library/Frameworks 2>/dev/null` \
13685
                        ; do
13686
                    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13687
                        ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13688
                        break
13689
                    fi
13690
                done
13691
            fi
13692
 
13693
            # check in a few common install locations
13694
            if test x"${ac_cv_c_tclconfig}" = x ; then
13695
                for i in `ls -d ${libdir} 2>/dev/null` \
13696
                        `ls -d ${exec_prefix}/lib 2>/dev/null` \
13697
                        `ls -d ${prefix}/lib 2>/dev/null` \
13698
                        `ls -d /usr/local/lib 2>/dev/null` \
13699
                        `ls -d /usr/contrib/lib 2>/dev/null` \
13700
                        `ls -d /usr/lib 2>/dev/null` \
13701
                        ; do
13702
                    if test -f "$i/tclConfig.sh" ; then
13703
                        ac_cv_c_tclconfig=`(cd $i; pwd)`
13704
                        break
13705
                    fi
13706
                done
13707
            fi
13708
 
13709
            # check in a few other private locations
13710
            if test x"${ac_cv_c_tclconfig}" = x ; then
13711
                for i in \
13712
                        ${srcdir}/../tcl \
13713
                        `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13714
                        `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13715
                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13716
                    if test -f "$i/$platDir/tclConfig.sh" ; then
13717
                    ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13718
                    break
13719
                fi
13720
                done
13721
            fi
13722
 
13723
fi
13724
 
13725
 
13726
        if test x"${ac_cv_c_tclconfig}" = x ; then
13727
            TCL_BIN_DIR="# no Tcl configs found"
13728
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13729
$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13730
        else
13731
            no_tcl=
13732
            TCL_BIN_DIR=${ac_cv_c_tclconfig}
13733
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13734
$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13735
        fi
13736
    fi
13737
 
13738
 
13739
    # If $no_tk is nonempty, then we can't do Tk, and there is no
13740
    # point to doing Tcl.
13741
 
13742
    #
13743
    # Ok, lets find the tk configuration
13744
    # First, look for one uninstalled.
13745
    # the alternative search directory is invoked by --with-tk
13746
    #
13747
 
13748
    if test x"${no_tk}" = x ; then
13749
        # we reset no_tk in case something fails here
13750
        no_tk=true
13751
 
13752
# Check whether --with-tk was given.
13753
if test "${with_tk+set}" = set; then :
13754
  withval=$with_tk; with_tkconfig=${withval}
13755
fi
13756
 
13757
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13758
$as_echo_n "checking for Tk configuration... " >&6; }
13759
        if test "${ac_cv_c_tkconfig+set}" = set; then :
13760
  $as_echo_n "(cached) " >&6
13761
else
13762
 
13763
 
13764
            # First check to see if --with-tkconfig was specified.
13765
            if test x"${with_tkconfig}" != x ; then
13766
                if test -f "${with_tkconfig}/tkConfig.sh" ; then
13767
                    ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
13768
                else
13769
                    as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13770
                fi
13771
            fi
13772
 
13773
            # then check for a private Tk library
13774
            case "${host}" in
13775
                *-*-cygwin*) platDir="win" ;;
13776
                *) platDir="unix" ;;
13777
            esac
13778
            if test x"${ac_cv_c_tkconfig}" = x ; then
13779
                for i in \
13780
                        ../tk \
13781
                        `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13782
                        `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13783
                        `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13784
                        ../../tk \
13785
                        `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13786
                        `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13787
                        `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13788
                        ../../../tk \
13789
                        `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13790
                        `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13791
                        `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13792
                    if test -f "$i/$platDir/tkConfig.sh" ; then
13793
                        ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13794
                        break
13795
                    fi
13796
                done
13797
            fi
13798
 
13799
            # on Darwin, check in Framework installation locations
13800
            if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
13801
                for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13802
                        `ls -d /Library/Frameworks 2>/dev/null` \
13803
                        `ls -d /Network/Library/Frameworks 2>/dev/null` \
13804
                        `ls -d /System/Library/Frameworks 2>/dev/null` \
13805
                        ; do
13806
                    if test -f "$i/Tk.framework/tkConfig.sh" ; then
13807
                        ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
13808
                        break
13809
                    fi
13810
                done
13811
            fi
13812
 
13813
            # check in a few common install locations
13814
            if test x"${ac_cv_c_tkconfig}" = x ; then
13815
                for i in `ls -d ${libdir} 2>/dev/null` \
13816
                        `ls -d ${exec_prefix}/lib 2>/dev/null` \
13817
                        `ls -d ${prefix}/lib 2>/dev/null` \
13818
                        `ls -d /usr/local/lib 2>/dev/null` \
13819
                        `ls -d /usr/contrib/lib 2>/dev/null` \
13820
                        `ls -d /usr/lib 2>/dev/null` \
13821
                        ; do
13822
                    if test -f "$i/tkConfig.sh" ; then
13823
                        ac_cv_c_tkconfig=`(cd $i; pwd)`
13824
                        break
13825
                    fi
13826
                done
13827
            fi
13828
            # check in a few other private locations
13829
            if test x"${ac_cv_c_tkconfig}" = x ; then
13830
                for i in \
13831
                        ${srcdir}/../tk \
13832
                        `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13833
                        `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13834
                        `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13835
                    if test -f "$i/$platDir/tkConfig.sh" ; then
13836
                        ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13837
                        break
13838
                    fi
13839
                done
13840
            fi
13841
 
13842
fi
13843
 
13844
 
13845
        if test x"${ac_cv_c_tkconfig}" = x ; then
13846
            TK_BIN_DIR="# no Tk configs found"
13847
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13848
$as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13849
        else
13850
            no_tk=
13851
            TK_BIN_DIR=${ac_cv_c_tkconfig}
13852
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13853
$as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13854
        fi
13855
    fi
13856
 
13857
 
13858
    if test -z "${no_tcl}" -a -z "${no_tk}"; then
13859
 
13860
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13861
$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13862
 
13863
    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13864
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13865
$as_echo "loading" >&6; }
13866
        . ${TCL_BIN_DIR}/tclConfig.sh
13867
    else
13868
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13869
$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13870
    fi
13871
 
13872
    # eval is required to do the TCL_DBGX substitution
13873
    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13874
    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13875
 
13876
    # If the TCL_BIN_DIR is the build directory (not the install directory),
13877
    # then set the common variable name to the value of the build variables.
13878
    # For example, the variable TCL_LIB_SPEC will be set to the value
13879
    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13880
    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13881
    # installed and uninstalled version of Tcl.
13882
    if test -f "${TCL_BIN_DIR}/Makefile" ; then
13883
        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13884
        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13885
        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13886
    elif test "`uname -s`" = "Darwin"; then
13887
        # If Tcl was built as a framework, attempt to use the libraries
13888
        # from the framework at the given location so that linking works
13889
        # against Tcl.framework installed in an arbitary location.
13890
        case ${TCL_DEFS} in
13891
            *TCL_FRAMEWORK*)
13892
                if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13893
                    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
13894
                             "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13895
                        if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13896
                            TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13897
                            break
13898
                        fi
13899
                    done
13900
                fi
13901
                if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13902
                    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13903
                    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13904
                fi
13905
                ;;
13906
        esac
13907
    fi
13908
 
13909
    # eval is required to do the TCL_DBGX substitution
13910
    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13911
    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13912
    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13913
    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13914
 
13915
 
13916
 
13917
 
13918
 
13919
 
13920
 
13921
 
13922
 
13923
 
13924
 
13925
 
13926
 
13927
 
13928
 
13929
        # Check for in-tree tcl
13930
        here=`pwd`
13931
        cd ${srcdir}/..
13932
        topdir=`pwd`
13933
        cd ${here}
13934
 
13935
        intree="no"
13936
        if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13937
          intree="yes"
13938
        fi
13939
 
13940
        # Find Tcl private headers
13941
        if test x"${intree}" = xno; then
13942
 
13943
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13944
$as_echo_n "checking for Tcl private headers... " >&6; }
13945
  private_dir=""
13946
  dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13947
  if test -f ${dir}/tclInt.h ; then
13948
    private_dir=${dir}
13949
  fi
13950
 
13951
  if test x"${private_dir}" = x; then
13952
    as_fn_error "could not find private Tcl headers" "$LINENO" 5
13953
  else
13954
    TCL_PRIVATE_INCLUDE="-I${private_dir}"
13955
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13956
$as_echo "${private_dir}" >&6; }
13957
  fi
13958
 
13959
          TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13960
          TCL_LIBRARY="${TCL_LIB_SPEC}"
13961
          TCL_DEPS=""
13962
        else
13963
          # If building tcl in the same src tree, private headers
13964
          # are not needed, but we need to be sure to use the right
13965
          # headers library
13966
          TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
13967
          TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
13968
          TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
13969
        fi
13970
 
13971
 
13972
 
13973
 
13974
 
13975
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13976
$as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13977
 
13978
    if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13979
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13980
$as_echo "loading" >&6; }
13981
        . ${TK_BIN_DIR}/tkConfig.sh
13982
    else
13983
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13984
$as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13985
    fi
13986
 
13987
    # eval is required to do the TK_DBGX substitution
13988
    eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13989
    eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13990
 
13991
    # If the TK_BIN_DIR is the build directory (not the install directory),
13992
    # then set the common variable name to the value of the build variables.
13993
    # For example, the variable TK_LIB_SPEC will be set to the value
13994
    # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13995
    # instead of TK_BUILD_LIB_SPEC since it will work with both an
13996
    # installed and uninstalled version of Tcl.
13997
    if test -f "${TK_BIN_DIR}/Makefile" ; then
13998
        TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
13999
        TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
14000
        TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
14001
    elif test "`uname -s`" = "Darwin"; then
14002
        # If Tk was built as a framework, attempt to use the libraries
14003
        # from the framework at the given location so that linking works
14004
        # against Tk.framework installed in an arbitary location.
14005
        case ${TK_DEFS} in
14006
            *TK_FRAMEWORK*)
14007
                if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14008
                    for i in "`cd ${TK_BIN_DIR}; pwd`" \
14009
                             "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14010
                        if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14011
                            TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14012
                            break
14013
                        fi
14014
                    done
14015
                fi
14016
                if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14017
                    TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14018
                    TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14019
                fi
14020
                ;;
14021
        esac
14022
    fi
14023
 
14024
    # eval is required to do the TK_DBGX substitution
14025
    eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14026
    eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14027
    eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14028
    eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14029
 
14030
 
14031
 
14032
 
14033
 
14034
 
14035
 
14036
 
14037
 
14038
 
14039
 
14040
 
14041
 
14042
 
14043
        # Check for in-tree Tk
14044
        intree="no"
14045
        if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14046
          intree="yes"
14047
        fi
14048
 
14049
        # Find Tk private headers
14050
        if test x"${intree}" = xno; then
14051
 
14052
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14053
$as_echo_n "checking for Tk private headers... " >&6; }
14054
  private_dir=""
14055
  dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14056
  if test -f ${dir}/tkInt.h; then
14057
    private_dir=${dir}
14058
  fi
14059
 
14060
  if test x"${private_dir}" = x; then
14061
    as_fn_error "could not find Tk private headers" "$LINENO" 5
14062
  else
14063
    TK_PRIVATE_INCLUDE="-I${private_dir}"
14064
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14065
$as_echo "${private_dir}" >&6; }
14066
  fi
14067
 
14068
          TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14069
          TK_LIBRARY=${TK_LIB_SPEC}
14070
          TK_DEPS=""
14071
        else
14072
          TK_INCLUDE="-I${TK_SRC_DIR}/generic"
14073
          TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
14074
          TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
14075
        fi
14076
 
14077
 
14078
 
14079
 
14080
 
14081
        ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14082
 
14083
        # Include some libraries that Tcl and Tk want.
14084
        TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14085
        # Yes, the ordering seems wrong here.  But it isn't.
14086
        # TK_LIBS is the list of libraries that need to be linked
14087
        # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
14088
        # were in LIBS then any link tests after this point would
14089
        # try to include things like `$(LIBGUI)', which wouldn't work.
14090
        GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
14091
 
14092
        CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14093
        CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14094
        CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14095
        CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
14096
        CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
14097
        CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
14098
        CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
14099
 
14100
        if test x$gdb_cv_os_cygwin = xyes; then
14101
          WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14102
          WIN32LDAPP="-Wl,--subsystem,console"
14103
          CONFIG_OBS="${CONFIG_OBS} gdbres.o"
14104
        fi
14105
 
14106
        subdirs="$subdirs gdbtk"
14107
 
14108
    fi
14109
fi
14110
 
14111
 
14112
 
14113
 
14114
 
14115
 
14116
 
14117
 
14118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14119
$as_echo_n "checking for X... " >&6; }
14120
 
14121
 
14122
# Check whether --with-x was given.
14123
if test "${with_x+set}" = set; then :
14124
  withval=$with_x;
14125
fi
14126
 
14127
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14128
if test "x$with_x" = xno; then
14129
  # The user explicitly disabled X.
14130
  have_x=disabled
14131
else
14132
  case $x_includes,$x_libraries in #(
14133
    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14134
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14135
  $as_echo_n "(cached) " >&6
14136
else
14137
  # One or both of the vars are not set, and there is no cached value.
14138
ac_x_includes=no ac_x_libraries=no
14139
rm -f -r conftest.dir
14140
if mkdir conftest.dir; then
14141
  cd conftest.dir
14142
  cat >Imakefile <<'_ACEOF'
14143
incroot:
14144
        @echo incroot='${INCROOT}'
14145
usrlibdir:
14146
        @echo usrlibdir='${USRLIBDIR}'
14147
libdir:
14148
        @echo libdir='${LIBDIR}'
14149
_ACEOF
14150
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14151
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14152
    for ac_var in incroot usrlibdir libdir; do
14153
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14154
    done
14155
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14156
    for ac_extension in a so sl dylib la dll; do
14157
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14158
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
14159
        ac_im_usrlibdir=$ac_im_libdir; break
14160
      fi
14161
    done
14162
    # Screen out bogus values from the imake configuration.  They are
14163
    # bogus both because they are the default anyway, and because
14164
    # using them would break gcc on systems where it needs fixed includes.
14165
    case $ac_im_incroot in
14166
        /usr/include) ac_x_includes= ;;
14167
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14168
    esac
14169
    case $ac_im_usrlibdir in
14170
        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14171
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14172
    esac
14173
  fi
14174
  cd ..
14175
  rm -f -r conftest.dir
14176
fi
14177
 
14178
# Standard set of common directories for X headers.
14179
# Check X11 before X11Rn because it is often a symlink to the current release.
14180
ac_x_header_dirs='
14181
/usr/X11/include
14182
/usr/X11R7/include
14183
/usr/X11R6/include
14184
/usr/X11R5/include
14185
/usr/X11R4/include
14186
 
14187
/usr/include/X11
14188
/usr/include/X11R7
14189
/usr/include/X11R6
14190
/usr/include/X11R5
14191
/usr/include/X11R4
14192
 
14193
/usr/local/X11/include
14194
/usr/local/X11R7/include
14195
/usr/local/X11R6/include
14196
/usr/local/X11R5/include
14197
/usr/local/X11R4/include
14198
 
14199
/usr/local/include/X11
14200
/usr/local/include/X11R7
14201
/usr/local/include/X11R6
14202
/usr/local/include/X11R5
14203
/usr/local/include/X11R4
14204
 
14205
/usr/X386/include
14206
/usr/x386/include
14207
/usr/XFree86/include/X11
14208
 
14209
/usr/include
14210
/usr/local/include
14211
/usr/unsupported/include
14212
/usr/athena/include
14213
/usr/local/x11r5/include
14214
/usr/lpp/Xamples/include
14215
 
14216
/usr/openwin/include
14217
/usr/openwin/share/include'
14218
 
14219
if test "$ac_x_includes" = no; then
14220
  # Guess where to find include files, by looking for Xlib.h.
14221
  # First, try using that file with no special directory specified.
14222
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223
/* end confdefs.h.  */
14224
#include 
14225
_ACEOF
14226
if ac_fn_c_try_cpp "$LINENO"; then :
14227
  # We can compile using X headers with no special include directory.
14228
ac_x_includes=
14229
else
14230
  for ac_dir in $ac_x_header_dirs; do
14231
  if test -r "$ac_dir/X11/Xlib.h"; then
14232
    ac_x_includes=$ac_dir
14233
    break
14234
  fi
14235
done
14236
fi
14237
rm -f conftest.err conftest.$ac_ext
14238
fi # $ac_x_includes = no
14239
 
14240
if test "$ac_x_libraries" = no; then
14241
  # Check for the libraries.
14242
  # See if we find them without any special options.
14243
  # Don't add to $LIBS permanently.
14244
  ac_save_LIBS=$LIBS
14245
  LIBS="-lX11 $LIBS"
14246
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247
/* end confdefs.h.  */
14248
#include 
14249
int
14250
main ()
14251
{
14252
XrmInitialize ()
14253
  ;
14254
  return 0;
14255
}
14256
_ACEOF
14257
if ac_fn_c_try_link "$LINENO"; then :
14258
  LIBS=$ac_save_LIBS
14259
# We can link X programs with no special library path.
14260
ac_x_libraries=
14261
else
14262
  LIBS=$ac_save_LIBS
14263
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14264
do
14265
  # Don't even attempt the hair of trying to link an X program!
14266
  for ac_extension in a so sl dylib la dll; do
14267
    if test -r "$ac_dir/libX11.$ac_extension"; then
14268
      ac_x_libraries=$ac_dir
14269
      break 2
14270
    fi
14271
  done
14272
done
14273
fi
14274
rm -f core conftest.err conftest.$ac_objext \
14275
    conftest$ac_exeext conftest.$ac_ext
14276
fi # $ac_x_libraries = no
14277
 
14278
case $ac_x_includes,$ac_x_libraries in #(
14279
  no,* | *,no | *\'*)
14280
    # Didn't find X, or a directory has "'" in its name.
14281
    ac_cv_have_x="have_x=no";; #(
14282
  *)
14283
    # Record where we found X for the cache.
14284
    ac_cv_have_x="have_x=yes\
14285
        ac_x_includes='$ac_x_includes'\
14286
        ac_x_libraries='$ac_x_libraries'"
14287
esac
14288
fi
14289
;; #(
14290
    *) have_x=yes;;
14291
  esac
14292
  eval "$ac_cv_have_x"
14293
fi # $with_x != no
14294
 
14295
if test "$have_x" != yes; then
14296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14297
$as_echo "$have_x" >&6; }
14298
  no_x=yes
14299
else
14300
  # If each of the values was on the command line, it overrides each guess.
14301
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14302
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14303
  # Update the cache value to reflect the command line values.
14304
  ac_cv_have_x="have_x=yes\
14305
        ac_x_includes='$x_includes'\
14306
        ac_x_libraries='$x_libraries'"
14307
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14308
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14309
fi
14310
 
14311
 
14312
# Unlike the sim directory, whether a simulator is linked is controlled by
14313
# presence of a gdb_sim definition in the target configure.tgt entry.
14314
# This code just checks for a few cases where we'd like to ignore those
14315
# definitions, even when they're present in the '.mt' file.  These cases
14316
# are when --disable-sim is specified, or if the simulator directory is
14317
# not part of the source tree.
14318
#
14319
# Check whether --enable-sim was given.
14320
if test "${enable_sim+set}" = set; then :
14321
  enableval=$enable_sim; echo "enable_sim = $enable_sim";
14322
 echo "enableval = ${enableval}";
14323
 case "${enableval}" in
14324
  yes) ignore_sim=false ;;
14325
  no)  ignore_sim=true ;;
14326
  *)   ignore_sim=false ;;
14327
 esac
14328
else
14329
  ignore_sim=false
14330
fi
14331
 
14332
 
14333
if test ! -d "${srcdir}/../sim"; then
14334
  ignore_sim=true
14335
fi
14336
 
14337
SIM=
14338
SIM_OBS=
14339
if test "${ignore_sim}" = "false"; then
14340
  if test x"${gdb_sim}" != x ; then
14341
    SIM="${gdb_sim}"
14342
    SIM_OBS="remote-sim.o"
14343
 
14344
$as_echo "#define WITH_SIM 1" >>confdefs.h
14345
 
14346
  fi
14347
fi
14348
 
14349
 
14350
 
14351
# Option to explicitly specify the location of the Or1ksim installation
14352
 
14353
# Check whether --with-or1ksim was given.
14354
if test "${with_or1ksim+set}" = set; then :
14355
  withval=$with_or1ksim;
14356
fi
14357
 
14358
if test x"$with_or1ksim" != x
14359
then
14360
    CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-rpath -Wl,$with_or1ksim/lib -L$with_or1ksim/lib -lsim"
14361
 
14362
fi
14363
 
14364
 
14365
 
14366
 
14367
 
14368
 
14369
 
14370
 
14371
 
14372
 
14373
 
14374
 
14375
# List of host floatformats.
14376
 
14377
cat >>confdefs.h <<_ACEOF
14378
#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14379
_ACEOF
14380
 
14381
 
14382
cat >>confdefs.h <<_ACEOF
14383
#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14384
_ACEOF
14385
 
14386
 
14387
cat >>confdefs.h <<_ACEOF
14388
#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14389
_ACEOF
14390
 
14391
 
14392
# target_subdir is used by the testsuite to find the target libraries.
14393
target_subdir=
14394
if test "${host}" != "${target}"; then
14395
    target_subdir="${target_alias}/"
14396
fi
14397
 
14398
 
14399
frags=
14400
if test "${gdb_native}" = "yes"; then
14401
  host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14402
  if test ! -f ${host_makefile_frag}; then
14403
    as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14404
  fi
14405
  frags="$frags $host_makefile_frag"
14406
else
14407
  host_makefile_frag=/dev/null
14408
fi
14409
 
14410
 
14411
 
14412
 
14413
if test "${gdb_native}" = "yes"; then
14414
# We pick this up from the host configuration file (.mh) because we
14415
# do not have a native configuration Makefile fragment.
14416
nativefile=`sed -n '
14417
s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
14418
' ${host_makefile_frag}`
14419
fi
14420
 
14421
 
14422
if test x"${gdb_osabi}" != x ; then
14423
 
14424
cat >>confdefs.h <<_ACEOF
14425
#define GDB_OSABI_DEFAULT $gdb_osabi
14426
_ACEOF
14427
 
14428
fi
14429
 
14430
# Enable multi-ice-gdb-server.
14431
# Check whether --enable-multi-ice was given.
14432
if test "${enable_multi_ice+set}" = set; then :
14433
  enableval=$enable_multi_ice; case $enableval in
14434
    yes | no)
14435
      ;;
14436
    *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14437
  esac
14438
fi
14439
 
14440
if test "x$enable_multi_ice" = xyes; then
14441
   subdirs="$subdirs multi-ice"
14442
 
14443
fi
14444
 
14445
# We only build gdbserver automatically in a native configuration.
14446
if test "$gdb_native" = "yes"; then
14447
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14448
$as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14449
  if test "x$build_gdbserver" = xyes; then
14450
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14451
$as_echo "yes" >&6; }
14452
    subdirs="$subdirs gdbserver"
14453
 
14454
  else
14455
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456
$as_echo "no" >&6; }
14457
  fi
14458
fi
14459
 
14460
# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14461
# to an empty version.
14462
 
14463
files=
14464
links=
14465
 
14466
rm -f nm.h
14467
if test "${nativefile}" != ""; then
14468
    case "${nativefile}" in
14469
      nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
14470
      * ) GDB_NM_FILE="${nativefile}"
14471
    esac
14472
    files="${files} ${GDB_NM_FILE}"
14473
    links="${links} nm.h"
14474
 
14475
cat >>confdefs.h <<_ACEOF
14476
#define GDB_NM_FILE "${GDB_NM_FILE}"
14477
_ACEOF
14478
 
14479
fi
14480
 
14481
 
14482
ac_sources="$files"
14483
ac_dests="$links"
14484
while test -n "$ac_sources"; do
14485
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14486
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
14487
  ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14488
done
14489
ac_config_links="$ac_config_links $ac_config_links_1"
14490
 
14491
 
14492
 
14493
 
14494
 
14495
$as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14496
 
14497
 
14498
ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
14499
 
14500
ac_config_commands="$ac_config_commands default"
14501
 
14502
cat >confcache <<\_ACEOF
14503
# This file is a shell script that caches the results of configure
14504
# tests run on this system so they can be shared between configure
14505
# scripts and configure runs, see configure's option --config-cache.
14506
# It is not useful on other systems.  If it contains results you don't
14507
# want to keep, you may remove or edit it.
14508
#
14509
# config.status only pays attention to the cache file if you give it
14510
# the --recheck option to rerun configure.
14511
#
14512
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14513
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14514
# following values.
14515
 
14516
_ACEOF
14517
 
14518
# The following way of writing the cache mishandles newlines in values,
14519
# but we know of no workaround that is simple, portable, and efficient.
14520
# So, we kill variables containing newlines.
14521
# Ultrix sh set writes to stderr and can't be redirected directly,
14522
# and sets the high bit in the cache file unless we assign to the vars.
14523
(
14524
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14525
    eval ac_val=\$$ac_var
14526
    case $ac_val in #(
14527
    *${as_nl}*)
14528
      case $ac_var in #(
14529
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14530
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14531
      esac
14532
      case $ac_var in #(
14533
      _ | IFS | as_nl) ;; #(
14534
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14535
      *) { eval $ac_var=; unset $ac_var;} ;;
14536
      esac ;;
14537
    esac
14538
  done
14539
 
14540
  (set) 2>&1 |
14541
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14542
    *${as_nl}ac_space=\ *)
14543
      # `set' does not quote correctly, so add quotes: double-quote
14544
      # substitution turns \\\\ into \\, and sed turns \\ into \.
14545
      sed -n \
14546
        "s/'/'\\\\''/g;
14547
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14548
      ;; #(
14549
    *)
14550
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14551
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14552
      ;;
14553
    esac |
14554
    sort
14555
) |
14556
  sed '
14557
     /^ac_cv_env_/b end
14558
     t clear
14559
     :clear
14560
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14561
     t end
14562
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14563
     :end' >>confcache
14564
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14565
  if test -w "$cache_file"; then
14566
    test "x$cache_file" != "x/dev/null" &&
14567
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14568
$as_echo "$as_me: updating cache $cache_file" >&6;}
14569
    cat confcache >$cache_file
14570
  else
14571
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14572
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14573
  fi
14574
fi
14575
rm -f confcache
14576
 
14577
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14578
# Let make expand exec_prefix.
14579
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14580
 
14581
DEFS=-DHAVE_CONFIG_H
14582
 
14583
ac_libobjs=
14584
ac_ltlibobjs=
14585
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14586
  # 1. Remove the extension, and $U if already installed.
14587
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14588
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14589
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14590
  #    will be set to the directory where LIBOBJS objects are built.
14591
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14592
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14593
done
14594
LIBOBJS=$ac_libobjs
14595
 
14596
LTLIBOBJS=$ac_ltlibobjs
14597
 
14598
 
14599
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14600
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14601
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14602
fi
14603
if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14604
  as_fn_error "conditional \"GMAKE\" was never defined.
14605
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14606
fi
14607
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14608
  as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14609
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14610
fi
14611
 
14612
    gl_libobjs=
14613
    gl_ltlibobjs=
14614
    if test -n "$gl_LIBOBJS"; then
14615
      # Remove the extension.
14616
      sed_drop_objext='s/\.o$//;s/\.obj$//'
14617
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14618
        gl_libobjs="$gl_libobjs $i.$ac_objext"
14619
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14620
      done
14621
    fi
14622
    gl_LIBOBJS=$gl_libobjs
14623
 
14624
    gl_LTLIBOBJS=$gl_ltlibobjs
14625
 
14626
 
14627
 
14628
    gltests_libobjs=
14629
    gltests_ltlibobjs=
14630
    if test -n "$gltests_LIBOBJS"; then
14631
      # Remove the extension.
14632
      sed_drop_objext='s/\.o$//;s/\.obj$//'
14633
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14634
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14635
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14636
      done
14637
    fi
14638
    gltests_LIBOBJS=$gltests_libobjs
14639
 
14640
    gltests_LTLIBOBJS=$gltests_ltlibobjs
14641
 
14642
 
14643
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14644
  as_fn_error "conditional \"AMDEP\" was never defined.
14645
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14646
fi
14647
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14648
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14649
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14650
fi
14651
 if test -n "$EXEEXT"; then
14652
  am__EXEEXT_TRUE=
14653
  am__EXEEXT_FALSE='#'
14654
else
14655
  am__EXEEXT_TRUE='#'
14656
  am__EXEEXT_FALSE=
14657
fi
14658
 
14659
 
14660
 
14661
: ${CONFIG_STATUS=./config.status}
14662
ac_write_fail=0
14663
ac_clean_files_save=$ac_clean_files
14664
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14665
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14666
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14667
as_write_fail=0
14668
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14669
#! $SHELL
14670
# Generated by $as_me.
14671
# Run this file to recreate the current configuration.
14672
# Compiler output produced by configure, useful for debugging
14673
# configure, is in config.log if it exists.
14674
 
14675
debug=false
14676
ac_cs_recheck=false
14677
ac_cs_silent=false
14678
 
14679
SHELL=\${CONFIG_SHELL-$SHELL}
14680
export SHELL
14681
_ASEOF
14682
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14683
## -------------------- ##
14684
## M4sh Initialization. ##
14685
## -------------------- ##
14686
 
14687
# Be more Bourne compatible
14688
DUALCASE=1; export DUALCASE # for MKS sh
14689
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14690
  emulate sh
14691
  NULLCMD=:
14692
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14693
  # is contrary to our usage.  Disable this feature.
14694
  alias -g '${1+"$@"}'='"$@"'
14695
  setopt NO_GLOB_SUBST
14696
else
14697
  case `(set -o) 2>/dev/null` in #(
14698
  *posix*) :
14699
    set -o posix ;; #(
14700
  *) :
14701
     ;;
14702
esac
14703
fi
14704
 
14705
 
14706
as_nl='
14707
'
14708
export as_nl
14709
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14710
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14711
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14712
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14713
# Prefer a ksh shell builtin over an external printf program on Solaris,
14714
# but without wasting forks for bash or zsh.
14715
if test -z "$BASH_VERSION$ZSH_VERSION" \
14716
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14717
  as_echo='print -r --'
14718
  as_echo_n='print -rn --'
14719
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14720
  as_echo='printf %s\n'
14721
  as_echo_n='printf %s'
14722
else
14723
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14724
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14725
    as_echo_n='/usr/ucb/echo -n'
14726
  else
14727
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14728
    as_echo_n_body='eval
14729
      arg=$1;
14730
      case $arg in #(
14731
      *"$as_nl"*)
14732
        expr "X$arg" : "X\\(.*\\)$as_nl";
14733
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14734
      esac;
14735
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14736
    '
14737
    export as_echo_n_body
14738
    as_echo_n='sh -c $as_echo_n_body as_echo'
14739
  fi
14740
  export as_echo_body
14741
  as_echo='sh -c $as_echo_body as_echo'
14742
fi
14743
 
14744
# The user is always right.
14745
if test "${PATH_SEPARATOR+set}" != set; then
14746
  PATH_SEPARATOR=:
14747
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14748
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14749
      PATH_SEPARATOR=';'
14750
  }
14751
fi
14752
 
14753
 
14754
# IFS
14755
# We need space, tab and new line, in precisely that order.  Quoting is
14756
# there to prevent editors from complaining about space-tab.
14757
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14758
# splitting by setting IFS to empty value.)
14759
IFS=" ""        $as_nl"
14760
 
14761
# Find who we are.  Look in the path if we contain no directory separator.
14762
case $0 in #((
14763
  *[\\/]* ) as_myself=$0 ;;
14764
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14765
for as_dir in $PATH
14766
do
14767
  IFS=$as_save_IFS
14768
  test -z "$as_dir" && as_dir=.
14769
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14770
  done
14771
IFS=$as_save_IFS
14772
 
14773
     ;;
14774
esac
14775
# We did not find ourselves, most probably we were run as `sh COMMAND'
14776
# in which case we are not to be found in the path.
14777
if test "x$as_myself" = x; then
14778
  as_myself=$0
14779
fi
14780
if test ! -f "$as_myself"; then
14781
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14782
  exit 1
14783
fi
14784
 
14785
# Unset variables that we do not need and which cause bugs (e.g. in
14786
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14787
# suppresses any "Segmentation fault" message there.  '((' could
14788
# trigger a bug in pdksh 5.2.14.
14789
for as_var in BASH_ENV ENV MAIL MAILPATH
14790
do eval test x\${$as_var+set} = xset \
14791
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14792
done
14793
PS1='$ '
14794
PS2='> '
14795
PS4='+ '
14796
 
14797
# NLS nuisances.
14798
LC_ALL=C
14799
export LC_ALL
14800
LANGUAGE=C
14801
export LANGUAGE
14802
 
14803
# CDPATH.
14804
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14805
 
14806
 
14807
# as_fn_error ERROR [LINENO LOG_FD]
14808
# ---------------------------------
14809
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14810
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14811
# script with status $?, using 1 if that was 0.
14812
as_fn_error ()
14813
{
14814
  as_status=$?; test $as_status -eq 0 && as_status=1
14815
  if test "$3"; then
14816
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14817
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14818
  fi
14819
  $as_echo "$as_me: error: $1" >&2
14820
  as_fn_exit $as_status
14821
} # as_fn_error
14822
 
14823
 
14824
# as_fn_set_status STATUS
14825
# -----------------------
14826
# Set $? to STATUS, without forking.
14827
as_fn_set_status ()
14828
{
14829
  return $1
14830
} # as_fn_set_status
14831
 
14832
# as_fn_exit STATUS
14833
# -----------------
14834
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14835
as_fn_exit ()
14836
{
14837
  set +e
14838
  as_fn_set_status $1
14839
  exit $1
14840
} # as_fn_exit
14841
 
14842
# as_fn_unset VAR
14843
# ---------------
14844
# Portably unset VAR.
14845
as_fn_unset ()
14846
{
14847
  { eval $1=; unset $1;}
14848
}
14849
as_unset=as_fn_unset
14850
# as_fn_append VAR VALUE
14851
# ----------------------
14852
# Append the text in VALUE to the end of the definition contained in VAR. Take
14853
# advantage of any shell optimizations that allow amortized linear growth over
14854
# repeated appends, instead of the typical quadratic growth present in naive
14855
# implementations.
14856
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14857
  eval 'as_fn_append ()
14858
  {
14859
    eval $1+=\$2
14860
  }'
14861
else
14862
  as_fn_append ()
14863
  {
14864
    eval $1=\$$1\$2
14865
  }
14866
fi # as_fn_append
14867
 
14868
# as_fn_arith ARG...
14869
# ------------------
14870
# Perform arithmetic evaluation on the ARGs, and store the result in the
14871
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14872
# must be portable across $(()) and expr.
14873
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14874
  eval 'as_fn_arith ()
14875
  {
14876
    as_val=$(( $* ))
14877
  }'
14878
else
14879
  as_fn_arith ()
14880
  {
14881
    as_val=`expr "$@" || test $? -eq 1`
14882
  }
14883
fi # as_fn_arith
14884
 
14885
 
14886
if expr a : '\(a\)' >/dev/null 2>&1 &&
14887
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14888
  as_expr=expr
14889
else
14890
  as_expr=false
14891
fi
14892
 
14893
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14894
  as_basename=basename
14895
else
14896
  as_basename=false
14897
fi
14898
 
14899
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14900
  as_dirname=dirname
14901
else
14902
  as_dirname=false
14903
fi
14904
 
14905
as_me=`$as_basename -- "$0" ||
14906
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14907
         X"$0" : 'X\(//\)$' \| \
14908
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14909
$as_echo X/"$0" |
14910
    sed '/^.*\/\([^/][^/]*\)\/*$/{
14911
            s//\1/
14912
            q
14913
          }
14914
          /^X\/\(\/\/\)$/{
14915
            s//\1/
14916
            q
14917
          }
14918
          /^X\/\(\/\).*/{
14919
            s//\1/
14920
            q
14921
          }
14922
          s/.*/./; q'`
14923
 
14924
# Avoid depending upon Character Ranges.
14925
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14926
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14927
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14928
as_cr_digits='0123456789'
14929
as_cr_alnum=$as_cr_Letters$as_cr_digits
14930
 
14931
ECHO_C= ECHO_N= ECHO_T=
14932
case `echo -n x` in #(((((
14933
-n*)
14934
  case `echo 'xy\c'` in
14935
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14936
  xy)  ECHO_C='\c';;
14937
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14938
       ECHO_T=' ';;
14939
  esac;;
14940
*)
14941
  ECHO_N='-n';;
14942
esac
14943
 
14944
rm -f conf$$ conf$$.exe conf$$.file
14945
if test -d conf$$.dir; then
14946
  rm -f conf$$.dir/conf$$.file
14947
else
14948
  rm -f conf$$.dir
14949
  mkdir conf$$.dir 2>/dev/null
14950
fi
14951
if (echo >conf$$.file) 2>/dev/null; then
14952
  if ln -s conf$$.file conf$$ 2>/dev/null; then
14953
    as_ln_s='ln -s'
14954
    # ... but there are two gotchas:
14955
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14956
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14957
    # In both cases, we have to default to `cp -p'.
14958
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14959
      as_ln_s='cp -p'
14960
  elif ln conf$$.file conf$$ 2>/dev/null; then
14961
    as_ln_s=ln
14962
  else
14963
    as_ln_s='cp -p'
14964
  fi
14965
else
14966
  as_ln_s='cp -p'
14967
fi
14968
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14969
rmdir conf$$.dir 2>/dev/null
14970
 
14971
 
14972
# as_fn_mkdir_p
14973
# -------------
14974
# Create "$as_dir" as a directory, including parents if necessary.
14975
as_fn_mkdir_p ()
14976
{
14977
 
14978
  case $as_dir in #(
14979
  -*) as_dir=./$as_dir;;
14980
  esac
14981
  test -d "$as_dir" || eval $as_mkdir_p || {
14982
    as_dirs=
14983
    while :; do
14984
      case $as_dir in #(
14985
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14986
      *) as_qdir=$as_dir;;
14987
      esac
14988
      as_dirs="'$as_qdir' $as_dirs"
14989
      as_dir=`$as_dirname -- "$as_dir" ||
14990
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14991
         X"$as_dir" : 'X\(//\)[^/]' \| \
14992
         X"$as_dir" : 'X\(//\)$' \| \
14993
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14994
$as_echo X"$as_dir" |
14995
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14996
            s//\1/
14997
            q
14998
          }
14999
          /^X\(\/\/\)[^/].*/{
15000
            s//\1/
15001
            q
15002
          }
15003
          /^X\(\/\/\)$/{
15004
            s//\1/
15005
            q
15006
          }
15007
          /^X\(\/\).*/{
15008
            s//\1/
15009
            q
15010
          }
15011
          s/.*/./; q'`
15012
      test -d "$as_dir" && break
15013
    done
15014
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15015
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15016
 
15017
 
15018
} # as_fn_mkdir_p
15019
if mkdir -p . 2>/dev/null; then
15020
  as_mkdir_p='mkdir -p "$as_dir"'
15021
else
15022
  test -d ./-p && rmdir ./-p
15023
  as_mkdir_p=false
15024
fi
15025
 
15026
if test -x / >/dev/null 2>&1; then
15027
  as_test_x='test -x'
15028
else
15029
  if ls -dL / >/dev/null 2>&1; then
15030
    as_ls_L_option=L
15031
  else
15032
    as_ls_L_option=
15033
  fi
15034
  as_test_x='
15035
    eval sh -c '\''
15036
      if test -d "$1"; then
15037
        test -d "$1/.";
15038
      else
15039
        case $1 in #(
15040
        -*)set "./$1";;
15041
        esac;
15042
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15043
        ???[sx]*):;;*)false;;esac;fi
15044
    '\'' sh
15045
  '
15046
fi
15047
as_executable_p=$as_test_x
15048
 
15049
# Sed expression to map a string onto a valid CPP name.
15050
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15051
 
15052
# Sed expression to map a string onto a valid variable name.
15053
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15054
 
15055
 
15056
exec 6>&1
15057
## ----------------------------------- ##
15058
## Main body of $CONFIG_STATUS script. ##
15059
## ----------------------------------- ##
15060
_ASEOF
15061
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15062
 
15063
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15064
# Save the log message, to keep $0 and so on meaningful, and to
15065
# report actual input values of CONFIG_FILES etc. instead of their
15066
# values after options handling.
15067
ac_log="
15068
This file was extended by $as_me, which was
15069
generated by GNU Autoconf 2.64.  Invocation command line was
15070
 
15071
  CONFIG_FILES    = $CONFIG_FILES
15072
  CONFIG_HEADERS  = $CONFIG_HEADERS
15073
  CONFIG_LINKS    = $CONFIG_LINKS
15074
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15075
  $ $0 $@
15076
 
15077
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15078
"
15079
 
15080
_ACEOF
15081
 
15082
case $ac_config_files in *"
15083
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15084
esac
15085
 
15086
case $ac_config_headers in *"
15087
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15088
esac
15089
 
15090
 
15091
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15092
# Files that config.status was made for.
15093
config_files="$ac_config_files"
15094
config_headers="$ac_config_headers"
15095
config_links="$ac_config_links"
15096
config_commands="$ac_config_commands"
15097
 
15098
_ACEOF
15099
 
15100
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15101
ac_cs_usage="\
15102
\`$as_me' instantiates files and other configuration actions
15103
from templates according to the current configuration.  Unless the files
15104
and actions are specified as TAGs, all are instantiated by default.
15105
 
15106
Usage: $0 [OPTION]... [TAG]...
15107
 
15108
  -h, --help       print this help, then exit
15109
  -V, --version    print version number and configuration settings, then exit
15110
  -q, --quiet, --silent
15111
                   do not print progress messages
15112
  -d, --debug      don't remove temporary files
15113
      --recheck    update $as_me by reconfiguring in the same conditions
15114
      --file=FILE[:TEMPLATE]
15115
                   instantiate the configuration file FILE
15116
      --header=FILE[:TEMPLATE]
15117
                   instantiate the configuration header FILE
15118
 
15119
Configuration files:
15120
$config_files
15121
 
15122
Configuration headers:
15123
$config_headers
15124
 
15125
Configuration links:
15126
$config_links
15127
 
15128
Configuration commands:
15129
$config_commands
15130
 
15131
Report bugs to the package provider."
15132
 
15133
_ACEOF
15134
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15135
ac_cs_version="\\
15136
config.status
15137
configured by $0, generated by GNU Autoconf 2.64,
15138
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15139
 
15140
Copyright (C) 2009 Free Software Foundation, Inc.
15141
This config.status script is free software; the Free Software Foundation
15142
gives unlimited permission to copy, distribute and modify it."
15143
 
15144
ac_pwd='$ac_pwd'
15145
srcdir='$srcdir'
15146
INSTALL='$INSTALL'
15147
MKDIR_P='$MKDIR_P'
15148
AWK='$AWK'
15149
test -n "\$AWK" || AWK=awk
15150
_ACEOF
15151
 
15152
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15153
# The default lists apply if the user does not specify any file.
15154
ac_need_defaults=:
15155
while test $# != 0
15156
do
15157
  case $1 in
15158
  --*=*)
15159
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15160
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15161
    ac_shift=:
15162
    ;;
15163
  *)
15164
    ac_option=$1
15165
    ac_optarg=$2
15166
    ac_shift=shift
15167
    ;;
15168
  esac
15169
 
15170
  case $ac_option in
15171
  # Handling of the options.
15172
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15173
    ac_cs_recheck=: ;;
15174
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15175
    $as_echo "$ac_cs_version"; exit ;;
15176
  --debug | --debu | --deb | --de | --d | -d )
15177
    debug=: ;;
15178
  --file | --fil | --fi | --f )
15179
    $ac_shift
15180
    case $ac_optarg in
15181
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15182
    esac
15183
    as_fn_append CONFIG_FILES " '$ac_optarg'"
15184
    ac_need_defaults=false;;
15185
  --header | --heade | --head | --hea )
15186
    $ac_shift
15187
    case $ac_optarg in
15188
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15189
    esac
15190
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15191
    ac_need_defaults=false;;
15192
  --he | --h)
15193
    # Conflict between --help and --header
15194
    as_fn_error "ambiguous option: \`$1'
15195
Try \`$0 --help' for more information.";;
15196
  --help | --hel | -h )
15197
    $as_echo "$ac_cs_usage"; exit ;;
15198
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15199
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15200
    ac_cs_silent=: ;;
15201
 
15202
  # This is an error.
15203
  -*) as_fn_error "unrecognized option: \`$1'
15204
Try \`$0 --help' for more information." ;;
15205
 
15206
  *) as_fn_append ac_config_targets " $1"
15207
     ac_need_defaults=false ;;
15208
 
15209
  esac
15210
  shift
15211
done
15212
 
15213
ac_configure_extra_args=
15214
 
15215
if $ac_cs_silent; then
15216
  exec 6>/dev/null
15217
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15218
fi
15219
 
15220
_ACEOF
15221
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222
if \$ac_cs_recheck; then
15223
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15224
  shift
15225
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15226
  CONFIG_SHELL='$SHELL'
15227
  export CONFIG_SHELL
15228
  exec "\$@"
15229
fi
15230
 
15231
_ACEOF
15232
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15233
exec 5>>config.log
15234
{
15235
  echo
15236
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15237
## Running $as_me. ##
15238
_ASBOX
15239
  $as_echo "$ac_log"
15240
} >&5
15241
 
15242
_ACEOF
15243
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15244
#
15245
# INIT-COMMANDS
15246
#
15247
ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15248
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15249
 
15250
_ACEOF
15251
 
15252
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15253
 
15254
# Handling of arguments.
15255
for ac_config_target in $ac_config_targets
15256
do
15257
  case $ac_config_target in
15258
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15259
    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
15260
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15261
    "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
15262
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15263
    ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15264
    "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
15265
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15266
 
15267
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15268
  esac
15269
done
15270
 
15271
 
15272
# If the user did not use the arguments to specify the items to instantiate,
15273
# then the envvar interface is used.  Set only those that are not.
15274
# We use the long form for the default assignment because of an extremely
15275
# bizarre bug on SunOS 4.1.3.
15276
if $ac_need_defaults; then
15277
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15278
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15279
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15280
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15281
fi
15282
 
15283
# Have a temporary directory for convenience.  Make it in the build tree
15284
# simply because there is no reason against having it here, and in addition,
15285
# creating and moving files from /tmp can sometimes cause problems.
15286
# Hook for its removal unless debugging.
15287
# Note that there is a small window in which the directory will not be cleaned:
15288
# after its creation but before its name has been assigned to `$tmp'.
15289
$debug ||
15290
{
15291
  tmp=
15292
  trap 'exit_status=$?
15293
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15294
' 0
15295
  trap 'as_fn_exit 1' 1 2 13 15
15296
}
15297
# Create a (secure) tmp directory for tmp files.
15298
 
15299
{
15300
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15301
  test -n "$tmp" && test -d "$tmp"
15302
}  ||
15303
{
15304
  tmp=./conf$$-$RANDOM
15305
  (umask 077 && mkdir "$tmp")
15306
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15307
 
15308
# Set up the scripts for CONFIG_FILES section.
15309
# No need to generate them if there are no CONFIG_FILES.
15310
# This happens for instance with `./config.status config.h'.
15311
if test -n "$CONFIG_FILES"; then
15312
 
15313
if $AWK 'BEGIN { getline <"/dev/null" }' /dev/null; then
15314
  ac_cs_awk_getline=:
15315
  ac_cs_awk_pipe_init=
15316
  ac_cs_awk_read_file='
15317
      while ((getline aline < (F[key])) > 0)
15318
        print(aline)
15319
      close(F[key])'
15320
  ac_cs_awk_pipe_fini=
15321
else
15322
  ac_cs_awk_getline=false
15323
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15324
  ac_cs_awk_read_file='
15325
      print "|#_!!_#|"
15326
      print "cat " F[key] " &&"
15327
      '$ac_cs_awk_pipe_init
15328
  # The final `:' finishes the AND list.
15329
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15330
fi
15331
ac_cr=`echo X | tr X '\015'`
15332
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15333
# But we know of no other shell where ac_cr would be empty at this
15334
# point, so we can use a bashism as a fallback.
15335
if test "x$ac_cr" = x; then
15336
  eval ac_cr=\$\'\\r\'
15337
fi
15338
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
15339
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15340
  ac_cs_awk_cr='\r'
15341
else
15342
  ac_cs_awk_cr=$ac_cr
15343
fi
15344
 
15345
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15346
_ACEOF
15347
 
15348
# Create commands to substitute file output variables.
15349
{
15350
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15351
  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15352
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15353
  echo "_ACAWK" &&
15354
  echo "_ACEOF"
15355
} >conf$$files.sh &&
15356
. ./conf$$files.sh ||
15357
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15358
rm -f conf$$files.sh
15359
 
15360
{
15361
  echo "cat >conf$$subs.awk <<_ACEOF" &&
15362
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15363
  echo "_ACEOF"
15364
} >conf$$subs.sh ||
15365
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15366
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15367
ac_delim='%!_!# '
15368
for ac_last_try in false false false false false :; do
15369
  . ./conf$$subs.sh ||
15370
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15371
 
15372
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15373
  if test $ac_delim_n = $ac_delim_num; then
15374
    break
15375
  elif $ac_last_try; then
15376
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15377
  else
15378
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15379
  fi
15380
done
15381
rm -f conf$$subs.sh
15382
 
15383
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15384
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15385
_ACEOF
15386
sed -n '
15387
h
15388
s/^/S["/; s/!.*/"]=/
15389
p
15390
g
15391
s/^[^!]*!//
15392
:repl
15393
t repl
15394
s/'"$ac_delim"'$//
15395
t delim
15396
:nl
15397
h
15398
s/\(.\{148\}\).*/\1/
15399
t more1
15400
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15401
p
15402
n
15403
b repl
15404
:more1
15405
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15406
p
15407
g
15408
s/.\{148\}//
15409
t nl
15410
:delim
15411
h
15412
s/\(.\{148\}\).*/\1/
15413
t more2
15414
s/["\\]/\\&/g; s/^/"/; s/$/"/
15415
p
15416
b
15417
:more2
15418
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15419
p
15420
g
15421
s/.\{148\}//
15422
t delim
15423
' 
15424
/^[^""]/{
15425
  N
15426
  s/\n//
15427
}
15428
' >>$CONFIG_STATUS || ac_write_fail=1
15429
rm -f conf$$subs.awk
15430
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15431
_ACAWK
15432
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15433
  for (key in S) S_is_set[key] = 1
15434
  FS = ""
15435
  \$ac_cs_awk_pipe_init
15436
}
15437
{
15438
  line = $ 0
15439
  nfields = split(line, field, "@")
15440
  substed = 0
15441
  len = length(field[1])
15442
  for (i = 2; i < nfields; i++) {
15443
    key = field[i]
15444
    keylen = length(key)
15445
    if (S_is_set[key]) {
15446
      value = S[key]
15447
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15448
      len += length(value) + length(field[++i])
15449
      substed = 1
15450
    } else
15451
      len += 1 + keylen
15452
  }
15453
  if (nfields == 3 && !substed) {
15454
    key = field[2]
15455
    if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15456
      \$ac_cs_awk_read_file
15457
      next
15458
    }
15459
  }
15460
  print line
15461
}
15462
\$ac_cs_awk_pipe_fini
15463
_ACAWK
15464
_ACEOF
15465
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15466
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15467
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15468
else
15469
  cat
15470
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15471
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15472
_ACEOF
15473
 
15474
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15475
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15476
# trailing colons and then remove the whole line if VPATH becomes empty
15477
# (actually we leave an empty line to preserve line numbers).
15478
if test "x$srcdir" = x.; then
15479
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
15480
s/:*\$(srcdir):*/:/
15481
s/:*\${srcdir}:*/:/
15482
s/:*@srcdir@:*/:/
15483
s/^\([^=]*=[     ]*\):*/\1/
15484
s/:*$//
15485
s/^[^=]*=[       ]*$//
15486
}'
15487
fi
15488
 
15489
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15490
fi # test -n "$CONFIG_FILES"
15491
 
15492
# Set up the scripts for CONFIG_HEADERS section.
15493
# No need to generate them if there are no CONFIG_HEADERS.
15494
# This happens for instance with `./config.status Makefile'.
15495
if test -n "$CONFIG_HEADERS"; then
15496
cat >"$tmp/defines.awk" <<\_ACAWK ||
15497
BEGIN {
15498
_ACEOF
15499
 
15500
# Transform confdefs.h into an awk script `defines.awk', embedded as
15501
# here-document in config.status, that substitutes the proper values into
15502
# config.h.in to produce config.h.
15503
 
15504
# Create a delimiter string that does not exist in confdefs.h, to ease
15505
# handling of long lines.
15506
ac_delim='%!_!# '
15507
for ac_last_try in false false :; do
15508
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15509
  if test -z "$ac_t"; then
15510
    break
15511
  elif $ac_last_try; then
15512
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15513
  else
15514
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15515
  fi
15516
done
15517
 
15518
# For the awk script, D is an array of macro values keyed by name,
15519
# likewise P contains macro parameters if any.  Preserve backslash
15520
# newline sequences.
15521
 
15522
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15523
sed -n '
15524
s/.\{148\}/&'"$ac_delim"'/g
15525
t rset
15526
:rset
15527
s/^[     ]*#[    ]*define[       ][      ]*/ /
15528
t def
15529
d
15530
:def
15531
s/\\$//
15532
t bsnl
15533
s/["\\]/\\&/g
15534
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15535
D["\1"]=" \3"/p
15536
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15537
d
15538
:bsnl
15539
s/["\\]/\\&/g
15540
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15541
D["\1"]=" \3\\\\\\n"\\/p
15542
t cont
15543
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15544
t cont
15545
d
15546
:cont
15547
n
15548
s/.\{148\}/&'"$ac_delim"'/g
15549
t clear
15550
:clear
15551
s/\\$//
15552
t bsnlc
15553
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15554
d
15555
:bsnlc
15556
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15557
b cont
15558
' 
15559
s/'"$ac_delim"'/"\\\
15560
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15561
 
15562
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15563
  for (key in D) D_is_set[key] = 1
15564
  FS = ""
15565
}
15566
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15567
  line = \$ 0
15568
  split(line, arg, " ")
15569
  if (arg[1] == "#") {
15570
    defundef = arg[2]
15571
    mac1 = arg[3]
15572
  } else {
15573
    defundef = substr(arg[1], 2)
15574
    mac1 = arg[2]
15575
  }
15576
  split(mac1, mac2, "(") #)
15577
  macro = mac2[1]
15578
  prefix = substr(line, 1, index(line, defundef) - 1)
15579
  if (D_is_set[macro]) {
15580
    # Preserve the white space surrounding the "#".
15581
    print prefix "define", macro P[macro] D[macro]
15582
    next
15583
  } else {
15584
    # Replace #undef with comments.  This is necessary, for example,
15585
    # in the case of _POSIX_SOURCE, which is predefined and required
15586
    # on some systems where configure will not decide to define it.
15587
    if (defundef == "undef") {
15588
      print "/*", prefix defundef, macro, "*/"
15589
      next
15590
    }
15591
  }
15592
}
15593
{ print }
15594
_ACAWK
15595
_ACEOF
15596
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15598
fi # test -n "$CONFIG_HEADERS"
15599
 
15600
 
15601
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
15602
shift
15603
for ac_tag
15604
do
15605
  case $ac_tag in
15606
  :[FHLC]) ac_mode=$ac_tag; continue;;
15607
  esac
15608
  case $ac_mode$ac_tag in
15609
  :[FHL]*:*);;
15610
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15611
  :[FH]-) ac_tag=-:-;;
15612
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15613
  esac
15614
  ac_save_IFS=$IFS
15615
  IFS=:
15616
  set x $ac_tag
15617
  IFS=$ac_save_IFS
15618
  shift
15619
  ac_file=$1
15620
  shift
15621
 
15622
  case $ac_mode in
15623
  :L) ac_source=$1;;
15624
  :[FH])
15625
    ac_file_inputs=
15626
    for ac_f
15627
    do
15628
      case $ac_f in
15629
      -) ac_f="$tmp/stdin";;
15630
      *) # Look for the file first in the build tree, then in the source tree
15631
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
15632
         # because $ac_f cannot contain `:'.
15633
         test -f "$ac_f" ||
15634
           case $ac_f in
15635
           [\\/$]*) false;;
15636
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15637
           esac ||
15638
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15639
      esac
15640
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15641
      as_fn_append ac_file_inputs " '$ac_f'"
15642
    done
15643
 
15644
    # Let's still pretend it is `configure' which instantiates (i.e., don't
15645
    # use $as_me), people would be surprised to read:
15646
    #    /* config.h.  Generated by config.status.  */
15647
    configure_input='Generated from '`
15648
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15649
        `' by configure.'
15650
    if test x"$ac_file" != x-; then
15651
      configure_input="$ac_file.  $configure_input"
15652
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15653
$as_echo "$as_me: creating $ac_file" >&6;}
15654
    fi
15655
    # Neutralize special characters interpreted by sed in replacement strings.
15656
    case $configure_input in #(
15657
    *\&* | *\|* | *\\* )
15658
       ac_sed_conf_input=`$as_echo "$configure_input" |
15659
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15660
    *) ac_sed_conf_input=$configure_input;;
15661
    esac
15662
 
15663
    case $ac_tag in
15664
    *:-:* | *:-) cat >"$tmp/stdin" \
15665
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15666
    esac
15667
    ;;
15668
  esac
15669
 
15670
  ac_dir=`$as_dirname -- "$ac_file" ||
15671
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15672
         X"$ac_file" : 'X\(//\)[^/]' \| \
15673
         X"$ac_file" : 'X\(//\)$' \| \
15674
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15675
$as_echo X"$ac_file" |
15676
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15677
            s//\1/
15678
            q
15679
          }
15680
          /^X\(\/\/\)[^/].*/{
15681
            s//\1/
15682
            q
15683
          }
15684
          /^X\(\/\/\)$/{
15685
            s//\1/
15686
            q
15687
          }
15688
          /^X\(\/\).*/{
15689
            s//\1/
15690
            q
15691
          }
15692
          s/.*/./; q'`
15693
  as_dir="$ac_dir"; as_fn_mkdir_p
15694
  ac_builddir=.
15695
 
15696
case "$ac_dir" in
15697
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15698
*)
15699
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15700
  # A ".." for each directory in $ac_dir_suffix.
15701
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15702
  case $ac_top_builddir_sub in
15703
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15704
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15705
  esac ;;
15706
esac
15707
ac_abs_top_builddir=$ac_pwd
15708
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15709
# for backward compatibility:
15710
ac_top_builddir=$ac_top_build_prefix
15711
 
15712
case $srcdir in
15713
  .)  # We are building in place.
15714
    ac_srcdir=.
15715
    ac_top_srcdir=$ac_top_builddir_sub
15716
    ac_abs_top_srcdir=$ac_pwd ;;
15717
  [\\/]* | ?:[\\/]* )  # Absolute name.
15718
    ac_srcdir=$srcdir$ac_dir_suffix;
15719
    ac_top_srcdir=$srcdir
15720
    ac_abs_top_srcdir=$srcdir ;;
15721
  *) # Relative name.
15722
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15723
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15724
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15725
esac
15726
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15727
 
15728
 
15729
  case $ac_mode in
15730
  :F)
15731
  #
15732
  # CONFIG_FILE
15733
  #
15734
 
15735
  case $INSTALL in
15736
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15737
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15738
  esac
15739
  ac_MKDIR_P=$MKDIR_P
15740
  case $MKDIR_P in
15741
  [\\/$]* | ?:[\\/]* ) ;;
15742
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15743
  esac
15744
_ACEOF
15745
 
15746
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15747
# If the template does not know about datarootdir, expand it.
15748
# FIXME: This hack should be removed a few years after 2.60.
15749
ac_datarootdir_hack=; ac_datarootdir_seen=
15750
ac_sed_dataroot='
15751
/datarootdir/ {
15752
  p
15753
  q
15754
}
15755
/@datadir@/p
15756
/@docdir@/p
15757
/@infodir@/p
15758
/@localedir@/p
15759
/@mandir@/p'
15760
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15761
*datarootdir*) ac_datarootdir_seen=yes;;
15762
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15763
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15764
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15765
_ACEOF
15766
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15767
  ac_datarootdir_hack='
15768
  s&@datadir@&$datadir&g
15769
  s&@docdir@&$docdir&g
15770
  s&@infodir@&$infodir&g
15771
  s&@localedir@&$localedir&g
15772
  s&@mandir@&$mandir&g
15773
  s&\\\${datarootdir}&$datarootdir&g' ;;
15774
esac
15775
_ACEOF
15776
 
15777
# Neutralize VPATH when `$srcdir' = `.'.
15778
# Shell code in configure.ac might set extrasub.
15779
# FIXME: do we really want to maintain this feature?
15780
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15781
ac_sed_extra="$ac_vpsub
15782
$extrasub
15783
_ACEOF
15784
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15785
:t
15786
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15787
s|@configure_input@|$ac_sed_conf_input|;t t
15788
s&@top_builddir@&$ac_top_builddir_sub&;t t
15789
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15790
s&@srcdir@&$ac_srcdir&;t t
15791
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15792
s&@top_srcdir@&$ac_top_srcdir&;t t
15793
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15794
s&@builddir@&$ac_builddir&;t t
15795
s&@abs_builddir@&$ac_abs_builddir&;t t
15796
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15797
s&@INSTALL@&$ac_INSTALL&;t t
15798
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15799
$ac_datarootdir_hack
15800
"
15801
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15802
if $ac_cs_awk_getline; then
15803
  $AWK -f "$tmp/subs.awk"
15804
else
15805
  $AWK -f "$tmp/subs.awk" | $SHELL
15806
fi >$tmp/out \
15807
  || as_fn_error "could not create $ac_file" "$LINENO" 5
15808
 
15809
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15810
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15811
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15812
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15813
which seems to be undefined.  Please make sure it is defined." >&5
15814
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15815
which seems to be undefined.  Please make sure it is defined." >&2;}
15816
 
15817
  rm -f "$tmp/stdin"
15818
  case $ac_file in
15819
  -) cat "$tmp/out" && rm -f "$tmp/out";;
15820
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15821
  esac \
15822
  || as_fn_error "could not create $ac_file" "$LINENO" 5
15823
 ;;
15824
  :H)
15825
  #
15826
  # CONFIG_HEADER
15827
  #
15828
  if test x"$ac_file" != x-; then
15829
    {
15830
      $as_echo "/* $configure_input  */" \
15831
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15832
    } >"$tmp/config.h" \
15833
      || as_fn_error "could not create $ac_file" "$LINENO" 5
15834
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15835
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15836
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15837
    else
15838
      rm -f "$ac_file"
15839
      mv "$tmp/config.h" "$ac_file" \
15840
        || as_fn_error "could not create $ac_file" "$LINENO" 5
15841
    fi
15842
  else
15843
    $as_echo "/* $configure_input  */" \
15844
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15845
      || as_fn_error "could not create -" "$LINENO" 5
15846
  fi
15847
# Compute "$ac_file"'s index in $config_headers.
15848
_am_arg="$ac_file"
15849
_am_stamp_count=1
15850
for _am_header in $config_headers :; do
15851
  case $_am_header in
15852
    $_am_arg | $_am_arg:* )
15853
      break ;;
15854
    * )
15855
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15856
  esac
15857
done
15858
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15859
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15860
         X"$_am_arg" : 'X\(//\)[^/]' \| \
15861
         X"$_am_arg" : 'X\(//\)$' \| \
15862
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15863
$as_echo X"$_am_arg" |
15864
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15865
            s//\1/
15866
            q
15867
          }
15868
          /^X\(\/\/\)[^/].*/{
15869
            s//\1/
15870
            q
15871
          }
15872
          /^X\(\/\/\)$/{
15873
            s//\1/
15874
            q
15875
          }
15876
          /^X\(\/\).*/{
15877
            s//\1/
15878
            q
15879
          }
15880
          s/.*/./; q'`/stamp-h$_am_stamp_count
15881
 ;;
15882
  :L)
15883
  #
15884
  # CONFIG_LINK
15885
  #
15886
 
15887
  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15888
    :
15889
  else
15890
    # Prefer the file from the source tree if names are identical.
15891
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15892
      ac_source=$srcdir/$ac_source
15893
    fi
15894
 
15895
    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15896
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15897
 
15898
    if test ! -r "$ac_source"; then
15899
      as_fn_error "$ac_source: file not found" "$LINENO" 5
15900
    fi
15901
    rm -f "$ac_file"
15902
 
15903
    # Try a relative symlink, then a hard link, then a copy.
15904
    case $srcdir in
15905
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15906
        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15907
    esac
15908
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15909
      ln "$ac_source" "$ac_file" 2>/dev/null ||
15910
      cp -p "$ac_source" "$ac_file" ||
15911
      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15912
  fi
15913
 ;;
15914
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15915
$as_echo "$as_me: executing $ac_file commands" >&6;}
15916
 ;;
15917
  esac
15918
 
15919
 
15920
  case $ac_file$ac_mode in
15921
    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
15922
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15923
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15924
  # are listed without --file.  Let's play safe and only enable the eval
15925
  # if we detect the quoting.
15926
  case $CONFIG_FILES in
15927
  *\'*) eval set x "$CONFIG_FILES" ;;
15928
  *)   set x $CONFIG_FILES ;;
15929
  esac
15930
  shift
15931
  for mf
15932
  do
15933
    # Strip MF so we end up with the name of the file.
15934
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15935
    # Check whether this is an Automake generated Makefile or not.
15936
    # We used to match only the files named `Makefile.in', but
15937
    # some people rename them; so instead we look at the file content.
15938
    # Grep'ing the first line is not enough: some people post-process
15939
    # each Makefile.in and add a new line on top of each file to say so.
15940
    # Grep'ing the whole file is not good either: AIX grep has a line
15941
    # limit of 2048, but all sed's we know have understand at least 4000.
15942
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15943
      dirpart=`$as_dirname -- "$mf" ||
15944
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15945
         X"$mf" : 'X\(//\)[^/]' \| \
15946
         X"$mf" : 'X\(//\)$' \| \
15947
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15948
$as_echo X"$mf" |
15949
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15950
            s//\1/
15951
            q
15952
          }
15953
          /^X\(\/\/\)[^/].*/{
15954
            s//\1/
15955
            q
15956
          }
15957
          /^X\(\/\/\)$/{
15958
            s//\1/
15959
            q
15960
          }
15961
          /^X\(\/\).*/{
15962
            s//\1/
15963
            q
15964
          }
15965
          s/.*/./; q'`
15966
    else
15967
      continue
15968
    fi
15969
    # Extract the definition of DEPDIR, am__include, and am__quote
15970
    # from the Makefile without running `make'.
15971
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15972
    test -z "$DEPDIR" && continue
15973
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15974
    test -z "am__include" && continue
15975
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15976
    # When using ansi2knr, U may be empty or an underscore; expand it
15977
    U=`sed -n 's/^U = //p' < "$mf"`
15978
    # Find all dependency output files, they are included files with
15979
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15980
    # simplest approach to changing $(DEPDIR) to its actual value in the
15981
    # expansion.
15982
    for file in `sed -n "
15983
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15984
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15985
      # Make sure the directory exists.
15986
      test -f "$dirpart/$file" && continue
15987
      fdir=`$as_dirname -- "$file" ||
15988
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15989
         X"$file" : 'X\(//\)[^/]' \| \
15990
         X"$file" : 'X\(//\)$' \| \
15991
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15992
$as_echo X"$file" |
15993
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15994
            s//\1/
15995
            q
15996
          }
15997
          /^X\(\/\/\)[^/].*/{
15998
            s//\1/
15999
            q
16000
          }
16001
          /^X\(\/\/\)$/{
16002
            s//\1/
16003
            q
16004
          }
16005
          /^X\(\/\).*/{
16006
            s//\1/
16007
            q
16008
          }
16009
          s/.*/./; q'`
16010
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16011
      # echo "creating $dirpart/$file"
16012
      echo '# dummy' > "$dirpart/$file"
16013
    done
16014
  done
16015
}
16016
 ;;
16017
    "default":C)
16018
case x$CONFIG_HEADERS in
16019
xconfig.h:config.in)
16020
echo > stamp-h ;;
16021
esac
16022
 ;;
16023
 
16024
  esac
16025
done # for ac_tag
16026
 
16027
 
16028
as_fn_exit 0
16029
_ACEOF
16030
ac_clean_files=$ac_clean_files_save
16031
 
16032
test $ac_write_fail = 0 ||
16033
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16034
 
16035
 
16036
# configure is writing to config.log, and then calls config.status.
16037
# config.status does its own redirection, appending to config.log.
16038
# Unfortunately, on DOS this fails, as config.log is still kept open
16039
# by configure, so config.status won't be able to write to it; its
16040
# output is simply discarded.  So we exec the FD to /dev/null,
16041
# effectively closing config.log, so it can be properly (re)opened and
16042
# appended to by config.status.  When coming back to configure, we
16043
# need to make the FD available again.
16044
if test "$no_create" != yes; then
16045
  ac_cs_success=:
16046
  ac_config_status_args=
16047
  test "$silent" = yes &&
16048
    ac_config_status_args="$ac_config_status_args --quiet"
16049
  exec 5>/dev/null
16050
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16051
  exec 5>>config.log
16052
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16053
  # would make configure fail if this is the last instruction.
16054
  $ac_cs_success || as_fn_exit $?
16055
fi
16056
 
16057
#
16058
# CONFIG_SUBDIRS section.
16059
#
16060
if test "$no_recursion" != yes; then
16061
 
16062
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16063
  # so they do not pile up.
16064
  ac_sub_configure_args=
16065
  ac_prev=
16066
  eval "set x $ac_configure_args"
16067
  shift
16068
  for ac_arg
16069
  do
16070
    if test -n "$ac_prev"; then
16071
      ac_prev=
16072
      continue
16073
    fi
16074
    case $ac_arg in
16075
    -cache-file | --cache-file | --cache-fil | --cache-fi \
16076
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16077
      ac_prev=cache_file ;;
16078
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16079
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16080
    | --c=*)
16081
      ;;
16082
    --config-cache | -C)
16083
      ;;
16084
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16085
      ac_prev=srcdir ;;
16086
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16087
      ;;
16088
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16089
      ac_prev=prefix ;;
16090
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16091
      ;;
16092
    --disable-option-checking)
16093
      ;;
16094
    *)
16095
      case $ac_arg in
16096
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16097
      esac
16098
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16099
    esac
16100
  done
16101
 
16102
  # Always prepend --prefix to ensure using the same prefix
16103
  # in subdir configurations.
16104
  ac_arg="--prefix=$prefix"
16105
  case $ac_arg in
16106
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16107
  esac
16108
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16109
 
16110
  # Pass --silent
16111
  if test "$silent" = yes; then
16112
    ac_sub_configure_args="--silent $ac_sub_configure_args"
16113
  fi
16114
 
16115
  # Always prepend --disable-option-checking to silence warnings, since
16116
  # different subdirs can have different --enable and --with options.
16117
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16118
 
16119
  ac_popdir=`pwd`
16120
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16121
 
16122
    # Do not complain, so a configure script can configure whichever
16123
    # parts of a large source tree are present.
16124
    test -d "$srcdir/$ac_dir" || continue
16125
 
16126
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16127
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16128
    $as_echo "$ac_msg" >&6
16129
    as_dir="$ac_dir"; as_fn_mkdir_p
16130
    ac_builddir=.
16131
 
16132
case "$ac_dir" in
16133
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16134
*)
16135
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16136
  # A ".." for each directory in $ac_dir_suffix.
16137
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16138
  case $ac_top_builddir_sub in
16139
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16140
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16141
  esac ;;
16142
esac
16143
ac_abs_top_builddir=$ac_pwd
16144
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16145
# for backward compatibility:
16146
ac_top_builddir=$ac_top_build_prefix
16147
 
16148
case $srcdir in
16149
  .)  # We are building in place.
16150
    ac_srcdir=.
16151
    ac_top_srcdir=$ac_top_builddir_sub
16152
    ac_abs_top_srcdir=$ac_pwd ;;
16153
  [\\/]* | ?:[\\/]* )  # Absolute name.
16154
    ac_srcdir=$srcdir$ac_dir_suffix;
16155
    ac_top_srcdir=$srcdir
16156
    ac_abs_top_srcdir=$srcdir ;;
16157
  *) # Relative name.
16158
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16159
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16160
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16161
esac
16162
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16163
 
16164
 
16165
    cd "$ac_dir"
16166
 
16167
    # Check for guested configure; otherwise get Cygnus style configure.
16168
    if test -f "$ac_srcdir/configure.gnu"; then
16169
      ac_sub_configure=$ac_srcdir/configure.gnu
16170
    elif test -f "$ac_srcdir/configure"; then
16171
      ac_sub_configure=$ac_srcdir/configure
16172
    elif test -f "$ac_srcdir/configure.in"; then
16173
      # This should be Cygnus configure.
16174
      ac_sub_configure=$ac_aux_dir/configure
16175
    else
16176
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16177
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16178
      ac_sub_configure=
16179
    fi
16180
 
16181
    # The recursion is here.
16182
    if test -n "$ac_sub_configure"; then
16183
      # Make the cache file name correct relative to the subdirectory.
16184
      case $cache_file in
16185
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16186
      *) # Relative name.
16187
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16188
      esac
16189
 
16190
      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16191
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16192
      # The eval makes quoting arguments work.
16193
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16194
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16195
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16196
    fi
16197
 
16198
    cd "$ac_popdir"
16199
  done
16200
fi
16201
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16202
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16203
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16204
fi
16205
 
16206
 
16207
exit 0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.