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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [infra/] [configure] - Blame information for rev 790

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

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

powered by: WebSVN 2.1.0

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